1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042 |
- import{F as Uf,r as Ao,d as tt,t as xd,a as Ra,b as Ei,c as Vn,w as Xl,g as Um,m as Zr,n as Bn,h as xo,u as Hf,i as Hm,e as de,f as Fe,o as ie,j as q,k as ee,l as ge,p as ze,q as ke,s as Ne,v as ve,x as lt,y as re,z as at,A as qt,B as Vt,C as Br,D as Tr,E as Rn,G as ei,H as ss,I as Wm,J as Qm,T as Xm,K as Ym,L as Gm,M as wd}from"../.pnpm.ZhcTz5Wm.js";import{E as $m}from"../element-plus.K6A-vihL.js";/*!
- * FormCreate 可视化表单设计器
- * @form-create/designer v3.2.11
- * (c) 2021-2025 xaboy
- * Github https://github.com/xaboy/form-create-designer
- * Site https://form-create.com/
- * Released under the MIT License.
- */(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.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 .el-button{bottom:3px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;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{color:#000;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:#f7f7f7;border-right:1px solid #ddd;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:#3073ff;font-size:12px}._fd-event .el-button{border-color:#2e73ff;color:#2e73ff;font-weight:400;width:100%}._fd-event .el-badge{width:100%}._fd-event-dialog .el-dialog__body{padding:10px 20px}._fd-event-con .el-main{padding:0}._fd-event-l,._fd-event-r{border:1px solid #ececec;display:flex;flex:1;flex-direction:column;height:100%}._fd-event-dropdown .el-dropdown-menu{max-height:500px;overflow:auto}._fd-event-head{align-items:center;background:#f8f9ff;border-bottom:1px solid #eee;display:flex;padding:5px 15px}._fd-event-head .el-button.is-link{color:#2f73ff}._fd-event-r{border-left:0}._fd-event-r ._fd-event-head{justify-content:space-between}._fd-event-l>.el-main,._fd-event-r>.el-main{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0;width:100%}._fd-event-item,._fd-event-r>.el-main{flex-direction:column}._fd-event-item{display:flex;font-size:14px;justify-content:center;max-width:250px;overflow:hidden;white-space:pre-wrap}._fd-event-item ._fd-label{color:#aaa;font-size:12px}._fd-event-l .el-menu{border-right:0;border-top:0;overflow:auto;padding:0 10px 5px;width:100%}._fd-event-l .el-menu-item.is-active{background:#e4e7ed;color:#303133}._fd-event-l .el-menu-item{border:1px solid #ececec;border-radius:5px;height:auto;line-height:1em;margin-top:5px;padding:0}._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:#aaa;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:#000;margin-left:10px}._fd-event-title{align-items:center;display:flex;justify-content:space-between;padding:10px 0;width:100%}._fd-event-title .fc-icon{color:#282828;font-size:18px;margin-right:6px}._fd-event-title .el-input{width:200px}._fd-event-title .el-input__wrapper{box-shadow:none}._fd-event-title .el-menu-item.is-active i{color:#282828}._fd-event-con .CodeMirror{height:100%;width:100%}._fd-event-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-type-select{cursor:pointer}._fd-type-select.is-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}._fd-struct,._fd-struct .el-badge{width:100%}._fd-struct .el-button{border-color:#2e73ff;color:#2e73ff;font-weight:400;width:100%}._fd-struct-con .CodeMirror{height:500px}._fd-struct-con .el-dialog__body{padding:0}._fd-props-input{display:inline-block;width:16px}._fd-props-input .fc-icon{cursor:pointer}._fd-lc-body,._fd-lc-header{padding:0 12px}._fd-lc-body{overflow:auto}._fd-lc-header{display:flex;justify-content:flex-end;margin-bottom:12px}._fd-language-config .el-table__cell{height:34px}._fd-lc-handle{align-items:center;cursor:pointer;display:flex;justify-content:space-between}._fd-struct-editor{flex:1;width:100%}._fd-struct-editor>div{height:100%}._fc-json-preview{color:#262626;display:flex;width:100%}._fc-json-preview .CodeMirror{font-size:12px;height:100%}._fd-warning-pop{max-width:400px}._fd-warning-text{cursor:help;text-decoration:underline;text-decoration-style:dashed}._fd-drag-tool{word-wrap:break-word;box-sizing:border-box;display:block;min-height:20px;outline:1px dashed var(--fc-tool-border-color);overflow:hidden;padding:2px;position:relative;transition:outline-color .3s ease;word-break:break-all;z-index:0}._fd-drag-tool ._fd-drag-tool{height:calc(100% - 6px);margin:3px}._fd-drag-tool+._fd-drag-tool{margin-top:5px}._fd-drag-tool.active{outline:2px solid #2e73ff}._fd-drag-tool.active>div>._fd-drag-btn{display:flex}._fd-drag-tool:not(.active):hover>div>._fd-drag-btn{display:flex!important;opacity:.7}._fd-drag-tool._fd-drop-hover ._fd-drag-box{padding-bottom:15px!important;padding-top:15px!important}._fd-drag-tool ._fd-drag-btn{display:none}._fd-drag-r{right:2px;top:calc(100% - 20px)}._fd-drag-l,._fd-drag-r{position:absolute;z-index:3}._fd-drag-l{left:0;top:0}._fd-drag-btn{background-color:#2e73ff;color:#fff;cursor:pointer;float:left;height:18px;justify-content:center;line-height:20px;padding-bottom:1px;text-align:center;width:18px}._fd-drag-btn+._fd-drag-btn{margin-left:2px}._fd-drag-danger{background-color:#ff2e2e}._fd-drag-btn i{font-size:14px}._fd-drag-mask{bottom:0;left:0;position:absolute;right:0;top:0;z-index:2}._fd-drag-tool:hover{outline-color:#2e73ff;outline-style:solid;z-index:1}._fd-drag-tool:has(._fd-drag-tool:not(.active):hover,._fd-drag-tool.active:hover)>div>._fd-drag-btn{display:none!important}._fd-row,._fd-html-editor{width:100%}._fd-html-editor .el-button{border-color:#2e73ff;color:#2e73ff;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-html-editor-con .el-dialog__body{padding:0 20px}._fd-fn-input,._fd-fn-input .el-badge{width:100%}._fd-fn-input .el-button{border-color:#2e73ff;color:#2e73ff;font-weight:400;width:100%}._fd-fn-input-dialog .CodeMirror-lint-tooltip{z-index:1!important}._fd-fn-input-dialog .el-dialog__body{height:500px;padding:0}._fd-gfc,._fd-gfc .el-badge{width:100%}._fd-gfc .el-button{border-color:#2e73ff;color:#2e73ff;font-weight:400;width:100%}._fd-gfc-dialog .el-tabs__header{margin-bottom:0}._fd-gfc-dialog .form-create{margin-top:15px}._fd-gfc-con .CodeMirror{height:100%;width:100%}._fd-gfc-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-config-item{color:#666;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:#262626;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:#f5f5f5;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-field-input{width:100%}._fd-field-input>.fc-icon{color:#a8abb2;cursor:pointer;height:24px;position:absolute;right:28px;text-align:center;top:1px;width:24px;z-index:1}._fd-field-input>.fc-icon:hover{color:#2e73ff}._fd-field-input .el-input-group__append{color:#606266;cursor:pointer;margin:0;padding:0;width:25px}._fd-fn-list,._fd-fn-list .el-badge{width:100%}._fd-fn-list .el-button{border-color:#2e73ff;color:#2e73ff;font-weight:400;width:100%}._fd-fn-list-dialog .el-dialog__body{padding:10px 20px}._fd-fn-list-con .el-main{padding:0}._fd-fn-list-l,._fd-fn-list-r{border:1px solid #ececec;display:flex;flex:1;flex-direction:column;height:100%}._fd-fn-list-head{align-items:center;background:#f8f9ff;border-bottom:1px solid #eee;display:flex;padding:5px 15px}._fd-fn-list-head .el-button.is-link{color:#2f73ff}._fd-fn-list-r{border-left:0}._fd-fn-list-r ._fd-fn-list-head{justify-content:flex-end}._fd-fn-list-l>.el-main,._fd-fn-list-r>.el-main{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0;width:100%}._fd-fn-list-r>.el-main{flex-direction:column}._fd-fn-list-l .el-menu{border-right:0;border-top:0;overflow:auto;padding:0 10px 5px;width:100%}._fd-fn-list-l .el-menu-item.is-active{background:#e4e7ed;color:#303133}._fd-fn-list-l .el-menu-item{border:1px solid #ececec;border-radius:5px;height:auto;line-height:1em;margin-top:5px;padding:0}._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:#aaa;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:#000;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-table-view{overflow:auto}._fd-table-view-cell{background:#fff;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}._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-language-list{max-height:320px;overflow:auto;padding-top:70px}._fd-language-input .el-input-group__append{color:#aaa;cursor:pointer;margin:0;padding:0;width:25px}._fd-language-input.is-variable input{color:#2e73ff}._fd-language-header,._fd-language-item{border-bottom:1px solid #ececec;display:flex;padding:0 12px}._fd-language-header{background-color:#fff;color:#262626;flex-direction:column;font-weight:500;left:0;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:#2e73ff;cursor:pointer;font-size:14px}._fd-language-name{display:flex}._fd-language-name>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._fd-language-item{cursor:pointer}._fd-language-item:hover{background-color:#ccdfff;color:#2e73ff}._fd-language-popover{padding:0!important}._fd-validate{display:flex;flex-direction:column;width:100%}._fd-validate-btn{border-color:#2e73ff;color:#2e73ff;font-weight:400;width:100%}._fd-validate-pop .el-dropdown-menu__item{width:248px}._fd-validate-item{border-bottom:1px dashed #ececec;margin-bottom:10px}._fd-validate-item .el-col-12:first-child{padding-right:5px}._fd-validate-item .el-col-12+.el-col-12{padding-left:5px}._fd-validate-item .el-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:#ececec;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:#ff2e2e}._fd-validate .append-msg{cursor:pointer}._fd-validate .el-input-group__append{padding:0 10px}._fd-required{align-items:center;display:flex;width:100%}._fd-required .el-input{margin-left:15px}._fd-required .el-switch{height:28px}._fd-value-input .el-input__validateIcon{display:none}._fd-value-input .el-select,._fd-value-input .el-select__wrapper{height:100%}._td-table-opt[data-v-27bd6a26]{width:100%}._td-table-opt .el-table[data-v-27bd6a26]{z-index:1}._td-table-opt-handle[data-v-27bd6a26]{align-items:center;display:flex;justify-content:space-between;padding-right:5px}._fd-tree-opt ._fd-tree-opt-btn{background-color:#2f73ff;color:#fff;cursor:pointer;float:left;height:19px;justify-content:center;line-height:20px;padding-bottom:1px;text-align:center;width:18px}._fd-tree-opt-node{align-items:center;display:flex}._fd-tree-opt-first{margin-right:5px;width:60px}._fd-tree-opt-last{width:165px}._fd-tree-opt-last._label{width:175px}._fd-tree-opt-last._label .el-input-group__append{width:65px}._fd-tree-opt ._fd-tree-opt-danger{background-color:#ff2d2e;border-radius:0 2px 2px 0}._fd-tree-opt .el-tree-node__content{height:28px;margin-bottom:3px}._fd-tree-opt .el-input__inner{border-right:0}._fd-tree-opt .el-input-group__append{background:#fff;padding-left:1px;padding-right:2px;width:90px}._fd-table-form{background:#fff;border:1px solid #ececec;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}._fc-table-form{color:#666;overflow:auto}._fc-table-form .form-create .el-form-item{margin-bottom:1px}._fc-table-form .form-create .el-form-item.is-error{margin-bottom:22px}._fc-table-form .el-form-item__label,._fc-table-form .van-field__label{display:none!important}._fc-table-form .el-form-item__content{display:flex;margin-left:0!important;width:100%!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._fc-disabled ._fc-tf-btn .fc-icon,._fc-table-form._fc-disabled>.el-button{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 .el-cascader,._fc-tf-table .el-date-editor,._fc-tf-table .el-input-number,._fc-tf-table .el-select,._fc-tf-table .el-slider{width:100%}._fc-tf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fd-tf-col ._fd-tf-con .el-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 .el-form-item__label{display:none!important}._fd-tf-con{display:flex;flex:1;width:100%}._fd-tf-con .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._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:flex;flex-shrink:0;margin-top:4px;width:100%}._fd-tf-con ._fc-l-item>*{display:none!important}._fd-tf-con .el-cascader,._fd-tf-con .el-date-editor,._fd-tf-con .el-input-number,._fd-tf-con .el-select,._fd-tf-con .el-slider{width:100%}._fd-size-input{align-items:center;display:flex}._fd-size-input .el-input-number--small{width:122px}._fd-size-input .el-button{font-size:14px;margin-left:3px;padding:5px;width:25px}._fd-color-input{width:150px}._fd-color-input .el-input .el-color-picker{margin:0}._fd-color-input .el-input .el-input-group__append{padding:0;width:24px}._fd-color-input .el-input .el-color-picker__trigger{border-left:0;border-radius:0 3px 3px 0}._fd-box-size-input .el-form{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._fd-box-size-input .el-radio-group{width:100%}._fd-box-size-input .el-radio-button__inner{padding:4px;width:100%}._fd-box-size-input .el-radio-button{flex:1}._fd-box-size-input ._fd-size-input .el-input-number--small{width:100%}._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:#ececec;color:#262626;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:#aaa;display:flex;position:absolute;right:5px;top:5px}._fd-box-space-input ._padding .fc-icon{color:#262626;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:#2e73ff}._fd-box-space-input ._fd-x{margin:0 5px}._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:140px}._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:#2e73ff;outline:1px dashed #2e73ff}.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{display:flex;flex-wrap:wrap}._fd-radius-item{box-sizing:border-box;padding:5px 0;width:50%}._fd-radius-item,._fd-radius-item ._fd-radius-icon{align-items:center;display:flex;justify-content:center}._fd-radius-item ._fd-radius-icon{height:24px;width:24px}._fd-radius-item ._fd-size-input .el-input-number--small{width:70px}._fd-font-input{display:flex;justify-content:center;padding:0 5px}._fd-fi-box{overflow:hidden;width:150px}._fd-font-input .el-form{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._fd-font-input .el-form--inline .el-form-item{margin:0;padding:0}._fd-font-input ._fd-size-input .el-input-number--small{width:100%}._fd-shadow-content{align-items:center;display:flex;flex-direction:column;justify-content:space-between}._fd-sc-form .fc-icon{font-size:12px}._fd-shadow-content .el-form-item{box-sizing:border-box;margin:0 0 5px!important;padding:0 0 0 10px;width:50%}._fd-shadow-content .el-input__wrapper{flex:1}._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 .el-select__placeholder{text-align:center}._fd-shadow-content .el-input-group__append{padding:0;width:55px}._fd-shadow-content .el-input{width:105px}._fd-shadow-content ._fd-sc-right{margin-top:10px}._fd-shadow-content ._fd-sc-radio{width:105px}._fd-shadow-content ._fd-sc-radio .el-radio-button{display:flex;flex:1}._fd-shadow-content ._fd-sc-radio .el-radio-button__inner{width:100%}._fd-shadow-input ._fd-ci-con{width:150px}._fd-shadow-input :focus-visible{outline:0 none}._fd-si-input .el-input-group__append{display:inline-flex;padding:0;width:24px}._fd-si-input .el-input__wrapper{flex:1}._fd-shadow-input ._fd-ci-con .fc-icon{cursor:pointer}._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 .el-slider{flex:1;margin-right:15px}._fc-designer{--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-tool-border-color:#2e73ff;background-color:#fff;cursor:default;height:100%;min-height:500px;overflow:hidden;position:relative}._fc-designer>.el-main{bottom:0;left:0;padding:0;position:absolute;right:0;top:0}._fc-l-menu{border-right:1px solid #ececec;border-top:1px solid #ececec;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:#2e73ff}._fc-l-menu-form{border-bottom:1px solid #ececec}._fc-l-menu-item i{font-size:22px}._fc-l-menu-item i:hover{color:#2e73ff}._fc-l-menu-item .el-badge__content{--el-badge-size:15px;--el-badge-padding:4px;background-color:#2e73ff}._fc-l-label{color:#262626;font-size:14px;font-weight:500;line-height:17px;margin-top:5px;padding:12px}._fc-l-info{color:#aaa;font-size:12px;font-style:normal;font-weight:400;line-height:17px;padding:0 12px;text-align:left}._fc-l>.el-container{height:100%}._fc-m .form-create ._fc-l-item{align-items:center;background:#f5f5f5;border:1px dashed #000;border-radius:4px;color:#000;display:flex!important;height:30px;justify-content:center;margin:5px 0;overflow:hidden;padding-bottom:0;transition:all .3s ease;width:100%}._fc-m .form-create ._fc-l-item ._fc-l-icon{display:inline-block!important;padding:0 4px}._fc-m .form-create ._fc-l-item ._fc-l-name{display:inline-block!important;font-size:12px}._fc-l,._fc-m,._fc-r{border-top:1px solid #ececec;box-sizing:border-box}._fc-r{--el-color-primary:#2e73ff}._fc-r-tab-props{padding:0 20px;position:relative}._fc-r-tools-close{color:#666;cursor:pointer;position:absolute;right:24px;top:12px;transform:rotate(45deg)}._fc-r-title{color:#333;font-size:12px;margin:15px 0 5px}._fc-r-sub ._fc-r-title{align-items:center;display:flex;justify-content:space-between}._fc-r-sub .fc-icon{cursor:pointer}._fc-r-sub ._fd-config-item+._fd-config-item{margin-top:8px}._fc-r-sub>._fd-config-item>._fd-ci-head{padding-left:8px;position:relative}._fc-r-sub>._fd-config-item>._fd-ci-head:before{background-color:#333;border-radius:25px;content:" ";height:5px;left:0;position:absolute;width:5px}._fc-r-config{display:grid;grid-template-areas:"a" "b" "c" "d" "e";grid-template-columns:repeat(1,1fr)}._fc-r-name-input .el-input-group__append{color:#606266;cursor:pointer;margin:0;padding:0;width:25px}._fc-r-name-input .icon-group{cursor:pointer}._fc-r-name-input .icon-group:hover{color:#2e73ff}._fc-r .el-main{padding-bottom:100px}._fc-l .el-main{padding:0}._fc-l .el-tree-node__label{color:#333;font-weight:400;padding:3px}._fc-l .el-tree-node__content{height:30px;margin-top:5px}._fc-l .el-tree-node__content>.el-tree-node__expand-icon{color:#333}._fc-l .el-tree-node__expand-icon.is-leaf{color:transparent}@keyframes a{0%{transform:rotate(0)}to{transform:rotate(1turn)}}._fc-loading{animation:a 2s linear infinite}._fc-tree-node{align-items:center;display:flex;height:26px;justify-content:space-between;line-height:26px;padding-right:5px;width:100%}._fc-tree-node.active,._fc-tree-node.active .icon-more{color:#2e73ff}._fc-tree-label{align-items:center;display:flex}._fc-tree-label>i{font-weight:700;margin-right:5px}._fc-tree-more{align-items:center;display:flex;font-weight:700;padding:0 15px}._fc-l-tabs{border-bottom:1px solid #ececec;display:flex;padding:0}._fc-l-tab{box-sizing:border-box;color:#303133;display:inline-block;flex:1;font-size:14px;font-weight:600;height:40px;line-height:40px;list-style:none;position:relative;text-align:center}._fc-l ._fc-l-tab.active{border-bottom:2px solid #409eff;color:#409eff}._fc-l-group{border:1px solid #eee;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-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:#fff;color:#000;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:#2e73ff;color:#fff}._fc-m-tools{border:1px solid #ececec;border-top:0;height:40px;justify-content:space-between;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:#2e73ff}._fc-m-tools-l .devices .fc-icon+.fc-icon{margin-left:5px}._fc-m-tools .line{background:#d8d8d8;height:24px;margin:0 10px;width:1px}._fc-m-tools .el-button{align-items:center;border-radius:5px;display:flex;padding:5px 10px}._fc-m-tools .el-button>span{align-items:center;display:inline-flex;justify-content:center}._fc-m-tools .el-button+.el-button,._fc-m-tools .el-dropdown{margin-left:10px}._fc-m-tools ._fd-m-extend{background-color:#f1f1f1;border-color:#ccc;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 .el-switch__action{height:18px;left:2px;width:18px}._fc-m-tools ._fd-input-btn .is-checked .el-switch__action{--el-color-white:#2e73ff;left:calc(100% - 20px)}._fc-m-tools ._fd-input-btn .el-switch__core,._fc-m-tools ._fd-input-btn .is-checked .el-switch__core{--el-switch-on-color:var(--el-switch-off-color);border-radius:16px;height:24px;width:46px}._fc-m-tools-r .fc-icon{font-size:14px}._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:#999;cursor:not-allowed}._fc-r .el-tabs__nav-wrap:after{background-color:#ececec;height:1px}._fc-r ._fc-r-tabs{border-bottom:1px solid #ececec;display:flex;padding:0}._fc-r .el-button,._fc-r .el-radio-button__inner,._fc-r .el-table__cell .cell{font-weight:400}._fc-r ._fc-r-tab{box-sizing:border-box;color:#303133;display:inline-block;flex:1;font-size:14px;font-weight:600;height:40px;line-height:40px;list-style:none;position:relative;text-align:center}._fc-r ._fc-r-tab.active{border-bottom:2px solid #409eff;color:#409eff}._fc-m-con{background:#f5f5f5;padding:20px 20px 36px;position:relative}._fc-m-drag{box-sizing:border-box;margin:0 auto;overflow:auto;padding:2px}._fc-m-input{padding:5px 5px 80px}._fc-m-input-handle{background:#fff;bottom:17px;box-shadow:0 2px 10px #0000000d;left:0;margin:20px;padding:12px;position:absolute;right:0;text-align:center;z-index:2}._fc-m-drag.mobile{width:400px}._fc-m-drag.pad{width:770px}._fc-m-drag,.draggable-drag{background:#fff;height:100%;position:relative}._fc-m-drag>form,._fc-m-drag>form>.el-row{height:100%}._fc-m-drag .el-tree{width:100%}._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 #ececec}._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 .el-form-item{margin-bottom:10px!important}._fc-r .el-form-item__label{color:#333}._fc-upload-preview{border-radius:5px;display:inline-block;height:120px;overflow:hidden;width:120px}._fc-tabs .el-tabs__item{font-weight:400}._fc-tabs .el-tabs__content{overflow:auto}._fc-tabs .el-tabs__nav-scroll{padding:0 15px}._fc-tabs .el-tab-pane{margin-right:15px}._fc-tabs .el-tabs__nav-wrap:after{height:1px}.form-create .fc-none{display:none}._fd-draggable-drag.drag-holder,._fd-elCard-drag.drag-holder,._fd-elCollapseItem-drag.drag-holder,._fd-elTabPane-drag.drag-holder,._fd-group-drag.drag-holder,._fd-subForm-drag.drag-holder,._fd-tableFormColumn-drag.drag-holder{background:#f5f5f5;background-size:0;min-height:90px;position:relative}._fc-child-empty:after,._fd-draggable-drag.drag-holder:after,._fd-elCard-drag.drag-holder:after,._fd-elCollapseItem-drag.drag-holder:after,._fd-elTabPane-drag.drag-holder:after,._fd-group-drag.drag-holder:after,._fd-subForm-drag.drag-holder:after,._fd-tableFormColumn-drag.drag-holder:after{align-items:center;bottom:0;color:#aaa;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:#fff}._fd-draggable-drag.drag-holder:after{font-size:16px}._fc-child-empty:after{content:var(--fc-child-empty);font-family:fc-icon!important}.fc-configured{color:#999;margin-left:5px}._fc-manage-text{color:#2f73ff;cursor:pointer;font-size:12px;margin-left:4px}._fc-manage-text i{font-size:12px}._fc-message-error{background-color:#fff;border-color:#fff;border-radius:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;padding:9px 13px;top:16px;z-index:3}._fc-message-error>.el-icon{font-size:18px}._fc-message-error .el-message__content{color:#000000e0;font-size:14px}._fd-preview-copy{align-items:center;background:#2e73ff33;border-radius:10px;color:#2e73ff;cursor:pointer;display:flex;height:28px;justify-content:center;position:absolute;right:35px;top:65px;width:28px}._fd-preview-dialog{border-radius:6px;padding-top:0}._fd-preview-dialog .el-dialog__header{float:right;position:absolute;right:0;top:0;z-index:1}._fd-preview-code{margin-top:0;max-height:510px;overflow:auto}._fd-preview-tabs .el-tabs__nav-wrap:after{height:1px}._fd-preview-tabs .el-tabs__item{height:46px}._fd-preview-code>code{white-space:pre-wrap}._fd-row-line{background:#d8d8d8;height:1px;margin:10px 0;width:100%}.CodeMirror-hints{z-index:4}@font-face{font-family:fc-icon;src:url(data:font/woff;base64,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) 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-up:before{content:"\\e697";display:inline-block;transform:rotate(180deg)}.icon-down:before{content:"\\e609"}.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"}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(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();const dt={type(t,a){return Object.prototype.toString.call(t)==="[object "+a+"]"},Undef(t){return t==null},Element(t){return typeof t=="object"&&t!==null&&t.nodeType===1&&!dt.Object(t)},trueArray(t){return Array.isArray(t)&&t.length>0},Function(t){const a=this.getType(t);return a==="Function"||a==="AsyncFunction"},getType(t){const a=Object.prototype.toString.call(t);return/^\[object (.*)\]$/.exec(a)[1]},empty(t){return t==null||Array.isArray(t)&&Array.isArray(t)&&!t.length?!0:typeof t=="string"&&!t}};["Date","Object","String","Boolean","Array","Number"].forEach(t=>{dt[t]=function(a){return dt.type(a,t)}});function Di(t,a){return{}.hasOwnProperty.call(t,a)}function Ma(t,a,o){t[a]=o}function Qa(t,a={},o){let i=!1;for(let n in a)if(Object.prototype.hasOwnProperty.call(a,n)){let l=a[n];if((i=Array.isArray(l))||dt.Object(l)){let f=t[n]===void 0;i?(i=!1,f&&Ma(t,n,[])):l._clone&&o!==void 0||f&&Ma(t,n,{}),t[n]=Qa(t[n],l,o)}else Ma(t,n,l),dt.Undef(l)||(dt.Undef(l.__json)||(t[n].__json=l.__json),dt.Undef(l.__origin)||(t[n].__origin=l.__origin))}return o!==void 0&&Array.isArray(t)?t.filter(n=>!n||!n.__ctrl):t}function Nt(t){return Qa({},{value:t}).value}function qm(t,a,o){return`[form-create ${t}]: ${a}`}function Jm(t,a){console.error(qm("err",t))}const Ed="[[FORM-CREATE-PREFIX-",Cd="-FORM-CREATE-SUFFIX]]";function Yl(t){return new Function("return "+t)()}function Km(t,a){if(t&&dt.String(t)&&t.length>4){let o=t.trim(),i=!1;try{if(o.indexOf(Cd)>0&&o.indexOf(Ed)===0)o=o.replace(Cd,"").replace(Ed,""),i=!0;else if(o.indexOf("$FN:")===0)o=o.substring(4),i=!0;else if(o.indexOf("$EXEC:")===0)o=o.substring(6),i=!0;else if(o.indexOf("$GLOBAL:")===0){const l=o.substring(8);return o=function(...f){const c=f[0].api.getGlobalEvent(l);if(c)return c.call(this,...f)},o.__json=t,o.__inject=!0,o}else{if(o.indexOf("$FNX:")===0)return o=Yl("function($inject){"+o.substring(5)+"}"),o.__json=t,o.__inject=!0,o;(!a&&o.indexOf("function ")===0&&o!=="function "||!a&&o.indexOf("function(")===0&&o!=="function(")&&(i=!0)}if(!i)return t;let n;try{n=Yl(o)}catch{n=Yl("function "+o)}return n.__json=t,n}catch(n){Jm(`解析失败:${o}
- err: ${n}`);return}}return t}function Zm(t){const a=t.replace(/(-[a-z])/g,function(o){return o.replace("-","").toLocaleUpperCase()});return Zu(a)}function Zu(t){return t.replace(t[0],t[0].toLowerCase())}const Wf={name:"zh-cn",form:{field:"字段 ID",title:"字段名称",info:"提示信息",control:"联动数据",labelPosition:"标签的位置",labelStyle:"标签的样式",labelSuffix:"标签的后缀",size:"表单的尺寸",event:"表单事件",labelWidth:"标签的宽度",hideRequiredAsterisk:"隐藏必填字段的标签旁边的红色星号",showMessage:"显示校验错误信息",inlineMessage:"以行内形式展示校验信息",submitBtn:"是否显示表单提交按钮",resetBtn:"是否显示表单重置按钮",appendChild:"添加子级",formMode:"表单模式",formName:"表单名称",componentMode:"生成组件",htmlMode:"生成HTML",document:"帮助文档",controlDocument:"需要更详细的配置方法?请查看{doc}",onSubmit:"表单提交时触发",onReset:"表单重置后触发",onCreated:"表单组件初始化完毕后触发",onMounted:"表单组件渲染完毕后触发",onReload:"表单渲染规则重载后触发",onChange:"表单组件的值发生变化时触发",beforeFetch:"远程数据请求发送前触发"},warning:{name:"组件的唯一标识,用于获取和修改该组件的配置规则。通过该标识可以精确定位组件,实现对组件属性和行为的控制。",field:"组件对应的字段名用于与组件的数据进行绑定。字段名需以字母开头,以确保能够正确识别。",fetch:"远程数据通过远程请求加载组件的配置项。配置请求参数后,组件会自动发起请求,获取远程数据并根据返回的结果更新组件。",fetchQuery:"定义请求的 GET 参数,通过 URL 传递数据。",fetchData:"定义请求的 POST 参数,通过请求体传递数据。",fetchDataType:"选择请求体的数据类型,确保数据格式正确。",fetchParse:"请求返回后,可以通过处理函数对返回的结果进行处理,将结果转换为组件所需的数据和结构。",language:"管理页面的多语言数据,在组件中配置不同语言的文本,支持一键切换语言体系,便于在多语言环境下使用和展示内容。"},computed:{fieldUsed:"【{label}】在计算公式中被使用,请先修改对应公式",fieldExist:"【{label}】字段已存在",fieldEmpty:"字段名称不能为空",fieldChar:"字段名称必须以字母开头"},validate:{type:"字段类型",typePlaceholder:"请选择",trigger:"触发方式",mode:"验证方式",modes:{required:"必填",pattern:"正则表达式",validator:"自定义验证",min:"最小值",max:"最大值",len:"长度"},types:{string:"文本",boolean:"布尔",array:"多选",number:"数字",integer:"整数",float:"小数",object:"合集",date:"日期",url:"URL链接",email:"邮箱地址"},message:"错误信息",auto:"自动获取",autoRequired:"请输入{title}",autoMode:"请输入正确的{title}",requiredPlaceholder:"请输入提示语",required:"是否必填",rule:"验证规则"},tableOptions:{handle:"操作",add:"添加",empty1:"点击右下角",empty2:"按钮添加一列",rmCol:"删除当前列",rmRow:"删除当前行",splitRow:"拆分成行",splitCol:"拆分成列",mergeBottom:"向下合并",mergeRight:"向右合并",addTop:"添加上列",addBottom:"添加下列",addLeft:"添加左列",addRight:"添加右列",keyValue:"键值对"},struct:{title:"编辑数据",only:"【{label}】只允许添加一个",errorMsg:"输入的内容语法错误",configured:"已配置"},event:{title:"设置事件",create:"创建事件",list:"事件列表",placeholder:"请输入事件的名称",saveMsg:"请先保存当前正在编辑的事件",type:"类型",info:"说明",label:"字段",inject:{api:"当前表单的api",rule:"当前表单的生成规则",self:"组件的生成规则",option:"表单的配置",args:"事件的原始参数"}},eventInfo:{blur:"失去焦点时触发",focus:"获得焦点时触发",change:"当绑定值变化时触发",input:"在值改变时触发",clear:"在点击清空按钮时触发",close:"关闭组件时触发",click:"点击组件时触发",add:"增加时触发",delete:"删除时触发",visibleChange:"下拉框出现/隐藏时触发",calendarChange:"在日历所选日期更改时触发",panelChange:"当日期面板改变时触发",open:"打开的回调",opened:"打开动画结束时的回调",closed:"关闭动画结束时的回调",openAutoFocus:"输入焦点聚焦在内容时的回调",closeAutoFocus:"输入焦点从内容失焦时的回调",submit:"表单提交时触发",confirm:"点击确认按钮时触发",validateFail:"表单验证失败时触发",hook_load:"组件规则加载后触发",hook_mounted:"组件挂载后触发",hook_deleted:"组件规则被移除后触发",hook_watch:"组件规则发生变化后触发",hook_value:"组件的值发生变化后触发",hook_hidden:"组件显示状态发生变化后触发"},fetch:{title:"设置数据源",create:"创建数据源",config:"请求配置",action:"请求链接",actionRequired:"请输入正确的链接",placeholder:"请输入数据源的名称",method:"请求方式",data:"附带数据",dataType:"数据类型",headers:"请求头部",query:"请求参数",parse:"数据处理",response:"接口返回的数据",onError:"错误处理",remote:"远程数据",static:"静态数据",optionsType:{fetch:"远程数据",struct:"静态数据"}},style:{width:"宽度",height:"高度",color:"颜色",backgroundColor:"背景色",margin:"外边距",padding:"内边距",borderRadius:"圆角",border:"边框",solid:"实线",dashed:"虚线",dotted:"点状虚线",double:"双实线",opacity:"透明度",scale:"缩放",minWidth:"最小宽",minHeight:"最小高",maxWidth:"最大宽",maxHeight:"最大高",overflow:{name:"溢出",visible:"可见",hidden:"隐藏",scroll:"滚动",auto:"溢出后自动滚动"},shadow:{name:"阴影",x:"x轴偏移量",y:"y轴偏移量",vague:"模糊半径",extend:"扩散半径",inset:"向内",external:"向外",mode:"模式",classic:"经典",flat:"扁平",solid:"立体"},font:{name:"字体",size:"大小",align:"对齐方式",height:"行高",spacing:"字间距",preview:"样式预览"},decoration:{name:"修饰",underline:"下划线","line-through":"删除线",overline:"上划线"},weight:{name:"粗细",300:"细体",400:"常规体",500:"中黑体",700:"中粗体"}},designer:{component:"组件配置",id:"唯一值",name:"编号",type:"组件类型",form:"表单配置",json:"渲染规则",style:"组件样式配置",rule:"基础配置",advanced:"高级配置",props:"属性配置",customProps:"自定义属性配置",validate:"验证配置",event:"事件配置",clearWarn:"清空后将不能恢复,确定要清空吗?",childEmpty:"点击右下角 \\e789 按钮添加一列",dragEmpty:"拖拽左侧列表中的组件到此处",unload:"确定离开当前页面吗?",comList:"组件列表"},language:{name:"国际化配置",add:"新增词条",batchRemove:"批量删除",select:"选择多语言"},menu:{main:"基础组件",aide:"辅助组件",layout:"布局组件",component:"组件",subform:"子表单组件",tree:"大纲"},props:{disabled:"禁用",time:"时间",size:"尺寸",email:"邮箱",number:"数字",globalData:"全局数据",mobile:"移动端",reactive:"响应式",pc:"电脑端",title:"标题",content:"内容",collection:"合集",group:"分组",custom:"自定义",change:"改变",blur:"失去焦点",preview:"预览",clear:"清空",cancel:"取消",close:"关闭",ok:"确定",save:"保存",refresh:"刷新",submit:"提交",reset:"重置",copy:"复制",delete:"删除",hide:"隐藏",show:"显示",position:"位置",render:"渲染",large:"大",default:"默认",small:"小",always:"常显",never:"不显示",hover:"悬浮",click:"点击",button:"按钮",year:"年份",month:"月份",date:"日期",dates:"日期多选",week:"一周",datetime:"日期时间","datetime-local":"日期时间",datetimerange:"日期时间区间",daterange:"日期区间",monthrange:"月份区间",left:"左对齐",right:"右对齐",top:"顶部",text:"文字",picture:"图片","picture-card":"卡片",center:"居中",vertical:"竖向",horizontal:"横向",manage:"管理",key:"键名",name:"名称",value:"值",inputData:"默认值",append:"插入",options:"选项数据",option:"选项",callback:"回调",_self:"当前窗口",_blank:"新的窗口",_parent:"父级窗口",_top:"顶级窗口"},com:{cascader:{name:"级联选择器",event:{expandChange:"当展开节点发生变化时触发",removeTag:"在多选模式下,移除Tag时触发"},props:{props:"配置选项",placeholder:"输入框占位文本",disabled:"是否禁用",clearable:"是否支持清空选项",showAllLevels:"输入框中是否显示选中值的完整路径",collapseTags:"多选模式下是否折叠Tag",collapseTagsTooltip:"当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签",separator:"选项分隔符",filterable:"该选项是否可以被搜索",tagType:"标签类型"},propsOpt:{multiple:"是否多选",expandTrigger:"次级菜单的展开方式",checkStrictly:"是否严格的遵守父子节点不互相关联",emitPath:"在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组",value:"指定选项的值为选项对象的某个属性值",label:"指定选项标签为选项对象的某个属性值",children:"指定选项的子选项为选项对象的某个属性值",disabled:"指定选项的禁用为选项对象的某个属性值",leaf:"指定选项的叶子节点的标志位为选项对象的某个属性值"}},checkbox:{name:"多选框",props:{input:"是否可以填写",type:"按钮类型",disabled:"是否禁用",min:"可被勾选的最小数量",max:"可被勾选的最大数量",textColor:"当按钮为活跃状态时的字体颜色",fill:"当按钮为活跃状态时的边框和背景颜色"}},col:{name:"布局格子",props:{span:"栅格占据的列数",offset:"栅格左侧的间隔格数",push:"栅格向右移动格数",pull:"栅格向左移动格数"}},colorPicker:{name:"颜色选择器",event:{activeChange:"面板中当前显示的颜色发生改变时触发"},props:{disabled:"是否禁用",showAlpha:"是否支持透明度选择",colorFormat:"颜色的格式",predefine:"预定义颜色"}},datePicker:{name:"日期",props:{pickerOptions:"当前时间日期选择器特有的选项",readonly:"完全只读",disabled:"禁用",type:"显示类型",editable:"文本框可输入",clearable:"是否显示清除按钮",placeholder:"非范围选择时的占位内容",startPlaceholder:"范围选择时开始日期的占位内容",endPlaceholder:"范围选择时结束日期的占位内容",format:"显示在输入框中的格式",align:"对齐方式",rangeSeparator:"选择范围时的分隔符",unlinkPanels:"在范围选择器里取消两个日期面板之间的联动"}},dateRange:{name:"日期区间"},timeRange:{name:"时间区间"},elAlert:{name:"提示",description:"说明文字",props:{title:"标题",type:"主题",description:"辅助性文字",closable:"是否可关闭",center:"文字是否居中",closeText:"关闭按钮自定义文本",showIcon:"是否显示图标",effect:"选择提供的主题"}},elButton:{name:"按钮",props:{formCreateChild:"内容",size:"尺寸",type:"类型",plain:"是否朴素按钮",round:"是否圆角按钮",circle:"是否圆形按钮",loading:"是否加载中状态",disabled:"是否禁用状态"}},elCard:{name:"卡片",props:{header:"标题",shadow:"阴影显示时机"}},elCollapse:{name:"折叠面板",event:{change:"切换当前活动面板,在手风琴模式下其类型是string,在其他模式下是array"},props:{accordion:"是否手风琴模式"}},elCollapseItem:{name:"面板",props:{title:"面板标题",name:"唯一标志符",disabled:"是否禁用"}},elDivider:{name:"分割线",props:{formCreateChild:"设置分割线文案",contentPosition:"设置分割线文案的位置"}},elTabPane:{name:"选项卡",props:{label:"选项卡标题",disabled:"是否禁用",name:"选项卡的标识符",lazy:"标签是否延迟渲染"}},elTabs:{name:"标签页",event:{tabClick:"tab 被选中时触发",tabChange:"activeName 改变时触发",tabRemove:"点击 tab 移除按钮时触发",tabAdd:"点击 tab 新增按钮时触发",edit:"点击 tab 的新增或移除按钮后触发"},props:{type:"风格类型",closable:"标签是否可关闭",tabPosition:"选项卡所在位置",stretch:"标签的宽度是否自撑开"}},elTag:{name:"标签",props:{formCreateNative:"是否显示标题",formCreateTitle:"标题",formCreateChild:"标签内容",type:"标签的类型",size:"标签的尺寸",effect:"标签的主题",closable:"是否可关闭",disableTransitions:"是否禁用渐变动画",hit:"是否有边框描边",round:"是否为圆形",color:"背景色"}},elTransfer:{name:"穿梭框",event:{leftCheckChange:"左侧列表元素被用户选中 / 取消选中时触发",rightCheckChange:"右侧列表元素被用户选中 / 取消选中时触发"},props:{filterable:"是否可搜索",filterPlaceholder:"搜索框占位符",targetOrder:"右侧列表元素的排序策略",targetOrderInfo:"若为 original,则保持与数据相同的顺序;若为 push,则新加入的元素排在最后;若为 unshift,则新加入的元素排在最前",titles:"自定义列表标题",buttonTexts:"自定义按钮文案",props:"数据源的字段别名"}},elTreeSelect:{name:"树形选择",event:{removeTag:"多选模式下移除tag时触发"},props:{multiple:"是否多选",disabled:"是否禁用",clearable:"是否可以清空选项",collapseTags:"多选时是否将选中值按文字的形式展示",multipleLimit:"多选时用户最多可以选择的项目数,为 0 则不限制",placeholder:"占位符",props:"配置选项",renderAfterExpand:"是否在第一次展开某个树节点后才渲染其子节点",defaultExpandAll:"是否默认展开所有节点",expandOnClickNode:"是否在点击节点的时候展开或者收缩节点",checkOnClickNode:"是否在点击节点的时候选中节点",nodeKey:"每个树节点用来作为唯一标识的属性,整棵树应该是唯一的"}},elImage:{name:"图片",props:{src:"图片链接"}},fcEditor:{name:"富文本框",props:{disabled:"是否禁用"}},fcRow:{name:"栅格布局",props:{gutter:"栅格间隔",type:"flex布局模式",justify:"flex布局下的水平排列方式",align:"flex布局下的垂直排列方式"}},fcTable:{name:"表格布局",props:{border:"是否显示边框",borderColor:"边框颜色",borderWidth:"边框宽度"}},fcTableGrid:{name:"格子"},group:{name:"子表单",props:{disabled:"是否禁用",syncDisabled:"是否与子表单强制同步禁用状态",expand:"设置默认展开几项",button:"是否显示操作按钮",sortBtn:"是否显示排序按钮",min:"设置最小添加几项",max:"设置最多添加几项"}},html:{name:"HTML",props:{formCreateNative:"是否显示标题",formCreateTitle:"标题",formCreateChild:"内容"}},input:{name:"输入框",event:{change:"当值改变时,当组件失去焦点或用户按Enter时触发"},props:{type:"类型",maxlength:"最大输入长度",minlength:"最小输入长度",placeholder:"输入框占位文本",clearable:"是否显示清除按钮",disabled:"是否禁用",readonly:"是否只读"}},inputNumber:{name:"计数器",props:{precision:"数值精度",min:"设置计数器允许的最小值",max:"设置计数器允许的最大值",step:"计数器步长",stepStrictly:"是否只能输入 step 的倍数",disabled:"是否禁用计数器",controls:"是否使用控制按钮",controlsPosition:"控制按钮位置",placeholder:"输入框占位文本"}},password:{name:"密码输入框",event:{change:"当值改变时,当组件失去焦点或用户按Enter时触发"},props:{disabled:"是否禁用",readonly:"是否只读",maxlength:"最大输入长度",minlength:"最小输入长度",placeholder:"输入框占位文本",clearable:"是否显示清除按钮"}},radio:{name:"单选框",props:{input:"是否可以填写",disabled:"是否禁用",type:"按钮形式",textColor:"按钮形式激活时的文本颜色",fill:"按钮形式激活时的填充色和边框色"}},rate:{name:"评分",props:{max:"最大分值",disabled:"是否禁用",allowHalf:"是否允许半选",voidColor:"未选中时图标的颜色",disabledVoidColor:"只读时未选中时图标的颜色",voidIconClass:"未选中时图标的类名",disabledVoidIconClass:"只读时未选中时图标的类名",showScore:"是否显示当前分数",textColor:"辅助文字的颜色",scoreTemplate:"分数显示模板"}},select:{name:"选择器",event:{removeTag:"多选模式下移除tag时触发"},props:{multiple:"是否多选",disabled:"是否禁用",clearable:"是否可以清空选项",collapseTags:"多选时是否将选中值按文字的形式展示",multipleLimit:"多选时用户最多可以选择的项目数,为 0 则不限制",placeholder:"占位符",filterable:"是否可搜索",allowCreate:"是否允许用户创建新条目",noMatchText:"搜索条件无匹配时显示的文字",noDataText:"选项为空时显示的文字",reserveKeyword:"多选且可搜索时,是否在选中一个选项后保留当前的搜索关键词",defaultFirstOption:"在输入框按下回车,选择第一个匹配项",remote:"其中的选项是否从服务器远程加载",remoteMethod:"自定义远程搜索方法"}},slider:{name:"滑块",props:{min:"最小值",max:"最大值",disabled:"是否禁用",step:"步长",showInput:"是否显示输入框,仅在非范围选择时有效",showInputControls:"在显示输入框的情况下,是否显示输入框的控制按钮",showStops:"是否显示间断点",range:"是否为范围选择",vertical:"是否竖向模式",height:"Slider 高度,竖向模式时必填"}},space:{name:"间距",props:{height:"高度"}},subForm:{name:"分组",props:{disabled:"是否禁用",syncDisabled:"是否与子表单强制同步禁用状态"}},switch:{name:"开关",props:{disabled:"是否禁用",width:"宽度(px)",activeText:"打开时的文字描述",inactiveText:"关闭时的文字描述",activeValue:"打开时的值",inactiveValue:"关闭时的值",activeColor:"打开时的背景色",inactiveColor:"关闭时的背景色"}},tableForm:{name:"表格表单",props:{disabled:"是否禁用",filterEmptyColumn:"是否过滤空行的数据",max:"最多添加几行,为 0 则不限制"}},tableFormColumn:{name:"表格格子",label:"自定义名称",props:{label:"标题",width:"宽度",color:"颜色",required:"是否显示必填星号"}},text:{name:"文字",props:{formCreateNative:"是否显示标题",formCreateTitle:"标题",formCreateChild:"内容"}},textarea:{name:"多行输入框",event:{change:"当值改变时,当组件失去焦点或用户按Enter时触发"},props:{disabled:"是否禁用",readonly:"是否只读",maxlength:"最大输入长度",minlength:"最小输入长度",showWordLimit:"是否显示统计字数",placeholder:"输入框占位文本",rows:"输入框行数",autosize:"高度是否自适应"}},timePicker:{name:"时间",props:{pickerOptions:"当前时间日期选择器特有的选项",readonly:"完全只读",disabled:"禁用",editable:"文本框可输入",clearable:"是否显示清除按钮",placeholder:"非范围选择时的占位内容",startPlaceholder:"范围选择时开始日期的占位内容",endPlaceholder:"范围选择时开始日期的占位内容",isRange:"是否为时间范围选择",arrowControl:"是否使用箭头进行时间选择",align:"对齐方式"}},tree:{name:"树形控件",event:{nodeClick:"当节点被点击的时候触发",nodeContextmenu:"当某一节点被鼠标右键点击时会触发该事件",checkChange:"当复选框被点击的时候触发",check:"点击节点复选框之后触发",currentChange:"当前选中节点变化时触发的事件",nodeExpand:"节点被展开时触发的事件",nodeCollapse:"节点被关闭时触发的事件",nodeDragStart:"节点开始拖拽时触发的事件",nodeDragEnter:"拖拽进入其他节点时触发的事件",nodeDragLeave:"拖拽离开某个节点时触发的事件",nodeDragOver:"在拖拽节点时触发的事件(类似浏览器的 mouseover 事件)",nodeDragEnd:"拖拽结束时(可能未成功)触发的事件",nodeDrop:"拖拽成功完成时触发的事件"},props:{emptyText:"内容为空的时候展示的文本",props:"配置选项",renderAfterExpand:"是否在第一次展开某个树节点后才渲染其子节点",defaultExpandAll:"是否默认展开所有节点",expandOnClickNode:"是否在点击节点的时候展开或者收缩节点,如果为 false,则只有点箭头图标的时候才会展开或者收缩节点。",checkOnClickNode:"是否在点击节点的时候选中节点",autoExpandParent:"展开子节点的时候是否自动展开父节点",checkStrictly:"在显示复选框的情况下,是否严格的遵循父子不互相关联的做法",accordion:"是否每次只打开一个同级树节点展开",indent:"相邻级节点间的水平缩进(px)",nodeKey:"每个树节点用来作为唯一标识的属性,整棵树应该是唯一的"}},upload:{name:"上传",info:"上传成功后,将接口返回的 URL 赋值给 file.url,或将返回结果赋值给 file.value,以便在后续的表单提交时获取这些数据。",event:{remove:"文件列表移除文件时触发",preview:"点击文件列表中已上传的文件时触发",error:"文件上传失败时触发",progress:"文件上传时触发",exceed:"当超出限制时触发"},props:{listType:"上传类型",multiple:"是否支持多选文件",action:"上传的地址(必填)",beforeUpload:"上传文件之前触发",onSuccess:"上传成功时触发",beforeRemove:"删除文件之前触发",headers:"设置上传的请求头部",data:"上传时附带的额外参数",name:"上传的文件字段名",withCredentials:"支持发送 cookie 凭证信息",accept:"接受上传的文件类型",autoUpload:"是否在选取文件后立即进行上传",disabled:"是否禁用",limit:"最大允许上传个数"}}}},Qf=(t,a)=>$m({message:t,type:a||"info",customClass:"_fc-message-tip"}),jn=t=>Qf(t,"error");function eg(t,a){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/element-ui";
- export default {
- components: {
- formCreate: formCreate.$form()
- },
- data () {
- const option = formCreate.parseJson('${a.replaceAll("\\","\\\\").replaceAll("'","\\'")}');
- return {
- formData: {},
- fapi: null,
- rule: formCreate.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}'),
- option: option
- }
- },
- methods: {
- onSubmit (formData) {
- //todo 提交表单
- }
- }
- }
- <\/script>`}function tg(t,a){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/element-ui";
- const option = ref(formCreate.parseJson('${a.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
- const rule = ref(formCreate.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
- const fapi = ref(null);
- const formData = ref({});
- const onSubmit = (formData) => {
- //todo 提交表单
- }
- <\/script>`}function ng(t,a){return`<html lang="zh">
- <head>
- <meta charset="UTF-8">
- <!-- Import style -->
- <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css"/>
- <!-- Import Vue 3 -->
- <script src="https://unpkg.com/vue@3"><\/script>
- <!-- Import element-plus -->
- <script src="https://unpkg.com/element-plus"><\/script>
- <!-- Import formCreate -->
- <script src="https://unpkg.com/@form-create/element-ui@3"><\/script>
- </head>
- <body>
- <div id="app">
- <form-create :rule="rule" :option="options" v-model="formData" v-model:api="api" @submit="onSubmit"></form-create>
- </div>
- <script>
- const App = {
- data() {
- return {
- rule: formCreate.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}'),
- options: formCreate.parseJson('${a.replaceAll("\\","\\\\").replaceAll("'","\\'")}'),
- formData: {},
- api: null,
- };
- },
- methods: {
- onSubmit(formData){
- console.log('submit', formData);
- }
- }
- };
- const app = Vue.createApp(App);
- app.use(ElementPlus).use(formCreate);
- app.mount("#app");
- <\/script>
- </body>
- </html>`}function Xf(){return{type:"Required",field:"formCreate$required",title:"是否必填"}}function er(t,a,o,i=[]){a.id||(a.id=1),o&&o--;for(let n=0;n<3;n++){const l={[a.label]:t+o*10+(n+1),[a.value]:""+a.id++};o&&er(t,a,o,l.children=[]),i.push(l)}return i}function Ro(t,a){const o=[{label:t("fetch.optionsType.struct"),value:2},{label:t("fetch.optionsType.fetch"),value:1}],i=[{value:1,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:a}}]},{value:2,rule:[{type:"TableOptions",field:"formCreate"+Do(a).replace(".",">"),props:{column:[{label:t("props.key"),key:"label"},{value:!0,label:t("props.value"),key:"value"}],keyValue:"label"}}]}];return{type:"radio",title:t("props.options"),field:"_optionType",value:2,options:o,props:{type:"button"},control:i}}function Ii(t,a,o,i){const n=[{label:t("fetch.optionsType.struct"),value:2},{label:t("fetch.optionsType.fetch"),value:1}],l=[{value:1,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:a}}]},{value:2,rule:[{type:"TreeOptions",field:"formCreate"+Do(a).replace(".",">"),props:{columns:{label:o,value:i},keyValue:o}}]}];return{type:"radio",title:t("props.options"),field:"_optionType",value:2,options:n,props:{type:"button"},control:l}}function Do(t){return t.replace(t[0],t[0].toLocaleUpperCase())}const dr=function(t){const a=/object ([a-zA-Z]*)/.exec(Object.prototype.toString.call(t));return a&&Fd[a[1].toLowerCase()]?Fd[a[1].toLowerCase()](t):t},Fd={object:function(t){var a=[];for(var o in t)!Di(t,o)||a.push(dr(o)+": "+(t[o]!=null?dr(t[o]):"null"));return`{
- `+a.join(`,
- `)+`
- }`},function:function(t){t=""+t;var a=/^ *([\w]+) *\(/.exec(t);return a&&a[1]!=="function"?"function "+t:t},array:function(t){for(var a=0,o=[];a<t.length;a++)o[a]=t[a]!=null?dr(t[a]):"null";return"["+o.join(", ")+"]"},string:function(t){for(var a=t.split(""),o=0;o<a.length;o++){var i=a[o];i>=" "?i==="\\"?a[o]="\\\\":i==='"'&&(a[o]='\\"'):a[o]=i===`
- `?"\\n":i==="\r"?"\\r":i===" "?"\\t":i==="\b"?"\\b":i==="\f"?"\\f":(i=i.charCodeAt(),"\\u00"+(i>15?1:0)+i%16)}return'"'+a.join("")+'"'}},Yf=function(t){if(t&&typeof t=="object"){for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let o=t[a];(Array.isArray(o)||dt.Object(o))&&Yf(o),dt.String(o)&&(t[a]=Km(o))}}return t};function rg(t,a,o){a=(a||"").split(".");let i=0,n=a.length;for(;t!=null&&i<n;)t=t[a[i++]];return i&&i===n&&t!==void 0?t:o}const ig=t=>(a,o)=>og(a,o,Hf(t)),og=(t,a,o)=>rg(o,t,"").replace(/\{(\w+)\}/g,(i,n)=>{var l;return`${(l=a?.[n])!=null?l:`{${n}}`}`}),ag=t=>{const a=Vn(()=>Hf(t).name),o=Vn(()=>Do(Zm(a.value||""))),i=Hm(t)?t:Ao(t);return{lang:a,name:o,locale:i,t:ig(t)}},es=t=>ag(Vn(()=>t.value||Wf)),jt=(t,a,o)=>a.map(i=>(i.label=t((o||"props")+"."+i.label||i.value)||i.label,i)),qe=(t,a,o)=>o.map(i=>(i.field==="formCreate$required"?i.title=t("validate.required")||i.title:i.field&&i.field!=="_optionType"&&(i.title=t("com."+a+"."+i.field)||i.title),i.type==="template"&&dt.trueArray(i.children)&&(i.children=qe(t,a,i.children)),i)),ts=t=>{const a=[];return t&&t.forEach(o=>{if(o._fc_drag_tag){const i={id:o.__fc__.id,rule:o,children:ts(o.children)};i.children.length||delete i.children,a.push(i)}else a.push(...ts(o.children))}),a},kd=t=>{const a=o=>{const i=[];return o&&o.forEach(n=>{n.field?(n.children=a(n.children||[]),n.children.length||delete n.children,i.push(n)):i.push(...a(n.children||[]))}),i};return a(t)},Sd=t=>{const a=o=>{const i=[];return o&&o.forEach(n=>{if(typeof n=="object")if(n._fc_drag_tag){const l={_fc_id:n._fc_id,type:n.type,field:n.field,title:n.title,name:n.name,slot:n.slot,props:{...n.props||{}},children:a(n.children||[])};n.children&&typeof n.children[0]=="string"&&(l.content=n.children[0]),l.children.length||delete l.children,i.push(l)}else i.push(...a(n.children))}),i};return a(t)};function Mo(t){return{name:"$inject",columns:[{label:"$inject.api",info:t("event.inject.api"),type:"Api"},{label:"$inject.rule",info:t("event.inject.rule"),type:"Rule[]"},{label:"$inject.self",info:t("event.inject.self"),type:"Rule"},{label:"$inject.option",info:t("event.inject.option"),type:"Object"},{label:"$inject.args",info:t("event.inject.args"),type:"Array"}]}}function cr(t){return["",null,void 0].indexOf(t)!==-1}function lg(t,a){const o=t.split("."),i=a.split("."),n=Math.min(o.length,i.length);for(var l=0;l<n;l++){var f=parseInt(o[l],10)-parseInt(i[l],10);if(f>0)return 1;if(f<0)return-1}return o.length===i.length?0:o.length<i.length?-1:1}function Kr(t){const a=document.createElement("textarea");a.style.position="fixed",a.style.top=0,a.style.left="-9999px",a.value=t,document.body.appendChild(a),a.focus(),a.select();try{document.execCommand("copy")}catch{console.log("Oops, unable to copy")}Qf("已复制!","success"),document.body.removeChild(a)}function Dd(t){return t.filter((a,o)=>t.indexOf(a)===o)}function Bd({t}){return[{type:"input",field:">formName",value:"",title:t("form.formName")},{type:"radio",field:"labelPosition",value:"left",title:t("form.labelPosition"),options:jt(t,[{value:"left",label:"left"},{value:"right",label:"right"},{value:"top",label:"top"}])},{type:"radio",field:"size",value:"small",title:t("form.size"),options:jt(t,[{value:"large",label:"large"},{value:"default",label:"default"},{value:"small",label:"small"}])},{type:"input",field:"labelSuffix",value:"",title:t("form.labelSuffix"),style:{width:"150px"}},{type:"SizeInput",field:"labelWidth",value:"125px",title:t("form.labelWidth")},{type:"switch",field:"hideRequiredAsterisk",value:!1,title:t("form.hideRequiredAsterisk")},{type:"switch",field:"showMessage",value:!0,title:t("form.showMessage")},{type:"switch",field:"inlineMessage",value:!1,title:t("form.inlineMessage")},{type:"switch",field:"_submitBtn>show",value:!0,title:t("form.submitBtn")},{type:"switch",field:"_resetBtn>show",value:!1,title:t("form.resetBtn")},{type:"FnConfig",field:">_event",warning:t("form.controlDocument",{doc:'<a target="_blank" href="https://form-create.com/v3/guide/global-event" style="color: inherit;text-decoration: underline;">'+t("form.document")+"</a>"}),value:{},col:{show:!0},props:{eventConfig:[{name:"onSubmit",info:t("form.onSubmit"),args:["formData","api"]},{name:"onReset",info:t("form.onReset"),args:["api"]},{name:"onCreated",info:t("form.onCreated"),args:["api"]},{name:"onMounted",info:t("form.onMounted"),args:["api"]},{name:"onReload",info:t("form.onReload"),args:["api"]},{name:"onChange",info:t("form.onChange"),args:["field","value","options"]},{name:"beforeFetch",info:t("form.beforeFetch"),args:["config","data"]}]},title:t("form.event")}]}function mo({t}){return[{type:"FieldInput",field:"field",value:"",title:t("form.field"),warning:t("warning.field")},{type:"LanguageInput",field:"title",value:"",title:t("form.title")},{type:"LanguageInput",field:"info",value:"",title:t("form.info")},{type:"SizeInput",field:"formCreateWrap>labelWidth",value:"",title:t("form.labelWidth")},{type:"Struct",field:"_control",name:"control",value:[],title:t("form.control"),warning:t("form.controlDocument",{doc:'<a target="_blank" href="https://form-create.com/v3/guide/control" style="color: inherit;text-decoration: underline;">'+t("form.document")+"</a>"}),props:{defaultValue:[],validate(a){return Array.isArray(a)?a.length?!a.some(({rule:o})=>!Array.isArray(o)):!0:!1}}}]}function ug({t}){return[{type:"input",title:"ID",field:"id",wrap:{labelWidth:"45px"}},{type:"input",title:"Class",field:"class",wrap:{labelWidth:"45px"}},{type:"StyleConfig",field:"style",title:"",value:{}}]}function Td({t}){return[{type:"Required",field:"$required",title:t("validate.required")},{type:"validate",field:"validate",title:t("validate.rule"),value:[]}]}function sg(t){t=t||new Map;const a={$on(o,i){const n=t.get(o);n&&n.push(i)||t.set(o,[i])},$once(o,i){i._once=!0,a.$on(o,i)},$off(o,i){const n=t.get(o);n&&n.splice(n.indexOf(i)>>>0,1)},$emit(o,...i){(t.get(o)||[]).slice().map(n=>{n._once&&(a.$off(o,n),delete n._once),n(...i)}),(t.get("*")||[]).slice().map(n=>{n(o,i)})}};return a}let cg=0;function Ze(){const t=370+ ++cg;return"F"+Math.random().toString(36).substr(3,3)+(+`${Date.now()}`).toString(36)+t.toString(36)+"c"}const dg="单选框",Gl="radio",fg={menu:"main",icon:"icon-radio",label:dg,name:Gl,input:!0,event:["change"],validate:["string","number"],rule({t}){return{type:Gl,field:Ze(),title:t("com.radio.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:er(t("props.option"),{label:"label",value:"value"},1)}},props(t,{t:a}){return qe(a,Gl+".props",[Ro(a,"options"),{type:"switch",field:"disabled"},{type:"switch",field:"input"},{type:"switch",field:"type",props:{activeValue:"button",inactiveValue:"default"}},{type:"ColorInput",field:"textColor"},{type:"ColorInput",field:"fill"}])}},pg="多选框",$l="checkbox",hg={menu:"main",icon:"icon-checkbox",label:pg,name:$l,input:!0,event:["change"],validate:["array"],rule({t}){return{type:$l,field:Ze(),title:t("com.checkbox.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:er(t("props.option"),{label:"label",value:"value"},1)}},props(t,{t:a}){return qe(a,$l+".props",[Ro(a,"options"),{type:"switch",field:"disabled"},{type:"switch",field:"input"},{type:"switch",field:"type",props:{activeValue:"button",inactiveValue:"default"}},{field:"min",type:"inputNumber",props:{min:0}},{field:"max",type:"inputNumber",props:{min:0}},{type:"ColorInput",field:"textColor"},{type:"ColorInput",field:"fill"}])}},mg="输入框",ql="input",gg={menu:"main",icon:"icon-input",label:mg,name:ql,input:!0,event:["blur","focus","change","input","clear"],validate:["string","url","email"],rule({t}){return{type:ql,field:Ze(),title:t("com.input.name"),info:"",$required:!1,props:{}}},props(t,{t:a}){return qe(a,ql+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"readonly"},{type:"select",field:"type",options:jt(a,[{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:"clearable"}])}},vg="多行输入框",Rd="textarea",_g={menu:"main",icon:"icon-textarea",label:vg,name:Rd,input:!0,event:["blur","focus","change","input"],validate:["string"],rule({t}){return{type:"input",field:Ze(),title:t("com.textarea.name"),info:"",$required:!1,props:{type:"textarea"}}},props(t,{t:a}){return qe(a,Rd+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"readonly"},{type:"inputNumber",field:"maxlength",props:{min:0}},{type:"switch",field:"showWordLimit"},{type:"input",field:"placeholder"},{type:"inputNumber",field:"rows",props:{min:0}},{type:"switch",field:"autosize"}])}},yg="密码输入框",Md="password",bg={menu:"main",icon:"icon-password",label:yg,name:Md,input:!0,event:["blur","focus","change","input","clear"],validate:["string"],rule({t}){return{type:"input",field:Ze(),title:t("com.password.name"),info:"",$required:!1,props:{type:"password"}}},props(t,{t:a}){return qe(a,Md+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"readonly"},{type:"inputNumber",field:"maxlength",props:{min:0}},{type:"input",field:"placeholder"},{type:"switch",field:"clearable"}])}},Ag="计数器",Jl="inputNumber",xg={menu:"main",icon:"icon-number",label:Ag,name:Jl,input:!0,event:["blur","focus","change"],validate:["number","integer","float"],rule({t}){return{type:Jl,field:Ze(),title:t("com.inputNumber.name"),info:"",$required:!1,props:{}}},props(t,{t:a}){return qe(a,Jl+".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:"stepStrictly"},{type:"switch",field:"controls",value:!0},{type:"select",field:"controlsPosition",options:jt(a,[{label:"default",value:""},{label:"right",value:"right"}])},{type:"input",field:"placeholder"}])}},wg="选择器",Kl="select",Eg={menu:"main",icon:"icon-select",label:wg,name:Kl,input:!0,event:["change","visibleChange","removeTag","clear","blur","focus"],validate:["string","number","array"],rule({t}){return{type:Kl,field:Ze(),title:t("com.select.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:er(t("props.option"),{label:"label",value:"value"},1)}},watch:{multiple({rule:t}){t.key=Ze()}},props(t,{t:a}){return qe(a,Kl+".props",[Ro(a,"options"),{type:"switch",field:"multiple"},{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"switch",field:"collapseTags"},{type:"inputNumber",field:"multipleLimit",props:{min:0}},{type:"input",field:"placeholder"},{type:"switch",field:"filterable"},{type:"switch",field:"remote"},{type:"FnInput",field:"remoteMethod",props:{body:!0,fnx:!0,name:"remoteMethod",args:[Mo(a)]}},{type:"switch",field:"allowCreate"},{type:"input",field:"noMatchText"},{type:"input",field:"noDataText"},{type:"switch",field:"reserveKeyword"},{type:"switch",field:"defaultFirstOption"}])}},Cg="开关",Zl="switch",Fg={menu:"main",icon:"icon-switch",label:Cg,name:Zl,input:!0,event:["change"],rule({t}){return{type:Zl,field:Ze(),title:t("com.switch.name"),info:"",$required:!1,props:{activeValue:!0,inactiveValue:!1}}},props(t,{t:a}){return qe(a,Zl+".props",[{type:"switch",field:"disabled"},{type:"inputNumber",field:"width",props:{min:0}},{type:"input",field:"activeText"},{type:"input",field:"inactiveText"},{type:"ValueInput",field:"activeValue"},{type:"ValueInput",field:"inactiveValue"},{type:"ColorInput",field:"activeColor"},{type:"ColorInput",field:"inactiveColor"}])}},kg="滑块",eu="slider",Sg={menu:"main",icon:"icon-slider",label:kg,name:eu,input:!0,event:["change","input"],validate:["number","array"],rule({t}){return{type:eu,field:Ze(),title:t("com.slider.name"),info:"",$required:!1,props:{}}},props(t,{t:a}){return qe(a,eu+".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:"showInput"},{type:"switch",field:"showInputControls",value:!0},{type:"switch",field:"showStops"},{type:"switch",field:"vertical"},{type:"input",field:"height"}])}},Dg="时间",tu="timePicker",Bg={menu:"main",icon:"icon-time",label:Dg,name:tu,input:!0,event:["change","blur","focus","visibleChange"],rule({t}){return{type:tu,field:Ze(),title:t("com.timePicker.name"),info:"",$required:!1,props:{}}},watch:{isRange({rule:t}){t.key=Ze()}},props(t,{t:a}){return qe(a,tu+".props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"switch",field:"isRange"},{type:"switch",field:"clearable",value:!0},{type:"Struct",field:"pickerOptions",props:{defaultValue:{}}},{type:"switch",field:"editable",value:!0},{type:"input",field:"placeholder"},{type:"input",field:"startPlaceholder"},{type:"input",field:"endPlaceholder"},{type:"switch",field:"arrowControl"},{type:"select",field:"align",options:jt(a,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])}])}},Tg="时间区间",Rg="timeRange",Mg={menu:"main",icon:"icon-time-range",label:Tg,name:Rg,input:!0,event:["change","blur","focus","visibleChange"],rule({t}){return{type:"timePicker",field:Ze(),title:t("com.timeRange.name"),info:"",$required:!1,props:{isRange:!0}}},props(t,{t:a}){return qe(a,"timePicker.props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"switch",field:"clearable",value:!0},{type:"Struct",field:"pickerOptions",props:{defaultValue:{}}},{type:"switch",field:"editable",value:!0},{type:"input",field:"startPlaceholder"},{type:"input",field:"endPlaceholder"},{type:"switch",field:"arrowControl"},{type:"select",field:"align",options:jt(a,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])}])}},Ng="日期",nu="datePicker",Og={menu:"main",icon:"icon-date",label:Ng,name:nu,input:!0,event:["change","blur","focus","calendarChange","panelChange","visibleChange"],rule({t}){return{type:nu,field:Ze(),title:t("com.datePicker.name"),info:"",$required:!1,props:{}}},props(t,{t:a}){return qe(a,nu+".props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"select",field:"type",options:jt(a,[{label:"year",value:"year"},{label:"month",value:"month"},{label:"date",value:"date"},{label:"dates",value:"dates"},{label:"week",value:"week"},{label:"datetime",value:"datetime"},{label:"datetimerange",value:"datetimerange"},{label:"daterange",value:"daterange"},{label:"monthrange",value:"monthrange"}])},{type:"switch",field:"clearable",value:!0},{type:"Struct",field:"pickerOptions",props:{defaultValue:{}}},{type:"switch",field:"editable",value:!0},{type:"input",field:"placeholder"},{type:"input",field:"startPlaceholder"},{type:"input",field:"endPlaceholder"},{type:"input",field:"format"},{type:"select",field:"align",options:jt(a,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"input",field:"rangeSeparator"},{type:"switch",field:"unlinkPanels"}])}},Ig="日期区间",Lg="dateRange",Pg={menu:"main",icon:"icon-date-range",label:Ig,name:Lg,input:!0,event:["change","blur","focus","calendarChange","panelChange","visibleChange"],rule({t}){return{type:"datePicker",field:Ze(),title:t("com.dateRange.name"),info:"",$required:!1,props:{type:"datetimerange"}}},props(t,{t:a}){return qe(a,"datePicker.props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"select",field:"type",options:jt(a,[{label:"datetimerange",value:"datetimerange"},{label:"daterange",value:"daterange"},{label:"monthrange",value:"monthrange"}])},{type:"switch",field:"clearable",value:!0},{type:"Struct",field:"pickerOptions",props:{defaultValue:{}}},{type:"switch",field:"editable",value:!0},{type:"input",field:"startPlaceholder"},{type:"input",field:"endPlaceholder"},{type:"input",field:"format"},{type:"select",field:"align",options:jt(a,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"input",field:"rangeSeparator"},{type:"switch",field:"unlinkPanels"}])}},Vg="评分",ru="rate",jg={menu:"main",icon:"icon-rate",label:Vg,name:ru,input:!0,event:["change"],validate:["number"],rule({t}){return{type:ru,field:Ze(),title:t("com.rate.name"),info:"",$required:!1,props:{}}},props(t,{t:a}){return qe(a,ru+".props",[{type:"inputNumber",field:"max",props:{min:0}},{type:"switch",field:"disabled"},{type:"switch",field:"allowHalf"},{type:"ColorInput",field:"voidColor"},{type:"ColorInput",field:"disabledVoidColor"},{type:"input",field:"voidIconClass"},{type:"input",field:"disabledVoidIconClass"},{type:"switch",field:"showScore"},{type:"ColorInput",field:"textColor"},{type:"input",field:"scoreTemplate"}])}},zg="颜色选择器",iu="colorPicker",Ug={menu:"main",icon:"icon-color",label:zg,name:iu,input:!0,event:["change","activeChange","focus","blur"],validate:["string"],rule({t}){return{type:iu,field:Ze(),title:t("com.colorPicker.name"),info:"",$required:!1,props:{}}},props(t,{t:a}){return qe(a,iu+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"showAlpha"},{type:"select",field:"colorFormat",options:[{label:"hsl",value:"hsl"},{label:"hsv",value:"hsv"},{label:"hex",value:"hex"},{label:"rgb",value:"rgb"}]},{type:"tableOptions",field:"predefine",props:{column:[{label:a("props.value"),key:"value"}],valueType:"string"}}])}},Hg="栅格布局",ou="fcRow",Wg={menu:"layout",icon:"icon-row",label:Hg,name:ou,mask:!1,children:"col",childrenLen:2,rule(){return{type:ou,props:{},children:[]}},props(t,{t:a}){return qe(a,ou+".props",[{type:"inputNumber",field:"gutter",props:{min:0}},{type:"switch",field:"type",props:{activeValue:"flex",inactiveValue:"default"}},{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"}]}])}},au="col",Nd={xs:"<768px",sm:"≥768px",md:"≥992px",lg:"≥1200px",xl:"≥1920px"},Qg={name:au,label:"格子",drag:!0,dragBtn:!1,inside:!0,mask:!1,rule(){return{type:au,props:{span:12},children:[]}},props(t,{t:a}){return qe(a,au+".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:a("props.reactive")},children:[{type:"elTabs",style:{width:"100%"},slot:"append",children:Object.keys(Nd).map(o=>({type:"elTabPane",props:{label:Nd[o]},style:"padding:0 10px;",children:[{type:"slider",field:o+">span",title:a("com.col.props.span"),value:12,props:{min:0,max:24}},{type:"slider",field:o+">offset",title:a("com.col.props.offset"),props:{min:0,max:24}},{type:"slider",field:o+">push",title:a("com.col.props.push"),props:{min:0,max:24}},{type:"slider",field:o+">pull",title:a("com.col.props.pull"),props:{min:0,max:24}}]}))}]}])}},Xg="选项卡",lu="elTabPane",Yg={label:Xg,name:lu,inside:!0,drag:!0,dragBtn:!1,mask:!1,rule({t}){return{type:lu,props:{label:t("com.elTabPane.name")},children:[]}},props(t,{t:a}){return qe(a,lu+".props",[{type:"input",field:"label"},{type:"switch",field:"disabled"},{type:"input",field:"name"},{type:"switch",field:"lazy"}])}},Gg="分割线",uu="elDivider",$g={menu:"aide",icon:"icon-divider",label:Gg,name:uu,rule({t}){return{type:uu,props:{},children:[t("com.elDivider.name")]}},props(t,{t:a}){return qe(a,uu+".props",[{type:"input",field:"formCreateChild"},{type:"select",field:"contentPosition",options:jt(a,[{label:"left",value:"left"},{label:"right",value:"right"},{label:"center",value:"center"}])}])}},qg="级联选择器",_a="cascader",Jg={menu:"main",icon:"icon-cascader",label:qg,name:_a,input:!0,event:["change","expandChange","blur","focus","visibleChange","removeTag"],validate:["string","number","array"],rule({t}){return{type:_a,field:Ze(),title:t("com.cascader.name"),info:"",effect:{fetch:""},$required:!1,props:{options:er(t("props.option"),{label:"label",value:"value"},3)}}},props(t,{t:a}){return qe(a,_a+".props",[Ii(a,"props.options"),{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"input",field:"placeholder"},{type:"Object",field:"props",props:{rule:qe(a,_a+".propsOpt",[{type:"switch",field:"multiple"},{type:"select",field:"expandTrigger",options:jt(a,[{label:"click",value:"click"},{label:"hover",value:"hover"}])},{type:"switch",field:"checkStrictly"},{type:"switch",field:"emitPath",value:!0},{type:"input",field:"value",value:"value"},{type:"input",field:"label",value:"label"},{type:"input",field:"children",value:"children"},{type:"input",field:"disabled",value:"disabled"},{type:"input",field:"leaf"}])}},{type:"switch",field:"showAllLevels",value:!0},{type:"switch",field:"collapseTags"},{type:"switch",field:"collapseTagsTooltip"},{type:"input",field:"separator"},{type:"switch",field:"filterable"},{type:"select",field:"tagType",options:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}]}])}},Kg="上传",su="upload",Zg={menu:"main",icon:"icon-upload",label:Kg,name:su,input:!0,event:["change","remove","preview","error","progress","exceed"],languageKey:["clickToUpload"],validate:["array"],rule({t}){return{type:su,field:Ze(),title:t("com.upload.name"),info:"",$required:!1,props:{action:"/",onSuccess:new Function("res","file","file.url = res.data.url;")}}},props(t,{t:a}){return qe(a,su+".props",[{type:"switch",field:"disabled"},{type:"select",field:"listType",options:jt(a,[{label:"text",value:"text"},{label:"picture",value:"picture"},{label:"picture-card",value:"picture-card"}])},{type:"switch",field:"multiple"},{type:"input",field:"action"},{type:"FnInput",field:"beforeUpload",props:{args:["file"],name:"beforeUpload"}},{type:"FnInput",field:"beforeRemove",props:{body:!0,button:!0,fnx:!0,args:[Mo(a)],name:"beforeRemove"}},{type:"FnInput",field:"onSuccess",warning:a("com.upload.info"),props:{args:["res","file"],name:"onSuccess"}},{type:"TableOptions",field:"headers",props:{column:[{label:a("props.key"),key:"label"},{label:a("props.value"),key:"value"}],valueType:"object"}},{type:"TableOptions",field:"data",props:{column:[{label:a("props.key"),key:"label"},{label:a("props.value"),key:"value"}],valueType:"object"}},{type:"input",field:"name"},{type:"switch",field:"withCredentials"},{type:"input",field:"accept"},{type:"switch",field:"autoUpload",value:!0},{type:"inputNumber",field:"limit",props:{min:0}}])}},ev="穿梭框",cu="elTransfer",tv={menu:"main",icon:"icon-transfer",label:ev,name:cu,input:!0,event:["change","leftCheckChange","rightCheckChange"],validate:["string","number","array"],rule({t}){return{type:cu,field:Ze(),title:t("com.elTransfer.name"),info:"",$required:!1,props:{data:er(t("props.option"),{label:"label",value:"key"},1)}}},props(t,{t:a}){return qe(a,cu+".props",[Ii(a,"props.data","label","key"),{type:"switch",field:"filterable"},{type:"input",field:"filterPlaceholder"},{type:"select",field:"targetOrder",warning:a("com.elTransfer.props.targetOrderInfo"),options:[{label:"original",value:"original"},{label:"push",value:"push"},{label:"unshift",value:"unshift"}]},{type:"TableOptions",field:"titles",props:{column:[{label:a("props.value"),key:"value"}],valueType:"string",max:2}},{type:"TableOptions",field:"buttonTexts",props:{column:[{label:a("props.value"),key:"value"}],valueType:"string",max:2}}])}},nv="树形控件",du="tree",rv={menu:"main",icon:"icon-tree",label:nv,name:du,input:!0,event:["nodeClick","nodeContextmenu","checkChange","check","currentChange","nodeExpand","nodeCollapse","nodeDragStart","nodeDragEnter","nodeDragLeave","nodeDragOver","nodeDragEnd","nodeDrop"],validate:["string","number","array"],rule({t}){return{type:du,field:Ze(),title:t("com.tree.name"),info:"",effect:{fetch:""},$required:!1,props:{props:{label:"label"},showCheckbox:!0,nodeKey:"id",data:er(t("props.option"),{label:"label",value:"id"},3)}}},props(t,{t:a}){return qe(a,du+".props",[Ii(a,"props.data","label","id"),{type:"input",field:"emptyText"},{type:"TableOptions",field:"props",props:{column:[{label:a("props.key"),key:"label"},{label:a("props.value"),key:"value"}],valueType:"object"}},{type:"switch",field:"renderAfterExpand",value:!0},{type:"switch",field:"defaultExpandAll"},{type:"switch",field:"expandOnClickNode",value:!0},{type:"switch",field:"checkOnClickNode"},{type:"switch",field:"autoExpandParent",value:!0},{type:"switch",field:"checkStrictly"},{type:"switch",field:"accordion"},{type:"inputNumber",field:"indent"},{type:"input",field:"nodeKey"}])}},iv="提示",fu="elAlert",ov={menu:"aide",icon:"icon-alert",label:iv,name:fu,event:["close"],rule({t}){return{type:fu,props:{title:t("com.elAlert.name"),description:t("com.elAlert.description"),type:"success",effect:"dark"},children:[]}},props(t,{t:a}){return qe(a,fu+".props",[{type:"input",field:"title"},{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:!0},{type:"switch",field:"center",value:!0},{type:"input",field:"closeText"},{type:"switch",field:"showIcon"},{type:"select",field:"effect",options:[{label:"light",value:"light"},{label:"dark",value:"dark"}]}])}},av="文字",Od="text",lv={menu:"aide",icon:"icon-span",label:av,name:Od,rule({t}){return{type:"div",title:"",native:!0,style:{whiteSpace:"pre-line",width:"100%"},children:[t("com.text.name")]}},watch:{formCreateNative({value:t,rule:a}){t&&(a.title="")}},props(t,{t:a}){return qe(a,Od+".props",[{type:"switch",field:"formCreateNative",props:{activeValue:!1,inactiveValue:!0},control:[{value:!1,rule:["formCreateTitle"]}]},{type:"input",field:"formCreateTitle"},{type:"input",field:"formCreateChild",props:{type:"textarea"}}])}},uv="间距",Id="space",sv={menu:"layout",icon:"icon-space",label:uv,name:Id,rule(){return{type:"div",wrap:{show:!1},native:!0,style:{width:"100%",height:"20px"},children:[]}},props(t,{t:a}){return[{type:"object",field:"formCreateStyle",native:!0,props:{rule:qe(a,Id+".props",[{type:"input",field:"height",title:"height"}])}}]}},cv="标签页",pu="elTabs",dv={menu:"layout",icon:"icon-tab",label:cv,name:pu,mask:!1,event:["tabClick","tabChange","tabRemove","tabAdd","edit"],children:"elTabPane",rule(){return{type:pu,style:{width:"100%"},children:[]}},props(t,{t:a}){return qe(a,pu+".props",[{type:"select",field:"type",options:[{label:"card",value:"card"},{label:"border-card",value:"border-card"}]},{type:"switch",field:"closable"},{type:"select",field:"tabPosition",options:jt(a,[{label:"top",value:"top"},{label:"right",value:"right"},{label:"left",value:"left"}])},{type:"switch",field:"stretch"}])}},fv="按钮",hu="elButton",pv={menu:"aide",icon:"icon-button",label:fv,name:hu,mask:!0,event:["click"],rule({t}){return{type:hu,props:{},children:[t("com.elButton.name")]}},props(t,{t:a}){return qe(a,hu+".props",[{type:"input",field:"formCreateChild"},{type:"select",field:"size",options:jt(a,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])},{type:"select",field:"type",options:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}]},{type:"switch",field:"plain"},{type:"switch",field:"round"},{type:"switch",field:"circle"},{type:"switch",field:"loading"},{type:"switch",field:"disabled"}])}},hv="富文本框",mu="fcEditor",mv={menu:"main",icon:"icon-editor",label:hv,name:mu,input:!0,event:["change"],validate:["string"],rule({t}){return{type:mu,field:Ze(),title:t("com.fcEditor.name"),info:"",$required:!1,props:{}}},props(t,{t:a}){return qe(a,mu+".props",[{type:"switch",field:"disabled"}])}},gv="子表单",Ld="group",vv={menu:"subform",icon:"icon-subform",label:gv,name:Ld,inside:!1,drag:!0,dragBtn:!0,mask:!1,input:!0,event:["change"],subForm:"array",loadRule(t){t.children=t.props.rule||[],t.type="FcRow",delete t.props.rule},parseRule(t){t.props.rule=t.children,t.type="group",delete t.children,delete t.props.mode},rule({t}){return{type:"fcRow",field:Ze(),title:t("com.group.name"),info:"",$required:!1,props:{},children:[]}},props(t,{t:a}){return qe(a,Ld+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"syncDisabled",value:!0},{type:"switch",field:"button",value:!0},{type:"switch",field:"sortBtn",value:!0},{type:"inputNumber",field:"expand"},{type:"inputNumber",field:"min"},{type:"inputNumber",field:"max"}])}},_v="分组",Pd="subForm",yv={menu:"subform",icon:"icon-group",label:_v,name:Pd,inside:!1,drag:!0,dragBtn:!0,mask:!1,input:!0,subForm:"object",event:["change"],loadRule(t){t.children=t.props.rule||[],t.type="FcRow",delete t.props.rule},parseRule(t){t.props.rule=t.children,t.type="subForm",delete t.children},rule({t}){return{type:"fcRow",field:Ze(),title:t("com.subForm.name"),info:"",$required:!1,props:{},children:[]}},props(t,{t:a}){return qe(a,Pd+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"syncDisabled",value:!0}])}},bv="卡片",gu="elCard",Av={menu:"layout",icon:"icon-card",label:bv,name:gu,drag:!0,inside:!1,mask:!1,rule({t}){return{type:gu,props:{header:t("com.elCard.props.header")},style:{width:"100%"},children:[]}},props(t,{t:a}){return qe(a,gu+".props",[{type:"input",field:"header"},{type:"select",field:"shadow",value:"always",options:jt(a,[{label:"always",value:"always"},{label:"never",value:"never"},{label:"hover",value:"hover"}])}])}},xv="折叠面板",vu="elCollapse",wv={menu:"layout",icon:"icon-collapse",label:xv,name:vu,mask:!1,children:"elCollapseItem",event:["change"],rule(){return{type:vu,props:{},style:{width:"100%"},children:[]}},props(t,{t:a}){return qe(a,vu+".props",[{type:"switch",field:"accordion"}])}},Ev="面板",_u="elCollapseItem",Cv={icon:"icon-cell",label:Ev,name:_u,drag:!0,dragBtn:!1,inside:!0,mask:!1,rule({t}){return{type:_u,props:{title:t("com.elCollapseItem.name")},style:{},children:[]}},props(t,{t:a}){return qe(a,_u+".props",[{type:"input",field:"title"},{type:"input",field:"name"},{type:"switch",field:"disabled"}])}},Fv="树形选择",yu="elTreeSelect",kv={menu:"main",icon:"icon-tree-select",label:Fv,name:yu,input:!0,event:["change","visibleChange","removeTag","clear","blur","focus"],validate:["string","number","array"],rule({t}){return{type:yu,field:Ze(),title:t("com.elTreeSelect.name"),info:"",effect:{fetch:""},$required:!1,props:{nodeKey:"value",showCheckbox:!0,data:er(t("props.option"),{label:"label",value:"value"},3)}}},watch:{multiple({rule:t}){t.key=Ze()}},props(t,{t:a}){return qe(a,yu+".props",[Ii(a,"props.data","label","value"),{type:"switch",field:"multiple"},{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"switch",field:"collapseTags"},{type:"inputNumber",field:"multipleLimit",props:{min:0}},{type:"input",field:"placeholder"},{type:"TableOptions",field:"props",props:{column:[{label:a("props.key"),key:"label"},{label:a("props.value"),key:"value"}],valueType:"object"}},{type:"switch",field:"renderAfterExpand",value:!0},{type:"switch",field:"defaultExpandAll"},{type:"switch",field:"expandOnClickNode",value:!0},{type:"switch",field:"checkOnClickNode"},{type:"input",field:"nodeKey"}])}},Sv="标签",bu="elTag",Dv={menu:"aide",icon:"icon-tag",label:Sv,name:bu,mask:!0,event:["click","close"],rule({t}){return{type:bu,title:"",native:!0,children:[t("com.elTag.name")]}},watch:{formCreateNative({value:t,rule:a}){t&&(a.title="")}},props(t,{t:a}){return qe(a,bu+".props",[{type:"switch",field:"formCreateNative",props:{activeValue:!1,inactiveValue:!0},control:[{value:!1,rule:["formCreateTitle"]}]},{type:"input",field:"formCreateTitle"},{type:"input",field:"formCreateChild"},{type:"select",field:"type",options:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}]},{type:"select",field:"size",options:jt(a,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])},{type:"select",field:"effect",options:[{label:"dark",value:"dark"},{label:"light",value:"light"},{label:"plain",value:"plain"}]},{type:"switch",field:"closable"},{type:"switch",field:"disableTransitions"},{type:"switch",field:"hit"},{type:"switch",field:"round"},{type:"ColorInput",field:"color"}])}},Bv="HTML",Au="html",Tv={menu:"aide",icon:"icon-html",label:Bv,name:Au,rule(){return{type:Au,title:"",native:!0,attrs:{innerHTML:""},style:{display:"block",width:"100%"},children:[`<div style="color:blue;">
- html html html html html html html html html
- </div>`]}},watch:{formCreateNative({value:t,rule:a}){t&&(a.title="")}},props(t,{t:a}){return qe(a,Au+".props",[{type:"switch",field:"formCreateNative",props:{activeValue:!1,inactiveValue:!0},control:[{value:!1,rule:["formCreateTitle"]}]},{type:"input",field:"formCreateTitle"},{type:"HtmlEditor",field:"formCreateChild"}])}},Rv="表格布局",xu="fcTable",Mv={menu:"layout",icon:"icon-table",label:Rv,name:xu,inside:!1,mask:!1,rule(){return{type:xu,props:{rule:{row:3,col:4,style:{},class:{},layout:[]}},children:[]}},props(t,{t:a}){return qe(a,xu+".props",[{type:"switch",field:"border",value:!0},{type:"ColorInput",field:"borderColor"},{type:"input",field:"borderWidth"}])}},Nv="表格表单",wu="tableForm",Ov={menu:"subform",icon:"icon-table-form",label:Nv,name:wu,mask:!1,input:!0,subForm:"array",event:["change","add","delete"],languageKey:["add","operation","dataEmpty"],children:"tableFormColumn",loadRule(t){t.props||(t.props={});const a=t.props.columns||[];t.children=a.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 t.props.columns},parseRule(t){const a=t.children||[];t.props.columns=a.map(o=>({label:o.props.label,required:o.props.required,style:{width:o.props.width,color:o.props.color},rule:o.children||[]})),t.children=[]},rule({t}){return{type:wu,field:Ze(),title:t("com.tableForm.name"),info:"",props:{},children:[]}},props(t,{t:a}){return qe(a,wu+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"filterEmptyColumn",value:!0},{type:"inputNumber",field:"max",props:{min:0}}])}},Eu="tableFormColumn",Iv={icon:"icon-cell",name:Eu,aide:!0,drag:!0,dragBtn:!1,mask:!1,style:!1,rule({t}){return{type:Eu,props:{label:t("com.tableFormColumn.label"),width:"auto"},children:[]}},props(t,{t:a}){return qe(a,Eu+".props",[{type:"input",field:"label"},{type:"switch",field:"required"},{type:"input",field:"width"},{type:"ColorInput",field:"color"}])}},Lv="图片",Cu="elImage",Pv={menu:"aide",icon:"icon-image",label:Lv,name:Cu,rule(){return{type:Cu,title:"",style:{width:"100px",height:"100px"},props:{src:"https://static.form-create.com/example.png"}}},props(t,{t:a}){return qe(a,Cu+".props",[{type:"input",field:"src"}])}},Vd=[gg,_g,bg,xg,fg,hg,Eg,Fg,jg,Bg,Mg,Sg,Og,Pg,Ug,Jg,Zg,tv,rv,kv,mv,vv,yv,Ov,Iv,ov,pv,lv,Tv,$g,Dv,Pv,Wg,Mv,dv,sv,Av,wv,Qg,Yg,Cv];function Vv(t){return{icon:t.field?"icon-input":"icon-cell",label:t.field||t.type,name:"_",mask:!0,handleBtn:["delete"],rule(){return t},props(){return[]}}}/**!
- * Sortable 1.14.0
- * @author RubaXa <trash@rubaxa.org>
- * @author owenm <owen23355@gmail.com>
- * @license MIT
- */function jd(t,a){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);a&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function Zn(t){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?jd(Object(o),!0).forEach(function(i){jv(t,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):jd(Object(o)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(o,i))})}return t}function Na(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Na=function(a){return typeof a}:Na=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Na(t)}function jv(t,a,o){return a in t?Object.defineProperty(t,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[a]=o,t}function pr(){return pr=Object.assign||function(t){for(var a=1;a<arguments.length;a++){var o=arguments[a];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},pr.apply(this,arguments)}function zv(t,a){if(t==null)return{};var o={},i=Object.keys(t),n,l;for(l=0;l<i.length;l++)n=i[l],!(a.indexOf(n)>=0)&&(o[n]=t[n]);return o}function Uv(t,a){if(t==null)return{};var o=zv(t,a),i,n;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(n=0;n<l.length;n++)i=l[n],!(a.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,i)||(o[i]=t[i]))}return o}var Hv="1.14.0";function fr(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var hr=fr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),No=fr(/Edge/i),zd=fr(/firefox/i),wo=fr(/safari/i)&&!fr(/chrome/i)&&!fr(/android/i),Gf=fr(/iP(ad|od|hone)/i),Wv=fr(/chrome/i)&&fr(/android/i),$f={capture:!1,passive:!1};function mt(t,a,o){t.addEventListener(a,o,!hr&&$f)}function ct(t,a,o){t.removeEventListener(a,o,!hr&&$f)}function Va(t,a){if(a){if(a[0]===">"&&(a=a.substring(1)),t)try{if(t.matches)return t.matches(a);if(t.msMatchesSelector)return t.msMatchesSelector(a);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(a)}catch{return!1}return!1}}function Qv(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Jn(t,a,o,i){if(t){o=o||document;do{if(a!=null&&(a[0]===">"?t.parentNode===o&&Va(t,a):Va(t,a))||i&&t===o)return t;if(t===o)break}while(t=Qv(t))}return null}var Ud=/\s+/g;function En(t,a,o){if(t&&a)if(t.classList)t.classList[o?"add":"remove"](a);else{var i=(" "+t.className+" ").replace(Ud," ").replace(" "+a+" "," ");t.className=(i+(o?" "+a:"")).replace(Ud," ")}}function Ye(t,a,o){var i=t&&t.style;if(i){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(o=t.currentStyle),a===void 0?o:o[a];!(a in i)&&a.indexOf("webkit")===-1&&(a="-webkit-"+a),i[a]=o+(typeof o=="string"?"":"px")}}function Mi(t,a){var o="";if(typeof t=="string")o=t;else do{var i=Ye(t,"transform");i&&i!=="none"&&(o=i+" "+o)}while(!a&&(t=t.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(o)}function qf(t,a,o){if(t){var i=t.getElementsByTagName(a),n=0,l=i.length;if(o)for(;n<l;n++)o(i[n],n);return i}return[]}function Kn(){var t=document.scrollingElement;return t||document.documentElement}function Gt(t,a,o,i,n){if(!(!t.getBoundingClientRect&&t!==window)){var l,f,c,p,m,v,_;if(t!==window&&t.parentNode&&t!==Kn()?(l=t.getBoundingClientRect(),f=l.top,c=l.left,p=l.bottom,m=l.right,v=l.height,_=l.width):(f=0,c=0,p=window.innerHeight,m=window.innerWidth,v=window.innerHeight,_=window.innerWidth),(a||o)&&t!==window&&(n=n||t.parentNode,!hr))do if(n&&n.getBoundingClientRect&&(Ye(n,"transform")!=="none"||o&&Ye(n,"position")!=="static")){var x=n.getBoundingClientRect();f-=x.top+parseInt(Ye(n,"border-top-width")),c-=x.left+parseInt(Ye(n,"border-left-width")),p=f+l.height,m=c+l.width;break}while(n=n.parentNode);if(i&&t!==window){var k=Mi(n||t),b=k&&k.a,F=k&&k.d;k&&(f/=F,c/=b,_/=b,v/=F,p=f+v,m=c+_)}return{top:f,left:c,bottom:p,right:m,width:_,height:v}}}function Hd(t,a,o){for(var i=Or(t,!0),n=Gt(t)[a];i;){var l=Gt(i)[o],f=void 0;if(f=n>=l,!f)return i;if(i===Kn())break;i=Or(i,!1)}return!1}function Oi(t,a,o,i){for(var n=0,l=0,f=t.children;l<f.length;){if(f[l].style.display!=="none"&&f[l]!==Ge.ghost&&(i||f[l]!==Ge.dragged)&&Jn(f[l],o.draggable,t,!1)){if(n===a)return f[l];n++}l++}return null}function cs(t,a){for(var o=t.lastElementChild;o&&(o===Ge.ghost||Ye(o,"display")==="none"||a&&!Va(o,a));)o=o.previousElementSibling;return o||null}function Tn(t,a){var o=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Ge.clone&&(!a||Va(t,a))&&o++;return o}function Wd(t){var a=0,o=0,i=Kn();if(t)do{var n=Mi(t),l=n.a,f=n.d;a+=t.scrollLeft*l,o+=t.scrollTop*f}while(t!==i&&(t=t.parentNode));return[a,o]}function Xv(t,a){for(var o in t)if(t.hasOwnProperty(o)){for(var i in a)if(a.hasOwnProperty(i)&&a[i]===t[o][i])return Number(o)}return-1}function Or(t,a){if(!t||!t.getBoundingClientRect)return Kn();var o=t,i=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var n=Ye(o);if(o.clientWidth<o.scrollWidth&&(n.overflowX=="auto"||n.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(n.overflowY=="auto"||n.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return Kn();if(i||a)return o;i=!0}}while(o=o.parentNode);return Kn()}function Yv(t,a){if(t&&a)for(var o in a)a.hasOwnProperty(o)&&(t[o]=a[o]);return t}function Fu(t,a){return Math.round(t.top)===Math.round(a.top)&&Math.round(t.left)===Math.round(a.left)&&Math.round(t.height)===Math.round(a.height)&&Math.round(t.width)===Math.round(a.width)}var Eo;function Jf(t,a){return function(){if(!Eo){var o=arguments,i=this;o.length===1?t.call(i,o[0]):t.apply(i,o),Eo=setTimeout(function(){Eo=void 0},a)}}}function Gv(){clearTimeout(Eo),Eo=void 0}function Kf(t,a,o){t.scrollLeft+=a,t.scrollTop+=o}function Zf(t){var a=window.Polymer,o=window.jQuery||window.Zepto;return a&&a.dom?a.dom(t).cloneNode(!0):o?o(t).clone(!0)[0]:t.cloneNode(!0)}var Fn="Sortable"+new Date().getTime();function $v(){var t=[],a;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(i){if(!(Ye(i,"display")==="none"||i===Ge.ghost)){t.push({target:i,rect:Gt(i)});var n=Zn({},t[t.length-1].rect);if(i.thisAnimationDuration){var l=Mi(i,!0);l&&(n.top-=l.f,n.left-=l.e)}i.fromRect=n}})}},addAnimationState:function(o){t.push(o)},removeAnimationState:function(o){t.splice(Xv(t,{target:o}),1)},animateAll:function(o){var i=this;if(!this.options.animation){clearTimeout(a),typeof o=="function"&&o();return}var n=!1,l=0;t.forEach(function(f){var c=0,p=f.target,m=p.fromRect,v=Gt(p),_=p.prevFromRect,x=p.prevToRect,k=f.rect,b=Mi(p,!0);b&&(v.top-=b.f,v.left-=b.e),p.toRect=v,p.thisAnimationDuration&&Fu(_,v)&&!Fu(m,v)&&(k.top-v.top)/(k.left-v.left)===(m.top-v.top)/(m.left-v.left)&&(c=Jv(k,_,x,i.options)),Fu(v,m)||(p.prevFromRect=m,p.prevToRect=v,c||(c=i.options.animation),i.animate(p,k,v,c)),c&&(n=!0,l=Math.max(l,c),clearTimeout(p.animationResetTimer),p.animationResetTimer=setTimeout(function(){p.animationTime=0,p.prevFromRect=null,p.fromRect=null,p.prevToRect=null,p.thisAnimationDuration=null},c),p.thisAnimationDuration=c)}),clearTimeout(a),n?a=setTimeout(function(){typeof o=="function"&&o()},l):typeof o=="function"&&o(),t=[]},animate:function(o,i,n,l){if(l){Ye(o,"transition",""),Ye(o,"transform","");var f=Mi(this.el),c=f&&f.a,p=f&&f.d,m=(i.left-n.left)/(c||1),v=(i.top-n.top)/(p||1);o.animatingX=!!m,o.animatingY=!!v,Ye(o,"transform","translate3d("+m+"px,"+v+"px,0)"),this.forRepaintDummy=qv(o),Ye(o,"transition","transform "+l+"ms"+(this.options.easing?" "+this.options.easing:"")),Ye(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){Ye(o,"transition",""),Ye(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},l)}}}}function qv(t){return t.offsetWidth}function Jv(t,a,o,i){return Math.sqrt(Math.pow(a.top-t.top,2)+Math.pow(a.left-t.left,2))/Math.sqrt(Math.pow(a.top-o.top,2)+Math.pow(a.left-o.left,2))*i.animation}var Ci=[],ku={initializeByDefault:!0},Oo={mount:function(t){for(var a in ku)ku.hasOwnProperty(a)&&!(a in t)&&(t[a]=ku[a]);Ci.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Ci.push(t)},pluginEvent:function(t,a,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var n=t+"Global";Ci.forEach(function(l){!a[l.pluginName]||(a[l.pluginName][n]&&a[l.pluginName][n](Zn({sortable:a},o)),a.options[l.pluginName]&&a[l.pluginName][t]&&a[l.pluginName][t](Zn({sortable:a},o)))})},initializePlugins:function(t,a,o,i){Ci.forEach(function(f){var c=f.pluginName;if(!(!t.options[c]&&!f.initializeByDefault)){var p=new f(t,a,t.options);p.sortable=t,p.options=t.options,t[c]=p,pr(o,p.defaults)}});for(var n in t.options)if(t.options.hasOwnProperty(n)){var l=this.modifyOption(t,n,t.options[n]);typeof l<"u"&&(t.options[n]=l)}},getEventProperties:function(t,a){var o={};return Ci.forEach(function(i){typeof i.eventProperties=="function"&&pr(o,i.eventProperties.call(a[i.pluginName],t))}),o},modifyOption:function(t,a,o){var i;return Ci.forEach(function(n){!t[n.pluginName]||n.optionListeners&&typeof n.optionListeners[a]=="function"&&(i=n.optionListeners[a].call(t[n.pluginName],o))}),i}};function Kv(t){var a=t.sortable,o=t.rootEl,i=t.name,n=t.targetEl,l=t.cloneEl,f=t.toEl,c=t.fromEl,p=t.oldIndex,m=t.newIndex,v=t.oldDraggableIndex,_=t.newDraggableIndex,x=t.originalEvent,k=t.putSortable,b=t.extraEventProperties;if(a=a||o&&o[Fn],!!a){var F,y=a.options,h="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!hr&&!No?F=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(F=document.createEvent("Event"),F.initEvent(i,!0,!0)),F.to=f||o,F.from=c||o,F.item=n||o,F.clone=l,F.oldIndex=p,F.newIndex=m,F.oldDraggableIndex=v,F.newDraggableIndex=_,F.originalEvent=x,F.pullMode=k?k.lastPutMode:void 0;var g=Zn(Zn({},b),Oo.getEventProperties(i,a));for(var A in g)F[A]=g[A];o&&o.dispatchEvent(F),y[h]&&y[h].call(a,F)}}var Zv=["evt"],vn=function(t,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.evt,n=Uv(o,Zv);Oo.pluginEvent.bind(Ge)(t,a,Zn({dragEl:De,parentEl:Bt,ghostEl:Je,rootEl:Ct,nextEl:qr,lastDownEl:Oa,cloneEl:Tt,cloneHidden:Mr,dragStarted:_o,putSortable:Zt,activeSortable:Ge.active,originalEvent:i,oldIndex:Ri,oldDraggableIndex:Co,newIndex:Cn,newDraggableIndex:Rr,hideGhostForTarget:rp,unhideGhostForTarget:ip,cloneNowHidden:function(){Mr=!0},cloneNowShown:function(){Mr=!1},dispatchSortableEvent:function(l){dn({sortable:a,name:l,originalEvent:i})}},n))};function dn(t){Kv(Zn({putSortable:Zt,cloneEl:Tt,targetEl:De,rootEl:Ct,oldIndex:Ri,oldDraggableIndex:Co,newIndex:Cn,newDraggableIndex:Rr},t))}var De,Bt,Je,Ct,qr,Oa,Tt,Mr,Ri,Cn,Co,Rr,ya,Zt,Bi=!1,ja=!1,za=[],Gr,Pn,Su,Du,Qd,Xd,_o,Fi,Fo,ko=!1,ba=!1,Ia,rn,Bu=[],ns=!1,Ua=[],Xa=typeof document<"u",Aa=Gf,Yd=No||hr?"cssFloat":"float",e0=Xa&&!Wv&&!Gf&&"draggable"in document.createElement("div"),ep=function(){if(Xa){if(hr)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),tp=function(t,a){var o=Ye(t),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),n=Oi(t,0,a),l=Oi(t,1,a),f=n&&Ye(n),c=l&&Ye(l),p=f&&parseInt(f.marginLeft)+parseInt(f.marginRight)+Gt(n).width,m=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+Gt(l).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(n&&f.float&&f.float!=="none"){var v=f.float==="left"?"left":"right";return l&&(c.clear==="both"||c.clear===v)?"vertical":"horizontal"}return n&&(f.display==="block"||f.display==="flex"||f.display==="table"||f.display==="grid"||p>=i&&o[Yd]==="none"||l&&o[Yd]==="none"&&p+m>i)?"vertical":"horizontal"},t0=function(t,a,o){var i=o?t.left:t.top,n=o?t.right:t.bottom,l=o?t.width:t.height,f=o?a.left:a.top,c=o?a.right:a.bottom,p=o?a.width:a.height;return i===f||n===c||i+l/2===f+p/2},n0=function(t,a){var o;return za.some(function(i){var n=i[Fn].options.emptyInsertThreshold;if(!(!n||cs(i))){var l=Gt(i),f=t>=l.left-n&&t<=l.right+n,c=a>=l.top-n&&a<=l.bottom+n;if(f&&c)return o=i}}),o},np=function(t){function a(n,l){return function(f,c,p,m){var v=f.options.group.name&&c.options.group.name&&f.options.group.name===c.options.group.name;if(n==null&&(l||v))return!0;if(n==null||n===!1)return!1;if(l&&n==="clone")return n;if(typeof n=="function")return a(n(f,c,p,m),l)(f,c,p,m);var _=(l?f:c).options.group.name;return n===!0||typeof n=="string"&&n===_||n.join&&n.indexOf(_)>-1}}var o={},i=t.group;(!i||Na(i)!="object")&&(i={name:i}),o.name=i.name,o.checkPull=a(i.pull,!0),o.checkPut=a(i.put),o.revertClone=i.revertClone,t.group=o},rp=function(){!ep&&Je&&Ye(Je,"display","none")},ip=function(){!ep&&Je&&Ye(Je,"display","")};Xa&&document.addEventListener("click",function(t){if(ja)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),ja=!1,!1},!0);var $r=function(t){if(De){t=t.touches?t.touches[0]:t;var a=n0(t.clientX,t.clientY);if(a){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i]);o.target=o.rootEl=a,o.preventDefault=void 0,o.stopPropagation=void 0,a[Fn]._onDragOver(o)}}},r0=function(t){De&&De.parentNode[Fn]._isOutsideThisEl(t.target)};function Ge(t,a){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=a=pr({},a),t[Fn]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return tp(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(l,f){l.setData("Text",f.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:Ge.supportPointer!==!1&&"PointerEvent"in window&&!wo,emptyInsertThreshold:5};Oo.initializePlugins(this,t,o);for(var i in o)!(i in a)&&(a[i]=o[i]);np(a);for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));this.nativeDraggable=a.forceFallback?!1:e0,this.nativeDraggable&&(this.options.touchStartThreshold=1),a.supportPointer?mt(t,"pointerdown",this._onTapStart):(mt(t,"mousedown",this._onTapStart),mt(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(mt(t,"dragover",this),mt(t,"dragenter",this)),za.push(this.el),a.store&&a.store.get&&this.sort(a.store.get(this)||[]),pr(this,$v())}Ge.prototype={constructor:Ge,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Fi=null)},_getDirection:function(t,a){return typeof this.options.direction=="function"?this.options.direction.call(this,t,a,De):this.options.direction},_onTapStart:function(t){if(t.cancelable){var a=this,o=this.el,i=this.options,n=i.preventOnFilter,l=t.type,f=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,c=(f||t).target,p=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||c,m=i.filter;if(d0(o),!De&&!(/mousedown|pointerdown/.test(l)&&t.button!==0||i.disabled)&&!p.isContentEditable&&!(!this.nativeDraggable&&wo&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=Jn(c,i.draggable,o,!1),!(c&&c.animated)&&Oa!==c)){if(Ri=Tn(c),Co=Tn(c,i.draggable),typeof m=="function"){if(m.call(this,t,c,this)){dn({sortable:a,rootEl:p,name:"filter",targetEl:c,toEl:o,fromEl:o}),vn("filter",a,{evt:t}),n&&t.cancelable&&t.preventDefault();return}}else if(m&&(m=m.split(",").some(function(v){if(v=Jn(p,v.trim(),o,!1),v)return dn({sortable:a,rootEl:v,name:"filter",targetEl:c,fromEl:o,toEl:o}),vn("filter",a,{evt:t}),!0}),m)){n&&t.cancelable&&t.preventDefault();return}i.handle&&!Jn(p,i.handle,o,!1)||this._prepareDragStart(t,f,c)}}},_prepareDragStart:function(t,a,o){var i=this,n=i.el,l=i.options,f=n.ownerDocument,c;if(o&&!De&&o.parentNode===n){var p=Gt(o);if(Ct=n,De=o,Bt=De.parentNode,qr=De.nextSibling,Oa=o,ya=l.group,Ge.dragged=De,Gr={target:De,clientX:(a||t).clientX,clientY:(a||t).clientY},Qd=Gr.clientX-p.left,Xd=Gr.clientY-p.top,this._lastX=(a||t).clientX,this._lastY=(a||t).clientY,De.style["will-change"]="all",c=function(){if(vn("delayEnded",i,{evt:t}),Ge.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!zd&&i.nativeDraggable&&(De.draggable=!0),i._triggerDragStart(t,a),dn({sortable:i,name:"choose",originalEvent:t}),En(De,l.chosenClass,!0)},l.ignore.split(",").forEach(function(m){qf(De,m.trim(),Tu)}),mt(f,"dragover",$r),mt(f,"mousemove",$r),mt(f,"touchmove",$r),mt(f,"mouseup",i._onDrop),mt(f,"touchend",i._onDrop),mt(f,"touchcancel",i._onDrop),zd&&this.nativeDraggable&&(this.options.touchStartThreshold=4,De.draggable=!0),vn("delayStart",this,{evt:t}),l.delay&&(!l.delayOnTouchOnly||a)&&(!this.nativeDraggable||!(No||hr))){if(Ge.eventCanceled){this._onDrop();return}mt(f,"mouseup",i._disableDelayedDrag),mt(f,"touchend",i._disableDelayedDrag),mt(f,"touchcancel",i._disableDelayedDrag),mt(f,"mousemove",i._delayedDragTouchMoveHandler),mt(f,"touchmove",i._delayedDragTouchMoveHandler),l.supportPointer&&mt(f,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(c,l.delay)}else c()}},_delayedDragTouchMoveHandler:function(t){var a=t.touches?t.touches[0]:t;Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){De&&Tu(De),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;ct(t,"mouseup",this._disableDelayedDrag),ct(t,"touchend",this._disableDelayedDrag),ct(t,"touchcancel",this._disableDelayedDrag),ct(t,"mousemove",this._delayedDragTouchMoveHandler),ct(t,"touchmove",this._delayedDragTouchMoveHandler),ct(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,a){a=a||t.pointerType=="touch"&&t,!this.nativeDraggable||a?this.options.supportPointer?mt(document,"pointermove",this._onTouchMove):a?mt(document,"touchmove",this._onTouchMove):mt(document,"mousemove",this._onTouchMove):(mt(De,"dragend",this),mt(Ct,"dragstart",this._onDragStart));try{document.selection?La(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,a){if(Bi=!1,Ct&&De){vn("dragStarted",this,{evt:a}),this.nativeDraggable&&mt(document,"dragover",r0);var o=this.options;!t&&En(De,o.dragClass,!1),En(De,o.ghostClass,!0),Ge.active=this,t&&this._appendGhost(),dn({sortable:this,name:"start",originalEvent:a})}else this._nulling()},_emulateDragOver:function(){if(Pn){this._lastX=Pn.clientX,this._lastY=Pn.clientY,rp();for(var t=document.elementFromPoint(Pn.clientX,Pn.clientY),a=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Pn.clientX,Pn.clientY),t!==a);)a=t;if(De.parentNode[Fn]._isOutsideThisEl(t),a)do{if(a[Fn]){var o=void 0;if(o=a[Fn]._onDragOver({clientX:Pn.clientX,clientY:Pn.clientY,target:t,rootEl:a}),o&&!this.options.dragoverBubble)break}t=a}while(a=a.parentNode);ip()}},_onTouchMove:function(t){if(Gr){var a=this.options,o=a.fallbackTolerance,i=a.fallbackOffset,n=t.touches?t.touches[0]:t,l=Je&&Mi(Je,!0),f=Je&&l&&l.a,c=Je&&l&&l.d,p=Aa&&rn&&Wd(rn),m=(n.clientX-Gr.clientX+i.x)/(f||1)+(p?p[0]-Bu[0]:0)/(f||1),v=(n.clientY-Gr.clientY+i.y)/(c||1)+(p?p[1]-Bu[1]:0)/(c||1);if(!Ge.active&&!Bi){if(o&&Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(Je){l?(l.e+=m-(Su||0),l.f+=v-(Du||0)):l={a:1,b:0,c:0,d:1,e:m,f:v};var _="matrix(".concat(l.a,",").concat(l.b,",").concat(l.c,",").concat(l.d,",").concat(l.e,",").concat(l.f,")");Ye(Je,"webkitTransform",_),Ye(Je,"mozTransform",_),Ye(Je,"msTransform",_),Ye(Je,"transform",_),Su=m,Du=v,Pn=n}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Je){var t=this.options.fallbackOnBody?document.body:Ct,a=Gt(De,!0,Aa,!0,t),o=this.options;if(Aa){for(rn=t;Ye(rn,"position")==="static"&&Ye(rn,"transform")==="none"&&rn!==document;)rn=rn.parentNode;rn!==document.body&&rn!==document.documentElement?(rn===document&&(rn=Kn()),a.top+=rn.scrollTop,a.left+=rn.scrollLeft):rn=Kn(),Bu=Wd(rn)}Je=De.cloneNode(!0),En(Je,o.ghostClass,!1),En(Je,o.fallbackClass,!0),En(Je,o.dragClass,!0),Ye(Je,"transition",""),Ye(Je,"transform",""),Ye(Je,"box-sizing","border-box"),Ye(Je,"margin",0),Ye(Je,"top",a.top),Ye(Je,"left",a.left),Ye(Je,"width",a.width),Ye(Je,"height",a.height),Ye(Je,"opacity","0.8"),Ye(Je,"position",Aa?"absolute":"fixed"),Ye(Je,"zIndex","100000"),Ye(Je,"pointerEvents","none"),Ge.ghost=Je,t.appendChild(Je),Ye(Je,"transform-origin",Qd/parseInt(Je.style.width)*100+"% "+Xd/parseInt(Je.style.height)*100+"%")}},_onDragStart:function(t,a){var o=this,i=t.dataTransfer,n=o.options;if(vn("dragStart",this,{evt:t}),Ge.eventCanceled){this._onDrop();return}vn("setupClone",this),Ge.eventCanceled||(Tt=Zf(De),Tt.draggable=!1,Tt.style["will-change"]="",this._hideClone(),En(Tt,this.options.chosenClass,!1),Ge.clone=Tt),o.cloneId=La(function(){vn("clone",o),!Ge.eventCanceled&&(o.options.removeCloneOnHide||Ct.insertBefore(Tt,De),o._hideClone(),dn({sortable:o,name:"clone"}))}),!a&&En(De,n.dragClass,!0),a?(ja=!0,o._loopId=setInterval(o._emulateDragOver,50)):(ct(document,"mouseup",o._onDrop),ct(document,"touchend",o._onDrop),ct(document,"touchcancel",o._onDrop),i&&(i.effectAllowed="move",n.setData&&n.setData.call(o,i,De)),mt(document,"drop",o),Ye(De,"transform","translateZ(0)")),Bi=!0,o._dragStartId=La(o._dragStarted.bind(o,a,t)),mt(document,"selectstart",o),_o=!0,wo&&Ye(document.body,"user-select","none")},_onDragOver:function(t){var a=this.el,o=t.target,i,n,l,f=this.options,c=f.group,p=Ge.active,m=ya===c,v=f.sort,_=Zt||p,x,k=this,b=!1;if(ns)return;function F(U,Z){vn(U,k,Zn({evt:t,isOwner:m,axis:x?"vertical":"horizontal",revert:l,dragRect:i,targetRect:n,canSort:v,fromSortable:_,target:o,completed:h,onMove:function(L,Q){return xa(Ct,a,De,i,L,Gt(L),t,Q)},changed:g},Z))}function y(){F("dragOverAnimationCapture"),k.captureAnimationState(),k!==_&&_.captureAnimationState()}function h(U){return F("dragOverCompleted",{insertion:U}),U&&(m?p._hideClone():p._showClone(k),k!==_&&(En(De,Zt?Zt.options.ghostClass:p.options.ghostClass,!1),En(De,f.ghostClass,!0)),Zt!==k&&k!==Ge.active?Zt=k:k===Ge.active&&Zt&&(Zt=null),_===k&&(k._ignoreWhileAnimating=o),k.animateAll(function(){F("dragOverAnimationComplete"),k._ignoreWhileAnimating=null}),k!==_&&(_.animateAll(),_._ignoreWhileAnimating=null)),(o===De&&!De.animated||o===a&&!o.animated)&&(Fi=null),!f.dragoverBubble&&!t.rootEl&&o!==document&&(De.parentNode[Fn]._isOutsideThisEl(t.target),!U&&$r(t)),!f.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),b=!0}function g(){Cn=Tn(De),Rr=Tn(De,f.draggable),dn({sortable:k,name:"change",toEl:a,newIndex:Cn,newDraggableIndex:Rr,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=Jn(o,f.draggable,a,!0),F("dragOver"),Ge.eventCanceled)return b;if(De.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||k._ignoreWhileAnimating===o)return h(!1);if(ja=!1,p&&!f.disabled&&(m?v||(l=Bt!==Ct):Zt===this||(this.lastPutMode=ya.checkPull(this,p,De,t))&&c.checkPut(this,p,De,t))){if(x=this._getDirection(t,o)==="vertical",i=Gt(De),F("dragOverValid"),Ge.eventCanceled)return b;if(l)return Bt=Ct,y(),this._hideClone(),F("revert"),Ge.eventCanceled||(qr?Ct.insertBefore(De,qr):Ct.appendChild(De)),h(!0);var A=cs(a,f.draggable);if(!A||l0(t,x,this)&&!A.animated){if(A===De)return h(!1);if(A&&a===t.target&&(o=A),o&&(n=Gt(o)),xa(Ct,a,De,i,o,n,t,!!o)!==!1)return y(),a.appendChild(De),Bt=a,g(),h(!0)}else if(A&&a0(t,x,this)){var C=Oi(a,0,f,!0);if(C===De)return h(!1);if(o=C,n=Gt(o),xa(Ct,a,De,i,o,n,t,!1)!==!1)return y(),a.insertBefore(De,C),Bt=a,g(),h(!0)}else if(o.parentNode===a){n=Gt(o);var S=0,B,M=De.parentNode!==a,N=!t0(De.animated&&De.toRect||i,o.animated&&o.toRect||n,x),V=x?"top":"left",w=Hd(o,"top","top")||Hd(De,"top","top"),D=w?w.scrollTop:void 0;Fi!==o&&(B=n[V],ko=!1,ba=!N&&f.invertSwap||M),S=u0(t,o,n,x,N?1:f.swapThreshold,f.invertedSwapThreshold==null?f.swapThreshold:f.invertedSwapThreshold,ba,Fi===o);var I;if(S!==0){var j=Tn(De);do j-=S,I=Bt.children[j];while(I&&(Ye(I,"display")==="none"||I===Je))}if(S===0||I===o)return h(!1);Fi=o,Fo=S;var R=o.nextElementSibling,O=!1;O=S===1;var X=xa(Ct,a,De,i,o,n,t,O);if(X!==!1)return(X===1||X===-1)&&(O=X===1),ns=!0,setTimeout(o0,30),y(),O&&!R?a.appendChild(De):o.parentNode.insertBefore(De,O?R:o),w&&Kf(w,0,D-w.scrollTop),Bt=De.parentNode,B!==void 0&&!ba&&(Ia=Math.abs(B-Gt(o)[V])),g(),h(!0)}if(a.contains(De))return h(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ct(document,"mousemove",this._onTouchMove),ct(document,"touchmove",this._onTouchMove),ct(document,"pointermove",this._onTouchMove),ct(document,"dragover",$r),ct(document,"mousemove",$r),ct(document,"touchmove",$r)},_offUpEvents:function(){var t=this.el.ownerDocument;ct(t,"mouseup",this._onDrop),ct(t,"touchend",this._onDrop),ct(t,"pointerup",this._onDrop),ct(t,"touchcancel",this._onDrop),ct(document,"selectstart",this)},_onDrop:function(t){var a=this.el,o=this.options;if(Cn=Tn(De),Rr=Tn(De,o.draggable),vn("drop",this,{evt:t}),Bt=De&&De.parentNode,Cn=Tn(De),Rr=Tn(De,o.draggable),Ge.eventCanceled){this._nulling();return}Bi=!1,ba=!1,ko=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),rs(this.cloneId),rs(this._dragStartId),this.nativeDraggable&&(ct(document,"drop",this),ct(a,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),wo&&Ye(document.body,"user-select",""),Ye(De,"transform",""),t&&(_o&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),Je&&Je.parentNode&&Je.parentNode.removeChild(Je),(Ct===Bt||Zt&&Zt.lastPutMode!=="clone")&&Tt&&Tt.parentNode&&Tt.parentNode.removeChild(Tt),De&&(this.nativeDraggable&&ct(De,"dragend",this),Tu(De),De.style["will-change"]="",_o&&!Bi&&En(De,Zt?Zt.options.ghostClass:this.options.ghostClass,!1),En(De,this.options.chosenClass,!1),dn({sortable:this,name:"unchoose",toEl:Bt,newIndex:null,newDraggableIndex:null,originalEvent:t}),Ct!==Bt?(Cn>=0&&(dn({rootEl:Bt,name:"add",toEl:Bt,fromEl:Ct,originalEvent:t}),dn({sortable:this,name:"remove",toEl:Bt,originalEvent:t}),dn({rootEl:Bt,name:"sort",toEl:Bt,fromEl:Ct,originalEvent:t}),dn({sortable:this,name:"sort",toEl:Bt,originalEvent:t})),Zt&&Zt.save()):Cn!==Ri&&Cn>=0&&(dn({sortable:this,name:"update",toEl:Bt,originalEvent:t}),dn({sortable:this,name:"sort",toEl:Bt,originalEvent:t})),Ge.active&&((Cn==null||Cn===-1)&&(Cn=Ri,Rr=Co),dn({sortable:this,name:"end",toEl:Bt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){vn("nulling",this),Ct=De=Bt=Je=qr=Tt=Oa=Mr=Gr=Pn=_o=Cn=Rr=Ri=Co=Fi=Fo=Zt=ya=Ge.dragged=Ge.ghost=Ge.clone=Ge.active=null,Ua.forEach(function(t){t.checked=!0}),Ua.length=Su=Du=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":De&&(this._onDragOver(t),i0(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],a,o=this.el.children,i=0,n=o.length,l=this.options;i<n;i++)a=o[i],Jn(a,l.draggable,this.el,!1)&&t.push(a.getAttribute(l.dataIdAttr)||c0(a));return t},sort:function(t,a){var o={},i=this.el;this.toArray().forEach(function(n,l){var f=i.children[l];Jn(f,this.options.draggable,i,!1)&&(o[n]=f)},this),a&&this.captureAnimationState(),t.forEach(function(n){o[n]&&(i.removeChild(o[n]),i.appendChild(o[n]))}),a&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,a){return Jn(t,a||this.options.draggable,this.el,!1)},option:function(t,a){var o=this.options;if(a===void 0)return o[t];var i=Oo.modifyOption(this,t,a);typeof i<"u"?o[t]=i:o[t]=a,t==="group"&&np(o)},destroy:function(){vn("destroy",this);var t=this.el;t[Fn]=null,ct(t,"mousedown",this._onTapStart),ct(t,"touchstart",this._onTapStart),ct(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(ct(t,"dragover",this),ct(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(a){a.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),za.splice(za.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Mr){if(vn("hideClone",this),Ge.eventCanceled)return;Ye(Tt,"display","none"),this.options.removeCloneOnHide&&Tt.parentNode&&Tt.parentNode.removeChild(Tt),Mr=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Mr){if(vn("showClone",this),Ge.eventCanceled)return;De.parentNode==Ct&&!this.options.group.revertClone?Ct.insertBefore(Tt,De):qr?Ct.insertBefore(Tt,qr):Ct.appendChild(Tt),this.options.group.revertClone&&this.animate(De,Tt),Ye(Tt,"display",""),Mr=!1}}};function i0(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function xa(t,a,o,i,n,l,f,c){var p,m=t[Fn],v=m.options.onMove,_;return window.CustomEvent&&!hr&&!No?p=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(p=document.createEvent("Event"),p.initEvent("move",!0,!0)),p.to=a,p.from=t,p.dragged=o,p.draggedRect=i,p.related=n||a,p.relatedRect=l||Gt(a),p.willInsertAfter=c,p.originalEvent=f,t.dispatchEvent(p),v&&(_=v.call(m,p,f)),_}function Tu(t){t.draggable=!1}function o0(){ns=!1}function a0(t,a,o){var i=Gt(Oi(o.el,0,o.options,!0)),n=10;return a?t.clientX<i.left-n||t.clientY<i.top&&t.clientX<i.right:t.clientY<i.top-n||t.clientY<i.bottom&&t.clientX<i.left}function l0(t,a,o){var i=Gt(cs(o.el,o.options.draggable)),n=10;return a?t.clientX>i.right+n||t.clientX<=i.right&&t.clientY>i.bottom&&t.clientX>=i.left:t.clientX>i.right&&t.clientY>i.top||t.clientX<=i.right&&t.clientY>i.bottom+n}function u0(t,a,o,i,n,l,f,c){var p=i?t.clientY:t.clientX,m=i?o.height:o.width,v=i?o.top:o.left,_=i?o.bottom:o.right,x=!1;if(!f){if(c&&Ia<m*n){if(!ko&&(Fo===1?p>v+m*l/2:p<_-m*l/2)&&(ko=!0),ko)x=!0;else if(Fo===1?p<v+Ia:p>_-Ia)return-Fo}else if(p>v+m*(1-n)/2&&p<_-m*(1-n)/2)return s0(a)}return x=x||f,x&&(p<v+m*l/2||p>_-m*l/2)?p>v+m/2?1:-1:0}function s0(t){return Tn(De)<Tn(t)?1:-1}function c0(t){for(var a=t.tagName+t.className+t.src+t.href+t.textContent,o=a.length,i=0;o--;)i+=a.charCodeAt(o);return i.toString(36)}function d0(t){Ua.length=0;for(var a=t.getElementsByTagName("input"),o=a.length;o--;){var i=a[o];i.checked&&Ua.push(i)}}function La(t){return setTimeout(t,0)}function rs(t){return clearTimeout(t)}Xa&&mt(document,"touchmove",function(t){(Ge.active||Bi)&&t.cancelable&&t.preventDefault()});Ge.utils={on:mt,off:ct,css:Ye,find:qf,is:function(t,a){return!!Jn(t,a,t,!1)},extend:Yv,throttle:Jf,closest:Jn,toggleClass:En,clone:Zf,index:Tn,nextTick:La,cancelNextTick:rs,detectDirection:tp,getChild:Oi};Ge.get=function(t){return t[Fn]};Ge.mount=function(){for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];a[0].constructor===Array&&(a=a[0]),a.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(Ge.utils=Zn(Zn({},Ge.utils),i.utils)),Oo.mount(i)})};Ge.create=function(t,a){return new Ge(t,a)};Ge.version=Hv;var Pt=[],yo,is,os=!1,Ru,Mu,Ha,bo;function f0(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this))}return t.prototype={dragStarted:function(a){var o=a.originalEvent;this.sortable.nativeDraggable?mt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?mt(document,"pointermove",this._handleFallbackAutoScroll):o.touches?mt(document,"touchmove",this._handleFallbackAutoScroll):mt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(a){var o=a.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?ct(document,"dragover",this._handleAutoScroll):(ct(document,"pointermove",this._handleFallbackAutoScroll),ct(document,"touchmove",this._handleFallbackAutoScroll),ct(document,"mousemove",this._handleFallbackAutoScroll)),Gd(),Pa(),Gv()},nulling:function(){Ha=is=yo=os=bo=Ru=Mu=null,Pt.length=0},_handleFallbackAutoScroll:function(a){this._handleAutoScroll(a,!0)},_handleAutoScroll:function(a,o){var i=this,n=(a.touches?a.touches[0]:a).clientX,l=(a.touches?a.touches[0]:a).clientY,f=document.elementFromPoint(n,l);if(Ha=a,o||this.options.forceAutoScrollFallback||No||hr||wo){Nu(a,this.options,f,o);var c=Or(f,!0);os&&(!bo||n!==Ru||l!==Mu)&&(bo&&Gd(),bo=setInterval(function(){var p=Or(document.elementFromPoint(n,l),!0);p!==c&&(c=p,Pa()),Nu(a,i.options,p,o)},10),Ru=n,Mu=l)}else{if(!this.options.bubbleScroll||Or(f,!0)===Kn()){Pa();return}Nu(a,this.options,Or(f,!1),!1)}}},pr(t,{pluginName:"scroll",initializeByDefault:!0})}function Pa(){Pt.forEach(function(t){clearInterval(t.pid)}),Pt=[]}function Gd(){clearInterval(bo)}var Nu=Jf(function(t,a,o,i){if(a.scroll){var n=(t.touches?t.touches[0]:t).clientX,l=(t.touches?t.touches[0]:t).clientY,f=a.scrollSensitivity,c=a.scrollSpeed,p=Kn(),m=!1,v;is!==o&&(is=o,Pa(),yo=a.scroll,v=a.scrollFn,yo===!0&&(yo=Or(o,!0)));var _=0,x=yo;do{var k=x,b=Gt(k),F=b.top,y=b.bottom,h=b.left,g=b.right,A=b.width,C=b.height,S=void 0,B=void 0,M=k.scrollWidth,N=k.scrollHeight,V=Ye(k),w=k.scrollLeft,D=k.scrollTop;k===p?(S=A<M&&(V.overflowX==="auto"||V.overflowX==="scroll"||V.overflowX==="visible"),B=C<N&&(V.overflowY==="auto"||V.overflowY==="scroll"||V.overflowY==="visible")):(S=A<M&&(V.overflowX==="auto"||V.overflowX==="scroll"),B=C<N&&(V.overflowY==="auto"||V.overflowY==="scroll"));var I=S&&(Math.abs(g-n)<=f&&w+A<M)-(Math.abs(h-n)<=f&&!!w),j=B&&(Math.abs(y-l)<=f&&D+C<N)-(Math.abs(F-l)<=f&&!!D);if(!Pt[_])for(var R=0;R<=_;R++)Pt[R]||(Pt[R]={});(Pt[_].vx!=I||Pt[_].vy!=j||Pt[_].el!==k)&&(Pt[_].el=k,Pt[_].vx=I,Pt[_].vy=j,clearInterval(Pt[_].pid),(I!=0||j!=0)&&(m=!0,Pt[_].pid=setInterval(function(){i&&this.layer===0&&Ge.active._onTouchMove(Ha);var O=Pt[this.layer].vy?Pt[this.layer].vy*c:0,X=Pt[this.layer].vx?Pt[this.layer].vx*c:0;typeof v=="function"&&v.call(Ge.dragged.parentNode[Fn],X,O,t,Ha,Pt[this.layer].el)!=="continue"||Kf(Pt[this.layer].el,X,O)}.bind({layer:_}),24))),_++}while(a.bubbleScroll&&x!==p&&(x=Or(x,!1)));os=m}},30),op=function(t){var a=t.originalEvent,o=t.putSortable,i=t.dragEl,n=t.activeSortable,l=t.dispatchSortableEvent,f=t.hideGhostForTarget,c=t.unhideGhostForTarget;if(a){var p=o||n;f();var m=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,v=document.elementFromPoint(m.clientX,m.clientY);c(),p&&!p.el.contains(v)&&(l("spill"),this.onSpill({dragEl:i,putSortable:o}))}};function ds(){}ds.prototype={startIndex:null,dragStart:function(t){var a=t.oldDraggableIndex;this.startIndex=a},onSpill:function(t){var a=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var i=Oi(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(a,i):this.sortable.el.appendChild(a),this.sortable.animateAll(),o&&o.animateAll()},drop:op};pr(ds,{pluginName:"revertOnSpill"});function fs(){}fs.prototype={onSpill:function(t){var a=t.dragEl,o=t.putSortable,i=o||this.sortable;i.captureAnimationState(),a.parentNode&&a.parentNode.removeChild(a),i.animateAll()},drop:op};pr(fs,{pluginName:"removeOnSpill"});Ge.mount(new f0);Ge.mount(fs,ds);function Ou(t){t.parentElement!==null&&t.parentElement.removeChild(t)}function $d(t,a,o){const i=o===0?t.children[0]:t.children[o-1].nextSibling;t.insertBefore(a,i)}function p0(){return typeof window<"u"?window.console:global.console}const h0=p0();function m0(t){const a=Object.create(null);return function(o){return a[o]||(a[o]=t(o))}}const g0=/-(\w)/g,v0=m0(t=>t.replace(g0,(a,o)=>o.toUpperCase())),ap=["Start","Add","Remove","Update","End"],lp=["Choose","Unchoose","Sort","Filter","Clone"],up=["Move"],_0=[up,ap,lp].flatMap(t=>t).map(t=>`on${t}`),as={manage:up,manageAndEmit:ap,emit:lp};function y0(t){return _0.indexOf(t)!==-1}const b0=["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 A0(t){return b0.includes(t)}function x0(t){return["transition-group","TransitionGroup"].includes(t)}function sp(t){return["id","class","role","style"].includes(t)||t.startsWith("data-")||t.startsWith("aria-")||t.startsWith("on")}function cp(t){return t.reduce((a,[o,i])=>(a[o]=i,a),{})}function w0({$attrs:t,componentData:a={}}){return{...cp(Object.entries(t).filter(([o,i])=>sp(o))),...a}}function E0({$attrs:t,callBackBuilder:a}){const o=cp(dp(t));Object.entries(a).forEach(([n,l])=>{as[n].forEach(f=>{o[`on${f}`]=l(f)})});const i=`[data-draggable]${o.draggable||""}`;return{...o,draggable:i}}function dp(t){return Object.entries(t).filter(([a,o])=>!sp(a)).map(([a,o])=>[v0(a),o]).filter(([a,o])=>!y0(a))}const qd=({el:t})=>t,C0=(t,a)=>t.__draggable_context=a,Jd=t=>t.__draggable_context;class F0{constructor({nodes:{header:a,default:o,footer:i},root:n,realList:l}){this.defaultNodes=o,this.children=[...a,...o,...i],this.externalComponent=n.externalComponent,this.rootTransition=n.transition,this.tag=n.tag,this.realList=l}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(a,o){const{tag:i,children:n,_isRootComponent:l}=this;return a(i,o,l?{default:()=>n}:n)}updated(){const{defaultNodes:a,realList:o}=this;a.forEach((i,n)=>{C0(qd(i),{element:o[n],index:n})})}getUnderlyingVm(a){return Jd(a)}getVmIndexFromDomIndex(a,o){const{defaultNodes:i}=this,{length:n}=i,l=o.children,f=l.item(a);if(f===null)return n;const c=Jd(f);if(c)return c.index;if(n===0)return 0;const p=qd(i[0]),m=[...l].findIndex(v=>v===p);return a<m?0:n}}function k0(t,a){const o=t[a];return o?o():[]}function S0({$slots:t,realList:a,getKey:o}){const i=a||[],[n,l]=["header","footer"].map(p=>k0(t,p)),{item:f}=t;if(!f)throw new Error("draggable element must have an item slot");const c=i.flatMap((p,m)=>f({element:p,index:m}).map(v=>(v.key=o(p),v.props={...v.props||{},"data-draggable":!0},v)));if(c.length!==i.length)throw new Error("Item slot must have only one child");return{header:n,footer:l,default:c}}function D0(t){const a=x0(t),o=!A0(t)&&!a;return{transition:a,externalComponent:o,tag:o?de(t):a?Xm:t}}function B0({$slots:t,tag:a,realList:o,getKey:i}){const n=S0({$slots:t,realList:o,getKey:i}),l=D0(a);return new F0({nodes:n,root:l,realList:o})}function fp(t,a){Bn(()=>this.$emit(t.toLowerCase(),a))}function pp(t){return(a,o)=>{if(this.realList!==null)return this[`onDrag${t}`](a,o)}}function T0(t){const a=pp.call(this,t);return(o,i)=>{a.call(this,o,i),fp.call(this,t,o)}}let Iu=null;const R0={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:t=>t},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},M0=["update:modelValue","change",...[...as.manageAndEmit,...as.emit].map(t=>t.toLowerCase())],ps=tt({name:"draggable",inheritAttrs:!1,props:R0,emits:M0,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:t,$attrs:a,tag:o,componentData:i,realList:n,getKey:l}=this,f=B0({$slots:t,tag:o,realList:n,getKey:l});this.componentStructure=f;const c=w0({$attrs:a,componentData:i});return f.render(xo,c)}catch(t){return this.error=!0,xo("pre",{style:{color:"red"}},t.stack)}},created(){this.list!==null&&this.modelValue!==null&&h0.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:t,$el:a,componentStructure:o}=this;o.updated();const i=E0({$attrs:t,callBackBuilder:{manageAndEmit:l=>T0.call(this,l),emit:l=>fp.bind(this,l),manage:l=>pp.call(this,l)}}),n=a.nodeType===1?a:a.parentElement;this._sortable=new Ge(n,i),this.targetDomElement=n,n.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:t}=this;return t||this.modelValue},getKey(){const{itemKey:t}=this;return typeof t=="function"?t:a=>a[t]}},watch:{$attrs:{handler(t){const{_sortable:a}=this;!a||dp(t).forEach(([o,i])=>{a.option(o,i)})},deep:!0}},methods:{getUnderlyingVm(t){return this.componentStructure.getUnderlyingVm(t)||null},getUnderlyingPotencialDraggableComponent(t){return t.__draggable_component__},emitChanges(t){Bn(()=>this.$emit("change",t))},alterList(t){if(this.list){t(this.list);return}const a=[...this.modelValue];t(a),this.$emit("update:modelValue",a)},spliceList(){const t=a=>a.splice(...arguments);this.alterList(t)},updatePosition(t,a){const o=i=>i.splice(a,0,i.splice(t,1)[0]);this.alterList(o)},getRelatedContextFromMoveEvent({to:t,related:a}){const o=this.getUnderlyingPotencialDraggableComponent(t);if(!o)return{component:o};const i=o.realList,n={list:i,component:o};return t!==a&&i?{...o.getUnderlyingVm(a)||{},...n}:n},getVmIndexFromDomIndex(t){return this.componentStructure.getVmIndexFromDomIndex(t,this.targetDomElement)},onDragStart(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),Iu=t.item},onDragAdd(t){const a=t.item._underlying_vm_;if(a===void 0)return;Ou(t.item);const o=this.getVmIndexFromDomIndex(t.newIndex);this.spliceList(o,0,a);const i={element:a,newIndex:o};this.emitChanges({added:i})},onDragRemove(t){if($d(this.$el,t.item,t.oldIndex),t.pullMode==="clone"){Ou(t.clone);return}const{index:a,element:o}=this.context;this.spliceList(a,1);const i={element:o,oldIndex:a};this.emitChanges({removed:i})},onDragUpdate(t){Ou(t.item),$d(t.from,t.item,t.oldIndex);const a=this.context.index,o=this.getVmIndexFromDomIndex(t.newIndex);this.updatePosition(a,o);const i={element:this.context.element,oldIndex:a,newIndex:o};this.emitChanges({moved:i})},computeFutureIndex(t,a){if(!t.element)return 0;const o=[...a.to.children].filter(l=>l.style.display!=="none"),i=o.indexOf(a.related),n=t.component.getVmIndexFromDomIndex(i);return o.indexOf(Iu)!==-1||!a.willInsertAfter?n:n+1},onDragMove(t,a){const{move:o,realList:i}=this;if(!o||!i)return!0;const n=this.getRelatedContextFromMoveEvent(t),l=this.computeFutureIndex(n,t),f={...this.context,futureIndex:l},c={...t,relatedContext:n,draggedContext:f};return o(c,a)},onDragEnd(){Iu=null}}});function N0(){return[{name:"main",title:"基础组件",list:[]},{name:"subform",title:"子表单组件",list:[]},{name:"aide",title:"辅助组件",list:[]},{name:"layout",title:"布局组件",list:[]}]}const Ya=Uf,Ke=Uf.factory();let hp=null,Kd=Ao(null);function ls(...t){return hp(...t)}const mp=t=>{Kd.value=t||Wf;const a=es(Kd);return hp=a.t,a};mp();var O0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Zd={exports:{}},ef;function Ga(){return ef||(ef=1,function(t,a){(function(o,i){t.exports=i()})(O0,function(){var o=navigator.userAgent,i=navigator.platform,n=/gecko\/\d/i.test(o),l=/MSIE \d/.test(o),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(o),c=/Edge\/(\d+)/.exec(o),p=l||f||c,m=p&&(l?document.documentMode||6:+(c||f)[1]),v=!c&&/WebKit\//.test(o),_=v&&/Qt\/\d+\.\d+/.test(o),x=!c&&/Chrome\/(\d+)/.exec(o),k=x&&+x[1],b=/Opera\//.test(o),F=/Apple Computer/.test(navigator.vendor),y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(o),h=/PhantomJS/.test(o),g=F&&(/Mobile\/\w+/.test(o)||navigator.maxTouchPoints>2),A=/Android/.test(o),C=g||A||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(o),S=g||/Mac/.test(i),B=/\bCrOS\b/.test(o),M=/win/i.test(i),N=b&&o.match(/Version\/(\d*\.\d*)/);N&&(N=Number(N[1])),N&&N>=15&&(b=!1,v=!0);var V=S&&(_||b&&(N==null||N<12.11)),w=n||p&&m>=9;function D(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var I=function(e,r){var s=e.className,u=D(r).exec(s);if(u){var d=s.slice(u.index+u[0].length);e.className=s.slice(0,u.index)+(d?u[1]+d:"")}};function j(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function R(e,r){return j(e).appendChild(r)}function O(e,r,s,u){var d=document.createElement(e);if(s&&(d.className=s),u&&(d.style.cssText=u),typeof r=="string")d.appendChild(document.createTextNode(r));else if(r)for(var E=0;E<r.length;++E)d.appendChild(r[E]);return d}function X(e,r,s,u){var d=O(e,r,s,u);return d.setAttribute("role","presentation"),d}var U;document.createRange?U=function(e,r,s,u){var d=document.createRange();return d.setEnd(u||e,s),d.setStart(e,r),d}:U=function(e,r,s){var u=document.body.createTextRange();try{u.moveToElementText(e.parentNode)}catch{return u}return u.collapse(!0),u.moveEnd("character",s),u.moveStart("character",r),u};function Z(e,r){if(r.nodeType==3&&(r=r.parentNode),e.contains)return e.contains(r);do if(r.nodeType==11&&(r=r.host),r==e)return!0;while(r=r.parentNode)}function L(e){var r;try{r=e.activeElement}catch{r=e.body||null}for(;r&&r.shadowRoot&&r.shadowRoot.activeElement;)r=r.shadowRoot.activeElement;return r}function Q(e,r){var s=e.className;D(r).test(s)||(e.className+=(s?" ":"")+r)}function W(e,r){for(var s=e.split(" "),u=0;u<s.length;u++)s[u]&&!D(s[u]).test(r)&&(r+=" "+s[u]);return r}var G=function(e){e.select()};g?G=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:p&&(G=function(e){try{e.select()}catch{}});function te(e){return e.display.wrapper.ownerDocument}function le(e){return te(e).defaultView}function ye(e){var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}}function fe(e,r,s){r||(r={});for(var u in e)e.hasOwnProperty(u)&&(s!==!1||!r.hasOwnProperty(u))&&(r[u]=e[u]);return r}function oe(e,r,s,u,d){r==null&&(r=e.search(/[^\s\u00a0]/),r==-1&&(r=e.length));for(var E=u||0,T=d||0;;){var P=e.indexOf(" ",E);if(P<0||P>=r)return T+(r-E);T+=P-E,T+=s-T%s,E=P+1}}var ce=function(){this.id=null,this.f=null,this.time=0,this.handler=ye(this.onTimeout,this)};ce.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ce.prototype.set=function(e,r){this.f=r;var s=+new Date+e;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=s)};function se(e,r){for(var s=0;s<e.length;++s)if(e[s]==r)return s;return-1}var be=50,we={toString:function(){return"CodeMirror.Pass"}},Te={scroll:!1},$e={origin:"*mouse"},ot={origin:"+move"};function rt(e,r,s){for(var u=0,d=0;;){var E=e.indexOf(" ",u);E==-1&&(E=e.length);var T=E-u;if(E==e.length||d+T>=r)return u+Math.min(T,r-d);if(d+=E-u,d+=s-d%s,u=E+1,d>=r)return u}}var At=[""];function xt(e){for(;At.length<=e;)At.push(Le(At)+" ");return At[e]}function Le(e){return e[e.length-1]}function _t(e,r){for(var s=[],u=0;u<e.length;u++)s[u]=r(e[u],u);return s}function fn(e,r,s){for(var u=0,d=s(r);u<e.length&&s(e[u])<=d;)u++;e.splice(u,0,r)}function zt(){}function mr(e,r){var s;return Object.create?s=Object.create(e):(zt.prototype=e,s=new zt),r&&fe(r,s),s}var zn=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function _n(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||zn.test(e))}function yn(e,r){return r?r.source.indexOf("\\w")>-1&&_n(e)?!0:r.test(e):_n(e)}function Un(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var bn=/[\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 kn(e){return e.charCodeAt(0)>=768&&bn.test(e)}function Ot(e,r,s){for(;(s<0?r>0:r<e.length)&&kn(e.charAt(r));)r+=s;return r}function ft(e,r,s){for(var u=r>s?-1:1;;){if(r==s)return r;var d=(r+s)/2,E=u<0?Math.ceil(d):Math.floor(d);if(E==r)return e(E)?r:s;e(E)?s=E:r=E+u}}function pn(e,r,s,u){if(!e)return u(r,s,"ltr",0);for(var d=!1,E=0;E<e.length;++E){var T=e[E];(T.from<s&&T.to>r||r==s&&T.to==r)&&(u(Math.max(T.from,r),Math.min(T.to,s),T.level==1?"rtl":"ltr",E),d=!0)}d||u(r,s,"ltr")}var Re=null;function Se(e,r,s){var u;Re=null;for(var d=0;d<e.length;++d){var E=e[d];if(E.from<r&&E.to>r)return d;E.to==r&&(E.from!=E.to&&s=="before"?u=d:Re=d),E.from==r&&(E.from!=E.to&&s!="before"?u=d:Re=d)}return u??Re}var He=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(H){return H<=247?e.charAt(H):1424<=H&&H<=1524?"R":1536<=H&&H<=1785?r.charAt(H-1536):1774<=H&&H<=2220?"r":8192<=H&&H<=8203?"w":H==8204?"b":"L"}var u=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,E=/[LRr]/,T=/[Lb1n]/,P=/[1n]/;function z(H,$,J){this.level=H,this.from=$,this.to=J}return function(H,$){var J=$=="ltr"?"L":"R";if(H.length==0||$=="ltr"&&!u.test(H))return!1;for(var ue=H.length,ae=[],me=0;me<ue;++me)ae.push(s(H.charCodeAt(me)));for(var _e=0,Ae=J;_e<ue;++_e){var Ee=ae[_e];Ee=="m"?ae[_e]=Ae:Ae=Ee}for(var Be=0,Ce=J;Be<ue;++Be){var Me=ae[Be];Me=="1"&&Ce=="r"?ae[Be]="n":E.test(Me)&&(Ce=Me,Me=="r"&&(ae[Be]="R"))}for(var je=1,Pe=ae[0];je<ue-1;++je){var et=ae[je];et=="+"&&Pe=="1"&&ae[je+1]=="1"?ae[je]="1":et==","&&Pe==ae[je+1]&&(Pe=="1"||Pe=="n")&&(ae[je]=Pe),Pe=et}for(var yt=0;yt<ue;++yt){var Qt=ae[yt];if(Qt==",")ae[yt]="N";else if(Qt=="%"){var Et=void 0;for(Et=yt+1;Et<ue&&ae[Et]=="%";++Et);for(var gn=yt&&ae[yt-1]=="!"||Et<ue&&ae[Et]=="1"?"1":"N",un=yt;un<Et;++un)ae[un]=gn;yt=Et-1}}for(var Rt=0,sn=J;Rt<ue;++Rt){var $t=ae[Rt];sn=="L"&&$t=="1"?ae[Rt]="L":E.test($t)&&(sn=$t)}for(var Lt=0;Lt<ue;++Lt)if(d.test(ae[Lt])){var Mt=void 0;for(Mt=Lt+1;Mt<ue&&d.test(ae[Mt]);++Mt);for(var kt=(Lt?ae[Lt-1]:J)=="L",cn=(Mt<ue?ae[Mt]:J)=="L",xi=kt==cn?kt?"L":"R":J,Dr=Lt;Dr<Mt;++Dr)ae[Dr]=xi;Lt=Mt-1}for(var Kt=[],qn,Xt=0;Xt<ue;)if(T.test(ae[Xt])){var Wl=Xt;for(++Xt;Xt<ue&&T.test(ae[Xt]);++Xt);Kt.push(new z(0,Wl,Xt))}else{var sr=Xt,Xr=Kt.length,Yr=$=="rtl"?1:0;for(++Xt;Xt<ue&&ae[Xt]!="L";++Xt);for(var nn=sr;nn<Xt;)if(P.test(ae[nn])){sr<nn&&(Kt.splice(Xr,0,new z(1,sr,nn)),Xr+=Yr);var wi=nn;for(++nn;nn<Xt&&P.test(ae[nn]);++nn);Kt.splice(Xr,0,new z(2,wi,nn)),Xr+=Yr,sr=nn}else++nn;sr<Xt&&Kt.splice(Xr,0,new z(1,sr,Xt))}return $=="ltr"&&(Kt[0].level==1&&(qn=H.match(/^\s+/))&&(Kt[0].from=qn[0].length,Kt.unshift(new z(0,0,qn[0].length))),Le(Kt).level==1&&(qn=H.match(/\s+$/))&&(Le(Kt).to-=qn[0].length,Kt.push(new z(0,ue-qn[0].length,ue)))),$=="rtl"?Kt.reverse():Kt}}();function Ue(e,r){var s=e.order;return s==null&&(s=e.order=He(e.text,r)),s}var xe=[],he=function(e,r,s){if(e.addEventListener)e.addEventListener(r,s,!1);else if(e.attachEvent)e.attachEvent("on"+r,s);else{var u=e._handlers||(e._handlers={});u[r]=(u[r]||xe).concat(s)}};function Ve(e,r){return e._handlers&&e._handlers[r]||xe}function Ie(e,r,s){if(e.removeEventListener)e.removeEventListener(r,s,!1);else if(e.detachEvent)e.detachEvent("on"+r,s);else{var u=e._handlers,d=u&&u[r];if(d){var E=se(d,s);E>-1&&(u[r]=d.slice(0,E).concat(d.slice(E+1)))}}}function We(e,r){var s=Ve(e,r);if(s.length)for(var u=Array.prototype.slice.call(arguments,2),d=0;d<s.length;++d)s[d].apply(null,u)}function ut(e,r,s){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),We(e,s||r.type,e,r),Lr(r)||r.codemirrorIgnore}function An(e){var r=e._handlers&&e._handlers.cursorActivity;if(r)for(var s=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),u=0;u<r.length;++u)se(s,r[u])==-1&&s.push(r[u])}function gt(e,r){return Ve(e,r).length>0}function bt(e){e.prototype.on=function(r,s){he(this,r,s)},e.prototype.off=function(r,s){Ie(this,r,s)}}function St(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Hn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Lr(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function tr(e){St(e),Hn(e)}function on(e){return e.target||e.srcElement}function Pi(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),S&&e.ctrlKey&&r==1&&(r=3),r}var Ka=function(){if(p&&m<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}(),Sn;function Za(e){if(Sn==null){var r=O("span","");R(e,O("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Sn=r.offsetWidth<=1&&r.offsetHeight>2&&!(p&&m<8))}var s=Sn?O("span",""):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var ni;function Po(e){if(ni!=null)return ni;var r=R(e,document.createTextNode("AخA")),s=U(r,0,1).getBoundingClientRect(),u=U(r,1,2).getBoundingClientRect();return j(e),!s||s.left==s.right?!1:ni=u.right-s.right<3}var Vi=`
- b`.split(/\n/).length!=3?function(e){for(var r=0,s=[],u=e.length;r<=u;){var d=e.indexOf(`
- `,r);d==-1&&(d=e.length);var E=e.slice(r,e.charAt(d-1)=="\r"?d-1:d),T=E.indexOf("\r");T!=-1?(s.push(E.slice(0,T)),r+=T+1):(s.push(E),r=d+1)}return s}:function(e){return e.split(/\r\n?|\n/)},gr=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},Wn=function(){var e=O("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Qn=null;function Vo(e){if(Qn!=null)return Qn;var r=R(e,O("span","x")),s=r.getBoundingClientRect(),u=U(r,0,1).getBoundingClientRect();return Qn=Math.abs(s.left-u.left)>1}var Mn={},vr={};function jo(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),Mn[e]=r}function ri(e,r){vr[e]=r}function hn(e){if(typeof e=="string"&&vr.hasOwnProperty(e))e=vr[e];else if(e&&typeof e.name=="string"&&vr.hasOwnProperty(e.name)){var r=vr[e.name];typeof r=="string"&&(r={name:r}),e=mr(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return hn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return hn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function _r(e,r){r=hn(r);var s=Mn[r.name];if(!s)return _r(e,"text/plain");var u=s(e,r);if(yr.hasOwnProperty(r.name)){var d=yr[r.name];for(var E in d)!d.hasOwnProperty(E)||(u.hasOwnProperty(E)&&(u["_"+E]=u[E]),u[E]=d[E])}if(u.name=r.name,r.helperType&&(u.helperType=r.helperType),r.modeProps)for(var T in r.modeProps)u[T]=r.modeProps[T];return u}var yr={};function zo(e,r){var s=yr.hasOwnProperty(e)?yr[e]:yr[e]={};fe(r,s)}function nr(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var s={};for(var u in r){var d=r[u];d instanceof Array&&(d=d.concat([])),s[u]=d}return s}function br(e,r){for(var s;e.innerMode&&(s=e.innerMode(r),!(!s||s.mode==e));)r=s.state,e=s.mode;return s||{mode:e,state:r}}function ji(e,r,s){return e.startState?e.startState(r,s):!0}var Ft=function(e,r,s){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};Ft.prototype.eol=function(){return this.pos>=this.string.length},Ft.prototype.sol=function(){return this.pos==this.lineStart},Ft.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ft.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ft.prototype.eat=function(e){var r=this.string.charAt(this.pos),s;if(typeof e=="string"?s=r==e:s=r&&(e.test?e.test(r):e(r)),s)return++this.pos,r},Ft.prototype.eatWhile=function(e){for(var r=this.pos;this.eat(e););return this.pos>r},Ft.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ft.prototype.skipToEnd=function(){this.pos=this.string.length},Ft.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},Ft.prototype.backUp=function(e){this.pos-=e},Ft.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=oe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?oe(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.indentation=function(){return oe(this.string,null,this.tabSize)-(this.lineStart?oe(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.match=function(e,r,s){if(typeof e=="string"){var u=function(T){return s?T.toLowerCase():T},d=this.string.substr(this.pos,e.length);if(u(d)==u(e))return r!==!1&&(this.pos+=e.length),!0}else{var E=this.string.slice(this.pos).match(e);return E&&E.index>0?null:(E&&r!==!1&&(this.pos+=E[0].length),E)}},Ft.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ft.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},Ft.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},Ft.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Oe(e,r){if(r-=e.first,r<0||r>=e.size)throw new Error("There is no line "+(r+e.first)+" in the document.");for(var s=e;!s.lines;)for(var u=0;;++u){var d=s.children[u],E=d.chunkSize();if(r<E){s=d;break}r-=E}return s.lines[r]}function rr(e,r,s){var u=[],d=r.line;return e.iter(r.line,s.line+1,function(E){var T=E.text;d==s.line&&(T=T.slice(0,s.ch)),d==r.line&&(T=T.slice(r.ch)),u.push(T),++d}),u}function ii(e,r,s){var u=[];return e.iter(r,s,function(d){u.push(d.text)}),u}function Dn(e,r){var s=r-e.height;if(s)for(var u=e;u;u=u.parent)u.height+=s}function pt(e){if(e.parent==null)return null;for(var r=e.parent,s=se(r.lines,e),u=r.parent;u;r=u,u=u.parent)for(var d=0;u.children[d]!=r;++d)s+=u.children[d].chunkSize();return s+r.first}function Xn(e,r){var s=e.first;e:do{for(var u=0;u<e.children.length;++u){var d=e.children[u],E=d.height;if(r<E){e=d;continue e}r-=E,s+=d.chunkSize()}return s}while(!e.lines);for(var T=0;T<e.lines.length;++T){var P=e.lines[T],z=P.height;if(r<z)break;r-=z}return s+T}function Y(e,r){return r>=e.first&&r<e.first+e.size}function K(e,r){return String(e.lineNumberFormatter(r+e.firstLineNumber))}function ne(e,r,s){if(s===void 0&&(s=null),!(this instanceof ne))return new ne(e,r,s);this.line=e,this.ch=r,this.sticky=s}function pe(e,r){return e.line-r.line||e.ch-r.ch}function Qe(e,r){return e.sticky==r.sticky&&pe(e,r)==0}function it(e){return ne(e.line,e.ch)}function st(e,r){return pe(e,r)<0?r:e}function It(e,r){return pe(e,r)<0?e:r}function xn(e,r){return Math.max(e.first,Math.min(r,e.first+e.size-1))}function Xe(e,r){if(r.line<e.first)return ne(e.first,0);var s=e.first+e.size-1;return r.line>s?ne(s,Oe(e,s).text.length):Hp(r,Oe(e,r.line).text.length)}function Hp(e,r){var s=e.ch;return s==null||s>r?ne(e.line,r):s<0?ne(e.line,0):e}function ws(e,r){for(var s=[],u=0;u<r.length;u++)s[u]=Xe(e,r[u]);return s}var Uo=function(e,r){this.state=e,this.lookAhead=r},Yn=function(e,r,s,u){this.state=r,this.doc=e,this.line=s,this.maxLookAhead=u||0,this.baseTokens=null,this.baseTokenPos=1};Yn.prototype.lookAhead=function(e){var r=this.doc.getLine(this.line+e);return r!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),r},Yn.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Yn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Yn.fromSaved=function(e,r,s){return r instanceof Uo?new Yn(e,nr(e.mode,r.state),s,r.lookAhead):new Yn(e,nr(e.mode,r),s)},Yn.prototype.save=function(e){var r=e!==!1?nr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Uo(r,this.maxLookAhead):r};function Es(e,r,s,u){var d=[e.state.modeGen],E={};Bs(e,r.text,e.doc.mode,s,function(H,$){return d.push(H,$)},E,u);for(var T=s.state,P=function(H){s.baseTokens=d;var $=e.state.overlays[H],J=1,ue=0;s.state=!0,Bs(e,r.text,$.mode,s,function(ae,me){for(var _e=J;ue<ae;){var Ae=d[J];Ae>ae&&d.splice(J,1,ae,d[J+1],Ae),J+=2,ue=Math.min(ae,Ae)}if(me)if($.opaque)d.splice(_e,J-_e,ae,"overlay "+me),J=_e+2;else for(;_e<J;_e+=2){var Ee=d[_e+1];d[_e+1]=(Ee?Ee+" ":"")+"overlay "+me}},E),s.state=T,s.baseTokens=null,s.baseTokenPos=1},z=0;z<e.state.overlays.length;++z)P(z);return{styles:d,classes:E.bgClass||E.textClass?E:null}}function Cs(e,r,s){if(!r.styles||r.styles[0]!=e.state.modeGen){var u=zi(e,pt(r)),d=r.text.length>e.options.maxHighlightLength&&nr(e.doc.mode,u.state),E=Es(e,r,u);d&&(u.state=d),r.stateAfter=u.save(!d),r.styles=E.styles,E.classes?r.styleClasses=E.classes:r.styleClasses&&(r.styleClasses=null),s===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function zi(e,r,s){var u=e.doc,d=e.display;if(!u.mode.startState)return new Yn(u,!0,r);var E=Wp(e,r,s),T=E>u.first&&Oe(u,E-1).stateAfter,P=T?Yn.fromSaved(u,T,E):new Yn(u,ji(u.mode),E);return u.iter(E,r,function(z){el(e,z.text,P);var H=P.line;z.stateAfter=H==r-1||H%5==0||H>=d.viewFrom&&H<d.viewTo?P.save():null,P.nextLine()}),s&&(u.modeFrontier=P.line),P}function el(e,r,s,u){var d=e.doc.mode,E=new Ft(r,e.options.tabSize,s);for(E.start=E.pos=u||0,r==""&&Fs(d,s.state);!E.eol();)tl(d,E,s.state),E.start=E.pos}function Fs(e,r){if(e.blankLine)return e.blankLine(r);if(e.innerMode){var s=br(e,r);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function tl(e,r,s,u){for(var d=0;d<10;d++){u&&(u[0]=br(e,s).mode);var E=e.token(r,s);if(r.pos>r.start)return E}throw new Error("Mode "+e.name+" failed to advance stream.")}var ks=function(e,r,s){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=s};function Ss(e,r,s,u){var d=e.doc,E=d.mode,T;r=Xe(d,r);var P=Oe(d,r.line),z=zi(e,r.line,s),H=new Ft(P.text,e.options.tabSize,z),$;for(u&&($=[]);(u||H.pos<r.ch)&&!H.eol();)H.start=H.pos,T=tl(E,H,z.state),u&&$.push(new ks(H,T,nr(d.mode,z.state)));return u?$:new ks(H,T,z.state)}function Ds(e,r){if(e)for(;;){var s=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;e=e.slice(0,s.index)+e.slice(s.index+s[0].length);var u=s[1]?"bgClass":"textClass";r[u]==null?r[u]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(r[u])||(r[u]+=" "+s[2])}return e}function Bs(e,r,s,u,d,E,T){var P=s.flattenSpans;P==null&&(P=e.options.flattenSpans);var z=0,H=null,$=new Ft(r,e.options.tabSize,u),J,ue=e.options.addModeClass&&[null];for(r==""&&Ds(Fs(s,u.state),E);!$.eol();){if($.pos>e.options.maxHighlightLength?(P=!1,T&&el(e,r,u,$.pos),$.pos=r.length,J=null):J=Ds(tl(s,$,u.state,ue),E),ue){var ae=ue[0].name;ae&&(J="m-"+(J?ae+" "+J:ae))}if(!P||H!=J){for(;z<$.start;)z=Math.min($.start,z+5e3),d(z,H);H=J}$.start=$.pos}for(;z<$.pos;){var me=Math.min($.pos,z+5e3);d(me,H),z=me}}function Wp(e,r,s){for(var u,d,E=e.doc,T=s?-1:r-(e.doc.mode.innerMode?1e3:100),P=r;P>T;--P){if(P<=E.first)return E.first;var z=Oe(E,P-1),H=z.stateAfter;if(H&&(!s||P+(H instanceof Uo?H.lookAhead:0)<=E.modeFrontier))return P;var $=oe(z.text,null,e.options.tabSize);(d==null||u>$)&&(d=P-1,u=$)}return d}function Qp(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),!(e.highlightFrontier<r-10)){for(var s=e.first,u=r-1;u>s;u--){var d=Oe(e,u).stateAfter;if(d&&(!(d instanceof Uo)||u+d.lookAhead<r)){s=u+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,s)}}var Ts=!1,ir=!1;function Xp(){Ts=!0}function Yp(){ir=!0}function Ho(e,r,s){this.marker=e,this.from=r,this.to=s}function Ui(e,r){if(e)for(var s=0;s<e.length;++s){var u=e[s];if(u.marker==r)return u}}function Gp(e,r){for(var s,u=0;u<e.length;++u)e[u]!=r&&(s||(s=[])).push(e[u]);return s}function $p(e,r,s){var u=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));u&&e.markedSpans&&u.has(e.markedSpans)?e.markedSpans.push(r):(e.markedSpans=e.markedSpans?e.markedSpans.concat([r]):[r],u&&u.add(e.markedSpans)),r.marker.attachLine(e)}function qp(e,r,s){var u;if(e)for(var d=0;d<e.length;++d){var E=e[d],T=E.marker,P=E.from==null||(T.inclusiveLeft?E.from<=r:E.from<r);if(P||E.from==r&&T.type=="bookmark"&&(!s||!E.marker.insertLeft)){var z=E.to==null||(T.inclusiveRight?E.to>=r:E.to>r);(u||(u=[])).push(new Ho(T,E.from,z?null:E.to))}}return u}function Jp(e,r,s){var u;if(e)for(var d=0;d<e.length;++d){var E=e[d],T=E.marker,P=E.to==null||(T.inclusiveRight?E.to>=r:E.to>r);if(P||E.from==r&&T.type=="bookmark"&&(!s||E.marker.insertLeft)){var z=E.from==null||(T.inclusiveLeft?E.from<=r:E.from<r);(u||(u=[])).push(new Ho(T,z?null:E.from-r,E.to==null?null:E.to-r))}}return u}function nl(e,r){if(r.full)return null;var s=Y(e,r.from.line)&&Oe(e,r.from.line).markedSpans,u=Y(e,r.to.line)&&Oe(e,r.to.line).markedSpans;if(!s&&!u)return null;var d=r.from.ch,E=r.to.ch,T=pe(r.from,r.to)==0,P=qp(s,d,T),z=Jp(u,E,T),H=r.text.length==1,$=Le(r.text).length+(H?d:0);if(P)for(var J=0;J<P.length;++J){var ue=P[J];if(ue.to==null){var ae=Ui(z,ue.marker);ae?H&&(ue.to=ae.to==null?null:ae.to+$):ue.to=d}}if(z)for(var me=0;me<z.length;++me){var _e=z[me];if(_e.to!=null&&(_e.to+=$),_e.from==null){var Ae=Ui(P,_e.marker);Ae||(_e.from=$,H&&(P||(P=[])).push(_e))}else _e.from+=$,H&&(P||(P=[])).push(_e)}P&&(P=Rs(P)),z&&z!=P&&(z=Rs(z));var Ee=[P];if(!H){var Be=r.text.length-2,Ce;if(Be>0&&P)for(var Me=0;Me<P.length;++Me)P[Me].to==null&&(Ce||(Ce=[])).push(new Ho(P[Me].marker,null,null));for(var je=0;je<Be;++je)Ee.push(Ce);Ee.push(z)}return Ee}function Rs(e){for(var r=0;r<e.length;++r){var s=e[r];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&e.splice(r--,1)}return e.length?e:null}function Kp(e,r,s){var u=null;if(e.iter(r.line,s.line+1,function(ae){if(ae.markedSpans)for(var me=0;me<ae.markedSpans.length;++me){var _e=ae.markedSpans[me].marker;_e.readOnly&&(!u||se(u,_e)==-1)&&(u||(u=[])).push(_e)}}),!u)return null;for(var d=[{from:r,to:s}],E=0;E<u.length;++E)for(var T=u[E],P=T.find(0),z=0;z<d.length;++z){var H=d[z];if(!(pe(H.to,P.from)<0||pe(H.from,P.to)>0)){var $=[z,1],J=pe(H.from,P.from),ue=pe(H.to,P.to);(J<0||!T.inclusiveLeft&&!J)&&$.push({from:H.from,to:P.from}),(ue>0||!T.inclusiveRight&&!ue)&&$.push({from:P.to,to:H.to}),d.splice.apply(d,$),z+=$.length-3}}return d}function Ms(e){var r=e.markedSpans;if(r){for(var s=0;s<r.length;++s)r[s].marker.detachLine(e);e.markedSpans=null}}function Ns(e,r){if(r){for(var s=0;s<r.length;++s)r[s].marker.attachLine(e);e.markedSpans=r}}function Wo(e){return e.inclusiveLeft?-1:0}function Qo(e){return e.inclusiveRight?1:0}function rl(e,r){var s=e.lines.length-r.lines.length;if(s!=0)return s;var u=e.find(),d=r.find(),E=pe(u.from,d.from)||Wo(e)-Wo(r);if(E)return-E;var T=pe(u.to,d.to)||Qo(e)-Qo(r);return T||r.id-e.id}function Os(e,r){var s=ir&&e.markedSpans,u;if(s)for(var d=void 0,E=0;E<s.length;++E)d=s[E],d.marker.collapsed&&(r?d.from:d.to)==null&&(!u||rl(u,d.marker)<0)&&(u=d.marker);return u}function Is(e){return Os(e,!0)}function Xo(e){return Os(e,!1)}function Zp(e,r){var s=ir&&e.markedSpans,u;if(s)for(var d=0;d<s.length;++d){var E=s[d];E.marker.collapsed&&(E.from==null||E.from<r)&&(E.to==null||E.to>r)&&(!u||rl(u,E.marker)<0)&&(u=E.marker)}return u}function Ls(e,r,s,u,d){var E=Oe(e,r),T=ir&&E.markedSpans;if(T)for(var P=0;P<T.length;++P){var z=T[P];if(z.marker.collapsed){var H=z.marker.find(0),$=pe(H.from,s)||Wo(z.marker)-Wo(d),J=pe(H.to,u)||Qo(z.marker)-Qo(d);if(!($>=0&&J<=0||$<=0&&J>=0)&&($<=0&&(z.marker.inclusiveRight&&d.inclusiveLeft?pe(H.to,s)>=0:pe(H.to,s)>0)||$>=0&&(z.marker.inclusiveRight&&d.inclusiveLeft?pe(H.from,u)<=0:pe(H.from,u)<0)))return!0}}}function Nn(e){for(var r;r=Is(e);)e=r.find(-1,!0).line;return e}function eh(e){for(var r;r=Xo(e);)e=r.find(1,!0).line;return e}function th(e){for(var r,s;r=Xo(e);)e=r.find(1,!0).line,(s||(s=[])).push(e);return s}function il(e,r){var s=Oe(e,r),u=Nn(s);return s==u?r:pt(u)}function Ps(e,r){if(r>e.lastLine())return r;var s=Oe(e,r),u;if(!Ar(e,s))return r;for(;u=Xo(s);)s=u.find(1,!0).line;return pt(s)+1}function Ar(e,r){var s=ir&&r.markedSpans;if(s){for(var u=void 0,d=0;d<s.length;++d)if(u=s[d],!!u.marker.collapsed&&(u.from==null||!u.marker.widgetNode&&u.from==0&&u.marker.inclusiveLeft&&ol(e,r,u)))return!0}}function ol(e,r,s){if(s.to==null){var u=s.marker.find(1,!0);return ol(e,u.line,Ui(u.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==r.text.length)return!0;for(var d=void 0,E=0;E<r.markedSpans.length;++E)if(d=r.markedSpans[E],d.marker.collapsed&&!d.marker.widgetNode&&d.from==s.to&&(d.to==null||d.to!=s.from)&&(d.marker.inclusiveLeft||s.marker.inclusiveRight)&&ol(e,r,d))return!0}function or(e){e=Nn(e);for(var r=0,s=e.parent,u=0;u<s.lines.length;++u){var d=s.lines[u];if(d==e)break;r+=d.height}for(var E=s.parent;E;s=E,E=s.parent)for(var T=0;T<E.children.length;++T){var P=E.children[T];if(P==s)break;r+=P.height}return r}function Yo(e){if(e.height==0)return 0;for(var r=e.text.length,s,u=e;s=Is(u);){var d=s.find(0,!0);u=d.from.line,r+=d.from.ch-d.to.ch}for(u=e;s=Xo(u);){var E=s.find(0,!0);r-=u.text.length-E.from.ch,u=E.to.line,r+=u.text.length-E.to.ch}return r}function al(e){var r=e.display,s=e.doc;r.maxLine=Oe(s,s.first),r.maxLineLength=Yo(r.maxLine),r.maxLineChanged=!0,s.iter(function(u){var d=Yo(u);d>r.maxLineLength&&(r.maxLineLength=d,r.maxLine=u)})}var oi=function(e,r,s){this.text=e,Ns(this,r),this.height=s?s(this):1};oi.prototype.lineNo=function(){return pt(this)},bt(oi);function nh(e,r,s,u){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Ms(e),Ns(e,s);var d=u?u(e):1;d!=e.height&&Dn(e,d)}function rh(e){e.parent=null,Ms(e)}var ih={},oh={};function Vs(e,r){if(!e||/^\s*$/.test(e))return null;var s=r.addModeClass?oh:ih;return s[e]||(s[e]=e.replace(/\S+/g,"cm-$&"))}function js(e,r){var s=X("span",null,null,v?"padding-right: .1px":null),u={pre:X("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var d=0;d<=(r.rest?r.rest.length:0);d++){var E=d?r.rest[d-1]:r.line,T=void 0;u.pos=0,u.addToken=lh,Po(e.display.measure)&&(T=Ue(E,e.doc.direction))&&(u.addToken=sh(u.addToken,T)),u.map=[];var P=r!=e.display.externalMeasured&&pt(E);ch(E,u,Cs(e,E,P)),E.styleClasses&&(E.styleClasses.bgClass&&(u.bgClass=W(E.styleClasses.bgClass,u.bgClass||"")),E.styleClasses.textClass&&(u.textClass=W(E.styleClasses.textClass,u.textClass||""))),u.map.length==0&&u.map.push(0,0,u.content.appendChild(Za(e.display.measure))),d==0?(r.measure.map=u.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(u.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(v){var z=u.content.lastChild;(/\bcm-tab\b/.test(z.className)||z.querySelector&&z.querySelector(".cm-tab"))&&(u.content.className="cm-tab-wrap-hack")}return We(e,"renderLine",e,r.line,u.pre),u.pre.className&&(u.textClass=W(u.pre.className,u.textClass||"")),u}function ah(e){var r=O("span","•","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function lh(e,r,s,u,d,E,T){if(r){var P=e.splitSpaces?uh(r,e.trailingSpace):r,z=e.cm.state.specialChars,H=!1,$;if(!z.test(r))e.col+=r.length,$=document.createTextNode(P),e.map.push(e.pos,e.pos+r.length,$),p&&m<9&&(H=!0),e.pos+=r.length;else{$=document.createDocumentFragment();for(var J=0;;){z.lastIndex=J;var ue=z.exec(r),ae=ue?ue.index-J:r.length-J;if(ae){var me=document.createTextNode(P.slice(J,J+ae));p&&m<9?$.appendChild(O("span",[me])):$.appendChild(me),e.map.push(e.pos,e.pos+ae,me),e.col+=ae,e.pos+=ae}if(!ue)break;J+=ae+1;var _e=void 0;if(ue[0]==" "){var Ae=e.cm.options.tabSize,Ee=Ae-e.col%Ae;_e=$.appendChild(O("span",xt(Ee),"cm-tab")),_e.setAttribute("role","presentation"),_e.setAttribute("cm-text"," "),e.col+=Ee}else ue[0]=="\r"||ue[0]==`
- `?(_e=$.appendChild(O("span",ue[0]=="\r"?"␍":"","cm-invalidchar")),_e.setAttribute("cm-text",ue[0]),e.col+=1):(_e=e.cm.options.specialCharPlaceholder(ue[0]),_e.setAttribute("cm-text",ue[0]),p&&m<9?$.appendChild(O("span",[_e])):$.appendChild(_e),e.col+=1);e.map.push(e.pos,e.pos+1,_e),e.pos++}}if(e.trailingSpace=P.charCodeAt(r.length-1)==32,s||u||d||H||E||T){var Be=s||"";u&&(Be+=u),d&&(Be+=d);var Ce=O("span",[$],Be,E);if(T)for(var Me in T)T.hasOwnProperty(Me)&&Me!="style"&&Me!="class"&&Ce.setAttribute(Me,T[Me]);return e.content.appendChild(Ce)}e.content.appendChild($)}}function uh(e,r){if(e.length>1&&!/ /.test(e))return e;for(var s=r,u="",d=0;d<e.length;d++){var E=e.charAt(d);E==" "&&s&&(d==e.length-1||e.charCodeAt(d+1)==32)&&(E=" "),u+=E,s=E==" "}return u}function sh(e,r){return function(s,u,d,E,T,P,z){d=d?d+" cm-force-border":"cm-force-border";for(var H=s.pos,$=H+u.length;;){for(var J=void 0,ue=0;ue<r.length&&(J=r[ue],!(J.to>H&&J.from<=H));ue++);if(J.to>=$)return e(s,u,d,E,T,P,z);e(s,u.slice(0,J.to-H),d,E,null,P,z),E=null,u=u.slice(J.to-H),H=J.to}}}function zs(e,r,s,u){var d=!u&&s.widgetNode;d&&e.map.push(e.pos,e.pos+r,d),!u&&e.cm.display.input.needsContentAttribute&&(d||(d=e.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",s.id)),d&&(e.cm.display.input.setUneditable(d),e.content.appendChild(d)),e.pos+=r,e.trailingSpace=!1}function ch(e,r,s){var u=e.markedSpans,d=e.text,E=0;if(!u){for(var T=1;T<s.length;T+=2)r.addToken(r,d.slice(E,E=s[T]),Vs(s[T+1],r.cm.options));return}for(var P=d.length,z=0,H=1,$="",J,ue,ae=0,me,_e,Ae,Ee,Be;;){if(ae==z){me=_e=Ae=ue="",Be=null,Ee=null,ae=1/0;for(var Ce=[],Me=void 0,je=0;je<u.length;++je){var Pe=u[je],et=Pe.marker;if(et.type=="bookmark"&&Pe.from==z&&et.widgetNode)Ce.push(et);else if(Pe.from<=z&&(Pe.to==null||Pe.to>z||et.collapsed&&Pe.to==z&&Pe.from==z)){if(Pe.to!=null&&Pe.to!=z&&ae>Pe.to&&(ae=Pe.to,_e=""),et.className&&(me+=" "+et.className),et.css&&(ue=(ue?ue+";":"")+et.css),et.startStyle&&Pe.from==z&&(Ae+=" "+et.startStyle),et.endStyle&&Pe.to==ae&&(Me||(Me=[])).push(et.endStyle,Pe.to),et.title&&((Be||(Be={})).title=et.title),et.attributes)for(var yt in et.attributes)(Be||(Be={}))[yt]=et.attributes[yt];et.collapsed&&(!Ee||rl(Ee.marker,et)<0)&&(Ee=Pe)}else Pe.from>z&&ae>Pe.from&&(ae=Pe.from)}if(Me)for(var Qt=0;Qt<Me.length;Qt+=2)Me[Qt+1]==ae&&(_e+=" "+Me[Qt]);if(!Ee||Ee.from==z)for(var Et=0;Et<Ce.length;++Et)zs(r,0,Ce[Et]);if(Ee&&(Ee.from||0)==z){if(zs(r,(Ee.to==null?P+1:Ee.to)-z,Ee.marker,Ee.from==null),Ee.to==null)return;Ee.to==z&&(Ee=!1)}}if(z>=P)break;for(var gn=Math.min(P,ae);;){if($){var un=z+$.length;if(!Ee){var Rt=un>gn?$.slice(0,gn-z):$;r.addToken(r,Rt,J?J+me:me,Ae,z+Rt.length==ae?_e:"",ue,Be)}if(un>=gn){$=$.slice(gn-z),z=gn;break}z=un,Ae=""}$=d.slice(E,E=s[H++]),J=Vs(s[H++],r.cm.options)}}}function Us(e,r,s){this.line=r,this.rest=th(r),this.size=this.rest?pt(Le(this.rest))-s+1:1,this.node=this.text=null,this.hidden=Ar(e,r)}function Go(e,r,s){for(var u=[],d,E=r;E<s;E=d){var T=new Us(e.doc,Oe(e.doc,E),E);d=E+T.size,u.push(T)}return u}var ai=null;function dh(e){ai?ai.ops.push(e):e.ownsGroup=ai={ops:[e],delayedCallbacks:[]}}function fh(e){var r=e.delayedCallbacks,s=0;do{for(;s<r.length;s++)r[s].call(null);for(var u=0;u<e.ops.length;u++){var d=e.ops[u];if(d.cursorActivityHandlers)for(;d.cursorActivityCalled<d.cursorActivityHandlers.length;)d.cursorActivityHandlers[d.cursorActivityCalled++].call(null,d.cm)}}while(s<r.length)}function ph(e,r){var s=e.ownsGroup;if(s)try{fh(s)}finally{ai=null,r(s)}}var Hi=null;function Ut(e,r){var s=Ve(e,r);if(s.length){var u=Array.prototype.slice.call(arguments,2),d;ai?d=ai.delayedCallbacks:Hi?d=Hi:(d=Hi=[],setTimeout(hh,0));for(var E=function(P){d.push(function(){return s[P].apply(null,u)})},T=0;T<s.length;++T)E(T)}}function hh(){var e=Hi;Hi=null;for(var r=0;r<e.length;++r)e[r]()}function Hs(e,r,s,u){for(var d=0;d<r.changes.length;d++){var E=r.changes[d];E=="text"?gh(e,r):E=="gutter"?Qs(e,r,s,u):E=="class"?ll(e,r):E=="widget"&&vh(e,r,u)}r.changes=null}function Wi(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),p&&m<8&&(e.node.style.zIndex=2)),e.node}function mh(e,r){var s=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),r.background)s?r.background.className=s:(r.background.parentNode.removeChild(r.background),r.background=null);else if(s){var u=Wi(r);r.background=u.insertBefore(O("div",null,s),u.firstChild),e.display.input.setUneditable(r.background)}}function Ws(e,r){var s=e.display.externalMeasured;return s&&s.line==r.line?(e.display.externalMeasured=null,r.measure=s.measure,s.built):js(e,r)}function gh(e,r){var s=r.text.className,u=Ws(e,r);r.text==r.node&&(r.node=u.pre),r.text.parentNode.replaceChild(u.pre,r.text),r.text=u.pre,u.bgClass!=r.bgClass||u.textClass!=r.textClass?(r.bgClass=u.bgClass,r.textClass=u.textClass,ll(e,r)):s&&(r.text.className=s)}function ll(e,r){mh(e,r),r.line.wrapClass?Wi(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var s=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=s||""}function Qs(e,r,s,u){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var d=Wi(r);r.gutterBackground=O("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(e.options.fixedGutter?u.fixedPos:-u.gutterTotalWidth)+"px; width: "+u.gutterTotalWidth+"px"),e.display.input.setUneditable(r.gutterBackground),d.insertBefore(r.gutterBackground,r.text)}var E=r.line.gutterMarkers;if(e.options.lineNumbers||E){var T=Wi(r),P=r.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?u.fixedPos:-u.gutterTotalWidth)+"px");if(P.setAttribute("aria-hidden","true"),e.display.input.setUneditable(P),T.insertBefore(P,r.text),r.line.gutterClass&&(P.className+=" "+r.line.gutterClass),e.options.lineNumbers&&(!E||!E["CodeMirror-linenumbers"])&&(r.lineNumber=P.appendChild(O("div",K(e.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+u.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),E)for(var z=0;z<e.display.gutterSpecs.length;++z){var H=e.display.gutterSpecs[z].className,$=E.hasOwnProperty(H)&&E[H];$&&P.appendChild(O("div",[$],"CodeMirror-gutter-elt","left: "+u.gutterLeft[H]+"px; width: "+u.gutterWidth[H]+"px"))}}}function vh(e,r,s){r.alignable&&(r.alignable=null);for(var u=D("CodeMirror-linewidget"),d=r.node.firstChild,E=void 0;d;d=E)E=d.nextSibling,u.test(d.className)&&r.node.removeChild(d);Xs(e,r,s)}function _h(e,r,s,u){var d=Ws(e,r);return r.text=r.node=d.pre,d.bgClass&&(r.bgClass=d.bgClass),d.textClass&&(r.textClass=d.textClass),ll(e,r),Qs(e,r,s,u),Xs(e,r,u),r.node}function Xs(e,r,s){if(Ys(e,r.line,r,s,!0),r.rest)for(var u=0;u<r.rest.length;u++)Ys(e,r.rest[u],r,s,!1)}function Ys(e,r,s,u,d){if(r.widgets)for(var E=Wi(s),T=0,P=r.widgets;T<P.length;++T){var z=P[T],H=O("div",[z.node],"CodeMirror-linewidget"+(z.className?" "+z.className:""));z.handleMouseEvents||H.setAttribute("cm-ignore-events","true"),yh(z,H,s,u),e.display.input.setUneditable(H),d&&z.above?E.insertBefore(H,s.gutter||s.text):E.appendChild(H),Ut(z,"redraw")}}function yh(e,r,s,u){if(e.noHScroll){(s.alignable||(s.alignable=[])).push(r);var d=u.wrapperWidth;r.style.left=u.fixedPos+"px",e.coverGutter||(d-=u.gutterTotalWidth,r.style.paddingLeft=u.gutterTotalWidth+"px"),r.style.width=d+"px"}e.coverGutter&&(r.style.zIndex=5,r.style.position="relative",e.noHScroll||(r.style.marginLeft=-u.gutterTotalWidth+"px"))}function Qi(e){if(e.height!=null)return e.height;var r=e.doc.cm;if(!r)return 0;if(!Z(document.body,e.node)){var s="position: relative;";e.coverGutter&&(s+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),e.noHScroll&&(s+="width: "+r.display.wrapper.clientWidth+"px;"),R(r.display.measure,O("div",[e.node],null,s))}return e.height=e.node.parentNode.offsetHeight}function ar(e,r){for(var s=on(r);s!=e.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==e.sizer&&s!=e.mover)return!0}function $o(e){return e.lineSpace.offsetTop}function ul(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Gs(e){if(e.cachedPaddingH)return e.cachedPaddingH;var r=R(e.measure,O("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,u={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(u.left)&&!isNaN(u.right)&&(e.cachedPaddingH=u),u}function Gn(e){return be-e.display.nativeBarWidth}function Pr(e){return e.display.scroller.clientWidth-Gn(e)-e.display.barWidth}function sl(e){return e.display.scroller.clientHeight-Gn(e)-e.display.barHeight}function bh(e,r,s){var u=e.options.lineWrapping,d=u&&Pr(e);if(!r.measure.heights||u&&r.measure.width!=d){var E=r.measure.heights=[];if(u){r.measure.width=d;for(var T=r.text.firstChild.getClientRects(),P=0;P<T.length-1;P++){var z=T[P],H=T[P+1];Math.abs(z.bottom-H.bottom)>2&&E.push((z.bottom+H.top)/2-s.top)}}E.push(s.bottom-s.top)}}function $s(e,r,s){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var u=0;u<e.rest.length;u++)if(e.rest[u]==r)return{map:e.measure.maps[u],cache:e.measure.caches[u]};for(var d=0;d<e.rest.length;d++)if(pt(e.rest[d])>s)return{map:e.measure.maps[d],cache:e.measure.caches[d],before:!0}}}function Ah(e,r){r=Nn(r);var s=pt(r),u=e.display.externalMeasured=new Us(e.doc,r,s);u.lineN=s;var d=u.built=js(e,u);return u.text=d.pre,R(e.display.lineMeasure,d.pre),u}function qs(e,r,s,u){return $n(e,li(e,r),s,u)}function cl(e,r){if(r>=e.display.viewFrom&&r<e.display.viewTo)return e.display.view[zr(e,r)];var s=e.display.externalMeasured;if(s&&r>=s.lineN&&r<s.lineN+s.size)return s}function li(e,r){var s=pt(r),u=cl(e,s);u&&!u.text?u=null:u&&u.changes&&(Hs(e,u,s,ml(e)),e.curOp.forceUpdate=!0),u||(u=Ah(e,r));var d=$s(u,r,s);return{line:r,view:u,rect:null,map:d.map,cache:d.cache,before:d.before,hasHeights:!1}}function $n(e,r,s,u,d){r.before&&(s=-1);var E=s+(u||""),T;return r.cache.hasOwnProperty(E)?T=r.cache[E]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(bh(e,r.view,r.rect),r.hasHeights=!0),T=wh(e,r,s,u),T.bogus||(r.cache[E]=T)),{left:T.left,right:T.right,top:d?T.rtop:T.top,bottom:d?T.rbottom:T.bottom}}var Js={left:0,right:0,top:0,bottom:0};function Ks(e,r,s){for(var u,d,E,T,P,z,H=0;H<e.length;H+=3)if(P=e[H],z=e[H+1],r<P?(d=0,E=1,T="left"):r<z?(d=r-P,E=d+1):(H==e.length-3||r==z&&e[H+3]>r)&&(E=z-P,d=E-1,r>=z&&(T="right")),d!=null){if(u=e[H+2],P==z&&s==(u.insertLeft?"left":"right")&&(T=s),s=="left"&&d==0)for(;H&&e[H-2]==e[H-3]&&e[H-1].insertLeft;)u=e[(H-=3)+2],T="left";if(s=="right"&&d==z-P)for(;H<e.length-3&&e[H+3]==e[H+4]&&!e[H+5].insertLeft;)u=e[(H+=3)+2],T="right";break}return{node:u,start:d,end:E,collapse:T,coverStart:P,coverEnd:z}}function xh(e,r){var s=Js;if(r=="left")for(var u=0;u<e.length&&(s=e[u]).left==s.right;u++);else for(var d=e.length-1;d>=0&&(s=e[d]).left==s.right;d--);return s}function wh(e,r,s,u){var d=Ks(r.map,s,u),E=d.node,T=d.start,P=d.end,z=d.collapse,H;if(E.nodeType==3){for(var $=0;$<4;$++){for(;T&&kn(r.line.text.charAt(d.coverStart+T));)--T;for(;d.coverStart+P<d.coverEnd&&kn(r.line.text.charAt(d.coverStart+P));)++P;if(p&&m<9&&T==0&&P==d.coverEnd-d.coverStart?H=E.parentNode.getBoundingClientRect():H=xh(U(E,T,P).getClientRects(),u),H.left||H.right||T==0)break;P=T,T=T-1,z="right"}p&&m<11&&(H=Eh(e.display.measure,H))}else{T>0&&(z=u="right");var J;e.options.lineWrapping&&(J=E.getClientRects()).length>1?H=J[u=="right"?J.length-1:0]:H=E.getBoundingClientRect()}if(p&&m<9&&!T&&(!H||!H.left&&!H.right)){var ue=E.parentNode.getClientRects()[0];ue?H={left:ue.left,right:ue.left+si(e.display),top:ue.top,bottom:ue.bottom}:H=Js}for(var ae=H.top-r.rect.top,me=H.bottom-r.rect.top,_e=(ae+me)/2,Ae=r.view.measure.heights,Ee=0;Ee<Ae.length-1&&!(_e<Ae[Ee]);Ee++);var Be=Ee?Ae[Ee-1]:0,Ce=Ae[Ee],Me={left:(z=="right"?H.right:H.left)-r.rect.left,right:(z=="left"?H.left:H.right)-r.rect.left,top:Be,bottom:Ce};return!H.left&&!H.right&&(Me.bogus=!0),e.options.singleCursorHeightPerLine||(Me.rtop=ae,Me.rbottom=me),Me}function Eh(e,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Vo(e))return r;var s=screen.logicalXDPI/screen.deviceXDPI,u=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*s,right:r.right*s,top:r.top*u,bottom:r.bottom*u}}function Zs(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var r=0;r<e.rest.length;r++)e.measure.caches[r]={}}function ec(e){e.display.externalMeasure=null,j(e.display.lineMeasure);for(var r=0;r<e.display.view.length;r++)Zs(e.display.view[r])}function Xi(e){ec(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function tc(e){return x&&A?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function nc(e){return x&&A?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function dl(e){var r=Nn(e),s=r.widgets,u=0;if(s)for(var d=0;d<s.length;++d)s[d].above&&(u+=Qi(s[d]));return u}function qo(e,r,s,u,d){if(!d){var E=dl(r);s.top+=E,s.bottom+=E}if(u=="line")return s;u||(u="local");var T=or(r);if(u=="local"?T+=$o(e.display):T-=e.display.viewOffset,u=="page"||u=="window"){var P=e.display.lineSpace.getBoundingClientRect();T+=P.top+(u=="window"?0:nc(te(e)));var z=P.left+(u=="window"?0:tc(te(e)));s.left+=z,s.right+=z}return s.top+=T,s.bottom+=T,s}function rc(e,r,s){if(s=="div")return r;var u=r.left,d=r.top;if(s=="page")u-=tc(te(e)),d-=nc(te(e));else if(s=="local"||!s){var E=e.display.sizer.getBoundingClientRect();u+=E.left,d+=E.top}var T=e.display.lineSpace.getBoundingClientRect();return{left:u-T.left,top:d-T.top}}function Jo(e,r,s,u,d){return u||(u=Oe(e.doc,r.line)),qo(e,u,qs(e,u,r.ch,d),s)}function On(e,r,s,u,d,E){u=u||Oe(e.doc,r.line),d||(d=li(e,u));function T(me,_e){var Ae=$n(e,d,me,_e?"right":"left",E);return _e?Ae.left=Ae.right:Ae.right=Ae.left,qo(e,u,Ae,s)}var P=Ue(u,e.doc.direction),z=r.ch,H=r.sticky;if(z>=u.text.length?(z=u.text.length,H="before"):z<=0&&(z=0,H="after"),!P)return T(H=="before"?z-1:z,H=="before");function $(me,_e,Ae){var Ee=P[_e],Be=Ee.level==1;return T(Ae?me-1:me,Be!=Ae)}var J=Se(P,z,H),ue=Re,ae=$(z,J,H=="before");return ue!=null&&(ae.other=$(z,ue,H!="before")),ae}function ic(e,r){var s=0;r=Xe(e.doc,r),e.options.lineWrapping||(s=si(e.display)*r.ch);var u=Oe(e.doc,r.line),d=or(u)+$o(e.display);return{left:s,right:s,top:d,bottom:d+u.height}}function fl(e,r,s,u,d){var E=ne(e,r,s);return E.xRel=d,u&&(E.outside=u),E}function pl(e,r,s){var u=e.doc;if(s+=e.display.viewOffset,s<0)return fl(u.first,0,null,-1,-1);var d=Xn(u,s),E=u.first+u.size-1;if(d>E)return fl(u.first+u.size-1,Oe(u,E).text.length,null,1,1);r<0&&(r=0);for(var T=Oe(u,d);;){var P=Ch(e,T,d,r,s),z=Zp(T,P.ch+(P.xRel>0||P.outside>0?1:0));if(!z)return P;var H=z.find(1);if(H.line==d)return H;T=Oe(u,d=H.line)}}function oc(e,r,s,u){u-=dl(r);var d=r.text.length,E=ft(function(T){return $n(e,s,T-1).bottom<=u},d,0);return d=ft(function(T){return $n(e,s,T).top>u},E,d),{begin:E,end:d}}function ac(e,r,s,u){s||(s=li(e,r));var d=qo(e,r,$n(e,s,u),"line").top;return oc(e,r,s,d)}function hl(e,r,s,u){return e.bottom<=s?!1:e.top>s?!0:(u?e.left:e.right)>r}function Ch(e,r,s,u,d){d-=or(r);var E=li(e,r),T=dl(r),P=0,z=r.text.length,H=!0,$=Ue(r,e.doc.direction);if($){var J=(e.options.lineWrapping?kh:Fh)(e,r,s,E,$,u,d);H=J.level!=1,P=H?J.from:J.to-1,z=H?J.to:J.from-1}var ue=null,ae=null,me=ft(function(je){var Pe=$n(e,E,je);return Pe.top+=T,Pe.bottom+=T,hl(Pe,u,d,!1)?(Pe.top<=d&&Pe.left<=u&&(ue=je,ae=Pe),!0):!1},P,z),_e,Ae,Ee=!1;if(ae){var Be=u-ae.left<ae.right-u,Ce=Be==H;me=ue+(Ce?0:1),Ae=Ce?"after":"before",_e=Be?ae.left:ae.right}else{!H&&(me==z||me==P)&&me++,Ae=me==0?"after":me==r.text.length?"before":$n(e,E,me-(H?1:0)).bottom+T<=d==H?"after":"before";var Me=On(e,ne(s,me,Ae),"line",r,E);_e=Me.left,Ee=d<Me.top?-1:d>=Me.bottom?1:0}return me=Ot(r.text,me,1),fl(s,me,Ae,Ee,u-_e)}function Fh(e,r,s,u,d,E,T){var P=ft(function(J){var ue=d[J],ae=ue.level!=1;return hl(On(e,ne(s,ae?ue.to:ue.from,ae?"before":"after"),"line",r,u),E,T,!0)},0,d.length-1),z=d[P];if(P>0){var H=z.level!=1,$=On(e,ne(s,H?z.from:z.to,H?"after":"before"),"line",r,u);hl($,E,T,!0)&&$.top>T&&(z=d[P-1])}return z}function kh(e,r,s,u,d,E,T){var P=oc(e,r,u,T),z=P.begin,H=P.end;/\s/.test(r.text.charAt(H-1))&&H--;for(var $=null,J=null,ue=0;ue<d.length;ue++){var ae=d[ue];if(!(ae.from>=H||ae.to<=z)){var me=ae.level!=1,_e=$n(e,u,me?Math.min(H,ae.to)-1:Math.max(z,ae.from)).right,Ae=_e<E?E-_e+1e9:_e-E;(!$||J>Ae)&&($=ae,J=Ae)}}return $||($=d[d.length-1]),$.from<z&&($={from:z,to:$.to,level:$.level}),$.to>H&&($={from:$.from,to:H,level:$.level}),$}var Vr;function ui(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Vr==null){Vr=O("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)Vr.appendChild(document.createTextNode("x")),Vr.appendChild(O("br"));Vr.appendChild(document.createTextNode("x"))}R(e.measure,Vr);var s=Vr.offsetHeight/50;return s>3&&(e.cachedTextHeight=s),j(e.measure),s||1}function si(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=O("span","xxxxxxxxxx"),s=O("pre",[r],"CodeMirror-line-like");R(e.measure,s);var u=r.getBoundingClientRect(),d=(u.right-u.left)/10;return d>2&&(e.cachedCharWidth=d),d||10}function ml(e){for(var r=e.display,s={},u={},d=r.gutters.clientLeft,E=r.gutters.firstChild,T=0;E;E=E.nextSibling,++T){var P=e.display.gutterSpecs[T].className;s[P]=E.offsetLeft+E.clientLeft+d,u[P]=E.clientWidth}return{fixedPos:gl(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:u,wrapperWidth:r.wrapper.clientWidth}}function gl(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function lc(e){var r=ui(e.display),s=e.options.lineWrapping,u=s&&Math.max(5,e.display.scroller.clientWidth/si(e.display)-3);return function(d){if(Ar(e.doc,d))return 0;var E=0;if(d.widgets)for(var T=0;T<d.widgets.length;T++)d.widgets[T].height&&(E+=d.widgets[T].height);return s?E+(Math.ceil(d.text.length/u)||1)*r:E+r}}function vl(e){var r=e.doc,s=lc(e);r.iter(function(u){var d=s(u);d!=u.height&&Dn(u,d)})}function jr(e,r,s,u){var d=e.display;if(!s&&on(r).getAttribute("cm-not-content")=="true")return null;var E,T,P=d.lineSpace.getBoundingClientRect();try{E=r.clientX-P.left,T=r.clientY-P.top}catch{return null}var z=pl(e,E,T),H;if(u&&z.xRel>0&&(H=Oe(e.doc,z.line).text).length==z.ch){var $=oe(H,H.length,e.options.tabSize)-H.length;z=ne(z.line,Math.max(0,Math.round((E-Gs(e.display).left)/si(e.display))-$))}return z}function zr(e,r){if(r>=e.display.viewTo||(r-=e.display.viewFrom,r<0))return null;for(var s=e.display.view,u=0;u<s.length;u++)if(r-=s[u].size,r<0)return u}function an(e,r,s,u){r==null&&(r=e.doc.first),s==null&&(s=e.doc.first+e.doc.size),u||(u=0);var d=e.display;if(u&&s<d.viewTo&&(d.updateLineNumbers==null||d.updateLineNumbers>r)&&(d.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=d.viewTo)ir&&il(e.doc,r)<d.viewTo&&wr(e);else if(s<=d.viewFrom)ir&&Ps(e.doc,s+u)>d.viewFrom?wr(e):(d.viewFrom+=u,d.viewTo+=u);else if(r<=d.viewFrom&&s>=d.viewTo)wr(e);else if(r<=d.viewFrom){var E=Ko(e,s,s+u,1);E?(d.view=d.view.slice(E.index),d.viewFrom=E.lineN,d.viewTo+=u):wr(e)}else if(s>=d.viewTo){var T=Ko(e,r,r,-1);T?(d.view=d.view.slice(0,T.index),d.viewTo=T.lineN):wr(e)}else{var P=Ko(e,r,r,-1),z=Ko(e,s,s+u,1);P&&z?(d.view=d.view.slice(0,P.index).concat(Go(e,P.lineN,z.lineN)).concat(d.view.slice(z.index)),d.viewTo+=u):wr(e)}var H=d.externalMeasured;H&&(s<H.lineN?H.lineN+=u:r<H.lineN+H.size&&(d.externalMeasured=null))}function xr(e,r,s){e.curOp.viewChanged=!0;var u=e.display,d=e.display.externalMeasured;if(d&&r>=d.lineN&&r<d.lineN+d.size&&(u.externalMeasured=null),!(r<u.viewFrom||r>=u.viewTo)){var E=u.view[zr(e,r)];if(E.node!=null){var T=E.changes||(E.changes=[]);se(T,s)==-1&&T.push(s)}}}function wr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ko(e,r,s,u){var d=zr(e,r),E,T=e.display.view;if(!ir||s==e.doc.first+e.doc.size)return{index:d,lineN:s};for(var P=e.display.viewFrom,z=0;z<d;z++)P+=T[z].size;if(P!=r){if(u>0){if(d==T.length-1)return null;E=P+T[d].size-r,d++}else E=P-r;r+=E,s+=E}for(;il(e.doc,s)!=s;){if(d==(u<0?0:T.length-1))return null;s+=u*T[d-(u<0?1:0)].size,d+=u}return{index:d,lineN:s}}function Sh(e,r,s){var u=e.display,d=u.view;d.length==0||r>=u.viewTo||s<=u.viewFrom?(u.view=Go(e,r,s),u.viewFrom=r):(u.viewFrom>r?u.view=Go(e,r,u.viewFrom).concat(u.view):u.viewFrom<r&&(u.view=u.view.slice(zr(e,r))),u.viewFrom=r,u.viewTo<s?u.view=u.view.concat(Go(e,u.viewTo,s)):u.viewTo>s&&(u.view=u.view.slice(0,zr(e,s)))),u.viewTo=s}function uc(e){for(var r=e.display.view,s=0,u=0;u<r.length;u++){var d=r[u];!d.hidden&&(!d.node||d.changes)&&++s}return s}function Yi(e){e.display.input.showSelection(e.display.input.prepareSelection())}function sc(e,r){r===void 0&&(r=!0);var s=e.doc,u={},d=u.cursors=document.createDocumentFragment(),E=u.selection=document.createDocumentFragment(),T=e.options.$customCursor;T&&(r=!0);for(var P=0;P<s.sel.ranges.length;P++)if(!(!r&&P==s.sel.primIndex)){var z=s.sel.ranges[P];if(!(z.from().line>=e.display.viewTo||z.to().line<e.display.viewFrom)){var H=z.empty();if(T){var $=T(e,z);$&&_l(e,$,d)}else(H||e.options.showCursorWhenSelecting)&&_l(e,z.head,d);H||Dh(e,z,E)}}return u}function _l(e,r,s){var u=On(e,r,"div",null,null,!e.options.singleCursorHeightPerLine),d=s.appendChild(O("div"," ","CodeMirror-cursor"));if(d.style.left=u.left+"px",d.style.top=u.top+"px",d.style.height=Math.max(0,u.bottom-u.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var E=Jo(e,r,"div",null,null),T=E.right-E.left;d.style.width=(T>0?T:e.defaultCharWidth())+"px"}if(u.other){var P=s.appendChild(O("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));P.style.display="",P.style.left=u.other.left+"px",P.style.top=u.other.top+"px",P.style.height=(u.other.bottom-u.other.top)*.85+"px"}}function Zo(e,r){return e.top-r.top||e.left-r.left}function Dh(e,r,s){var u=e.display,d=e.doc,E=document.createDocumentFragment(),T=Gs(e.display),P=T.left,z=Math.max(u.sizerWidth,Pr(e)-u.sizer.offsetLeft)-T.right,H=d.direction=="ltr";function $(Ce,Me,je,Pe){Me<0&&(Me=0),Me=Math.round(Me),Pe=Math.round(Pe),E.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+Ce+`px;
- top: `+Me+"px; width: "+(je??z-Ce)+`px;
- height: `+(Pe-Me)+"px"))}function J(Ce,Me,je){var Pe=Oe(d,Ce),et=Pe.text.length,yt,Qt;function Et(Rt,sn){return Jo(e,ne(Ce,Rt),"div",Pe,sn)}function gn(Rt,sn,$t){var Lt=ac(e,Pe,null,Rt),Mt=sn=="ltr"==($t=="after")?"left":"right",kt=$t=="after"?Lt.begin:Lt.end-(/\s/.test(Pe.text.charAt(Lt.end-1))?2:1);return Et(kt,Mt)[Mt]}var un=Ue(Pe,d.direction);return pn(un,Me||0,je??et,function(Rt,sn,$t,Lt){var Mt=$t=="ltr",kt=Et(Rt,Mt?"left":"right"),cn=Et(sn-1,Mt?"right":"left"),xi=Me==null&&Rt==0,Dr=je==null&&sn==et,Kt=Lt==0,qn=!un||Lt==un.length-1;if(cn.top-kt.top<=3){var Xt=(H?xi:Dr)&&Kt,Wl=(H?Dr:xi)&&qn,sr=Xt?P:(Mt?kt:cn).left,Xr=Wl?z:(Mt?cn:kt).right;$(sr,kt.top,Xr-sr,kt.bottom)}else{var Yr,nn,wi,Ql;Mt?(Yr=H&&xi&&Kt?P:kt.left,nn=H?z:gn(Rt,$t,"before"),wi=H?P:gn(sn,$t,"after"),Ql=H&&Dr&&qn?z:cn.right):(Yr=H?gn(Rt,$t,"before"):P,nn=!H&&xi&&Kt?z:kt.right,wi=!H&&Dr&&qn?P:cn.left,Ql=H?gn(sn,$t,"after"):z),$(Yr,kt.top,nn-Yr,kt.bottom),kt.bottom<cn.top&&$(P,kt.bottom,null,cn.top),$(wi,cn.top,Ql-wi,cn.bottom)}(!yt||Zo(kt,yt)<0)&&(yt=kt),Zo(cn,yt)<0&&(yt=cn),(!Qt||Zo(kt,Qt)<0)&&(Qt=kt),Zo(cn,Qt)<0&&(Qt=cn)}),{start:yt,end:Qt}}var ue=r.from(),ae=r.to();if(ue.line==ae.line)J(ue.line,ue.ch,ae.ch);else{var me=Oe(d,ue.line),_e=Oe(d,ae.line),Ae=Nn(me)==Nn(_e),Ee=J(ue.line,ue.ch,Ae?me.text.length+1:null).end,Be=J(ae.line,Ae?0:null,ae.ch).start;Ae&&(Ee.top<Be.top-2?($(Ee.right,Ee.top,null,Ee.bottom),$(P,Be.top,Be.left,Be.bottom)):$(Ee.right,Ee.top,Be.left-Ee.right,Ee.bottom)),Ee.bottom<Be.top&&$(P,Ee.bottom,null,Be.top)}s.appendChild(E)}function yl(e){if(e.state.focused){var r=e.display;clearInterval(r.blinker);var s=!0;r.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?r.blinker=setInterval(function(){e.hasFocus()||ci(e),r.cursorDiv.style.visibility=(s=!s)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function cc(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Al(e))}function bl(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ci(e))},100)}function Al(e,r){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(We(e,"focus",e,r),e.state.focused=!0,Q(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),v&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),yl(e))}function ci(e,r){e.state.delayingBlurEvent||(e.state.focused&&(We(e,"blur",e,r),e.state.focused=!1,I(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function ea(e){for(var r=e.display,s=r.lineDiv.offsetTop,u=Math.max(0,r.scroller.getBoundingClientRect().top),d=r.lineDiv.getBoundingClientRect().top,E=0,T=0;T<r.view.length;T++){var P=r.view[T],z=e.options.lineWrapping,H=void 0,$=0;if(!P.hidden){if(d+=P.line.height,p&&m<8){var J=P.node.offsetTop+P.node.offsetHeight;H=J-s,s=J}else{var ue=P.node.getBoundingClientRect();H=ue.bottom-ue.top,!z&&P.text.firstChild&&($=P.text.firstChild.getBoundingClientRect().right-ue.left-1)}var ae=P.line.height-H;if((ae>.005||ae<-.005)&&(d<u&&(E-=ae),Dn(P.line,H),dc(P.line),P.rest))for(var me=0;me<P.rest.length;me++)dc(P.rest[me]);if($>e.display.sizerWidth){var _e=Math.ceil($/si(e.display));_e>e.display.maxLineLength&&(e.display.maxLineLength=_e,e.display.maxLine=P.line,e.display.maxLineChanged=!0)}}}Math.abs(E)>2&&(r.scroller.scrollTop+=E)}function dc(e){if(e.widgets)for(var r=0;r<e.widgets.length;++r){var s=e.widgets[r],u=s.node.parentNode;u&&(s.height=u.offsetHeight)}}function ta(e,r,s){var u=s&&s.top!=null?Math.max(0,s.top):e.scroller.scrollTop;u=Math.floor(u-$o(e));var d=s&&s.bottom!=null?s.bottom:u+e.wrapper.clientHeight,E=Xn(r,u),T=Xn(r,d);if(s&&s.ensure){var P=s.ensure.from.line,z=s.ensure.to.line;P<E?(E=P,T=Xn(r,or(Oe(r,P))+e.wrapper.clientHeight)):Math.min(z,r.lastLine())>=T&&(E=Xn(r,or(Oe(r,z))-e.wrapper.clientHeight),T=z)}return{from:E,to:Math.max(T,E+1)}}function Bh(e,r){if(!ut(e,"scrollCursorIntoView")){var s=e.display,u=s.sizer.getBoundingClientRect(),d=null,E=s.wrapper.ownerDocument;if(r.top+u.top<0?d=!0:r.bottom+u.top>(E.defaultView.innerHeight||E.documentElement.clientHeight)&&(d=!1),d!=null&&!h){var T=O("div","",null,`position: absolute;
- top: `+(r.top-s.viewOffset-$o(e.display))+`px;
- height: `+(r.bottom-r.top+Gn(e)+s.barHeight)+`px;
- left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(T),T.scrollIntoView(d),e.display.lineSpace.removeChild(T)}}}function Th(e,r,s,u){u==null&&(u=0);var d;!e.options.lineWrapping&&r==s&&(s=r.sticky=="before"?ne(r.line,r.ch+1,"before"):r,r=r.ch?ne(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var E=0;E<5;E++){var T=!1,P=On(e,r),z=!s||s==r?P:On(e,s);d={left:Math.min(P.left,z.left),top:Math.min(P.top,z.top)-u,right:Math.max(P.left,z.left),bottom:Math.max(P.bottom,z.bottom)+u};var H=xl(e,d),$=e.doc.scrollTop,J=e.doc.scrollLeft;if(H.scrollTop!=null&&($i(e,H.scrollTop),Math.abs(e.doc.scrollTop-$)>1&&(T=!0)),H.scrollLeft!=null&&(Ur(e,H.scrollLeft),Math.abs(e.doc.scrollLeft-J)>1&&(T=!0)),!T)break}return d}function Rh(e,r){var s=xl(e,r);s.scrollTop!=null&&$i(e,s.scrollTop),s.scrollLeft!=null&&Ur(e,s.scrollLeft)}function xl(e,r){var s=e.display,u=ui(e.display);r.top<0&&(r.top=0);var d=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,E=sl(e),T={};r.bottom-r.top>E&&(r.bottom=r.top+E);var P=e.doc.height+ul(s),z=r.top<u,H=r.bottom>P-u;if(r.top<d)T.scrollTop=z?0:r.top;else if(r.bottom>d+E){var $=Math.min(r.top,(H?P:r.bottom)-E);$!=d&&(T.scrollTop=$)}var J=e.options.fixedGutter?0:s.gutters.offsetWidth,ue=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-J,ae=Pr(e)-s.gutters.offsetWidth,me=r.right-r.left>ae;return me&&(r.right=r.left+ae),r.left<10?T.scrollLeft=0:r.left<ue?T.scrollLeft=Math.max(0,r.left+J-(me?0:10)):r.right>ae+ue-3&&(T.scrollLeft=r.right+(me?0:10)-ae),T}function wl(e,r){r!=null&&(na(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r)}function di(e){na(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function Gi(e,r,s){(r!=null||s!=null)&&na(e),r!=null&&(e.curOp.scrollLeft=r),s!=null&&(e.curOp.scrollTop=s)}function Mh(e,r){na(e),e.curOp.scrollToPos=r}function na(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var s=ic(e,r.from),u=ic(e,r.to);fc(e,s,u,r.margin)}}function fc(e,r,s,u){var d=xl(e,{left:Math.min(r.left,s.left),top:Math.min(r.top,s.top)-u,right:Math.max(r.right,s.right),bottom:Math.max(r.bottom,s.bottom)+u});Gi(e,d.scrollLeft,d.scrollTop)}function $i(e,r){Math.abs(e.doc.scrollTop-r)<2||(n||Cl(e,{top:r}),pc(e,r,!0),n&&Cl(e),Ki(e,100))}function pc(e,r,s){r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),!(e.display.scroller.scrollTop==r&&!s)&&(e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r))}function Ur(e,r,s,u){r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((s?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!u)&&(e.doc.scrollLeft=r,_c(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r))}function qi(e){var r=e.display,s=r.gutters.offsetWidth,u=Math.round(e.doc.height+ul(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?s:0,docHeight:u,scrollHeight:u+Gn(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var Hr=function(e,r,s){this.cm=s;var u=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");u.tabIndex=d.tabIndex=-1,e(u),e(d),he(u,"scroll",function(){u.clientHeight&&r(u.scrollTop,"vertical")}),he(d,"scroll",function(){d.clientWidth&&r(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Hr.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,s=e.scrollHeight>e.clientHeight+1,u=e.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=r?u+"px":"0";var d=e.viewHeight-(r?u:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+d)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=s?u+"px":"0",this.horiz.style.left=e.barLeft+"px";var E=e.viewWidth-e.barLeft-(s?u:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+E)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(u==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?u:0,bottom:r?u:0}},Hr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Hr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Hr.prototype.zeroWidthHack=function(){var e=S&&!y?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ce,this.disableVert=new ce},Hr.prototype.enableZeroWidthBar=function(e,r,s){e.style.visibility="";function u(){var d=e.getBoundingClientRect(),E=s=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);E!=e?e.style.visibility="hidden":r.set(1e3,u)}r.set(1e3,u)},Hr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ji=function(){};Ji.prototype.update=function(){return{bottom:0,right:0}},Ji.prototype.setScrollLeft=function(){},Ji.prototype.setScrollTop=function(){},Ji.prototype.clear=function(){};function fi(e,r){r||(r=qi(e));var s=e.display.barWidth,u=e.display.barHeight;hc(e,r);for(var d=0;d<4&&s!=e.display.barWidth||u!=e.display.barHeight;d++)s!=e.display.barWidth&&e.options.lineWrapping&&ea(e),hc(e,qi(e)),s=e.display.barWidth,u=e.display.barHeight}function hc(e,r){var s=e.display,u=s.scrollbars.update(r);s.sizer.style.paddingRight=(s.barWidth=u.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=u.bottom)+"px",s.heightForcer.style.borderBottom=u.bottom+"px solid transparent",u.right&&u.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=u.bottom+"px",s.scrollbarFiller.style.width=u.right+"px"):s.scrollbarFiller.style.display="",u.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=u.bottom+"px",s.gutterFiller.style.width=r.gutterWidth+"px"):s.gutterFiller.style.display=""}var mc={native:Hr,null:Ji};function gc(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new mc[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),he(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?Ur(e,r):$i(e,r)},e),e.display.scrollbars.addClass&&Q(e.display.wrapper,e.display.scrollbars.addClass)}var Nh=0;function Wr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++Nh,markArrays:null},dh(e.curOp)}function Qr(e){var r=e.curOp;r&&ph(r,function(s){for(var u=0;u<s.ops.length;u++)s.ops[u].cm.curOp=null;Oh(s)})}function Oh(e){for(var r=e.ops,s=0;s<r.length;s++)Ih(r[s]);for(var u=0;u<r.length;u++)Lh(r[u]);for(var d=0;d<r.length;d++)Ph(r[d]);for(var E=0;E<r.length;E++)Vh(r[E]);for(var T=0;T<r.length;T++)jh(r[T])}function Ih(e){var r=e.cm,s=r.display;Uh(r),e.updateMaxLine&&al(r),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<s.viewFrom||e.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&r.options.lineWrapping,e.update=e.mustUpdate&&new ra(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Lh(e){e.updatedDisplay=e.mustUpdate&&El(e.cm,e.update)}function Ph(e){var r=e.cm,s=r.display;e.updatedDisplay&&ea(r),e.barMeasure=qi(r),s.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=qs(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+e.adjustWidthTo+Gn(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+e.adjustWidthTo-Pr(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=s.input.prepareSelection())}function Vh(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<r.doc.scrollLeft&&Ur(r,Math.min(r.display.scroller.scrollLeft,e.maxScrollLeft),!0),r.display.maxLineChanged=!1);var s=e.focus&&e.focus==L(te(r));e.preparedSelection&&r.display.input.showSelection(e.preparedSelection,s),(e.updatedDisplay||e.startHeight!=r.doc.height)&&fi(r,e.barMeasure),e.updatedDisplay&&kl(r,e.barMeasure),e.selectionChanged&&yl(r),r.state.focused&&e.updateInput&&r.display.input.reset(e.typing),s&&cc(e.cm)}function jh(e){var r=e.cm,s=r.display,u=r.doc;if(e.updatedDisplay&&vc(r,e.update),s.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),e.scrollTop!=null&&pc(r,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Ur(r,e.scrollLeft,!0,!0),e.scrollToPos){var d=Th(r,Xe(u,e.scrollToPos.from),Xe(u,e.scrollToPos.to),e.scrollToPos.margin);Bh(r,d)}var E=e.maybeHiddenMarkers,T=e.maybeUnhiddenMarkers;if(E)for(var P=0;P<E.length;++P)E[P].lines.length||We(E[P],"hide");if(T)for(var z=0;z<T.length;++z)T[z].lines.length&&We(T[z],"unhide");s.wrapper.offsetHeight&&(u.scrollTop=r.display.scroller.scrollTop),e.changeObjs&&We(r,"changes",r,e.changeObjs),e.update&&e.update.finish()}function mn(e,r){if(e.curOp)return r();Wr(e);try{return r()}finally{Qr(e)}}function Ht(e,r){return function(){if(e.curOp)return r.apply(e,arguments);Wr(e);try{return r.apply(e,arguments)}finally{Qr(e)}}}function tn(e){return function(){if(this.curOp)return e.apply(this,arguments);Wr(this);try{return e.apply(this,arguments)}finally{Qr(this)}}}function Wt(e){return function(){var r=this.cm;if(!r||r.curOp)return e.apply(this,arguments);Wr(r);try{return e.apply(this,arguments)}finally{Qr(r)}}}function Ki(e,r){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(r,ye(zh,e))}function zh(e){var r=e.doc;if(!(r.highlightFrontier>=e.display.viewTo)){var s=+new Date+e.options.workTime,u=zi(e,r.highlightFrontier),d=[];r.iter(u.line,Math.min(r.first+r.size,e.display.viewTo+500),function(E){if(u.line>=e.display.viewFrom){var T=E.styles,P=E.text.length>e.options.maxHighlightLength?nr(r.mode,u.state):null,z=Es(e,E,u,!0);P&&(u.state=P),E.styles=z.styles;var H=E.styleClasses,$=z.classes;$?E.styleClasses=$:H&&(E.styleClasses=null);for(var J=!T||T.length!=E.styles.length||H!=$&&(!H||!$||H.bgClass!=$.bgClass||H.textClass!=$.textClass),ue=0;!J&&ue<T.length;++ue)J=T[ue]!=E.styles[ue];J&&d.push(u.line),E.stateAfter=u.save(),u.nextLine()}else E.text.length<=e.options.maxHighlightLength&&el(e,E.text,u),E.stateAfter=u.line%5==0?u.save():null,u.nextLine();if(+new Date>s)return Ki(e,e.options.workDelay),!0}),r.highlightFrontier=u.line,r.modeFrontier=Math.max(r.modeFrontier,u.line),d.length&&mn(e,function(){for(var E=0;E<d.length;E++)xr(e,d[E],"text")})}}var ra=function(e,r,s){var u=e.display;this.viewport=r,this.visible=ta(u,e.doc,r),this.editorIsHidden=!u.wrapper.offsetWidth,this.wrapperHeight=u.wrapper.clientHeight,this.wrapperWidth=u.wrapper.clientWidth,this.oldDisplayWidth=Pr(e),this.force=s,this.dims=ml(e),this.events=[]};ra.prototype.signal=function(e,r){gt(e,r)&&this.events.push(arguments)},ra.prototype.finish=function(){for(var e=0;e<this.events.length;e++)We.apply(null,this.events[e])};function Uh(e){var r=e.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=Gn(e)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=Gn(e)+"px",r.scrollbarsClipped=!0)}function Hh(e){if(e.hasFocus())return null;var r=L(te(e));if(!r||!Z(e.display.lineDiv,r))return null;var s={activeElt:r};if(window.getSelection){var u=le(e).getSelection();u.anchorNode&&u.extend&&Z(e.display.lineDiv,u.anchorNode)&&(s.anchorNode=u.anchorNode,s.anchorOffset=u.anchorOffset,s.focusNode=u.focusNode,s.focusOffset=u.focusOffset)}return s}function Wh(e){if(!(!e||!e.activeElt||e.activeElt==L(e.activeElt.ownerDocument))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&Z(document.body,e.anchorNode)&&Z(document.body,e.focusNode))){var r=e.activeElt.ownerDocument,s=r.defaultView.getSelection(),u=r.createRange();u.setEnd(e.anchorNode,e.anchorOffset),u.collapse(!1),s.removeAllRanges(),s.addRange(u),s.extend(e.focusNode,e.focusOffset)}}function El(e,r){var s=e.display,u=e.doc;if(r.editorIsHidden)return wr(e),!1;if(!r.force&&r.visible.from>=s.viewFrom&&r.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&uc(e)==0)return!1;yc(e)&&(wr(e),r.dims=ml(e));var d=u.first+u.size,E=Math.max(r.visible.from-e.options.viewportMargin,u.first),T=Math.min(d,r.visible.to+e.options.viewportMargin);s.viewFrom<E&&E-s.viewFrom<20&&(E=Math.max(u.first,s.viewFrom)),s.viewTo>T&&s.viewTo-T<20&&(T=Math.min(d,s.viewTo)),ir&&(E=il(e.doc,E),T=Ps(e.doc,T));var P=E!=s.viewFrom||T!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;Sh(e,E,T),s.viewOffset=or(Oe(e.doc,s.viewFrom)),e.display.mover.style.top=s.viewOffset+"px";var z=uc(e);if(!P&&z==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var H=Hh(e);return z>4&&(s.lineDiv.style.display="none"),Qh(e,s.updateLineNumbers,r.dims),z>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,Wh(H),j(s.cursorDiv),j(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,P&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,Ki(e,400)),s.updateLineNumbers=null,!0}function vc(e,r){for(var s=r.viewport,u=!0;;u=!1){if(!u||!e.options.lineWrapping||r.oldDisplayWidth==Pr(e)){if(s&&s.top!=null&&(s={top:Math.min(e.doc.height+ul(e.display)-sl(e),s.top)}),r.visible=ta(e.display,e.doc,s),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else u&&(r.visible=ta(e.display,e.doc,s));if(!El(e,r))break;ea(e);var d=qi(e);Yi(e),fi(e,d),kl(e,d),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Cl(e,r){var s=new ra(e,r);if(El(e,s)){ea(e),vc(e,s);var u=qi(e);Yi(e),fi(e,u),kl(e,u),s.finish()}}function Qh(e,r,s){var u=e.display,d=e.options.lineNumbers,E=u.lineDiv,T=E.firstChild;function P(me){var _e=me.nextSibling;return v&&S&&e.display.currentWheelTarget==me?me.style.display="none":me.parentNode.removeChild(me),_e}for(var z=u.view,H=u.viewFrom,$=0;$<z.length;$++){var J=z[$];if(!J.hidden)if(!J.node||J.node.parentNode!=E){var ue=_h(e,J,H,s);E.insertBefore(ue,T)}else{for(;T!=J.node;)T=P(T);var ae=d&&r!=null&&r<=H&&J.lineNumber;J.changes&&(se(J.changes,"gutter")>-1&&(ae=!1),Hs(e,J,H,s)),ae&&(j(J.lineNumber),J.lineNumber.appendChild(document.createTextNode(K(e.options,H)))),T=J.node.nextSibling}H+=J.size}for(;T;)T=P(T)}function Fl(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px",Ut(e,"gutterChanged",e)}function kl(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+Gn(e)+"px"}function _c(e){var r=e.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))){for(var u=gl(r)-r.scroller.scrollLeft+e.doc.scrollLeft,d=r.gutters.offsetWidth,E=u+"px",T=0;T<s.length;T++)if(!s[T].hidden){e.options.fixedGutter&&(s[T].gutter&&(s[T].gutter.style.left=E),s[T].gutterBackground&&(s[T].gutterBackground.style.left=E));var P=s[T].alignable;if(P)for(var z=0;z<P.length;z++)P[z].style.left=E}e.options.fixedGutter&&(r.gutters.style.left=u+d+"px")}}function yc(e){if(!e.options.lineNumbers)return!1;var r=e.doc,s=K(e.options,r.first+r.size-1),u=e.display;if(s.length!=u.lineNumChars){var d=u.measure.appendChild(O("div",[O("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),E=d.firstChild.offsetWidth,T=d.offsetWidth-E;return u.lineGutter.style.width="",u.lineNumInnerWidth=Math.max(E,u.lineGutter.offsetWidth-T)+1,u.lineNumWidth=u.lineNumInnerWidth+T,u.lineNumChars=u.lineNumInnerWidth?s.length:-1,u.lineGutter.style.width=u.lineNumWidth+"px",Fl(e.display),!0}return!1}function Sl(e,r){for(var s=[],u=!1,d=0;d<e.length;d++){var E=e[d],T=null;if(typeof E!="string"&&(T=E.style,E=E.className),E=="CodeMirror-linenumbers")if(r)u=!0;else continue;s.push({className:E,style:T})}return r&&!u&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function bc(e){var r=e.gutters,s=e.gutterSpecs;j(r),e.lineGutter=null;for(var u=0;u<s.length;++u){var d=s[u],E=d.className,T=d.style,P=r.appendChild(O("div",null,"CodeMirror-gutter "+E));T&&(P.style.cssText=T),E=="CodeMirror-linenumbers"&&(e.lineGutter=P,P.style.width=(e.lineNumWidth||1)+"px")}r.style.display=s.length?"":"none",Fl(e)}function Zi(e){bc(e.display),an(e),_c(e)}function Xh(e,r,s,u){var d=this;this.input=s,d.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),d.scrollbarFiller.setAttribute("cm-not-content","true"),d.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),d.gutterFiller.setAttribute("cm-not-content","true"),d.lineDiv=X("div",null,"CodeMirror-code"),d.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),d.cursorDiv=O("div",null,"CodeMirror-cursors"),d.measure=O("div",null,"CodeMirror-measure"),d.lineMeasure=O("div",null,"CodeMirror-measure"),d.lineSpace=X("div",[d.measure,d.lineMeasure,d.selectionDiv,d.cursorDiv,d.lineDiv],null,"position: relative; outline: none");var E=X("div",[d.lineSpace],"CodeMirror-lines");d.mover=O("div",[E],null,"position: relative"),d.sizer=O("div",[d.mover],"CodeMirror-sizer"),d.sizerWidth=null,d.heightForcer=O("div",null,null,"position: absolute; height: "+be+"px; width: 1px;"),d.gutters=O("div",null,"CodeMirror-gutters"),d.lineGutter=null,d.scroller=O("div",[d.sizer,d.heightForcer,d.gutters],"CodeMirror-scroll"),d.scroller.setAttribute("tabIndex","-1"),d.wrapper=O("div",[d.scrollbarFiller,d.gutterFiller,d.scroller],"CodeMirror"),d.wrapper.setAttribute("translate","no"),p&&m<8&&(d.gutters.style.zIndex=-1,d.scroller.style.paddingRight=0),!v&&!(n&&C)&&(d.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(d.wrapper):e(d.wrapper)),d.viewFrom=d.viewTo=r.first,d.reportedViewFrom=d.reportedViewTo=r.first,d.view=[],d.renderedView=null,d.externalMeasured=null,d.viewOffset=0,d.lastWrapHeight=d.lastWrapWidth=0,d.updateLineNumbers=null,d.nativeBarWidth=d.barHeight=d.barWidth=0,d.scrollbarsClipped=!1,d.lineNumWidth=d.lineNumInnerWidth=d.lineNumChars=null,d.alignWidgets=!1,d.cachedCharWidth=d.cachedTextHeight=d.cachedPaddingH=null,d.maxLine=null,d.maxLineLength=0,d.maxLineChanged=!1,d.wheelDX=d.wheelDY=d.wheelStartX=d.wheelStartY=null,d.shift=!1,d.selForContextMenu=null,d.activeTouch=null,d.gutterSpecs=Sl(u.gutters,u.lineNumbers),bc(d),s.init(d)}var ia=0,lr=null;p?lr=-.53:n?lr=15:x?lr=-.7:F&&(lr=-1/3);function Ac(e){var r=e.wheelDeltaX,s=e.wheelDeltaY;return r==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(r=e.detail),s==null&&e.detail&&e.axis==e.VERTICAL_AXIS?s=e.detail:s==null&&(s=e.wheelDelta),{x:r,y:s}}function Yh(e){var r=Ac(e);return r.x*=lr,r.y*=lr,r}function xc(e,r){x&&k==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var s=Ac(r),u=s.x,d=s.y,E=lr;r.deltaMode===0&&(u=r.deltaX,d=r.deltaY,E=1);var T=e.display,P=T.scroller,z=P.scrollWidth>P.clientWidth,H=P.scrollHeight>P.clientHeight;if(u&&z||d&&H){if(d&&S&&v){e:for(var $=r.target,J=T.view;$!=P;$=$.parentNode)for(var ue=0;ue<J.length;ue++)if(J[ue].node==$){e.display.currentWheelTarget=$;break e}}if(u&&!n&&!b&&E!=null){d&&H&&$i(e,Math.max(0,P.scrollTop+d*E)),Ur(e,Math.max(0,P.scrollLeft+u*E)),(!d||d&&H)&&St(r),T.wheelStartX=null;return}if(d&&E!=null){var ae=d*E,me=e.doc.scrollTop,_e=me+T.wrapper.clientHeight;ae<0?me=Math.max(0,me+ae-50):_e=Math.min(e.doc.height,_e+ae+50),Cl(e,{top:me,bottom:_e})}ia<20&&r.deltaMode!==0&&(T.wheelStartX==null?(T.wheelStartX=P.scrollLeft,T.wheelStartY=P.scrollTop,T.wheelDX=u,T.wheelDY=d,setTimeout(function(){if(T.wheelStartX!=null){var Ae=P.scrollLeft-T.wheelStartX,Ee=P.scrollTop-T.wheelStartY,Be=Ee&&T.wheelDY&&Ee/T.wheelDY||Ae&&T.wheelDX&&Ae/T.wheelDX;T.wheelStartX=T.wheelStartY=null,Be&&(lr=(lr*ia+Be)/(ia+1),++ia)}},200)):(T.wheelDX+=u,T.wheelDY+=d))}}var wn=function(e,r){this.ranges=e,this.primIndex=r};wn.prototype.primary=function(){return this.ranges[this.primIndex]},wn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var s=this.ranges[r],u=e.ranges[r];if(!Qe(s.anchor,u.anchor)||!Qe(s.head,u.head))return!1}return!0},wn.prototype.deepCopy=function(){for(var e=[],r=0;r<this.ranges.length;r++)e[r]=new ht(it(this.ranges[r].anchor),it(this.ranges[r].head));return new wn(e,this.primIndex)},wn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},wn.prototype.contains=function(e,r){r||(r=e);for(var s=0;s<this.ranges.length;s++){var u=this.ranges[s];if(pe(r,u.from())>=0&&pe(e,u.to())<=0)return s}return-1};var ht=function(e,r){this.anchor=e,this.head=r};ht.prototype.from=function(){return It(this.anchor,this.head)},ht.prototype.to=function(){return st(this.anchor,this.head)},ht.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function In(e,r,s){var u=e&&e.options.selectionsMayTouch,d=r[s];r.sort(function(ue,ae){return pe(ue.from(),ae.from())}),s=se(r,d);for(var E=1;E<r.length;E++){var T=r[E],P=r[E-1],z=pe(P.to(),T.from());if(u&&!T.empty()?z>0:z>=0){var H=It(P.from(),T.from()),$=st(P.to(),T.to()),J=P.empty()?T.from()==T.head:P.from()==P.head;E<=s&&--s,r.splice(--E,2,new ht(J?$:H,J?H:$))}}return new wn(r,s)}function Er(e,r){return new wn([new ht(e,r||e)],0)}function Cr(e){return e.text?ne(e.from.line+e.text.length-1,Le(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function wc(e,r){if(pe(e,r.from)<0)return e;if(pe(e,r.to)<=0)return Cr(r);var s=e.line+r.text.length-(r.to.line-r.from.line)-1,u=e.ch;return e.line==r.to.line&&(u+=Cr(r).ch-r.to.ch),ne(s,u)}function Dl(e,r){for(var s=[],u=0;u<e.sel.ranges.length;u++){var d=e.sel.ranges[u];s.push(new ht(wc(d.anchor,r),wc(d.head,r)))}return In(e.cm,s,e.sel.primIndex)}function Ec(e,r,s){return e.line==r.line?ne(s.line,e.ch-r.ch+s.ch):ne(s.line+(e.line-r.line),e.ch)}function Gh(e,r,s){for(var u=[],d=ne(e.first,0),E=d,T=0;T<r.length;T++){var P=r[T],z=Ec(P.from,d,E),H=Ec(Cr(P),d,E);if(d=P.to,E=H,s=="around"){var $=e.sel.ranges[T],J=pe($.head,$.anchor)<0;u[T]=new ht(J?H:z,J?z:H)}else u[T]=new ht(z,z)}return new wn(u,e.sel.primIndex)}function Bl(e){e.doc.mode=_r(e.options,e.doc.modeOption),eo(e)}function eo(e){e.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Ki(e,100),e.state.modeGen++,e.curOp&&an(e)}function Cc(e,r){return r.from.ch==0&&r.to.ch==0&&Le(r.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Tl(e,r,s,u){function d(Be){return s?s[Be]:null}function E(Be,Ce,Me){nh(Be,Ce,Me,u),Ut(Be,"change",Be,r)}function T(Be,Ce){for(var Me=[],je=Be;je<Ce;++je)Me.push(new oi(H[je],d(je),u));return Me}var P=r.from,z=r.to,H=r.text,$=Oe(e,P.line),J=Oe(e,z.line),ue=Le(H),ae=d(H.length-1),me=z.line-P.line;if(r.full)e.insert(0,T(0,H.length)),e.remove(H.length,e.size-H.length);else if(Cc(e,r)){var _e=T(0,H.length-1);E(J,J.text,ae),me&&e.remove(P.line,me),_e.length&&e.insert(P.line,_e)}else if($==J)if(H.length==1)E($,$.text.slice(0,P.ch)+ue+$.text.slice(z.ch),ae);else{var Ae=T(1,H.length-1);Ae.push(new oi(ue+$.text.slice(z.ch),ae,u)),E($,$.text.slice(0,P.ch)+H[0],d(0)),e.insert(P.line+1,Ae)}else if(H.length==1)E($,$.text.slice(0,P.ch)+H[0]+J.text.slice(z.ch),d(0)),e.remove(P.line+1,me);else{E($,$.text.slice(0,P.ch)+H[0],d(0)),E(J,ue+J.text.slice(z.ch),ae);var Ee=T(1,H.length-1);me>1&&e.remove(P.line+1,me-1),e.insert(P.line+1,Ee)}Ut(e,"change",e,r)}function Fr(e,r,s){function u(d,E,T){if(d.linked)for(var P=0;P<d.linked.length;++P){var z=d.linked[P];if(z.doc!=E){var H=T&&z.sharedHist;s&&!H||(r(z.doc,H),u(z.doc,d,H))}}}u(e,null,!0)}function Fc(e,r){if(r.cm)throw new Error("This document is already in use.");e.doc=r,r.cm=e,vl(e),Bl(e),kc(e),e.options.direction=r.direction,e.options.lineWrapping||al(e),e.options.mode=r.modeOption,an(e)}function kc(e){(e.doc.direction=="rtl"?Q:I)(e.display.lineDiv,"CodeMirror-rtl")}function $h(e){mn(e,function(){kc(e),an(e)})}function oa(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Rl(e,r){var s={from:it(r.from),to:Cr(r),text:rr(e,r.from,r.to)};return Bc(e,s,r.from.line,r.to.line+1),Fr(e,function(u){return Bc(u,s,r.from.line,r.to.line+1)},!0),s}function Sc(e){for(;e.length;){var r=Le(e);if(r.ranges)e.pop();else break}}function qh(e,r){if(r)return Sc(e.done),Le(e.done);if(e.done.length&&!Le(e.done).ranges)return Le(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Le(e.done)}function Dc(e,r,s,u){var d=e.history;d.undone.length=0;var E=+new Date,T,P;if((d.lastOp==u||d.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&d.lastModTime>E-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(T=qh(d,d.lastOp==u)))P=Le(T.changes),pe(r.from,r.to)==0&&pe(r.from,P.to)==0?P.to=Cr(r):T.changes.push(Rl(e,r));else{var z=Le(d.done);for((!z||!z.ranges)&&aa(e.sel,d.done),T={changes:[Rl(e,r)],generation:d.generation},d.done.push(T);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(s),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=E,d.lastOp=d.lastSelOp=u,d.lastOrigin=d.lastSelOrigin=r.origin,P||We(e,"historyAdded")}function Jh(e,r,s,u){var d=r.charAt(0);return d=="*"||d=="+"&&s.ranges.length==u.ranges.length&&s.somethingSelected()==u.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Kh(e,r,s,u){var d=e.history,E=u&&u.origin;s==d.lastSelOp||E&&d.lastSelOrigin==E&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==E||Jh(e,E,Le(d.done),r))?d.done[d.done.length-1]=r:aa(r,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=E,d.lastSelOp=s,u&&u.clearRedo!==!1&&Sc(d.undone)}function aa(e,r){var s=Le(r);s&&s.ranges&&s.equals(e)||r.push(e)}function Bc(e,r,s,u){var d=r["spans_"+e.id],E=0;e.iter(Math.max(e.first,s),Math.min(e.first+e.size,u),function(T){T.markedSpans&&((d||(d=r["spans_"+e.id]={}))[E]=T.markedSpans),++E})}function Zh(e){if(!e)return null;for(var r,s=0;s<e.length;++s)e[s].marker.explicitlyCleared?r||(r=e.slice(0,s)):r&&r.push(e[s]);return r?r.length?r:null:e}function em(e,r){var s=r["spans_"+e.id];if(!s)return null;for(var u=[],d=0;d<r.text.length;++d)u.push(Zh(s[d]));return u}function Tc(e,r){var s=em(e,r),u=nl(e,r);if(!s)return u;if(!u)return s;for(var d=0;d<s.length;++d){var E=s[d],T=u[d];if(E&&T)e:for(var P=0;P<T.length;++P){for(var z=T[P],H=0;H<E.length;++H)if(E[H].marker==z.marker)continue e;E.push(z)}else T&&(s[d]=T)}return s}function pi(e,r,s){for(var u=[],d=0;d<e.length;++d){var E=e[d];if(E.ranges){u.push(s?wn.prototype.deepCopy.call(E):E);continue}var T=E.changes,P=[];u.push({changes:P});for(var z=0;z<T.length;++z){var H=T[z],$=void 0;if(P.push({from:H.from,to:H.to,text:H.text}),r)for(var J in H)($=J.match(/^spans_(\d+)$/))&&se(r,Number($[1]))>-1&&(Le(P)[J]=H[J],delete H[J])}}return u}function Ml(e,r,s,u){if(u){var d=e.anchor;if(s){var E=pe(r,d)<0;E!=pe(s,d)<0?(d=r,r=s):E!=pe(r,s)<0&&(r=s)}return new ht(d,r)}else return new ht(s||r,r)}function la(e,r,s,u,d){d==null&&(d=e.cm&&(e.cm.display.shift||e.extend)),Jt(e,new wn([Ml(e.sel.primary(),r,s,d)],0),u)}function Rc(e,r,s){for(var u=[],d=e.cm&&(e.cm.display.shift||e.extend),E=0;E<e.sel.ranges.length;E++)u[E]=Ml(e.sel.ranges[E],r[E],null,d);var T=In(e.cm,u,e.sel.primIndex);Jt(e,T,s)}function Nl(e,r,s,u){var d=e.sel.ranges.slice(0);d[r]=s,Jt(e,In(e.cm,d,e.sel.primIndex),u)}function Mc(e,r,s,u){Jt(e,Er(r,s),u)}function tm(e,r,s){var u={ranges:r.ranges,update:function(d){this.ranges=[];for(var E=0;E<d.length;E++)this.ranges[E]=new ht(Xe(e,d[E].anchor),Xe(e,d[E].head))},origin:s&&s.origin};return We(e,"beforeSelectionChange",e,u),e.cm&&We(e.cm,"beforeSelectionChange",e.cm,u),u.ranges!=r.ranges?In(e.cm,u.ranges,u.ranges.length-1):r}function Nc(e,r,s){var u=e.history.done,d=Le(u);d&&d.ranges?(u[u.length-1]=r,ua(e,r,s)):Jt(e,r,s)}function Jt(e,r,s){ua(e,r,s),Kh(e,e.sel,e.cm?e.cm.curOp.id:NaN,s)}function ua(e,r,s){(gt(e,"beforeSelectionChange")||e.cm&>(e.cm,"beforeSelectionChange"))&&(r=tm(e,r,s));var u=s&&s.bias||(pe(r.primary().head,e.sel.primary().head)<0?-1:1);Oc(e,Lc(e,r,u,!0)),!(s&&s.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&di(e.cm)}function Oc(e,r){r.equals(e.sel)||(e.sel=r,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,An(e.cm)),Ut(e,"cursorActivity",e))}function Ic(e){Oc(e,Lc(e,e.sel,null,!1))}function Lc(e,r,s,u){for(var d,E=0;E<r.ranges.length;E++){var T=r.ranges[E],P=r.ranges.length==e.sel.ranges.length&&e.sel.ranges[E],z=sa(e,T.anchor,P&&P.anchor,s,u),H=T.head==T.anchor?z:sa(e,T.head,P&&P.head,s,u);(d||z!=T.anchor||H!=T.head)&&(d||(d=r.ranges.slice(0,E)),d[E]=new ht(z,H))}return d?In(e.cm,d,r.primIndex):r}function hi(e,r,s,u,d){var E=Oe(e,r.line);if(E.markedSpans)for(var T=0;T<E.markedSpans.length;++T){var P=E.markedSpans[T],z=P.marker,H="selectLeft"in z?!z.selectLeft:z.inclusiveLeft,$="selectRight"in z?!z.selectRight:z.inclusiveRight;if((P.from==null||(H?P.from<=r.ch:P.from<r.ch))&&(P.to==null||($?P.to>=r.ch:P.to>r.ch))){if(d&&(We(z,"beforeCursorEnter"),z.explicitlyCleared))if(E.markedSpans){--T;continue}else break;if(!z.atomic)continue;if(s){var J=z.find(u<0?1:-1),ue=void 0;if((u<0?$:H)&&(J=Pc(e,J,-u,J&&J.line==r.line?E:null)),J&&J.line==r.line&&(ue=pe(J,s))&&(u<0?ue<0:ue>0))return hi(e,J,r,u,d)}var ae=z.find(u<0?-1:1);return(u<0?H:$)&&(ae=Pc(e,ae,u,ae.line==r.line?E:null)),ae?hi(e,ae,r,u,d):null}}return r}function sa(e,r,s,u,d){var E=u||1,T=hi(e,r,s,E,d)||!d&&hi(e,r,s,E,!0)||hi(e,r,s,-E,d)||!d&&hi(e,r,s,-E,!0);return T||(e.cantEdit=!0,ne(e.first,0))}function Pc(e,r,s,u){return s<0&&r.ch==0?r.line>e.first?Xe(e,ne(r.line-1)):null:s>0&&r.ch==(u||Oe(e,r.line)).text.length?r.line<e.first+e.size-1?ne(r.line+1,0):null:new ne(r.line,r.ch+s)}function Vc(e){e.setSelection(ne(e.firstLine(),0),ne(e.lastLine()),Te)}function jc(e,r,s){var u={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return u.canceled=!0}};return s&&(u.update=function(d,E,T,P){d&&(u.from=Xe(e,d)),E&&(u.to=Xe(e,E)),T&&(u.text=T),P!==void 0&&(u.origin=P)}),We(e,"beforeChange",e,u),e.cm&&We(e.cm,"beforeChange",e.cm,u),u.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:u.from,to:u.to,text:u.text,origin:u.origin}}function mi(e,r,s){if(e.cm){if(!e.cm.curOp)return Ht(e.cm,mi)(e,r,s);if(e.cm.state.suppressEdits)return}if(!((gt(e,"beforeChange")||e.cm&>(e.cm,"beforeChange"))&&(r=jc(e,r,!0),!r))){var u=Ts&&!s&&Kp(e,r.from,r.to);if(u)for(var d=u.length-1;d>=0;--d)zc(e,{from:u[d].from,to:u[d].to,text:d?[""]:r.text,origin:r.origin});else zc(e,r)}}function zc(e,r){if(!(r.text.length==1&&r.text[0]==""&&pe(r.from,r.to)==0)){var s=Dl(e,r);Dc(e,r,s,e.cm?e.cm.curOp.id:NaN),to(e,r,s,nl(e,r));var u=[];Fr(e,function(d,E){!E&&se(u,d.history)==-1&&(Qc(d.history,r),u.push(d.history)),to(d,r,null,nl(d,r))})}}function ca(e,r,s){var u=e.cm&&e.cm.state.suppressEdits;if(!(u&&!s)){for(var d=e.history,E,T=e.sel,P=r=="undo"?d.done:d.undone,z=r=="undo"?d.undone:d.done,H=0;H<P.length&&(E=P[H],!(s?E.ranges&&!E.equals(e.sel):!E.ranges));H++);if(H!=P.length){for(d.lastOrigin=d.lastSelOrigin=null;;)if(E=P.pop(),E.ranges){if(aa(E,z),s&&!E.equals(e.sel)){Jt(e,E,{clearRedo:!1});return}T=E}else if(u){P.push(E);return}else break;var $=[];aa(T,z),z.push({changes:$,generation:d.generation}),d.generation=E.generation||++d.maxGeneration;for(var J=gt(e,"beforeChange")||e.cm&>(e.cm,"beforeChange"),ue=function(_e){var Ae=E.changes[_e];if(Ae.origin=r,J&&!jc(e,Ae,!1))return P.length=0,{};$.push(Rl(e,Ae));var Ee=_e?Dl(e,Ae):Le(P);to(e,Ae,Ee,Tc(e,Ae)),!_e&&e.cm&&e.cm.scrollIntoView({from:Ae.from,to:Cr(Ae)});var Be=[];Fr(e,function(Ce,Me){!Me&&se(Be,Ce.history)==-1&&(Qc(Ce.history,Ae),Be.push(Ce.history)),to(Ce,Ae,null,Tc(Ce,Ae))})},ae=E.changes.length-1;ae>=0;--ae){var me=ue(ae);if(me)return me.v}}}}function Uc(e,r){if(r!=0&&(e.first+=r,e.sel=new wn(_t(e.sel.ranges,function(d){return new ht(ne(d.anchor.line+r,d.anchor.ch),ne(d.head.line+r,d.head.ch))}),e.sel.primIndex),e.cm)){an(e.cm,e.first,e.first-r,r);for(var s=e.cm.display,u=s.viewFrom;u<s.viewTo;u++)xr(e.cm,u,"gutter")}}function to(e,r,s,u){if(e.cm&&!e.cm.curOp)return Ht(e.cm,to)(e,r,s,u);if(r.to.line<e.first){Uc(e,r.text.length-1-(r.to.line-r.from.line));return}if(!(r.from.line>e.lastLine())){if(r.from.line<e.first){var d=r.text.length-1-(e.first-r.from.line);Uc(e,d),r={from:ne(e.first,0),to:ne(r.to.line+d,r.to.ch),text:[Le(r.text)],origin:r.origin}}var E=e.lastLine();r.to.line>E&&(r={from:r.from,to:ne(E,Oe(e,E).text.length),text:[r.text[0]],origin:r.origin}),r.removed=rr(e,r.from,r.to),s||(s=Dl(e,r)),e.cm?nm(e.cm,r,u):Tl(e,r,u),ua(e,s,Te),e.cantEdit&&sa(e,ne(e.firstLine(),0))&&(e.cantEdit=!1)}}function nm(e,r,s){var u=e.doc,d=e.display,E=r.from,T=r.to,P=!1,z=E.line;e.options.lineWrapping||(z=pt(Nn(Oe(u,E.line))),u.iter(z,T.line+1,function(ae){if(ae==d.maxLine)return P=!0,!0})),u.sel.contains(r.from,r.to)>-1&&An(e),Tl(u,r,s,lc(e)),e.options.lineWrapping||(u.iter(z,E.line+r.text.length,function(ae){var me=Yo(ae);me>d.maxLineLength&&(d.maxLine=ae,d.maxLineLength=me,d.maxLineChanged=!0,P=!1)}),P&&(e.curOp.updateMaxLine=!0)),Qp(u,E.line),Ki(e,400);var H=r.text.length-(T.line-E.line)-1;r.full?an(e):E.line==T.line&&r.text.length==1&&!Cc(e.doc,r)?xr(e,E.line,"text"):an(e,E.line,T.line+1,H);var $=gt(e,"changes"),J=gt(e,"change");if(J||$){var ue={from:E,to:T,text:r.text,removed:r.removed,origin:r.origin};J&&Ut(e,"change",e,ue),$&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(ue)}e.display.selForContextMenu=null}function gi(e,r,s,u,d){var E;u||(u=s),pe(u,s)<0&&(E=[u,s],s=E[0],u=E[1]),typeof r=="string"&&(r=e.splitLines(r)),mi(e,{from:s,to:u,text:r,origin:d})}function Hc(e,r,s,u){s<e.line?e.line+=u:r<e.line&&(e.line=r,e.ch=0)}function Wc(e,r,s,u){for(var d=0;d<e.length;++d){var E=e[d],T=!0;if(E.ranges){E.copied||(E=e[d]=E.deepCopy(),E.copied=!0);for(var P=0;P<E.ranges.length;P++)Hc(E.ranges[P].anchor,r,s,u),Hc(E.ranges[P].head,r,s,u);continue}for(var z=0;z<E.changes.length;++z){var H=E.changes[z];if(s<H.from.line)H.from=ne(H.from.line+u,H.from.ch),H.to=ne(H.to.line+u,H.to.ch);else if(r<=H.to.line){T=!1;break}}T||(e.splice(0,d+1),d=0)}}function Qc(e,r){var s=r.from.line,u=r.to.line,d=r.text.length-(u-s)-1;Wc(e.done,s,u,d),Wc(e.undone,s,u,d)}function no(e,r,s,u){var d=r,E=r;return typeof r=="number"?E=Oe(e,xn(e,r)):d=pt(r),d==null?null:(u(E,d)&&e.cm&&xr(e.cm,d,s),E)}function ro(e){this.lines=e,this.parent=null;for(var r=0,s=0;s<e.length;++s)e[s].parent=this,r+=e[s].height;this.height=r}ro.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,r){for(var s=e,u=e+r;s<u;++s){var d=this.lines[s];this.height-=d.height,rh(d),Ut(d,"delete")}this.lines.splice(e,r)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,r,s){this.height+=s,this.lines=this.lines.slice(0,e).concat(r).concat(this.lines.slice(e));for(var u=0;u<r.length;++u)r[u].parent=this},iterN:function(e,r,s){for(var u=e+r;e<u;++e)if(s(this.lines[e]))return!0}};function io(e){this.children=e;for(var r=0,s=0,u=0;u<e.length;++u){var d=e[u];r+=d.chunkSize(),s+=d.height,d.parent=this}this.size=r,this.height=s,this.parent=null}io.prototype={chunkSize:function(){return this.size},removeInner:function(e,r){this.size-=r;for(var s=0;s<this.children.length;++s){var u=this.children[s],d=u.chunkSize();if(e<d){var E=Math.min(r,d-e),T=u.height;if(u.removeInner(e,E),this.height-=T-u.height,d==E&&(this.children.splice(s--,1),u.parent=null),(r-=E)==0)break;e=0}else e-=d}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof ro))){var P=[];this.collapse(P),this.children=[new ro(P)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r<this.children.length;++r)this.children[r].collapse(e)},insertInner:function(e,r,s){this.size+=r.length,this.height+=s;for(var u=0;u<this.children.length;++u){var d=this.children[u],E=d.chunkSize();if(e<=E){if(d.insertInner(e,r,s),d.lines&&d.lines.length>50){for(var T=d.lines.length%25+25,P=T;P<d.lines.length;){var z=new ro(d.lines.slice(P,P+=25));d.height-=z.height,this.children.splice(++u,0,z),z.parent=this}d.lines=d.lines.slice(0,T),this.maybeSpill()}break}e-=E}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var r=e.children.splice(e.children.length-5,5),s=new io(r);if(e.parent){e.size-=s.size,e.height-=s.height;var u=se(e.parent.children,e);e.parent.children.splice(u+1,0,s)}else{var d=new io(e.children);d.parent=e,e.children=[d,s],e=d}s.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,r,s){for(var u=0;u<this.children.length;++u){var d=this.children[u],E=d.chunkSize();if(e<E){var T=Math.min(r,E-e);if(d.iterN(e,T,s))return!0;if((r-=T)==0)break;e=0}else e-=E}}};var oo=function(e,r,s){if(s)for(var u in s)s.hasOwnProperty(u)&&(this[u]=s[u]);this.doc=e,this.node=r};oo.prototype.clear=function(){var e=this.doc.cm,r=this.line.widgets,s=this.line,u=pt(s);if(!(u==null||!r)){for(var d=0;d<r.length;++d)r[d]==this&&r.splice(d--,1);r.length||(s.widgets=null);var E=Qi(this);Dn(s,Math.max(0,s.height-E)),e&&(mn(e,function(){Xc(e,s,-E),xr(e,u,"widget")}),Ut(e,"lineWidgetCleared",e,this,u))}},oo.prototype.changed=function(){var e=this,r=this.height,s=this.doc.cm,u=this.line;this.height=null;var d=Qi(this)-r;!d||(Ar(this.doc,u)||Dn(u,u.height+d),s&&mn(s,function(){s.curOp.forceUpdate=!0,Xc(s,u,d),Ut(s,"lineWidgetChanged",s,e,pt(u))}))},bt(oo);function Xc(e,r,s){or(r)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&wl(e,s)}function rm(e,r,s,u){var d=new oo(e,s,u),E=e.cm;return E&&d.noHScroll&&(E.display.alignWidgets=!0),no(e,r,"widget",function(T){var P=T.widgets||(T.widgets=[]);if(d.insertAt==null?P.push(d):P.splice(Math.min(P.length,Math.max(0,d.insertAt)),0,d),d.line=T,E&&!Ar(e,T)){var z=or(T)<e.scrollTop;Dn(T,T.height+Qi(d)),z&&wl(E,d.height),E.curOp.forceUpdate=!0}return!0}),E&&Ut(E,"lineWidgetAdded",E,d,typeof r=="number"?r:pt(r)),d}var Yc=0,kr=function(e,r){this.lines=[],this.type=r,this.doc=e,this.id=++Yc};kr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,r=e&&!e.curOp;if(r&&Wr(e),gt(this,"clear")){var s=this.find();s&&Ut(this,"clear",s.from,s.to)}for(var u=null,d=null,E=0;E<this.lines.length;++E){var T=this.lines[E],P=Ui(T.markedSpans,this);e&&!this.collapsed?xr(e,pt(T),"text"):e&&(P.to!=null&&(d=pt(T)),P.from!=null&&(u=pt(T))),T.markedSpans=Gp(T.markedSpans,P),P.from==null&&this.collapsed&&!Ar(this.doc,T)&&e&&Dn(T,ui(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var z=0;z<this.lines.length;++z){var H=Nn(this.lines[z]),$=Yo(H);$>e.display.maxLineLength&&(e.display.maxLine=H,e.display.maxLineLength=$,e.display.maxLineChanged=!0)}u!=null&&e&&this.collapsed&&an(e,u,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ic(e.doc)),e&&Ut(e,"markerCleared",e,this,u,d),r&&Qr(e),this.parent&&this.parent.clear()}},kr.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var s,u,d=0;d<this.lines.length;++d){var E=this.lines[d],T=Ui(E.markedSpans,this);if(T.from!=null&&(s=ne(r?E:pt(E),T.from),e==-1))return s;if(T.to!=null&&(u=ne(r?E:pt(E),T.to),e==1))return u}return s&&{from:s,to:u}},kr.prototype.changed=function(){var e=this,r=this.find(-1,!0),s=this,u=this.doc.cm;!r||!u||mn(u,function(){var d=r.line,E=pt(r.line),T=cl(u,E);if(T&&(Zs(T),u.curOp.selectionChanged=u.curOp.forceUpdate=!0),u.curOp.updateMaxLine=!0,!Ar(s.doc,d)&&s.height!=null){var P=s.height;s.height=null;var z=Qi(s)-P;z&&Dn(d,d.height+z)}Ut(u,"markerChanged",u,e)})},kr.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||se(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},kr.prototype.detachLine=function(e){if(this.lines.splice(se(this.lines,e),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},bt(kr);function vi(e,r,s,u,d){if(u&&u.shared)return im(e,r,s,u,d);if(e.cm&&!e.cm.curOp)return Ht(e.cm,vi)(e,r,s,u,d);var E=new kr(e,d),T=pe(r,s);if(u&&fe(u,E,!1),T>0||T==0&&E.clearWhenEmpty!==!1)return E;if(E.replacedWith&&(E.collapsed=!0,E.widgetNode=X("span",[E.replacedWith],"CodeMirror-widget"),u.handleMouseEvents||E.widgetNode.setAttribute("cm-ignore-events","true"),u.insertLeft&&(E.widgetNode.insertLeft=!0)),E.collapsed){if(Ls(e,r.line,r,s,E)||r.line!=s.line&&Ls(e,s.line,r,s,E))throw new Error("Inserting collapsed marker partially overlapping an existing one");Yp()}E.addToHistory&&Dc(e,{from:r,to:s,origin:"markText"},e.sel,NaN);var P=r.line,z=e.cm,H;if(e.iter(P,s.line+1,function(J){z&&E.collapsed&&!z.options.lineWrapping&&Nn(J)==z.display.maxLine&&(H=!0),E.collapsed&&P!=r.line&&Dn(J,0),$p(J,new Ho(E,P==r.line?r.ch:null,P==s.line?s.ch:null),e.cm&&e.cm.curOp),++P}),E.collapsed&&e.iter(r.line,s.line+1,function(J){Ar(e,J)&&Dn(J,0)}),E.clearOnEnter&&he(E,"beforeCursorEnter",function(){return E.clear()}),E.readOnly&&(Xp(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),E.collapsed&&(E.id=++Yc,E.atomic=!0),z){if(H&&(z.curOp.updateMaxLine=!0),E.collapsed)an(z,r.line,s.line+1);else if(E.className||E.startStyle||E.endStyle||E.css||E.attributes||E.title)for(var $=r.line;$<=s.line;$++)xr(z,$,"text");E.atomic&&Ic(z.doc),Ut(z,"markerAdded",z,E)}return E}var ao=function(e,r){this.markers=e,this.primary=r;for(var s=0;s<e.length;++s)e[s].parent=this};ao.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Ut(this,"clear")}},ao.prototype.find=function(e,r){return this.primary.find(e,r)},bt(ao);function im(e,r,s,u,d){u=fe(u),u.shared=!1;var E=[vi(e,r,s,u,d)],T=E[0],P=u.widgetNode;return Fr(e,function(z){P&&(u.widgetNode=P.cloneNode(!0)),E.push(vi(z,Xe(z,r),Xe(z,s),u,d));for(var H=0;H<z.linked.length;++H)if(z.linked[H].isParent)return;T=Le(E)}),new ao(E,T)}function Gc(e){return e.findMarks(ne(e.first,0),e.clipPos(ne(e.lastLine())),function(r){return r.parent})}function om(e,r){for(var s=0;s<r.length;s++){var u=r[s],d=u.find(),E=e.clipPos(d.from),T=e.clipPos(d.to);if(pe(E,T)){var P=vi(e,E,T,u.primary,u.primary.type);u.markers.push(P),P.parent=u}}}function am(e){for(var r=function(u){var d=e[u],E=[d.primary.doc];Fr(d.primary.doc,function(z){return E.push(z)});for(var T=0;T<d.markers.length;T++){var P=d.markers[T];se(E,P.doc)==-1&&(P.parent=null,d.markers.splice(T--,1))}},s=0;s<e.length;s++)r(s)}var lm=0,ln=function(e,r,s,u,d){if(!(this instanceof ln))return new ln(e,r,s,u,d);s==null&&(s=0),io.call(this,[new ro([new oi("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var E=ne(s,0);this.sel=Er(E),this.history=new oa(null),this.id=++lm,this.modeOption=r,this.lineSep=u,this.direction=d=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Tl(this,{from:E,to:E,text:e}),Jt(this,Er(E),Te)};ln.prototype=mr(io.prototype,{constructor:ln,iter:function(e,r,s){s?this.iterN(e-this.first,r-e,s):this.iterN(this.first,this.first+this.size,e)},insert:function(e,r){for(var s=0,u=0;u<r.length;++u)s+=r[u].height;this.insertInner(e-this.first,r,s)},remove:function(e,r){this.removeInner(e-this.first,r)},getValue:function(e){var r=ii(this,this.first,this.first+this.size);return e===!1?r:r.join(e||this.lineSeparator())},setValue:Wt(function(e){var r=ne(this.first,0),s=this.first+this.size-1;mi(this,{from:r,to:ne(s,Oe(this,s).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Gi(this.cm,0,0),Jt(this,Er(r),Te)}),replaceRange:function(e,r,s,u){r=Xe(this,r),s=s?Xe(this,s):r,gi(this,e,r,s,u)},getRange:function(e,r,s){var u=rr(this,Xe(this,e),Xe(this,r));return s===!1?u:s===""?u.join(""):u.join(s||this.lineSeparator())},getLine:function(e){var r=this.getLineHandle(e);return r&&r.text},getLineHandle:function(e){if(Y(this,e))return Oe(this,e)},getLineNumber:function(e){return pt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Oe(this,e)),Nn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Xe(this,e)},getCursor:function(e){var r=this.sel.primary(),s;return e==null||e=="head"?s=r.head:e=="anchor"?s=r.anchor:e=="end"||e=="to"||e===!1?s=r.to():s=r.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Wt(function(e,r,s){Mc(this,Xe(this,typeof e=="number"?ne(e,r||0):e),null,s)}),setSelection:Wt(function(e,r,s){Mc(this,Xe(this,e),Xe(this,r||e),s)}),extendSelection:Wt(function(e,r,s){la(this,Xe(this,e),r&&Xe(this,r),s)}),extendSelections:Wt(function(e,r){Rc(this,ws(this,e),r)}),extendSelectionsBy:Wt(function(e,r){var s=_t(this.sel.ranges,e);Rc(this,ws(this,s),r)}),setSelections:Wt(function(e,r,s){if(e.length){for(var u=[],d=0;d<e.length;d++)u[d]=new ht(Xe(this,e[d].anchor),Xe(this,e[d].head||e[d].anchor));r==null&&(r=Math.min(e.length-1,this.sel.primIndex)),Jt(this,In(this.cm,u,r),s)}}),addSelection:Wt(function(e,r,s){var u=this.sel.ranges.slice(0);u.push(new ht(Xe(this,e),Xe(this,r||e))),Jt(this,In(this.cm,u,u.length-1),s)}),getSelection:function(e){for(var r=this.sel.ranges,s,u=0;u<r.length;u++){var d=rr(this,r[u].from(),r[u].to());s=s?s.concat(d):d}return e===!1?s:s.join(e||this.lineSeparator())},getSelections:function(e){for(var r=[],s=this.sel.ranges,u=0;u<s.length;u++){var d=rr(this,s[u].from(),s[u].to());e!==!1&&(d=d.join(e||this.lineSeparator())),r[u]=d}return r},replaceSelection:function(e,r,s){for(var u=[],d=0;d<this.sel.ranges.length;d++)u[d]=e;this.replaceSelections(u,r,s||"+input")},replaceSelections:Wt(function(e,r,s){for(var u=[],d=this.sel,E=0;E<d.ranges.length;E++){var T=d.ranges[E];u[E]={from:T.from(),to:T.to(),text:this.splitLines(e[E]),origin:s}}for(var P=r&&r!="end"&&Gh(this,u,r),z=u.length-1;z>=0;z--)mi(this,u[z]);P?Nc(this,P):this.cm&&di(this.cm)}),undo:Wt(function(){ca(this,"undo")}),redo:Wt(function(){ca(this,"redo")}),undoSelection:Wt(function(){ca(this,"undo",!0)}),redoSelection:Wt(function(){ca(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,s=0,u=0;u<e.done.length;u++)e.done[u].ranges||++r;for(var d=0;d<e.undone.length;d++)e.undone[d].ranges||++s;return{undo:r,redo:s}},clearHistory:function(){var e=this;this.history=new oa(this.history),Fr(this,function(r){return r.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:pi(this.history.done),undone:pi(this.history.undone)}},setHistory:function(e){var r=this.history=new oa(this.history);r.done=pi(e.done.slice(0),null,!0),r.undone=pi(e.undone.slice(0),null,!0)},setGutterMarker:Wt(function(e,r,s){return no(this,e,"gutter",function(u){var d=u.gutterMarkers||(u.gutterMarkers={});return d[r]=s,!s&&Un(d)&&(u.gutterMarkers=null),!0})}),clearGutter:Wt(function(e){var r=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[e]&&no(r,s,"gutter",function(){return s.gutterMarkers[e]=null,Un(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(e){var r;if(typeof e=="number"){if(!Y(this,e)||(r=e,e=Oe(this,e),!e))return null}else if(r=pt(e),r==null)return null;return{line:r,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Wt(function(e,r,s){return no(this,e,r=="gutter"?"gutter":"class",function(u){var d=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!u[d])u[d]=s;else{if(D(s).test(u[d]))return!1;u[d]+=" "+s}return!0})}),removeLineClass:Wt(function(e,r,s){return no(this,e,r=="gutter"?"gutter":"class",function(u){var d=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",E=u[d];if(E)if(s==null)u[d]=null;else{var T=E.match(D(s));if(!T)return!1;var P=T.index+T[0].length;u[d]=E.slice(0,T.index)+(!T.index||P==E.length?"":" ")+E.slice(P)||null}else return!1;return!0})}),addLineWidget:Wt(function(e,r,s){return rm(this,e,r,s)}),removeLineWidget:function(e){e.clear()},markText:function(e,r,s){return vi(this,Xe(this,e),Xe(this,r),s,s&&s.type||"range")},setBookmark:function(e,r){var s={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return e=Xe(this,e),vi(this,e,e,s,"bookmark")},findMarksAt:function(e){e=Xe(this,e);var r=[],s=Oe(this,e.line).markedSpans;if(s)for(var u=0;u<s.length;++u){var d=s[u];(d.from==null||d.from<=e.ch)&&(d.to==null||d.to>=e.ch)&&r.push(d.marker.parent||d.marker)}return r},findMarks:function(e,r,s){e=Xe(this,e),r=Xe(this,r);var u=[],d=e.line;return this.iter(e.line,r.line+1,function(E){var T=E.markedSpans;if(T)for(var P=0;P<T.length;P++){var z=T[P];!(z.to!=null&&d==e.line&&e.ch>=z.to||z.from==null&&d!=e.line||z.from!=null&&d==r.line&&z.from>=r.ch)&&(!s||s(z.marker))&&u.push(z.marker.parent||z.marker)}++d}),u},getAllMarks:function(){var e=[];return this.iter(function(r){var s=r.markedSpans;if(s)for(var u=0;u<s.length;++u)s[u].from!=null&&e.push(s[u].marker)}),e},posFromIndex:function(e){var r,s=this.first,u=this.lineSeparator().length;return this.iter(function(d){var E=d.text.length+u;if(E>e)return r=e,!0;e-=E,++s}),Xe(this,ne(s,r))},indexFromPos:function(e){e=Xe(this,e);var r=e.ch;if(e.line<this.first||e.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,e.line,function(u){r+=u.text.length+s}),r},copy:function(e){var r=new ln(ii(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,e&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(e){e||(e={});var r=this.first,s=this.first+this.size;e.from!=null&&e.from>r&&(r=e.from),e.to!=null&&e.to<s&&(s=e.to);var u=new ln(ii(this,r,s),e.mode||this.modeOption,r,this.lineSep,this.direction);return e.sharedHist&&(u.history=this.history),(this.linked||(this.linked=[])).push({doc:u,sharedHist:e.sharedHist}),u.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],om(u,Gc(this)),u},unlinkDoc:function(e){if(e instanceof wt&&(e=e.doc),this.linked)for(var r=0;r<this.linked.length;++r){var s=this.linked[r];if(s.doc==e){this.linked.splice(r,1),e.unlinkDoc(this),am(Gc(this));break}}if(e.history==this.history){var u=[e.id];Fr(e,function(d){return u.push(d.id)},!0),e.history=new oa(null),e.history.done=pi(this.history.done,u),e.history.undone=pi(this.history.undone,u)}},iterLinkedDocs:function(e){Fr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Vi(e)},lineSeparator:function(){return this.lineSep||`
- `},setDirection:Wt(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(r){return r.order=null}),this.cm&&$h(this.cm))})}),ln.prototype.eachLine=ln.prototype.iter;var $c=0;function um(e){var r=this;if(qc(r),!(ut(r,e)||ar(r.display,e))){St(e),p&&($c=+new Date);var s=jr(r,e,!0),u=e.dataTransfer.files;if(!(!s||r.isReadOnly()))if(u&&u.length&&window.FileReader&&window.File)for(var d=u.length,E=Array(d),T=0,P=function(){++T==d&&Ht(r,function(){s=Xe(r.doc,s);var ae={from:s,to:s,text:r.doc.splitLines(E.filter(function(me){return me!=null}).join(r.doc.lineSeparator())),origin:"paste"};mi(r.doc,ae),Nc(r.doc,Er(Xe(r.doc,s),Xe(r.doc,Cr(ae))))})()},z=function(ae,me){if(r.options.allowDropFileTypes&&se(r.options.allowDropFileTypes,ae.type)==-1){P();return}var _e=new FileReader;_e.onerror=function(){return P()},_e.onload=function(){var Ae=_e.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ae)){P();return}E[me]=Ae,P()},_e.readAsText(ae)},H=0;H<u.length;H++)z(u[H],H);else{if(r.state.draggingText&&r.doc.sel.contains(s)>-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var $=e.dataTransfer.getData("Text");if($){var J;if(r.state.draggingText&&!r.state.draggingText.copy&&(J=r.listSelections()),ua(r.doc,Er(s,s)),J)for(var ue=0;ue<J.length;++ue)gi(r.doc,"",J[ue].anchor,J[ue].head,"drag");r.replaceSelection($,"around","paste"),r.display.input.focus()}}catch{}}}}function sm(e,r){if(p&&(!e.state.draggingText||+new Date-$c<100)){tr(r);return}if(!(ut(e,r)||ar(e.display,r))&&(r.dataTransfer.setData("Text",e.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!F)){var s=O("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",b&&(s.width=s.height=1,e.display.wrapper.appendChild(s),s._top=s.offsetTop),r.dataTransfer.setDragImage(s,0,0),b&&s.parentNode.removeChild(s)}}function cm(e,r){var s=jr(e,r);if(s){var u=document.createDocumentFragment();_l(e,s,u),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),R(e.display.dragCursor,u)}}function qc(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Jc(e){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),s=[],u=0;u<r.length;u++){var d=r[u].CodeMirror;d&&s.push(d)}s.length&&s[0].operation(function(){for(var E=0;E<s.length;E++)e(s[E])})}}var Kc=!1;function dm(){Kc||(fm(),Kc=!0)}function fm(){var e;he(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Jc(pm)},100))}),he(window,"blur",function(){return Jc(ci)})}function pm(e){var r=e.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,e.setSize()}for(var Sr={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"},lo=0;lo<10;lo++)Sr[lo+48]=Sr[lo+96]=String(lo);for(var da=65;da<=90;da++)Sr[da]=String.fromCharCode(da);for(var uo=1;uo<=12;uo++)Sr[uo+111]=Sr[uo+63235]="F"+uo;var ur={};ur.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"},ur.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"},ur.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"},ur.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"]},ur.default=S?ur.macDefault:ur.pcDefault;function hm(e){var r=e.split(/-(?!$)/);e=r[r.length-1];for(var s,u,d,E,T=0;T<r.length-1;T++){var P=r[T];if(/^(cmd|meta|m)$/i.test(P))E=!0;else if(/^a(lt)?$/i.test(P))s=!0;else if(/^(c|ctrl|control)$/i.test(P))u=!0;else if(/^s(hift)?$/i.test(P))d=!0;else throw new Error("Unrecognized modifier name: "+P)}return s&&(e="Alt-"+e),u&&(e="Ctrl-"+e),E&&(e="Cmd-"+e),d&&(e="Shift-"+e),e}function mm(e){var r={};for(var s in e)if(e.hasOwnProperty(s)){var u=e[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(u=="..."){delete e[s];continue}for(var d=_t(s.split(" "),hm),E=0;E<d.length;E++){var T=void 0,P=void 0;E==d.length-1?(P=d.join(" "),T=u):(P=d.slice(0,E+1).join(" "),T="...");var z=r[P];if(!z)r[P]=T;else if(z!=T)throw new Error("Inconsistent bindings for "+P)}delete e[s]}for(var H in r)e[H]=r[H];return e}function _i(e,r,s,u){r=fa(r);var d=r.call?r.call(e,u):r[e];if(d===!1)return"nothing";if(d==="...")return"multi";if(d!=null&&s(d))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return _i(e,r.fallthrough,s,u);for(var E=0;E<r.fallthrough.length;E++){var T=_i(e,r.fallthrough[E],s,u);if(T)return T}}}function Zc(e){var r=typeof e=="string"?e:Sr[e.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function ed(e,r,s){var u=e;return r.altKey&&u!="Alt"&&(e="Alt-"+e),(V?r.metaKey:r.ctrlKey)&&u!="Ctrl"&&(e="Ctrl-"+e),(V?r.ctrlKey:r.metaKey)&&u!="Mod"&&(e="Cmd-"+e),!s&&r.shiftKey&&u!="Shift"&&(e="Shift-"+e),e}function td(e,r){if(b&&e.keyCode==34&&e.char)return!1;var s=Sr[e.keyCode];return s==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(s=e.code),ed(s,e,r))}function fa(e){return typeof e=="string"?ur[e]:e}function yi(e,r){for(var s=e.doc.sel.ranges,u=[],d=0;d<s.length;d++){for(var E=r(s[d]);u.length&&pe(E.from,Le(u).to)<=0;){var T=u.pop();if(pe(T.from,E.from)<0){E.from=T.from;break}}u.push(E)}mn(e,function(){for(var P=u.length-1;P>=0;P--)gi(e.doc,"",u[P].from,u[P].to,"+delete");di(e)})}function Ol(e,r,s){var u=Ot(e.text,r+s,s);return u<0||u>e.text.length?null:u}function Il(e,r,s){var u=Ol(e,r.ch,s);return u==null?null:new ne(r.line,u,s<0?"after":"before")}function Ll(e,r,s,u,d){if(e){r.doc.direction=="rtl"&&(d=-d);var E=Ue(s,r.doc.direction);if(E){var T=d<0?Le(E):E[0],P=d<0==(T.level==1),z=P?"after":"before",H;if(T.level>0||r.doc.direction=="rtl"){var $=li(r,s);H=d<0?s.text.length-1:0;var J=$n(r,$,H).top;H=ft(function(ue){return $n(r,$,ue).top==J},d<0==(T.level==1)?T.from:T.to-1,H),z=="before"&&(H=Ol(s,H,1))}else H=d<0?T.to:T.from;return new ne(u,H,z)}}return new ne(u,d<0?s.text.length:0,d<0?"before":"after")}function gm(e,r,s,u){var d=Ue(r,e.doc.direction);if(!d)return Il(r,s,u);s.ch>=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var E=Se(d,s.ch,s.sticky),T=d[E];if(e.doc.direction=="ltr"&&T.level%2==0&&(u>0?T.to>s.ch:T.from<s.ch))return Il(r,s,u);var P=function(Ee,Be){return Ol(r,Ee instanceof ne?Ee.ch:Ee,Be)},z,H=function(Ee){return e.options.lineWrapping?(z=z||li(e,r),ac(e,r,z,Ee)):{begin:0,end:r.text.length}},$=H(s.sticky=="before"?P(s,-1):s.ch);if(e.doc.direction=="rtl"||T.level==1){var J=T.level==1==u<0,ue=P(s,J?1:-1);if(ue!=null&&(J?ue<=T.to&&ue<=$.end:ue>=T.from&&ue>=$.begin)){var ae=J?"before":"after";return new ne(s.line,ue,ae)}}var me=function(Ee,Be,Ce){for(var Me=function(yt,Qt){return Qt?new ne(s.line,P(yt,1),"before"):new ne(s.line,yt,"after")};Ee>=0&&Ee<d.length;Ee+=Be){var je=d[Ee],Pe=Be>0==(je.level!=1),et=Pe?Ce.begin:P(Ce.end,-1);if(je.from<=et&&et<je.to||(et=Pe?je.from:P(je.to,-1),Ce.begin<=et&&et<Ce.end))return Me(et,Pe)}},_e=me(E+u,u,$);if(_e)return _e;var Ae=u>0?$.end:P($.begin,-1);return Ae!=null&&!(u>0&&Ae==r.text.length)&&(_e=me(u>0?0:d.length-1,u,H(Ae)),_e)?_e:null}var so={selectAll:Vc,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Te)},killLine:function(e){return yi(e,function(r){if(r.empty()){var s=Oe(e.doc,r.head.line).text.length;return r.head.ch==s&&r.head.line<e.lastLine()?{from:r.head,to:ne(r.head.line+1,0)}:{from:r.head,to:ne(r.head.line,s)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(e){return yi(e,function(r){return{from:ne(r.from().line,0),to:Xe(e.doc,ne(r.to().line+1,0))}})},delLineLeft:function(e){return yi(e,function(r){return{from:ne(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(e){return yi(e,function(r){var s=e.charCoords(r.head,"div").top+5,u=e.coordsChar({left:0,top:s},"div");return{from:u,to:r.from()}})},delWrappedLineRight:function(e){return yi(e,function(r){var s=e.charCoords(r.head,"div").top+5,u=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div");return{from:r.from(),to:u}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ne(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ne(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(r){return nd(e,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(r){return rd(e,r.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(r){return vm(e,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div")},ot)},goLineLeft:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:0,top:s},"div")},ot)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5,u=e.coordsChar({left:0,top:s},"div");return u.ch<e.getLine(u.line).search(/\S/)?rd(e,r.head):u},ot)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var r=[],s=e.listSelections(),u=e.options.tabSize,d=0;d<s.length;d++){var E=s[d].from(),T=oe(e.getLine(E.line),E.ch,u);r.push(xt(u-T%u))}e.replaceSelections(r)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return mn(e,function(){for(var r=e.listSelections(),s=[],u=0;u<r.length;u++)if(r[u].empty()){var d=r[u].head,E=Oe(e.doc,d.line).text;if(E){if(d.ch==E.length&&(d=new ne(d.line,d.ch-1)),d.ch>0)d=new ne(d.line,d.ch+1),e.replaceRange(E.charAt(d.ch-1)+E.charAt(d.ch-2),ne(d.line,d.ch-2),d,"+transpose");else if(d.line>e.doc.first){var T=Oe(e.doc,d.line-1).text;T&&(d=new ne(d.line,1),e.replaceRange(E.charAt(0)+e.doc.lineSeparator()+T.charAt(T.length-1),ne(d.line-1,T.length-1),d,"+transpose"))}}s.push(new ht(d,d))}e.setSelections(s)})},newlineAndIndent:function(e){return mn(e,function(){for(var r=e.listSelections(),s=r.length-1;s>=0;s--)e.replaceRange(e.doc.lineSeparator(),r[s].anchor,r[s].head,"+input");r=e.listSelections();for(var u=0;u<r.length;u++)e.indentLine(r[u].from().line,null,!0);di(e)})},openLine:function(e){return e.replaceSelection(`
- `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function nd(e,r){var s=Oe(e.doc,r),u=Nn(s);return u!=s&&(r=pt(u)),Ll(!0,e,u,r,1)}function vm(e,r){var s=Oe(e.doc,r),u=eh(s);return u!=s&&(r=pt(u)),Ll(!0,e,s,r,-1)}function rd(e,r){var s=nd(e,r.line),u=Oe(e.doc,s.line),d=Ue(u,e.doc.direction);if(!d||d[0].level==0){var E=Math.max(s.ch,u.text.search(/\S/)),T=r.line==s.line&&r.ch<=E&&r.ch;return ne(s.line,T?0:E,s.sticky)}return s}function pa(e,r,s){if(typeof r=="string"&&(r=so[r],!r))return!1;e.display.input.ensurePolled();var u=e.display.shift,d=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),s&&(e.display.shift=!1),d=r(e)!=we}finally{e.display.shift=u,e.state.suppressEdits=!1}return d}function _m(e,r,s){for(var u=0;u<e.state.keyMaps.length;u++){var d=_i(r,e.state.keyMaps[u],s,e);if(d)return d}return e.options.extraKeys&&_i(r,e.options.extraKeys,s,e)||_i(r,e.options.keyMap,s,e)}var ym=new ce;function co(e,r,s,u){var d=e.state.keySeq;if(d){if(Zc(r))return"handled";if(/\'$/.test(r)?e.state.keySeq=null:ym.set(50,function(){e.state.keySeq==d&&(e.state.keySeq=null,e.display.input.reset())}),id(e,d+" "+r,s,u))return!0}return id(e,r,s,u)}function id(e,r,s,u){var d=_m(e,r,u);return d=="multi"&&(e.state.keySeq=r),d=="handled"&&Ut(e,"keyHandled",e,r,s),(d=="handled"||d=="multi")&&(St(s),yl(e)),!!d}function od(e,r){var s=td(r,!0);return s?r.shiftKey&&!e.state.keySeq?co(e,"Shift-"+s,r,function(u){return pa(e,u,!0)})||co(e,s,r,function(u){if(typeof u=="string"?/^go[A-Z]/.test(u):u.motion)return pa(e,u)}):co(e,s,r,function(u){return pa(e,u)}):!1}function bm(e,r,s){return co(e,"'"+s+"'",r,function(u){return pa(e,u,!0)})}var Pl=null;function ad(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&(r.curOp.focus=L(te(r)),!ut(r,e))){p&&m<11&&e.keyCode==27&&(e.returnValue=!1);var s=e.keyCode;r.display.shift=s==16||e.shiftKey;var u=od(r,e);b&&(Pl=u?s:null,!u&&s==88&&!Wn&&(S?e.metaKey:e.ctrlKey)&&r.replaceSelection("",null,"cut")),n&&!S&&!u&&s==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&Am(r)}}function Am(e){var r=e.display.lineDiv;Q(r,"CodeMirror-crosshair");function s(u){(u.keyCode==18||!u.altKey)&&(I(r,"CodeMirror-crosshair"),Ie(document,"keyup",s),Ie(document,"mouseover",s))}he(document,"keyup",s),he(document,"mouseover",s)}function ld(e){e.keyCode==16&&(this.doc.sel.shift=!1),ut(this,e)}function ud(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&!(ar(r.display,e)||ut(r,e)||e.ctrlKey&&!e.altKey||S&&e.metaKey)){var s=e.keyCode,u=e.charCode;if(b&&s==Pl){Pl=null,St(e);return}if(!(b&&(!e.which||e.which<10)&&od(r,e))){var d=String.fromCharCode(u??s);d!="\b"&&(bm(r,e,d)||r.display.input.onKeyPress(e))}}}var xm=400,Vl=function(e,r,s){this.time=e,this.pos=r,this.button=s};Vl.prototype.compare=function(e,r,s){return this.time+xm>e&&pe(r,this.pos)==0&&s==this.button};var fo,po;function wm(e,r){var s=+new Date;return po&&po.compare(s,e,r)?(fo=po=null,"triple"):fo&&fo.compare(s,e,r)?(po=new Vl(s,e,r),fo=null,"double"):(fo=new Vl(s,e,r),po=null,"single")}function sd(e){var r=this,s=r.display;if(!(ut(r,e)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=e.shiftKey,ar(s,e)){v||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!jl(r,e)){var u=jr(r,e),d=Pi(e),E=u?wm(u,d):"single";le(r).focus(),d==1&&r.state.selectingText&&r.state.selectingText(e),!(u&&Em(r,d,u,E,e))&&(d==1?u?Fm(r,u,E,e):on(e)==s.scroller&&St(e):d==2?(u&&la(r.doc,u),setTimeout(function(){return s.input.focus()},20)):d==3&&(w?r.display.input.onContextMenu(e):bl(r)))}}}function Em(e,r,s,u,d){var E="Click";return u=="double"?E="Double"+E:u=="triple"&&(E="Triple"+E),E=(r==1?"Left":r==2?"Middle":"Right")+E,co(e,ed(E,d),d,function(T){if(typeof T=="string"&&(T=so[T]),!T)return!1;var P=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),P=T(e,s)!=we}finally{e.state.suppressEdits=!1}return P})}function Cm(e,r,s){var u=e.getOption("configureMouse"),d=u?u(e,r,s):{};if(d.unit==null){var E=B?s.shiftKey&&s.metaKey:s.altKey;d.unit=E?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(d.extend==null||e.doc.extend)&&(d.extend=e.doc.extend||s.shiftKey),d.addNew==null&&(d.addNew=S?s.metaKey:s.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(S?s.altKey:s.ctrlKey)),d}function Fm(e,r,s,u){p?setTimeout(ye(cc,e),0):e.curOp.focus=L(te(e));var d=Cm(e,s,u),E=e.doc.sel,T;e.options.dragDrop&&Ka&&!e.isReadOnly()&&s=="single"&&(T=E.contains(r))>-1&&(pe((T=E.ranges[T]).from(),r)<0||r.xRel>0)&&(pe(T.to(),r)>0||r.xRel<0)?km(e,u,r,d):Sm(e,u,r,d)}function km(e,r,s,u){var d=e.display,E=!1,T=Ht(e,function(H){v&&(d.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:bl(e)),Ie(d.wrapper.ownerDocument,"mouseup",T),Ie(d.wrapper.ownerDocument,"mousemove",P),Ie(d.scroller,"dragstart",z),Ie(d.scroller,"drop",T),E||(St(H),u.addNew||la(e.doc,s,null,null,u.extend),v&&!F||p&&m==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),P=function(H){E=E||Math.abs(r.clientX-H.clientX)+Math.abs(r.clientY-H.clientY)>=10},z=function(){return E=!0};v&&(d.scroller.draggable=!0),e.state.draggingText=T,T.copy=!u.moveOnDrag,he(d.wrapper.ownerDocument,"mouseup",T),he(d.wrapper.ownerDocument,"mousemove",P),he(d.scroller,"dragstart",z),he(d.scroller,"drop",T),e.state.delayingBlurEvent=!0,setTimeout(function(){return d.input.focus()},20),d.scroller.dragDrop&&d.scroller.dragDrop()}function cd(e,r,s){if(s=="char")return new ht(r,r);if(s=="word")return e.findWordAt(r);if(s=="line")return new ht(ne(r.line,0),Xe(e.doc,ne(r.line+1,0)));var u=s(e,r);return new ht(u.from,u.to)}function Sm(e,r,s,u){p&&bl(e);var d=e.display,E=e.doc;St(r);var T,P,z=E.sel,H=z.ranges;if(u.addNew&&!u.extend?(P=E.sel.contains(s),P>-1?T=H[P]:T=new ht(s,s)):(T=E.sel.primary(),P=E.sel.primIndex),u.unit=="rectangle")u.addNew||(T=new ht(s,s)),s=jr(e,r,!0,!0),P=-1;else{var $=cd(e,s,u.unit);u.extend?T=Ml(T,$.anchor,$.head,u.extend):T=$}u.addNew?P==-1?(P=H.length,Jt(E,In(e,H.concat([T]),P),{scroll:!1,origin:"*mouse"})):H.length>1&&H[P].empty()&&u.unit=="char"&&!u.extend?(Jt(E,In(e,H.slice(0,P).concat(H.slice(P+1)),0),{scroll:!1,origin:"*mouse"}),z=E.sel):Nl(E,P,T,$e):(P=0,Jt(E,new wn([T],0),$e),z=E.sel);var J=s;function ue(Ce){if(pe(J,Ce)!=0)if(J=Ce,u.unit=="rectangle"){for(var Me=[],je=e.options.tabSize,Pe=oe(Oe(E,s.line).text,s.ch,je),et=oe(Oe(E,Ce.line).text,Ce.ch,je),yt=Math.min(Pe,et),Qt=Math.max(Pe,et),Et=Math.min(s.line,Ce.line),gn=Math.min(e.lastLine(),Math.max(s.line,Ce.line));Et<=gn;Et++){var un=Oe(E,Et).text,Rt=rt(un,yt,je);yt==Qt?Me.push(new ht(ne(Et,Rt),ne(Et,Rt))):un.length>Rt&&Me.push(new ht(ne(Et,Rt),ne(Et,rt(un,Qt,je))))}Me.length||Me.push(new ht(s,s)),Jt(E,In(e,z.ranges.slice(0,P).concat(Me),P),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Ce)}else{var sn=T,$t=cd(e,Ce,u.unit),Lt=sn.anchor,Mt;pe($t.anchor,Lt)>0?(Mt=$t.head,Lt=It(sn.from(),$t.anchor)):(Mt=$t.anchor,Lt=st(sn.to(),$t.head));var kt=z.ranges.slice(0);kt[P]=Dm(e,new ht(Xe(E,Lt),Mt)),Jt(E,In(e,kt,P),$e)}}var ae=d.wrapper.getBoundingClientRect(),me=0;function _e(Ce){var Me=++me,je=jr(e,Ce,!0,u.unit=="rectangle");if(je)if(pe(je,J)!=0){e.curOp.focus=L(te(e)),ue(je);var Pe=ta(d,E);(je.line>=Pe.to||je.line<Pe.from)&&setTimeout(Ht(e,function(){me==Me&&_e(Ce)}),150)}else{var et=Ce.clientY<ae.top?-20:Ce.clientY>ae.bottom?20:0;et&&setTimeout(Ht(e,function(){me==Me&&(d.scroller.scrollTop+=et,_e(Ce))}),50)}}function Ae(Ce){e.state.selectingText=!1,me=1/0,Ce&&(St(Ce),d.input.focus()),Ie(d.wrapper.ownerDocument,"mousemove",Ee),Ie(d.wrapper.ownerDocument,"mouseup",Be),E.history.lastSelOrigin=null}var Ee=Ht(e,function(Ce){Ce.buttons===0||!Pi(Ce)?Ae(Ce):_e(Ce)}),Be=Ht(e,Ae);e.state.selectingText=Be,he(d.wrapper.ownerDocument,"mousemove",Ee),he(d.wrapper.ownerDocument,"mouseup",Be)}function Dm(e,r){var s=r.anchor,u=r.head,d=Oe(e.doc,s.line);if(pe(s,u)==0&&s.sticky==u.sticky)return r;var E=Ue(d);if(!E)return r;var T=Se(E,s.ch,s.sticky),P=E[T];if(P.from!=s.ch&&P.to!=s.ch)return r;var z=T+(P.from==s.ch==(P.level!=1)?0:1);if(z==0||z==E.length)return r;var H;if(u.line!=s.line)H=(u.line-s.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var $=Se(E,u.ch,u.sticky),J=$-T||(u.ch-s.ch)*(P.level==1?-1:1);$==z-1||$==z?H=J<0:H=J>0}var ue=E[z+(H?-1:0)],ae=H==(ue.level==1),me=ae?ue.from:ue.to,_e=ae?"after":"before";return s.ch==me&&s.sticky==_e?r:new ht(new ne(s.line,me,_e),u)}function dd(e,r,s,u){var d,E;if(r.touches)d=r.touches[0].clientX,E=r.touches[0].clientY;else try{d=r.clientX,E=r.clientY}catch{return!1}if(d>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;u&&St(r);var T=e.display,P=T.lineDiv.getBoundingClientRect();if(E>P.bottom||!gt(e,s))return Lr(r);E-=P.top-T.viewOffset;for(var z=0;z<e.display.gutterSpecs.length;++z){var H=T.gutters.childNodes[z];if(H&&H.getBoundingClientRect().right>=d){var $=Xn(e.doc,E),J=e.display.gutterSpecs[z];return We(e,s,e,$,J.className,r),Lr(r)}}}function jl(e,r){return dd(e,r,"gutterClick",!0)}function fd(e,r){ar(e.display,r)||Bm(e,r)||ut(e,r,"contextmenu")||w||e.display.input.onContextMenu(r)}function Bm(e,r){return gt(e,"gutterContextMenu")?dd(e,r,"gutterContextMenu",!1):!1}function pd(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Xi(e)}var bi={toString:function(){return"CodeMirror.Init"}},hd={},ha={};function Tm(e){var r=e.optionHandlers;function s(u,d,E,T){e.defaults[u]=d,E&&(r[u]=T?function(P,z,H){H!=bi&&E(P,z,H)}:E)}e.defineOption=s,e.Init=bi,s("value","",function(u,d){return u.setValue(d)},!0),s("mode",null,function(u,d){u.doc.modeOption=d,Bl(u)},!0),s("indentUnit",2,Bl,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(u){eo(u),Xi(u),an(u)},!0),s("lineSeparator",null,function(u,d){if(u.doc.lineSep=d,!!d){var E=[],T=u.doc.first;u.doc.iter(function(z){for(var H=0;;){var $=z.text.indexOf(d,H);if($==-1)break;H=$+d.length,E.push(ne(T,$))}T++});for(var P=E.length-1;P>=0;P--)gi(u.doc,d,E[P],ne(E[P].line,E[P].ch+d.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(u,d,E){u.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),E!=bi&&u.refresh()}),s("specialCharPlaceholder",ah,function(u){return u.refresh()},!0),s("electricChars",!0),s("inputStyle",C?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(u,d){return u.getInputField().spellcheck=d},!0),s("autocorrect",!1,function(u,d){return u.getInputField().autocorrect=d},!0),s("autocapitalize",!1,function(u,d){return u.getInputField().autocapitalize=d},!0),s("rtlMoveVisually",!M),s("wholeLineUpdateBefore",!0),s("theme","default",function(u){pd(u),Zi(u)},!0),s("keyMap","default",function(u,d,E){var T=fa(d),P=E!=bi&&fa(E);P&&P.detach&&P.detach(u,T),T.attach&&T.attach(u,P||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,Mm,!0),s("gutters",[],function(u,d){u.display.gutterSpecs=Sl(d,u.options.lineNumbers),Zi(u)},!0),s("fixedGutter",!0,function(u,d){u.display.gutters.style.left=d?gl(u.display)+"px":"0",u.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(u){return fi(u)},!0),s("scrollbarStyle","native",function(u){gc(u),fi(u),u.display.scrollbars.setScrollTop(u.doc.scrollTop),u.display.scrollbars.setScrollLeft(u.doc.scrollLeft)},!0),s("lineNumbers",!1,function(u,d){u.display.gutterSpecs=Sl(u.options.gutters,d),Zi(u)},!0),s("firstLineNumber",1,Zi,!0),s("lineNumberFormatter",function(u){return u},Zi,!0),s("showCursorWhenSelecting",!1,Yi,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(u,d){d=="nocursor"&&(ci(u),u.display.input.blur()),u.display.input.readOnlyChanged(d)}),s("screenReaderLabel",null,function(u,d){d=d===""?null:d,u.display.input.screenReaderLabelChanged(d)}),s("disableInput",!1,function(u,d){d||u.display.input.reset()},!0),s("dragDrop",!0,Rm),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,Yi,!0),s("singleCursorHeightPerLine",!0,Yi,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,eo,!0),s("addModeClass",!1,eo,!0),s("pollInterval",100),s("undoDepth",200,function(u,d){return u.doc.history.undoDepth=d}),s("historyEventDelay",1250),s("viewportMargin",10,function(u){return u.refresh()},!0),s("maxHighlightLength",1e4,eo,!0),s("moveInputWithCursor",!0,function(u,d){d||u.display.input.resetPosition()}),s("tabindex",null,function(u,d){return u.display.input.getField().tabIndex=d||""}),s("autofocus",null),s("direction","ltr",function(u,d){return u.doc.setDirection(d)},!0),s("phrases",null)}function Rm(e,r,s){var u=s&&s!=bi;if(!r!=!u){var d=e.display.dragFunctions,E=r?he:Ie;E(e.display.scroller,"dragstart",d.start),E(e.display.scroller,"dragenter",d.enter),E(e.display.scroller,"dragover",d.over),E(e.display.scroller,"dragleave",d.leave),E(e.display.scroller,"drop",d.drop)}}function Mm(e){e.options.lineWrapping?(Q(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(I(e.display.wrapper,"CodeMirror-wrap"),al(e)),vl(e),an(e),Xi(e),setTimeout(function(){return fi(e)},100)}function wt(e,r){var s=this;if(!(this instanceof wt))return new wt(e,r);this.options=r=r?fe(r):{},fe(hd,r,!1);var u=r.value;typeof u=="string"?u=new ln(u,r.mode,null,r.lineSeparator,r.direction):r.mode&&(u.modeOption=r.mode),this.doc=u;var d=new wt.inputStyles[r.inputStyle](this),E=this.display=new Xh(e,u,d,r);E.wrapper.CodeMirror=this,pd(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),gc(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 ce,keySeq:null,specialChars:null},r.autofocus&&!C&&E.input.focus(),p&&m<11&&setTimeout(function(){return s.display.input.reset(!0)},20),Nm(this),dm(),Wr(this),this.curOp.forceUpdate=!0,Fc(this,u),r.autofocus&&!C||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&Al(s)},20):ci(this);for(var T in ha)ha.hasOwnProperty(T)&&ha[T](this,r[T],bi);yc(this),r.finishInit&&r.finishInit(this);for(var P=0;P<zl.length;++P)zl[P](this);Qr(this),v&&r.lineWrapping&&getComputedStyle(E.lineDiv).textRendering=="optimizelegibility"&&(E.lineDiv.style.textRendering="auto")}wt.defaults=hd,wt.optionHandlers=ha;function Nm(e){var r=e.display;he(r.scroller,"mousedown",Ht(e,sd)),p&&m<11?he(r.scroller,"dblclick",Ht(e,function(z){if(!ut(e,z)){var H=jr(e,z);if(!(!H||jl(e,z)||ar(e.display,z))){St(z);var $=e.findWordAt(H);la(e.doc,$.anchor,$.head)}}})):he(r.scroller,"dblclick",function(z){return ut(e,z)||St(z)}),he(r.scroller,"contextmenu",function(z){return fd(e,z)}),he(r.input.getField(),"contextmenu",function(z){r.scroller.contains(z.target)||fd(e,z)});var s,u={end:0};function d(){r.activeTouch&&(s=setTimeout(function(){return r.activeTouch=null},1e3),u=r.activeTouch,u.end=+new Date)}function E(z){if(z.touches.length!=1)return!1;var H=z.touches[0];return H.radiusX<=1&&H.radiusY<=1}function T(z,H){if(H.left==null)return!0;var $=H.left-z.left,J=H.top-z.top;return $*$+J*J>20*20}he(r.scroller,"touchstart",function(z){if(!ut(e,z)&&!E(z)&&!jl(e,z)){r.input.ensurePolled(),clearTimeout(s);var H=+new Date;r.activeTouch={start:H,moved:!1,prev:H-u.end<=300?u:null},z.touches.length==1&&(r.activeTouch.left=z.touches[0].pageX,r.activeTouch.top=z.touches[0].pageY)}}),he(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),he(r.scroller,"touchend",function(z){var H=r.activeTouch;if(H&&!ar(r,z)&&H.left!=null&&!H.moved&&new Date-H.start<300){var $=e.coordsChar(r.activeTouch,"page"),J;!H.prev||T(H,H.prev)?J=new ht($,$):!H.prev.prev||T(H,H.prev.prev)?J=e.findWordAt($):J=new ht(ne($.line,0),Xe(e.doc,ne($.line+1,0))),e.setSelection(J.anchor,J.head),e.focus(),St(z)}d()}),he(r.scroller,"touchcancel",d),he(r.scroller,"scroll",function(){r.scroller.clientHeight&&($i(e,r.scroller.scrollTop),Ur(e,r.scroller.scrollLeft,!0),We(e,"scroll",e))}),he(r.scroller,"mousewheel",function(z){return xc(e,z)}),he(r.scroller,"DOMMouseScroll",function(z){return xc(e,z)}),he(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(z){ut(e,z)||tr(z)},over:function(z){ut(e,z)||(cm(e,z),tr(z))},start:function(z){return sm(e,z)},drop:Ht(e,um),leave:function(z){ut(e,z)||qc(e)}};var P=r.input.getField();he(P,"keyup",function(z){return ld.call(e,z)}),he(P,"keydown",Ht(e,ad)),he(P,"keypress",Ht(e,ud)),he(P,"focus",function(z){return Al(e,z)}),he(P,"blur",function(z){return ci(e,z)})}var zl=[];wt.defineInitHook=function(e){return zl.push(e)};function ho(e,r,s,u){var d=e.doc,E;s==null&&(s="add"),s=="smart"&&(d.mode.indent?E=zi(e,r).state:s="prev");var T=e.options.tabSize,P=Oe(d,r),z=oe(P.text,null,T);P.stateAfter&&(P.stateAfter=null);var H=P.text.match(/^\s*/)[0],$;if(!u&&!/\S/.test(P.text))$=0,s="not";else if(s=="smart"&&($=d.mode.indent(E,P.text.slice(H.length),P.text),$==we||$>150)){if(!u)return;s="prev"}s=="prev"?r>d.first?$=oe(Oe(d,r-1).text,null,T):$=0:s=="add"?$=z+e.options.indentUnit:s=="subtract"?$=z-e.options.indentUnit:typeof s=="number"&&($=z+s),$=Math.max(0,$);var J="",ue=0;if(e.options.indentWithTabs)for(var ae=Math.floor($/T);ae;--ae)ue+=T,J+=" ";if(ue<$&&(J+=xt($-ue)),J!=H)return gi(d,J,ne(r,0),ne(r,H.length),"+input"),P.stateAfter=null,!0;for(var me=0;me<d.sel.ranges.length;me++){var _e=d.sel.ranges[me];if(_e.head.line==r&&_e.head.ch<H.length){var Ae=ne(r,H.length);Nl(d,me,new ht(Ae,Ae));break}}}var Ln=null;function ma(e){Ln=e}function Ul(e,r,s,u,d){var E=e.doc;e.display.shift=!1,u||(u=E.sel);var T=+new Date-200,P=d=="paste"||e.state.pasteIncoming>T,z=Vi(r),H=null;if(P&&u.ranges.length>1)if(Ln&&Ln.text.join(`
- `)==r){if(u.ranges.length%Ln.text.length==0){H=[];for(var $=0;$<Ln.text.length;$++)H.push(E.splitLines(Ln.text[$]))}}else z.length==u.ranges.length&&e.options.pasteLinesPerSelection&&(H=_t(z,function(Ee){return[Ee]}));for(var J=e.curOp.updateInput,ue=u.ranges.length-1;ue>=0;ue--){var ae=u.ranges[ue],me=ae.from(),_e=ae.to();ae.empty()&&(s&&s>0?me=ne(me.line,me.ch-s):e.state.overwrite&&!P?_e=ne(_e.line,Math.min(Oe(E,_e.line).text.length,_e.ch+Le(z).length)):P&&Ln&&Ln.lineWise&&Ln.text.join(`
- `)==z.join(`
- `)&&(me=_e=ne(me.line,0)));var Ae={from:me,to:_e,text:H?H[ue%H.length]:z,origin:d||(P?"paste":e.state.cutIncoming>T?"cut":"+input")};mi(e.doc,Ae),Ut(e,"inputRead",e,Ae)}r&&!P&&gd(e,r),di(e),e.curOp.updateInput<2&&(e.curOp.updateInput=J),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function md(e,r){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&r.hasFocus()&&mn(r,function(){return Ul(r,s,0,null,"paste")}),!0}function gd(e,r){if(!(!e.options.electricChars||!e.options.smartIndent))for(var s=e.doc.sel,u=s.ranges.length-1;u>=0;u--){var d=s.ranges[u];if(!(d.head.ch>100||u&&s.ranges[u-1].head.line==d.head.line)){var E=e.getModeAt(d.head),T=!1;if(E.electricChars){for(var P=0;P<E.electricChars.length;P++)if(r.indexOf(E.electricChars.charAt(P))>-1){T=ho(e,d.head.line,"smart");break}}else E.electricInput&&E.electricInput.test(Oe(e.doc,d.head.line).text.slice(0,d.head.ch))&&(T=ho(e,d.head.line,"smart"));T&&Ut(e,"electricInput",e,d.head.line)}}}function vd(e){for(var r=[],s=[],u=0;u<e.doc.sel.ranges.length;u++){var d=e.doc.sel.ranges[u].head.line,E={anchor:ne(d,0),head:ne(d+1,0)};s.push(E),r.push(e.getRange(E.anchor,E.head))}return{text:r,ranges:s}}function _d(e,r,s,u){e.setAttribute("autocorrect",s?"":"off"),e.setAttribute("autocapitalize",u?"":"off"),e.setAttribute("spellcheck",!!r)}function yd(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),r=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),_d(e),r}function Om(e){var r=e.optionHandlers,s=e.helpers={};e.prototype={constructor:e,focus:function(){le(this).focus(),this.display.input.focus()},setOption:function(u,d){var E=this.options,T=E[u];E[u]==d&&u!="mode"||(E[u]=d,r.hasOwnProperty(u)&&Ht(this,r[u])(this,d,T),We(this,"optionChange",this,u))},getOption:function(u){return this.options[u]},getDoc:function(){return this.doc},addKeyMap:function(u,d){this.state.keyMaps[d?"push":"unshift"](fa(u))},removeKeyMap:function(u){for(var d=this.state.keyMaps,E=0;E<d.length;++E)if(d[E]==u||d[E].name==u)return d.splice(E,1),!0},addOverlay:tn(function(u,d){var E=u.token?u:e.getMode(this.options,u);if(E.startState)throw new Error("Overlays may not be stateful.");fn(this.state.overlays,{mode:E,modeSpec:u,opaque:d&&d.opaque,priority:d&&d.priority||0},function(T){return T.priority}),this.state.modeGen++,an(this)}),removeOverlay:tn(function(u){for(var d=this.state.overlays,E=0;E<d.length;++E){var T=d[E].modeSpec;if(T==u||typeof u=="string"&&T.name==u){d.splice(E,1),this.state.modeGen++,an(this);return}}}),indentLine:tn(function(u,d,E){typeof d!="string"&&typeof d!="number"&&(d==null?d=this.options.smartIndent?"smart":"prev":d=d?"add":"subtract"),Y(this.doc,u)&&ho(this,u,d,E)}),indentSelection:tn(function(u){for(var d=this.doc.sel.ranges,E=-1,T=0;T<d.length;T++){var P=d[T];if(P.empty())P.head.line>E&&(ho(this,P.head.line,u,!0),E=P.head.line,T==this.doc.sel.primIndex&&di(this));else{var z=P.from(),H=P.to(),$=Math.max(E,z.line);E=Math.min(this.lastLine(),H.line-(H.ch?0:1))+1;for(var J=$;J<E;++J)ho(this,J,u);var ue=this.doc.sel.ranges;z.ch==0&&d.length==ue.length&&ue[T].from().ch>0&&Nl(this.doc,T,new ht(z,ue[T].to()),Te)}}}),getTokenAt:function(u,d){return Ss(this,u,d)},getLineTokens:function(u,d){return Ss(this,ne(u),d,!0)},getTokenTypeAt:function(u){u=Xe(this.doc,u);var d=Cs(this,Oe(this.doc,u.line)),E=0,T=(d.length-1)/2,P=u.ch,z;if(P==0)z=d[2];else for(;;){var H=E+T>>1;if((H?d[H*2-1]:0)>=P)T=H;else if(d[H*2+1]<P)E=H+1;else{z=d[H*2+2];break}}var $=z?z.indexOf("overlay "):-1;return $<0?z:$==0?null:z.slice(0,$-1)},getModeAt:function(u){var d=this.doc.mode;return d.innerMode?e.innerMode(d,this.getTokenAt(u).state).mode:d},getHelper:function(u,d){return this.getHelpers(u,d)[0]},getHelpers:function(u,d){var E=[];if(!s.hasOwnProperty(d))return E;var T=s[d],P=this.getModeAt(u);if(typeof P[d]=="string")T[P[d]]&&E.push(T[P[d]]);else if(P[d])for(var z=0;z<P[d].length;z++){var H=T[P[d][z]];H&&E.push(H)}else P.helperType&&T[P.helperType]?E.push(T[P.helperType]):T[P.name]&&E.push(T[P.name]);for(var $=0;$<T._global.length;$++){var J=T._global[$];J.pred(P,this)&&se(E,J.val)==-1&&E.push(J.val)}return E},getStateAfter:function(u,d){var E=this.doc;return u=xn(E,u??E.first+E.size-1),zi(this,u+1,d).state},cursorCoords:function(u,d){var E,T=this.doc.sel.primary();return u==null?E=T.head:typeof u=="object"?E=Xe(this.doc,u):E=u?T.from():T.to(),On(this,E,d||"page")},charCoords:function(u,d){return Jo(this,Xe(this.doc,u),d||"page")},coordsChar:function(u,d){return u=rc(this,u,d||"page"),pl(this,u.left,u.top)},lineAtHeight:function(u,d){return u=rc(this,{top:u,left:0},d||"page").top,Xn(this.doc,u+this.display.viewOffset)},heightAtLine:function(u,d,E){var T=!1,P;if(typeof u=="number"){var z=this.doc.first+this.doc.size-1;u<this.doc.first?u=this.doc.first:u>z&&(u=z,T=!0),P=Oe(this.doc,u)}else P=u;return qo(this,P,{top:0,left:0},d||"page",E||T).top+(T?this.doc.height-or(P):0)},defaultTextHeight:function(){return ui(this.display)},defaultCharWidth:function(){return si(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(u,d,E,T,P){var z=this.display;u=On(this,Xe(this.doc,u));var H=u.bottom,$=u.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),z.sizer.appendChild(d),T=="over")H=u.top;else if(T=="above"||T=="near"){var J=Math.max(z.wrapper.clientHeight,this.doc.height),ue=Math.max(z.sizer.clientWidth,z.lineSpace.clientWidth);(T=="above"||u.bottom+d.offsetHeight>J)&&u.top>d.offsetHeight?H=u.top-d.offsetHeight:u.bottom+d.offsetHeight<=J&&(H=u.bottom),$+d.offsetWidth>ue&&($=ue-d.offsetWidth)}d.style.top=H+"px",d.style.left=d.style.right="",P=="right"?($=z.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(P=="left"?$=0:P=="middle"&&($=(z.sizer.clientWidth-d.offsetWidth)/2),d.style.left=$+"px"),E&&Rh(this,{left:$,top:H,right:$+d.offsetWidth,bottom:H+d.offsetHeight})},triggerOnKeyDown:tn(ad),triggerOnKeyPress:tn(ud),triggerOnKeyUp:ld,triggerOnMouseDown:tn(sd),execCommand:function(u){if(so.hasOwnProperty(u))return so[u].call(null,this)},triggerElectric:tn(function(u){gd(this,u)}),findPosH:function(u,d,E,T){var P=1;d<0&&(P=-1,d=-d);for(var z=Xe(this.doc,u),H=0;H<d&&(z=Hl(this.doc,z,P,E,T),!z.hitSide);++H);return z},moveH:tn(function(u,d){var E=this;this.extendSelectionsBy(function(T){return E.display.shift||E.doc.extend||T.empty()?Hl(E.doc,T.head,u,d,E.options.rtlMoveVisually):u<0?T.from():T.to()},ot)}),deleteH:tn(function(u,d){var E=this.doc.sel,T=this.doc;E.somethingSelected()?T.replaceSelection("",null,"+delete"):yi(this,function(P){var z=Hl(T,P.head,u,d,!1);return u<0?{from:z,to:P.head}:{from:P.head,to:z}})}),findPosV:function(u,d,E,T){var P=1,z=T;d<0&&(P=-1,d=-d);for(var H=Xe(this.doc,u),$=0;$<d;++$){var J=On(this,H,"div");if(z==null?z=J.left:J.left=z,H=bd(this,J,P,E),H.hitSide)break}return H},moveV:tn(function(u,d){var E=this,T=this.doc,P=[],z=!this.display.shift&&!T.extend&&T.sel.somethingSelected();if(T.extendSelectionsBy(function($){if(z)return u<0?$.from():$.to();var J=On(E,$.head,"div");$.goalColumn!=null&&(J.left=$.goalColumn),P.push(J.left);var ue=bd(E,J,u,d);return d=="page"&&$==T.sel.primary()&&wl(E,Jo(E,ue,"div").top-J.top),ue},ot),P.length)for(var H=0;H<T.sel.ranges.length;H++)T.sel.ranges[H].goalColumn=P[H]}),findWordAt:function(u){var d=this.doc,E=Oe(d,u.line).text,T=u.ch,P=u.ch;if(E){var z=this.getHelper(u,"wordChars");(u.sticky=="before"||P==E.length)&&T?--T:++P;for(var H=E.charAt(T),$=yn(H,z)?function(J){return yn(J,z)}:/\s/.test(H)?function(J){return/\s/.test(J)}:function(J){return!/\s/.test(J)&&!yn(J)};T>0&&$(E.charAt(T-1));)--T;for(;P<E.length&&$(E.charAt(P));)++P}return new ht(ne(u.line,T),ne(u.line,P))},toggleOverwrite:function(u){u!=null&&u==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Q(this.display.cursorDiv,"CodeMirror-overwrite"):I(this.display.cursorDiv,"CodeMirror-overwrite"),We(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==L(te(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:tn(function(u,d){Gi(this,u,d)}),getScrollInfo:function(){var u=this.display.scroller;return{left:u.scrollLeft,top:u.scrollTop,height:u.scrollHeight-Gn(this)-this.display.barHeight,width:u.scrollWidth-Gn(this)-this.display.barWidth,clientHeight:sl(this),clientWidth:Pr(this)}},scrollIntoView:tn(function(u,d){u==null?(u={from:this.doc.sel.primary().head,to:null},d==null&&(d=this.options.cursorScrollMargin)):typeof u=="number"?u={from:ne(u,0),to:null}:u.from==null&&(u={from:u,to:null}),u.to||(u.to=u.from),u.margin=d||0,u.from.line!=null?Mh(this,u):fc(this,u.from,u.to,u.margin)}),setSize:tn(function(u,d){var E=this,T=function(z){return typeof z=="number"||/^\d+$/.test(String(z))?z+"px":z};u!=null&&(this.display.wrapper.style.width=T(u)),d!=null&&(this.display.wrapper.style.height=T(d)),this.options.lineWrapping&&ec(this);var P=this.display.viewFrom;this.doc.iter(P,this.display.viewTo,function(z){if(z.widgets){for(var H=0;H<z.widgets.length;H++)if(z.widgets[H].noHScroll){xr(E,P,"widget");break}}++P}),this.curOp.forceUpdate=!0,We(this,"refresh",this)}),operation:function(u){return mn(this,u)},startOperation:function(){return Wr(this)},endOperation:function(){return Qr(this)},refresh:tn(function(){var u=this.display.cachedTextHeight;an(this),this.curOp.forceUpdate=!0,Xi(this),Gi(this,this.doc.scrollLeft,this.doc.scrollTop),Fl(this.display),(u==null||Math.abs(u-ui(this.display))>.5||this.options.lineWrapping)&&vl(this),We(this,"refresh",this)}),swapDoc:tn(function(u){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),Fc(this,u),Xi(this),this.display.input.reset(),Gi(this,u.scrollLeft,u.scrollTop),this.curOp.forceScroll=!0,Ut(this,"swapDoc",this,d),d}),phrase:function(u){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,u)?d[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}},bt(e),e.registerHelper=function(u,d,E){s.hasOwnProperty(u)||(s[u]=e[u]={_global:[]}),s[u][d]=E},e.registerGlobalHelper=function(u,d,E,T){e.registerHelper(u,d,T),s[u]._global.push({pred:E,val:T})}}function Hl(e,r,s,u,d){var E=r,T=s,P=Oe(e,r.line),z=d&&e.direction=="rtl"?-s:s;function H(){var Be=r.line+z;return Be<e.first||Be>=e.first+e.size?!1:(r=new ne(Be,r.ch,r.sticky),P=Oe(e,Be))}function $(Be){var Ce;if(u=="codepoint"){var Me=P.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(Me))Ce=null;else{var je=s>0?Me>=55296&&Me<56320:Me>=56320&&Me<57343;Ce=new ne(r.line,Math.max(0,Math.min(P.text.length,r.ch+s*(je?2:1))),-s)}}else d?Ce=gm(e.cm,P,r,s):Ce=Il(P,r,s);if(Ce==null)if(!Be&&H())r=Ll(d,e.cm,P,r.line,z);else return!1;else r=Ce;return!0}if(u=="char"||u=="codepoint")$();else if(u=="column")$(!0);else if(u=="word"||u=="group")for(var J=null,ue=u=="group",ae=e.cm&&e.cm.getHelper(r,"wordChars"),me=!0;!(s<0&&!$(!me));me=!1){var _e=P.text.charAt(r.ch)||`
- `,Ae=yn(_e,ae)?"w":ue&&_e==`
- `?"n":!ue||/\s/.test(_e)?null:"p";if(ue&&!me&&!Ae&&(Ae="s"),J&&J!=Ae){s<0&&(s=1,$(),r.sticky="after");break}if(Ae&&(J=Ae),s>0&&!$(!me))break}var Ee=sa(e,r,E,T,!0);return Qe(E,Ee)&&(Ee.hitSide=!0),Ee}function bd(e,r,s,u){var d=e.doc,E=r.left,T;if(u=="page"){var P=Math.min(e.display.wrapper.clientHeight,le(e).innerHeight||d(e).documentElement.clientHeight),z=Math.max(P-.5*ui(e.display),3);T=(s>0?r.bottom:r.top)+s*z}else u=="line"&&(T=s>0?r.bottom+3:r.top-3);for(var H;H=pl(e,E,T),!!H.outside;){if(s<0?T<=0:T>=d.height){H.hitSide=!0;break}T+=s*5}return H}var vt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};vt.prototype.init=function(e){var r=this,s=this,u=s.cm,d=s.div=e.lineDiv;d.contentEditable=!0,_d(d,u.options.spellcheck,u.options.autocorrect,u.options.autocapitalize);function E(P){for(var z=P.target;z;z=z.parentNode){if(z==d)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(z.className))break}return!1}he(d,"paste",function(P){!E(P)||ut(u,P)||md(P,u)||m<=11&&setTimeout(Ht(u,function(){return r.updateFromDOM()}),20)}),he(d,"compositionstart",function(P){r.composing={data:P.data,done:!1}}),he(d,"compositionupdate",function(P){r.composing||(r.composing={data:P.data,done:!1})}),he(d,"compositionend",function(P){r.composing&&(P.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),he(d,"touchstart",function(){return s.forceCompositionEnd()}),he(d,"input",function(){r.composing||r.readFromDOMSoon()});function T(P){if(!(!E(P)||ut(u,P))){if(u.somethingSelected())ma({lineWise:!1,text:u.getSelections()}),P.type=="cut"&&u.replaceSelection("",null,"cut");else if(u.options.lineWiseCopyCut){var z=vd(u);ma({lineWise:!0,text:z.text}),P.type=="cut"&&u.operation(function(){u.setSelections(z.ranges,0,Te),u.replaceSelection("",null,"cut")})}else return;if(P.clipboardData){P.clipboardData.clearData();var H=Ln.text.join(`
- `);if(P.clipboardData.setData("Text",H),P.clipboardData.getData("Text")==H){P.preventDefault();return}}var $=yd(),J=$.firstChild;u.display.lineSpace.insertBefore($,u.display.lineSpace.firstChild),J.value=Ln.text.join(`
- `);var ue=L(d.ownerDocument);G(J),setTimeout(function(){u.display.lineSpace.removeChild($),ue.focus(),ue==d&&s.showPrimarySelection()},50)}}he(d,"copy",T),he(d,"cut",T)},vt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},vt.prototype.prepareSelection=function(){var e=sc(this.cm,!1);return e.focus=L(this.div.ownerDocument)==this.div,e},vt.prototype.showSelection=function(e,r){!e||!this.cm.display.view.length||((e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e))},vt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},vt.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,s=r.doc.sel.primary(),u=s.from(),d=s.to();if(r.display.viewTo==r.display.viewFrom||u.line>=r.display.viewTo||d.line<r.display.viewFrom){e.removeAllRanges();return}var E=ga(r,e.anchorNode,e.anchorOffset),T=ga(r,e.focusNode,e.focusOffset);if(!(E&&!E.bad&&T&&!T.bad&&pe(It(E,T),u)==0&&pe(st(E,T),d)==0)){var P=r.display.view,z=u.line>=r.display.viewFrom&&Ad(r,u)||{node:P[0].measure.map[2],offset:0},H=d.line<r.display.viewTo&&Ad(r,d);if(!H){var $=P[P.length-1].measure,J=$.maps?$.maps[$.maps.length-1]:$.map;H={node:J[J.length-1],offset:J[J.length-2]-J[J.length-3]}}if(!z||!H){e.removeAllRanges();return}var ue=e.rangeCount&&e.getRangeAt(0),ae;try{ae=U(z.node,z.offset,H.offset,H.node)}catch{}ae&&(!n&&r.state.focused?(e.collapse(z.node,z.offset),ae.collapsed||(e.removeAllRanges(),e.addRange(ae))):(e.removeAllRanges(),e.addRange(ae)),ue&&e.anchorNode==null?e.addRange(ue):n&&this.startGracePeriod()),this.rememberSelection()}},vt.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},vt.prototype.showMultipleSelections=function(e){R(this.cm.display.cursorDiv,e.cursors),R(this.cm.display.selectionDiv,e.selection)},vt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},vt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var r=e.getRangeAt(0).commonAncestorContainer;return Z(this.div,r)},vt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||L(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},vt.prototype.blur=function(){this.div.blur()},vt.prototype.getField=function(){return this.div},vt.prototype.supportsTouch=function(){return!0},vt.prototype.receivedFocus=function(){var e=this,r=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):mn(this.cm,function(){return r.cm.curOp.selectionChanged=!0});function s(){r.cm.state.focused&&(r.pollSelection(),r.polling.set(r.cm.options.pollInterval,s))}this.polling.set(this.cm.options.pollInterval,s)},vt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},vt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),r=this.cm;if(A&&x&&this.cm.display.gutterSpecs.length&&Im(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=ga(r,e.anchorNode,e.anchorOffset),u=ga(r,e.focusNode,e.focusOffset);s&&u&&mn(r,function(){Jt(r.doc,Er(s,u),Te),(s.bad||u.bad)&&(r.curOp.selectionChanged=!0)})}}},vt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,r=e.display,s=e.doc.sel.primary(),u=s.from(),d=s.to();if(u.ch==0&&u.line>e.firstLine()&&(u=ne(u.line-1,Oe(e.doc,u.line-1).length)),d.ch==Oe(e.doc,d.line).text.length&&d.line<e.lastLine()&&(d=ne(d.line+1,0)),u.line<r.viewFrom||d.line>r.viewTo-1)return!1;var E,T,P;u.line==r.viewFrom||(E=zr(e,u.line))==0?(T=pt(r.view[0].line),P=r.view[0].node):(T=pt(r.view[E].line),P=r.view[E-1].node.nextSibling);var z=zr(e,d.line),H,$;if(z==r.view.length-1?(H=r.viewTo-1,$=r.lineDiv.lastChild):(H=pt(r.view[z+1].line)-1,$=r.view[z+1].node.previousSibling),!P)return!1;for(var J=e.doc.splitLines(Lm(e,P,$,T,H)),ue=rr(e.doc,ne(T,0),ne(H,Oe(e.doc,H).text.length));J.length>1&&ue.length>1;)if(Le(J)==Le(ue))J.pop(),ue.pop(),H--;else if(J[0]==ue[0])J.shift(),ue.shift(),T++;else break;for(var ae=0,me=0,_e=J[0],Ae=ue[0],Ee=Math.min(_e.length,Ae.length);ae<Ee&&_e.charCodeAt(ae)==Ae.charCodeAt(ae);)++ae;for(var Be=Le(J),Ce=Le(ue),Me=Math.min(Be.length-(J.length==1?ae:0),Ce.length-(ue.length==1?ae:0));me<Me&&Be.charCodeAt(Be.length-me-1)==Ce.charCodeAt(Ce.length-me-1);)++me;if(J.length==1&&ue.length==1&&T==u.line)for(;ae&&ae>u.ch&&Be.charCodeAt(Be.length-me-1)==Ce.charCodeAt(Ce.length-me-1);)ae--,me++;J[J.length-1]=Be.slice(0,Be.length-me).replace(/^\u200b+/,""),J[0]=J[0].slice(ae).replace(/\u200b+$/,"");var je=ne(T,ae),Pe=ne(H,ue.length?Le(ue).length-me:0);if(J.length>1||J[0]||pe(je,Pe))return gi(e.doc,J,je,Pe,"+input"),!0},vt.prototype.ensurePolled=function(){this.forceCompositionEnd()},vt.prototype.reset=function(){this.forceCompositionEnd()},vt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},vt.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},vt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&mn(this.cm,function(){return an(e.cm)})},vt.prototype.setUneditable=function(e){e.contentEditable="false"},vt.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ht(this.cm,Ul)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},vt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},vt.prototype.onContextMenu=function(){},vt.prototype.resetPosition=function(){},vt.prototype.needsContentAttribute=!0;function Ad(e,r){var s=cl(e,r.line);if(!s||s.hidden)return null;var u=Oe(e.doc,r.line),d=$s(s,u,r.line),E=Ue(u,e.doc.direction),T="left";if(E){var P=Se(E,r.ch);T=P%2?"right":"left"}var z=Ks(d.map,r.ch,T);return z.offset=z.collapse=="right"?z.end:z.start,z}function Im(e){for(var r=e;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function Ai(e,r){return r&&(e.bad=!0),e}function Lm(e,r,s,u,d){var E="",T=!1,P=e.doc.lineSeparator(),z=!1;function H(ae){return function(me){return me.id==ae}}function $(){T&&(E+=P,z&&(E+=P),T=z=!1)}function J(ae){ae&&($(),E+=ae)}function ue(ae){if(ae.nodeType==1){var me=ae.getAttribute("cm-text");if(me){J(me);return}var _e=ae.getAttribute("cm-marker"),Ae;if(_e){var Ee=e.findMarks(ne(u,0),ne(d+1,0),H(+_e));Ee.length&&(Ae=Ee[0].find(0))&&J(rr(e.doc,Ae.from,Ae.to).join(P));return}if(ae.getAttribute("contenteditable")=="false")return;var Be=/^(pre|div|p|li|table|br)$/i.test(ae.nodeName);if(!/^br$/i.test(ae.nodeName)&&ae.textContent.length==0)return;Be&&$();for(var Ce=0;Ce<ae.childNodes.length;Ce++)ue(ae.childNodes[Ce]);/^(pre|p)$/i.test(ae.nodeName)&&(z=!0),Be&&(T=!0)}else ae.nodeType==3&&J(ae.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ue(r),r!=s;)r=r.nextSibling,z=!1;return E}function ga(e,r,s){var u;if(r==e.display.lineDiv){if(u=e.display.lineDiv.childNodes[s],!u)return Ai(e.clipPos(ne(e.display.viewTo-1)),!0);r=null,s=0}else for(u=r;;u=u.parentNode){if(!u||u==e.display.lineDiv)return null;if(u.parentNode&&u.parentNode==e.display.lineDiv)break}for(var d=0;d<e.display.view.length;d++){var E=e.display.view[d];if(E.node==u)return Pm(E,r,s)}}function Pm(e,r,s){var u=e.text.firstChild,d=!1;if(!r||!Z(u,r))return Ai(ne(pt(e.line),0),!0);if(r==u&&(d=!0,r=u.childNodes[s],s=0,!r)){var E=e.rest?Le(e.rest):e.line;return Ai(ne(pt(E),E.text.length),d)}var T=r.nodeType==3?r:null,P=r;for(!T&&r.childNodes.length==1&&r.firstChild.nodeType==3&&(T=r.firstChild,s&&(s=T.nodeValue.length));P.parentNode!=u;)P=P.parentNode;var z=e.measure,H=z.maps;function $(Ae,Ee,Be){for(var Ce=-1;Ce<(H?H.length:0);Ce++)for(var Me=Ce<0?z.map:H[Ce],je=0;je<Me.length;je+=3){var Pe=Me[je+2];if(Pe==Ae||Pe==Ee){var et=pt(Ce<0?e.line:e.rest[Ce]),yt=Me[je]+Be;return(Be<0||Pe!=Ae)&&(yt=Me[je+(Be?1:0)]),ne(et,yt)}}}var J=$(T,P,s);if(J)return Ai(J,d);for(var ue=P.nextSibling,ae=T?T.nodeValue.length-s:0;ue;ue=ue.nextSibling){if(J=$(ue,ue.firstChild,0),J)return Ai(ne(J.line,J.ch-ae),d);ae+=ue.textContent.length}for(var me=P.previousSibling,_e=s;me;me=me.previousSibling){if(J=$(me,me.firstChild,-1),J)return Ai(ne(J.line,J.ch+_e),d);_e+=me.textContent.length}}var Dt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ce,this.hasSelection=!1,this.composing=null};Dt.prototype.init=function(e){var r=this,s=this,u=this.cm;this.createField(e);var d=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(d.style.width="0px"),he(d,"input",function(){p&&m>=9&&r.hasSelection&&(r.hasSelection=null),s.poll()}),he(d,"paste",function(T){ut(u,T)||md(T,u)||(u.state.pasteIncoming=+new Date,s.fastPoll())});function E(T){if(!ut(u,T)){if(u.somethingSelected())ma({lineWise:!1,text:u.getSelections()});else if(u.options.lineWiseCopyCut){var P=vd(u);ma({lineWise:!0,text:P.text}),T.type=="cut"?u.setSelections(P.ranges,null,Te):(s.prevInput="",d.value=P.text.join(`
- `),G(d))}else return;T.type=="cut"&&(u.state.cutIncoming=+new Date)}}he(d,"cut",E),he(d,"copy",E),he(e.scroller,"paste",function(T){if(!(ar(e,T)||ut(u,T))){if(!d.dispatchEvent){u.state.pasteIncoming=+new Date,s.focus();return}var P=new Event("paste");P.clipboardData=T.clipboardData,d.dispatchEvent(P)}}),he(e.lineSpace,"selectstart",function(T){ar(e,T)||St(T)}),he(d,"compositionstart",function(){var T=u.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:T,range:u.markText(T,u.getCursor("to"),{className:"CodeMirror-composing"})}}),he(d,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},Dt.prototype.createField=function(e){this.wrapper=yd(),this.textarea=this.wrapper.firstChild},Dt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Dt.prototype.prepareSelection=function(){var e=this.cm,r=e.display,s=e.doc,u=sc(e);if(e.options.moveInputWithCursor){var d=On(e,s.sel.primary().head,"div"),E=r.wrapper.getBoundingClientRect(),T=r.lineDiv.getBoundingClientRect();u.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,d.top+T.top-E.top)),u.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,d.left+T.left-E.left))}return u},Dt.prototype.showSelection=function(e){var r=this.cm,s=r.display;R(s.cursorDiv,e.cursors),R(s.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Dt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var r=this.cm;if(r.somethingSelected()){this.prevInput="";var s=r.getSelection();this.textarea.value=s,r.state.focused&&G(this.textarea),p&&m>=9&&(this.hasSelection=s)}else e||(this.prevInput=this.textarea.value="",p&&m>=9&&(this.hasSelection=null))}},Dt.prototype.getField=function(){return this.textarea},Dt.prototype.supportsTouch=function(){return!1},Dt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!C||L(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},Dt.prototype.blur=function(){this.textarea.blur()},Dt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Dt.prototype.receivedFocus=function(){this.slowPoll()},Dt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Dt.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0;function s(){var u=r.poll();!u&&!e?(e=!0,r.polling.set(60,s)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,s)},Dt.prototype.poll=function(){var e=this,r=this.cm,s=this.textarea,u=this.prevInput;if(this.contextMenuPending||!r.state.focused||gr(s)&&!u&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var d=s.value;if(d==u&&!r.somethingSelected())return!1;if(p&&m>=9&&this.hasSelection===d||S&&/[\uf700-\uf7ff]/.test(d))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var E=d.charCodeAt(0);if(E==8203&&!u&&(u=""),E==8666)return this.reset(),this.cm.execCommand("undo")}for(var T=0,P=Math.min(u.length,d.length);T<P&&u.charCodeAt(T)==d.charCodeAt(T);)++T;return mn(r,function(){Ul(r,d.slice(T),u.length-T,null,e.composing?"*compose":null),d.length>1e3||d.indexOf(`
- `)>-1?s.value=e.prevInput="":e.prevInput=d,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Dt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Dt.prototype.onKeyPress=function(){p&&m>=9&&(this.hasSelection=null),this.fastPoll()},Dt.prototype.onContextMenu=function(e){var r=this,s=r.cm,u=s.display,d=r.textarea;r.contextMenuPending&&r.contextMenuPending();var E=jr(s,e),T=u.scroller.scrollTop;if(!E||b)return;var P=s.options.resetSelectionOnContextMenu;P&&s.doc.sel.contains(E)==-1&&Ht(s,Jt)(s.doc,Er(E),Te);var z=d.style.cssText,H=r.wrapper.style.cssText,$=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px;
- top: `+(e.clientY-$.top-5)+"px; left: "+(e.clientX-$.left-5)+`px;
- z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`;
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var J;v&&(J=d.ownerDocument.defaultView.scrollY),u.input.focus(),v&&d.ownerDocument.defaultView.scrollTo(null,J),u.input.reset(),s.somethingSelected()||(d.value=r.prevInput=" "),r.contextMenuPending=ae,u.selForContextMenu=s.doc.sel,clearTimeout(u.detectingSelectAll);function ue(){if(d.selectionStart!=null){var _e=s.somethingSelected(),Ae=""+(_e?d.value:"");d.value="⇚",d.value=Ae,r.prevInput=_e?"":"",d.selectionStart=1,d.selectionEnd=Ae.length,u.selForContextMenu=s.doc.sel}}function ae(){if(r.contextMenuPending==ae&&(r.contextMenuPending=!1,r.wrapper.style.cssText=H,d.style.cssText=z,p&&m<9&&u.scrollbars.setScrollTop(u.scroller.scrollTop=T),d.selectionStart!=null)){(!p||p&&m<9)&&ue();var _e=0,Ae=function(){u.selForContextMenu==s.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&r.prevInput==""?Ht(s,Vc)(s):_e++<10?u.detectingSelectAll=setTimeout(Ae,500):(u.selForContextMenu=null,u.input.reset())};u.detectingSelectAll=setTimeout(Ae,200)}}if(p&&m>=9&&ue(),w){tr(e);var me=function(){Ie(window,"mouseup",me),setTimeout(ae,20)};he(window,"mouseup",me)}else setTimeout(ae,50)},Dt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Dt.prototype.setUneditable=function(){},Dt.prototype.needsContentAttribute=!1;function Vm(e,r){if(r=r?fe(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var s=L(e.ownerDocument);r.autofocus=s==e||e.getAttribute("autofocus")!=null&&s==document.body}function u(){e.value=P.getValue()}var d;if(e.form&&(he(e.form,"submit",u),!r.leaveSubmitMethodAlone)){var E=e.form;d=E.submit;try{var T=E.submit=function(){u(),E.submit=d,E.submit(),E.submit=T}}catch{}}r.finishInit=function(z){z.save=u,z.getTextArea=function(){return e},z.toTextArea=function(){z.toTextArea=isNaN,u(),e.parentNode.removeChild(z.getWrapperElement()),e.style.display="",e.form&&(Ie(e.form,"submit",u),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=d))}},e.style.display="none";var P=wt(function(z){return e.parentNode.insertBefore(z,e.nextSibling)},r);return P}function jm(e){e.off=Ie,e.on=he,e.wheelEventPixels=Yh,e.Doc=ln,e.splitLines=Vi,e.countColumn=oe,e.findColumn=rt,e.isWordChar=_n,e.Pass=we,e.signal=We,e.Line=oi,e.changeEnd=Cr,e.scrollbarModel=mc,e.Pos=ne,e.cmpPos=pe,e.modes=Mn,e.mimeModes=vr,e.resolveMode=hn,e.getMode=_r,e.modeExtensions=yr,e.extendMode=zo,e.copyState=nr,e.startState=ji,e.innerMode=br,e.commands=so,e.keyMap=ur,e.keyName=td,e.isModifierKey=Zc,e.lookupKey=_i,e.normalizeKeyMap=mm,e.StringStream=Ft,e.SharedTextMarker=ao,e.TextMarker=kr,e.LineWidget=oo,e.e_preventDefault=St,e.e_stopPropagation=Hn,e.e_stop=tr,e.addClass=Q,e.contains=Z,e.rmClass=I,e.keyNames=Sr}Tm(wt),Om(wt);var zm="iter insert remove copy getEditor constructor".split(" ");for(var va in ln.prototype)ln.prototype.hasOwnProperty(va)&&se(zm,va)<0&&(wt.prototype[va]=function(e){return function(){return e.apply(this.doc,arguments)}}(ln.prototype[va]));return bt(ln),wt.inputStyles={textarea:Dt,contenteditable:vt},wt.defineMode=function(e){!wt.defaults.mode&&e!="null"&&(wt.defaults.mode=e),jo.apply(this,arguments)},wt.defineMIME=ri,wt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),wt.defineMIME("text/plain","null"),wt.defineExtension=function(e,r){wt.prototype[e]=r},wt.defineDocExtension=function(e,r){ln.prototype[e]=r},wt.fromTextArea=Vm,jm(wt),wt.version="6.65.7",wt})}(Zd)),Zd.exports}var Ni=Ga();(function(t,a){(function(o){o(Ga())})(function(o){o.defineMode("javascript",function(i,n){var l=i.indentUnit,f=n.statementIndent,c=n.jsonld,p=n.json||c,m=n.trackScope!==!1,v=n.typescript,_=n.wordCharacters||/[\w$\xa1-\uffff]/,x=function(){function Y(It){return{type:It,style:"keyword"}}var K=Y("keyword a"),ne=Y("keyword b"),pe=Y("keyword c"),Qe=Y("keyword d"),it=Y("operator"),st={type:"atom",style:"atom"};return{if:Y("if"),while:K,with:K,else:ne,do:ne,try:ne,finally:ne,return:Qe,break:Qe,continue:Qe,new:Y("new"),delete:pe,void:pe,throw:pe,debugger:Y("debugger"),var:Y("var"),const:Y("var"),let:Y("var"),function:Y("function"),catch:Y("catch"),for:Y("for"),switch:Y("switch"),case:Y("case"),default:Y("default"),in:it,typeof:it,instanceof:it,true:st,false:st,null:st,undefined:st,NaN:st,Infinity:st,this:Y("this"),class:Y("class"),super:Y("atom"),yield:pe,export:Y("export"),import:Y("import"),extends:pe,await:pe}}(),k=/[+\-*&%=<>!?|~^@]/,b=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function F(Y){for(var K=!1,ne,pe=!1;(ne=Y.next())!=null;){if(!K){if(ne=="/"&&!pe)return;ne=="["?pe=!0:pe&&ne=="]"&&(pe=!1)}K=!K&&ne=="\\"}}var y,h;function g(Y,K,ne){return y=Y,h=ne,K}function A(Y,K){var ne=Y.next();if(ne=='"'||ne=="'")return K.tokenize=C(ne),K.tokenize(Y,K);if(ne=="."&&Y.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return g("number","number");if(ne=="."&&Y.match(".."))return g("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ne))return g(ne);if(ne=="="&&Y.eat(">"))return g("=>","operator");if(ne=="0"&&Y.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return g("number","number");if(/\d/.test(ne))return Y.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),g("number","number");if(ne=="/")return Y.eat("*")?(K.tokenize=S,S(Y,K)):Y.eat("/")?(Y.skipToEnd(),g("comment","comment")):Xn(Y,K,1)?(F(Y),Y.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),g("regexp","string-2")):(Y.eat("="),g("operator","operator",Y.current()));if(ne=="`")return K.tokenize=B,B(Y,K);if(ne=="#"&&Y.peek()=="!")return Y.skipToEnd(),g("meta","meta");if(ne=="#"&&Y.eatWhile(_))return g("variable","property");if(ne=="<"&&Y.match("!--")||ne=="-"&&Y.match("->")&&!/\S/.test(Y.string.slice(0,Y.start)))return Y.skipToEnd(),g("comment","comment");if(k.test(ne))return(ne!=">"||!K.lexical||K.lexical.type!=">")&&(Y.eat("=")?(ne=="!"||ne=="=")&&Y.eat("="):/[<>*+\-|&?]/.test(ne)&&(Y.eat(ne),ne==">"&&Y.eat(ne))),ne=="?"&&Y.eat(".")?g("."):g("operator","operator",Y.current());if(_.test(ne)){Y.eatWhile(_);var pe=Y.current();if(K.lastType!="."){if(x.propertyIsEnumerable(pe)){var Qe=x[pe];return g(Qe.type,Qe.style,pe)}if(pe=="async"&&Y.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return g("async","keyword",pe)}return g("variable","variable",pe)}}function C(Y){return function(K,ne){var pe=!1,Qe;if(c&&K.peek()=="@"&&K.match(b))return ne.tokenize=A,g("jsonld-keyword","meta");for(;(Qe=K.next())!=null&&!(Qe==Y&&!pe);)pe=!pe&&Qe=="\\";return pe||(ne.tokenize=A),g("string","string")}}function S(Y,K){for(var ne=!1,pe;pe=Y.next();){if(pe=="/"&&ne){K.tokenize=A;break}ne=pe=="*"}return g("comment","comment")}function B(Y,K){for(var ne=!1,pe;(pe=Y.next())!=null;){if(!ne&&(pe=="`"||pe=="$"&&Y.eat("{"))){K.tokenize=A;break}ne=!ne&&pe=="\\"}return g("quasi","string-2",Y.current())}var M="([{}])";function N(Y,K){K.fatArrowAt&&(K.fatArrowAt=null);var ne=Y.string.indexOf("=>",Y.start);if(!(ne<0)){if(v){var pe=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(Y.string.slice(Y.start,ne));pe&&(ne=pe.index)}for(var Qe=0,it=!1,st=ne-1;st>=0;--st){var It=Y.string.charAt(st),xn=M.indexOf(It);if(xn>=0&&xn<3){if(!Qe){++st;break}if(--Qe==0){It=="("&&(it=!0);break}}else if(xn>=3&&xn<6)++Qe;else if(_.test(It))it=!0;else if(/["'\/`]/.test(It))for(;;--st){if(st==0)return;var Xe=Y.string.charAt(st-1);if(Xe==It&&Y.string.charAt(st-2)!="\\"){st--;break}}else if(it&&!Qe){++st;break}}it&&!Qe&&(K.fatArrowAt=st)}}var V={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function w(Y,K,ne,pe,Qe,it){this.indented=Y,this.column=K,this.type=ne,this.prev=Qe,this.info=it,pe!=null&&(this.align=pe)}function D(Y,K){if(!m)return!1;for(var ne=Y.localVars;ne;ne=ne.next)if(ne.name==K)return!0;for(var pe=Y.context;pe;pe=pe.prev)for(var ne=pe.vars;ne;ne=ne.next)if(ne.name==K)return!0}function I(Y,K,ne,pe,Qe){var it=Y.cc;for(j.state=Y,j.stream=Qe,j.marked=null,j.cc=it,j.style=K,Y.lexical.hasOwnProperty("align")||(Y.lexical.align=!0);;){var st=it.length?it.pop():p?we:se;if(st(ne,pe)){for(;it.length&&it[it.length-1].lex;)it.pop()();return j.marked?j.marked:ne=="variable"&&D(Y,pe)?"variable-2":K}}}var j={state:null,marked:null,cc:null};function R(){for(var Y=arguments.length-1;Y>=0;Y--)j.cc.push(arguments[Y])}function O(){return R.apply(null,arguments),!0}function X(Y,K){for(var ne=K;ne;ne=ne.next)if(ne.name==Y)return!0;return!1}function U(Y){var K=j.state;if(j.marked="def",!!m){if(K.context){if(K.lexical.info=="var"&&K.context&&K.context.block){var ne=Z(Y,K.context);if(ne!=null){K.context=ne;return}}else if(!X(Y,K.localVars)){K.localVars=new W(Y,K.localVars);return}}n.globalVars&&!X(Y,K.globalVars)&&(K.globalVars=new W(Y,K.globalVars))}}function Z(Y,K){if(K)if(K.block){var ne=Z(Y,K.prev);return ne?ne==K.prev?K:new Q(ne,K.vars,!0):null}else return X(Y,K.vars)?K:new Q(K.prev,new W(Y,K.vars),!1);else return null}function L(Y){return Y=="public"||Y=="private"||Y=="protected"||Y=="abstract"||Y=="readonly"}function Q(Y,K,ne){this.prev=Y,this.vars=K,this.block=ne}function W(Y,K){this.name=Y,this.next=K}var G=new W("this",new W("arguments",null));function te(){j.state.context=new Q(j.state.context,j.state.localVars,!1),j.state.localVars=G}function le(){j.state.context=new Q(j.state.context,j.state.localVars,!0),j.state.localVars=null}te.lex=le.lex=!0;function ye(){j.state.localVars=j.state.context.vars,j.state.context=j.state.context.prev}ye.lex=!0;function fe(Y,K){var ne=function(){var pe=j.state,Qe=pe.indented;if(pe.lexical.type=="stat")Qe=pe.lexical.indented;else for(var it=pe.lexical;it&&it.type==")"&&it.align;it=it.prev)Qe=it.indented;pe.lexical=new w(Qe,j.stream.column(),Y,null,pe.lexical,K)};return ne.lex=!0,ne}function oe(){var Y=j.state;Y.lexical.prev&&(Y.lexical.type==")"&&(Y.indented=Y.lexical.indented),Y.lexical=Y.lexical.prev)}oe.lex=!0;function ce(Y){function K(ne){return ne==Y?O():Y==";"||ne=="}"||ne==")"||ne=="]"?R():O(K)}return K}function se(Y,K){return Y=="var"?O(fe("vardef",K),tr,ce(";"),oe):Y=="keyword a"?O(fe("form"),$e,se,oe):Y=="keyword b"?O(fe("form"),se,oe):Y=="keyword d"?j.stream.match(/^\s*$/,!1)?O():O(fe("stat"),rt,ce(";"),oe):Y=="debugger"?O(ce(";")):Y=="{"?O(fe("}"),le,Re,oe,ye):Y==";"?O():Y=="if"?(j.state.lexical.info=="else"&&j.state.cc[j.state.cc.length-1]==oe&&j.state.cc.pop()(),O(fe("form"),$e,se,oe,ni)):Y=="function"?O(Wn):Y=="for"?O(fe("form"),le,Po,se,ye,oe):Y=="class"||v&&K=="interface"?(j.marked="keyword",O(fe("form",Y=="class"?Y:K),jo,oe)):Y=="variable"?v&&K=="declare"?(j.marked="keyword",O(se)):v&&(K=="module"||K=="enum"||K=="type")&&j.stream.match(/^\s*\w/,!1)?(j.marked="keyword",K=="enum"?O(ii):K=="type"?O(Vo,ce("operator"),he,ce(";")):O(fe("form"),on,ce("{"),fe("}"),Re,oe,oe)):v&&K=="namespace"?(j.marked="keyword",O(fe("form"),we,se,oe)):v&&K=="abstract"?(j.marked="keyword",O(se)):O(fe("stat"),yn):Y=="switch"?O(fe("form"),$e,ce("{"),fe("}","switch"),le,Re,oe,oe,ye):Y=="case"?O(we,ce(":")):Y=="default"?O(ce(":")):Y=="catch"?O(fe("form"),te,be,se,oe,ye):Y=="export"?O(fe("stat"),yr,oe):Y=="import"?O(fe("stat"),nr,oe):Y=="async"?O(se):K=="@"?O(we,se):R(fe("stat"),we,ce(";"),oe)}function be(Y){if(Y=="(")return O(Mn,ce(")"))}function we(Y,K){return ot(Y,K,!1)}function Te(Y,K){return ot(Y,K,!0)}function $e(Y){return Y!="("?R():O(fe(")"),rt,ce(")"),oe)}function ot(Y,K,ne){if(j.state.fatArrowAt==j.stream.start){var pe=ne?zt:fn;if(Y=="(")return O(te,fe(")"),ft(Mn,")"),oe,ce("=>"),pe,ye);if(Y=="variable")return R(te,on,ce("=>"),pe,ye)}var Qe=ne?xt:At;return V.hasOwnProperty(Y)?O(Qe):Y=="function"?O(Wn,Qe):Y=="class"||v&&K=="interface"?(j.marked="keyword",O(fe("form"),vr,oe)):Y=="keyword c"||Y=="async"?O(ne?Te:we):Y=="("?O(fe(")"),rt,ce(")"),oe,Qe):Y=="operator"||Y=="spread"?O(ne?Te:we):Y=="["?O(fe("]"),rr,oe,Qe):Y=="{"?pn(bn,"}",null,Qe):Y=="quasi"?R(Le,Qe):Y=="new"?O(mr(ne)):O()}function rt(Y){return Y.match(/[;\}\)\],]/)?R():R(we)}function At(Y,K){return Y==","?O(rt):xt(Y,K,!1)}function xt(Y,K,ne){var pe=ne==!1?At:xt,Qe=ne==!1?we:Te;if(Y=="=>")return O(te,ne?zt:fn,ye);if(Y=="operator")return/\+\+|--/.test(K)||v&&K=="!"?O(pe):v&&K=="<"&&j.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?O(fe(">"),ft(he,">"),oe,pe):K=="?"?O(we,ce(":"),Qe):O(Qe);if(Y=="quasi")return R(Le,pe);if(Y!=";"){if(Y=="(")return pn(Te,")","call",pe);if(Y==".")return O(Un,pe);if(Y=="[")return O(fe("]"),rt,ce("]"),oe,pe);if(v&&K=="as")return j.marked="keyword",O(he,pe);if(Y=="regexp")return j.state.lastType=j.marked="operator",j.stream.backUp(j.stream.pos-j.stream.start-1),O(Qe)}}function Le(Y,K){return Y!="quasi"?R():K.slice(K.length-2)!="${"?O(Le):O(rt,_t)}function _t(Y){if(Y=="}")return j.marked="string-2",j.state.tokenize=B,O(Le)}function fn(Y){return N(j.stream,j.state),R(Y=="{"?se:we)}function zt(Y){return N(j.stream,j.state),R(Y=="{"?se:Te)}function mr(Y){return function(K){return K=="."?O(Y?_n:zn):K=="variable"&&v?O(St,Y?xt:At):R(Y?Te:we)}}function zn(Y,K){if(K=="target")return j.marked="keyword",O(At)}function _n(Y,K){if(K=="target")return j.marked="keyword",O(xt)}function yn(Y){return Y==":"?O(oe,se):R(At,ce(";"),oe)}function Un(Y){if(Y=="variable")return j.marked="property",O()}function bn(Y,K){if(Y=="async")return j.marked="property",O(bn);if(Y=="variable"||j.style=="keyword"){if(j.marked="property",K=="get"||K=="set")return O(kn);var ne;return v&&j.state.fatArrowAt==j.stream.start&&(ne=j.stream.match(/^\s*:\s*/,!1))&&(j.state.fatArrowAt=j.stream.pos+ne[0].length),O(Ot)}else{if(Y=="number"||Y=="string")return j.marked=c?"property":j.style+" property",O(Ot);if(Y=="jsonld-keyword")return O(Ot);if(v&&L(K))return j.marked="keyword",O(bn);if(Y=="[")return O(we,Se,ce("]"),Ot);if(Y=="spread")return O(Te,Ot);if(K=="*")return j.marked="keyword",O(bn);if(Y==":")return R(Ot)}}function kn(Y){return Y!="variable"?R(Ot):(j.marked="property",O(Wn))}function Ot(Y){if(Y==":")return O(Te);if(Y=="(")return R(Wn)}function ft(Y,K,ne){function pe(Qe,it){if(ne?ne.indexOf(Qe)>-1:Qe==","){var st=j.state.lexical;return st.info=="call"&&(st.pos=(st.pos||0)+1),O(function(It,xn){return It==K||xn==K?R():R(Y)},pe)}return Qe==K||it==K?O():ne&&ne.indexOf(";")>-1?R(Y):O(ce(K))}return function(Qe,it){return Qe==K||it==K?O():R(Y,pe)}}function pn(Y,K,ne){for(var pe=3;pe<arguments.length;pe++)j.cc.push(arguments[pe]);return O(fe(K,ne),ft(Y,K),oe)}function Re(Y){return Y=="}"?O():R(se,Re)}function Se(Y,K){if(v){if(Y==":")return O(he);if(K=="?")return O(Se)}}function He(Y,K){if(v&&(Y==":"||K=="in"))return O(he)}function Ue(Y){if(v&&Y==":")return j.stream.match(/^\s*\w+\s+is\b/,!1)?O(we,xe,he):O(he)}function xe(Y,K){if(K=="is")return j.marked="keyword",O()}function he(Y,K){if(K=="keyof"||K=="typeof"||K=="infer"||K=="readonly")return j.marked="keyword",O(K=="typeof"?Te:he);if(Y=="variable"||K=="void")return j.marked="type",O(bt);if(K=="|"||K=="&")return O(he);if(Y=="string"||Y=="number"||Y=="atom")return O(bt);if(Y=="[")return O(fe("]"),ft(he,"]",","),oe,bt);if(Y=="{")return O(fe("}"),Ie,oe,bt);if(Y=="(")return O(ft(gt,")"),Ve,bt);if(Y=="<")return O(ft(he,">"),he);if(Y=="quasi")return R(ut,bt)}function Ve(Y){if(Y=="=>")return O(he)}function Ie(Y){return Y.match(/[\}\)\]]/)?O():Y==","||Y==";"?O(Ie):R(We,Ie)}function We(Y,K){if(Y=="variable"||j.style=="keyword")return j.marked="property",O(We);if(K=="?"||Y=="number"||Y=="string")return O(We);if(Y==":")return O(he);if(Y=="[")return O(ce("variable"),He,ce("]"),We);if(Y=="(")return R(Qn,We);if(!Y.match(/[;\}\)\],]/))return O()}function ut(Y,K){return Y!="quasi"?R():K.slice(K.length-2)!="${"?O(ut):O(he,An)}function An(Y){if(Y=="}")return j.marked="string-2",j.state.tokenize=B,O(ut)}function gt(Y,K){return Y=="variable"&&j.stream.match(/^\s*[?:]/,!1)||K=="?"?O(gt):Y==":"?O(he):Y=="spread"?O(gt):R(he)}function bt(Y,K){if(K=="<")return O(fe(">"),ft(he,">"),oe,bt);if(K=="|"||Y=="."||K=="&")return O(he);if(Y=="[")return O(he,ce("]"),bt);if(K=="extends"||K=="implements")return j.marked="keyword",O(he);if(K=="?")return O(he,ce(":"),he)}function St(Y,K){if(K=="<")return O(fe(">"),ft(he,">"),oe,bt)}function Hn(){return R(he,Lr)}function Lr(Y,K){if(K=="=")return O(he)}function tr(Y,K){return K=="enum"?(j.marked="keyword",O(ii)):R(on,Se,Sn,Za)}function on(Y,K){if(v&&L(K))return j.marked="keyword",O(on);if(Y=="variable")return U(K),O();if(Y=="spread")return O(on);if(Y=="[")return pn(Ka,"]");if(Y=="{")return pn(Pi,"}")}function Pi(Y,K){return Y=="variable"&&!j.stream.match(/^\s*:/,!1)?(U(K),O(Sn)):(Y=="variable"&&(j.marked="property"),Y=="spread"?O(on):Y=="}"?R():Y=="["?O(we,ce("]"),ce(":"),Pi):O(ce(":"),on,Sn))}function Ka(){return R(on,Sn)}function Sn(Y,K){if(K=="=")return O(Te)}function Za(Y){if(Y==",")return O(tr)}function ni(Y,K){if(Y=="keyword b"&&K=="else")return O(fe("form","else"),se,oe)}function Po(Y,K){if(K=="await")return O(Po);if(Y=="(")return O(fe(")"),Vi,oe)}function Vi(Y){return Y=="var"?O(tr,gr):Y=="variable"?O(gr):R(gr)}function gr(Y,K){return Y==")"?O():Y==";"?O(gr):K=="in"||K=="of"?(j.marked="keyword",O(we,gr)):R(we,gr)}function Wn(Y,K){if(K=="*")return j.marked="keyword",O(Wn);if(Y=="variable")return U(K),O(Wn);if(Y=="(")return O(te,fe(")"),ft(Mn,")"),oe,Ue,se,ye);if(v&&K=="<")return O(fe(">"),ft(Hn,">"),oe,Wn)}function Qn(Y,K){if(K=="*")return j.marked="keyword",O(Qn);if(Y=="variable")return U(K),O(Qn);if(Y=="(")return O(te,fe(")"),ft(Mn,")"),oe,Ue,ye);if(v&&K=="<")return O(fe(">"),ft(Hn,">"),oe,Qn)}function Vo(Y,K){if(Y=="keyword"||Y=="variable")return j.marked="type",O(Vo);if(K=="<")return O(fe(">"),ft(Hn,">"),oe)}function Mn(Y,K){return K=="@"&&O(we,Mn),Y=="spread"?O(Mn):v&&L(K)?(j.marked="keyword",O(Mn)):v&&Y=="this"?O(Se,Sn):R(on,Se,Sn)}function vr(Y,K){return Y=="variable"?jo(Y,K):ri(Y,K)}function jo(Y,K){if(Y=="variable")return U(K),O(ri)}function ri(Y,K){if(K=="<")return O(fe(">"),ft(Hn,">"),oe,ri);if(K=="extends"||K=="implements"||v&&Y==",")return K=="implements"&&(j.marked="keyword"),O(v?he:we,ri);if(Y=="{")return O(fe("}"),hn,oe)}function hn(Y,K){if(Y=="async"||Y=="variable"&&(K=="static"||K=="get"||K=="set"||v&&L(K))&&j.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return j.marked="keyword",O(hn);if(Y=="variable"||j.style=="keyword")return j.marked="property",O(_r,hn);if(Y=="number"||Y=="string")return O(_r,hn);if(Y=="[")return O(we,Se,ce("]"),_r,hn);if(K=="*")return j.marked="keyword",O(hn);if(v&&Y=="(")return R(Qn,hn);if(Y==";"||Y==",")return O(hn);if(Y=="}")return O();if(K=="@")return O(we,hn)}function _r(Y,K){if(K=="!"||K=="?")return O(_r);if(Y==":")return O(he,Sn);if(K=="=")return O(Te);var ne=j.state.lexical.prev,pe=ne&&ne.info=="interface";return R(pe?Qn:Wn)}function yr(Y,K){return K=="*"?(j.marked="keyword",O(Oe,ce(";"))):K=="default"?(j.marked="keyword",O(we,ce(";"))):Y=="{"?O(ft(zo,"}"),Oe,ce(";")):R(se)}function zo(Y,K){if(K=="as")return j.marked="keyword",O(ce("variable"));if(Y=="variable")return R(Te,zo)}function nr(Y){return Y=="string"?O():Y=="("?R(we):Y=="."?R(At):R(br,ji,Oe)}function br(Y,K){return Y=="{"?pn(br,"}"):(Y=="variable"&&U(K),K=="*"&&(j.marked="keyword"),O(Ft))}function ji(Y){if(Y==",")return O(br,ji)}function Ft(Y,K){if(K=="as")return j.marked="keyword",O(br)}function Oe(Y,K){if(K=="from")return j.marked="keyword",O(we)}function rr(Y){return Y=="]"?O():R(ft(Te,"]"))}function ii(){return R(fe("form"),on,ce("{"),fe("}"),ft(Dn,"}"),oe,oe)}function Dn(){return R(on,Sn)}function pt(Y,K){return Y.lastType=="operator"||Y.lastType==","||k.test(K.charAt(0))||/[,.]/.test(K.charAt(0))}function Xn(Y,K,ne){return K.tokenize==A&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(K.lastType)||K.lastType=="quasi"&&/\{\s*$/.test(Y.string.slice(0,Y.pos-(ne||0)))}return{startState:function(Y){var K={tokenize:A,lastType:"sof",cc:[],lexical:new w((Y||0)-l,0,"block",!1),localVars:n.localVars,context:n.localVars&&new Q(null,null,!1),indented:Y||0};return n.globalVars&&typeof n.globalVars=="object"&&(K.globalVars=n.globalVars),K},token:function(Y,K){if(Y.sol()&&(K.lexical.hasOwnProperty("align")||(K.lexical.align=!1),K.indented=Y.indentation(),N(Y,K)),K.tokenize!=S&&Y.eatSpace())return null;var ne=K.tokenize(Y,K);return y=="comment"?ne:(K.lastType=y=="operator"&&(h=="++"||h=="--")?"incdec":y,I(K,ne,y,h,Y))},indent:function(Y,K){if(Y.tokenize==S||Y.tokenize==B)return o.Pass;if(Y.tokenize!=A)return 0;var ne=K&&K.charAt(0),pe=Y.lexical,Qe;if(!/^\s*else\b/.test(K))for(var it=Y.cc.length-1;it>=0;--it){var st=Y.cc[it];if(st==oe)pe=pe.prev;else if(st!=ni&&st!=ye)break}for(;(pe.type=="stat"||pe.type=="form")&&(ne=="}"||(Qe=Y.cc[Y.cc.length-1])&&(Qe==At||Qe==xt)&&!/^[,\.=+\-*:?[\(]/.test(K));)pe=pe.prev;f&&pe.type==")"&&pe.prev.type=="stat"&&(pe=pe.prev);var It=pe.type,xn=ne==It;return It=="vardef"?pe.indented+(Y.lastType=="operator"||Y.lastType==","?pe.info.length+1:0):It=="form"&&ne=="{"?pe.indented:It=="form"?pe.indented+l:It=="stat"?pe.indented+(pt(Y,K)?f||l:0):pe.info=="switch"&&!xn&&n.doubleIndentSwitch!=!1?pe.indented+(/^(?:case|default)\b/.test(K)?l:2*l):pe.align?pe.column+(xn?0:1):pe.indented+(xn?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:p?null:"/*",blockCommentEnd:p?null:"*/",blockCommentContinue:p?null:" * ",lineComment:p?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:p?"json":"javascript",jsonldMode:c,jsonMode:p,expressionAllowed:Xn,skipExpression:function(Y){I(Y,"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(t,a){(function(o){o(Ga())})(function(o){var i="CodeMirror-hint",n="CodeMirror-hint-active";o.showHint=function(h,g,A){if(!g)return h.showHint(A);A&&A.async&&(g.async=!0);var C={hint:g};if(A)for(var S in A)C[S]=A[S];return h.showHint(C)},o.defineExtension("showHint",function(h){h=p(this,this.getCursor("start"),h);var g=this.listSelections();if(!(g.length>1)){if(this.somethingSelected()){if(!h.hint.supportsSelection)return;for(var A=0;A<g.length;A++)if(g[A].head.line!=g[A].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var C=this.state.completionActive=new l(this,h);!C.options.hint||(o.signal(this,"startCompletion",this),C.update(!0))}}),o.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function l(h,g){if(this.cm=h,this.options=g,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 A=this;h.on("cursorActivity",this.activityFunc=function(){A.cursorActivity()})}}var f=window.requestAnimationFrame||function(h){return setTimeout(h,1e3/60)},c=window.cancelAnimationFrame||clearTimeout;l.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(h,g){var A=h.list[g],C=this;this.cm.operation(function(){A.hint?A.hint(C.cm,h,A):C.cm.replaceRange(m(A),A.from||h.from,A.to||h.to,"complete"),o.signal(h,"pick",A),C.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(c(this.debounce),this.debounce=0);var h=this.startPos;this.data&&(h=this.data.from);var g=this.cm.getCursor(),A=this.cm.getLine(g.line);if(g.line!=this.startPos.line||A.length-g.ch!=this.startLen-this.startPos.ch||g.ch<h.ch||this.cm.somethingSelected()||!g.ch||this.options.closeCharacters.test(A.charAt(g.ch-1)))this.close();else{var C=this;this.debounce=f(function(){C.update()}),this.widget&&this.widget.disable()}},update:function(h){if(this.tick!=null){var g=this,A=++this.tick;b(this.options.hint,this.cm,this.options,function(C){g.tick==A&&g.finishUpdate(C,h)})}},finishUpdate:function(h,g){this.data&&o.signal(this.data,"update");var A=this.widget&&this.widget.picked||g&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=h,h&&h.list.length&&(A&&h.list.length==1?this.pick(h,0):(this.widget=new x(this,h),o.signal(h,"shown")))}};function p(h,g,A){var C=h.options.hintOptions,S={};for(var B in y)S[B]=y[B];if(C)for(var B in C)C[B]!==void 0&&(S[B]=C[B]);if(A)for(var B in A)A[B]!==void 0&&(S[B]=A[B]);return S.hint.resolve&&(S.hint=S.hint.resolve(h,g)),S}function m(h){return typeof h=="string"?h:h.text}function v(h,g){var A={Up:function(){g.moveFocus(-1)},Down:function(){g.moveFocus(1)},PageUp:function(){g.moveFocus(-g.menuSize()+1,!0)},PageDown:function(){g.moveFocus(g.menuSize()-1,!0)},Home:function(){g.setFocus(0)},End:function(){g.setFocus(g.length-1)},Enter:g.pick,Tab:g.pick,Esc:g.close},C=/Mac/.test(navigator.platform);C&&(A["Ctrl-P"]=function(){g.moveFocus(-1)},A["Ctrl-N"]=function(){g.moveFocus(1)});var S=h.options.customKeys,B=S?{}:A;function M(w,D){var I;typeof D!="string"?I=function(j){return D(j,g)}:A.hasOwnProperty(D)?I=A[D]:I=D,B[w]=I}if(S)for(var N in S)S.hasOwnProperty(N)&&M(N,S[N]);var V=h.options.extraKeys;if(V)for(var N in V)V.hasOwnProperty(N)&&M(N,V[N]);return B}function _(h,g){for(;g&&g!=h;){if(g.nodeName.toUpperCase()==="LI"&&g.parentNode==h)return g;g=g.parentNode}}function x(h,g){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=h,this.data=g,this.picked=!1;var A=this,C=h.cm,S=C.getInputField().ownerDocument,B=S.defaultView||S.parentWindow,M=this.hints=S.createElement("ul");M.setAttribute("role","listbox"),M.setAttribute("aria-expanded","true"),M.id=this.id;var N=h.cm.options.theme;M.className="CodeMirror-hints "+N,this.selectedHint=g.selectedHint||0;for(var V=g.list,w=0;w<V.length;++w){var D=M.appendChild(S.createElement("li")),I=V[w],j=i+(w!=this.selectedHint?"":" "+n);I.className!=null&&(j=I.className+" "+j),D.className=j,w==this.selectedHint&&D.setAttribute("aria-selected","true"),D.id=this.id+"-"+w,D.setAttribute("role","option"),I.render?I.render(D,g,I):D.appendChild(S.createTextNode(I.displayText||m(I))),D.hintId=w}var R=h.options.container||S.body,O=C.cursorCoords(h.options.alignWithWord?g.from:null),X=O.left,U=O.bottom,Z=!0,L=0,Q=0;if(R!==S.body){var W=["absolute","relative","fixed"].indexOf(B.getComputedStyle(R).position)!==-1,G=W?R:R.offsetParent,te=G.getBoundingClientRect(),le=S.body.getBoundingClientRect();L=te.left-le.left-G.scrollLeft,Q=te.top-le.top-G.scrollTop}M.style.left=X-L+"px",M.style.top=U-Q+"px";var ye=B.innerWidth||Math.max(S.body.offsetWidth,S.documentElement.offsetWidth),fe=B.innerHeight||Math.max(S.body.offsetHeight,S.documentElement.offsetHeight);R.appendChild(M),C.getInputField().setAttribute("aria-autocomplete","list"),C.getInputField().setAttribute("aria-owns",this.id),C.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var oe=h.options.moveOnOverlap?M.getBoundingClientRect():new DOMRect,ce=h.options.paddingForScrollbar?M.scrollHeight>M.clientHeight+1:!1,se;setTimeout(function(){se=C.getScrollInfo()});var be=oe.bottom-fe;if(be>0){var we=oe.bottom-oe.top,Te=O.top-(O.bottom-oe.top);if(Te-we>0)M.style.top=(U=O.top-we-Q)+"px",Z=!1;else if(we>fe){M.style.height=fe-5+"px",M.style.top=(U=O.bottom-oe.top-Q)+"px";var $e=C.getCursor();g.from.ch!=$e.ch&&(O=C.cursorCoords($e),M.style.left=(X=O.left-L)+"px",oe=M.getBoundingClientRect())}}var ot=oe.right-ye;if(ce&&(ot+=C.display.nativeBarWidth),ot>0&&(oe.right-oe.left>ye&&(M.style.width=ye-5+"px",ot-=oe.right-oe.left-ye),M.style.left=(X=Math.max(O.left-ot-L,0))+"px"),ce)for(var rt=M.firstChild;rt;rt=rt.nextSibling)rt.style.paddingRight=C.display.nativeBarWidth+"px";if(C.addKeyMap(this.keyMap=v(h,{moveFocus:function(Le,_t){A.changeActive(A.selectedHint+Le,_t)},setFocus:function(Le){A.changeActive(Le)},menuSize:function(){return A.screenAmount()},length:V.length,close:function(){h.close()},pick:function(){A.pick()},data:g})),h.options.closeOnUnfocus){var At;C.on("blur",this.onBlur=function(){At=setTimeout(function(){h.close()},100)}),C.on("focus",this.onFocus=function(){clearTimeout(At)})}C.on("scroll",this.onScroll=function(){var Le=C.getScrollInfo(),_t=C.getWrapperElement().getBoundingClientRect();se||(se=C.getScrollInfo());var fn=U+se.top-Le.top,zt=fn-(B.pageYOffset||(S.documentElement||S.body).scrollTop);if(Z||(zt+=M.offsetHeight),zt<=_t.top||zt>=_t.bottom)return h.close();M.style.top=fn+"px",M.style.left=X+se.left-Le.left+"px"}),o.on(M,"dblclick",function(Le){var _t=_(M,Le.target||Le.srcElement);_t&&_t.hintId!=null&&(A.changeActive(_t.hintId),A.pick())}),o.on(M,"click",function(Le){var _t=_(M,Le.target||Le.srcElement);_t&&_t.hintId!=null&&(A.changeActive(_t.hintId),h.options.completeOnSingleClick&&A.pick())}),o.on(M,"mousedown",function(){setTimeout(function(){C.focus()},20)});var xt=this.getSelectedHintRange();return(xt.from!==0||xt.to!==0)&&this.scrollToActive(),o.signal(g,"select",V[this.selectedHint],M.childNodes[this.selectedHint]),!0}x.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 h=this.completion.cm.getInputField();h.removeAttribute("aria-activedescendant"),h.removeAttribute("aria-owns");var g=this.completion.cm;this.completion.options.closeOnUnfocus&&(g.off("blur",this.onBlur),g.off("focus",this.onFocus)),g.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var h=this;this.keyMap={Enter:function(){h.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(h,g){if(h>=this.data.list.length?h=g?this.data.list.length-1:0:h<0&&(h=g?0:this.data.list.length-1),this.selectedHint!=h){var A=this.hints.childNodes[this.selectedHint];A&&(A.className=A.className.replace(" "+n,""),A.removeAttribute("aria-selected")),A=this.hints.childNodes[this.selectedHint=h],A.className+=" "+n,A.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",A.id),this.scrollToActive(),o.signal(this.data,"select",this.data.list[this.selectedHint],A)}},scrollToActive:function(){var h=this.getSelectedHintRange(),g=this.hints.childNodes[h.from],A=this.hints.childNodes[h.to],C=this.hints.firstChild;g.offsetTop<this.hints.scrollTop?this.hints.scrollTop=g.offsetTop-C.offsetTop:A.offsetTop+A.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=A.offsetTop+A.offsetHeight-this.hints.clientHeight+C.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var h=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-h),to:Math.min(this.data.list.length-1,this.selectedHint+h)}}};function k(h,g){if(!h.somethingSelected())return g;for(var A=[],C=0;C<g.length;C++)g[C].supportsSelection&&A.push(g[C]);return A}function b(h,g,A,C){if(h.async)h(g,C,A);else{var S=h(g,A);S&&S.then?S.then(C):C(S)}}function F(h,g){var A=h.getHelpers(g,"hint"),C;if(A.length){var S=function(B,M,N){var V=k(B,A);function w(D){if(D==V.length)return M(null);b(V[D],B,N,function(I){I&&I.list.length>0?M(I):w(D+1)})}w(0)};return S.async=!0,S.supportsSelection=!0,S}else return(C=h.getHelper(h.getCursor(),"hintWords"))?function(B){return o.hint.fromList(B,{words:C})}:o.hint.anyword?function(B,M){return o.hint.anyword(B,M)}:function(){}}o.registerHelper("hint","auto",{resolve:F}),o.registerHelper("hint","fromList",function(h,g){var A=h.getCursor(),C=h.getTokenAt(A),S,B=o.Pos(A.line,C.start),M=A;C.start<A.ch&&/\w/.test(C.string.charAt(A.ch-C.start-1))?S=C.string.substr(0,A.ch-C.start):(S="",B=A);for(var N=[],V=0;V<g.words.length;V++){var w=g.words[V];w.slice(0,S.length)==S&&N.push(w)}if(N.length)return{list:N,from:B,to:M}}),o.commands.autocomplete=o.showHint;var y={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(t,a){(function(o){o(Ga())})(function(o){var i=o.Pos;function n(h,g){for(var A=0,C=h.length;A<C;++A)g(h[A])}function l(h,g){if(!Array.prototype.indexOf){for(var A=h.length;A--;)if(h[A]===g)return!0;return!1}return h.indexOf(g)!=-1}function f(h,g,A,C){var S=h.getCursor(),B=A(h,S);if(!/\b(?:string|comment)\b/.test(B.type)){var M=o.innerMode(h.getMode(),B.state);if(M.mode.helperType!=="json"){B.state=M.state,/^[\w$_]*$/.test(B.string)?B.end>S.ch&&(B.end=S.ch,B.string=B.string.slice(0,S.ch-B.start)):B={start:S.ch,end:S.ch,string:"",state:B.state,type:B.string=="."?"property":null};for(var N=B;N.type=="property";){if(N=A(h,i(S.line,N.start)),N.string!=".")return;if(N=A(h,i(S.line,N.start)),!V)var V=[];V.push(N)}return{list:y(B,V,g,C),from:i(S.line,B.start),to:i(S.line,B.end)}}}}function c(h,g){return f(h,k,function(A,C){return A.getTokenAt(C)},g)}o.registerHelper("hint","javascript",c);function p(h,g){var A=h.getTokenAt(g);return g.ch==A.start+1&&A.string.charAt(0)=="."?(A.end=A.start,A.string=".",A.type="property"):/^\.[\w$_]*$/.test(A.string)&&(A.type="property",A.start++,A.string=A.string.replace(/\./,"")),A}function m(h,g){return f(h,b,p,g)}o.registerHelper("hint","coffeescript",m);var v="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),_="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),x="prototype apply call bind".split(" "),k="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(" "),b="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 F(h,g){if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)for(var A in h)g(A);else for(var C=h;C;C=Object.getPrototypeOf(C))Object.getOwnPropertyNames(C).forEach(g)}function y(h,g,A,C){var S=[],B=h.string,M=C&&C.globalScope||window;function N(O){O.lastIndexOf(B,0)==0&&!l(S,O)&&S.push(O)}function V(O){typeof O=="string"?n(v,N):O instanceof Array?n(_,N):O instanceof Function&&n(x,N),F(O,N)}if(g&&g.length){var w=g.pop(),D;for(w.type&&w.type.indexOf("variable")===0?(C&&C.additionalContext&&(D=C.additionalContext[w.string]),(!C||C.useGlobalScope!==!1)&&(D=D||M[w.string])):w.type=="string"?D="":w.type=="atom"?D=1:w.type=="function"&&(M.jQuery!=null&&(w.string=="$"||w.string=="jQuery")&&typeof M.jQuery=="function"?D=M.jQuery():M._!=null&&w.string=="_"&&typeof M._=="function"&&(D=M._()));D!=null&&g.length;)D=D[g.pop().string];D!=null&&V(D)}else{for(var I=h.state.localVars;I;I=I.next)N(I.name);for(var j=h.state.context;j;j=j.prev)for(var I=j.vars;I;I=I.next)N(I.name);for(var I=h.state.globalVars;I;I=I.next)N(I.name);if(C&&C.additionalContext!=null)for(var R in C.additionalContext)N(R);(!C||C.useGlobalScope!==!1)&&V(M),n(A,N)}return S}})})();const nt=(t,a)=>{const o=t.__vccOpts||t;for(const[i,n]of a)o[i]=n;return o},I0="[[FORM-CREATE-PREFIX-",L0="-FORM-CREATE-SUFFIX]]",P0=tt({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(t){t!=this.value&&(!t||!t.__json||t.__json&&t.__json!=this.value)&&this.editor&&this.editor.setValue(this.tidyValue())}},computed:{t(){return this.designer.setupState.t},argStr(){return(this.args||[]).map(t=>typeof t=="string"?t:t.name).join(", ")},argList(){return this.args.map(t=>typeof t=="string"?{name:t,type:"string"}:t)}},mounted(){this.$nextTick(()=>{this.load()})},methods:{save(){const t=this.editor.getValue()||"";if(t.trim()==="")this.fn="";else{let a;try{a=new Function("return function "+this.name+"("+this.argStr+"){"+t+"}")()}catch(o){return console.error(o),jn(this.t("struct.errorMsg")),!1}this.body?this.fn=(this.fnx?"$FNX:":"")+t:this.fn=I0+a+L0}return this.submit(),!0},submit(){this.$emit("update:modelValue",this.fn),this.$emit("change",this.fn),this.value=this.fn,this.visible=!1},trimString(t){const a=t.indexOf("{"),o=t.lastIndexOf("}");return a===-1||o===-1||a>=o?t:t.slice(a+1,o).replace(/^\n+|\n+$/g,"")},tidyValue(){let t=this.modelValue||"";return t.__json&&(t=t.__json),this.fnx&&typeof t=="string"&&t.indexOf("$FNX:")===0&&(t=t.slice(5)),typeof t=="function"?t=this.trimString(dr(t)).trim():this.body||(t=this.trimString(t).trim()),this.value=t,t},load(){this.$nextTick(()=>{let t=this.tidyValue();this.editor=Zr(Ni(this.$refs.editor,{lineNumbers:!0,mode:{name:"javascript",globalVars:!0},extraKeys:{"Ctrl-Space":"autocomplete"},line:!0,tabSize:2,lineWrapping:!0,value:t})),this.editor.on("inputRead",(a,o)=>{o.keyCode===32&&o.ctrlKey&&Ni.showHint(a,Ni.hint.javascript)}),this.editor.on("change",()=>{this.visible=!0}),this.editor})}}}),V0={class:"_fd-fn"},j0={class:"_fd-fn-tip"},z0={class:"cm-keyword"},U0={key:0},H0={class:"_fd-fn-arg"},W0={ref:"editor",class:"_fd-fn-editor"};function Q0(t,a,o,i,n,l){const f=de("el-table-column"),c=de("el-table"),p=de("el-popover"),m=de("el-button");return ie(),ge("div",V0,[re("div",j0,[a[2]||(a[2]=re("div",{class:"_fd-fn-ind"},null,-1)),re("div",z0,[re("span",null,[ke("function "+ve(t.name)+"(",1),(ie(!0),ge(ze,null,lt(t.argList,(v,_)=>(ie(),ge(ze,null,[ke(ve(_>0?", ":""),1),v.type==="string"?(ie(),ge("span",U0,ve(v.name),1)):(ie(),Fe(p,{key:1,placement:"top-start",width:400,"hide-after":0,trigger:"click",title:v.name,content:v.info||""},{reference:q(()=>[re("span",H0,[ke(ve(v.name),1),a[0]||(a[0]=re("i",{class:"fc-icon icon-question"},null,-1))])]),default:q(()=>[v.columns?(ie(),Fe(c,{key:0,data:v.columns,border:""},{default:q(()=>[ee(f,{width:"120",property:"label",label:t.t("event.label")},null,8,["label"]),ee(f,{property:"info",label:t.t("event.info")},null,8,["label"]),ee(f,{width:"80",property:"type",label:t.t("event.type")},null,8,["label"])]),_:2},1032,["data"])):Ne("",!0)]),_:2},1032,["title","content"]))],64))),256)),a[1]||(a[1]=ke(") {"))])])]),re("div",W0,null,512),a[3]||(a[3]=re("div",{class:"_fd-fn-tip"},[re("div",{class:"_fd-fn-ind"}),re("div",{class:"cm-keyword"},"}")],-1)),t.visible&&t.button?(ie(),Fe(m,{key:0,type:"primary",size:"small",onClick:t.save},{default:q(()=>[ke(ve(t.t("props.save")),1)]),_:1},8,["onClick"])):Ne("",!0)])}const Io=nt(P0,[["render",Q0]]),Ti="$FNX:",wa=t=>dt.String(t)&&t.indexOf(Ti)===0,X0=tt({name:"EventConfig",emits:["update:modelValue"],props:{modelValue:[Object,void 0,null],componentName:"",eventName:{type:Array,default:()=>[]}},inject:["designer"],components:{FnEditor:Io},data(){return{visible:!1,activeData:null,val:null,defActive:"no",hookList:["hook_load","hook_mounted","hook_deleted","hook_watch","hook_value","hook_hidden"],event:{},cus:!1,cusValue:"",eventStr:""}},computed:{t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},eventInfo(){const t={};return this.eventName.forEach(a=>{t[a]=this.t("com."+this.componentName+".event."+a)||this.t("eventInfo."+a)||""}),this.hookList.forEach(a=>{t[a]=this.t("eventInfo."+a)||""}),t},eventNum(){let t=0;Object.keys(this.modelValue||{}).forEach(o=>{t+=Array.isArray(this.modelValue[o])?this.modelValue[o].length:1});const a=this.activeRule?{...this.activeRule.hook||{}}:{};return Object.keys(a).forEach(o=>{t+=Array.isArray(this.activeRule.hook[o])?this.activeRule.hook[o].length:1}),t},fnArgs(){return[Mo(this.t)]}},watch:{visible(t){this.event=t?this.loadFN():{},t||(this.destroy(),this.closeCus())}},methods:{addCus(){const t=this.cusValue&&this.cusValue.trim();t&&(this.closeCus(),this.add(t))},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(){this.cus=!0},loadFN(){const t=Qa({},this.modelValue||{}),a=this.activeRule?{...this.activeRule.hook||{}}:{};Object.keys(a).forEach(i=>{t["hook_"+i]=a[i]});const o={};return Object.keys(t).forEach(i=>{if(Array.isArray(t[i])){const n=[];t[i].forEach(l=>{wa(l)?n.push(l.replace(Ti,"")):dt.Function(l)&&wa(l.__json)?n.push(l.__json.replace(Ti,"")):l&&l.indexOf("$GLOBAL:")===0&&n.push(l)}),o[i]=n}else wa(t[i])?o[i]=[t[i].replace(Ti,"")]:dt.Function(t[i])&&wa(t[i].__json)?o[i]=[t[i].__json.replace(Ti,"")]:t[i]&&t[i].indexOf("$GLOBAL:")===0&&(o[i]=[t[i]])}),o},parseFN(t){const a={},o={};return Object.keys(t).forEach(i=>{const n=[];t[i].forEach((l,f)=>{n[f]=l.indexOf("$GLOBAL:")!==0?Ti+l:l}),n.length>0&&(i.indexOf("hook_")>-1?o[i.replace("hook_","")]=n.length===1?n[0]:n:a[i]=n.length===1?n[0]:n)}),{hooks:o,on:a}},add(t){let a={};if(Array.isArray(this.event[t]))this.event[t].push(""),a={name:t,item:this.event[t],index:this.event[t].length-1};else if(this.event[t]){const o=[this.event[t],""];this.event[t]=o,a={name:t,item:o,index:1}}else{const o=[""];this.event[t]=o,a={name:t,item:o,index:0}}this.activeData||this.edit(a)},edit(t){t.key=Ze(),t.item?this.val=t.item[t.index]:this.val=this.event[t.name],this.activeData=t,this.eventStr=this.val,this.defActive=t.name+(t.index||0)},save(){if(!this.$refs.fn.save())return;const t=this.eventStr;this.activeData.item?this.activeData.item[this.activeData.index]=t:this.event[this.activeData.name]=t,this.destroy()},rm(t){t.index!==void 0?t.item.splice(t.index,1):this.$delete(this.event,t.name),this.defActive===t.name+(t.index||0)&&this.destroy()},destroy(){this.activeData=null,this.val=null,this.defActive="no"},close(){this.destroy()},submit(){if(this.activeData)return jn(this.t("event.saveMsg"));const{on:t,hooks:a}=this.parseFN(this.event);this.$emit("update:modelValue",t),this.activeRule.hook=a,this.visible=!1,this.destroy(),this.closeCus()}},beforeCreate(){window.$inject={$f:{},rule:[],self:{},option:{},inject:{},args:[]}}}),Y0={class:"_fd-event"},G0={class:"el-dropdown-link"},$0={class:"_fd-event-item"},q0={key:0,class:"_fd-label"},J0={class:"_fd-event-item"},K0={class:"_fd-label"},Z0=["onClick"],e_={class:"_fd-event-method"},t_={key:0,class:"_fd-label"},n_=["onClick"],r_=["onClick"],i_={class:"_fd-event-method"},o_={key:0,class:"_fd-label"},a_=["onClick"],l_={target:"_blank",href:"https://form-create.com/v3/instance/"};function u_(t,a,o,i,n,l){const f=de("el-button"),c=de("el-badge"),p=de("el-dropdown-item"),m=de("el-dropdown-menu"),v=de("el-dropdown"),_=de("el-header"),x=de("el-menu-item"),k=de("el-input"),b=de("el-menu"),F=de("el-main"),y=de("el-container"),h=de("el-aside"),g=de("FnEditor"),A=de("el-dialog");return ie(),ge("div",Y0,[ee(c,{value:t.eventNum,type:"warning",hidden:t.eventNum<1},{default:q(()=>[ee(f,{size:"small",onClick:a[0]||(a[0]=C=>t.visible=!0)},{default:q(()=>[ke(ve(t.t("event.title")),1)]),_:1})]),_:1},8,["value","hidden"]),ee(A,{class:"_fd-event-dialog",title:t.t("event.title"),modelValue:t.visible,"onUpdate:modelValue":a[8]||(a[8]=C=>t.visible=C),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{footer:q(()=>[re("div",null,[ee(f,{size:"default",onClick:a[7]||(a[7]=C=>t.visible=!1)},{default:q(()=>[ke(ve(t.t("props.cancel")),1)]),_:1}),ee(f,{type:"primary",size:"default",onClick:t.submit,color:"#2f73ff"},{default:q(()=>[ke(ve(t.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:q(()=>[ee(y,{class:"_fd-event-con",style:{height:"600px"}},{default:q(()=>[ee(h,{style:{width:"300px"}},{default:q(()=>[ee(y,{class:"_fd-event-l"},{default:q(()=>[ee(_,{class:"_fd-event-head",height:"40px"},{default:q(()=>[ee(v,{"popper-class":"_fd-event-dropdown",trigger:"click",size:"default",placement:"bottom-start"},{dropdown:q(()=>[ee(m,null,{default:q(()=>[(ie(!0),ge(ze,null,lt(t.eventName,C=>(ie(),Fe(p,{key:C,onClick:S=>t.add(C),disabled:Object.keys(t.event).indexOf(C)>-1},{default:q(()=>[re("div",$0,[re("span",null,ve(C),1),t.eventInfo[C]?(ie(),ge("span",q0,ve(t.eventInfo[C]),1)):Ne("",!0)])]),_:2},1032,["onClick","disabled"]))),128)),(ie(!0),ge(ze,null,lt(t.hookList,(C,S)=>(ie(),Fe(p,{divided:t.eventName.length>0&&!S,onClick:B=>t.add(C),disabled:Object.keys(t.event).indexOf(C)>-1},{default:q(()=>[re("div",J0,[re("div",null,ve(C),1),re("span",K0,ve(t.eventInfo[C]),1)])]),_:2},1032,["divided","onClick","disabled"]))),256)),ee(p,{divided:t.eventName.length>0,onClick:t.cusEvent},{default:q(()=>[re("div",null,ve(t.t("props.custom")),1)]),_:1},8,["divided","onClick"])]),_:1})]),default:q(()=>[re("span",G0,[ee(f,{link:"",type:"primary",size:"default"},{default:q(()=>[ke(ve(t.t("event.create")),1),a[9]||(a[9]=re("i",{class:"el-icon-arrow-down el-icon--right"},null,-1))]),_:1})])]),_:1})]),_:1}),ee(F,null,{default:q(()=>[ee(b,{"default-active":t.defActive,modelValue:t.activeData,"onUpdate:modelValue":a[5]||(a[5]=C=>t.activeData=C)},{default:q(()=>[(ie(!0),ge(ze,null,lt(t.event,(C,S)=>(ie(),ge(ze,null,[Array.isArray(C)?(ie(!0),ge(ze,{key:0},lt(C,(B,M)=>(ie(),Fe(x,{key:S+M,index:S+M},{default:q(()=>[re("div",{class:"_fd-event-title",onClick:Vt(N=>t.edit({name:S,item:C,index:M}),["stop"])},[re("div",e_,[re("span",null,[a[10]||(a[10]=ke("function")),re("span",null,ve(S),1)]),t.eventInfo[S]?(ie(),ge("span",t_,ve(t.eventInfo[S]),1)):Ne("",!0)]),re("i",{class:"fc-icon icon-delete",onClick:Vt(N=>t.rm({name:S,item:C,index:M}),["stop"])},null,8,n_)],8,Z0)]),_:2},1032,["index"]))),128)):(ie(),Fe(x,{key:1,index:S+0},{default:q(()=>[re("div",{class:"_fd-event-title",onClick:Vt(B=>t.edit({name:S}),["stop"])},[re("div",i_,[re("span",null,[a[11]||(a[11]=ke("function")),re("span",null,ve(S),1)]),t.eventInfo[S]?(ie(),ge("span",o_,ve(t.eventInfo[S]),1)):Ne("",!0)]),re("i",{class:"fc-icon icon-delete",onClick:Vt(B=>t.rm({name:S}),["stop"])},null,8,a_)],8,r_)]),_:2},1032,["index"]))],64))),256)),t.cus?(ie(),Fe(x,{key:0,style:{"padding-left":"10px"},index:"custom"},{default:q(()=>[re("div",{class:"_fd-event-title",onClick:a[4]||(a[4]=Vt(()=>{},["stop"]))},[ee(k,{type:"text",modelValue:t.cusValue,"onUpdate:modelValue":a[1]||(a[1]=C=>t.cusValue=C),size:"default",onKeydown:Ym(t.addCus,["enter"]),placeholder:t.t("event.placeholder")},null,8,["modelValue","onKeydown","placeholder"]),re("div",null,[re("i",{class:"fc-icon icon-add",onClick:a[2]||(a[2]=Vt((...C)=>t.addCus&&t.addCus(...C),["stop"]))}),re("i",{class:"fc-icon icon-delete",onClick:a[3]||(a[3]=Vt((...C)=>t.closeCus&&t.closeCus(...C),["stop"]))})])])]),_:1})):Ne("",!0)]),_:1},8,["default-active","modelValue"])]),_:1})]),_:1})]),_:1}),ee(F,null,{default:q(()=>[ee(y,{class:"_fd-event-r"},{default:q(()=>[t.activeData?(ie(),Fe(_,{key:0,class:"_fd-event-head",height:"40px"},{default:q(()=>[re("div",null,[re("a",l_,ve(t.t("form.document")),1)]),re("div",null,[ee(f,{size:"small",onClick:t.close},{default:q(()=>[ke(ve(t.t("props.cancel")),1)]),_:1},8,["onClick"]),ee(f,{size:"small",type:"primary",onClick:t.save,color:"#2f73ff"},{default:q(()=>[ke(ve(t.t("props.save")),1)]),_:1},8,["onClick"])])]),_:1})):Ne("",!0),t.activeData?(ie(),Fe(F,{key:1},{default:q(()=>[ee(g,{ref:"fn",modelValue:t.eventStr,"onUpdate:modelValue":a[6]||(a[6]=C=>t.eventStr=C),body:"",name:t.activeData.name,args:t.fnArgs,style:{height:"519px"}},null,8,["modelValue","name","args"])]),_:1})):Ne("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["title","modelValue"])])}const gp=nt(X0,[["render",u_]]);function s_(t,a){var o=null;return function(...i){o!==null&&clearTimeout(o),o=setTimeout(()=>t.call(this,...i),a)}}/*!
- Highlight.js v11.9.0 (git: b7ec4bfafc)
- (c) 2006-2024 undefined and other contributors
- License: BSD-3-Clause
- */function vp(t){return t instanceof Map?t.clear=t.delete=t.set=()=>{throw Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=()=>{throw Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(a=>{const o=t[a],i=typeof o;i!=="object"&&i!=="function"||Object.isFrozen(o)||vp(o)}),t}class tf{constructor(a){a.data===void 0&&(a.data={}),this.data=a.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function _p(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Nr(t,...a){const o=Object.create(null);for(const i in t)o[i]=t[i];return a.forEach(i=>{for(const n in i)o[n]=i[n]}),o}const nf=t=>!!t.scope;class c_{constructor(a,o){this.buffer="",this.classPrefix=o.classPrefix,a.walk(this)}addText(a){this.buffer+=_p(a)}openNode(a){if(!nf(a))return;const o=((i,{prefix:n})=>{if(i.startsWith("language:"))return i.replace("language:","language-");if(i.includes(".")){const l=i.split(".");return[`${n}${l.shift()}`,...l.map((f,c)=>`${f}${"_".repeat(c+1)}`)].join(" ")}return`${n}${i}`})(a.scope,{prefix:this.classPrefix});this.span(o)}closeNode(a){nf(a)&&(this.buffer+="</span>")}value(){return this.buffer}span(a){this.buffer+=`<span class="${a}">`}}const rf=(t={})=>{const a={children:[]};return Object.assign(a,t),a};class hs{constructor(){this.rootNode=rf(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(a){this.top.children.push(a)}openNode(a){const o=rf({scope:a});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(a){return this.constructor._walk(a,this.rootNode)}static _walk(a,o){return typeof o=="string"?a.addText(o):o.children&&(a.openNode(o),o.children.forEach(i=>this._walk(a,i)),a.closeNode(o)),a}static _collapse(a){typeof a!="string"&&a.children&&(a.children.every(o=>typeof o=="string")?a.children=[a.children.join("")]:a.children.forEach(o=>{hs._collapse(o)}))}}class d_ extends hs{constructor(a){super(),this.options=a}addText(a){a!==""&&this.add(a)}startScope(a){this.openNode(a)}endScope(){this.closeNode()}__addSublanguage(a,o){const i=a.root;o&&(i.scope="language:"+o),this.add(i)}toHTML(){return new c_(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Bo(t){return t?typeof t=="string"?t:t.source:null}function yp(t){return ti("(?=",t,")")}function f_(t){return ti("(?:",t,")*")}function p_(t){return ti("(?:",t,")?")}function ti(...t){return t.map(a=>Bo(a)).join("")}function ms(...t){return"("+((a=>{const o=a[a.length-1];return typeof o=="object"&&o.constructor===Object?(a.splice(a.length-1,1),o):{}})(t).capture?"":"?:")+t.map(a=>Bo(a)).join("|")+")"}function bp(t){return RegExp(t.toString()+"|").exec("").length-1}const h_=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function us(t,{joinWith:a}){let o=0;return t.map(i=>{o+=1;const n=o;let l=Bo(i),f="";for(;l.length>0;){const c=h_.exec(l);if(!c){f+=l;break}f+=l.substring(0,c.index),l=l.substring(c.index+c[0].length),c[0][0]==="\\"&&c[1]?f+="\\"+(Number(c[1])+n):(f+=c[0],c[0]==="("&&o++)}return f}).map(i=>`(${i})`).join(a)}const of="[a-zA-Z]\\w*",Lu="[a-zA-Z_]\\w*",af="\\b\\d+(\\.\\d+)?",lf="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",uf="\\b(0b[01]+)",So={begin:"\\\\[\\s\\S]",relevance:0},m_={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[So]},g_={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[So]},$a=(t,a,o={})=>{const i=Nr({scope:"comment",begin:t,end:a,contains:[]},o);i.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 n=ms("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 i.contains.push({begin:ti(/[ ]+/,"(",n,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},v_=$a("//","$"),__=$a("/\\*","\\*/"),y_=$a("#","$");var Ea=Object.freeze({__proto__:null,APOS_STRING_MODE:m_,BACKSLASH_ESCAPE:So,BINARY_NUMBER_MODE:{scope:"number",begin:uf,relevance:0},BINARY_NUMBER_RE:uf,COMMENT:$a,C_BLOCK_COMMENT_MODE:__,C_LINE_COMMENT_MODE:v_,C_NUMBER_MODE:{scope:"number",begin:lf,relevance:0},C_NUMBER_RE:lf,END_SAME_AS_BEGIN:t=>Object.assign(t,{"on:begin":(a,o)=>{o.data._beginMatch=a[1]},"on:end":(a,o)=>{o.data._beginMatch!==a[1]&&o.ignoreMatch()}}),HASH_COMMENT_MODE:y_,IDENT_RE:of,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+Lu,relevance:0},NUMBER_MODE:{scope:"number",begin:af,relevance:0},NUMBER_RE:af,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:g_,REGEXP_MODE:{scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[So,{begin:/\[/,end:/\]/,relevance:0,contains:[So]}]},RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(t={})=>{const a=/^#![ ]*\//;return t.binary&&(t.begin=ti(a,/.*\b/,t.binary,/\b.*/)),Nr({scope:"meta",begin:a,end:/$/,relevance:0,"on:begin":(o,i)=>{o.index!==0&&i.ignoreMatch()}},t)},TITLE_MODE:{scope:"title",begin:of,relevance:0},UNDERSCORE_IDENT_RE:Lu,UNDERSCORE_TITLE_MODE:{scope:"title",begin:Lu,relevance:0}});function b_(t,a){t.input[t.index-1]==="."&&a.ignoreMatch()}function A_(t,a){t.className!==void 0&&(t.scope=t.className,delete t.className)}function x_(t,a){a&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=b_,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function w_(t,a){Array.isArray(t.illegal)&&(t.illegal=ms(...t.illegal))}function E_(t,a){if(t.match){if(t.begin||t.end)throw Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function C_(t,a){t.relevance===void 0&&(t.relevance=1)}const F_=(t,a)=>{if(!t.beforeMatch)return;if(t.starts)throw Error("beforeMatch cannot be used with starts");const o=Object.assign({},t);Object.keys(t).forEach(i=>{delete t[i]}),t.keywords=o.keywords,t.begin=ti(o.beforeMatch,yp(o.begin)),t.starts={relevance:0,contains:[Object.assign(o,{endsParent:!0})]},t.relevance=0,delete o.beforeMatch},k_=["of","and","for","in","not","or","if","then","parent","list","value"],S_="keyword";function Ap(t,a,o=S_){const i=Object.create(null);return typeof t=="string"?n(o,t.split(" ")):Array.isArray(t)?n(o,t):Object.keys(t).forEach(l=>{Object.assign(i,Ap(t[l],a,l))}),i;function n(l,f){a&&(f=f.map(c=>c.toLowerCase())),f.forEach(c=>{const p=c.split("|");i[p[0]]=[l,D_(p[0],p[1])]})}}function D_(t,a){return a?Number(a):(o=>k_.includes(o.toLowerCase()))(t)?0:1}const sf={},Jr=t=>{console.error(t)},cf=(t,...a)=>{console.log("WARN: "+t,...a)},ki=(t,a)=>{sf[`${t}/${a}`]||(console.log(`Deprecated as of ${t}. ${a}`),sf[`${t}/${a}`]=!0)},Ca=Error();function df(t,a,{key:o}){let i=0;const n=t[o],l={},f={};for(let c=1;c<=a.length;c++)f[c+i]=n[c],l[c+i]=!0,i+=bp(a[c-1]);t[o]=f,t[o]._emit=l,t[o]._multi=!0}function B_(t){(a=>{a.scope&&typeof a.scope=="object"&&a.scope!==null&&(a.beginScope=a.scope,delete a.scope)})(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),(a=>{if(Array.isArray(a.begin)){if(a.skip||a.excludeBegin||a.returnBegin)throw Jr("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ca;if(typeof a.beginScope!="object"||a.beginScope===null)throw Jr("beginScope must be object"),Ca;df(a,a.begin,{key:"beginScope"}),a.begin=us(a.begin,{joinWith:""})}})(t),(a=>{if(Array.isArray(a.end)){if(a.skip||a.excludeEnd||a.returnEnd)throw Jr("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ca;if(typeof a.endScope!="object"||a.endScope===null)throw Jr("endScope must be object"),Ca;df(a,a.end,{key:"endScope"}),a.end=us(a.end,{joinWith:""})}})(t)}function T_(t){function a(n,l){return RegExp(Bo(n),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(l?"g":""))}class o{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,f){f.position=this.position++,this.matchIndexes[this.matchAt]=f,this.regexes.push([f,l]),this.matchAt+=bp(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(f=>f[1]);this.matcherRe=a(us(l,{joinWith:"|"}),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const f=this.matcherRe.exec(l);if(!f)return null;const c=f.findIndex((m,v)=>v>0&&m!==void 0),p=this.matchIndexes[c];return f.splice(0,c),Object.assign(f,p)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const f=new o;return this.rules.slice(l).forEach(([c,p])=>f.addRule(c,p)),f.compile(),this.multiRegexes[l]=f,f}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,f){this.rules.push([l,f]),f.type==="begin"&&this.count++}exec(l){const f=this.getMatcher(this.regexIndex);f.lastIndex=this.lastIndex;let c=f.exec(l);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const p=this.getMatcher(0);p.lastIndex=this.lastIndex+1,c=p.exec(l)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=Nr(t.classNameAliases||{}),function n(l,f){const c=l;if(l.isCompiled)return c;[A_,E_,B_,F_].forEach(m=>m(l,f)),t.compilerExtensions.forEach(m=>m(l,f)),l.__beforeBegin=null,[x_,w_,C_].forEach(m=>m(l,f)),l.isCompiled=!0;let p=null;return typeof l.keywords=="object"&&l.keywords.$pattern&&(l.keywords=Object.assign({},l.keywords),p=l.keywords.$pattern,delete l.keywords.$pattern),p=p||/\w+/,l.keywords&&(l.keywords=Ap(l.keywords,t.case_insensitive)),c.keywordPatternRe=a(p,!0),f&&(l.begin||(l.begin=/\B|\b/),c.beginRe=a(c.begin),l.end||l.endsWithParent||(l.end=/\B|\b/),l.end&&(c.endRe=a(c.end)),c.terminatorEnd=Bo(c.end)||"",l.endsWithParent&&f.terminatorEnd&&(c.terminatorEnd+=(l.end?"|":"")+f.terminatorEnd)),l.illegal&&(c.illegalRe=a(l.illegal)),l.contains||(l.contains=[]),l.contains=[].concat(...l.contains.map(m=>(v=>(v.variants&&!v.cachedVariants&&(v.cachedVariants=v.variants.map(_=>Nr(v,{variants:null},_))),v.cachedVariants?v.cachedVariants:xp(v)?Nr(v,{starts:v.starts?Nr(v.starts):null}):Object.isFrozen(v)?Nr(v):v))(m==="self"?l:m))),l.contains.forEach(m=>{n(m,c)}),l.starts&&n(l.starts,f),c.matcher=(m=>{const v=new i;return m.contains.forEach(_=>v.addRule(_.begin,{rule:_,type:"begin"})),m.terminatorEnd&&v.addRule(m.terminatorEnd,{type:"end"}),m.illegal&&v.addRule(m.illegal,{type:"illegal"}),v})(c),c}(t)}function xp(t){return!!t&&(t.endsWithParent||xp(t.starts))}class R_ extends Error{constructor(a,o){super(a),this.name="HTMLInjectionError",this.html=o}}const Pu=_p,ff=Nr,pf=Symbol("nomatch"),wp=t=>{const a=Object.create(null),o=Object.create(null),i=[];let n=!0;const l="Could not find the language '{}', did you forget to load/include a language module?",f={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:d_};function p(A){return c.noHighlightRe.test(A)}function m(A,C,S){let B="",M="";typeof C=="object"?(B=A,S=C.ignoreIllegals,M=C.language):(ki("10.7.0","highlight(lang, code, ...args) has been deprecated."),ki("10.7.0",`Please use highlight(code, options) instead.
- https://github.com/highlightjs/highlight.js/issues/2277`),M=A,B=C),S===void 0&&(S=!0);const N={code:B,language:M};g("before:highlight",N);const V=N.result?N.result:v(N.language,N.code,S);return V.code=N.code,g("after:highlight",V),V}function v(A,C,S,B){const M=Object.create(null);function N(){if(!W.keywords)return te.addText(le);let se=0;W.keywordPatternRe.lastIndex=0;let be=W.keywordPatternRe.exec(le),we="";for(;be;){we+=le.substring(se,be.index);const $e=Z.case_insensitive?be[0].toLowerCase():be[0],ot=(Te=$e,W.keywords[Te]);if(ot){const[rt,At]=ot;if(te.addText(we),we="",M[$e]=(M[$e]||0)+1,M[$e]<=7&&(ye+=At),rt.startsWith("_"))we+=be[0];else{const xt=Z.classNameAliases[rt]||rt;w(be[0],xt)}}else we+=be[0];se=W.keywordPatternRe.lastIndex,be=W.keywordPatternRe.exec(le)}var Te;we+=le.substring(se),te.addText(we)}function V(){W.subLanguage!=null?(()=>{if(le==="")return;let se=null;if(typeof W.subLanguage=="string"){if(!a[W.subLanguage])return te.addText(le);se=v(W.subLanguage,le,!0,G[W.subLanguage]),G[W.subLanguage]=se._top}else se=_(le,W.subLanguage.length?W.subLanguage:null);W.relevance>0&&(ye+=se.relevance),te.__addSublanguage(se._emitter,se.language)})():N(),le=""}function w(se,be){se!==""&&(te.startScope(be),te.addText(se),te.endScope())}function D(se,be){let we=1;const Te=be.length-1;for(;we<=Te;){if(!se._emit[we]){we++;continue}const $e=Z.classNameAliases[se[we]]||se[we],ot=be[we];$e?w(ot,$e):(le=ot,N(),le=""),we++}}function I(se,be){return se.scope&&typeof se.scope=="string"&&te.openNode(Z.classNameAliases[se.scope]||se.scope),se.beginScope&&(se.beginScope._wrap?(w(le,Z.classNameAliases[se.beginScope._wrap]||se.beginScope._wrap),le=""):se.beginScope._multi&&(D(se.beginScope,be),le="")),W=Object.create(se,{parent:{value:W}}),W}function j(se,be,we){let Te=(($e,ot)=>{const rt=$e&&$e.exec(ot);return rt&&rt.index===0})(se.endRe,we);if(Te){if(se["on:end"]){const $e=new tf(se);se["on:end"](be,$e),$e.isMatchIgnored&&(Te=!1)}if(Te){for(;se.endsParent&&se.parent;)se=se.parent;return se}}if(se.endsWithParent)return j(se.parent,be,we)}function R(se){return W.matcher.regexIndex===0?(le+=se[0],1):(ce=!0,0)}function O(se){const be=se[0],we=C.substring(se.index),Te=j(W,se,we);if(!Te)return pf;const $e=W;W.endScope&&W.endScope._wrap?(V(),w(be,W.endScope._wrap)):W.endScope&&W.endScope._multi?(V(),D(W.endScope,se)):$e.skip?le+=be:($e.returnEnd||$e.excludeEnd||(le+=be),V(),$e.excludeEnd&&(le=be));do W.scope&&te.closeNode(),W.skip||W.subLanguage||(ye+=W.relevance),W=W.parent;while(W!==Te.parent);return Te.starts&&I(Te.starts,se),$e.returnEnd?0:be.length}let X={};function U(se,be){const we=be&&be[0];if(le+=se,we==null)return V(),0;if(X.type==="begin"&&be.type==="end"&&X.index===be.index&&we===""){if(le+=C.slice(be.index,be.index+1),!n){const Te=Error(`0 width match regex (${A})`);throw Te.languageName=A,Te.badRule=X.rule,Te}return 1}if(X=be,be.type==="begin")return(Te=>{const $e=Te[0],ot=Te.rule,rt=new tf(ot),At=[ot.__beforeBegin,ot["on:begin"]];for(const xt of At)if(xt&&(xt(Te,rt),rt.isMatchIgnored))return R($e);return ot.skip?le+=$e:(ot.excludeBegin&&(le+=$e),V(),ot.returnBegin||ot.excludeBegin||(le=$e)),I(ot,Te),ot.returnBegin?0:$e.length})(be);if(be.type==="illegal"&&!S){const Te=Error('Illegal lexeme "'+we+'" for mode "'+(W.scope||"<unnamed>")+'"');throw Te.mode=W,Te}if(be.type==="end"){const Te=O(be);if(Te!==pf)return Te}if(be.type==="illegal"&&we==="")return 1;if(oe>1e5&&oe>3*be.index)throw Error("potential infinite loop, way more iterations than matches");return le+=we,we.length}const Z=F(A);if(!Z)throw Jr(l.replace("{}",A)),Error('Unknown language: "'+A+'"');const L=T_(Z);let Q="",W=B||L;const G={},te=new c.__emitter(c);(()=>{const se=[];for(let be=W;be!==Z;be=be.parent)be.scope&&se.unshift(be.scope);se.forEach(be=>te.openNode(be))})();let le="",ye=0,fe=0,oe=0,ce=!1;try{if(Z.__emitTokens)Z.__emitTokens(C,te);else{for(W.matcher.considerAll();;){oe++,ce?ce=!1:W.matcher.considerAll(),W.matcher.lastIndex=fe;const se=W.matcher.exec(C);if(!se)break;const be=U(C.substring(fe,se.index),se);fe=se.index+be}U(C.substring(fe))}return te.finalize(),Q=te.toHTML(),{language:A,value:Q,relevance:ye,illegal:!1,_emitter:te,_top:W}}catch(se){if(se.message&&se.message.includes("Illegal"))return{language:A,value:Pu(C),illegal:!0,relevance:0,_illegalBy:{message:se.message,index:fe,context:C.slice(fe-100,fe+100),mode:se.mode,resultSoFar:Q},_emitter:te};if(n)return{language:A,value:Pu(C),illegal:!1,relevance:0,errorRaised:se,_emitter:te,_top:W};throw se}}function _(A,C){C=C||c.languages||Object.keys(a);const S=(D=>{const I={value:Pu(D),illegal:!1,relevance:0,_top:f,_emitter:new c.__emitter(c)};return I._emitter.addText(D),I})(A),B=C.filter(F).filter(h).map(D=>v(D,A,!1));B.unshift(S);const M=B.sort((D,I)=>{if(D.relevance!==I.relevance)return I.relevance-D.relevance;if(D.language&&I.language){if(F(D.language).supersetOf===I.language)return 1;if(F(I.language).supersetOf===D.language)return-1}return 0}),[N,V]=M,w=N;return w.secondBest=V,w}function x(A){let C=null;const S=(N=>{let V=N.className+" ";V+=N.parentNode?N.parentNode.className:"";const w=c.languageDetectRe.exec(V);if(w){const D=F(w[1]);return D||(cf(l.replace("{}",w[1])),cf("Falling back to no-highlight mode for this block.",N)),D?w[1]:"no-highlight"}return V.split(/\s+/).find(D=>p(D)||F(D))})(A);if(p(S))return;if(g("before:highlightElement",{el:A,language:S}),A.dataset.highlighted)return console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);if(A.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(A)),c.throwUnescapedHTML))throw new R_("One of your code blocks includes unescaped HTML.",A.innerHTML);C=A;const B=C.textContent,M=S?m(B,{language:S,ignoreIllegals:!0}):_(B);A.innerHTML=M.value,A.dataset.highlighted="yes",((N,V,w)=>{const D=V&&o[V]||w;N.classList.add("hljs"),N.classList.add("language-"+D)})(A,S,M.language),A.result={language:M.language,re:M.relevance,relevance:M.relevance},M.secondBest&&(A.secondBest={language:M.secondBest.language,relevance:M.secondBest.relevance}),g("after:highlightElement",{el:A,result:M,text:B})}let k=!1;function b(){document.readyState!=="loading"?document.querySelectorAll(c.cssSelector).forEach(x):k=!0}function F(A){return A=(A||"").toLowerCase(),a[A]||a[o[A]]}function y(A,{languageName:C}){typeof A=="string"&&(A=[A]),A.forEach(S=>{o[S.toLowerCase()]=C})}function h(A){const C=F(A);return C&&!C.disableAutodetect}function g(A,C){const S=A;i.forEach(B=>{B[S]&&B[S](C)})}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",()=>{k&&b()},!1),Object.assign(t,{highlight:m,highlightAuto:_,highlightAll:b,highlightElement:x,highlightBlock:A=>(ki("10.7.0","highlightBlock will be removed entirely in v12.0"),ki("10.7.0","Please use highlightElement now."),x(A)),configure:A=>{c=ff(c,A)},initHighlighting:()=>{b(),ki("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:()=>{b(),ki("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:(A,C)=>{let S=null;try{S=C(t)}catch(B){if(Jr("Language definition for '{}' could not be registered.".replace("{}",A)),!n)throw B;Jr(B),S=f}S.name||(S.name=A),a[A]=S,S.rawDefinition=C.bind(null,t),S.aliases&&y(S.aliases,{languageName:A})},unregisterLanguage:A=>{delete a[A];for(const C of Object.keys(o))o[C]===A&&delete o[C]},listLanguages:()=>Object.keys(a),getLanguage:F,registerAliases:y,autoDetection:h,inherit:ff,addPlugin:A=>{(C=>{C["before:highlightBlock"]&&!C["before:highlightElement"]&&(C["before:highlightElement"]=S=>{C["before:highlightBlock"](Object.assign({block:S.el},S))}),C["after:highlightBlock"]&&!C["after:highlightElement"]&&(C["after:highlightElement"]=S=>{C["after:highlightBlock"](Object.assign({block:S.el},S))})})(A),i.push(A)},removePlugin:A=>{const C=i.indexOf(A);C!==-1&&i.splice(C,1)}}),t.debugMode=()=>{n=!1},t.safeMode=()=>{n=!0},t.versionString="11.9.0",t.regex={concat:ti,lookahead:yp,either:ms,optional:p_,anyNumberOfTimes:f_};for(const A in Ea)typeof Ea[A]=="object"&&vp(Ea[A]);return Object.assign(t,Ea),t},To=wp({});To.newInstance=()=>wp({});/*! `xml` grammar compiled for Highlight.js 11.9.0 */var M_=t=>{const a=t.regex,o=a.concat(/[\p{L}_]/u,a.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},n={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=t.inherit(n,{begin:/\(/,end:/\)/}),f=t.inherit(t.APOS_STRING_MODE,{className:"string"}),c=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),p={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:[i]},{begin:/'/,end:/'/,contains:[i]},{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:[n,c,f,l,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[n,l,c,f]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{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:[p],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[p],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:a.concat(/</,a.lookahead(a.concat(o,a.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:o,relevance:0,starts:p}]},{className:"tag",begin:a.concat(/<\//,a.lookahead(a.concat(o,/>/))),contains:[{className:"name",begin:o,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}};/*! `javascript` grammar compiled for Highlight.js 11.9.0 */var N_=(()=>{const t="[A-Za-z$_][0-9A-Za-z$_]*",a=["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"],i=["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"],n=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],l=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],f=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],c=[].concat(l,i,n);return p=>{const m=p.regex,v=t,_={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,W)=>{const G=Q[0].length+Q.index,te=Q.input[G];if(te==="<"||te===",")return void W.ignoreMatch();let le;te===">"&&(((fe,{after:oe})=>{const ce="</"+fe[0].slice(1);return fe.input.indexOf(ce,oe)!==-1})(Q,{after:G})||W.ignoreMatch());const ye=Q.input.substring(G);((le=ye.match(/^\s*=/))||(le=ye.match(/^\s+extends\s+/))&&le.index===0)&&W.ignoreMatch()}},x={$pattern:t,keyword:a,literal:o,built_in:c,"variable.language":f},k="[0-9](_?[0-9])*",b=`\\.(${k})`,F="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",y={className:"number",variants:[{begin:`(\\b(${F})((${b})|\\.)?|(${b}))[eE][+-]?(${k})\\b`},{begin:`\\b(${F})\\b((${b})\\b|\\.)?|(${b})\\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},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:x,contains:[]},g={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},A={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,h],subLanguage:"css"}},C={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},S={className:"string",begin:"`",end:"`",contains:[p.BACKSLASH_ESCAPE,h]},B={className:"comment",variants:[p.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:v+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),p.C_BLOCK_COMMENT_MODE,p.C_LINE_COMMENT_MODE]},M=[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,g,A,C,S,{match:/\$\d+/},y];h.contains=M.concat({begin:/\{/,end:/\}/,keywords:x,contains:["self"].concat(M)});const N=[].concat(B,h.contains),V=N.concat([{begin:/\(/,end:/\)/,keywords:x,contains:["self"].concat(N)}]),w={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:x,contains:V},D={variants:[{match:[/class/,/\s+/,v,/\s+/,/extends/,/\s+/,m.concat(v,"(",m.concat(/\./,v),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,v],scope:{1:"keyword",3:"title.class"}}]},I={relevance:0,match:m.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:{_:[...i,...n]}},j={variants:[{match:[/function/,/\s+/,v,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},R={match:m.concat(/\b/,(O=[...l,"super","import"],m.concat("(?!",O.join("|"),")")),v,m.lookahead(/\(/)),className:"title.function",relevance:0};var O;const X={begin:m.concat(/\./,m.lookahead(m.concat(v,/(?![0-9A-Za-z$_(])/))),end:v,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},U={match:[/get|set/,/\s+/,v,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},Z="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+p.UNDERSCORE_IDENT_RE+")\\s*=>",L={match:[/const|var|let/,/\s+/,v,/\s*/,/=\s*/,/(async\s*)?/,m.lookahead(Z)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:x,exports:{PARAMS_CONTAINS:V,CLASS_REFERENCE:I},illegal:/#(?![$_A-z])/,contains:[p.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,g,A,C,S,B,{match:/\$\d+/},y,I,{className:"attr",begin:v+m.lookahead(":"),relevance:0},L,{begin:"("+p.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[B,p.REGEXP_MODE,{className:"function",begin:Z,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:p.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:x,contains:V}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:"<>",end:"</>"},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:_.begin,"on:begin":_.isTrulyOpeningTag,end:_.end}],subLanguage:"xml",contains:[{begin:_.begin,end:_.end,skip:!0,contains:["self"]}]}]},j,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+p.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,p.inherit(p.TITLE_MODE,{begin:v,className:"title.function"})]},{match:/\.\.\./,relevance:0},X,{match:"\\$"+v,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},R,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},D,U,{match:/\$[(.]/}]}}})();const O_=tt({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 t=[];const a=this.designer.setupState;if(this.activeRule){const o=this.activeRule._menu.name,i=a.getConfig("switchType",[]);if(i===!1)return t;let n=[];i.forEach(l=>{l.indexOf(o)>-1&&n.push(...l)}),n=n.filter((l,f)=>l!==o&&n.indexOf(l)===f),n.length?a.menuList.forEach(l=>{l.list.forEach(f=>{n.indexOf(f.name)>-1&&t.push(f)})}):a.menuList.forEach(l=>{l.name===this.activeRule._menu.menu&&l.list.forEach(f=>{f.name!==o&&t.push(f)})})}return t.filter(o=>this.designer.setupState.hiddenItem.indexOf(o.name)===-1)}},methods:{handleCommand(t){var a;let o=this.activeRule,i=this.activeRule;i._menu.inside||(i=i.__fc__.parent.rule);const n=i.__fc__.parent.rule.children,l=this.designer.setupState.makeRule(t);let f=l;l.type==="DragTool"&&(f=l.children[0]),f.field&&o.field?["title","info","field","validate","control","$required"].forEach(c=>{f[c]=o[c]}):(a=o?.computed)!=null&&a.hidden&&(f.computed={hidden:o.computed.hidden}),o.name&&(f.name=o.name),["name","id","on"].forEach(c=>{o[c]&&(f[c]=o[c])}),n.splice(n.indexOf(i),1,l),this.$nextTick(()=>{this.designer.setupState.triggerActive(f)})}}}),I_={key:0,class:"fc-icon icon-down"};function L_(t,a,o,i,n,l){const f=de("el-tag"),c=de("el-dropdown-item"),p=de("el-dropdown-menu"),m=de("el-dropdown");return ie(),Fe(m,{class:"_fd-type-select",trigger:"click",size:"default","popper-class":"_fd-type-select-pop",disabled:!t.menus.length,onCommand:t.handleCommand},{dropdown:q(()=>[ee(p,null,{default:q(()=>[(ie(!0),ge(ze,null,lt(t.menus,v=>(ie(),Fe(c,{command:v,key:v.name},{default:q(()=>[re("div",null,[re("i",{class:at(["fc-icon",v.icon||"icon-input"])},null,2),ke(ve(t.t("com."+v.name+".name")||v.label),1)])]),_:2},1032,["command"]))),128))]),_:1})]),default:q(()=>[ee(f,{type:"success",effect:"plain","disable-transitions":""},{default:q(()=>[t.activeRule?(ie(),ge(ze,{key:0},[ke(ve(t.t("com."+t.activeRule._menu.name+".name")||t.activeRule._menu.label)+" ",1),t.menus.length?(ie(),ge("i",I_)):Ne("",!0)],64)):(ie(),ge(ze,{key:1},[ke(ve(t.t("com."+t.customForm.config.name+".name")||t.customForm.config.label||t.customForm.config.name),1)],64))]),_:1})]),_:1},8,["disabled","onCommand"])}const P_=nt(O_,[["render",L_]]);var Ep={exports:{}},go={},Fa={exports:{}},Vu={},ju={},hf;function gs(){if(hf)return ju;hf=1;function t(i){this.__parent=i,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=[]}t.prototype.clone_empty=function(){var i=new t(this.__parent);return i.set_indent(this.__indent_count,this.__alignment_count),i},t.prototype.item=function(i){return i<0?this.__items[this.__items.length+i]:this.__items[i]},t.prototype.has_match=function(i){for(var n=this.__items.length-1;n>=0;n--)if(this.__items[n].match(i))return!0;return!1},t.prototype.set_indent=function(i,n){this.is_empty()&&(this.__indent_count=i||0,this.__alignment_count=n||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.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)},t.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},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var i=this.__parent.current_line;return i.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),i.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),i.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,i.__items[0]===" "&&(i.__items.splice(0,1),i.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return this.__items.length===0},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(i){this.__items.push(i);var n=i.lastIndexOf(`
- `);n!==-1?this.__character_count=i.length-n:this.__character_count+=i.length},t.prototype.pop=function(){var i=null;return this.is_empty()||(i=this.__items.pop(),this.__character_count-=i.length),i},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var i="";return this.is_empty()?this.__parent.indent_empty_lines&&(i=this.__parent.get_indent_string(this.__indent_count)):(i=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),i+=this.__items.join("")),i};function a(i,n){this.__cache=[""],this.__indent_size=i.indent_size,this.__indent_string=i.indent_char,i.indent_with_tabs||(this.__indent_string=new Array(i.indent_size+1).join(i.indent_char)),n=n||"",i.indent_level>0&&(n=new Array(i.indent_level+1).join(this.__indent_string)),this.__base_string=n,this.__base_string_length=n.length}a.prototype.get_indent_size=function(i,n){var l=this.__base_string_length;return n=n||0,i<0&&(l=0),l+=i*this.__indent_size,l+=n,l},a.prototype.get_indent_string=function(i,n){var l=this.__base_string;return n=n||0,i<0&&(i=0,l=""),n+=i*this.__indent_size,this.__ensure_cache(n),l+=this.__cache[n],l},a.prototype.__ensure_cache=function(i){for(;i>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var i=this.__cache.length,n=0,l="";this.__indent_size&&i>=this.__indent_size&&(n=Math.floor(i/this.__indent_size),i-=n*this.__indent_size,l=new Array(n+1).join(this.__indent_string)),i&&(l+=new Array(i+1).join(" ")),this.__cache.push(l)};function o(i,n){this.__indent_cache=new a(i,n),this.raw=!1,this._end_with_newline=i.end_with_newline,this.indent_size=i.indent_size,this.wrap_line_length=i.wrap_line_length,this.indent_empty_lines=i.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(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(i,n){return this.__indent_cache.get_indent_string(i,n)},o.prototype.get_indent_size=function(i,n){return this.__indent_cache.get_indent_size(i,n)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(i){return this.is_empty()||!i&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},o.prototype.get_code=function(i){this.trim(!0);var n=this.current_line.pop();n&&(n[n.length-1]===`
- `&&(n=n.replace(/\n+$/g,"")),this.current_line.push(n)),this._end_with_newline&&this.__add_outputline();var l=this.__lines.join(`
- `);return i!==`
- `&&(l=l.replace(/[\n]/g,i)),l},o.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},o.prototype.set_indent=function(i,n){return i=i||0,n=n||0,this.next_line.set_indent(i,n),this.__lines.length>1?(this.current_line.set_indent(i,n),!0):(this.current_line.set_indent(),!1)},o.prototype.add_raw_token=function(i){for(var n=0;n<i.newlines;n++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(i.whitespace_before),this.current_line.push(i.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},o.prototype.add_token=function(i){this.__add_space_before_token(),this.current_line.push(i),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(i){for(var n=this.__lines.length;i<n;)this.__lines[i]._remove_indent(),i++;this.current_line._remove_wrap_indent()},o.prototype.trim=function(i){for(i=i===void 0?!1:i,this.current_line.trim();i&&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(i,n){for(var l=this.__lines.length-2;l>=0;){var f=this.__lines[l];if(f.is_empty())break;if(f.item(0).indexOf(i)!==0&&f.item(-1)!==n){this.__lines.splice(l+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}l--}},ju.Output=o,ju}var zu={},mf;function Cp(){if(mf)return zu;mf=1;function t(a,o,i,n){this.type=a,this.text=o,this.comments_before=null,this.newlines=i||0,this.whitespace_before=n||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return zu.Token=t,zu}var gf={},vf;function Fp(){return vf||(vf=1,function(t){var a="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",o="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",i="\\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",n="\\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",l="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",f="(?:"+l+"|["+a+i+"])",c="(?:"+l+"|["+o+i+n+"])*";t.identifier=new RegExp(f+c,"g"),t.identifierStart=new RegExp(f),t.identifierMatch=new RegExp("(?:"+l+"|["+o+i+n+"])+"),t.newline=/[\n\r\u2028\u2029]/,t.lineBreak=new RegExp(`\r
- |`+t.newline.source),t.allLineBreaks=new RegExp(t.lineBreak.source,"g")}(gf)),gf}var Uu={},vo={},_f;function vs(){if(_f)return vo;_f=1;function t(i,n){this.raw_options=a(i,n),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"])}t.prototype._get_array=function(i,n){var l=this.raw_options[i],f=n||[];return typeof l=="object"?l!==null&&typeof l.concat=="function"&&(f=l.concat()):typeof l=="string"&&(f=l.split(/[^a-zA-Z0-9_\/\-]+/)),f},t.prototype._get_boolean=function(i,n){var l=this.raw_options[i],f=l===void 0?!!n:!!l;return f},t.prototype._get_characters=function(i,n){var l=this.raw_options[i],f=n||"";return typeof l=="string"&&(f=l.replace(/\\r/,"\r").replace(/\\n/,`
- `).replace(/\\t/," ")),f},t.prototype._get_number=function(i,n){var l=this.raw_options[i];n=parseInt(n,10),isNaN(n)&&(n=0);var f=parseInt(l,10);return isNaN(f)&&(f=n),f},t.prototype._get_selection=function(i,n,l){var f=this._get_selection_list(i,n,l);if(f.length!==1)throw new Error("Invalid Option Value: The option '"+i+`' can only be one of the following values:
- `+n+`
- You passed in: '`+this.raw_options[i]+"'");return f[0]},t.prototype._get_selection_list=function(i,n,l){if(!n||n.length===0)throw new Error("Selection list cannot be empty.");if(l=l||[n[0]],!this._is_valid_selection(l,n))throw new Error("Invalid Default Value!");var f=this._get_array(i,l);if(!this._is_valid_selection(f,n))throw new Error("Invalid Option Value: The option '"+i+`' can contain only the following values:
- `+n+`
- You passed in: '`+this.raw_options[i]+"'");return f},t.prototype._is_valid_selection=function(i,n){return i.length&&n.length&&!i.some(function(l){return n.indexOf(l)===-1})};function a(i,n){var l={};i=o(i);var f;for(f in i)f!==n&&(l[f]=i[f]);if(n&&i[n])for(f in i[n])l[f]=i[n][f];return l}function o(i){var n={},l;for(l in i){var f=l.replace(/-/g,"_");n[f]=i[l]}return n}return vo.Options=t,vo.normalizeOpts=o,vo.mergeOpts=a,vo}var yf;function kp(){if(yf)return Uu;yf=1;var t=vs().Options,a=["before-newline","after-newline","preserve-newline"];function o(i){t.call(this,i,"js");var n=this.raw_options.brace_style||null;n==="expand-strict"?this.raw_options.brace_style="expand":n==="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 l=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var f=0;f<l.length;f++)l[f]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=l[f];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",a),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return o.prototype=new t,Uu.Options=o,Uu}var Si={},Hu={},bf;function _s(){if(bf)return Hu;bf=1;var t=RegExp.prototype.hasOwnProperty("sticky");function a(o){this.__input=o||"",this.__input_length=this.__input.length,this.__position=0}return a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var o=null;return this.hasNext()&&(o=this.__input.charAt(this.__position),this.__position+=1),o},a.prototype.peek=function(o){var i=null;return o=o||0,o+=this.__position,o>=0&&o<this.__input_length&&(i=this.__input.charAt(o)),i},a.prototype.__match=function(o,i){o.lastIndex=i;var n=o.exec(this.__input);return n&&!(t&&o.sticky)&&n.index!==i&&(n=null),n},a.prototype.test=function(o,i){return i=i||0,i+=this.__position,i>=0&&i<this.__input_length?!!this.__match(o,i):!1},a.prototype.testChar=function(o,i){var n=this.peek(i);return o.lastIndex=0,n!==null&&o.test(n)},a.prototype.match=function(o){var i=this.__match(o,this.__position);return i?this.__position+=i[0].length:i=null,i},a.prototype.read=function(o,i,n){var l="",f;return o&&(f=this.match(o),f&&(l+=f[0])),i&&(f||!o)&&(l+=this.readUntil(i,n)),l},a.prototype.readUntil=function(o,i){var n="",l=this.__position;o.lastIndex=this.__position;var f=o.exec(this.__input);return f?(l=f.index,i&&(l+=f[0].length)):l=this.__input_length,n=this.__input.substring(this.__position,l),this.__position=l,n},a.prototype.readUntilAfter=function(o){return this.readUntil(o,!0)},a.prototype.get_regexp=function(o,i){var n=null,l="g";return i&&t&&(l="y"),typeof o=="string"&&o!==""?n=new RegExp(o,l):o&&(n=new RegExp(o.source,l)),n},a.prototype.get_literal_regexp=function(o){return RegExp(o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(o){var i=this.__position,n=this.readUntilAfter(o);return this.__position=i,n},a.prototype.lookBack=function(o){var i=this.__position-1;return i>=o.length&&this.__input.substring(i-o.length,i).toLowerCase()===o},Hu.InputScanner=a,Hu}var ka={},Wu={},Af;function V_(){if(Af)return Wu;Af=1;function t(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}return t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return this.__tokens_length===0},t.prototype.hasNext=function(){return this.__position<this.__tokens_length},t.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__tokens[this.__position],this.__position+=1),a},t.prototype.peek=function(a){var o=null;return a=a||0,a+=this.__position,a>=0&&a<this.__tokens_length&&(o=this.__tokens[a]),o},t.prototype.add=function(a){this.__parent_token&&(a.parent=this.__parent_token),this.__tokens.push(a),this.__tokens_length+=1},Wu.TokenStream=t,Wu}var Qu={},Xu={},xf;function qa(){if(xf)return Xu;xf=1;function t(a,o){this._input=a,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 t.prototype.read=function(){var a=this._input.read(this._starting_pattern);return(!this._starting_pattern||a)&&(a+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),a},t.prototype.read_match=function(){return this._input.match(this._match_pattern)},t.prototype.until_after=function(a){var o=this._create();return o._until_after=!0,o._until_pattern=this._input.get_regexp(a),o._update(),o},t.prototype.until=function(a){var o=this._create();return o._until_after=!1,o._until_pattern=this._input.get_regexp(a),o._update(),o},t.prototype.starting_with=function(a){var o=this._create();return o._starting_pattern=this._input.get_regexp(a,!0),o._update(),o},t.prototype.matching=function(a){var o=this._create();return o._match_pattern=this._input.get_regexp(a,!0),o._update(),o},t.prototype._create=function(){return new t(this._input,this)},t.prototype._update=function(){},Xu.Pattern=t,Xu}var wf;function j_(){if(wf)return Qu;wf=1;var t=qa().Pattern;function a(o,i){t.call(this,o,i),i?this._line_regexp=this._input.get_regexp(i._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return a.prototype=new t,a.prototype.__set_whitespace_patterns=function(o,i){o+="\\t ",i+="\\n\\r",this._match_pattern=this._input.get_regexp("["+o+i+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+i+"]")},a.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 i=this.__split(this._newline_regexp,o);this.newline_count=i.length-1,this.whitespace_before_token=i[this.newline_count]}return o},a.prototype.matching=function(o,i){var n=this._create();return n.__set_whitespace_patterns(o,i),n._update(),n},a.prototype._create=function(){return new a(this._input,this)},a.prototype.__split=function(o,i){o.lastIndex=0;for(var n=0,l=[],f=o.exec(i);f;)l.push(i.substring(n,f.index)),n=f.index+f[0].length,f=o.exec(i);return n<i.length?l.push(i.substring(n,i.length)):l.push(""),l},Qu.WhitespacePattern=a,Qu}var Ef;function Wa(){if(Ef)return ka;Ef=1;var t=_s().InputScanner,a=Cp().Token,o=V_().TokenStream,i=j_().WhitespacePattern,n={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(f,c){this._input=new t(f),this._options=c||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new i(this._input)};return l.prototype.tokenize=function(){this._input.restart(),this.__tokens=new o,this._reset();for(var f,c=new a(n.START,""),p=null,m=[],v=new o;c.type!==n.EOF;){for(f=this._get_next_token(c,p);this._is_comment(f);)v.add(f),f=this._get_next_token(c,p);v.isEmpty()||(f.comments_before=v,v=new o),f.parent=p,this._is_opening(f)?(m.push(p),p=f):p&&this._is_closing(f,p)&&(f.opened=p,p.closed=f,p=m.pop(),f.parent=p),f.previous=c,c.next=f,this.__tokens.add(f),c=f}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(f,c){this._readWhitespace();var p=this._input.read(/.+/g);return p?this._create_token(n.RAW,p):this._create_token(n.EOF,"")},l.prototype._is_comment=function(f){return!1},l.prototype._is_opening=function(f){return!1},l.prototype._is_closing=function(f,c){return!1},l.prototype._create_token=function(f,c){var p=new a(f,c,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return p},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},ka.Tokenizer=l,ka.TOKEN=n,ka}var Yu={},Cf;function ys(){if(Cf)return Yu;Cf=1;function t(a,o){a=typeof a=="string"?a:a.source,o=typeof o=="string"?o:o.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+o,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+o,"g")}return t.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var o={};this.__directive_pattern.lastIndex=0;for(var i=this.__directive_pattern.exec(a);i;)o[i[1]]=i[2],i=this.__directive_pattern.exec(a);return o},t.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},Yu.Directives=t,Yu}var Gu={},Ff;function Sp(){if(Ff)return Gu;Ff=1;var t=qa().Pattern,a={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function o(i,n){t.call(this,i,n),this.__template_pattern=null,this._disabled=Object.assign({},a),this._excluded=Object.assign({},a),n&&(this.__template_pattern=this._input.get_regexp(n.__template_pattern),this._excluded=Object.assign(this._excluded,n._excluded),this._disabled=Object.assign(this._disabled,n._disabled));var l=new t(i);this.__patterns={handlebars_comment:l.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:l.starting_with(/{{{/).until_after(/}}}/),handlebars:l.starting_with(/{{/).until_after(/}}/),php:l.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:l.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:l.starting_with(/{%/).until_after(/%}/),django_value:l.starting_with(/{{/).until_after(/}}/),django_comment:l.starting_with(/{#/).until_after(/#}/),smarty:l.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:l.starting_with(/{\*/).until_after(/\*}/),smarty_literal:l.starting_with(/{literal}/).until_after(/{\/literal}/)}}return o.prototype=new t,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(i){var n=this._create();return n._disabled[i]=!0,n._update(),n},o.prototype.read_options=function(i){var n=this._create();for(var l in a)n._disabled[l]=i.templating.indexOf(l)===-1;return n._update(),n},o.prototype.exclude=function(i){var n=this._create();return n._excluded[i]=!0,n._update(),n},o.prototype.read=function(){var i="";this._match_pattern?i=this._input.read(this._starting_pattern):i=this._input.read(this._starting_pattern,this.__template_pattern);for(var n=this._read_template();n;)this._match_pattern?n+=this._input.read(this._match_pattern):n+=this._input.readUntil(this.__template_pattern),i+=n,n=this._read_template();return this._until_after&&(i+=this._input.readUntilAfter(this._until_pattern)),i},o.prototype.__set_templated_pattern=function(){var i=[];this._disabled.php||i.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||i.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||i.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||i.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(i.push(this.__patterns.django._starting_pattern.source),i.push(this.__patterns.django_value._starting_pattern.source),i.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||i.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&i.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+i.join("|")+")")},o.prototype._read_template=function(){var i="",n=this._input.peek();if(n==="<"){var l=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&l==="?"&&(i=i||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&l==="%"&&(i=i||this.__patterns.erb.read())}else n==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(i=i||this.__patterns.handlebars_comment.read(),i=i||this.__patterns.handlebars_unescaped.read(),i=i||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(i=i||this.__patterns.django_value.read()),this._excluded.django||(i=i||this.__patterns.django_comment.read(),i=i||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(i=i||this.__patterns.smarty_comment.read(),i=i||this.__patterns.smarty_literal.read(),i=i||this.__patterns.smarty.read()));return i},Gu.TemplatablePattern=o,Gu}var kf;function Sa(){if(kf)return Si;kf=1;var t=_s().InputScanner,a=Wa().Tokenizer,o=Wa().TOKEN,i=ys().Directives,n=Fp(),l=qa().Pattern,f=Sp().TemplatablePattern;function c(B,M){return M.indexOf(B)!==-1}var p={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},m=new i(/\/\*/,/\*\//),v=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,_=/[0-9]/,x=/[^\d\.]/,k=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),b=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";b=b.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),b="\\?\\.(?!\\d) "+b,b=b.replace(/ /g,"|");var F=new RegExp(b),y="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),h=y.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),g=new RegExp("^(?:"+h.join("|")+")$"),A,C=function(B,M){a.call(this,B,M),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var N=new l(this._input),V=new f(this._input).read_options(this._options);this.__patterns={template:V,identifier:V.starting_with(n.identifier).matching(n.identifierMatch),number:N.matching(v),punct:N.matching(F),comment:N.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:N.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:N.matching(/<!--/),html_comment_end:N.matching(/-->/),include:N.starting_with(/#include/).until_after(n.lineBreak),shebang:N.starting_with(/#!/).until_after(n.lineBreak),xml:N.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:V.until(/['\\\n\r\u2028\u2029]/),double_quote:V.until(/["\\\n\r\u2028\u2029]/),template_text:V.until(/[`\\$]/),template_expression:V.until(/[`}\\]/)}};C.prototype=new a,C.prototype._is_comment=function(B){return B.type===p.COMMENT||B.type===p.BLOCK_COMMENT||B.type===p.UNKNOWN},C.prototype._is_opening=function(B){return B.type===p.START_BLOCK||B.type===p.START_EXPR},C.prototype._is_closing=function(B,M){return(B.type===p.END_BLOCK||B.type===p.END_EXPR)&&M&&(B.text==="]"&&M.text==="["||B.text===")"&&M.text==="("||B.text==="}"&&M.text==="{")},C.prototype._reset=function(){A=!1},C.prototype._get_next_token=function(B,M){var N=null;this._readWhitespace();var V=this._input.peek();return V===null?this._create_token(p.EOF,""):(N=N||this._read_non_javascript(V),N=N||this._read_string(V),N=N||this._read_pair(V,this._input.peek(1)),N=N||this._read_word(B),N=N||this._read_singles(V),N=N||this._read_comment(V),N=N||this._read_regexp(V,B),N=N||this._read_xml(V,B),N=N||this._read_punctuation(),N=N||this._create_token(p.UNKNOWN,this._input.next()),N)},C.prototype._read_word=function(B){var M;if(M=this.__patterns.identifier.read(),M!=="")return M=M.replace(n.allLineBreaks,`
- `),!(B.type===p.DOT||B.type===p.RESERVED&&(B.text==="set"||B.text==="get"))&&g.test(M)?(M==="in"||M==="of")&&(B.type===p.WORD||B.type===p.STRING)?this._create_token(p.OPERATOR,M):this._create_token(p.RESERVED,M):this._create_token(p.WORD,M);if(M=this.__patterns.number.read(),M!=="")return this._create_token(p.WORD,M)},C.prototype._read_singles=function(B){var M=null;return B==="("||B==="["?M=this._create_token(p.START_EXPR,B):B===")"||B==="]"?M=this._create_token(p.END_EXPR,B):B==="{"?M=this._create_token(p.START_BLOCK,B):B==="}"?M=this._create_token(p.END_BLOCK,B):B===";"?M=this._create_token(p.SEMICOLON,B):B==="."&&x.test(this._input.peek(1))?M=this._create_token(p.DOT,B):B===","&&(M=this._create_token(p.COMMA,B)),M&&this._input.next(),M},C.prototype._read_pair=function(B,M){var N=null;return B==="#"&&M==="{"&&(N=this._create_token(p.START_BLOCK,B+M)),N&&(this._input.next(),this._input.next()),N},C.prototype._read_punctuation=function(){var B=this.__patterns.punct.read();if(B!=="")return B==="="?this._create_token(p.EQUALS,B):B==="?."?this._create_token(p.DOT,B):this._create_token(p.OPERATOR,B)},C.prototype._read_non_javascript=function(B){var M="";if(B==="#"){if(this._is_first_token()&&(M=this.__patterns.shebang.read(),M))return this._create_token(p.UNKNOWN,M.trim()+`
- `);if(M=this.__patterns.include.read(),M)return this._create_token(p.UNKNOWN,M.trim()+`
- `);B=this._input.next();var N="#";if(this._input.hasNext()&&this._input.testChar(_)){do B=this._input.next(),N+=B;while(this._input.hasNext()&&B!=="#"&&B!=="=");return B==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(N+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(N+="{}",this._input.next(),this._input.next())),this._create_token(p.WORD,N)}this._input.back()}else if(B==="<"&&this._is_first_token()){if(M=this.__patterns.html_comment_start.read(),M){for(;this._input.hasNext()&&!this._input.testChar(n.newline);)M+=this._input.next();return A=!0,this._create_token(p.COMMENT,M)}}else if(A&&B==="-"&&(M=this.__patterns.html_comment_end.read(),M))return A=!1,this._create_token(p.COMMENT,M);return null},C.prototype._read_comment=function(B){var M=null;if(B==="/"){var N="";if(this._input.peek(1)==="*"){N=this.__patterns.block_comment.read();var V=m.get_directives(N);V&&V.ignore==="start"&&(N+=m.readIgnored(this._input)),N=N.replace(n.allLineBreaks,`
- `),M=this._create_token(p.BLOCK_COMMENT,N),M.directives=V}else this._input.peek(1)==="/"&&(N=this.__patterns.comment.read(),M=this._create_token(p.COMMENT,N))}return M},C.prototype._read_string=function(B){if(B==="`"||B==="'"||B==='"'){var M=this._input.next();return this.has_char_escapes=!1,B==="`"?M+=this._read_string_recursive("`",!0,"${"):M+=this._read_string_recursive(B),this.has_char_escapes&&this._options.unescape_strings&&(M=S(M)),this._input.peek()===B&&(M+=this._input.next()),M=M.replace(n.allLineBreaks,`
- `),this._create_token(p.STRING,M)}return null},C.prototype._allow_regexp_or_xml=function(B){return B.type===p.RESERVED&&c(B.text,["return","case","throw","else","do","typeof","yield"])||B.type===p.END_EXPR&&B.text===")"&&B.opened.previous.type===p.RESERVED&&c(B.opened.previous.text,["if","while","for"])||c(B.type,[p.COMMENT,p.START_EXPR,p.START_BLOCK,p.START,p.END_BLOCK,p.OPERATOR,p.EQUALS,p.EOF,p.SEMICOLON,p.COMMA])},C.prototype._read_regexp=function(B,M){if(B==="/"&&this._allow_regexp_or_xml(M)){for(var N=this._input.next(),V=!1,w=!1;this._input.hasNext()&&(V||w||this._input.peek()!==B)&&!this._input.testChar(n.newline);)N+=this._input.peek(),V?V=!1:(V=this._input.peek()==="\\",this._input.peek()==="["?w=!0:this._input.peek()==="]"&&(w=!1)),this._input.next();return this._input.peek()===B&&(N+=this._input.next(),N+=this._input.read(n.identifier)),this._create_token(p.STRING,N)}return null},C.prototype._read_xml=function(B,M){if(this._options.e4x&&B==="<"&&this._allow_regexp_or_xml(M)){var N="",V=this.__patterns.xml.read_match();if(V){for(var w=V[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),D=w.indexOf("{")===0,I=0;V;){var j=!!V[1],R=V[2],O=!!V[V.length-1]||R.slice(0,8)==="![CDATA[";if(!O&&(R===w||D&&R.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(j?--I:++I),N+=V[0],I<=0)break;V=this.__patterns.xml.read_match()}return V||(N+=this._input.match(/[\s\S]*/g)[0]),N=N.replace(n.allLineBreaks,`
- `),this._create_token(p.STRING,N)}}return null};function S(B){for(var M="",N=0,V=new t(B),w=null;V.hasNext();)if(w=V.match(/([\s]|[^\\]|\\\\)+/g),w&&(M+=w[0]),V.peek()==="\\"){if(V.next(),V.peek()==="x")w=V.match(/x([0-9A-Fa-f]{2})/g);else if(V.peek()==="u")w=V.match(/u([0-9A-Fa-f]{4})/g),w||(w=V.match(/u\{([0-9A-Fa-f]+)\}/g));else{M+="\\",V.hasNext()&&(M+=V.next());continue}if(!w||(N=parseInt(w[1],16),N>126&&N<=255&&w[0].indexOf("x")===0))return B;N>=0&&N<32||N>1114111?M+="\\"+w[0]:N===34||N===39||N===92?M+="\\"+String.fromCharCode(N):M+=String.fromCharCode(N)}return M}return C.prototype._read_string_recursive=function(B,M,N){var V,w;B==="'"?w=this.__patterns.single_quote:B==='"'?w=this.__patterns.double_quote:B==="`"?w=this.__patterns.template_text:B==="}"&&(w=this.__patterns.template_expression);for(var D=w.read(),I="";this._input.hasNext();){if(I=this._input.next(),I===B||!M&&n.newline.test(I)){this._input.back();break}else I==="\\"&&this._input.hasNext()?(V=this._input.peek(),V==="x"||V==="u"?this.has_char_escapes=!0:V==="\r"&&this._input.peek(1)===`
- `&&this._input.next(),I+=this._input.next()):N&&(N==="${"&&I==="$"&&this._input.peek()==="{"&&(I+=this._input.next()),N===I&&(B==="`"?I+=this._read_string_recursive("}",M,"`"):I+=this._read_string_recursive("`",M,"${"),this._input.hasNext()&&(I+=this._input.next())));I+=w.read(),D+=I}return D},Si.Tokenizer=C,Si.TOKEN=p,Si.positionable_operators=k.slice(),Si.line_starters=y.slice(),Si}var Sf;function z_(){if(Sf)return Vu;Sf=1;var t=gs().Output,a=Cp().Token,o=Fp(),i=kp().Options,n=Sa().Tokenizer,l=Sa().line_starters,f=Sa().positionable_operators,c=Sa().TOKEN;function p(w,D){return D.indexOf(w)!==-1}function m(w){return w.replace(/^\s+/g,"")}function v(w){for(var D={},I=0;I<w.length;I++)D[w[I].replace(/-/g,"_")]=w[I];return D}function _(w,D){return w&&w.type===c.RESERVED&&w.text===D}function x(w,D){return w&&w.type===c.RESERVED&&p(w.text,D)}var k=["case","return","do","if","throw","else","await","break","continue","async"],b=["before-newline","after-newline","preserve-newline"],F=v(b),y=[F.before_newline,F.preserve_newline],h={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function g(w,D){D.multiline_frame||D.mode===h.ForInitializer||D.mode===h.Conditional||w.remove_indent(D.start_line_index)}function A(w){w=w.replace(o.allLineBreaks,`
- `);for(var D=[],I=w.indexOf(`
- `);I!==-1;)D.push(w.substring(0,I)),w=w.substring(I+1),I=w.indexOf(`
- `);return w.length&&D.push(w),D}function C(w){return w===h.ArrayLiteral}function S(w){return p(w,[h.Expression,h.ForInitializer,h.Conditional])}function B(w,D){for(var I=0;I<w.length;I++){var j=w[I].trim();if(j.charAt(0)!==D)return!1}return!0}function M(w,D){for(var I=0,j=w.length,R;I<j;I++)if(R=w[I],R&&R.indexOf(D)!==0)return!1;return!0}function N(w,D){D=D||{},this._source_text=w||"",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 i(D)}N.prototype.create_flags=function(w,D){var I=0;w&&(I=w.indentation_level,!this._output.just_added_newline()&&w.line_indent_level>I&&(I=w.line_indent_level));var j={mode:D,parent:w,last_token:w?w.last_token:new a(c.START_BLOCK,""),last_word:w?w.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:I,alignment:0,line_indent_level:w?w.line_indent_level:I,start_line_index:this._output.get_line_number(),ternary_depth:0};return j},N.prototype._reset=function(w){var D=w.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new t(this._options,D),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(h.BlockStatement);var I=new n(w,this._options);return this._tokens=I.tokenize(),w},N.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var w,D=this._reset(this._source_text),I=this._options.eol;this._options.eol==="auto"&&(I=`
- `,D&&o.lineBreak.test(D||"")&&(I=D.match(o.lineBreak)[0]));for(var j=this._tokens.next();j;)this.handle_token(j),this._last_last_text=this._flags.last_token.text,this._flags.last_token=j,j=this._tokens.next();return w=this._output.get_code(I),w},N.prototype.handle_token=function(w,D){w.type===c.START_EXPR?this.handle_start_expr(w):w.type===c.END_EXPR?this.handle_end_expr(w):w.type===c.START_BLOCK?this.handle_start_block(w):w.type===c.END_BLOCK?this.handle_end_block(w):w.type===c.WORD?this.handle_word(w):w.type===c.RESERVED?this.handle_word(w):w.type===c.SEMICOLON?this.handle_semicolon(w):w.type===c.STRING?this.handle_string(w):w.type===c.EQUALS?this.handle_equals(w):w.type===c.OPERATOR?this.handle_operator(w):w.type===c.COMMA?this.handle_comma(w):w.type===c.BLOCK_COMMENT?this.handle_block_comment(w,D):w.type===c.COMMENT?this.handle_comment(w,D):w.type===c.DOT?this.handle_dot(w):w.type===c.EOF?this.handle_eof(w):w.type===c.UNKNOWN?this.handle_unknown(w,D):this.handle_unknown(w,D)},N.prototype.handle_whitespace_and_comments=function(w,D){var I=w.newlines,j=this._options.keep_array_indentation&&C(this._flags.mode);if(w.comments_before)for(var R=w.comments_before.next();R;)this.handle_whitespace_and_comments(R,D),this.handle_token(R,D),R=w.comments_before.next();if(j)for(var O=0;O<I;O+=1)this.print_newline(O>0,D);else if(this._options.max_preserve_newlines&&I>this._options.max_preserve_newlines&&(I=this._options.max_preserve_newlines),this._options.preserve_newlines&&I>1){this.print_newline(!1,D);for(var X=1;X<I;X+=1)this.print_newline(!0,D)}};var V=["async","break","continue","return","throw","yield"];return N.prototype.allow_wrap_or_preserved_newline=function(w,D){if(D=D===void 0?!1:D,!this._output.just_added_newline()){var I=this._options.preserve_newlines&&w.newlines||D,j=p(this._flags.last_token.text,f)||p(w.text,f);if(j){var R=p(this._flags.last_token.text,f)&&p(this._options.operator_position,y)||p(w.text,f);I=I&&R}if(I)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(x(this._flags.last_token,V))return;this._output.set_wrap_point()}}},N.prototype.print_newline=function(w,D){if(!D&&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 I=this._tokens.peek();this._flags.mode===h.Statement&&!(this._flags.if_block&&_(I,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(w)&&(this._flags.multiline_frame=!0)},N.prototype.print_token_line_indentation=function(w){this._output.just_added_newline()&&(this._options.keep_array_indentation&&w.newlines&&(w.text==="["||C(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(w.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))},N.prototype.print_token=function(w){if(this._output.raw){this._output.add_raw_token(w);return}if(this._options.comma_first&&w.previous&&w.previous.type===c.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var D=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(D),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(w),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(w),this._output.non_breaking_space=!0,this._output.add_token(w.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},N.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},N.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))},N.prototype.set_mode=function(w){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,w),this._flags=this.create_flags(this._previous_flags,w),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},N.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===h.Statement&&g(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},N.prototype.start_of_object_property=function(){return this._flags.parent.mode===h.ObjectLiteral&&this._flags.mode===h.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||x(this._flags.last_token,["get","set"]))},N.prototype.start_of_statement=function(w){var D=!1;return D=D||x(this._flags.last_token,["var","let","const"])&&w.type===c.WORD,D=D||_(this._flags.last_token,"do"),D=D||!(this._flags.parent.mode===h.ObjectLiteral&&this._flags.mode===h.Statement)&&x(this._flags.last_token,V)&&!w.newlines,D=D||_(this._flags.last_token,"else")&&!(_(w,"if")&&!w.comments_before),D=D||this._flags.last_token.type===c.END_EXPR&&(this._previous_flags.mode===h.ForInitializer||this._previous_flags.mode===h.Conditional),D=D||this._flags.last_token.type===c.WORD&&this._flags.mode===h.BlockStatement&&!this._flags.in_case&&!(w.text==="--"||w.text==="++")&&this._last_last_text!=="function"&&w.type!==c.WORD&&w.type!==c.RESERVED,D=D||this._flags.mode===h.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||x(this._flags.last_token,["get","set"])),D?(this.set_mode(h.Statement),this.indent(),this.handle_whitespace_and_comments(w,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(w,x(w,["do","for","if","while"])),!0):!1},N.prototype.handle_start_expr=function(w){this.start_of_statement(w)||this.handle_whitespace_and_comments(w);var D=h.Expression;if(w.text==="["){if(this._flags.last_token.type===c.WORD||this._flags.last_token.text===")"){x(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(w),this.set_mode(D),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}D=h.ArrayLiteral,C(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()),p(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,D=h.ForInitializer):p(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,D=h.Conditional):p(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&w.whitespace_before===""?this._output.space_before_token=!1:(p(this._flags.last_token.text,l)||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(w);else if(this._flags.last_token.type===c.WORD){this._output.space_before_token=!1;var I=this._tokens.peek(-3);if(this._options.space_after_named_function&&I){var j=this._tokens.peek(-4);x(I,["async","function"])||I.text==="*"&&x(j,["async","function"])?this._output.space_before_token=!0:this._flags.mode===h.ObjectLiteral?(I.text==="{"||I.text===","||I.text==="*"&&(j.text==="{"||j.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(w);(this._flags.last_token.type===c.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(p(this._last_last_text,["function","yield"])||this._flags.mode===h.ObjectLiteral&&p(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(w,w.newlines),this.print_token(w),this.set_mode(D),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},N.prototype.handle_end_expr=function(w){for(;this._flags.mode===h.Statement;)this.restore_mode();this.handle_whitespace_and_comments(w),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(w,w.text==="]"&&C(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(w),this.restore_mode(),g(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===h.Conditional&&(this._previous_flags.mode=h.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},N.prototype.handle_start_block=function(w){this.handle_whitespace_and_comments(w);var D=this._tokens.peek(),I=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===c.END_EXPR?(this.set_mode(h.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(h.BlockStatement):I&&(p(I.text,[":",","])&&p(D.type,[c.STRING,c.WORD,c.RESERVED])||p(D.text,["get","set","..."])&&p(I.type,[c.WORD,c.RESERVED]))?p(this._last_last_text,["class","interface"])&&!p(I.text,[":",","])?this.set_mode(h.BlockStatement):this.set_mode(h.ObjectLiteral):this._flags.last_token.type===c.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(h.BlockStatement):p(this._flags.last_token.type,[c.EQUALS,c.START_EXPR,c.COMMA,c.OPERATOR])||x(this._flags.last_token,["return","throw","import","default"])?this.set_mode(h.ObjectLiteral):this.set_mode(h.BlockStatement),this._flags.last_token&&x(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var j=!D.comments_before&&D.text==="}",R=j&&this._flags.last_word==="function"&&this._flags.last_token.type===c.END_EXPR;if(this._options.brace_preserve_inline){var O=0,X=null;this._flags.inline_frame=!0;do if(O+=1,X=this._tokens.peek(O-1),X.newlines){this._flags.inline_frame=!1;break}while(X.type!==c.EOF&&!(X.type===c.END_BLOCK&&X.opened===w))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&w.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==c.OPERATOR&&(R||this._flags.last_token.type===c.EQUALS||x(this._flags.last_token,k)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(C(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(w),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&&(p(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(w),this.indent(),!j&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},N.prototype.handle_end_block=function(w){for(this.handle_whitespace_and_comments(w);this._flags.mode===h.Statement;)this.restore_mode();var D=this._flags.last_token.type===c.START_BLOCK;this._flags.inline_frame&&!D?this._output.space_before_token=!0:this._options.brace_style==="expand"?D||this.print_newline():D||(C(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(w)},N.prototype.handle_word=function(w){if(w.type===c.RESERVED){if(p(w.text,["set","get"])&&this._flags.mode!==h.ObjectLiteral)w.type=c.WORD;else if(w.text==="import"&&p(this._tokens.peek().text,["(","."]))w.type=c.WORD;else if(p(w.text,["as","from"])&&!this._flags.import_block)w.type=c.WORD;else if(this._flags.mode===h.ObjectLiteral){var D=this._tokens.peek();D.text===":"&&(w.type=c.WORD)}}if(this.start_of_statement(w)?x(this._flags.last_token,["var","let","const"])&&w.type===c.WORD&&(this._flags.declaration_statement=!0):w.newlines&&!S(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||!x(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(w),this.print_newline()):this.handle_whitespace_and_comments(w),this._flags.do_block&&!this._flags.do_while)if(_(w,"while")){this._output.space_before_token=!0,this.print_token(w),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&&_(w,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===h.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&x(w,["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(w),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()&&!(p(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===h.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(w),_(w,"function")){(p(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(p(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===c.OPERATOR))&&!this._output.just_added_blankline()&&!w.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD?x(this._flags.last_token,["get","set","new","export"])||x(this._flags.last_token,V)?this._output.space_before_token=!0:_(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&&(S(this._flags.mode)||C(this._flags.mode))||this.print_newline(),this.print_token(w),this._flags.last_word=w.text;return}var I="NONE";if(this._flags.last_token.type===c.END_BLOCK?this._previous_flags.inline_frame?I="SPACE":x(w,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&w.newlines?I="NEWLINE":(I="SPACE",this._output.space_before_token=!0):I="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&this._flags.mode===h.BlockStatement?I="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&S(this._flags.mode)?I="SPACE":this._flags.last_token.type===c.STRING?I="NEWLINE":this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.last_token.text==="*"&&(p(this._last_last_text,["function","yield"])||this._flags.mode===h.ObjectLiteral&&p(this._last_last_text,["{",","]))?I="SPACE":this._flags.last_token.type===c.START_BLOCK?this._flags.inline_frame?I="SPACE":I="NEWLINE":this._flags.last_token.type===c.END_EXPR&&(this._output.space_before_token=!0,I="NEWLINE"),x(w,l)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?I="SPACE":I="NEWLINE"),x(w,["else","catch","finally"]))if((!(this._flags.last_token.type===c.END_BLOCK&&this._previous_flags.mode===h.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&w.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var j=this._output.current_line;j.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else I==="NEWLINE"?x(this._flags.last_token,k)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&x(w,["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||!x(w,["var","let","const"]))&&this._flags.last_token.text!==":"&&(_(w,"if")&&_(w.previous,"else")?this._output.space_before_token=!0:this.print_newline()):x(w,l)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&C(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():I==="SPACE"&&(this._output.space_before_token=!0);w.previous&&(w.previous.type===c.WORD||w.previous.type===c.RESERVED)&&(this._output.space_before_token=!0),this.print_token(w),this._flags.last_word=w.text,w.type===c.RESERVED&&(w.text==="do"?this._flags.do_block=!0:w.text==="if"?this._flags.if_block=!0:w.text==="import"?this._flags.import_block=!0:this._flags.import_block&&_(w,"from")&&(this._flags.import_block=!1))},N.prototype.handle_semicolon=function(w){this.start_of_statement(w)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(w);for(var D=this._tokens.peek();this._flags.mode===h.Statement&&!(this._flags.if_block&&_(D,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(w)},N.prototype.handle_string=function(w){w.text.startsWith("`")&&w.newlines===0&&w.whitespace_before===""&&(w.previous.text===")"||this._flags.last_token.type===c.WORD)||(this.start_of_statement(w)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(w),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(w):w.text.startsWith("`")&&this._flags.last_token.type===c.END_EXPR&&(w.previous.text==="]"||w.previous.text===")")&&w.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(w)},N.prototype.handle_equals=function(w){this.start_of_statement(w)||this.handle_whitespace_and_comments(w),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(w),this._output.space_before_token=!0},N.prototype.handle_comma=function(w){this.handle_whitespace_and_comments(w,!0),this.print_token(w),this._output.space_before_token=!0,this._flags.declaration_statement?(S(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(w)):this._flags.mode===h.ObjectLiteral||this._flags.mode===h.Statement&&this._flags.parent.mode===h.ObjectLiteral?(this._flags.mode===h.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(w)},N.prototype.handle_operator=function(w){var D=w.text==="*"&&(x(this._flags.last_token,["function","yield"])||p(this._flags.last_token.type,[c.START_BLOCK,c.COMMA,c.END_BLOCK,c.SEMICOLON])),I=p(w.text,["-","+"])&&(p(this._flags.last_token.type,[c.START_BLOCK,c.START_EXPR,c.EQUALS,c.OPERATOR])||p(this._flags.last_token.text,l)||this._flags.last_token.text===",");if(!this.start_of_statement(w)){var j=!D;this.handle_whitespace_and_comments(w,j)}if(w.text==="*"&&this._flags.last_token.type===c.DOT){this.print_token(w);return}if(w.text==="::"){this.print_token(w);return}if(p(w.text,["-","+"])&&this.start_of_object_property()){this.print_token(w);return}if(this._flags.last_token.type===c.OPERATOR&&p(this._options.operator_position,y)&&this.allow_wrap_or_preserved_newline(w),w.text===":"&&this._flags.in_case){this.print_token(w),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 R=!0,O=!0,X=!1;if(w.text===":"?this._flags.ternary_depth===0?R=!1:(this._flags.ternary_depth-=1,X=!0):w.text==="?"&&(this._flags.ternary_depth+=1),!I&&!D&&this._options.preserve_newlines&&p(w.text,f)){var U=w.text===":",Z=U&&X,L=U&&!X;switch(this._options.operator_position){case F.before_newline:this._output.space_before_token=!L,this.print_token(w),(!U||Z)&&this.allow_wrap_or_preserved_newline(w),this._output.space_before_token=!0;return;case F.after_newline:this._output.space_before_token=!0,!U||Z?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(w):this._output.space_before_token=!1,this.print_token(w),this._output.space_before_token=!0;return;case F.preserve_newline:L||this.allow_wrap_or_preserved_newline(w),R=!(this._output.just_added_newline()||L),this._output.space_before_token=R,this.print_token(w),this._output.space_before_token=!0;return}}if(D){this.allow_wrap_or_preserved_newline(w),R=!1;var Q=this._tokens.peek();O=Q&&p(Q.type,[c.WORD,c.RESERVED])}else if(w.text==="...")this.allow_wrap_or_preserved_newline(w),R=this._flags.last_token.type===c.START_BLOCK,O=!1;else if(p(w.text,["--","++","!","~"])||I){if((this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR)&&this.allow_wrap_or_preserved_newline(w),R=!1,O=!1,w.newlines&&(w.text==="--"||w.text==="++"||w.text==="~")){var W=x(this._flags.last_token,k)&&w.newlines;W&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(W,!0)}this._flags.last_token.text===";"&&S(this._flags.mode)&&(R=!0),this._flags.last_token.type===c.RESERVED?R=!0:this._flags.last_token.type===c.END_EXPR?R=!(this._flags.last_token.text==="]"&&(w.text==="--"||w.text==="++")):this._flags.last_token.type===c.OPERATOR&&(R=p(w.text,["--","-","++","+"])&&p(this._flags.last_token.text,["--","-","++","+"]),p(w.text,["+","-"])&&p(this._flags.last_token.text,["--","++"])&&(O=!0)),(this._flags.mode===h.BlockStatement&&!this._flags.inline_frame||this._flags.mode===h.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||R,this.print_token(w),this._output.space_before_token=O},N.prototype.handle_block_comment=function(w,D){if(this._output.raw){this._output.add_raw_token(w),w.directives&&w.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(w.directives){this.print_newline(!1,D),this.print_token(w),w.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!o.newline.test(w.text)&&!w.newlines){this._output.space_before_token=!0,this.print_token(w),this._output.space_before_token=!0;return}else this.print_block_commment(w,D)},N.prototype.print_block_commment=function(w,D){var I=A(w.text),j,R=!1,O=!1,X=w.whitespace_before,U=X.length;if(this.print_newline(!1,D),this.print_token_line_indentation(w),this._output.add_token(I[0]),this.print_newline(!1,D),I.length>1){for(I=I.slice(1),R=B(I,"*"),O=M(I,X),R&&(this._flags.alignment=1),j=0;j<I.length;j++)R?(this.print_token_line_indentation(w),this._output.add_token(m(I[j]))):O&&I[j]?(this.print_token_line_indentation(w),this._output.add_token(I[j].substring(U))):(this._output.current_line.set_indent(-1),this._output.add_token(I[j])),this.print_newline(!1,D);this._flags.alignment=0}},N.prototype.handle_comment=function(w,D){w.newlines?this.print_newline(!1,D):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(w),this.print_newline(!1,D)},N.prototype.handle_dot=function(w){this.start_of_statement(w)||this.handle_whitespace_and_comments(w,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),x(this._flags.last_token,k)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(w,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(w)},N.prototype.handle_unknown=function(w,D){this.print_token(w),w.text[w.text.length-1]===`
- `&&this.print_newline(!1,D)},N.prototype.handle_eof=function(w){for(;this._flags.mode===h.Statement;)this.restore_mode();this.handle_whitespace_and_comments(w)},Vu.Beautifier=N,Vu}var Df;function U_(){if(Df)return Fa.exports;Df=1;var t=z_().Beautifier,a=kp().Options;function o(i,n){var l=new t(i,n);return l.beautify()}return Fa.exports=o,Fa.exports.defaultOptions=function(){return new a},Fa.exports}var Da={exports:{}},$u={},qu={},Bf;function Dp(){if(Bf)return qu;Bf=1;var t=vs().Options;function a(o){t.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 i=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||i;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var l=0;l<n.length;l++)n[l]!=="expand"?this.brace_style="collapse":this.brace_style=n[l]}return a.prototype=new t,qu.Options=a,qu}var Tf;function H_(){if(Tf)return $u;Tf=1;var t=Dp().Options,a=gs().Output,o=_s().InputScanner,i=ys().Directives,n=new i(/\/\*/,/\*\//),l=/\r\n|[\r\n]/,f=/\r\n|[\r\n]/g,c=/\s/,p=/(?:\s|\n)+/g,m=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,v=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function _(x,k){this._source_text=x||"",this._options=new t(k),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 _.prototype.eatString=function(x){var k="";for(this._ch=this._input.next();this._ch;){if(k+=this._ch,this._ch==="\\")k+=this._input.next();else if(x.indexOf(this._ch)!==-1||this._ch===`
- `)break;this._ch=this._input.next()}return k},_.prototype.eatWhitespace=function(x){for(var k=c.test(this._input.peek()),b=0;c.test(this._input.peek());)this._ch=this._input.next(),x&&this._ch===`
- `&&(b===0||b<this._options.max_preserve_newlines)&&(b++,this._output.add_new_line(!0));return k},_.prototype.foundNestedPseudoClass=function(){for(var x=0,k=1,b=this._input.peek(k);b;){if(b==="{")return!0;if(b==="(")x+=1;else if(b===")"){if(x===0)return!1;x-=1}else if(b===";"||b==="}")return!1;k++,b=this._input.peek(k)}return!1},_.prototype.print_string=function(x){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(x)},_.prototype.preserveSingleSpace=function(x){x&&(this._output.space_before_token=!0)},_.prototype.indent=function(){this._indentLevel++},_.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},_.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var x=this._source_text,k=this._options.eol;k==="auto"&&(k=`
- `,x&&l.test(x||"")&&(k=x.match(l)[0])),x=x.replace(f,`
- `);var b=x.match(/^[\t ]*/)[0];this._output=new a(this._options,b),this._input=new o(x),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var F=0,y=!1,h=!1,g=!1,A=!1,C=!1,S=this._ch,B=!1,M,N,V;M=this._input.read(p),N=M!=="",V=S,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),S=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var w=this._input.read(m),D=n.get_directives(w);D&&D.ignore==="start"&&(w+=n.readIgnored(this._input)),this.print_string(w),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(v)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(N),this.print_string(this._ch);var I=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);I.match(/[ :]$/)&&(I=this.eatString(": ").replace(/\s+$/,""),this.print_string(I),this._output.space_before_token=!0),F===0&&I.indexOf(":")!==-1&&(h=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(N),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var j=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);j.match(/[ :]$/)&&(j=this.eatString(": ").replace(/\s+$/,""),this.print_string(j),this._output.space_before_token=!0),F===0&&j.indexOf(":")!==-1?(h=!0,this.indent()):j in this.NESTED_AT_RULE?(this._nestedLevel+=1,j in this.CONDITIONAL_GROUP_RULE&&(g=!0)):F===0&&!h&&(A=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(N),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")h&&(h=!1,this.outdent()),A=!1,g?(g=!1,y=this._indentLevel>=this._nestedLevel):y=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&y&&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)):(V==="("?this._output.space_before_token=!1:V!==","&&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(),V==="{"&&this._output.trim(!0),h&&(this.outdent(),h=!1),this.print_string(this._ch),y=!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 R=0;R<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;R++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[R])){B=!0;break}(y||g)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!A&&F===0?(this.print_string(":"),h||(h=!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 O=V==='"'||V==="'";this.preserveSingleSpace(O||N),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")B=!1,F===0?(h&&(this.outdent(),h=!1),A=!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(),F++,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(")")),F&&(F--,this.outdent()));else{var X=!1;this._input.lookBack("with")&&(X=!0),this.preserveSingleSpace(N||X),this.print_string(this._ch),h&&V==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),C=!0):(this.eatWhitespace(),F++,this.indent())}else if(this._ch===")")F&&(F--,this.outdent()),C&&this._input.peek()===";"&&this._options.selector_separator_newline&&(C=!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&&(!h||C)&&F===0&&!A?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!h&&F===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(N),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 U=V==='"'||V==="'";this.preserveSingleSpace(U||N),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
- `&&B&&this._output.add_new_line()}var Z=this._output.get_code(k);return Z},$u.Beautifier=_,$u}var Rf;function W_(){if(Rf)return Da.exports;Rf=1;var t=H_().Beautifier,a=Dp().Options;function o(i,n){var l=new t(i,n);return l.beautify()}return Da.exports=o,Da.exports.defaultOptions=function(){return new a},Da.exports}var Ba={exports:{}},Ju={},Ku={},Mf;function Bp(){if(Mf)return Ku;Mf=1;var t=vs().Options;function a(o){t.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 a.prototype=new t,Ku.Options=a,Ku}var Ta={},Nf;function Of(){if(Nf)return Ta;Nf=1;var t=Wa().Tokenizer,a=Wa().TOKEN,o=ys().Directives,i=Sp().TemplatablePattern,n=qa().Pattern,l={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:a.START,RAW:a.RAW,EOF:a.EOF},f=new o(/<\!--/,/-->/),c=function(p,m){t.call(this,p,m),this._current_tag_name="";var v=new i(this._input).read_options(this._options),_=new n(this._input);if(this.__patterns={word:v.until(/[\n\r\t <]/),word_control_flow_close_excluded:v.until(/[\n\r\t <}]/),single_quote:v.until_after(/'/),double_quote:v.until_after(/"/),attribute:v.until(/[\n\r\t =>]|\/>/),element_name:v.until(/[\n\r\t >\/]/),angular_control_flow_start:_.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:_.starting_with(/{{!--/).until_after(/--}}/),handlebars:_.starting_with(/{{/).until_after(/}}/),handlebars_open:_.until(/[\n\r\t }]/),handlebars_raw_close:_.until(/}}/),comment:_.starting_with(/<!--/).until_after(/-->/),cdata:_.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:_.starting_with(/<!\[/).until_after(/]>/),processing:_.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 x=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=_.matching(x).until_after(x)}};return c.prototype=new t,c.prototype._is_comment=function(p){return!1},c.prototype._is_opening=function(p){return p.type===l.TAG_OPEN||p.type===l.CONTROL_FLOW_OPEN},c.prototype._is_closing=function(p,m){return p.type===l.TAG_CLOSE&&m&&((p.text===">"||p.text==="/>")&&m.text[0]==="<"||p.text==="}}"&&m.text[0]==="{"&&m.text[1]==="{")||p.type===l.CONTROL_FLOW_CLOSE&&p.text==="}"&&m.text.endsWith("{")},c.prototype._reset=function(){this._current_tag_name=""},c.prototype._get_next_token=function(p,m){var v=null;this._readWhitespace();var _=this._input.peek();return _===null?this._create_token(l.EOF,""):(v=v||this._read_open_handlebars(_,m),v=v||this._read_attribute(_,p,m),v=v||this._read_close(_,m),v=v||this._read_script_and_style(_,p),v=v||this._read_control_flows(_,m),v=v||this._read_raw_content(_,p,m),v=v||this._read_content_word(_,m),v=v||this._read_comment_or_cdata(_),v=v||this._read_processing(_),v=v||this._read_open(_,m),v=v||this._create_token(l.UNKNOWN,this._input.next()),v)},c.prototype._read_comment_or_cdata=function(p){var m=null,v=null,_=null;if(p==="<"){var x=this._input.peek(1);x==="!"&&(v=this.__patterns.comment.read(),v?(_=f.get_directives(v),_&&_.ignore==="start"&&(v+=f.readIgnored(this._input))):v=this.__patterns.cdata.read()),v&&(m=this._create_token(l.COMMENT,v),m.directives=_)}return m},c.prototype._read_processing=function(p){var m=null,v=null,_=null;if(p==="<"){var x=this._input.peek(1);(x==="!"||x==="?")&&(v=this.__patterns.conditional_comment.read(),v=v||this.__patterns.processing.read()),v&&(m=this._create_token(l.COMMENT,v),m.directives=_)}return m},c.prototype._read_open=function(p,m){var v=null,_=null;return(!m||m.type===l.CONTROL_FLOW_OPEN)&&p==="<"&&(v=this._input.next(),this._input.peek()==="/"&&(v+=this._input.next()),v+=this.__patterns.element_name.read(),_=this._create_token(l.TAG_OPEN,v)),_},c.prototype._read_open_handlebars=function(p,m){var v=null,_=null;return(!m||m.type===l.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&p==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(v=this.__patterns.handlebars_comment.read(),v=v||this.__patterns.handlebars.read(),_=this._create_token(l.COMMENT,v)):(v=this.__patterns.handlebars_open.read(),_=this._create_token(l.TAG_OPEN,v))),_},c.prototype._read_control_flows=function(p,m){var v="",_=null;if(!this._options.templating.includes("angular"))return _;if(p==="@"){if(v=this.__patterns.angular_control_flow_start.read(),v==="")return _;for(var x=v.endsWith("(")?1:0,k=0;!(v.endsWith("{")&&x===k);){var b=this._input.next();if(b===null)break;b==="("?x++:b===")"&&k++,v+=b}_=this._create_token(l.CONTROL_FLOW_OPEN,v)}else p==="}"&&m&&m.type===l.CONTROL_FLOW_OPEN&&(v=this._input.next(),_=this._create_token(l.CONTROL_FLOW_CLOSE,v));return _},c.prototype._read_close=function(p,m){var v=null,_=null;return m&&m.type===l.TAG_OPEN&&(m.text[0]==="<"&&(p===">"||p==="/"&&this._input.peek(1)===">")?(v=this._input.next(),p==="/"&&(v+=this._input.next()),_=this._create_token(l.TAG_CLOSE,v)):m.text[0]==="{"&&p==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),_=this._create_token(l.TAG_CLOSE,"}}"))),_},c.prototype._read_attribute=function(p,m,v){var _=null,x="";if(v&&v.text[0]==="<")if(p==="=")_=this._create_token(l.EQUALS,this._input.next());else if(p==='"'||p==="'"){var k=this._input.next();p==='"'?k+=this.__patterns.double_quote.read():k+=this.__patterns.single_quote.read(),_=this._create_token(l.VALUE,k)}else x=this.__patterns.attribute.read(),x&&(m.type===l.EQUALS?_=this._create_token(l.VALUE,x):_=this._create_token(l.ATTRIBUTE,x));return _},c.prototype._is_content_unformatted=function(p){return this._options.void_elements.indexOf(p)===-1&&(this._options.content_unformatted.indexOf(p)!==-1||this._options.unformatted.indexOf(p)!==-1)},c.prototype._read_raw_content=function(p,m,v){var _="";if(v&&v.text[0]==="{")_=this.__patterns.handlebars_raw_close.read();else if(m.type===l.TAG_CLOSE&&m.opened.text[0]==="<"&&m.text[0]!=="/"){var x=m.opened.text.substr(1).toLowerCase();this._is_content_unformatted(x)&&(_=this._input.readUntil(new RegExp("</"+x+"[\\n\\r\\t ]*?>","ig")))}return _?this._create_token(l.TEXT,_):null},c.prototype._read_script_and_style=function(p,m){if(m.type===l.TAG_CLOSE&&m.opened.text[0]==="<"&&m.text[0]!=="/"){var v=m.opened.text.substr(1).toLowerCase();if(v==="script"||v==="style"){var _=this._read_comment_or_cdata(p);if(_)return _.type=l.TEXT,_;var x=this._input.readUntil(new RegExp("</"+v+"[\\n\\r\\t ]*?>","ig"));if(x)return this._create_token(l.TEXT,x)}}return null},c.prototype._read_content_word=function(p,m){var v="";return this._options.unformatted_content_delimiter&&p===this._options.unformatted_content_delimiter[0]&&(v=this.__patterns.unformatted_content_delimiter.read()),v||(v=m&&m.type===l.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),v?this._create_token(l.TEXT,v):null},Ta.Tokenizer=c,Ta.TOKEN=l,Ta}var If;function Q_(){if(If)return Ju;If=1;var t=Bp().Options,a=gs().Output,o=Of().Tokenizer,i=Of().TOKEN,n=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,f=function(y,h){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=y.max_preserve_newlines,this.preserve_newlines=y.preserve_newlines,this._output=new a(y,h)};f.prototype.current_line_has_match=function(y){return this._output.current_line.has_match(y)},f.prototype.set_space_before_token=function(y,h){this._output.space_before_token=y,this._output.non_breaking_space=h},f.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},f.prototype.add_raw_token=function(y){this._output.add_raw_token(y)},f.prototype.print_preserved_newlines=function(y){var h=0;y.type!==i.TEXT&&y.previous.type!==i.TEXT&&(h=y.newlines?1:0),this.preserve_newlines&&(h=y.newlines<this.max_preserve_newlines+1?y.newlines:this.max_preserve_newlines+1);for(var g=0;g<h;g++)this.print_newline(g>0);return h!==0},f.prototype.traverse_whitespace=function(y){return y.whitespace_before||y.newlines?(this.print_preserved_newlines(y)||(this._output.space_before_token=!0),!0):!1},f.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},f.prototype.print_newline=function(y){this._output.add_new_line(y)},f.prototype.print_token=function(y){y.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(y.text))},f.prototype.indent=function(){this.indent_level++},f.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},f.prototype.get_full_indent=function(y){return y=this.indent_level+(y||0),y<1?"":this._output.get_indent_string(y)};var c=function(y){for(var h=null,g=y.next;g.type!==i.EOF&&y.closed!==g;){if(g.type===i.ATTRIBUTE&&g.text==="type"){g.next&&g.next.type===i.EQUALS&&g.next.next&&g.next.next.type===i.VALUE&&(h=g.next.next.text);break}g=g.next}return h},p=function(y,h){var g=null,A=null;return h.closed?(y==="script"?g="text/javascript":y==="style"&&(g="text/css"),g=c(h)||g,g.search("text/css")>-1?A="css":g.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?A="javascript":g.search(/(text|application|dojo)\/(x-)?(html)/)>-1?A="html":g.search(/test\/null/)>-1&&(A="null"),A):null};function m(y,h){return h.indexOf(y)!==-1}function v(y,h,g){this.parent=y||null,this.tag=h?h.tag_name:"",this.indent_level=g||0,this.parser_token=h||null}function _(y){this._printer=y,this._current_frame=null}_.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},_.prototype.record_tag=function(y){var h=new v(this._current_frame,y,this._printer.indent_level);this._current_frame=h},_.prototype._try_pop_frame=function(y){var h=null;return y&&(h=y.parser_token,this._printer.indent_level=y.indent_level,this._current_frame=y.parent),h},_.prototype._get_frame=function(y,h){for(var g=this._current_frame;g&&y.indexOf(g.tag)===-1;){if(h&&h.indexOf(g.tag)!==-1){g=null;break}g=g.parent}return g},_.prototype.try_pop=function(y,h){var g=this._get_frame([y],h);return this._try_pop_frame(g)},_.prototype.indent_to_tag=function(y){var h=this._get_frame(y);h&&(this._printer.indent_level=h.indent_level)};function x(y,h,g,A){this._source_text=y||"",h=h||{},this._js_beautify=g,this._css_beautify=A,this._tag_stack=null;var C=new t(h,"html");this._options=C,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"}x.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var y=this._source_text,h=this._options.eol;this._options.eol==="auto"&&(h=`
- `,y&&n.test(y)&&(h=y.match(n)[0])),y=y.replace(l,`
- `);var g=y.match(/^[\t ]*/)[0],A={text:"",type:""},C=new k(this._options),S=new f(this._options,g),B=new o(y,this._options).tokenize();this._tag_stack=new _(S);for(var M=null,N=B.next();N.type!==i.EOF;)N.type===i.TAG_OPEN||N.type===i.COMMENT?(M=this._handle_tag_open(S,N,C,A,B),C=M):N.type===i.ATTRIBUTE||N.type===i.EQUALS||N.type===i.VALUE||N.type===i.TEXT&&!C.tag_complete?M=this._handle_inside_tag(S,N,C,A):N.type===i.TAG_CLOSE?M=this._handle_tag_close(S,N,C):N.type===i.TEXT?M=this._handle_text(S,N,C):N.type===i.CONTROL_FLOW_OPEN?M=this._handle_control_flow_open(S,N):N.type===i.CONTROL_FLOW_CLOSE?M=this._handle_control_flow_close(S,N):S.add_raw_token(N),A=M,N=B.next();var V=S._output.get_code(h);return V},x.prototype._handle_control_flow_open=function(y,h){var g={text:h.text,type:h.type};return y.set_space_before_token(h.newlines||h.whitespace_before!=="",!0),h.newlines?y.print_preserved_newlines(h):y.set_space_before_token(h.newlines||h.whitespace_before!=="",!0),y.print_token(h),y.indent(),g},x.prototype._handle_control_flow_close=function(y,h){var g={text:h.text,type:h.type};return y.deindent(),h.newlines?y.print_preserved_newlines(h):y.set_space_before_token(h.newlines||h.whitespace_before!=="",!0),y.print_token(h),g},x.prototype._handle_tag_close=function(y,h,g){var A={text:h.text,type:h.type};return y.alignment_size=0,g.tag_complete=!0,y.set_space_before_token(h.newlines||h.whitespace_before!=="",!0),g.is_unformatted?y.add_raw_token(h):(g.tag_start_char==="<"&&(y.set_space_before_token(h.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&g.has_wrapped_attrs&&y.print_newline(!1)),y.print_token(h)),g.indent_content&&!(g.is_unformatted||g.is_content_unformatted)&&(y.indent(),g.indent_content=!1),!g.is_inline_element&&!(g.is_unformatted||g.is_content_unformatted)&&y.set_wrap_point(),A},x.prototype._handle_inside_tag=function(y,h,g,A){var C=g.has_wrapped_attrs,S={text:h.text,type:h.type};return y.set_space_before_token(h.newlines||h.whitespace_before!=="",!0),g.is_unformatted?y.add_raw_token(h):g.tag_start_char==="{"&&h.type===i.TEXT?y.print_preserved_newlines(h)?(h.newlines=0,y.add_raw_token(h)):y.print_token(h):(h.type===i.ATTRIBUTE?y.set_space_before_token(!0):(h.type===i.EQUALS||h.type===i.VALUE&&h.previous.type===i.EQUALS)&&y.set_space_before_token(!1),h.type===i.ATTRIBUTE&&g.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(y.traverse_whitespace(h),C=C||h.newlines!==0),this._is_wrap_attributes_force&&g.attr_count>=this._options.wrap_attributes_min_attrs&&(A.type!==i.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(y.print_newline(!1),C=!0)),y.print_token(h),C=C||y.previous_token_wrapped(),g.has_wrapped_attrs=C),S},x.prototype._handle_text=function(y,h,g){var A={text:h.text,type:"TK_CONTENT"};return g.custom_beautifier_name?this._print_custom_beatifier_text(y,h,g):g.is_unformatted||g.is_content_unformatted?y.add_raw_token(h):(y.traverse_whitespace(h),y.print_token(h)),A},x.prototype._print_custom_beatifier_text=function(y,h,g){var A=this;if(h.text!==""){var C=h.text,S,B=1,M="",N="";g.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?S=this._js_beautify:g.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?S=this._css_beautify:g.custom_beautifier_name==="html"&&(S=function(R,O){var X=new x(R,O,A._js_beautify,A._css_beautify);return X.beautify()}),this._options.indent_scripts==="keep"?B=0:this._options.indent_scripts==="separate"&&(B=-y.indent_level);var V=y.get_full_indent(B);if(C=C.replace(/\n[ \t]*$/,""),g.custom_beautifier_name!=="html"&&C[0]==="<"&&C.match(/^(<!--|<!\[CDATA\[)/)){var w=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(C);if(!w){y.add_raw_token(h);return}M=V+w[1]+`
- `,C=w[4],w[5]&&(N=V+w[5]),C=C.replace(/\n[ \t]*$/,""),(w[2]||w[3].indexOf(`
- `)!==-1)&&(w=w[3].match(/[ \t]+$/),w&&(h.whitespace_before=w[0]))}if(C)if(S){var D=function(){this.eol=`
- `};D.prototype=this._options.raw_options;var I=new D;C=S(V+C,I)}else{var j=h.whitespace_before;j&&(C=C.replace(new RegExp(`
- (`+j+")?","g"),`
- `)),C=V+C.replace(/\n/g,`
- `+V)}M&&(C?C=M+C+`
- `+N:C=M+N),y.print_newline(!1),C&&(h.text=C,h.whitespace_before="",h.newlines=0,y.add_raw_token(h),y.print_newline(!0))}},x.prototype._handle_tag_open=function(y,h,g,A,C){var S=this._get_tag_open_token(h);if((g.is_unformatted||g.is_content_unformatted)&&!g.is_empty_element&&h.type===i.TAG_OPEN&&!S.is_start_tag?(y.add_raw_token(h),S.start_tag_token=this._tag_stack.try_pop(S.tag_name)):(y.traverse_whitespace(h),this._set_tag_position(y,h,S,g,A),S.is_inline_element||y.set_wrap_point(),y.print_token(h)),S.is_start_tag&&this._is_wrap_attributes_force){var B=0,M;do M=C.peek(B),M.type===i.ATTRIBUTE&&(S.attr_count+=1),B+=1;while(M.type!==i.EOF&&M.type!==i.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(S.alignment_size=h.text.length+1),!S.tag_complete&&!S.is_unformatted&&(y.alignment_size=S.alignment_size),S};var k=function(y,h,g){if(this.parent=h||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="",!g)this.tag_complete=!0;else{var A;this.tag_start_char=g.text[0],this.text=g.text,this.tag_start_char==="<"?(A=g.text.match(/^<([^\s>]*)/),this.tag_check=A?A[1]:""):(A=g.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=A?A[1]:"",(g.text.startsWith("{{#>")||g.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&g.next!==null?this.tag_check=g.next.text.split(" ")[0]:this.tag_check=g.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),g.type===i.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||g.closed&&g.closed.text==="/>";var C=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(C=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!y.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(C)))}};x.prototype._get_tag_open_token=function(y){var h=new k(this._options,this._tag_stack.get_parser_token(),y);return h.alignment_size=this._options.wrap_attributes_indent_size,h.is_end_tag=h.is_end_tag||m(h.tag_check,this._options.void_elements),h.is_empty_element=h.tag_complete||h.is_start_tag&&h.is_end_tag,h.is_unformatted=!h.tag_complete&&m(h.tag_check,this._options.unformatted),h.is_content_unformatted=!h.is_empty_element&&m(h.tag_check,this._options.content_unformatted),h.is_inline_element=m(h.tag_name,this._options.inline)||this._options.inline_custom_elements&&h.tag_name.includes("-")||h.tag_start_char==="{",h},x.prototype._set_tag_position=function(y,h,g,A,C){if(g.is_empty_element||(g.is_end_tag?g.start_tag_token=this._tag_stack.try_pop(g.tag_name):(this._do_optional_end_element(g)&&(g.is_inline_element||y.print_newline(!1)),this._tag_stack.record_tag(g),(g.tag_name==="script"||g.tag_name==="style")&&!(g.is_unformatted||g.is_content_unformatted)&&(g.custom_beautifier_name=p(g.tag_check,h)))),m(g.tag_check,this._options.extra_liners)&&(y.print_newline(!1),y._output.just_added_blankline()||y.print_newline(!0)),g.is_empty_element){if(g.tag_start_char==="{"&&g.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),g.indent_content=!0;var S=y.current_line_has_match(/{{#if/);S||y.print_newline(!1)}g.tag_name==="!--"&&C.type===i.TAG_CLOSE&&A.is_end_tag&&g.text.indexOf(`
- `)===-1||(g.is_inline_element||g.is_unformatted||y.print_newline(!1),this._calcluate_parent_multiline(y,g))}else if(g.is_end_tag){var B=!1;B=g.start_tag_token&&g.start_tag_token.multiline_content,B=B||!g.is_inline_element&&!(A.is_inline_element||A.is_unformatted)&&!(C.type===i.TAG_CLOSE&&g.start_tag_token===A)&&C.type!=="TK_CONTENT",(g.is_content_unformatted||g.is_unformatted)&&(B=!1),B&&y.print_newline(!1)}else g.indent_content=!g.custom_beautifier_name,g.tag_start_char==="<"&&(g.tag_name==="html"?g.indent_content=this._options.indent_inner_html:g.tag_name==="head"?g.indent_content=this._options.indent_head_inner_html:g.tag_name==="body"&&(g.indent_content=this._options.indent_body_inner_html)),!(g.is_inline_element||g.is_unformatted)&&(C.type!=="TK_CONTENT"||g.is_content_unformatted)&&y.print_newline(!1),this._calcluate_parent_multiline(y,g)},x.prototype._calcluate_parent_multiline=function(y,h){h.parent&&y._output.just_added_newline()&&!((h.is_inline_element||h.is_unformatted)&&h.parent.is_inline_element)&&(h.parent.multiline_content=!0)};var b=["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"],F=["a","audio","del","ins","map","noscript","video"];return x.prototype._do_optional_end_element=function(y){var h=null;if(!(y.is_empty_element||!y.is_start_tag||!y.parent)){if(y.tag_name==="body")h=h||this._tag_stack.try_pop("head");else if(y.tag_name==="li")h=h||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(y.tag_name==="dd"||y.tag_name==="dt")h=h||this._tag_stack.try_pop("dt",["dl"]),h=h||this._tag_stack.try_pop("dd",["dl"]);else if(y.parent.tag_name==="p"&&b.indexOf(y.tag_name)!==-1){var g=y.parent.parent;(!g||F.indexOf(g.tag_name)===-1)&&(h=h||this._tag_stack.try_pop("p"))}else y.tag_name==="rp"||y.tag_name==="rt"?(h=h||this._tag_stack.try_pop("rt",["ruby","rtc"]),h=h||this._tag_stack.try_pop("rp",["ruby","rtc"])):y.tag_name==="optgroup"?h=h||this._tag_stack.try_pop("optgroup",["select"]):y.tag_name==="option"?h=h||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):y.tag_name==="colgroup"?h=h||this._tag_stack.try_pop("caption",["table"]):y.tag_name==="thead"?(h=h||this._tag_stack.try_pop("caption",["table"]),h=h||this._tag_stack.try_pop("colgroup",["table"])):y.tag_name==="tbody"||y.tag_name==="tfoot"?(h=h||this._tag_stack.try_pop("caption",["table"]),h=h||this._tag_stack.try_pop("colgroup",["table"]),h=h||this._tag_stack.try_pop("thead",["table"]),h=h||this._tag_stack.try_pop("tbody",["table"])):y.tag_name==="tr"?(h=h||this._tag_stack.try_pop("caption",["table"]),h=h||this._tag_stack.try_pop("colgroup",["table"]),h=h||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(y.tag_name==="th"||y.tag_name==="td")&&(h=h||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),h=h||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return y.parent=this._tag_stack.get_parser_token(),h}},Ju.Beautifier=x,Ju}var Lf;function X_(){if(Lf)return Ba.exports;Lf=1;var t=Q_().Beautifier,a=Bp().Options;function o(i,n,l,f){var c=new t(i,n,l,f);return c.beautify()}return Ba.exports=o,Ba.exports.defaultOptions=function(){return new a},Ba.exports}var Pf;function Y_(){if(Pf)return go;Pf=1;var t=U_(),a=W_(),o=X_();function i(n,l,f,c){return f=f||t,c=c||a,o(n,l,f,c)}return i.defaultOptions=o.defaultOptions,go.js=t,go.css=a,go.html=i,go}(function(t){function a(o,i,n){var l=function(f,c){return o.js_beautify(f,c)};return l.js=o.js_beautify,l.css=i.css_beautify,l.html=n.html_beautify,l.js_beautify=o.js_beautify,l.css_beautify=i.css_beautify,l.html_beautify=n.html_beautify,l}(function(o){var i=Y_();i.js_beautify=i.js,i.css_beautify=i.css,i.html_beautify=i.html,o.exports=a(i,i,i)})(t)})(Ep);const Tp=Ep.exports,G_=tt({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!dt.empty(this.modelValue)&&Object.keys(this.modelValue).length>0}},data(){return{editor:null,visible:!1,oldVal:null}},watch:{modelValue(){this.load()},visible(t){t&&this.load()}},methods:{load(){const t=dr(Yf(this.modelValue?Nt(this.modelValue):this.defaultValue));this.oldVal=t,this.$nextTick(()=>{this.editor=Zr(Ni(this.$refs.editor,{lineNumbers:!0,mode:"javascript",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:t?Tp.js(t,{indent_size:"2",indent_char:" ",max_preserve_newlines:"5",indent_scripts:"separate"}):""}))})},onOk(){const t=(this.editor.getValue()||"").trim();let a;try{a=new Function("return "+t)()}catch(o){return console.error(o),jn(this.t("struct.errorMsg")),!1}return this.validate&&this.validate(a)===!1?(jn(this.t("struct.errorMsg")),!1):(this.visible=!1,dr(a)!==this.oldVal&&this.$emit("update:modelValue",a),!0)}}}),$_={class:"_fd-struct"},q_={key:0,ref:"editor"};function J_(t,a,o,i,n,l){const f=de("el-button"),c=de("el-badge"),p=de("el-dialog");return ie(),ge("div",$_,[ee(c,{type:"warning","is-dot":"",hidden:!t.configured},{default:q(()=>[re("div",{onClick:a[0]||(a[0]=m=>t.visible=!0)},[qt(t.$slots,"default",{},()=>[ee(f,{class:"_fd-plain-button",plain:"",size:"small"},{default:q(()=>[ke(ve(t.title||t.t("struct.title")),1)]),_:1})])])]),_:3},8,["hidden"]),ee(p,{class:"_fd-struct-con",title:t.title||t.t("struct.title"),modelValue:t.visible,"onUpdate:modelValue":a[2]||(a[2]=m=>t.visible=m),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"800px"},{footer:q(()=>[re("div",null,[ee(f,{onClick:a[1]||(a[1]=m=>t.visible=!1),size:"default"},{default:q(()=>[ke(ve(t.t("props.cancel")),1)]),_:1}),ee(f,{type:"primary",onClick:t.onOk,size:"default",color:"#2f73ff"},{default:q(()=>[ke(ve(t.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:q(()=>[t.visible?(ie(),ge("div",q_,null,512)):Ne("",!0)]),_:1},8,["title","modelValue"])])}const Rp=nt(G_,[["render",J_]]),K_=Object.assign||function(t){for(let a,o=1;o<arguments.length;o++)for(let i in a=arguments[o],a)Object.prototype.hasOwnProperty.call(a,i)&&Ma(t,i,a[i]);return t};function Z_(){return K_.apply(this,arguments)}function ey(t){return typeof t!="object"||t===null?t:t instanceof Array?[...t]:{...t}}const ty=tt({name:"PropsInput",components:{Struct:Rp},inject:["designer"],data(){return{}},computed:{t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},props(){var t;const a=((t=this.activeRule._fc_store)==null?void 0:t.props_keys)||[],o={};return a.forEach(i=>{this.activeRule.props&&this.activeRule.props[i]&&(o[i]=this.activeRule.props[i])}),o}},methods:{onInput(t){this.activeRule.props||(this.activeRule.props={}),this.activeRule._fc_store||(this.activeRule._fc_store={}),Object.keys(this.props).forEach(o=>{(t||{})[o]==null&&delete this.activeRule.props[o]}),Z_(this.activeRule.props,t||{});const a=Object.keys(t||{});a.length?this.activeRule._fc_store.props_keys=a:delete this.activeRule._fc_store.props_keys}}});function ny(t,a,o,i,n,l){const f=de("Struct");return ie(),Fe(f,{class:"_fd-props-input",modelValue:t.props,"onUpdate:modelValue":t.onInput,title:t.t("designer.customProps")},{default:q(()=>a[0]||(a[0]=[re("i",{class:"fc-icon icon-edit"},null,-1)])),_:1},8,["modelValue","onUpdate:modelValue","title"])}const ry=nt(ty,[["render",ny]]),iy=tt({name:"LanguageConfig",inject:["designer"],computed:{localeOptions(){return this.designer.setupState.getConfig("localeOptions",[{value:"zh-cn",label:"简体中文"},{value:"en",label:"English"}])},t(){return this.designer.setupState.t}},data(){return{column:[],uni:0,selected:[]}},methods:{copy(t){Kr(t)},addColumn(){this.column.unshift({key:this.randomString(),input:!0})},saveColumn(t,a){t.input=a||!1;const o=this.designer.setupState.formOptions.language;this.localeOptions.forEach(i=>{o[i.value]||(o[i.value]={}),o[i.value][t.key]=t[i.value]})},rmColumn(t){const a=this.column[t];this.column.splice(t,1);const o=this.designer.setupState.formOptions.language;this.localeOptions.forEach(i=>{o[i.value]&&delete o[i.value][a.key]})},batchRmColumn(){this.selected.forEach(t=>{this.rmColumn(this.column.indexOf(t))}),this.selected=[]},selectionChange(t){this.selected=t},randomString(){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let a="";const o=t.length;for(let i=0;i<7;i++)a+=t.charAt(Math.floor(Math.random()*o));return t.charAt(this.uni++%26)+a}},mounted(){const t=this.designer.setupState.formOptions.language||{},a={};Object.keys(t).forEach(o=>{Object.keys(t[o]).forEach(i=>{a[i]||(a[i]={key:i}),a[i][o]=t[o][i]})}),this.column=Object.values(a)}}),oy={class:"_fd-language-config"},ay={class:"_fc-l-label"},ly={class:"_fc-l-info"},uy={class:"_fd-lc-header"},sy={class:"_fd-lc-body"},cy={class:"_fd-lc-handle"},dy=["onClick"],fy=["onClick"],py=["onClick"],hy=["onClick"];function my(t,a,o,i,n,l){const f=de("el-button"),c=de("el-table-column"),p=de("el-input"),m=de("el-table");return ie(),ge("div",oy,[re("div",ay,ve(t.t("language.name")),1),re("div",ly,ve(t.t("warning.language")),1),re("div",uy,[ee(f,{size:"small",onClick:t.addColumn},{default:q(()=>[ke(ve(t.t("language.add")),1)]),_:1},8,["onClick"]),ee(f,{size:"small",type:"danger",plain:"",disabled:!t.selected.length,onClick:t.batchRmColumn},{default:q(()=>[ke(ve(t.t("language.batchRemove")),1)]),_:1},8,["disabled","onClick"])]),re("div",sy,[ee(m,{data:t.column,size:"small",ref:"table",onSelectionChange:t.selectionChange,"row-key":"key"},{default:q(()=>[ee(c,{type:"selection",width:"30px"}),ee(c,{prop:"key",label:"Key",width:"90px"}),(ie(!0),ge(ze,null,lt(t.localeOptions,v=>(ie(),Fe(c,{key:v.value,prop:v.value,label:v.label,"min-width":"100px"},{default:q(_=>[_.row.input?(ie(),Fe(p,{key:0,size:"small",modelValue:_.row[v.value],"onUpdate:modelValue":x=>_.row[v.value]=x,onBlur:x=>t.saveColumn(_.row,!0)},null,8,["modelValue","onUpdate:modelValue","onBlur"])):(ie(),ge(ze,{key:1},[ke(ve(_.row[v.value]||"-"),1)],64))]),_:2},1032,["prop","label"]))),128)),ee(c,{width:"75px",label:t.t("tableOptions.handle"),fixed:"right"},{default:q(v=>[re("div",cy,[v.row.input?(ie(),ge("i",{key:1,class:"fc-icon icon-check",onClick:_=>t.saveColumn(v.row)},null,8,fy)):(ie(),ge("i",{key:0,class:"fc-icon icon-edit",onClick:_=>v.row.input=!0},null,8,dy)),re("i",{class:"fc-icon icon-group",onClick:_=>t.copy(v.row.key)},null,8,py),re("i",{class:"fc-icon icon-delete-circle",onClick:_=>t.rmColumn(v.$index)},null,8,hy)])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"])])])}const gy=nt(iy,[["render",my]]),vy=tt({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(t){if(this.editor){const a=t?this.toJson(t):"";this.oldVal=a;const o=this.editor.getScrollInfo().top;this.editor.setValue(a),this.editor.scrollTo(0,o)}}},mounted(){this.$nextTick(()=>{this.load()})},methods:{toJson(t){return this.format?Ke.toJson(t,2):dr(t)},load(){const t=this.modelValue?this.toJson(this.modelValue):"";this.oldVal=t,this.$nextTick(()=>{this.editor=Zr(Ni(this.$refs.editor,{lineNumbers:!0,mode:"javascript",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:t?Tp.js(t,{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 t=(this.editor.getValue()||"").trim();let a;try{a=new Function("return "+t)()}catch(o){return console.error(o),jn(this.t("struct.errorMsg")),!1}return this.validate&&this.validate(a)===!1?(this.err=!0,!1):(this.visible=!1,this.toJson(a)!==this.oldVal&&this.$emit("update:modelValue",a),!0)}}}),_y={class:"_fd-struct-editor"},yy={ref:"editor"};function by(t,a,o,i,n,l){return ie(),ge("div",_y,[re("div",yy,null,512)])}const Mp=nt(vy,[["render",by]]),Ay=tt({name:"JsonPreview",components:{StructEditor:Mp},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=Ke.toJson(this.value)},handleBlur(){this.$refs.editor.save()&&Ke.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 xy(t,a,o,i,n,l){const f=de("el-header"),c=de("StructEditor"),p=de("el-main"),m=de("el-container");return ie(),Fe(m,{class:"_fc-json-preview"},{default:q(()=>[ee(f,{height:"40px",class:"_fc-l-tabs"},{default:q(()=>[re("div",{class:at(["_fc-l-tab",{active:t.active==="rule"}]),onClick:a[0]||(a[0]=v=>t.active="rule")},ve(t.t("designer.json")),3),re("div",{class:at(["_fc-l-tab",{active:t.active==="options"}]),onClick:a[1]||(a[1]=v=>t.active="options")},ve(t.t("designer.form")),3)]),_:1}),ee(p,{style:{padding:"8px"}},{default:q(()=>[ee(c,{ref:"editor",modelValue:t.value,"onUpdate:modelValue":a[2]||(a[2]=v=>t.value=v),onBlur:t.handleBlur,onFocus:t.handleFocus,format:"",style:{height:"100%"}},null,8,["modelValue","onBlur","onFocus"])]),_:1})]),_:1})}const wy=nt(Ay,[["render",xy]]),Ey=tt({name:"Warning",props:{tooltip:String},data(){return{}}}),Cy=["innerHTML"],Fy={key:0,class:"_fd-warning-text"},ky={key:1,class:"fc-icon icon-question"};function Sy(t,a,o,i,n,l){const f=de("el-tooltip");return ie(),Fe(f,{effect:"dark",placement:"top-start","popper-class":"_fd-warning-pop"},{content:q(()=>[re("span",{innerHTML:t.tooltip},null,8,Cy)]),default:q(()=>[t.$slots.default?(ie(),ge("span",Fy,[qt(t.$slots,"default")])):(ie(),ge("i",ky))]),_:3})}const bs=nt(Ey,[["render",Sy]]),Dy=["props"],By=["class","style","directives"],Ty=["on","hook"],Np=(t,a={},o={})=>{const i=[...Dy,...o.normal||[]],n=[...By,...o.array||[]],l=[...Ty,...o.functional||[]],f=o.props||[];return t.reduce((c,p)=>{for(const m in p)if(c[m])if(f.indexOf(m)>-1)c[m]=Np([p[m]],c[m]);else if(i.indexOf(m)>-1)c[m]={...c[m],...p[m]};else if(n.indexOf(m)>-1){const v=c[m]instanceof Array?c[m]:[c[m]],_=p[m]instanceof Array?p[m]:[p[m]];c[m]=[...v,..._]}else if(l.indexOf(m)>-1)for(const v in p[m])if(c[m][v]){const _=c[m][v]instanceof Array?c[m][v]:[c[m][v]],x=p[m][v]instanceof Array?p[m][v]:[p[m][v]];c[m][v]=[..._,...x]}else c[m][v]=p[m][v];else if(m==="hook")for(let v in p[m])c[m][v]?c[m][v]=Ry(c[m][v],p[m][v]):c[m][v]=p[m][v];else c[m]=p[m];else i.indexOf(m)>-1||l.indexOf(m)>-1||f.indexOf(m)>-1?c[m]={...p[m]}:n.indexOf(m)>-1?c[m]=p[m]instanceof Array?[...p[m]]:typeof p[m]=="object"?{...p[m]}:p[m]:c[m]=p[m];return c},a)},Ry=(t,a)=>function(){t&&t.apply(this,arguments),a&&a.apply(this,arguments)};To.registerLanguage("javascript",N_);To.registerLanguage("xml",M_);const My=tt({name:"FcDesigner",components:{Warning:bs,JsonPreview:wy,LanguageConfig:gy,PropsInput:ry,TypeSelect:P_,fcDraggable:ps,DragForm:Ke.$form(),ViewForm:Ya.$form(),EventConfig:gp},props:{menu:Array,height:[String,Number],config:{type:Object,default:()=>({})},mask:{type:Boolean,default:void 0},locale:Object,handle:Array},emits:["active","create","copy","delete","drag","inputData","save","clear","copyRule","pasteRule","sortUp","sortDown","changeDevice"],setup(t){var a,o,i,n,l,f;const{menu:c,height:p,mask:m,locale:v,handle:_}=xd(t),x=Um(),k=Ra({active:null});wd("fcx",k),wd("designer",x);const b=Ei(t,"config",{}),F=Ei(b.value,"baseRule",null),y=Ei(b.value,"componentRule",{}),h=Ei(b.value,"validateRule",null),g=Ei(b.value,"formRule",null),A=Ei(b.value,"updateDefaultRule",{}),C=Vn(()=>{const L=p.value;return L?dt.Number(L)?`${L}px`:L:"100%"}),S=Vn(()=>b.value.fieldReadonly!==!1),B=Vn(()=>b.value.hiddenMenu||[]),M=Vn(()=>b.value.hiddenItem||[]),N=Vn(()=>b.value.hiddenDragMenu===!0),V=Vn(()=>b.value.hiddenDragBtn===!0),w=Vn(()=>{const L=["base","props","style","event","validate"];let Q=b.value.configFormOrder?[...b.value.configFormOrder]:[],W=[];return Q.length?[...Q,...L].forEach(G=>{W.indexOf(G)===-1&&L.indexOf(G)>-1&&W.push(G)}):W=L,W.map(G=>`"${G}"`).join(" ")});let D=ls;v.value&&(D=es(v).t);const I=(...L)=>D(...L),j=(L,Q,...W)=>{if(Q){if(dt.Function(Q))return Q(...W);if(Q.rule){let G=Q.rule(...W);return Q.prepend?G=[...G,...L(...W)]:Q.append&&(G=[...L(...W),...G]),G}}return L(...W)},R=Ra({cacheProps:{},operation:{idx:-1,list:[]},moveRule:null,addRule:null,added:null,bus:sg(),device:((a=b.value)==null?void 0:a.device)||"pc",activeModule:"base",activeTab:"form",activeMenuTab:"menu",activeRule:null,children:Ao([]),treeInfo:[],menuList:c.value||N0(),dragRuleList:{},eventShow:!1,unloadStatus:!1,previewStatus:"form",t:I,preview:{state:!1,rule:[],option:{},api:{}},inputForm:{state:!1,rule:[],option:{},api:{},data:{},key:""},dragForm:Ao({rule:[],api:{}}),formOptions:{},oldOptionsKeys:[],form:{rule:j(Bd,g.value,{t:I}),api:{},option:{global:{input:((o=b.value)==null?void 0:o.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{clearable:!0}}},form:{labelPosition:"top",size:"small"},submitBtn:!1},value:{form:{},submitBtn:!1}},baseForm:{isShow:!1,rule:j(mo,F.value,{t:I}),api:{},value:{},options:{global:{input:((i=b.value)==null?void 0:i.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{}},form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:L=>{L.activeRule=R.activeRule,L.setValue(L.options.formData||{})}}},styleForm:{isShow:!1,rule:ug({t:I}),api:{},value:{},options:{form:{labelPosition:"left",size:"small"},submitBtn:!1,mounted:L=>{L.activeRule=R.activeRule,L.setValue(L.options.formData||{})}}},validateForm:{isShow:!1,rule:j(Td,h.value,{t:I}),api:{},value:[],options:{global:{input:((n=b.value)==null?void 0:n.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{}},form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:L=>{L.activeRule=R.activeRule,L.setValue(L.options.formData||{})}}},propsForm:{isShow:!1,rule:[],api:{},value:{},options:{global:{input:((l=b.value)==null?void 0:l.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},inputNumber:{props:{controlsPosition:"right"}}},form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:L=>{L.activeRule=R.activeRule,L.setValue(L.options.formData||{})}}},customForm:{isShow:!1,config:null,key:"",rule:[],api:{},options:{global:{input:((f=b.value)==null?void 0:f.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{}},form:{labelPosition:"top",size:"small"},submitBtn:!1}}});Xl(()=>R.preview.state,function(L){L||Bn(()=>{R.previewStatus="form",R.preview.rule=R.preview.option=null})});let O=null;const X=(L,Q)=>{if(L[10]!==">"){if(L=L.replace("formCreate",""),!L)return;L=Zu(L)}else L=L.replace("formCreate>","");const W=L.split(">"),G=W.pop();let te=R.activeRule;W.forEach((le,ye)=>{ye||(le=Zu(le)),te[le]||(te[le]={}),te=te[le]}),Q({source:te,field:G})};Xl(()=>v.value,L=>{D=L?es(v).t:ls,U.clearActiveRule();const Q=R.form.api.formData&&R.form.api.formData(),W=R.baseForm.api.formData&&R.baseForm.api.formData(),G=R.validateForm.api.formData&&R.validateForm.api.formData();R.validateForm.rule=j(Td,h.value,{t:I}),R.baseForm.rule=j(mo,F.value,{t:I}),R.form.rule=j(Bd,g.value,{t:I}),R.cacheProps={};const te=R.activeRule;let le=null;te&&(le=R.propsForm.api.formData&&R.propsForm.api.formData(),R.propsForm.rule=R.cacheProps[te._fc_id]=U.getPropsRule(te)),Bn(()=>{Q&&R.form.api.setValue(Q),W&&R.baseForm.api.setValue(W),G&&R.validateForm.api.setValue(G),le&&R.propsForm.api.setValue(le)})});const U={setDevice(L){R.device=L,x.emit("changeDevice",L)},unWatchActiveRule(){O&&O(),O=null},watchActiveRule(){U.unWatchActiveRule(),O=Xl(()=>R.activeRule,function(L){L&&U.updateRuleFormData()},{deep:!0,flush:"post"})},makeChildren(L){return Ra({children:L}).children},addMenu(L){if(!L.name||!L.list)return;let Q=!0;R.menuList.forEach((W,G)=>{W.name===L.name&&(R.menuList[G]=L,Q=!1)}),Q&&R.menuList.push(L)},removeMenu(L){[...R.menuList].forEach((Q,W)=>{Q.name===L&&R.menuList.splice(W,1)})},setMenuItem(L,Q){R.menuList.forEach(W=>{W.name===L&&(W.list=Q)})},appendMenuItem(L,Q){R.menuList.forEach(W=>{W.name===L&&W.list.push(...Array.isArray(Q)?Q:[Q])})},removeMenuItem(L){R.menuList.forEach(Q=>{let W;dt.String(L)?[...Q.list].forEach((G,te)=>{G.name===L&&Q.list.splice(te,1)}):(W=Q.list.indexOf(L))>-1&&Q.list.splice(W,1)})},addComponent(L){Array.isArray(L)?L.forEach(Q=>{R.dragRuleList[Q.name]=Q,Q.menu&&U.appendMenuItem(Q.menu,Q)}):(R.dragRuleList[L.name]=L,L.menu&&U.appendMenuItem(L.menu,L))},openInputData(L){R.inputForm.state=L===void 0?!R.inputForm.state:!!L,R.inputForm.state&&(R.inputForm.rule=Ke.parseJson(U.getJson()),R.inputForm.option=Ke.parseJson(U.getOptionsJson()),R.inputForm.option.formData=Nt(R.inputForm.data),R.inputForm.option.appendValue=!1,R.inputForm.option.submitBtn.show=!1,R.inputForm.option.resetBtn.show=!1,U.clearActiveRule())},inputSave(){const L=R.inputForm.api.formData();Object.keys(L).forEach(W=>{cr(L[W])&&delete L[W]});const Q=JSON.stringify(R.inputForm.data)!==JSON.stringify(L);R.inputForm.data=L,R.inputForm.state=!1,x.emit("inputData",L),Q&&U.addOperationRecord()},inputClear(){U.inputReset({})},inputReset(L){R.inputForm.rule=Ke.parseJson(U.getJson()),R.inputForm.option.formData=L||Nt(R.inputForm.data),R.inputForm.key=Ze()},setFormData(L){R.inputForm.data=L||{}},getFormData(){return R.inputForm.data},getParent(L){let Q=L.__fc__.parent.rule;const W=Q._menu;return W&&W.inside&&(L=Q,Q=Q.__fc__.parent.rule),{root:Q,parent:L}},copyName(){Kr(R.activeRule.name)},updateName(){R.activeRule.name="ref_"+Ze()},makeDrag(L,Q,W,G,te){return{type:"DragBox",wrap:{show:!1},col:{show:!1},inject:!0,props:{rule:{props:{tag:"el-col",group:L===!0?"default":L,swapThreshold:.65,ghostClass:"ghost",animation:150,handle:"._fd-drag-btn",emptyInsertThreshold:0,direction:"vertical",itemKey:"type"}},tag:Q},children:W,slot:te,on:G}},clearDragRule(){U.setRule([]),U.addOperationRecord(),R.unloadStatus=!1,x.emit("clear")},makeDragRule(L){return U.makeChildren([U.makeDrag(!0,"draggable",L,{add:(Q,W)=>U.dragAdd(L,W),end:(Q,W)=>U.dragEnd(L,W),start:(Q,W)=>U.dragStart(L,W),unchoose:(Q,W)=>U.dragUnchoose(L,W)})])},handleSave(){x.emit("save",{rule:U.getJson(),options:U.getOptionsJson()})},openPreview(){R.preview.state=!0;const L=U.getJson(),Q=U.getOptionsJson();R.preview.rule=Ke.parseJson(L),R.preview.option=Ke.parseJson(Q);const W=U.getConfig("useTemplate",!1);R.preview.component=To.highlight(W?eg(L,Q):tg(L,Q),{language:"xml"}).value,R.preview.html=To.highlight(ng(L,Q),{language:"xml"}).value},copyCode(){Kr(this.$refs.previewCode.innerText)},getRule(){return U.parseRule(Nt(R.dragForm.rule[0].children))},getJson(){return Ke.toJson(U.getRule())},getOption(){const L=Nt(R.formOptions);["onReset","onSubmit","onCreated","onMounted","onReload","onChange","beforeFetch"].forEach(W=>{delete L[W]}),Object.keys(L._event||{}).forEach(W=>{L._event[W]&&(L[W]=L._event[W])}),delete L._event,L.submitBtn=L._submitBtn,L.resetBtn=L._resetBtn,L.resetBtn.innerText=I("props.reset"),L.submitBtn.innerText=I("props.submit");const Q=Nt(R.inputForm.data);return Object.keys(Q).length>0&&(L.formData=Q),L.language&&Object.keys(L.language).forEach(W=>{Object.keys(L.language[W]).forEach(G=>{L.language[W][G]||delete L.language[W][G]}),Object.keys(L.language[W]).length||delete L.language[W]}),Object.keys(L).forEach(W=>{Object.keys(L[W]).length||delete L[W]}),delete L._submitBtn,delete L._resetBtn,L},getOptions(){return U.getOption()},getOptionsJson(){return Ke.toJson([U.getOption()]).slice(1).slice(0,-1)},setRule(L){L||(L=[]),R.children=Ao(U.loadRule(dt.String(L)?Ke.parseJson(L):Nt(L))),U.clearActiveRule(),R.dragForm.rule=U.makeDragRule(U.makeChildren(R.children)),U.updateTree()},setBaseRuleConfig(L,Q){F.value={rule:L,append:Q},R.baseForm.rule=j(mo,F.value,{t:I})},setComponentRuleConfig(L,Q,W){y.value[L]={rule:Q,append:W},R.cacheProps={};const G=R.activeRule;if(G){const te=R.propsForm.api.formData&&R.propsForm.api.formData();R.propsForm.rule=R.cacheProps[G._fc_id]=j(G._menu.props,y.value&&y.value[G._menu.name],G,{t:I,api:R.dragForm.api}),Bn(()=>{te&&R.propsForm.api.setValue(te)})}},setValidateRuleConfig(L,Q){h.value={rule:L,append:Q},R.validateForm.rule=j(mo,h.value,{t:I})},setFormRuleConfig(L,Q){g.value={rule:L,append:Q},R.form.rule=j(mo,g.value,{t:I})},clearActiveRule(){R.activeRule=null,R.customForm.config=null,R.activeTab="form",k.active=""},setOption(L){const Q=Nt(U.getConfig("formOptions",{})),W=Q.form||{};delete Q.form;let G={...Q,...dt.String(L)?JSON.parse(L):Nt(L||{})};G.form={inline:!1,hideRequiredAsterisk:!1,labelPosition:"right",size:"default",labelWidth:"125px",...W,...G.form||{}},G._event={onReset:G.onReset||"",onSubmit:G.onSubmit||"",onCreated:G.onCreated||"",onMounted:G.onMounted||"",onReload:G.onReload||"",onChange:G.onChange||"",beforeFetch:G.beforeFetch||""},Di(G,"language")||(G.language={}),G._resetBtn=typeof G.resetBtn=="object"?G.resetBtn:{show:G.resetBtn===!0},G._submitBtn=typeof G.submitBtn=="object"?G.submitBtn:{show:G.submitBtn!==!1},G.submitBtn=G.resetBtn=!1,R.inputForm.data=G.formData||{},R.oldOptionsKeys=Object.keys(R.form.value),delete G.formData,R.formOptions=G,U.updateOptionsValue()},setOptions(L){U.setOption(L)},mergeOptions(L){if(["form"].forEach(Q=>{L[Q]&&(R.formOptions[Q]={...R.formOptions[Q]||{},...L[Q]})}),L.style&&(!R.formOptions.style||R.formOptions.style.indexOf(L.style)===-1)&&(R.formOptions.style=(R.formOptions.style||"")+`
- `+L.style),R.formOptions.language||(R.formOptions.language={}),L.language&&Object.keys(L.language).forEach(Q=>{R.formOptions.language[Q]={...R.formOptions.language[Q]||{},...L.language[Q]}}),L.languageKey){const Q=U.getConfig("localeOptions",[{value:"zh-cn",label:"简体中文"},{value:"en",label:"English"}]);L.languageKey.forEach(W=>{Q.forEach(({value:G})=>{R.formOptions.language[G]||(R.formOptions.language[G]={}),R.formOptions.language[G][W]||(R.formOptions.language[G][W]="")})})}},updateOptionsValue(){const L={};R.oldOptionsKeys.forEach(W=>{L[W]=void 0});const Q={...L,...R.formOptions.form};Object.keys(R.formOptions).forEach(W=>{const G=R.formOptions[W];Q[">"+W]=G,typeof G=="object"&&Object.keys(G).forEach(te=>{Q[W+">"+te]=G[te]})}),R.form.value=Q},loadRule(L,Q,W){const G=[];return L.forEach(te=>{if(dt.String(te))return G.push(te);let le=R.dragRuleList[te._fc_drag_tag]||R.dragRuleList[te.type];if(le||(le=Vv(te),te._fc_drag_tag="_"),W&&(te._fc_template=W),le&&le.loadRule&&le.loadRule(te),te.children=U.loadRule(te.children||[],le,W),te.control&&(te._control=te.control,delete te.control),te.computed&&(te._computed=te.computed,delete te.computed),te.on&&(te._on=te.on,delete te.on),le){const ye=te.slot;let fe;Q&&Q.slot&&ye&&ye!=="default"&&(fe=U.getSlotConfig(Q,ye,le)),delete te.slot,te=U.makeRule(fe||le,te),ye&&(te.slot=ye)}G.push(te)}),G},parseRule(L,Q){return[...L].reduce((W,G)=>{let te=Q;if(dt.String(G))return W.push(G),W;if(G.type==="DragBox")return W.push(...U.parseRule(G.children,te||G.slot)),W;if(G.type==="DragTool"){if(te=G.slot||Q,G=G.children[0],dt.String(G))return W.push(G),W;if(G.type==="DragBox")return W.push(...U.parseRule(G.children,te||G.slot)),W}return G&&(G={...G},te&&te!=="default"&&(G.slot=te),G.children&&G.children.length&&(G.children=U.parseRule(G.children)),delete G.key,delete G.component,G._menu&&(G._menu.parseRule&&G._menu.parseRule(G),delete G._menu),G._fc_drag_tag==="_"&&delete G._fc_drag_tag,G._control&&(G.control=G._control,delete G._control),G._computed&&(G.computed=G._computed,delete G._computed),G.slot||delete G.slot,G._on&&(G.on=G._on,delete G._on),G.props&&Object.keys(G.props).forEach(le=>{const ye=G.props[le];cr(ye)&&delete G.props[le]}),Object.keys(G).filter(le=>le.indexOf("__")===0||Array.isArray(G[le])&&G[le].length===0||dt.Object(G[le])&&Object.keys(G[le]).length===0).forEach(le=>{delete G[le]}),W.push(G)),W},[])},fields(){return R.dragForm.api.all().map(L=>L.field).filter(L=>!!L)},baseChange(L,Q,W,G){U.handleChange("",L,Q,W,G)},formOptChange(L,Q){R.form.value[L]=Q,L.indexOf(">")===-1&&(L="form>"+L);let W=R.formOptions;const G=L.split(">"),te=G.pop();G.forEach(le=>{le&&(W[le]||(W[le]={}),W=W[le])}),W[te]=Q},propRemoveField(L,Q,W){var G,te,le;if(R.activeRule&&W[R.activeRule._fc_id]===R.activeRule){U.unWatchActiveRule();const ye=L;R.dragForm.api.sync(R.activeRule),L.indexOf("__")!==0&&(L==="formCreateChild"?delete R.activeRule.children[0]:L.indexOf("formCreate")===0||L.indexOf(">")>0?(L.indexOf("formCreate")<0&&(L="props>"+L),X(L,({source:fe,field:oe})=>{delete fe[oe]})):delete R.activeRule.props[L]),U.watchActiveRule(),(le=(te=(G=R.activeRule._menu)==null?void 0:G.watch)==null?void 0:te[ye])==null||le.call(te,{field:ye,value:void 0,api:W,rule:R.activeRule,ctx:x})}},propChange(L,Q,W,G){U.handleChange("props",L,Q,W,G)},styleChange(L,Q,W,G){if(R.customForm.config)return R.customForm.config.style.change(L,Q);U.handleChange("",L,Q,W,G)},handleChange(L,Q,W,G,te){var le,ye,fe;if(R.activeRule&&te[R.activeRule._fc_id]===R.activeRule){U.unWatchActiveRule();const oe=Q;Q.indexOf("__")!==0&&(Q==="formCreateChild"?R.activeRule.children[0]=W:Q.indexOf("formCreate")===0||Q.indexOf(">")>0?(Q.indexOf("formCreate")<0&&(Q=(L?L+">":"")+Q),X(Q,({source:ce,field:se})=>{cr(W)?delete ce[se]:ce[se]=W})):L&&cr(W)?delete R.activeRule[L][Q]:(L?R.activeRule[L]:R.activeRule)[Q]=W),U.watchActiveRule(),(fe=(ye=(le=R.activeRule._menu)==null?void 0:le.watch)==null?void 0:ye[oe])==null||fe.call(ye,{field:oe,value:W,api:te,rule:R.activeRule,ctx:x})}},validateChange(L,Q,W,G){!R.activeRule||R.validateForm.api[R.activeRule._fc_id]!==R.activeRule||(U.handleChange("",L,Q,W,G),R.dragForm.api.refreshValidate(),R.dragForm.api.nextTick(()=>{R.dragForm.api.clearValidateState(R.activeRule.__fc__.id)}))},triggerActive(L){let Q;if(dt.String(L)&&(L=U.findRule(L)),!!L&&(L._menu.inside?Q=L.children[0]:Q=L.__fc__.parent.rule,Q&&Q.type==="DragTool")){const W=R.dragForm.api.el(Q.__fc__.id);W&&(k.active=W.id,x.emit("active",L),U.toolActive(L))}},customFormChange(L,Q){R.customForm.config&&R.customForm.config.change(L,Q)},customActive(L){R.baseForm.isShow=!1,R.propsForm.isShow=!1,R.eventShow=!1,R.validateForm.isShow=!1,R.styleForm.isShow=!!L.style&&U.getConfig("showStyleForm")!==!1,R.activeRule=null,R.customForm.config=L,R.customForm.isShow=!0,R.customForm.propsShow=L.props&&U.getConfig("showPropsForm")!==!1,R.customForm.key=Ze(),R.customForm.rule=R.customForm.propsShow?L.props({t:I}):[],R.customForm.options.formData=L.formData,L.style&&(R.styleForm.value=L.style.formData||{}),Bn(()=>{R.activeTab="props"})},getPropsRule(L){let Q=j(L._menu.props,y.value&&y.value[L._menu.name],L,{t:I,api:R.dragForm.api});if(y.value&&y.value.default){const W=y.value.default;Q=j(()=>Q,dt.Function(W)?{rule:W,append:!0}:W,L,{t:I,api:R.dragForm.api})}return Q},findRule(L){let Q;const W=G=>{G.forEach(te=>{[te.rule.field,te.rule.name,te.rule._fc_id].indexOf(L)>-1?Q=te.rule:te.children&&W(te.children)})};return W(R.treeInfo),Q},toolActive(L){U.unWatchActiveRule(),R.customForm.isShow=!1,R.customForm.config=null,R.activeRule&&(delete R.propsForm.api[R.activeRule._fc_id],delete R.baseForm.api[R.activeRule._fc_id],delete R.validateForm.api[R.activeRule._fc_id],delete R.styleForm.api[R.activeRule._fc_id],delete R.dragForm.api.activeRule),R.activeRule=L,R.dragForm.api.activeRule=L,Bn(()=>{R.activeTab="props",Bn(()=>{R.propsForm.api[R.activeRule._fc_id]=R.activeRule,R.baseForm.api[R.activeRule._fc_id]=R.activeRule,R.validateForm.api[R.activeRule._fc_id]=R.activeRule,R.styleForm.api[R.activeRule._fc_id]=R.activeRule})}),R.cacheProps[L._fc_id]||(R.cacheProps[L._fc_id]=U.getPropsRule(L));const Q=U.getConfig("hiddenItemConfig",{}),W=U.getConfig("disabledItemConfig",{}),G=Dd([...Q?.default||[],...Q?.[L._menu.name]||[],...L._menu.hiddenBaseField||[]]),te=Dd([...W?.default||[],...W?.[L._menu.name]||[]]);R.baseForm.api.hidden(!1),R.baseForm.api.disabled(!1),G.length&&Bn(()=>{R.baseForm.api.hidden(!0,G),R.propsForm.api.hidden(!0,G)}),te.length&&(R.baseForm.api.disabled(!0,te),Bn(()=>{R.propsForm.api.disabled(!0,te)})),U.getConfig("showControl",!0)||R.baseForm.api.hidden(!0,"_control");const le=Di(L,"field");R.baseForm.isShow=le&&L.input!==!1&&U.getConfig("showBaseForm")!==!1,R.propsForm.isShow=R.cacheProps[L._fc_id].length>0&&U.getConfig("showPropsForm")!==!1,R.eventShow=L._menu.event&&L._menu.event.length>0&&U.getConfig("showEventForm")!==!1,R.styleForm.isShow=L._menu.style!==!1&&U.getConfig("showStyleForm")!==!1;const ye=U.getConfig("showValidateForm");R.validateForm.isShow=(R.baseForm.isShow&&ye!==!1||ye===!0)&&L._menu.validate!==!1,R.propsForm.rule=R.cacheProps[L._fc_id],U.updateRuleFormData(),U.watchActiveRule()},getConfig(L,Q){return b.value&&Di(b.value,L)?b.value[L]:Q},updateRuleFormData(){const L=R.activeRule;let Q={formCreateChild:""+L.children[0],"formCreateWrap>labelWidth":""};const W=b.value.appendConfigData;dt.Function(W)?Q={...Q,...W(L)}:Array.isArray(W)&&W.forEach(te=>{Q[te]=void 0}),Object.keys(L).forEach(te=>{["effect","config","payload","id","type","_menu"].indexOf(te)<0&&(Q["formCreate"+Do(te)]=Nt(L[te]))}),Object.keys(L.props).forEach(te=>{const le=L.props[te];Q[te]=Nt(le),dt.Object(le)&&Object.keys(le).forEach(ye=>{Q[te+">"+ye]=Nt(le[ye])})}),["props","effect","attrs","style","wrap"].forEach(te=>{L[te]&&typeof L[te]=="object"&&Object.keys(L[te]).forEach(le=>{Q["formCreate"+Do(te)+">"+le]=Nt(L[te][le])})});const G=L._menu.attrs||{};Object.keys(G).forEach(te=>{Q["__"+te]=G[te]({rule:L})}),R.propsForm.value=Q,R.styleForm.value={style:L.style,class:L.class,id:L.id},R.baseForm.isShow&&(R.baseForm.value={field:L.field,title:L.title||"",info:L.info,_control:L._control,...Q},R.validateForm.value={validate:L.validate?[...L.validate]:[],$required:Q.formCreate$required},R.dragForm.api.refreshValidate(),R.dragForm.api.nextTick(()=>{R.dragForm.api.clearValidateState(L.__fc__.id)}))},dragStart(L){R.moveRule=L,R.added=!1},dragUnchoose(L,Q){R.addRule={children:L,oldIndex:Q.oldIndex}},clickMenu(L){U.dragMenu({menu:L,children:R.children,index:R.children.length})},checkOnly(L){let Q=!1;return R.dragForm.api.all().forEach(W=>{Q=Q||W._fc_template===L.name||W._menu&&W._menu.name===L.name}),Q&&jn(R.t("struct.only",{label:I("com."+L.name+".name")||L.label})),Q},dragMenu({menu:L,children:Q,index:W,slot:G}){if(R.inputForm.state||L.only&&U.checkOnly(L))return;U.handleAddBefore();const te=R.dragRuleList[L.name];x.emit("drag",{item:L,dragRule:te});const le=U.makeRule(R.dragRuleList[te.name]);G&&(le.slot=G),Q.splice(W,0,le);const ye=le.type==="DragTool"?le.children[0]:le;U.handleAddAfter({rule:le}),ye&&U.getConfig("autoActive",!0)&&Bn(()=>{U.triggerActive(ye)})},replaceField(L){const Q=["array","object"].indexOf(L._menu.subForm)>-1;let W=U.parseRule(Nt([L]))[0];const G=U.getConfig("autoResetName")!==!1;return Q&&(W.field=Ze(),G&&(W.name="ref_"+Ze())),W=Ke.toJson(W),Q?W=U.batchReplaceUni(W):(W=U.batchReplaceField(W),G&&(W=U.batchReplaceName(W))),U.loadRule([Ke.parseJson(W)])[0]},batchReplaceField(L){const Q=/"field"\s*:\s*"(\w[\w\d]+)"/g;return L=L.replace(Q,(W,G)=>`"field":"${Ze()}"`),U.batchReplaceUni(L)},batchReplaceUni(L){const Q=/"_fc_id"\s*:\s*"(\w[\w\d]+)"/g;return L=L.replace(Q,()=>`"_fc_id":"id_${Ze()}"`),L},batchReplaceName(L){const Q=/"name"\s*:\s*"ref_(\w[\w\d]+)"/g;return L=L.replace(Q,()=>`"name":"ref_${Ze()}"`),L},dragAdd(L,Q,W){const G=Q.newIndex,te=Q.item._underlying_vm_||Q.item.__rule__;if(te&&te.__fc__){if(R.addRule){U.handleSortBefore();const le=R.addRule.children.splice(R.addRule.children.indexOf(te),1)[0];W?le.slot=W:delete le.slot,L.splice(G,0,le),U.handleSortAfter({rule:le})}}else U.dragMenu({menu:te,children:L,index:G,slot:W});R.added=!0},dragEnd(L,{newIndex:Q,oldIndex:W},G){if(!R.added&&!(R.moveRule===L&&Q===W)){U.handleSortBefore();const te=R.moveRule.splice(W,1);G&&(te.slot=G),L.splice(Q,0,te[0]),U.handleSortAfter({rule:te[0]})}R.moveRule=null,R.addRule=null,R.added=!1},getSlotConfig(L,Q,W){let G={};return(L.slot||[]).forEach(te=>{te.name===Q&&(G=te.config||{})}),{...W,dragBtn:!1,handleBtn:W.children?["addChild"]:!1,...G}},makeRule(L,Q){let W=Q||L.rule({t:I});const G=A.value&&A.value[L.name];if(!Q&&G)if(typeof G=="function")try{G(W)}catch(oe){console.error(oe)}else{let oe=Nt(G);delete oe.children,delete oe.component,W=Np([W,oe])}W._menu=Zr(L),W._fc_id||(W._fc_id="id_"+Ze()),W.name||(W.name="ref_"+Ze()),L.component&&(W.component=Zr(L.component)),W._computed||(W._computed={}),W.effect||(W.effect={}),L.input&&!W.field&&(W.field=Ze()),L.languageKey&&U.mergeOptions({languageKey:L.languageKey}),Di(W,"display")||(W.display=!0),Di(W,"hidden")||(W.hidden=!1),W._fc_drag_tag=L.name;let te=L.only===!0,le;const ye=W.children||[];if(L.drag&&(W.children=[le=U.makeDrag(L.drag,W._menu?W._menu.name:W.type,ye,{end:(oe,ce)=>U.dragEnd(oe.self.children,ce),add:(oe,ce)=>U.dragAdd(oe.self.children,ce),start:(oe,ce)=>U.dragStart(oe.self.children,ce),unchoose:(oe,ce)=>U.dragUnchoose(oe.self.children,ce)})]),L.children&&!Q&&!ye.length)for(let oe=0;oe<(L.childrenLen||1);oe++){const ce=U.makeRule(R.dragRuleList[L.children]);(le||W).children.push(ce)}const fe=m.value!==void 0?m.value!==!1:L.mask!==!1;return L.tool===!1?W:L.inside?(W.children=U.makeChildren([{type:"DragTool",props:{dragBtn:L.dragBtn!==!1,children:L.children,mask:fe,handleBtn:L.handleBtn,only:te},inject:!0,on:{delete:({self:oe})=>{const ce=U.getParent(oe).parent;U.handleRemoveBefore({parent:ce,rule:ce})!==!1&&(ce.__fc__.rm(),x.emit("delete",ce),R.activeRule===ce&&U.clearActiveRule(),U.handleRemoveAfter({rule:ce}))},create:({self:oe})=>{U.handleAddBefore();const ce=U.getParent(oe);x.emit("create",ce.parent);const se=U.makeRule(ce.parent._menu);ce.parent.slot&&(se.slot=ce.parent.slot),ce.root.children.splice(ce.root.children.indexOf(ce.parent)+1,0,se),U.handleAddAfter({rule:ce.parent})},addChild:({self:oe})=>{U.handleAddBefore();const ce=U.getParent(oe),se=ce.parent._menu,be=R.dragRuleList[se.children];if(!be)return;const we=U.makeRule(be);(se.drag?ce.parent.children[0]:ce.parent).children[0].children.push(we),U.handleAddAfter({rule:we})},copy:({self:oe})=>{U.handleCopyBefore();const ce=U.getParent(oe);x.emit("copy",ce.parent);const se=U.replaceField(ce.parent);ce.root.children.splice(ce.root.children.indexOf(ce.parent)+1,0,se),U.handleCopyAfter({rule:ce.parent})},active:({self:oe})=>{const ce=U.getParent(oe);x.emit("active",ce.parent),setTimeout(()=>{U.toolActive(ce.parent)},10)}},children:W.children}]),W):{type:"DragTool",props:{dragBtn:L.dragBtn!==!1,children:L.children,mask:fe,handleBtn:L.handleBtn,only:te},inject:!0,display:!!W.display,on:{delete:({self:oe})=>{U.handleRemoveBefore({parent:oe,rule:oe.children[0]})!==!1&&(x.emit("delete",oe.children[0]),oe.__fc__.rm(),R.activeRule===oe.children[0]&&U.clearActiveRule(),U.handleRemoveAfter({rule:oe.children[0]}))},create:({self:oe})=>{U.handleAddBefore(),x.emit("create",oe.children[0]);const ce=U.getParent(oe),se=U.makeRule(oe.children[0]._menu);ce.parent.slot&&(se.slot=ce.parent.slot),ce.root.children.splice(ce.root.children.indexOf(ce.parent)+1,0,se),U.handleAddAfter({rule:se})},addChild:({self:oe})=>{U.handleAddBefore();const ce=oe.children[0]._menu,se=R.dragRuleList[ce.children];if(!se)return;const be=U.makeRule(se);(ce.drag?oe.children[0]:oe).children[0].children.push(be),U.handleAddAfter({rule:be})},copy:({self:oe})=>{U.handleCopyBefore(),x.emit("copy",oe.children[0]);const ce=U.getParent(oe),se=U.replaceField(oe.children[0]);oe.slot&&(se.slot=oe.slot),ce.root.children.splice(ce.root.children.indexOf(ce.parent)+1,0,se),U.handleCopyAfter({rule:oe.children[0]})},active:({self:oe})=>{x.emit("active",oe.children[0]),setTimeout(()=>{U.toolActive(oe.children[0])},10)}},children:U.makeChildren([W])}},toolHandle(L,Q){if(!L._fc_drag_tag||L._menu.tool===!1){L.__fc__.rm();return}let W;L._menu.inside?W=L.children[0].__fc__.exportEl:W=L.__fc__.parent.exportEl,W.$emit(Q)},handleAddBefore(){},handleRemoveBefore(){},handleCopyBefore(){},handleSortBefore(){},addOperationRecord(){const L=U.getJson(),Q=Nt(R.inputForm.data),W=R.operation.list.slice(0,R.operation.idx+1);W.push({rule:L,formData:Q}),R.operation.list=W,R.operation.idx=W.length-1,R.unloadStatus=W.length!==1},prevOperationRecord(){if(!R.operation.list[R.operation.idx-1])return;const L=R.operation.list[--R.operation.idx];U.useOperationRecord(L),U.clearActiveRule()},nextOperationRecord(){if(!R.operation.list[R.operation.idx+1])return;const L=R.operation.list[++R.operation.idx];U.useOperationRecord(L),U.clearActiveRule()},useOperationRecord(L){R.inputForm.data=L.formData,U.setRule(L.rule)},handleAddAfter(){U.addOperationRecord(),U.updateTree()},handleRemoveAfter(){U.addOperationRecord(),U.updateTree()},handleCopyAfter(){U.addOperationRecord(),U.updateTree()},handleSortAfter(){U.addOperationRecord(),U.updateTree()},treeChange(L){U.triggerActive(L.rule)},getFormDescription(){return kd(U.getDescription())},getDescription(){return Sd(R.dragForm.rule[0].children)},getSubFormDescription(L){let Q=L.__fc__&&L.__fc__.parent;for(;Q;){if(Q.rule._menu&&["array","object"].indexOf(Q.rule._menu.subForm)>-1)return kd(Sd(Q.rule.children));Q=Q.parent}return null},getSubFormChildren(L){let Q=L.__fc__&&L.__fc__.parent;for(;Q;){if(Q.rule._menu&&["array","object"].indexOf(Q.rule._menu.subForm)>-1)return Q.rule.children||[];Q=Q.parent}return null},updateTree:s_(function(){Bn(()=>{R.treeInfo=ts(R.dragForm.rule[0].children)})},300),findTree(L){let Q;const W=G=>{G.forEach(te=>{te.rule.field===L?Q=te.children:te.children&&W(te.children)})};return W(R.treeInfo),Q||[]},handleDragenter(L){R.bus.$emit("dragenter",L)},handleDragleave(L){R.bus.$emit("dragleave",L)},handleDrop(L){R.bus.$emit("drop",L)},changeEvent(L){R.activeRule._on=L},triggerHandle(L){L.handle()},bindHotkey(L){const Q=L.ctrlKey||L.metaKey;if(!getSelection().toString()&&Q&&L.target.tagName==="BODY"&&["ArrowUp","ArrowDown","c"].indexOf(L.key)>-1&&R.activeRule){L.preventDefault();let W=R.activeRule;if(L.key==="c"){Kr("FormCreate:"+Ke.toJson(U.parseRule([W])[0])),x.emit("copyRule",{event:L,rule:W});return}if(R.inputForm.state)return;W._menu.inside||(W=W.__fc__.parent.rule);const G=W.__fc__.parent.rule,te=G.children.indexOf(W);if(G.children.length>1&&te>=0){const le=L.key==="ArrowUp"?-1:L.key==="ArrowDown"?1:0;le&&te+le>=0&&te+le<G.children.length&&(G.children.splice(te,1),G.children.splice(te+le,0,W),x.emit("sort"+(L.key==="ArrowUp"?"Up":"Down"),{event:L,rule:W}))}}},bindPaste(L){if(R.inputForm.state)return;let Q=L.clipboardData.getData("text/plain");if(Q&&Q.indexOf("FormCreate:")===0){let W=R.children;Q=Q.slice(11,Q.length);const G=U.loadRule([Ke.parseJson(Q)])[0];if(R.activeRule&&R.activeRule._menu.drag)R.activeRule._menu.inside?W=R.activeRule.children[0].children[0].children:W=R.activeRule.children[0].children;else if(R.customForm.config&&R.customForm.config.onPaste){R.customForm.config.onPaste(G);return}W.push(G),x.emit("pasteRule",{event:L,copyRule:G})}}};R.dragForm.rule=U.makeDragRule(U.makeChildren(R.children)),U.setOption({}),c.value?Vd.forEach(L=>{R.dragRuleList[L.name]=L}):U.addComponent(Vd);const Z=Vn(()=>Object.keys(R.inputForm.data).length>0);return{...xd(R),...U,dragHeight:C,t:I,handle:_,inputCheckStatus:Z,fieldReadonly:S,hiddenMenu:B,hiddenItem:M,hiddenDragMenu:N,hiddenDragBtn:V,configFormOrderStyle:w}},created(){document.body.ondrop=t=>{t.preventDefault(),t.stopPropagation()},window.onbeforeunload=t=>{this.unloadStatus&&(t.returnValue=this.t("designer.unload"))}},mounted(){var t;((t=this.config)==null?void 0:t.hotKey)!==!1&&(document.addEventListener("keydown",this.bindHotkey),document.addEventListener("paste",this.bindPaste))},unmounted(){document.removeEventListener("keydown",this.bindHotkey),document.removeEventListener("paste",this.bindPaste)}}),Ny=["onClick"],Oy=["onClick"],Iy={class:"_fc-l-icon"},Ly={class:"_fc-l-name"},Py={class:"_fc-tree-label"},Vy={class:"_fc-m-tools-l"},jy={class:"devices"},zy={class:"_fc-m-tools-r"},Uy={class:"_fd-input-btn"},Hy={key:0,class:"_fc-m-input"},Wy={key:0,class:"_fc-m-input-handle"},Qy={class:"_fc-r-title"},Xy={class:"_fc-r-title"},Yy={style:{"grid-area":"base"}},Gy={style:{"grid-area":"props"}},$y={style:{"grid-area":"style"}},qy={style:{"grid-area":"event"}},Jy={key:0,style:{"grid-area":"validate"}},Ky={key:2,class:"_fd-preview-code",ref:"previewCode"},Zy=["innerHTML"],eb={key:3,class:"_fd-preview-code",ref:"previewCode"},tb=["innerHTML"];function nb(t,a,o,i,n,l){const f=de("el-tooltip"),c=de("el-aside"),p=de("LanguageConfig"),m=de("JsonPreview"),v=de("el-header"),_=de("fcDraggable"),x=de("el-main"),k=de("el-dropdown-item"),b=de("el-dropdown-menu"),F=de("el-dropdown"),y=de("el-tree"),h=de("el-container"),g=de("el-button"),A=de("el-popconfirm"),C=de("el-switch"),S=de("ViewForm"),B=de("DragForm"),M=de("Warning"),N=de("TypeSelect"),V=de("el-input"),w=de("el-divider"),D=de("PropsInput"),I=de("EventConfig"),j=de("el-tab-pane"),R=de("el-tabs"),O=de("el-dialog");return ie(),Fe(h,{class:"_fc-designer",style:Rn(t.height?`height:${t.dragHeight};flex:0;`:""),onDragenter:t.handleDragenter,onDragleave:t.handleDragleave,onDrop:t.handleDrop},{default:q(()=>[ee(x,null,{default:q(()=>[(ie(),Fe(h,{style:{height:"100%"},key:t.locale&&t.locale.name},{default:q(()=>[ee(c,{class:"_fc-l-menu",width:"40px"},{default:q(()=>[ee(f,{effect:"dark",content:t.t("designer.comList"),placement:"right","hide-after":0},{default:q(()=>[re("div",{class:at(["_fc-l-menu-item",{active:t.activeModule==="base"}]),onClick:a[0]||(a[0]=X=>t.activeModule="base")},a[31]||(a[31]=[re("i",{class:"fc-icon icon-menu"},null,-1)]),2)]),_:1},8,["content"]),t.getConfig("showLanguage",!0)?(ie(),Fe(f,{key:0,effect:"dark",content:t.t("language.name"),placement:"right","hide-after":0},{default:q(()=>[re("div",{class:at(["_fc-l-menu-item",{active:t.activeModule==="language"}]),onClick:a[1]||(a[1]=X=>t.activeModule="language")},a[32]||(a[32]=[re("i",{class:"fc-icon icon-language"},null,-1)]),2)]),_:1},8,["content"])):Ne("",!0),t.getConfig("showJsonPreview",!0)?(ie(),Fe(f,{key:1,effect:"dark",content:"JSON",placement:"right","hide-after":0},{default:q(()=>[re("div",{class:at(["_fc-l-menu-item",{active:t.activeModule==="json"}]),onClick:a[2]||(a[2]=X=>t.activeModule="json")},a[33]||(a[33]=[re("i",{class:"fc-icon icon-script"},null,-1)]),2)]),_:1})):Ne("",!0)]),_:1}),ee(c,{class:"_fc-l",width:t.activeModule==="language"?"450px":"266px"},{default:q(()=>[t.activeModule==="language"?(ie(),Fe(p,{key:0})):Ne("",!0),t.activeModule==="json"?(ie(),Fe(m,{key:1})):Ne("",!0),t.activeModule==="base"?(ie(),Fe(h,{key:2,style:{height:"100%"}},{default:q(()=>[ee(v,{height:"40px",class:"_fc-l-tabs"},{default:q(()=>[re("div",{class:at(["_fc-l-tab",{active:t.activeMenuTab==="menu"}]),onClick:a[3]||(a[3]=X=>t.activeMenuTab="menu")},ve(t.t("menu.component")),3),re("div",{class:at(["_fc-l-tab",{active:t.activeMenuTab==="tree"}]),onClick:a[4]||(a[4]=X=>t.activeMenuTab="tree")},ve(t.t("menu.tree")),3)]),_:1}),Br(ee(x,null,{default:q(()=>[(ie(!0),ge(ze,null,lt(t.menuList,(X,U)=>(ie(),ge(ze,null,[t.hiddenMenu.indexOf(X.name)===-1?(ie(),ge("div",{class:"_fc-l-group",key:U},[re("h4",{class:"_fc-l-title",onClick:Z=>X.hidden=!X.hidden},[ke(ve(t.t("menu."+X.name)||X.title)+" ",1),re("i",{class:at(["fc-icon icon-arrow",{down:!X.hidden}])},null,2)],8,Ny),Br(ee(_,{group:{name:"default",pull:"clone",put:!1},sort:!1,itemKey:"name",class:"_fc-l-list",list:X.list},{item:q(({element:Z})=>[t.hiddenItem.indexOf(Z.name)===-1?(ie(),ge("div",{key:0,class:"_fc-l-item",onClick:L=>t.clickMenu(Z)},[re("div",Iy,[re("i",{class:at(["fc-icon",Z.icon||"icon-input"])},null,2)]),re("span",Ly,ve(t.t("com."+Z.name+".name")||Z.label),1)],8,Oy)):Ne("",!0)]),_:2},1032,["list"]),[[Tr,!X.hidden]])])):Ne("",!0)],64))),256))]),_:1},512),[[Tr,t.activeMenuTab==="menu"]]),t.activeMenuTab==="tree"?(ie(),Fe(x,{key:0},{default:q(()=>[ee(y,{ref:"treeRef",data:t.treeInfo,"default-expand-all":"","expand-on-click-node":!1,onCurrentChange:t.treeChange},{default:q(({node:X,data:U})=>{var Z,L,Q,W;return[re("div",{class:at(["_fc-tree-node",{active:t.activeRule===U.rule}])},[re("div",Py,[re("i",{class:at(["fc-icon",U.rule._menu&&U.rule._menu.icon||"icon-cell"])},null,2),re("span",null,ve((((W=(Q=(L=(Z=U.rule)==null?void 0:Z.__fc__)==null?void 0:L.refRule)==null?void 0:Q.__$title)==null?void 0:W.value)||U.rule.title||"").trim()||U.rule.props&&U.rule.props.label||t.t("com."+(U.rule._menu&&U.rule._menu.name)+".name")||U.rule._menu&&U.rule._menu.label||U.rule.type),1)]),U.slot?Ne("",!0):(ie(),ge("div",{key:0,class:"_fc-tree-more",onClick:a[5]||(a[5]=Vt(()=>{},["stop"]))},[ee(F,{trigger:"click",size:"default"},{dropdown:q(()=>[ee(b,null,{default:q(()=>[U.rule._fc_drag_tag!=="_"?(ie(),Fe(k,{key:"1",onClick:G=>t.toolHandle(U.rule,"copy")},{default:q(()=>[ke(ve(t.t("props.copy")),1)]),_:2},1032,["onClick"])):Ne("",!0),U.rule._menu&&U.rule._menu.children&&U.rule._fc_drag_tag!=="_"?(ie(),Fe(k,{key:"2",onClick:G=>t.toolHandle(U.rule,"addChild")},{default:q(()=>[ke(ve(t.t("form.appendChild")),1)]),_:2},1032,["onClick"])):Ne("",!0),ee(k,{key:"3",onClick:G=>t.toolHandle(U.rule,"delete")},{default:q(()=>[ke(ve(t.t("props.delete")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),default:q(()=>[a[34]||(a[34]=re("i",{class:"fc-icon icon-more"},null,-1))]),_:2},1024)]))],2)]}),_:1},8,["data","onCurrentChange"])]),_:1})):Ne("",!0)]),_:1})):Ne("",!0)]),_:1},8,["width"]),ee(h,{class:"_fc-m"},{default:q(()=>[ee(v,{class:"_fc-m-tools",height:"45"},{default:q(()=>[re("div",Vy,[t.inputForm.state?Ne("",!0):(ie(),ge(ze,{key:0},[t.getConfig("showDevice")!==!1?(ie(),ge(ze,{key:0},[re("div",jy,[re("i",{class:at(["fc-icon icon-pc",{active:t.device==="pc"}]),onClick:a[6]||(a[6]=X=>t.setDevice("pc"))},null,2),re("i",{class:at(["fc-icon icon-pad",{active:t.device==="pad"}]),onClick:a[7]||(a[7]=X=>t.setDevice("pad"))},null,2),re("i",{class:at(["fc-icon icon-mobile",{active:t.device==="mobile"}]),onClick:a[8]||(a[8]=X=>t.setDevice("mobile"))},null,2)]),a[35]||(a[35]=re("div",{class:"line"},null,-1))],64)):Ne("",!0),re("div",null,[re("i",{class:at(["fc-icon icon-pre-step",{disabled:!t.operation.list[t.operation.idx-1]}]),onClick:a[9]||(a[9]=(...X)=>t.prevOperationRecord&&t.prevOperationRecord(...X))},null,2),re("i",{class:at(["fc-icon icon-next-step",{disabled:!t.operation.list[t.operation.idx+1]}]),onClick:a[10]||(a[10]=(...X)=>t.nextOperationRecord&&t.nextOperationRecord(...X))},null,2)])],64))]),re("div",zy,[t.inputForm.state?Ne("",!0):(ie(),ge(ze,{key:0},[qt(t.$slots,"handle"),t.getConfig("showSaveBtn",!1)?(ie(),Fe(g,{key:0,type:"success",plain:"",size:"small",onClick:t.handleSave},{default:q(()=>[a[36]||(a[36]=re("i",{class:"fc-icon icon-save-online"},null,-1)),ke(" "+ve(t.t("props.save")),1)]),_:1},8,["onClick"])):Ne("",!0),ee(g,{type:"primary",plain:"",size:"small",onClick:t.openPreview},{default:q(()=>[a[37]||(a[37]=re("i",{class:"fc-icon icon-preview"},null,-1)),ke(" "+ve(t.t("props.preview")),1)]),_:1},8,["onClick"]),ee(A,{title:t.t("designer.clearWarn"),width:"200px","confirm-button-text":t.t("props.clear"),"cancel-button-text":t.t("props.cancel"),onConfirm:t.clearDragRule},{reference:q(()=>[ee(g,{type:"danger",plain:"",size:"small"},{default:q(()=>[a[38]||(a[38]=re("i",{class:"fc-icon icon-delete"},null,-1)),ke(ve(t.t("props.clear")),1)]),_:1})]),_:1},8,["title","confirm-button-text","cancel-button-text","onConfirm"]),t.handle&&t.handle.length?(ie(),Fe(F,{key:1,trigger:"click",size:"default"},{dropdown:q(()=>[ee(b,null,{default:q(()=>[(ie(!0),ge(ze,null,lt(t.handle,X=>(ie(),Fe(k,{onClick:Vt(U=>t.triggerHandle(X),["stop"])},{default:q(()=>[re("div",null,ve(X.label),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),default:q(()=>[ee(g,{class:"_fd-m-extend",plain:"",size:"small"},{default:q(()=>a[39]||(a[39]=[re("i",{class:"fc-icon icon-more"},null,-1)])),_:1})]),_:1})):Ne("",!0)],64)),t.getConfig("showInputData",!0)?(ie(),ge(ze,{key:1},[a[42]||(a[42]=re("div",{class:"line"},null,-1)),re("div",Uy,[ee(C,{size:"default","model-value":t.inputForm.state,"inline-prompt":"","onUpdate:modelValue":t.openInputData},{"active-action":q(()=>a[40]||(a[40]=[re("i",{class:"fc-icon icon-edit2",style:{"font-size":"12px",color:"#fff"}},null,-1)])),"inactive-action":q(()=>a[41]||(a[41]=[re("i",{class:"fc-icon icon-edit2",style:{"font-size":"12px",color:"#333"}},null,-1)])),_:1},8,["model-value","onUpdate:modelValue"])])],64)):Ne("",!0)])]),_:3}),ee(x,{class:"_fc-m-con"},{default:q(()=>[(ie(),ge("a",{key:t.activeRule?t.activeRule._fc_id:"",style:{"background-image":"url(data:image/png;base64,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) !important","background-repeat":"no-repeat !important","background-size":"cover !important","background-position":"center !important",position:"absolute !important",overflow:"hidden !important",left:"50% !important",width:"160px!important",right:"0 !important",top:"auto !important",bottom:"9px !important",display:"block !important",height:"17px !important","text-align":"center !important",opacity:"1 !important",visibility:"visible !important",margin:"0 0 0 -80px !important",padding:"0 !important"},target:"_blank",href:"https://form-create.com/"})),re("div",{class:at(["_fc-m-drag",t.device]),ref:"dragCon",style:Rn({"--fc-drag-empty":`'${t.t("designer.dragEmpty")}'`,"--fc-child-empty":`'${t.t("designer.childEmpty")}'`})},[t.inputForm.state?(ie(),ge("div",Hy,[(ie(),Fe(S,{key:t.inputForm.key,rule:t.inputForm.rule,option:t.inputForm.option,api:t.inputForm.api,"onUpdate:api":a[11]||(a[11]=X=>t.inputForm.api=X),disabled:!1},null,8,["rule","option","api"]))])):(ie(),Fe(B,{key:1,rule:t.dragForm.rule,option:t.formOptions,api:t.dragForm.api,"onUpdate:api":a[12]||(a[12]=X=>t.dragForm.api=X)},null,8,["rule","option","api"]))],6),t.inputForm.state?(ie(),ge("div",Wy,[ee(g,{plain:"",onClick:a[13]||(a[13]=X=>t.inputClear())},{default:q(()=>[ke(ve(t.t("props.clear")),1)]),_:1}),ee(g,{plain:"",onClick:a[14]||(a[14]=X=>t.inputReset())},{default:q(()=>[ke(ve(t.t("props.reset")),1)]),_:1}),ee(g,{type:"primary",plain:"",onClick:a[15]||(a[15]=X=>t.inputSave())},{default:q(()=>[ke(ve(t.t("props.save")),1)]),_:1})])):Ne("",!0)]),_:1})]),_:3}),!t.config||t.config.showConfig!==!1?(ie(),Fe(c,{key:0,class:"_fc-r",width:"320px"},{default:q(()=>[ee(h,{style:{height:"100%"}},{default:q(()=>[ee(v,{height:"40px",class:"_fc-r-tabs"},{default:q(()=>[t.activeRule||t.customForm.isShow||t.config&&t.config.showFormConfig===!1?(ie(),ge("div",{key:0,class:at(["_fc-r-tab",{active:t.activeTab==="props"}]),onClick:a[16]||(a[16]=X=>t.activeTab="props")},ve(t.t("designer.component")),3)):Ne("",!0),!t.config||t.config.showFormConfig!==!1?(ie(),ge("div",{key:1,class:at(["_fc-r-tab",{active:t.activeTab==="form"&&(!!t.activeRule||t.customForm.isShow)}]),onClick:a[17]||(a[17]=X=>t.activeTab="form")},ve(t.t("designer.form")),3)):Ne("",!0)]),_:1}),!t.config||t.config.showFormConfig!==!1?Br((ie(),Fe(x,{key:0,class:"_fc-r-tab-form"},{default:q(()=>[ee(B,{rule:t.form.rule,option:t.form.option,modelValue:t.form.value,onChange:t.formOptChange,api:t.form.api,"onUpdate:api":a[18]||(a[18]=X=>t.form.api=X)},{title:q(X=>[X.rule.warning?(ie(),Fe(M,{key:0,tooltip:X.rule.warning},{default:q(()=>[ke(ve(X.rule.title),1)]),_:2},1032,["tooltip"])):(ie(),ge(ze,{key:1},[ke(ve(X.rule.title),1)],64))]),_:1},8,["rule","option","modelValue","onChange","api"])]),_:1},512)),[[Tr,t.activeTab==="form"]]):Ne("",!0),Br((ie(),Fe(x,{class:"_fc-r-tab-props",key:t.activeRule?t.activeRule._fc_id:t.customForm.config?t.customForm.key:""},{default:q(()=>[re("div",{class:"_fc-r-tools-close",onClick:a[19]||(a[19]=(...X)=>t.clearActiveRule&&t.clearActiveRule(...X))},a[43]||(a[43]=[re("i",{class:"fc-icon icon-add2"},null,-1)])),t.activeRule||t.customForm.config&&(t.customForm.config.name||t.customForm.config.label)?(ie(),ge(ze,{key:0},[re("p",Qy,ve(t.t("designer.type")),1),ee(N),t.activeRule&&t.activeRule.name&&t.config.showComponentName!==!1?(ie(),ge(ze,{key:0},[re("p",Xy,[ee(M,{tooltip:t.t("warning.name")},{default:q(()=>[ke(ve(t.t("designer.name")),1)]),_:1},8,["tooltip"])]),ee(V,{size:"small",class:"_fc-r-name-input","model-value":t.activeRule.name,readonly:""},{suffix:q(()=>[re("i",{class:"fc-icon icon-group",onClick:a[20]||(a[20]=(...X)=>t.copyName&&t.copyName(...X))})]),append:q(()=>[re("i",{class:"fc-icon icon-auto",onClick:a[21]||(a[21]=(...X)=>t.updateName&&t.updateName(...X))})]),_:1},8,["model-value"])],64)):Ne("",!0)],64)):Ne("",!0),re("div",{class:"_fc-r-config",style:Rn({"grid-template-areas":t.configFormOrderStyle})},[re("div",Yy,[t.baseForm.isShow?(ie(),Fe(w,{key:0},{default:q(()=>[ke(ve(t.t("designer.rule")),1)]),_:1})):Ne("",!0),Br(ee(B,{api:t.baseForm.api,"onUpdate:api":a[22]||(a[22]=X=>t.baseForm.api=X),rule:t.baseForm.rule,option:t.baseForm.options,modelValue:t.baseForm.value,onChange:t.baseChange},{title:q(X=>[X.rule.warning?(ie(),Fe(M,{key:0,tooltip:X.rule.warning},{default:q(()=>[ke(ve(X.rule.title),1)]),_:2},1032,["tooltip"])):(ie(),ge(ze,{key:1},[ke(ve(X.rule.title),1)],64))]),_:1},8,["api","rule","option","modelValue","onChange"]),[[Tr,t.baseForm.isShow]])]),re("div",Gy,[t.propsForm.isShow?(ie(),Fe(w,{key:0},{default:q(()=>[ke(ve(t.t("designer.props"))+" ",1),t.activeRule&&t.getConfig("showCustomProps",!0)?(ie(),Fe(D,{key:0})):Ne("",!0)]),_:1})):Ne("",!0),Br(ee(B,{api:t.propsForm.api,"onUpdate:api":a[23]||(a[23]=X=>t.propsForm.api=X),rule:t.propsForm.rule,option:t.propsForm.options,modelValue:t.propsForm.value,onChange:t.propChange,onRemoveField:t.propRemoveField},{title:q(X=>[X.rule.warning?(ie(),Fe(M,{key:0,tooltip:X.rule.warning},{default:q(()=>[ke(ve(X.rule.title),1)]),_:2},1032,["tooltip"])):(ie(),ge(ze,{key:1},[ke(ve(X.rule.title),1)],64))]),_:1},8,["api","rule","option","modelValue","onChange","onRemoveField"]),[[Tr,t.propsForm.isShow]]),t.customForm.isShow&&t.customForm.propsShow?(ie(),Fe(w,{key:1},{default:q(()=>[ke(ve(t.t("designer.props")),1)]),_:1})):Ne("",!0),t.customForm.isShow&&t.customForm.propsShow?(ie(),Fe(B,{api:t.customForm.api,"onUpdate:api":a[24]||(a[24]=X=>t.customForm.api=X),rule:t.customForm.rule,option:t.customForm.options,key:t.customForm.key,onChange:t.customFormChange},null,8,["api","rule","option","onChange"])):Ne("",!0)]),re("div",$y,[t.styleForm.isShow?(ie(),Fe(w,{key:0,id:"_fd-config-style"},{default:q(()=>[ke(ve(t.t("designer.style")),1)]),_:1})):Ne("",!0),Br(ee(B,{rule:t.styleForm.rule,option:t.styleForm.options,modelValue:t.styleForm.value,onChange:t.styleChange,api:t.styleForm.api,"onUpdate:api":a[25]||(a[25]=X=>t.styleForm.api=X)},null,8,["rule","option","modelValue","onChange","api"]),[[Tr,t.styleForm.isShow]])]),re("div",qy,[t.eventShow?(ie(),Fe(w,{key:0},{default:q(()=>[ke(ve(t.t("designer.event")),1)]),_:1})):Ne("",!0),t.eventShow?(ie(),Fe(I,{key:1,"event-name":t.activeRule&&t.activeRule._menu.event||[],"component-name":t.activeRule&&t.activeRule._menu.name||"","model-value":t.activeRule&&t.activeRule._on||{},"onUpdate:modelValue":t.changeEvent},null,8,["event-name","component-name","model-value","onUpdate:modelValue"])):Ne("",!0)]),t.activeRule?(ie(),ge("div",Jy,[t.validateForm.isShow?(ie(),Fe(w,{key:0},{default:q(()=>[ke(ve(t.t("designer.validate")),1)]),_:1})):Ne("",!0),t.validateForm.isShow?(ie(),Fe(B,{api:t.validateForm.api,"onUpdate:api":a[26]||(a[26]=X=>t.validateForm.api=X),rule:t.validateForm.rule,option:t.validateForm.options,modelValue:t.validateForm.value,onChange:t.validateChange,key:t.activeRule._fc_id},null,8,["api","rule","option","modelValue","onChange"])):Ne("",!0)])):Ne("",!0)],4)]),_:1})),[[Tr,t.activeTab==="props"]])]),_:1})]),_:1})):Ne("",!0),ee(O,{modelValue:t.preview.state,"onUpdate:modelValue":a[30]||(a[30]=X=>t.preview.state=X),width:"800px",class:"_fd-preview-dialog","append-to-body":""},{default:q(()=>[ee(R,{class:"_fd-preview-tabs",modelValue:t.previewStatus,"onUpdate:modelValue":a[27]||(a[27]=X=>t.previewStatus=X)},{default:q(()=>[ee(j,{label:t.t("form.formMode"),name:"form"},null,8,["label"]),ee(j,{label:t.t("form.componentMode"),name:"component"},null,8,["label"]),ee(j,{label:t.t("form.htmlMode"),name:"html"},null,8,["label"])]),_:1},8,["modelValue"]),["component","html"].indexOf(t.previewStatus)>-1?(ie(),ge("div",{key:0,class:"_fd-preview-copy",onClick:a[28]||(a[28]=(...X)=>t.copyCode&&t.copyCode(...X))},a[44]||(a[44]=[re("i",{class:"fc-icon icon-copy"},null,-1)]))):Ne("",!0),t.previewStatus==="form"?(ie(),ge(ze,{key:1},[t.preview.state?(ie(),Fe(S,{key:0,rule:t.preview.rule,option:t.preview.option,api:t.preview.api,"onUpdate:api":a[29]||(a[29]=X=>t.preview.api=X)},ss({_:2},[lt(t.$slots,(X,U)=>({name:U,fn:q(Z=>[qt(t.$slots,U,Wm(Qm(Z??{})))])}))]),1032,["rule","option","api"])):Ne("",!0)],64)):t.previewStatus==="component"?(ie(),ge("pre",Ky,[re("code",{innerHTML:t.preview.component},null,8,Zy)],512)):(ie(),ge("pre",eb,[re("code",{innerHTML:t.preview.html},null,8,tb)],512))]),_:3},8,["modelValue"])]),_:3}))]),_:3})]),_:3},8,["style","onDragenter","onDragleave","onDrop"])}const en=nt(My,[["render",nb]]),rb=tt({name:"DragTool",emits:["create","copy","addChild","delete","active","fc.el"],props:{dragBtn:Boolean,children:String,mask:Boolean,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.ctx.hiddenDragMenu},hiddenBtn(){return this.designer.ctx.hiddenDragBtn}},methods:{active(){this.fcx.active!==this.id&&(this.fcx.active=this.id,this.$emit("active"))}},mounted(){this.$emit("fc.el",this)}}),ib={key:0,class:"_fd-drag-mask"},ob={key:0,class:"_fd-drag-btn",style:{cursor:"move"}},ab={key:2,class:"_fd-drag-r"};function lb(t,a,o,i,n,l){return ie(),ge("div",{class:at(["_fd-drag-tool",{active:t.fcx.active===t.id}]),onClick:a[5]||(a[5]=Vt((...f)=>t.active&&t.active(...f),["stop"]))},[t.mask?(ie(),ge("div",ib)):Ne("",!0),t.hiddenBtn?Ne("",!0):(ie(),ge("div",{key:1,class:"_fd-drag-l",onClick:a[0]||(a[0]=Vt(()=>{},["stop"]))},[t.dragBtn!==!1?Br((ie(),ge("div",ob,a[6]||(a[6]=[re("i",{class:"fc-icon icon-move"},null,-1)]),512)),[[Tr,t.fcx.active===t.id]]):Ne("",!0)])),t.btns!==!1&&!t.hiddenMenu?(ie(),ge("div",ab,[qt(t.$slots,"handle",{},()=>[t.isCreate&&(t.btns===!0||t.btns.indexOf("create")>-1)?(ie(),ge("div",{key:0,class:"_fd-drag-btn",onClick:a[1]||(a[1]=Vt(f=>t.$emit("create"),["stop"]))},a[7]||(a[7]=[re("i",{class:"fc-icon icon-add"},null,-1)]))):Ne("",!0),!t.only&&(t.btns===!0||t.btns.indexOf("copy")>-1)?(ie(),ge("div",{key:1,class:"_fd-drag-btn",onClick:a[2]||(a[2]=Vt(f=>t.$emit("copy"),["stop"]))},a[8]||(a[8]=[re("i",{class:"fc-icon icon-copy"},null,-1)]))):Ne("",!0),t.children&&(t.btns===!0||t.btns.indexOf("addChild")>-1)?(ie(),ge("div",{key:2,class:"_fd-drag-btn",onClick:a[3]||(a[3]=Vt(f=>t.$emit("addChild"),["stop"]))},a[9]||(a[9]=[re("i",{class:"fc-icon icon-add-child"},null,-1)]))):Ne("",!0),t.btns===!0||t.btns.indexOf("delete")>-1?(ie(),ge("div",{key:3,class:"_fd-drag-btn _fd-drag-danger",onClick:a[4]||(a[4]=Vt(f=>t.$emit("delete"),["stop"]))},a[10]||(a[10]=[re("i",{class:"fc-icon icon-delete"},null,-1)]))):Ne("",!0)])])):Ne("",!0),qt(t.$slots,"default")],2)}const Op=nt(rb,[["render",lb]]),ub=tt({name:"fcRow",mounted(){}});function sb(t,a,o,i,n,l){const f=de("el-col");return ie(),Fe(f,{span:24},{default:q(()=>[re("div",ei({class:["_fd-row el-row",{"_fc-child-empty":!t.$slots.default}]},t.$attrs),[qt(t.$slots,"default")],16)]),_:3})}const cb=nt(ub,[["render",sb]]),db=tt({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(t){t&&this.load()}},methods:{validateXML(t){var a;const o=new DOMParser().parseFromString(t,"application/xml").getElementsByTagName("parsererror");return o.length>0&&(a=o[0].innerText.split(`
- `)[0])!=null?a:""},load(){this.oldVal=this.modelValue,this.$nextTick(()=>{this.editor=Zr(Ni(this.$refs.editor,{lineNumbers:!0,mode:"xml",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:this.modelValue||""}))})},onOk(){const t=this.editor.getValue();return this.validateXML(t)?(jn(this.t("struct.errorMsg")),!1):(this.visible=!1,t!==this.oldVal&&this.$emit("update:modelValue",t),!0)}}}),fb={class:"_fd-html-editor"},pb={key:0,ref:"editor"};function hb(t,a,o,i,n,l){const f=de("el-button"),c=de("el-dialog");return ie(),ge("div",fb,[ee(f,{onClick:a[0]||(a[0]=p=>t.visible=!0),style:{width:"100%"}},{default:q(()=>[ke(ve(t.title||t.t("struct.title")),1)]),_:1}),ee(c,{class:"_fd-html-editor-con",title:t.title||t.t("struct.title"),modelValue:t.visible,"onUpdate:modelValue":a[2]||(a[2]=p=>t.visible=p),"close-on-click-modal":!1,"append-to-body":""},{footer:q(()=>[re("div",null,[ee(f,{onClick:a[1]||(a[1]=p=>t.visible=!1),size:"default"},{default:q(()=>[ke(ve(t.t("props.cancel")),1)]),_:1}),ee(f,{type:"primary",onClick:t.onOk,size:"default"},{default:q(()=>[ke(ve(t.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:q(()=>[t.visible?(ie(),ge("div",pb,null,512)):Ne("",!0)]),_:1},8,["title","modelValue"])])}const mb=nt(db,[["render",hb]]),gb=tt({name:"FnInput",components:{FnEditor:Io},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(t){this.value=t}},methods:{onOk(){this.$refs.editor.save()&&(this.$emit("update:modelValue",this.value),this.$emit("change",this.value),this.visible=!1)}}}),vb={class:"_fd-fn-input"};function _b(t,a,o,i,n,l){const f=de("el-button"),c=de("el-badge"),p=de("FnEditor"),m=de("el-dialog");return ie(),ge("div",vb,[ee(c,{type:"warning","is-dot":"",hidden:!t.configured},{default:q(()=>[ee(f,{onClick:a[0]||(a[0]=v=>t.visible=!0),size:"small"},{default:q(()=>[qt(t.$slots,"default",{},()=>[ke(ve(t.t("event.title")),1)])]),_:3})]),_:3},8,["hidden"]),ee(m,{class:"_fd-fn-input-dialog _fd-config-dialog",title:t.title||t.t("struct.title"),modelValue:t.visible,"onUpdate:modelValue":a[3]||(a[3]=v=>t.visible=v),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"800px"},{footer:q(()=>[re("div",null,[ee(f,{onClick:a[2]||(a[2]=v=>t.visible=!1),size:"default"},{default:q(()=>[ke(ve(t.t("props.cancel")),1)]),_:1}),ee(f,{type:"primary",onClick:t.onOk,size:"default"},{default:q(()=>[ke(ve(t.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:q(()=>[ee(p,{ref:"editor",modelValue:t.value,"onUpdate:modelValue":a[1]||(a[1]=v=>t.value=v),name:t.name,args:t.args,body:t.body,fnx:t.fnx},null,8,["modelValue","name","args","body","fnx"])]),_:1},8,["title","modelValue"])])}const Ip=nt(gb,[["render",_b]]),yb=t=>[{type:"input",field:"action",title:t("fetch.action"),value:"",props:{size:"default"},validate:[{required:!0,message:t("fetch.actionRequired"),trigger:"blur"}]},{type:"radio",field:"method",title:t("fetch.method"),value:"GET",props:{size:"default"},options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"}],$required:!0},{type:"radio",field:"dataType",title:t("fetch.dataType"),warning:t("warning.fetchDataType"),value:"json",props:{size:"default"},options:[{label:"JSON",value:"json"},{label:"FormData",value:"formData"}],$required:!0},{type:"TableOptions",field:"headers",title:t("fetch.headers"),value:{},props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object",size:"default"}},{type:"TableOptions",field:"query",title:t("fetch.query"),warning:t("warning.fetchQuery"),value:{},props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object",size:"default"}},{type:"TableOptions",field:"data",title:t("fetch.data"),warning:t("warning.fetchData"),value:{},props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object",size:"default"}}],bb=tt({name:"FetchConfig",emits:["update:modelValue"],props:{modelValue:[Object,String],to:String},components:{Warning:bs,DragForm:Ke.$form(),FnEditor:Io,StructEditor:Mp},inject:["designer"],data(){return{visible:!1,value:Nt(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!dt.empty(this.modelValue)}},watch:{visible(t){t&&(this.value=Nt(this.modelValue||{}),this.active())}},methods:{open(){this.visible=!0},active(){const t=this.value;this.form.rule=t.type==="static"?[]:yb(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||""},save(){this.form.api.validate().then(()=>{const t={...this.form.formData};this.$refs.parse&&!this.$refs.parse.save()||this.$refs.error&&!this.$refs.error.save()||(t.parse=this.form.parse,t.onError=this.form.onError,t.label=this.form.label,t.type=this.form.type,t.to=this.to||"options",this.$emit("update:modelValue",t),this.visible=!1)}).catch(t=>{console.error(t),jn(t[Object.keys(t)[0]][0].message)})}},created(){this.active()}}),Ab={class:"_fd-gfc"};function xb(t,a,o,i,n,l){const f=de("el-button"),c=de("el-badge"),p=de("Warning"),m=de("DragForm"),v=de("el-tab-pane"),_=de("FnEditor"),x=de("el-tabs"),k=de("el-container"),b=de("el-dialog");return ie(),ge("div",Ab,[ee(c,{type:"warning","is-dot":"",hidden:!t.configured},{default:q(()=>[ee(f,{onClick:a[0]||(a[0]=F=>t.visible=!0),size:"small"},{default:q(()=>[ke(ve(t.t("struct.title")),1)]),_:1})]),_:1},8,["hidden"]),ee(b,{class:"_fd-gfc-dialog",modelValue:t.visible,"onUpdate:modelValue":a[6]||(a[6]=F=>t.visible=F),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{header:q(()=>[ke(ve(t.t("fetch.optionsType.fetch"))+" ",1),ee(p,{tooltip:t.t("warning.fetch")},null,8,["tooltip"])]),footer:q(()=>[re("div",null,[ee(f,{size:"default",onClick:a[5]||(a[5]=F=>t.visible=!1)},{default:q(()=>[ke(ve(t.t("props.cancel")),1)]),_:1}),ee(f,{type:"primary",size:"default",onClick:t.save,color:"#2f73ff"},{default:q(()=>[ke(ve(t.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:q(()=>[ee(k,{class:"_fd-gfc-con",style:{height:"450px"}},{default:q(()=>[ee(x,{"model-value":"first",class:"_fc-tabs",style:{width:"100%"}},{default:q(()=>[ee(v,{label:t.t("fetch.config"),name:"first"},{default:q(()=>[ee(m,{api:t.form.api,"onUpdate:api":a[1]||(a[1]=F=>t.form.api=F),modelValue:t.form.formData,"onUpdate:modelValue":a[2]||(a[2]=F=>t.form.formData=F),rule:t.form.rule,option:t.form.options},{title:q(F=>[F.rule.warning?(ie(),Fe(p,{key:0,tooltip:F.rule.warning},{default:q(()=>[ke(ve(F.rule.title),1)]),_:2},1032,["tooltip"])):(ie(),ge(ze,{key:1},[ke(ve(F.rule.title),1)],64))]),_:1},8,["api","modelValue","rule","option"])]),_:1},8,["label"]),ee(v,{lazy:"",name:"second"},{label:q(()=>[ke(ve(t.t("fetch.parse"))+" ",1),ee(p,{tooltip:t.t("warning.fetchParse")},null,8,["tooltip"])]),default:q(()=>[ee(_,{style:{height:"415px"},modelValue:t.form.parse,"onUpdate:modelValue":a[3]||(a[3]=F=>t.form.parse=F),name:"parse",args:[{name:"res",info:t.t("fetch.response")},"rule","api"],ref:"parse"},null,8,["modelValue","args"])]),_:1}),ee(v,{lazy:"",label:t.t("fetch.onError"),name:"third"},{default:q(()=>[ee(_,{style:{height:"415px"},modelValue:t.form.onError,"onUpdate:modelValue":a[4]||(a[4]=F=>t.form.onError=F),name:"onError",args:["e"],ref:"error"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const wb=nt(bb,[["render",xb]]),Eb=tt({name:"ConfigItem",components:{Warning:bs},props:{label:String,info:String,warning:String,appendBackground:String,arrow:{type:Boolean,default:!0},showAppend:Boolean},data(){return{visit:!1}}}),Cb={class:"_fd-config-item"},Fb={class:"_fd-ci-head"},kb={key:0,class:"_fd-ci-con"},Sb={key:1,class:"_fd-ci-info"};function Db(t,a,o,i,n,l){const f=de("Warning");return ie(),ge("div",Cb,[re("div",Fb,[re("div",{class:at(["_fd-ci-label",t.$slots.append&&t.arrow!==!1?"is-arrow":""]),onClick:a[0]||(a[0]=c=>t.visit=t.$slots.append&&t.arrow!==!1&&!t.visit)},[t.warning?(ie(),Fe(f,{key:0,tooltip:t.warning},{default:q(()=>[qt(t.$slots,"label",{},()=>[re("span",null,ve(t.label),1)])]),_:3},8,["tooltip"])):qt(t.$slots,"label",{key:1},()=>[re("span",null,ve(t.label),1)]),t.$slots.append&&t.arrow!==!1?(ie(),ge("i",{key:2,class:at(["fc-icon icon-down",t.showAppend||t.visit?"down":""])},null,2)):Ne("",!0)],2),t.$slots.default||t.info?(ie(),ge("div",kb,[t.$slots.default?qt(t.$slots,"default",{key:0}):(ie(),ge("span",Sb,ve(t.info),1))])):Ne("",!0)]),t.showAppend||t.visit?(ie(),ge("div",{key:0,class:"_fd-ci-append",style:Rn("background:"+t.appendBackground)},[qt(t.$slots,"append")],4)):Ne("",!0)])}const Ir=nt(Eb,[["render",Db]]),Bb=tt({name:"FieldInput",inject:["designer"],emits:["update:modelValue"],props:{modelValue:String,disabled:Boolean},computed:{fieldReadonly(){return this.designer.setupState.fieldReadonly},activeRule(){return this.designer.setupState.activeRule},t(){return this.designer.setupState.t}},data(){return{value:this.modelValue||"",oldValue:""}},watch:{modelValue(t){this.value=t}},methods:{copy(){Kr(this.modelValue)},getSubChildren(){let t=this.designer.setupState.getSubFormChildren(this.activeRule)||[];return t=dt.trueArray(t)?t:this.designer.setupState.children,t},getSubFieldChildren(){const t=this.getSubChildren(),a=[],o=i=>(i&&i.forEach(n=>{n&&n._fc_drag_tag&&n.field?a.push({...n,children:[]}):n&&n.children&&o(n.children)}),a);return o(t)},checkValue(){const t=this.oldValue;let a=(this.value||"").replace(/[\s\ ]/g,"");if(a)if(/^[a-zA-Z]/.test(a)){if(t!==a){const o=a.indexOf(".")>-1;if(o&&(a=a.replaceAll(".","_")),this.getSubFieldChildren().filter(i=>i.field===a).length>0)return jn(this.t("computed.fieldExist",{label:a})),t;if(o)return a}}else return jn(this.t("computed.fieldChar")),t;else return jn(this.t("computed.fieldEmpty")),t;return this.oldValue="",a},onFocus(){this.oldValue=this.value},makeField(){this.oldValue=this.value,this.value=Ze(),this.onInput()},onInput(){this.value!==this.modelValue&&(this.value=this.checkValue(),this.oldValue=this.value,this.value!==this.modelValue&&this.$emit("update:modelValue",this.value))}}}),Tb={class:"_fd-field-input"};function Rb(t,a,o,i,n,l){const f=de("el-input");return ie(),ge("div",Tb,[re("i",{class:"fc-icon icon-group",onClick:a[0]||(a[0]=Vt((...c)=>t.copy&&t.copy(...c),["stop"]))}),ee(f,{modelValue:t.value,"onUpdate:modelValue":a[2]||(a[2]=c=>t.value=c),readonly:t.fieldReadonly||t.disabled,disabled:t.fieldReadonly||t.disabled,onFocus:t.onFocus,onBlur:t.onInput},ss({_:2},[t.fieldReadonly?void 0:{name:"append",fn:q(()=>[re("i",{class:"fc-icon icon-auto",onClick:a[1]||(a[1]=(...c)=>t.makeField&&t.makeField(...c))})]),key:"0"}]),1032,["modelValue","readonly","disabled","onFocus","onBlur"])])}const Mb=nt(Bb,[["render",Rb]]),Nb="[[FORM-CREATE-PREFIX-",Ob="-FORM-CREATE-SUFFIX]]",Ib=tt({name:"FnConfig",emits:["update:modelValue"],props:{modelValue:[Object,void 0,null],eventConfig:{type:Array,default:()=>[]}},inject:["designer"],components:{FnEditor:Io},data(){return{visible:!1,activeData:null,defActive:"no",event:{},cus:!1,eventStr:""}},computed:{eventInfo(){const t={};return this.eventConfig.forEach(a=>{t[a.name]=a.info}),t},t(){return this.designer.setupState.t},eventNum(){let t=0;return Object.keys(this.modelValue||{}).forEach(a=>{this.modelValue[a]&&t++}),t}},watch:{visible(t){this.event=t?this.loadFN(Qa({},this.modelValue||{})):{},t||this.destroy()}},methods:{getArgs(t){return t.args.join(", ")},loadFN(t){const a={};return this.eventConfig.forEach(o=>{const i=o.name,n=t[i]||"";a[i]={item:o,fn:n}}),a},parseFN(t){const a={};return Object.keys(t).forEach(o=>{t[o].fn&&(a[o]=t[o].fn)}),a},edit(t){t.key=Ze(),this.activeData=t,this.eventStr=t.fn||Nb+`function ${t.item.name}(${this.getArgs(t.item)}){}`+Ob,this.defActive=t.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())}}}),Lb={class:"_fd-fn-list"},Pb=["onClick"],Vb={key:0,class:"_fd-label"};function jb(t,a,o,i,n,l){const f=de("el-button"),c=de("el-badge"),p=de("el-text"),m=de("el-header"),v=de("el-menu-item"),_=de("el-menu"),x=de("el-main"),k=de("el-container"),b=de("el-aside"),F=de("FnEditor"),y=de("el-dialog");return ie(),ge("div",Lb,[ee(c,{value:t.eventNum,type:"warning",hidden:t.eventNum<1},{default:q(()=>[ee(f,{onClick:a[0]||(a[0]=h=>t.visible=!0),size:"small"},{default:q(()=>[ke(ve(t.t("event.title")),1)]),_:1})]),_:1},8,["value","hidden"]),ee(y,{class:"_fd-fn-list-dialog",title:t.t("event.title"),modelValue:t.visible,"onUpdate:modelValue":a[4]||(a[4]=h=>t.visible=h),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{footer:q(()=>[re("div",null,[ee(f,{size:"default",onClick:a[3]||(a[3]=h=>t.visible=!1)},{default:q(()=>[ke(ve(t.t("props.cancel")),1)]),_:1}),ee(f,{type:"primary",size:"default",onClick:t.submit,color:"#2f73ff"},{default:q(()=>[ke(ve(t.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:q(()=>[ee(k,{class:"_fd-fn-list-con",style:{height:"600px"}},{default:q(()=>[ee(b,{style:{width:"300px"}},{default:q(()=>[ee(k,{class:"_fd-fn-list-l"},{default:q(()=>[ee(m,{class:"_fd-fn-list-head",height:"40px"},{default:q(()=>[ee(p,{type:"primary",size:"default"},{default:q(()=>[ke(ve(t.t("event.list")),1)]),_:1})]),_:1}),ee(x,null,{default:q(()=>[ee(_,{"default-active":t.defActive,modelValue:t.activeData,"onUpdate:modelValue":a[1]||(a[1]=h=>t.activeData=h)},{default:q(()=>[(ie(!0),ge(ze,null,lt(t.event,(h,g)=>(ie(),Fe(v,{index:g},{default:q(()=>[re("div",{class:"_fd-fn-list-method",onClick:Vt(A=>t.edit(h),["stop"])},[re("span",null,[a[5]||(a[5]=ke("function")),re("span",null,ve(g),1)]),t.eventInfo[g]?(ie(),ge("span",Vb,ve(t.eventInfo[g]),1)):Ne("",!0)],8,Pb)]),_:2},1032,["index"]))),256))]),_:1},8,["default-active","modelValue"])]),_:1})]),_:1})]),_:1}),ee(x,null,{default:q(()=>[ee(k,{class:"_fd-fn-list-r"},{default:q(()=>[t.activeData?(ie(),Fe(m,{key:0,class:"_fd-fn-list-head",height:"40px"},{default:q(()=>[ee(f,{size:"small",onClick:t.close},{default:q(()=>[ke(ve(t.t("props.cancel")),1)]),_:1},8,["onClick"]),ee(f,{size:"small",type:"primary",onClick:t.save,color:"#2f73ff"},{default:q(()=>[ke(ve(t.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):Ne("",!0),t.activeData?(ie(),Fe(x,{key:1},{default:q(()=>[ee(F,{ref:"fn",modelValue:t.eventStr,"onUpdate:modelValue":a[2]||(a[2]=h=>t.eventStr=h),name:t.activeData.item.name,args:t.activeData.item.args},null,8,["modelValue","name","args"])]),_:1})):Ne("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["title","modelValue"])])}const zb=nt(Ib,[["render",jb]]),Lp=tt({name:"DragBox",props:["rule","tag","formCreateInject","list"],render(t){const a={...t.$props.rule.props,...t.$attrs};let o="_fd-"+t.$props.tag+"-drag _fd-drag-box";Object.keys(t.$slots).length||(o+=" drag-holder"),a.class=o,a.modelValue=t.$props.list||[...t.$props.formCreateInject.children];const i={};return t.$slots.default&&t.$slots.default().forEach(n=>{n.key&&(i[n.key]=n)}),xo(ps,a,{item:({element:n,index:l})=>{var f;const c=(f=n?.__fc__)==null?void 0:f.key;if(c){let p=i["_"+n.slot];if(p?p.children.forEach(m=>{m.key===c+"fc"&&(p=m)}):p=i[c+"fc"],p)return xo("div",{class:"_fc-"+t.$props.tag+"-item _fd-drag-item",key:c},p)}return xo("div",{class:"_fc-"+t.$props.tag+"-item _fd-drag-item",key:l},null)}})}}),Ub=tt({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:Op,DragBox:Lp},watch:{rule:{handler(){this.initRule(),this.style=this.rule.style},immediate:!0}},data(){return{unique:{},style:{},dragProp:{rule:{props:{tag:"el-col",group:"default",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 t={};return this.border===!1?t.border="0 none":(this.borderColor&&(t.borderColor=this.borderColor),this.borderWidth&&(t.borderWidth=this.borderWidth)),t}},methods:{getUnique(t){return this.unique[t]||(this.unique[t]=Ze()),this.unique[t]},getSlotChildren(t){const a=[];return this.formCreateInject.children.forEach(o=>{t.indexOf(o.slot)>-1&&a.push(o)}),a},dragAdd(t,a){const o=this.designer.setupState,i=this.formCreateInject.children,n=`${a.pid}:${a.idx}`,l=t.item._underlying_vm_,f=o.addRule&&o.addRule.children===o.moveRule;f&&o.moveRule.splice(o.moveRule.indexOf(l),1);let c=0;const p="drag"+a.pid+a.idx;if(this.$refs[p][0].list.length){let m=this.$refs[p][0].list[t.newIndex?t.newIndex-1:0];c=i.indexOf(m)+(t.newIndex?1:0)}else if(i.length){const m=Object.keys(this.$refs);for(let v=m.indexOf(p)-1;v>=0;v--){if(!this.$refs[m[v]]||!this.$refs[m[v]].length)continue;const _=this.$refs[m[v]][0].list||[];if(_.length){c=i.indexOf(_[_.length-1])+1;break}}}t.newIndex=c,f?(l.slot=n,i.splice(t.newIndex,0,l),o.added=!0,o.handleSortAfter({rule:l})):o.dragAdd(i,t,`${a.pid}:${a.idx}`)},dragEnd(t,a){const o=this.designer.setupState,i=this.formCreateInject.children,n=t.item._underlying_vm_,l=i.indexOf(n);t.newIndex=l+(t.newIndex-t.oldIndex),t.oldIndex=l,o.dragEnd(this.formCreateInject.children,t,`${a.pid}:${a.idx}`)},dragStart(){this.designer.setupState.dragStart(this.formCreateInject.children)},dragUnchoose(t){this.designer.setupState.dragUnchoose(this.formCreateInject.children,t)},initRule(){const t=this.rule;t.style||(t.style={}),t.class||(t.class={}),t.layout||(t.layout=[]),t.row||(t.row=1),t.col||(t.col=1)},active(t){const a=`${t.pid}:${t.idx}`;this.designer.setupState.customActive({name:"fcTableGrid",onPaste:o=>{o.slot=a,this.formCreateInject.children.push(o)},style:{formData:{style:this.rule.style[a]||{},class:this.rule.class[a]||""},change:(o,i)=>{this.rule[o][a]=i||{}}}})},command(t){this[t[0]](...t[1])},rmSlot(t,a){const o=Object.keys(t),i=this.formCreateInject.children;let n=0;[...i].forEach((l,f)=>{if(!l.slot)return;let c;a.indexOf(l.slot)>-1?(i.splice(f-n,1),n++):(c=o.indexOf(l.slot))>-1&&(l.slot=t[o[c]])}),a.forEach(l=>{delete this.style[l]}),this.loadRule()},rmRow(t){this.rule.row--;const a={},o=[];for(let l=t.pid;l<this.rule.row+1;l++)for(let f=0;f<this.rule.col;f++)l===t.pid?o.push(`${t.pid}:${f}`):a[`${l}:${f}`]=`${l-1}:${f}`;let i=0;const n=this.rule.layout;[...n].forEach((l,f)=>{l.top===t.pid&&(n.splice(f-i,1),i++)}),n.forEach(l=>{l.top>t.pid&&l.top--}),this.rmSlot(a,o)},rmCol(t){this.rule.col--;const a={},o=[];for(let l=0;l<this.rule.row;l++){for(let f=t.idx+1;f<this.rule.col+1;f++)a[`${l}:${f}`]=`${l}:${f-1}`;o.push(`${l}:${t.idx}`)}let i=0;const n=this.rule.layout;[...n].forEach((l,f)=>{l.left===t.idx&&(n.splice(f-i,1),i++)}),n.forEach(l=>{l.left>t.idx&&l.left--}),this.rmSlot(a,o)},splitRow(t){const a=t.data.layout,o=a.row;if(a.row=0,o>1)for(let i=1;i<o;i++)this.rule.layout.push({...a,top:a.top+i});this.loadRule()},splitCol(t){const a=t.data.layout,o=a.col;if(a.col=0,o>1)for(let i=1;i<o;i++)this.rule.layout.push({...a,left:a.left+i});this.loadRule()},makeMap(t){let a=[];for(let o=t.top;o<(t.row||t.top+1);o++)for(let i=t.left;i<(t.col||t.left+1);i++)a.push(`${o}:${i}`);return a},mergeRight(t){let a;if(t.data.layout){const i=(t.data.layout.col||1)+1;t.data.layout.col=i+t.idx>this.rule.col?this.rule.col-t.idx:i,a=t.data.layout}else a={top:t.pid,left:t.idx,col:2},this.rule.layout.push(a);const o=this.makeMap(a);this.formCreateInject.children.forEach(i=>{!i.slot||o.indexOf(i.slot)>-1&&(i.slot=`${t.pid}:${t.idx}`)}),this.loadRule()},mergeBottom(t){let a;if(t.data.layout){const i=(t.data.layout.row||1)+1;t.data.layout.row=i+i.pid>this.rule.col?this.rule.col-t.pid:i,a=t.data.layout}else a={top:t.pid,left:t.idx,row:2},this.rule.layout.push(a);const o=this.makeMap(a);this.formCreateInject.children.forEach(i=>{!i.slot||o.indexOf(i.slot)>-1&&(i.slot=`${t.pid}:${t.idx}`)}),this.loadRule()},addCol(t,a){if(this.rule.col++,this.rule.layout.forEach(o=>{o.left>(a?t.idx-1:t.idx)&&o.left++}),a||t.idx<this.rule.col-2){const o={};for(let n=0;n<this.rule.row;n++)for(let l=a?t.idx-1:t.idx+1;l<this.rule.col-1;l++)o[`${n}:${l}`]=`${n}:${l+1}`;const i=Object.keys(o);this.formCreateInject.children.forEach(n=>{let l;n.slot&&(l=i.indexOf(n.slot))>-1&&(n.slot=o[i[l]])}),i.forEach(n=>{this.style[n]&&(this.style[o[n]]=this.style[n],delete this.style[n])})}this.loadRule()},addRow(t,a){if(this.rule.row++,this.rule.layout.forEach(o=>{o.top>(a?t.pid-1:t.pid)&&o.top++}),a||t.pid<this.rule.row-2){const o={};for(let n=a?t.pid-1:t.pid+1;n<this.rule.row;n++)for(let l=0;l<this.rule.col;l++)o[`${n}:${l}`]=`${n+1}:${l}`;const i=Object.keys(o);this.formCreateInject.children.forEach(n=>{let l;n.slot&&(l=i.indexOf(n.slot))>-1&&(n.slot=o[i[l]])}),i.reverse().forEach(n=>{this.style[n]&&(this.style[o[n]]=this.style[n],delete this.style[n])})}this.loadRule()},loadRule(){const t=[],a=this.rule||{row:1,col:1};for(let i=0;i<a.row;i++){const n=[];t.push(n);for(let l=0;l<a.col;l++)n.push({rowspan:1,colspan:1,slot:[],show:!0,id:this.getUnique(`${i}${l}`)})}[...a.layout||[]].forEach((i,n)=>{if((!i.row||i.row<=0)&&(!i.col||i.col<=0)||!t[i.top]||!t[i.top][i.left]||!t[i.top][i.left].show){a.layout.splice(n,1);return}const l=t[i.top][i.left];l.layout=i;let f=1,c=1;if(i.col&&(f=i.col+i.left>a.col?a.col-i.left:i.col,l.colspan=f),i.row&&(c=i.row+i.top>a.row?a.row-i.top:i.row,l.rowspan=c),c&&f)for(let p=0;p<c;p++){const m=t[i.top+p];if(m)for(let v=0;v<f;v++)!v&&!p||(m[i.left+v]&&(m[i.left+v].show=!1),l.slot.push(`${i.top+p}:${i.left+v}`))}});const o=i=>!!(!i||i.layout||!i.show);t.forEach((i,n)=>{i.forEach((l,f)=>{let c=!1,p=!1;if(l.layout){const m=l.layout.col||1,v=l.layout.row||1;for(let _=0;_<m;_++)if(!t[n+v]||o(t[n+v][f+_])){p=!0;continue}for(let _=0;_<v;_++)if(!t[n+_]||o(t[n+_][f+m])){c=!0;continue}}else c=o(i[f+1]),p=t[n+1]?o(t[n+1][f]):!0;l.right=c,l.bottom=p})}),this.lattice=t,this.formCreateInject.rule.props.rule=a}},beforeMount(){this.loadRule()}}),Hb={class:"_fd-table-view"},Wb={class:"_fd-table-view-cell"},Qb=["onClick"],Xb=["onClick"];function Yb(t,a,o,i,n,l){const f=de("DragBox"),c=de("el-dropdown-item"),p=de("el-dropdown-menu"),m=de("el-dropdown"),v=de("DragTool");return ie(),ge("div",Hb,[re("table",{border:"1",cellspacing:"0",cellpadding:"0",style:Rn(t.tableColor)},[(ie(!0),ge(ze,null,lt(t.rule.row,(_,x)=>(ie(),ge("tr",{key:x},[(ie(!0),ge(ze,null,lt(t.rule.col,(k,b)=>(ie(),ge(ze,null,[t.lattice[x][b].show?(ie(),ge("td",ei({key:`${x}${b}`,ref_for:!0},t.lattice[x][b]?{colspan:t.lattice[x][b].colspan,rowspan:t.lattice[x][b].rowspan}:{},{style:[t.tableColor,t.style&&t.style[`${x}:${b}`]||{}],class:t.rule.class&&t.rule.class[`${x}:${b}`]||""}),[re("div",Wb,[ee(v,{"drag-btn":!1,"handle-btn":!0,onActive:F=>t.active({pid:x,idx:b}),unique:t.lattice[x][b].id},{handle:q(()=>[re("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:Vt(F=>t.addRow({pid:x,idx:b,data:t.lattice[x][b]},0),["stop"])},a[3]||(a[3]=[re("i",{class:"fc-icon icon-add-col"},null,-1)]),8,Qb),re("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:Vt(F=>t.addCol({pid:x,idx:b,data:t.lattice[x][b]},0),["stop"])},a[4]||(a[4]=[re("i",{class:"fc-icon icon-add-col",style:{transform:"rotate(90deg)"}},null,-1)]),8,Xb),re("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:a[2]||(a[2]=Vt(()=>{},["stop"]))},[ee(m,{trigger:"click",onCommand:t.command},{dropdown:q(()=>[ee(p,null,{default:q(()=>[ee(c,{command:["addCol",[{pid:x,idx:b,data:t.lattice[x][b]},1]]},{default:q(()=>[ke(ve(t.t("tableOptions.addLeft")),1)]),_:2},1032,["command"]),ee(c,{command:["addCol",[{pid:x,idx:b,data:t.lattice[x][b]},0]]},{default:q(()=>[ke(ve(t.t("tableOptions.addRight")),1)]),_:2},1032,["command"]),ee(c,{command:["addRow",[{pid:x,idx:b,data:t.lattice[x][b]},1]]},{default:q(()=>[ke(ve(t.t("tableOptions.addTop")),1)]),_:2},1032,["command"]),ee(c,{command:["addRow",[{pid:x,idx:b,data:t.lattice[x][b]},0]]},{default:q(()=>[ke(ve(t.t("tableOptions.addBottom")),1)]),_:2},1032,["command"]),ee(c,{divided:"",disabled:t.lattice[x][b].right,command:["mergeRight",[{pid:x,idx:b,data:t.lattice[x][b]}]]},{default:q(()=>[ke(ve(t.t("tableOptions.mergeRight")),1)]),_:2},1032,["disabled","command"]),ee(c,{disabled:t.lattice[x][b].bottom,command:["mergeBottom",[{pid:x,idx:b,data:t.lattice[x][b]}]]},{default:q(()=>[ke(ve(t.t("tableOptions.mergeBottom")),1)]),_:2},1032,["disabled","command"]),ee(c,{divided:"",disabled:!(t.lattice[x][b].layout&&t.lattice[x][b].layout.col>1),command:["splitCol",[{pid:x,idx:b,data:t.lattice[x][b]}]]},{default:q(()=>[ke(ve(t.t("tableOptions.splitCol")),1)]),_:2},1032,["disabled","command"]),ee(c,{disabled:!(t.lattice[x][b].layout&&t.lattice[x][b].layout.row>1),command:["splitRow",[{pid:x,idx:b,data:t.lattice[x][b]}]]},{default:q(()=>[ke(ve(t.t("tableOptions.splitRow")),1)]),_:2},1032,["disabled","command"]),ee(c,{divided:"",disabled:t.rule.col<2,command:["rmCol",[{pid:x,idx:b,data:t.lattice[x][b]}]]},{default:q(()=>[ke(ve(t.t("tableOptions.rmCol")),1)]),_:2},1032,["disabled","command"]),ee(c,{disabled:t.rule.row<2,command:["rmRow",[{pid:x,idx:b,data:t.lattice[x][b]}]]},{default:q(()=>[ke(ve(t.t("tableOptions.rmRow")),1)]),_:2},1032,["disabled","command"])]),_:2},1024)]),default:q(()=>[a[5]||(a[5]=re("i",{class:"fc-icon icon-setting"},null,-1))]),_:2},1032,["onCommand"])])]),default:q(()=>[ee(f,ei({ref_for:!0},t.dragProp,{onAdd:F=>t.dragAdd(F,{pid:x,idx:b}),ref_for:!0,ref:"drag"+x+b,onEnd:F=>t.dragEnd(F,{pid:x,idx:b}),onStart:a[0]||(a[0]=F=>t.dragStart(F)),onUnchoose:a[1]||(a[1]=F=>t.dragUnchoose(F)),list:t.getSlotChildren([`${x}:${b}`,...t.lattice[x][b].slot])}),{default:q(()=>[qt(t.$slots,`${x}:${b}`)]),_:2},1040,["onAdd","onEnd","list"])]),_:2},1032,["onActive","unique"])])],16)):Ne("",!0)],64))),256))]))),128))],4)])}const Gb=nt(Ub,[["render",Yb]]),$b={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 t={};return this.border===!1?t.border="0 none":(this.borderColor&&(t.borderColor=this.borderColor),this.borderWidth&&(t.borderWidth=this.borderWidth)),t}},methods:{initRule(){const t=this.rule;t.style||(t.style={}),t.layout||(t.layout=[]),t.row||(t.row=1),t.col||(t.col=1)},loadRule(){const t=[],a=this.rule||{row:1,col:1};for(let i=0;i<a.row;i++){const n=[];t.push(n);for(let l=0;l<a.col;l++)n.push({rowspan:1,colspan:1,slot:[],show:!0})}[...a.layout||[]].forEach((i,n)=>{if((!i.row||i.row<=0)&&(!i.col||i.col<=0)||!t[i.top]||!t[i.top][i.left]||!t[i.top][i.left].show){a.layout.splice(n,1);return}const l=t[i.top][i.left];l.layout=i;let f=1,c=1;if(i.col&&(f=i.col+i.left>a.col?a.col-i.left:i.col,l.colspan=f),i.row&&(c=i.row+i.top>a.row?a.row-i.top:i.row,l.rowspan=c),c&&f)for(let p=0;p<c;p++){const m=t[i.top+p];if(m)for(let v=0;v<f;v++)!v&&!p||(m[i.left+v]&&(m[i.left+v].show=!1),l.slot.push(`${i.top+p}:${i.left+v}`))}});const o=i=>!!(!i||i.layout||!i.show);t.forEach((i,n)=>{i.forEach((l,f)=>{let c=!1,p=!1;if(l.layout){const m=l.layout.col||1,v=l.layout.row||1;for(let _=0;_<m;_++)if(!t[n+v]||o(t[n+v][f+_])){p=!0;continue}for(let _=0;_<v;_++)if(!t[n+_]||o(t[n+_][f+m])){c=!0;continue}}else c=o(i[f+1]),p=t[n+1]?o(t[n+1][f]):!0;l.right=c,l.bottom=p})}),this.lattice=t}}},qb={class:"_fc-table"};function Jb(t,a,o,i,n,l){const f=de("el-col");return ie(),Fe(f,{span:24},{default:q(()=>[re("div",qb,[re("table",{border:"1",cellspacing:"0",cellpadding:"0",style:Rn(l.tableColor)},[(ie(!0),ge(ze,null,lt(o.rule.row,(c,p)=>(ie(),ge("tr",{key:p},[(ie(!0),ge(ze,null,lt(o.rule.col,(m,v)=>(ie(),ge(ze,{key:`${p}${v}`},[n.lattice[p][v].show?(ie(),ge("td",ei({key:0,ref_for:!0},n.lattice[p][v]?{colspan:n.lattice[p][v].colspan,rowspan:n.lattice[p][v].rowspan}:{},{valign:"top",class:n.tdClass&&n.tdClass[`${p}:${v}`]||"",style:[l.tableColor,n.tdStyle&&n.tdStyle[`${p}:${v}`]||{}]}),[qt(t.$slots,`${p}:${v}`),(ie(!0),ge(ze,null,lt(n.lattice[p][v].slot,_=>qt(t.$slots,`${_}`)),256))],16)):Ne("",!0)],64))),128))]))),128))],4)])]),_:3})}const Kb=nt($b,[["render",Jb]]),Zb=tt({name:"LanguageInput",inject:["designer"],emits:["update:modelValue","blur","change"],props:{size:String,placeholder:String,modelValue:String,disabled:Boolean},computed:{isVar(){return!!(this.modelValue||"").match(/^\{\{\s*\$t\.(.+)\s*\}\}$/)},t(){return this.designer.setupState.t},localeList(){var t,a;const o=this.designer.setupState.getConfig("localeOptions",[{value:"zh-cn",label:"简体中文"},{value:"en",label:"English"}]),i=[],n=((a=(t=this.designer.props)==null?void 0:t.locale)==null?void 0:a.name)||"zh-cn";return o.forEach(l=>{l.value===n?i.unshift(l):i.length<2&&i.push(l)}),i.length>2&&i.pop(),i},language(){const t=this.designer.setupState.formOptions.language||{},a={};return Object.keys(t).forEach(o=>{Object.keys(t[o]).forEach(i=>{a[i]||(a[i]={key:i}),a[i][o]=t[o][i]})}),Object.values(a)}},methods:{openConfig(){this.designer.setupState.activeModule="language"},clickLang(t){this.onInput(`{{$t.${t}}}`),this.$refs.pop.hide()},onInput(t){this.$emit("update:modelValue",t),this.$emit("change",t)}},mounted(){}}),e1={class:"_fd-language-list"},t1={class:"_fd-language-header"},n1={class:"_fd-language-title"},r1={class:"_fd-language-name"},i1=["onClick"];function o1(t,a,o,i,n,l){const f=de("el-popover"),c=de("el-input");return ie(),Fe(c,{class:at(["_fd-language-input",{"is-variable":t.isVar}]),placeholder:t.placeholder,disabled:t.disabled,modelValue:t.modelValue,"onUpdate:modelValue":t.onInput,onBlur:a[1]||(a[1]=p=>t.$emit("blur")),size:t.size||"small"},{append:q(()=>[ee(f,{placement:"bottom-end",width:300,"hide-after":0,trigger:"click",ref:"pop","popper-class":"_fd-language-popover"},{reference:q(()=>a[2]||(a[2]=[re("i",{class:"fc-icon icon-language"},null,-1)])),default:q(()=>[re("div",e1,[re("div",t1,[re("div",n1,[ke(ve(t.t("language.select")),1),re("i",{class:"fc-icon icon-setting",onClick:a[0]||(a[0]=(...p)=>t.openConfig&&t.openConfig(...p))})]),re("div",r1,[(ie(!0),ge(ze,null,lt(t.localeList,p=>(ie(),ge("div",{key:p.value},ve(p.label),1))),128))])]),(ie(!0),ge(ze,null,lt(t.language,p=>(ie(),ge("div",{key:p.key,class:"_fd-language-item",onClick:m=>t.clickLang(p.key)},[(ie(!0),ge(ze,null,lt(t.localeList,m=>(ie(),ge("div",{key:m.value},ve(p[m.value]||"-"),1))),128))],8,i1))),128))])]),_:1},512)]),_:1},8,["class","placeholder","disabled","modelValue","onUpdate:modelValue","size"])}const As=nt(Zb,[["render",o1]]),a1=tt({name:"Validate",inject:["designer"],emits:["update:modelValue"],props:{modelValue:Array},components:{LanguageInput:As,FnInput:Ip},watch:{modelValue(t){this.validate=this.parseValue(t||[])}},data(){return{validate:this.parseValue(this.modelValue||[])}},computed:{t(){return this.designer.setupState.t},modes(){const t=this.designer.setupState.activeRule;return t&&t._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 jt(this.t,[{label:"blur",value:"blur"},{label:"change",value:"change"},{label:"submit",value:"submit"}])}},methods:{handleCommand(t){this.validate.push({transform:new Function("val","this.type = val == null ? 'string' : (Array.isArray(val) ? 'array' : (typeof val)); return val;"),mode:t,trigger:"blur"})},autoMessage(t){const a=this.designer.setupState.activeRule.title;this.designer.setupState.activeRule&&(t.message=this.t("validate.autoRequired",{title:a}),this.onInput())},getSpan(t){return["pattern","validator","required"].indexOf(t.mode)>-1?24:12},onInput:function(){this.$emit("update:modelValue",this.validate.map(t=>(t={...t},t.message||delete t.message,t)))},remove(t){this.validate.splice(t,1),this.onInput()},parseValue(t){return Nt(t.map(a=>(a.validator&&(a.mode="validator"),a.mode||Object.keys(a).forEach(o=>{["message","type","trigger","mode"].indexOf(o)<0&&(a.mode=o)}),a)))}}}),l1={class:"_fd-validate"},u1={class:"_fd-validate-item"},s1={class:"_fd-validate-title"},c1=["onClick"];function d1(t,a,o,i,n,l){const f=de("el-option"),c=de("el-select"),p=de("el-form-item"),m=de("el-col"),v=de("elInput"),_=de("FnInput"),x=de("el-input-number"),k=de("LanguageInput"),b=de("el-row"),F=de("el-button"),y=de("el-dropdown-item"),h=de("el-dropdown-menu"),g=de("el-dropdown");return ie(),ge("div",l1,[(ie(!0),ge(ze,null,lt(t.validate,(A,C)=>(ie(),ge("div",u1,[re("div",s1,[re("div",null,[re("span",null,ve(C+1),1),ke(" "+ve(t.modes[A.mode]),1)]),re("i",{class:"fc-icon icon-delete2",onClick:S=>t.remove(C)},null,8,c1)]),ee(b,null,{default:q(()=>[ee(m,{span:t.getSpan(A)},{default:q(()=>[ee(p,{label:t.t("validate.mode")},{default:q(()=>[ee(c,{modelValue:A.trigger,"onUpdate:modelValue":S=>A.trigger=S,onChange:t.onInput},{default:q(()=>[(ie(!0),ge(ze,null,lt(t.triggers,S=>(ie(),Fe(f,{key:S.value,label:S.label,value:S.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["label"])]),_:2},1032,["span"]),ee(m,{span:t.getSpan(A)},{default:q(()=>[ee(p,{label:t.modes[A.mode]},{default:q(()=>[A.mode==="pattern"?(ie(),Fe(v,{key:0,modelValue:A[A.mode],"onUpdate:modelValue":S=>A[A.mode]=S,onChange:t.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):A.mode==="validator"?(ie(),Fe(_,{key:1,modelValue:A[A.mode],"onUpdate:modelValue":S=>A[A.mode]=S,name:"name",args:["rule","value","callback"],onChange:t.onInput},{default:q(()=>[ke(ve(t.t("validate.modes.validator")),1)]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):(ie(),Fe(x,{key:2,modelValue:A[A.mode],"onUpdate:modelValue":S=>A[A.mode]=S,onChange:t.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"]))]),_:2},1032,["label"])]),_:2},1032,["span"]),ee(m,{span:24},{default:q(()=>[ee(p,{label:t.t("validate.message")},{default:q(()=>[ee(k,{modelValue:A.message,"onUpdate:modelValue":S=>A.message=S,placeholder:t.t("validate.requiredPlaceholder"),onChange:t.onInput},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"])]),_:2},1032,["label"])]),_:2},1024)]),_:2},1024)]))),256)),ee(g,{trigger:"click",size:"default","popper-class":"_fd-validate-pop",onCommand:t.handleCommand},{dropdown:q(()=>[ee(h,null,{default:q(()=>[(ie(!0),ge(ze,null,lt(t.modes,(A,C)=>(ie(),Fe(y,{command:C,key:C},{default:q(()=>[re("div",null,ve(A),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:q(()=>[ee(F,{class:"_fd-validate-btn",size:"small"},{default:q(()=>[ke(ve(t.t("validate.rule"))+" +",1)]),_:1})]),_:1},8,["onCommand"])])}const f1=nt(a1,[["render",d1]]),p1=tt({name:"Required",components:{LanguageInput:As},emits:["update:modelValue"],props:{modelValue:{}},inject:["designer"],watch:{required(){this.update()},requiredMsg(){this.update()},modelValue(t){const a=dt.String(t);this.required=t===void 0?!1:a?!0:!!t,this.requiredMsg=a?t:""}},computed:{t(){return this.designer.setupState.t}},data(){const t=dt.String(this.modelValue);return{required:this.modelValue===void 0?!1:t?!0:!!this.modelValue,requiredMsg:t?this.modelValue:""}},methods:{update(){let t;this.required===!1?t=!1:t=this.requiredMsg||!0,this.$emit("update:modelValue",t)}}}),h1={class:"_fd-required"};function m1(t,a,o,i,n,l){const f=de("el-switch"),c=de("LanguageInput");return ie(),ge("div",h1,[ee(f,{modelValue:t.required,"onUpdate:modelValue":a[0]||(a[0]=p=>t.required=p)},null,8,["modelValue"]),t.required?(ie(),Fe(c,{key:0,modelValue:t.requiredMsg,"onUpdate:modelValue":a[1]||(a[1]=p=>t.requiredMsg=p),placeholder:t.t("validate.requiredPlaceholder")},null,8,["modelValue","placeholder"])):Ne("",!0)])}const g1=nt(p1,[["render",m1]]),v1=tt({name:"ValueInput",emits:["update:modelValue","change","change-type","blur"],inject:["designer"],props:{modelValue:[String,Number,Boolean]},data(){return{type:"1",value:""}},computed:{t(){return this.designer.setupState.t}},watch:{modelValue:{handler:function(t){typeof t=="number"?this.type="2":typeof t=="boolean"?this.type="3":this.type="1",this.value=t==null?"":""+t},immediate:!0},type(){this.updateValue(this.value),this.$emit("change-type",this.type)}},methods:{onBlur(...t){this.value!==this.toValue(this.modelValue)&&this.updateValue(this.value),this.$emit("blur",...t)},updateValue(t){const a=this.toValue(t);this.$emit("update:modelValue",a),this.$emit("change",a)},toValue(t){return this.type==="1"?""+t:this.type==="2"?parseFloat(t)||0:t==="true"}}});function _1(t,a,o,i,n,l){const f=de("el-option"),c=de("el-select"),p=de("el-input");return ie(),Fe(p,ei({class:"_fd-value-input",modelValue:t.value,"onUpdate:modelValue":a[1]||(a[1]=m=>t.value=m),onBlur:t.onBlur},t.$attrs),ss({prepend:q(()=>[ee(c,{modelValue:t.type,"onUpdate:modelValue":a[0]||(a[0]=m=>t.type=m),style:{width:"60px"}},{default:q(()=>[ee(f,{label:t.t("validate.types.string"),value:"1"},null,8,["label"]),ee(f,{label:t.t("validate.types.number"),value:"2"},null,8,["label"]),ee(f,{label:t.t("validate.types.boolean"),value:"3"},null,8,["label"])]),_:1},8,["modelValue"])]),_:2},[t.$slots.append?{name:"append",fn:q(()=>[qt(t.$slots,"append")]),key:"0"}:void 0]),1040,["modelValue","onBlur"])}const xs=nt(v1,[["render",_1]]),y1=tt({name:"TableOptions",emits:["update:modelValue","change"],components:{ValueInput:xs},props:{modelValue:[Array,Object],column:{type:Array,default:()=>[{label:"label",key:"label"},{label:"value",key:"value"}]},valueType:String,max:Number,size:String},inject:["designer"],watch:{modelValue(){this.value=this.tidyModelValue()}},computed:{t(){return this.designer.setupState.t}},data(){return{value:this.tidyModelValue()}},methods:{tidyModelValue(){const t=this.modelValue;return this.valueType==="string"?(t||[]).map(a=>({value:""+a})):this.valueType==="object"?Object.keys(t||{}).map(a=>({label:a,value:t[a]})):[...t||[]].map(a=>ey(a))},tidyValue(){if(this.valueType==="object"){const t={};return this.value.forEach(a=>{a.label&&a.value&&(t[a.label]=a.value)}),t}else return this.value.map(t=>this.valueType==="string"?t.value:{...t})},onInput(t){this.column.length===1&&t[this.column[0].key]===""||this.column.every(a=>a.required===!1?!0:["object","string"].indexOf(this.valueType)>-1?t[a.key]!==void 0&&t[a.key]!==""&&t[a.key]!==null:t[a.key]!==void 0)&&this.input()},input(){const t=this.tidyValue();this.$emit("update:modelValue",t),this.$emit("change",t)},add(){this.value.push(this.column.reduce((t,a)=>(t[a.key]="",t),{}))},del(t){this.value.splice(t,1),this.input()}}}),b1={class:"_td-table-opt"},A1=["onClick"],x1={class:"_td-table-opt-handle"};function w1(t,a,o,i,n,l){const f=de("ValueInput"),c=de("el-input"),p=de("el-table-column"),m=de("el-table"),v=de("el-button");return ie(),ge("div",b1,[ee(m,{data:t.value,border:"",size:t.size||"small",style:{width:"100%"}},{default:q(()=>[(ie(!0),ge(ze,null,lt(t.column,(_,x)=>(ie(),Fe(p,{key:_.label+x,label:_.label},{default:q(k=>[_.value?(ie(),Fe(f,{key:0,size:t.size||"small",modelValue:k.row[_.key],"onUpdate:modelValue":b=>k.row[_.key]=b,onBlur:b=>t.onInput(k.row),onChangeType:b=>t.onInput(k.row)},null,8,["size","modelValue","onUpdate:modelValue","onBlur","onChangeType"])):(ie(),Fe(c,{key:1,size:t.size||"small",modelValue:k.row[_.key]||"","onUpdate:modelValue":b=>k.row[_.key]=b,onBlur:b=>t.onInput(k.row)},null,8,["size","modelValue","onUpdate:modelValue","onBlur"]))]),_:2},1032,["label"]))),128)),ee(p,{width:"45",align:"center",fixed:"right"},{default:q(_=>[re("i",{class:"fc-icon icon-delete",onClick:x=>t.del(_.$index)},null,8,A1)]),_:1})]),_:1},8,["data","size"]),re("div",x1,[!t.max||t.max>t.value.length?(ie(),Fe(v,{key:0,link:"",type:"primary",onClick:t.add},{default:q(()=>[a[0]||(a[0]=re("i",{class:"fc-icon icon-add"},null,-1)),ke(" "+ve(t.t("tableOptions.add")),1)]),_:1},8,["onClick"])):Ne("",!0)])])}const Pp=nt(y1,[["render",w1],["__scopeId","data-v-27bd6a26"]]),E1=tt({name:"TreeOptions",emits:["update:modelValue"],components:{ValueInput:xs},props:{modelValue:Array,columns:Object},inject:["designer"],data(){return{value:[...Nt(this.modelValue||[])]}},computed:{t(){return this.designer.setupState.t},overColumns(){return this.columns?{label:this.columns.label||"label",value:this.columns.value||"value"}:{label:"label",value:"value"}}},created(){this.value.length||(this.value=[{}])},methods:{tidyValue(){return Nt(this.value)},change(){this.$emit("update:modelValue",this.tidyValue())},add(t){const a=t.parent;(a.data.children||a.data).push({})},append(t){t.children||(t.children=[]),t.children.push({})},remove(t,a){const o=t.parent;o.data.children?(o.data.children.splice(o.data.children.indexOf(a),1),o.data.children.length||delete o.data.children):o.data.splice(o.data.indexOf(a),1),this.change()}}}),C1={class:"_fd-tree-opt"},F1={class:"_fd-tree-opt-node"},k1=["onClick"],S1=["onClick"],D1=["onClick"];function B1(t,a,o,i,n,l){const f=de("el-input"),c=de("ValueInput"),p=de("el-tree");return ie(),ge("div",C1,[ee(p,{data:t.value,"node-key":"index","expand-on-click-node":!1},{default:q(({node:m,data:v})=>[re("div",F1,[ee(f,{class:"_fd-tree-opt-first",modelValue:v[t.overColumns.label],"onUpdate:modelValue":_=>v[t.overColumns.label]=_,onBlur:t.change},null,8,["modelValue","onUpdate:modelValue","onBlur"]),ee(c,{class:"_fd-tree-opt-last",modelValue:v[t.overColumns.value],"onUpdate:modelValue":_=>v[t.overColumns.value]=_,onBlur:t.change,onChangeType:t.change},{append:q(()=>[re("div",{class:"_fd-tree-opt-btn",onClick:_=>t.add(m,v)},a[0]||(a[0]=[re("i",{class:"fc-icon icon-add"},null,-1)]),8,k1),re("div",{class:"_fd-tree-opt-btn",onClick:_=>t.append(v)},a[1]||(a[1]=[re("i",{class:"fc-icon icon-add-child"},null,-1)]),8,S1),re("div",{class:"_fd-tree-opt-btn _fd-tree-opt-danger",onClick:_=>t.remove(m,v)},a[2]||(a[2]=[re("i",{class:"fc-icon icon-delete"},null,-1)]),8,D1)]),_:2},1032,["modelValue","onUpdate:modelValue","onBlur","onChangeType"])])]),_:1},8,["data"])])}const T1=nt(E1,[["render",B1]]),R1=tt({name:"TableFormView",data(){return{}}}),M1={class:"_fd-table-form"},N1={key:0,class:"_fd-tf-wrap"},O1={key:1,class:"_fc-child-empty"};function I1(t,a,o,i,n,l){return ie(),ge("div",M1,[t.$slots.default?(ie(),ge("div",N1,[qt(t.$slots,"default")])):(ie(),ge("div",O1))])}const L1=nt(R1,[["render",I1]]),P1={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:()=>Ra({submitBtn:!1,resetBtn:!1})},max:Number,disabled:Boolean},watch:{modelValue:{handler(){this.updateTable()},deep:!0},"formCreateInject.preview":function(t){this.emptyRule.children[0].props.colspan=this.columns.length+(t?1:2)}},data(){return{rule:[],trs:[],fapi:{},Form:Zr(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")||"暂无数据"]}]}}},methods:{formChange(){this.updateValue()},updateValue(){const t=this.trs.map((o,i)=>({...this.modelValue[i]||{},...this.fapi.getChildrenFormData(o)})).filter(o=>{if(!this.filterEmptyColumn)return!0;if(o==null)return!1;let i=!1;return Object.keys(o).forEach(n=>{i=i||o[n]!==void 0&&o[n]!==""&&o[n]!==null}),i}),a=JSON.stringify(t);a!==this.oldValue&&(this.oldValue=a,this.$emit("update:modelValue",t),this.$emit("change",t))},setRawData(t,a){const o=this.trs[t];this.fapi.setChildrenFormData(o,a,!0)},updateTable(){const t=JSON.stringify(this.modelValue);this.oldValue!==t&&(this.oldValue=t,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length?this.clearEmpty():this.addEmpty(),this.modelValue.forEach((a,o)=>{this.trs[o]||this.addRaw(),this.setRawData(o,a||{})}),this.rule[0].children[1].children=this.trs)},addEmpty(){this.trs.length&&this.trs.splice(0,this.trs.length),this.trs.push(this.emptyRule)},clearEmpty(){this.trs[0]&&this.trs[0]._isEmpty&&this.trs.splice(0,1)},delRaw(t){this.disabled||(this.trs.splice(t,1),this.updateValue(),this.trs.length?this.trs.forEach(a=>this.updateRaw(a)):this.addEmpty(),this.$emit("delete",t))},addRaw(t){if(t&&this.disabled)return;const a=this.formCreateInject.form.parseJson(this.copyTrs)[0];this.trs.length===1&&this.trs[0]._isEmpty&&this.trs.splice(0,1),this.trs.push(a),this.updateRaw(a),t&&(this.$emit("add",this.trs.length),this.updateValue())},updateRaw(t){const a=this.trs.indexOf(t);t.children[0].props.innerText=a+1,t.children[t.children.length-1].children[0].props.onClick=()=>{this.delRaw(a)}},loadRule(){const t=[{type:"th",native:!0,class:"_fc-tf-head-idx",props:{innerText:"#"}}];let a=[{type:"td",class:"_fc-tf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(o=>{t.push({type:"th",native:!0,style:o.style,class:o.required?"_fc-tf-head-required":"",props:{innerText:o.label||""}}),a.push({type:"td",native:!0,children:[...o.rule||[]]})}),t.push({type:"th",native:!0,class:"_fc-tf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"操作"}}),a.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:a}]),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:t}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function V1(t,a,o,i,n,l){const f=de("el-button");return ie(),ge("div",{class:at(["_fc-table-form",{"_fc-disabled":o.disabled}])},[(ie(),Fe(Gm(n.Form),{option:o.options,rule:n.rule,extendOption:!0,disabled:o.disabled,onChange:l.formChange,api:n.fapi,"onUpdate:api":a[0]||(a[0]=c=>n.fapi=c),onEmitEvent:t.$emit},null,40,["option","rule","disabled","onChange","api","onEmitEvent"])),!o.max||o.max>this.trs.length?(ie(),Fe(f,{key:0,link:"",type:"primary",class:"fc-clock",onClick:a[1]||(a[1]=c=>l.addRaw(!0))},{default:q(()=>[a[2]||(a[2]=re("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),ke(" "+ve(o.formCreateInject.t("add")||"添加"),1)]),_:1})):Ne("",!0)],2)}const j1=nt(P1,[["render",V1]]),z1=tt({name:"TableFormColumnView",props:{label:String,width:[Number,String],color:String,required:Boolean},computed:{colStyle(){const t=this.width,a={width:dt.Number(t)?`${t}px`:!t||t==="auto"?"180px":t};return this.color&&(a.color=this.color),a}},data(){return{}}}),U1={class:"_fd-tf-title"},H1={key:0,class:"_fd-tf-required"},W1={class:"_fd-tf-con"};function Q1(t,a,o,i,n,l){return ie(),ge("div",{class:"_fd-tf-col",style:Rn(t.colStyle)},[re("div",U1,[t.required?(ie(),ge("span",H1,"*")):Ne("",!0),ke(ve(t.label||""),1)]),re("div",W1,[qt(t.$slots,"default")])],4)}const X1=nt(z1,[["render",Q1]]),Y1=tt({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((t,a)=>{(this.modelValue||"").indexOf(t)>-1&&(this.idx=a)}),this.num=cr(this.modelValue)?null:parseFloat(this.modelValue||0)):(this.idx=0,this.num=0)},submit(){this.oldValue=cr(this.num)?"":""+this.num+this.unit[this.idx],this.$emit("update:modelValue",this.oldValue),this.$emit("change",this.oldValue)},changeType(t){if(t!==void 0){if(this.idx===t)return;this.idx=t}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()}}),G1={class:"_fd-size-input"};function $1(t,a,o,i,n,l){const f=de("el-button"),c=de("el-inputNumber"),p=de("el-dropdown-item"),m=de("el-dropdown-menu"),v=de("el-dropdown");return ie(),ge("div",G1,[t.unit[t.idx]==="auto"?(ie(),Fe(f,{key:0,size:t.size,style:{width:"150px"},onClick:a[0]||(a[0]=_=>t.changeType())},{default:q(()=>[ke(ve(t.unit[t.idx]),1)]),_:1},8,["size"])):(ie(),ge(ze,{key:1},[ee(c,{size:t.size,modelValue:t.num,"onUpdate:modelValue":a[1]||(a[1]=_=>t.num=_),onChange:t.submit,"controls-position":"right"},null,8,["size","modelValue","onChange"]),ee(v,{trigger:"click",size:"small"},{dropdown:q(()=>[ee(m,null,{default:q(()=>[(ie(!0),ge(ze,null,lt(t.unit,(_,x)=>(ie(),Fe(p,{key:_,onClick:k=>t.changeType(x)},{default:q(()=>[re("div",null,ve(_),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:q(()=>[ee(f,{size:t.size},{default:q(()=>[ke(ve(t.unit[t.idx]),1)]),_:1},8,["size"])]),_:1})],64))])}const Lo=nt(Y1,[["render",$1]]),q1=tt({name:"ColorInput",inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String},watch:{modelValue(){this.value=this.modelValue||""},value(t){this.$emit("update:modelValue",t),this.$emit("change",t)}},data(){return{value:this.modelValue||""}},methods:{},created(){}}),J1={class:"_fd-color-input"};function K1(t,a,o,i,n,l){const f=de("el-color-picker"),c=de("el-input");return ie(),ge("div",J1,[ee(c,{clearable:"",modelValue:t.value,"onUpdate:modelValue":a[1]||(a[1]=p=>t.value=p)},{append:q(()=>[ee(f,{"show-alpha":"","color-format":"hex",modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=p=>t.value=p)},null,8,["modelValue"])]),_:1},8,["modelValue"])])}const Li=nt(q1,[["render",K1]]),Z1=tt({name:"BoxSizeInput",components:{SizeInput:Lo,ConfigItem:Ir},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(t=>{this.modelValue[t]&&(this.boxStyle[t]=this.modelValue[t])})},onInput(){const t=Object.keys(this.boxStyle).reduce((a,o)=>(this.boxStyle[o]!==""&&(a[o]=this.boxStyle[o]),a),{});this.$emit("update:modelValue",t),this.$emit("change",t)},changeOverflow(t){this.boxStyle.overflow=this.boxStyle.overflow===t?"":t,this.onInput()},change(t,a){this.boxStyle[t]=a.target.value}},created(){this.tidyValue()}}),eA={class:"_fd-box-size-input"},tA={key:0,style:{"font-size":"12px","line-height":"16px"}};function nA(t,a,o,i,n,l){const f=de("SizeInput"),c=de("el-form-item"),p=de("el-radio-button"),m=de("el-tooltip"),v=de("el-radio-group"),_=de("el-form"),x=de("ConfigItem");return ie(),ge("div",eA,[ee(x,{label:t.t("props.size"),info:Object.keys(t.modelValue).length>0?t.t("struct.configured"):""},{append:q(()=>[ee(_,{"label-position":"top",size:"small"},{default:q(()=>[(ie(!0),ge(ze,null,lt(t.keys,k=>(ie(),Fe(c,{label:t.t("style."+k),key:k},{default:q(()=>[ee(f,{modelValue:t.boxStyle[k],"onUpdate:modelValue":b=>t.boxStyle[k]=b,onChange:t.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["label"]))),128)),ee(c,{label:t.t("style.overflow.name"),style:{"grid-column":"span 2"}},{default:q(()=>[ee(v,{modelValue:t.boxStyle.overflow},{default:q(()=>[(ie(!0),ge(ze,null,lt(t.overflow,k=>(ie(),Fe(m,{effect:"dark",content:t.t("style.overflow."+k.value),placement:"top",persistent:"","hide-after":0,key:k.value},{default:q(()=>[ee(p,{label:k.value,value:k.value,onClick:b=>t.changeOverflow(k.value)},{default:q(()=>[k.text?(ie(),ge("span",tA,"Auto ")):(ie(),ge("i",{key:1,class:at(["fc-icon",k.icon])},null,2))]),_:2},1032,["label","value","onClick"])]),_:2},1032,["content"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["label","info"])])}const rA=nt(Z1,[["render",nA]]),iA=tt({name:"BoxSpaceInput",components:{ConfigItem:Ir},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(t=>{this.boxStyle[t]=this.modelValue[t]||"",this.position.forEach(a=>{this.boxStyle[t+a]=this.tidySize(this.modelValue[t+a]||this.modelValue[t]||"")})})},onInput(){const t=Object.keys(this.boxStyle).reduce((a,o)=>(this.boxStyle[o]!==""&&(a[o]=this.boxStyle[o]),a),{});this.$emit("update:modelValue",t),this.$emit("change",t)},tidySize(t){if(!/^(\d*\.?\d+)(px|rem|%|vh|vw|em)$/.test(t)){if(t==="auto")return t;const a=parseInt(t);return isNaN(a)?"":a+"px"}return t},setValue(t,a,o){const i=this.tidySize(o.target.value);t?this[t+"Lock"]?this.position.forEach(n=>{this.boxStyle[t+n]=i}):this.boxStyle[t+a]=i:this.boxStyle[a]=i,this.onInput()},change(t,a){this.boxStyle[t]=a.target.value},clear(t){this.position.forEach(a=>{this.boxStyle[t+a]=""}),this.onInput()},lock(t){const a=t+"Lock";this[a]=!this[a]}},created(){this.tidyValue()}}),oA={class:"_fd-box-space-input"},aA={class:"_padding"},lA={class:"_padding-title"},uA=["value"],sA=["value"],cA=["value"],dA=["value"],fA={class:"_fd-help"},pA={class:"_margin"},hA={class:"_margin-title"},mA={class:"_fd-help"},gA=["value"],vA=["value"],_A=["value"],yA=["value"];function bA(t,a,o,i,n,l){return ie(),ge("div",oA,[re("div",aA,[re("span",lA,ve(t.t("style.margin")),1),re("input",{class:"_fd-input _fd-top",placeholder:" ",value:t.boxStyle.marginTop,type:"text",onBlur:a[0]||(a[0]=f=>t.setValue("margin","Top",f)),onInput:a[1]||(a[1]=f=>t.change("marginTop",f))},null,40,uA),re("input",{class:"_fd-input _fd-right",placeholder:" ",value:t.boxStyle.marginRight,type:"text",onBlur:a[2]||(a[2]=f=>t.setValue("margin","Right",f)),onInput:a[3]||(a[3]=f=>t.change("marginRight",f))},null,40,sA),re("input",{class:"_fd-input _fd-bottom",placeholder:" ",value:t.boxStyle.marginBottom,type:"text",onBlur:a[4]||(a[4]=f=>t.setValue("margin","Bottom",f)),onInput:a[5]||(a[5]=f=>t.change("marginBottom",f))},null,40,cA),re("input",{class:"_fd-input _fd-left",placeholder:" ",value:t.boxStyle.marginLeft,type:"text",onBlur:a[6]||(a[6]=f=>t.setValue("margin","Left",f)),onInput:a[7]||(a[7]=f=>t.change("marginLeft",f))},null,40,dA),re("div",fA,[re("i",{class:at(["fc-icon icon-link2",t.marginLock?"active":""]),title:"lock",onClick:a[8]||(a[8]=f=>t.lock("margin"))},null,2),re("i",{class:"fc-icon icon-delete-circle",title:"clear",onClick:a[9]||(a[9]=f=>t.clear("margin"))})]),re("div",pA,[re("span",hA,ve(t.t("style.padding")),1),re("div",mA,[re("i",{class:at(["fc-icon icon-link2",t.paddingLock?"active":""]),title:"lock",onClick:a[10]||(a[10]=f=>t.lock("padding"))},null,2),re("i",{class:"fc-icon icon-delete-circle",title:"clear",onClick:a[11]||(a[11]=f=>t.clear("padding"))})]),re("input",{class:"_fd-input _fd-top",placeholder:" ",value:t.boxStyle.paddingTop,type:"text",onBlur:a[12]||(a[12]=f=>t.setValue("padding","Top",f)),onInput:a[13]||(a[13]=f=>t.change("paddingTop",f))},null,40,gA),re("input",{class:"_fd-input _fd-right",placeholder:" ",value:t.boxStyle.paddingRight,type:"text",onBlur:a[14]||(a[14]=f=>t.setValue("padding","Right",f)),onInput:a[15]||(a[15]=f=>t.change("paddingRight",f))},null,40,vA),re("input",{class:"_fd-input _fd-bottom",placeholder:" ",value:t.boxStyle.paddingBottom,type:"text",onBlur:a[16]||(a[16]=f=>t.setValue("padding","Bottom",f)),onInput:a[17]||(a[17]=f=>t.change("paddingBottom",f))},null,40,_A),re("input",{class:"_fd-input _fd-left",placeholder:" ",value:t.boxStyle.paddingLeft,type:"text",onBlur:a[18]||(a[18]=f=>t.setValue("padding","Left",f)),onInput:a[19]||(a[19]=f=>t.change("paddingLeft",f))},null,40,yA),a[20]||(a[20]=re("div",{class:"_box"},null,-1))])])])}const AA=nt(iA,[["render",bA]]);function Vp(t){let a=t.replace(/([A-Z])/g,"-$1").toLocaleLowerCase();return a.indexOf("-")===0&&(a=a.substr(1)),a}const xA=tt({name:"BorderInput",components:{ColorInput:Li,SizeInput:Lo,ConfigItem:Ir},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{type:Object,default:()=>({})}},watch:{modelValue(){this.tidyValue(),this.initCur()},active(){this.initCur()}},computed:{borderStyleStr(){let t="";return Object.keys(this.borderStyle).forEach(a=>{this.borderStyle[a]!==""&&(t+=Vp(a)+": "+this.borderStyle[a]+";")},{}),t}},data(){const t=this.designer.setupState.t;return{t,active:"",borderStyle:{},curStyle:"",curColor:"",curWidth:"",lineType:["solid","dashed","dotted","double"].map(a=>({value:a,label:t("style."+a)})),position:["Top","Left","Bottom","Right"],type:["Style","Color","Width"],unwatch:null}},methods:{tidyValue(){const t=[];this.borderStyle={},["",...this.position].forEach(a=>{this.type.forEach(o=>{t.push("border"+a+o)})}),t.forEach(a=>{this.borderStyle[a]=this.modelValue[a]||""})},onInput(){const t=Object.keys(this.borderStyle).reduce((a,o)=>(this.borderStyle[o]!==""&&(a[o]=this.borderStyle[o]),a),{});this.$emit("update:modelValue",t),this.$emit("change",t)},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()}}),wA={class:"_fd-border-input"},EA={class:"_fd-bi-left"},CA={class:"_fd-bil-row"},FA={class:"_fd-bil-row"},kA={class:"_fd-bil-row"},SA={class:"_fd-bi-right"},DA={class:"_fd-bi-opt"};function BA(t,a,o,i,n,l){const f=de("el-option"),c=de("el-select"),p=de("SizeInput"),m=de("ColorInput"),v=de("ConfigItem");return ie(),Fe(v,{label:t.t("style.border")},{append:q(()=>[re("div",wA,[re("div",EA,[re("div",CA,[re("div",{class:at(["_fd-bil-col",t.active==="Top"?"active":""]),onClick:a[0]||(a[0]=_=>t.active="Top")},"┳ ",2)]),re("div",FA,[re("div",{class:at(["_fd-bil-col",t.active==="Left"?"active":""]),onClick:a[1]||(a[1]=_=>t.active="Left")},"┣ ",2),re("div",{class:at(["_fd-bil-col",t.active===""?"active":""]),onClick:a[2]||(a[2]=_=>t.active="")},"╋",2),re("div",{class:at(["_fd-bil-col",t.active==="Right"?"active":""]),onClick:a[3]||(a[3]=_=>t.active="Right")}," ┫ ",2)]),re("div",kA,[re("div",{class:at(["_fd-bil-col",t.active==="Bottom"?"active":""]),onClick:a[4]||(a[4]=_=>t.active="Bottom")},"┻ ",2)])]),re("div",SA,[ee(c,{modelValue:t.curStyle,"onUpdate:modelValue":a[5]||(a[5]=_=>t.curStyle=_),clearable:""},{default:q(()=>[(ie(!0),ge(ze,null,lt(t.lineType,_=>(ie(),Fe(f,{key:_.value,label:_.label,value:_.value},{default:q(()=>[re("div",DA,[re("div",{class:at(["_line",_.value])},null,2)])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"]),ee(p,{modelValue:t.curWidth,"onUpdate:modelValue":a[6]||(a[6]=_=>t.curWidth=_)},null,8,["modelValue"]),ee(m,{modelValue:t.curColor,"onUpdate:modelValue":a[7]||(a[7]=_=>t.curColor=_)},null,8,["modelValue"])])])]),default:q(()=>[re("div",{class:"line-box",style:Rn(t.borderStyleStr)},a[8]||(a[8]=[re("div",{class:"line-box-con"},null,-1)]),4)]),_:1},8,["label"])}const TA=nt(xA,[["render",BA]]),RA=tt({name:"RadiusInput",components:{ConfigItem:Ir,ColorInput:Li,SizeInput:Lo},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String},watch:{modelValue(t){t!==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 t=(this.modelValue||"").split(" ").filter(a=>a!=="");t.length===1?t=[t[0],t[0],t[0],t[0]]:t.length===2?t=[t[0],t[1],t[0],t[1]]:t.length===3&&(t=[t[0],t[1],t[2],t[1]]),this.style.left=t[0],this.style.top=t[1],this.style.right=t[2],this.style.bottom=t[3],this.updateCom()},updateCom(){let t=`${this.style.left||"0px"} ${this.style.top||"0px"} ${this.style.right||"0px"} ${this.style.bottom||"0px"}`;this.style.com=t.replaceAll(this.style.left,"").trim()===""?this.style.left:""},onInput(){let t=`${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()===""?t="":this.updateCom(),this.oldValue=t,this.$emit("update:modelValue",t),this.$emit("change",t)}},created(){this.tidyValue()}}),MA={class:"_fd-radius-input"},NA={class:"_fd-radius-con"},OA={class:"_fd-radius-item"},IA={class:"_fd-radius-item"},LA={class:"_fd-radius-item"},PA={class:"_fd-radius-item"};function VA(t,a,o,i,n,l){const f=de("SizeInput"),c=de("ConfigItem");return ie(),ge("div",MA,[ee(c,{label:t.t("style.borderRadius")},{append:q(()=>[re("div",NA,[re("div",OA,[a[5]||(a[5]=re("div",{class:"_fd-radius-icon",style:{transform:"rotate(180deg)"}},[re("i",{class:"fc-icon icon-radius"})],-1)),ee(f,{unit:t.unit,modelValue:t.style.left,"onUpdate:modelValue":a[1]||(a[1]=p=>t.style.left=p),onChange:t.onInput},null,8,["unit","modelValue","onChange"])]),re("div",IA,[a[6]||(a[6]=re("div",{class:"_fd-radius-icon",style:{transform:"rotate(-90deg)"}},[re("i",{class:"fc-icon icon-radius"})],-1)),ee(f,{unit:t.unit,modelValue:t.style.top,"onUpdate:modelValue":a[2]||(a[2]=p=>t.style.top=p),onChange:t.onInput},null,8,["unit","modelValue","onChange"])]),re("div",LA,[a[7]||(a[7]=re("div",{class:"_fd-radius-icon",style:{transform:"rotate(90deg)"}},[re("i",{class:"fc-icon icon-radius"})],-1)),ee(f,{unit:t.unit,modelValue:t.style.bottom,"onUpdate:modelValue":a[3]||(a[3]=p=>t.style.bottom=p),onChange:t.onInput},null,8,["unit","modelValue","onChange"])]),re("div",PA,[a[8]||(a[8]=re("div",{class:"_fd-radius-icon"},[re("i",{class:"fc-icon icon-radius"})],-1)),ee(f,{unit:t.unit,modelValue:t.style.right,"onUpdate:modelValue":a[4]||(a[4]=p=>t.style.right=p),onChange:t.onInput},null,8,["unit","modelValue","onChange"])])])]),default:q(()=>[ee(f,{unit:t.unit,modelValue:t.style.com,"onUpdate:modelValue":a[0]||(a[0]=p=>t.style.com=p),onChange:t.batch},null,8,["unit","modelValue","onChange"])]),_:1},8,["label"])])}const jA=nt(RA,[["render",VA]]),zA=tt({name:"BorderInput",components:{ColorInput:Li,SizeInput:Lo,ConfigItem:Ir},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{type:Object,default:()=>({})}},watch:{modelValue(){this.tidyValue()}},computed:{borderStyleStr(){let t="";return Object.keys(this.borderStyle).forEach(a=>{this.borderStyle[a]!==""&&(t+=Vp(a)+": "+this.borderStyle[a]+";")},{}),t},alignType(){return["left","center","right"].map(t=>({label:this.t("props."+t),value:t}))},decorationType(){return["underline","line-through","overline"].map(t=>({label:this.t("style.decoration."+t),value:t}))},weightType(){return[300,400,500,700].map(t=>({label:this.t("style.weight."+t),value:t}))}},data(){return{t:this.designer.setupState.t,fontStyle:{fontSize:"",fontWeight:"",fontStyle:"",textDecoration:"",textAlign:"",lineHeight:"",letterSpacing:""}}},methods:{tidyValue(){Object.keys(this.fontStyle).forEach(t=>{this.fontStyle[t]=this.modelValue[t]||""})},onInput(){const t=Object.keys(this.fontStyle).reduce((a,o)=>(this.fontStyle[o]!==""&&(a[o]=this.fontStyle[o]),a),{});this.$emit("update:modelValue",t),this.$emit("change",t)}},created(){this.tidyValue()}}),UA={class:"_fd-font-input"};function HA(t,a,o,i,n,l){const f=de("SizeInput"),c=de("el-form-item"),p=de("el-option"),m=de("el-select"),v=de("el-form"),_=de("ConfigItem");return ie(),Fe(_,{label:t.t("style.font.name")},{append:q(()=>[re("div",UA,[ee(v,{"label-width":"50px","label-position":"top",inline:"",size:"small"},{default:q(()=>[ee(c,{label:t.t("style.font.size")},{default:q(()=>[ee(f,{modelValue:t.fontStyle.fontSize,"onUpdate:modelValue":a[0]||(a[0]=x=>t.fontStyle.fontSize=x),onChange:t.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),ee(c,{label:t.t("style.weight.name")},{default:q(()=>[ee(m,{modelValue:t.fontStyle.fontWeight,"onUpdate:modelValue":a[1]||(a[1]=x=>t.fontStyle.fontWeight=x),clearable:"",onChange:t.onInput},{default:q(()=>[(ie(!0),ge(ze,null,lt(t.weightType,x=>(ie(),Fe(p,{key:x.value,label:x.label,value:x.value},{default:q(()=>[re("span",{style:Rn({fontWeight:x.value})},ve(x.label),5)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),ee(c,{label:t.t("style.decoration.name")},{default:q(()=>[ee(m,{modelValue:t.fontStyle.textDecoration,"onUpdate:modelValue":a[2]||(a[2]=x=>t.fontStyle.textDecoration=x),clearable:"",onChange:t.onInput},{default:q(()=>[(ie(!0),ge(ze,null,lt(t.decorationType,x=>(ie(),Fe(p,{key:x.value,label:x.label,value:x.value},{default:q(()=>[re("span",{style:Rn({textDecoration:x.value})},ve(x.label),5)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),ee(c,{label:t.t("style.font.align")},{default:q(()=>[ee(m,{modelValue:t.fontStyle.textAlign,"onUpdate:modelValue":a[3]||(a[3]=x=>t.fontStyle.textAlign=x),clearable:"",onChange:t.onInput},{default:q(()=>[(ie(!0),ge(ze,null,lt(t.alignType,x=>(ie(),Fe(p,{key:x.value,label:x.label,value:x.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),ee(c,{label:t.t("style.font.height")},{default:q(()=>[ee(f,{modelValue:t.fontStyle.lineHeight,"onUpdate:modelValue":a[4]||(a[4]=x=>t.fontStyle.lineHeight=x),onChange:t.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),ee(c,{label:t.t("style.font.spacing")},{default:q(()=>[ee(f,{modelValue:t.fontStyle.letterSpacing,"onUpdate:modelValue":a[5]||(a[5]=x=>t.fontStyle.letterSpacing=x),onChange:t.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"])]),_:1})])]),default:q(()=>[re("div",{class:"_fd-fi-box",style:Rn(t.fontStyle)},ve(t.t("style.font.preview")),5)]),_:1},8,["label"])}const WA=nt(zA,[["render",HA]]),QA=tt({name:"ShadowContent",components:{ColorInput:Li},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(t){this.form.x=parseInt(String((t.left-this.boxSize/2)/this.boxSize*this.max)),this.form.y=parseInt(String((t.top-this.boxSize/2)/this.boxSize*this.max));const a=this.max/2;this.form.x=this.form.x<0?Math.max(this.form.x,a*-1):Math.min(this.form.x,a),this.form.y=this.form.y<0?Math.max(this.form.y,a*-1):Math.min(this.form.y,a)},modelValue(t){this.initStyle(t)}},methods:{getMouseXY(t,a){if(this.down||a){const o=this.$refs.box.getBoundingClientRect();this.position={left:parseInt(String(t.clientX-o.x)),top:parseInt(String(t.clientY-o.y))}}},onMouseup(){this.down=!1,this.onInput()},onMousedown(t){this.getMouseXY(t,!0),this.down=!0},onInput(){const t=this.form;let a=`${t.x}${t.x_unit} ${t.y}${t.y_unit} ${t.vague}${t.vague_unit} ${t.extend}${t.extend_unit} ${t.color}`;`${t.x}${t.y}${t.vague}${t.extend}`.replaceAll("0","")===""?a="":t.type==="inset"&&(a+=" inset"),this.$emit("update:modelValue",a),this.$emit("change",a)},initStyle(t){(this.modelValue||"").indexOf(" inset")>-1&&(this.form.type="inset",t=t.replace(" inset",""));const a=t.split("rgba");let o,i;a.length>1?(o="rgba"+a[1].trim(),i=a[0].trim().split(" ")):(i=a[0].trim().split(" "),o=i.pop()),this.form.color=o||"#000",this.form.x=parseInt(i[0])||0,this.form.y=parseInt(i[1])||0,this.form.vague=parseInt(i[2])||0,this.form.extend=parseInt(i[3])||0;const n=l=>l?.replace(/[-\d.]/g,"")||"px";this.form.x_unit=n(i[0]),this.form.y_unit=n(i[1]),this.form.vague_unit=n(i[2]),this.form.extend_unit=n(i[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)}}),XA={class:"_fd-shadow-content"},YA={class:"_fd-sc-right"};function GA(t,a,o,i,n,l){const f=de("el-radio-button"),c=de("el-tooltip"),p=de("el-radio-group"),m=de("el-form-item"),v=de("ColorInput"),_=de("el-option"),x=de("el-select"),k=de("el-input"),b=de("el-form");return ie(),ge("div",XA,[ee(b,{"label-width":"50px","label-position":"top",inline:"",class:"_fd-sc-form",size:"small"},{default:q(()=>[ee(m,{label:t.t("style.shadow.mode")},{default:q(()=>[ee(p,{modelValue:t.form.type,"onUpdate:modelValue":a[0]||(a[0]=F=>t.form.type=F),onChange:t.onInput,size:"small",class:"_fd-sc-radio"},{default:q(()=>[(ie(!0),ge(ze,null,lt(t.options,F=>(ie(),Fe(c,{key:F.key,effect:"dark",content:t.t("style.shadow."+F.key),placement:"top","hide-after":0,persistent:""},{default:q(()=>[ee(f,{label:F.key,value:F.key},{default:q(()=>[re("i",{class:at(["fc-icon","icon-"+F.icon])},null,2)]),_:2},1032,["label","value"])]),_:2},1032,["content"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),ee(m,{label:t.t("style.color")},{default:q(()=>[ee(v,{modelValue:t.form.color,"onUpdate:modelValue":a[1]||(a[1]=F=>t.form.color=F),onChange:t.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),ee(m,{label:t.t("style.shadow.x")},{default:q(()=>[ee(k,{modelValue:t.form.x,"onUpdate:modelValue":a[3]||(a[3]=F=>t.form.x=F),type:"number",onChange:t.onInput},{append:q(()=>[ee(x,{modelValue:t.form.x_unit,"onUpdate:modelValue":a[2]||(a[2]=F=>t.form.x_unit=F),onChange:t.onInput},{default:q(()=>[(ie(!0),ge(ze,null,lt(t.units,F=>(ie(),Fe(_,{key:F,label:F,value:F},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),ee(m,{label:t.t("style.shadow.y")},{default:q(()=>[ee(k,{modelValue:t.form.y,"onUpdate:modelValue":a[5]||(a[5]=F=>t.form.y=F),type:"number",onChange:t.onInput},{append:q(()=>[ee(x,{modelValue:t.form.y_unit,"onUpdate:modelValue":a[4]||(a[4]=F=>t.form.y_unit=F),onChange:t.onInput},{default:q(()=>[(ie(!0),ge(ze,null,lt(t.units,F=>(ie(),Fe(_,{key:F,label:F,value:F},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),ee(m,{label:t.t("style.shadow.vague")},{default:q(()=>[ee(k,{modelValue:t.form.vague,"onUpdate:modelValue":a[7]||(a[7]=F=>t.form.vague=F),type:"number",onChange:t.onInput},{append:q(()=>[ee(x,{modelValue:t.form.vague_unit,"onUpdate:modelValue":a[6]||(a[6]=F=>t.form.vague_unit=F),onChange:t.onInput},{default:q(()=>[(ie(!0),ge(ze,null,lt(t.units,F=>(ie(),Fe(_,{key:F,label:F,value:F},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),ee(m,{label:t.t("style.shadow.extend")},{default:q(()=>[ee(k,{modelValue:t.form.extend,"onUpdate:modelValue":a[9]||(a[9]=F=>t.form.extend=F),type:"number",onChange:t.onInput},{append:q(()=>[ee(x,{modelValue:t.form.extend_unit,"onUpdate:modelValue":a[8]||(a[8]=F=>t.form.extend_unit=F),onChange:t.onInput},{default:q(()=>[(ie(!0),ge(ze,null,lt(t.units,F=>(ie(),Fe(_,{key:F,label:F,value:F},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"])]),_:1}),re("div",YA,[re("div",{ref:"box",class:at(["_fd-sc-box",t.down?"down":""]),onClick:a[10]||(a[10]=F=>t.getMouseXY(F,1)),onMousedown:a[11]||(a[11]=(...F)=>t.onMousedown&&t.onMousedown(...F)),onMouseup:a[12]||(a[12]=(...F)=>t.onMouseup&&t.onMouseup(...F)),onMousemove:a[13]||(a[13]=F=>t.getMouseXY(F,0))},[re("span",{class:"spot",style:Rn(t.spotStyle)},a[14]||(a[14]=[re("i",{class:"spot-id"},null,-1)]),4),a[15]||(a[15]=re("span",{class:"center-spot"},null,-1)),a[16]||(a[16]=re("div",{class:"x-hr"},null,-1)),a[17]||(a[17]=re("div",{class:"y-hr"},null,-1))],34)])])}const $A=nt(QA,[["render",GA]]),qA=tt({name:"ShadowInput",emits:["update:modelValue","change"],components:{ConfigItem:Ir,ShadowContent:$A},inject:["designer"],props:{modelValue:String},watch:{modelValue(){this.value=this.modelValue||""},value(t){this.$emit("update:modelValue",t),this.$emit("change",t)}},data(){const t=this.designer.setupState.t;return{t,options:[{label:t("style.shadow.classic"),value:"3px 5px 7px 2px #CBCBCBFF"},{label:t("style.shadow.flat"),value:"4px 4px 3px -2px #E7E5E5FF"},{label:t("style.shadow.solid"),value:"1px 2px 4px 2px #979797FF"}],value:this.modelValue||""}},methods:{changeValue(t){this.value=t}},created(){}}),JA={class:"_fd-shadow-input"};function KA(t,a,o,i,n,l){const f=de("el-dropdown-item"),c=de("el-dropdown-menu"),p=de("el-dropdown"),m=de("el-input"),v=de("ShadowContent"),_=de("ConfigItem");return ie(),ge("div",JA,[ee(_,{label:t.t("style.shadow.name")},{append:q(()=>[ee(v,{modelValue:t.value,"onUpdate:modelValue":a[1]||(a[1]=x=>t.value=x)},null,8,["modelValue"])]),default:q(()=>[ee(m,{clearable:"",modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=x=>t.value=x),class:"_fd-si-input"},{append:q(()=>[ee(p,null,{dropdown:q(()=>[ee(c,null,{default:q(()=>[(ie(!0),ge(ze,null,lt(t.options,x=>(ie(),Fe(f,{onClick:k=>t.changeValue(x.value)},{default:q(()=>[ke(ve(x.label),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),default:q(()=>[a[2]||(a[2]=re("i",{class:"fc-icon icon-setting"},null,-1))]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])])}const ZA=nt(qA,[["render",KA]]),jp=["fontSize","fontWeight","fontStyle","textDecoration","textAlign","lineHeight","letterSpacing"],zp=["height","width","minWidth","minHeight","maxWidth","maxHeight","overflow"],Vf=["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",...jp,...zp],e6=tt({name:"StyleConfig",inject:["designer"],emits:["update:modelValue"],components:{TableOptions:Pp,ColorInput:Li,ConfigItem:Ir,RadiusInput:jA,BoxSizeInput:rA,BoxSpaceInput:AA,BorderInput:TA,ShadowInput:ZA,FontInput:WA},props:{modelValue:{type:Object,default:()=>({})}},watch:{modelValue(){this.tidyStyle()}},data(){return{t:this.designer.setupState.t,formData:{},size:{},space:{},border:{},font:{},radius:"",backgroundColor:"",color:"",boxShadow:"",opacity:100,scale:100}},methods:{tidyStyle(){const t={...this.modelValue||{}},a={};Object.keys(t).forEach(c=>{(["margin","padding"].indexOf(c)>-1||c.indexOf("margin")>-1||c.indexOf("padding")>-1)&&(a[c]=t[c])});const o={};zp.forEach(c=>{t[c]&&(o[c]=t[c])}),this.radius=t.borderRadius||"",delete t.borderRadius;const i={};Object.keys(t).forEach(c=>{c.indexOf("border")===0&&(i[c]=t[c])});let n=cr(t.opacity)?100:parseFloat(t.opacity)||0;n&&n<1&&(n=n*100);let l=t.scale;cr(t.scale)?l=100:isNaN(Number(l))?l=parseFloat(l)||100:l=l>0?l*100:0;const f={};jp.forEach(c=>{t[c]&&(f[c]=t[c])}),this.opacity=n,this.scale=l,this.size=o,this.space=a,this.border=i,this.font=f,this.boxShadow=t.boxShadow||"",this.color=t.color||"",this.backgroundColor=t.backgroundColor||"",Vf.forEach(c=>{delete t[c]}),this.formData=t},onInput(){let t={...this.formData};Vf.forEach(o=>{delete t[o]});const a={...t,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.font};Object.keys(a).forEach(o=>{cr(a[o])&&delete a[o]}),this.$emit("update:modelValue",a)}},created(){this.tidyStyle()}}),t6={class:"_fd-style-config"};function n6(t,a,o,i,n,l){const f=de("BoxSpaceInput"),c=de("BoxSizeInput"),p=de("ColorInput"),m=de("ConfigItem"),v=de("BorderInput"),_=de("RadiusInput"),x=de("FontInput"),k=de("ShadowInput"),b=de("el-slider"),F=de("TableOptions");return ie(),ge("div",t6,[ee(f,{modelValue:t.space,"onUpdate:modelValue":a[0]||(a[0]=y=>t.space=y),onChange:t.onInput,style:{"margin-bottom":"10px"}},null,8,["modelValue","onChange"]),ee(c,{modelValue:t.size,"onUpdate:modelValue":a[1]||(a[1]=y=>t.size=y),onChange:t.onInput},null,8,["modelValue","onChange"]),ee(m,{label:t.t("style.color")},{default:q(()=>[ee(p,{modelValue:t.color,"onUpdate:modelValue":a[2]||(a[2]=y=>t.color=y),onChange:t.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),ee(m,{label:t.t("style.backgroundColor")},{default:q(()=>[ee(p,{modelValue:t.backgroundColor,"onUpdate:modelValue":a[3]||(a[3]=y=>t.backgroundColor=y),onChange:t.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),ee(v,{modelValue:t.border,"onUpdate:modelValue":a[4]||(a[4]=y=>t.border=y),onChange:t.onInput},null,8,["modelValue","onChange"]),ee(_,{modelValue:t.radius,"onUpdate:modelValue":a[5]||(a[5]=y=>t.radius=y),onChange:t.onInput},null,8,["modelValue","onChange"]),ee(x,{modelValue:t.font,"onUpdate:modelValue":a[6]||(a[6]=y=>t.font=y),onChange:t.onInput},null,8,["modelValue","onChange"]),ee(k,{modelValue:t.boxShadow,"onUpdate:modelValue":a[7]||(a[7]=y=>t.boxShadow=y),onChange:t.onInput},null,8,["modelValue","onChange"]),ee(m,{label:t.t("style.opacity"),class:"_fd-opacity-input"},{default:q(()=>[ee(b,{"show-tooltip":!1,modelValue:t.opacity,"onUpdate:modelValue":a[8]||(a[8]=y=>t.opacity=y),onChange:t.onInput},null,8,["modelValue","onChange"]),re("span",null,ve(t.opacity)+"%",1)]),_:1},8,["label"]),ee(m,{label:t.t("style.scale"),class:"_fd-opacity-input"},{default:q(()=>[ee(b,{min:80,max:120,"show-tooltip":!1,modelValue:t.scale,"onUpdate:modelValue":a[9]||(a[9]=y=>t.scale=y),onChange:t.onInput},null,8,["modelValue","onChange"]),re("span",null,ve(t.scale)+"%",1)]),_:1},8,["label"]),ee(m,{label:t.t("props.custom"),info:Object.keys(t.formData).length>0?t.t("struct.configured"):""},{append:q(()=>[ee(F,ei({modelValue:t.formData,"onUpdate:modelValue":a[10]||(a[10]=y=>t.formData=y),onChange:t.onInput},{column:[{label:t.t("props.key"),key:"label"},{label:t.t("props.value"),key:"value"}],valueType:"object"}),null,16,["modelValue","onChange"])]),_:1},8,["label","info"])])}const r6=nt(e6,[["render",n6]]);/*!
- * @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 jf(t,a){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);a&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function i6(t){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?jf(Object(o),!0).forEach(function(i){o6(t,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):jf(Object(o)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(o,i))})}return t}function Yt(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yt=function(a){return typeof a}:Yt=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Yt(t)}function o6(t,a,o){return a in t?Object.defineProperty(t,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[a]=o,t}function a6(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Up={exports:{}};(function(t,a){(function(o,i){t.exports=i()})(window,function(){return function(o){var i={};function n(l){if(i[l])return i[l].exports;var f=i[l]={i:l,l:!1,exports:{}};return o[l].call(f.exports,f,f.exports,n),f.l=!0,f.exports}return n.m=o,n.c=i,n.d=function(l,f,c){n.o(l,f)||Object.defineProperty(l,f,{enumerable:!0,get:c})},n.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},n.t=function(l,f){if(f&1&&(l=n(l)),f&8||f&4&&Yt(l)==="object"&&l&&l.__esModule)return l;var c=Object.create(null);if(n.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:l}),f&2&&typeof l!="string")for(var p in l)n.d(c,p,function(m){return l[m]}.bind(null,p));return c},n.n=function(l){var f=l&&l.__esModule?function(){return l.default}:function(){return l};return n.d(f,"a",f),f},n.o=function(l,f){return Object.prototype.hasOwnProperty.call(l,f)},n.p="",n(n.s=141)}([function(o,i){function n(l){return l&&l.__esModule?l:{default:l}}o.exports=n},function(o,i,n){o.exports=n(142)},function(o,i,n){n.r(i),n.d(i,"__extends",function(){return f}),n.d(i,"__assign",function(){return c}),n.d(i,"__rest",function(){return p}),n.d(i,"__decorate",function(){return m}),n.d(i,"__param",function(){return v}),n.d(i,"__metadata",function(){return _}),n.d(i,"__awaiter",function(){return x}),n.d(i,"__generator",function(){return k}),n.d(i,"__createBinding",function(){return b}),n.d(i,"__exportStar",function(){return F}),n.d(i,"__values",function(){return y}),n.d(i,"__read",function(){return h}),n.d(i,"__spread",function(){return g}),n.d(i,"__spreadArrays",function(){return A}),n.d(i,"__spreadArray",function(){return C}),n.d(i,"__await",function(){return S}),n.d(i,"__asyncGenerator",function(){return B}),n.d(i,"__asyncDelegator",function(){return M}),n.d(i,"__asyncValues",function(){return N}),n.d(i,"__makeTemplateObject",function(){return V}),n.d(i,"__importStar",function(){return D}),n.d(i,"__importDefault",function(){return I}),n.d(i,"__classPrivateFieldGet",function(){return j}),n.d(i,"__classPrivateFieldSet",function(){return R});/*! *****************************************************************************
- 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 l=function(O,X){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,Z){U.__proto__=Z}||function(U,Z){for(var L in Z)Object.prototype.hasOwnProperty.call(Z,L)&&(U[L]=Z[L])},l(O,X)};function f(O,X){if(typeof X!="function"&&X!==null)throw new TypeError("Class extends value "+String(X)+" is not a constructor or null");l(O,X);function U(){this.constructor=O}O.prototype=X===null?Object.create(X):(U.prototype=X.prototype,new U)}var c=function(){return c=Object.assign||function(O){for(var X,U=1,Z=arguments.length;U<Z;U++){X=arguments[U];for(var L in X)Object.prototype.hasOwnProperty.call(X,L)&&(O[L]=X[L])}return O},c.apply(this,arguments)};function p(O,X){var U={};for(var Z in O)Object.prototype.hasOwnProperty.call(O,Z)&&X.indexOf(Z)<0&&(U[Z]=O[Z]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,Z=Object.getOwnPropertySymbols(O);L<Z.length;L++)X.indexOf(Z[L])<0&&Object.prototype.propertyIsEnumerable.call(O,Z[L])&&(U[Z[L]]=O[Z[L]]);return U}function m(O,X,U,Z){var L=arguments.length,Q=L<3?X:Z===null?Z=Object.getOwnPropertyDescriptor(X,U):Z,W;if((typeof Reflect>"u"?"undefined":Yt(Reflect))==="object"&&typeof Reflect.decorate=="function")Q=Reflect.decorate(O,X,U,Z);else for(var G=O.length-1;G>=0;G--)(W=O[G])&&(Q=(L<3?W(Q):L>3?W(X,U,Q):W(X,U))||Q);return L>3&&Q&&Object.defineProperty(X,U,Q),Q}function v(O,X){return function(U,Z){X(U,Z,O)}}function _(O,X){if((typeof Reflect>"u"?"undefined":Yt(Reflect))==="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(O,X)}function x(O,X,U,Z){function L(Q){return Q instanceof U?Q:new U(function(W){W(Q)})}return new(U||(U=Promise))(function(Q,W){function G(ye){try{le(Z.next(ye))}catch(fe){W(fe)}}function te(ye){try{le(Z.throw(ye))}catch(fe){W(fe)}}function le(ye){ye.done?Q(ye.value):L(ye.value).then(G,te)}le((Z=Z.apply(O,X||[])).next())})}function k(O,X){var U={label:0,sent:function(){if(Q[0]&1)throw Q[1];return Q[1]},trys:[],ops:[]},Z,L,Q,W;return W={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(W[Symbol.iterator]=function(){return this}),W;function G(le){return function(ye){return te([le,ye])}}function te(le){if(Z)throw new TypeError("Generator is already executing.");for(;U;)try{if(Z=1,L&&(Q=le[0]&2?L.return:le[0]?L.throw||((Q=L.return)&&Q.call(L),0):L.next)&&!(Q=Q.call(L,le[1])).done)return Q;switch(L=0,Q&&(le=[le[0]&2,Q.value]),le[0]){case 0:case 1:Q=le;break;case 4:return U.label++,{value:le[1],done:!1};case 5:U.label++,L=le[1],le=[0];continue;case 7:le=U.ops.pop(),U.trys.pop();continue;default:if(Q=U.trys,!(Q=Q.length>0&&Q[Q.length-1])&&(le[0]===6||le[0]===2)){U=0;continue}if(le[0]===3&&(!Q||le[1]>Q[0]&&le[1]<Q[3])){U.label=le[1];break}if(le[0]===6&&U.label<Q[1]){U.label=Q[1],Q=le;break}if(Q&&U.label<Q[2]){U.label=Q[2],U.ops.push(le);break}Q[2]&&U.ops.pop(),U.trys.pop();continue}le=X.call(O,U)}catch(ye){le=[6,ye],L=0}finally{Z=Q=0}if(le[0]&5)throw le[1];return{value:le[0]?le[1]:void 0,done:!0}}}var b=Object.create?function(O,X,U,Z){Z===void 0&&(Z=U),Object.defineProperty(O,Z,{enumerable:!0,get:function(){return X[U]}})}:function(O,X,U,Z){Z===void 0&&(Z=U),O[Z]=X[U]};function F(O,X){for(var U in O)U!=="default"&&!Object.prototype.hasOwnProperty.call(X,U)&&b(X,O,U)}function y(O){var X=typeof Symbol=="function"&&Symbol.iterator,U=X&&O[X],Z=0;if(U)return U.call(O);if(O&&typeof O.length=="number")return{next:function(){return O&&Z>=O.length&&(O=void 0),{value:O&&O[Z++],done:!O}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(O,X){var U=typeof Symbol=="function"&&O[Symbol.iterator];if(!U)return O;var Z=U.call(O),L,Q=[],W;try{for(;(X===void 0||X-- >0)&&!(L=Z.next()).done;)Q.push(L.value)}catch(G){W={error:G}}finally{try{L&&!L.done&&(U=Z.return)&&U.call(Z)}finally{if(W)throw W.error}}return Q}function g(){for(var O=[],X=0;X<arguments.length;X++)O=O.concat(h(arguments[X]));return O}function A(){for(var O=0,X=0,U=arguments.length;X<U;X++)O+=arguments[X].length;for(var Z=Array(O),L=0,X=0;X<U;X++)for(var Q=arguments[X],W=0,G=Q.length;W<G;W++,L++)Z[L]=Q[W];return Z}function C(O,X){for(var U=0,Z=X.length,L=O.length;U<Z;U++,L++)O[L]=X[U];return O}function S(O){return this instanceof S?(this.v=O,this):new S(O)}function B(O,X,U){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Z=U.apply(O,X||[]),L,Q=[];return L={},W("next"),W("throw"),W("return"),L[Symbol.asyncIterator]=function(){return this},L;function W(oe){Z[oe]&&(L[oe]=function(ce){return new Promise(function(se,be){Q.push([oe,ce,se,be])>1||G(oe,ce)})})}function G(oe,ce){try{te(Z[oe](ce))}catch(se){fe(Q[0][3],se)}}function te(oe){oe.value instanceof S?Promise.resolve(oe.value.v).then(le,ye):fe(Q[0][2],oe)}function le(oe){G("next",oe)}function ye(oe){G("throw",oe)}function fe(oe,ce){oe(ce),Q.shift(),Q.length&&G(Q[0][0],Q[0][1])}}function M(O){var X,U;return X={},Z("next"),Z("throw",function(L){throw L}),Z("return"),X[Symbol.iterator]=function(){return this},X;function Z(L,Q){X[L]=O[L]?function(W){return(U=!U)?{value:S(O[L](W)),done:L==="return"}:Q?Q(W):W}:Q}}function N(O){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var X=O[Symbol.asyncIterator],U;return X?X.call(O):(O=typeof y=="function"?y(O):O[Symbol.iterator](),U={},Z("next"),Z("throw"),Z("return"),U[Symbol.asyncIterator]=function(){return this},U);function Z(Q){U[Q]=O[Q]&&function(W){return new Promise(function(G,te){W=O[Q](W),L(G,te,W.done,W.value)})}}function L(Q,W,G,te){Promise.resolve(te).then(function(le){Q({value:le,done:G})},W)}}function V(O,X){return Object.defineProperty?Object.defineProperty(O,"raw",{value:X}):O.raw=X,O}var w=Object.create?function(O,X){Object.defineProperty(O,"default",{enumerable:!0,value:X})}:function(O,X){O.default=X};function D(O){if(O&&O.__esModule)return O;var X={};if(O!=null)for(var U in O)U!=="default"&&Object.prototype.hasOwnProperty.call(O,U)&&b(X,O,U);return w(X,O),X}function I(O){return O&&O.__esModule?O:{default:O}}function j(O,X){if(!X.has(O))throw new TypeError("attempted to get private field on non-instance");return X.get(O)}function R(O,X,U){if(!X.has(O))throw new TypeError("attempted to set private field on non-instance");return X.set(O,U),U}},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(89)),p=l(n(4)),m=l(n(26)),v=l(n(17)),_=l(n(121)),x=l(n(27)),k=l(n(91)),b=l(n(70)),F=l(n(28)),y=l(n(57));(0,f.default)(i,"__esModule",{value:!0}),i.DomElement=void 0;var h=n(2),g=n(6),A=[];function C(w){var D=document.createElement("div");D.innerHTML=w;var I=D.children;return g.toArray(I)}function S(w){return w?w instanceof HTMLCollection||w instanceof NodeList:!1}function B(w){var D=document.querySelectorAll(w);return g.toArray(D)}function M(w){var D=[],I=[];return(0,c.default)(w)?D=w:D=w.split(";"),(0,p.default)(D).call(D,function(j){var R,O=(0,m.default)(R=j.split(":")).call(R,function(X){return(0,v.default)(X).call(X)});O.length===2&&I.push(O[0]+":"+O[1])}),I}var N=function(){function w(D){if(this.elems=[],this.length=this.elems.length,this.dataSource=new _.default,!!D){if(D instanceof w)return D;var I=[],j=D instanceof Node?D.nodeType:-1;if(this.selector=D,j===1||j===9)I=[D];else if(S(D))I=g.toArray(D);else if(D instanceof Array)I=D;else if(typeof D=="string"){var R,O=(0,v.default)(R=D.replace(`/
- /mg`,"")).call(R);(0,x.default)(O).call(O,"<")===0?I=C(O):I=B(O)}var X=I.length;if(!X)return this;for(var U=0;U<X;U++)this.elems.push(I[U]);this.length=X}}return(0,f.default)(w.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),w.prototype.forEach=function(D){for(var I=0;I<this.length;I++){var j=this.elems[I],R=D.call(j,j,I);if(R===!1)break}return this},w.prototype.clone=function(D){var I;D===void 0&&(D=!1);var j=[];return(0,p.default)(I=this.elems).call(I,function(R){j.push(R.cloneNode(!!D))}),V(j)},w.prototype.get=function(D){D===void 0&&(D=0);var I=this.length;return D>=I&&(D=D%I),V(this.elems[D])},w.prototype.first=function(){return this.get(0)},w.prototype.last=function(){var D=this.length;return this.get(D-1)},w.prototype.on=function(D,I,j){var R;return D?(typeof I=="function"&&(j=I,I=""),(0,p.default)(R=this).call(R,function(O){if(!I){O.addEventListener(D,j);return}var X=function(U){var Z=U.target;Z.matches(I)&&j.call(Z,U)};O.addEventListener(D,X),A.push({elem:O,selector:I,fn:j,agentFn:X})})):this},w.prototype.off=function(D,I,j){var R;return D?(typeof I=="function"&&(j=I,I=""),(0,p.default)(R=this).call(R,function(O){if(I){for(var X=-1,U=0;U<A.length;U++){var Z=A[U];if(Z.selector===I&&Z.fn===j&&Z.elem===O){X=U;break}}if(X!==-1){var L=(0,k.default)(A).call(A,X,1)[0].agentFn;O.removeEventListener(D,L)}}else O.removeEventListener(D,j)})):this},w.prototype.attr=function(D,I){var j;return I==null?this.elems[0].getAttribute(D)||"":(0,p.default)(j=this).call(j,function(R){R.setAttribute(D,I)})},w.prototype.removeAttr=function(D){var I;(0,p.default)(I=this).call(I,function(j){j.removeAttribute(D)})},w.prototype.addClass=function(D){var I;return D?(0,p.default)(I=this).call(I,function(j){if(j.className){var R=j.className.split(/\s/);R=(0,b.default)(R).call(R,function(O){return!!(0,v.default)(O).call(O)}),(0,x.default)(R).call(R,D)<0&&R.push(D),j.className=R.join(" ")}else j.className=D}):this},w.prototype.removeClass=function(D){var I;return D?(0,p.default)(I=this).call(I,function(j){if(j.className){var R=j.className.split(/\s/);R=(0,b.default)(R).call(R,function(O){return O=(0,v.default)(O).call(O),!(!O||O===D)}),j.className=R.join(" ")}}):this},w.prototype.hasClass=function(D){if(!D)return!1;var I=this.elems[0];if(!I.className)return!1;var j=I.className.split(/\s/);return(0,F.default)(j).call(j,D)},w.prototype.css=function(D,I){var j,R;return I==""?R="":R=D+":"+I+";",(0,p.default)(j=this).call(j,function(O){var X,U=(0,v.default)(X=O.getAttribute("style")||"").call(X);if(U){var Z=M(U);Z=(0,m.default)(Z).call(Z,function(L){return(0,x.default)(L).call(L,D)===0?R:L}),R!=""&&(0,x.default)(Z).call(Z,R)<0&&Z.push(R),R==""&&(Z=M(Z)),O.setAttribute("style",Z.join("; "))}else O.setAttribute("style",R)})},w.prototype.getBoundingClientRect=function(){var D=this.elems[0];return D.getBoundingClientRect()},w.prototype.show=function(){return this.css("display","block")},w.prototype.hide=function(){return this.css("display","none")},w.prototype.children=function(){var D=this.elems[0];return D?V(D.children):null},w.prototype.childNodes=function(){var D=this.elems[0];return D?V(D.childNodes):null},w.prototype.replaceChildAll=function(D){for(var I=this.getNode(),j=this.elems[0];j.hasChildNodes();)I.firstChild&&j.removeChild(I.firstChild);this.append(D)},w.prototype.append=function(D){var I;return(0,p.default)(I=this).call(I,function(j){(0,p.default)(D).call(D,function(R){j.appendChild(R)})})},w.prototype.remove=function(){var D;return(0,p.default)(D=this).call(D,function(I){if(I.remove)I.remove();else{var j=I.parentElement;j&&j.removeChild(I)}})},w.prototype.isContain=function(D){var I=this.elems[0],j=D.elems[0];return I.contains(j)},w.prototype.getNodeName=function(){var D=this.elems[0];return D.nodeName},w.prototype.getNode=function(D){D===void 0&&(D=0);var I;return I=this.elems[D],I},w.prototype.find=function(D){var I=this.elems[0];return V(I.querySelectorAll(D))},w.prototype.text=function(D){if(D){var I;return(0,p.default)(I=this).call(I,function(R){R.innerHTML=D})}else{var j=this.elems[0];return j.innerHTML.replace(/<[^>]+>/g,function(){return""})}},w.prototype.html=function(D){var I=this.elems[0];return D?(I.innerHTML=D,this):I.innerHTML},w.prototype.val=function(){var D,I=this.elems[0];return(0,v.default)(D=I.value).call(D)},w.prototype.focus=function(){var D;return(0,p.default)(D=this).call(D,function(I){I.focus()})},w.prototype.prev=function(){var D=this.elems[0];return V(D.previousElementSibling)},w.prototype.next=function(){var D=this.elems[0];return V(D.nextElementSibling)},w.prototype.getNextSibling=function(){var D=this.elems[0];return V(D.nextSibling)},w.prototype.parent=function(){var D=this.elems[0];return V(D.parentElement)},w.prototype.parentUntil=function(D,I){var j=I||this.elems[0];if(j.nodeName==="BODY")return null;var R=j.parentElement;return R===null?null:R.matches(D)?V(R):this.parentUntil(D,R)},w.prototype.parentUntilEditor=function(D,I,j){var R=j||this.elems[0];if(V(R).equal(I.$textContainerElem)||V(R).equal(I.$toolbarElem))return null;var O=R.parentElement;return O===null?null:O.matches(D)?V(O):this.parentUntilEditor(D,I,O)},w.prototype.equal=function(D){return D instanceof w?this.elems[0]===D.elems[0]:D instanceof HTMLElement?this.elems[0]===D:!1},w.prototype.insertBefore=function(D){var I,j=V(D),R=j.elems[0];return R?(0,p.default)(I=this).call(I,function(O){var X=R.parentNode;X?.insertBefore(O,R)}):this},w.prototype.insertAfter=function(D){var I,j=V(D),R=j.elems[0],O=R&&R.nextSibling;return R?(0,p.default)(I=this).call(I,function(X){var U=R.parentNode;O?U.insertBefore(X,O):U.appendChild(X)}):this},w.prototype.data=function(D,I){if(I!=null)this.dataSource.set(D,I);else return this.dataSource.get(D)},w.prototype.getNodeTop=function(D){if(this.length<1)return this;var I=this.parent();return D.$textElem.equal(this)||D.$textElem.equal(I)?this:(I.prior=this,I.getNodeTop(D))},w.prototype.getOffsetData=function(){var D=this.elems[0];return{top:D.offsetTop,left:D.offsetLeft,width:D.offsetWidth,height:D.offsetHeight,parent:D.offsetParent}},w.prototype.scrollTop=function(D){var I=this.elems[0];I.scrollTo({top:D})},w}();i.DomElement=N;function V(){for(var w=[],D=0;D<arguments.length;D++)w[D]=arguments[D];return new((0,y.default)(N).apply(N,h.__spreadArrays([void 0],w)))}i.default=V},function(o,i,n){o.exports=n(180)},function(o,i,n){var l=n(8),f=n(71).f,c=n(101),p=n(9),m=n(40),v=n(19),_=n(16),x=function(k){var b=function(F,y,h){if(this instanceof k){switch(arguments.length){case 0:return new k;case 1:return new k(F);case 2:return new k(F,y)}return new k(F,y,h)}return k.apply(this,arguments)};return b.prototype=k.prototype,b};o.exports=function(k,b){var F=k.target,y=k.global,h=k.stat,g=k.proto,A=y?l:h?l[F]:(l[F]||{}).prototype,C=y?p:p[F]||(p[F]={}),S=C.prototype,B,M,N,V,w,D,I,j,R;for(V in b)B=c(y?V:F+(h?".":"#")+V,k.forced),M=!B&&A&&_(A,V),D=C[V],M&&(k.noTargetGet?(R=f(A,V),I=R&&R.value):I=A[V]),w=M&&I?I:b[V],!(M&&Yt(D)===Yt(w))&&(k.bind&&M?j=m(w,l):k.wrap&&M?j=x(w):g&&typeof w=="function"?j=m(Function.call,w):j=w,(k.sham||w&&w.sham||D&&D.sham)&&v(j,"sham",!0),C[V]=j,g&&(N=F+"Prototype",_(p,N)||v(p,N,{}),p[N][V]=w,k.real&&S&&!S[V]&&v(S,V,w)))}},function(o,i,n){var l=n(0),f=l(n(92)),c=l(n(1)),p=l(n(256)),m=l(n(45)),v=l(n(46)),_=l(n(89)),x=l(n(26));(0,c.default)(i,"__esModule",{value:!0}),i.hexToRgb=i.getRandomCode=i.toArray=i.deepClone=i.isFunction=i.debounce=i.throttle=i.arrForEach=i.forEach=i.replaceSpecialSymbol=i.replaceHtmlSymbol=i.getRandom=i.UA=void 0;var k=n(2),b=function(){function D(){this._ua=navigator.userAgent;var I=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(I&&I[1]=="Edge"&&(0,p.default)(I[2])<19),this.isFirefox=!!(/Firefox\/\d+/.test(this._ua)&&!/Seamonkey\/\d+/.test(this._ua))}return D.prototype.isIE=function(){return"ActiveXObject"in window},D.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},D}();i.UA=new b;function F(D){var I;return D===void 0&&(D=""),D+(0,m.default)(I=Math.random().toString()).call(I,2)}i.getRandom=F;function y(D){return D.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,""").replace(/(\r\n|\r|\n)/g,"<br/>")}i.replaceHtmlSymbol=y;function h(D){return D.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,'"')}i.replaceSpecialSymbol=h;function g(D,I){for(var j in D)if(Object.prototype.hasOwnProperty.call(D,j)){var R=I(j,D[j]);if(R===!1)break}}i.forEach=g;function A(D,I){var j,R,O,X=D.length||0;for(j=0;j<X&&(R=D[j],O=I.call(D,R,j),O!==!1);j++);}i.arrForEach=A;function C(D,I){I===void 0&&(I=200);var j=!1;return function(){for(var R=this,O=[],X=0;X<arguments.length;X++)O[X]=arguments[X];j||(j=!0,(0,v.default)(function(){j=!1,D.call.apply(D,k.__spreadArrays([R],O))},I))}}i.throttle=C;function S(D,I){I===void 0&&(I=200);var j=0;return function(){for(var R=this,O=[],X=0;X<arguments.length;X++)O[X]=arguments[X];j&&window.clearTimeout(j),j=(0,v.default)(function(){j=0,D.call.apply(D,k.__spreadArrays([R],O))},I)}}i.debounce=S;function B(D){return typeof D=="function"}i.isFunction=B;function M(D){if((0,f.default)(D)!=="object"||typeof D=="function"||D===null)return D;var I;(0,_.default)(D)&&(I=[]),(0,_.default)(D)||(I={});for(var j in D)Object.prototype.hasOwnProperty.call(D,j)&&(I[j]=M(D[j]));return I}i.deepClone=M;function N(D){return(0,m.default)(Array.prototype).call(D)}i.toArray=N;function V(){var D;return(0,m.default)(D=Math.random().toString(36)).call(D,-5)}i.getRandomCode=V;function w(D){var I=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(D);if(I==null)return null;var j=(0,x.default)(I).call(I,function(U){return(0,p.default)(U,16)}),R=j[1],O=j[2],X=j[3];return"rgb("+R+", "+O+", "+X+")"}i.hexToRgb=w},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0}),i.EMPTY_P_REGEX=i.EMPTY_P_LAST_REGEX=i.EMPTY_P=i.urlRegex=i.EMPTY_FN=void 0;function c(){}i.EMPTY_FN=c,i.urlRegex=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&:/~+#]*[\w\-@?^=%&/~+#])?/g,i.EMPTY_P='<p data-we-empty-p=""><br></p>',i.EMPTY_P_LAST_REGEX=/<p data-we-empty-p=""><br\/?><\/p>$/gim,i.EMPTY_P_REGEX=/<p data-we-empty-p="">/gim},function(o,i,n){(function(l){var f=function(c){return c&&c.Math==Math&&c};o.exports=f((typeof globalThis>"u"?"undefined":Yt(globalThis))=="object"&&globalThis)||f((typeof window>"u"?"undefined":Yt(window))=="object"&&window)||f((typeof self>"u"?"undefined":Yt(self))=="object"&&self)||f(Yt(l)=="object"&&l)||Function("return this")()}).call(this,n(145))},function(o,i){o.exports={}},function(o,i,n){var l=n(8),f=n(74),c=n(16),p=n(64),m=n(76),v=n(106),_=f("wks"),x=l.Symbol,k=v?x:x&&x.withoutSetter||p;o.exports=function(b){return c(_,b)||(m&&c(x,b)?_[b]=x[b]:_[b]=k("Symbol."+b)),_[b]}},function(o,i){o.exports=function(n){try{return!!n()}catch{return!0}}},function(o,i,n){var l=n(9),f=n(16),c=n(93),p=n(18).f;o.exports=function(m){var v=l.Symbol||(l.Symbol={});f(v,m)||p(v,m,{value:c.f(m)})}},function(o,i){o.exports=function(n){return Yt(n)==="object"?n!==null:typeof n=="function"}},function(o,i,n){var l=n(11);o.exports=!l(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(o,i,n){var l=n(9);o.exports=function(f){return l[f+"Prototype"]}},function(o,i){var n={}.hasOwnProperty;o.exports=function(l,f){return n.call(l,f)}},function(o,i,n){o.exports=n(192)},function(o,i,n){var l=n(14),f=n(100),c=n(25),p=n(60),m=Object.defineProperty;i.f=l?m:function(v,_,x){if(c(v),_=p(_,!0),c(x),f)try{return m(v,_,x)}catch{}if("get"in x||"set"in x)throw TypeError("Accessors not supported");return"value"in x&&(v[_]=x.value),v}},function(o,i,n){var l=n(14),f=n(18),c=n(48);o.exports=l?function(p,m,v){return f.f(p,m,c(1,v))}:function(p,m,v){return p[m]=v,p}},function(o,i,n){var l=function(){var g;return function(){return typeof g>"u"&&(g=!!(window&&document&&document.all&&!window.atob)),g}}(),f=function(){var g={};return function(A){if(typeof g[A]>"u"){var C=document.querySelector(A);if(window.HTMLIFrameElement&&C instanceof window.HTMLIFrameElement)try{C=C.contentDocument.head}catch{C=null}g[A]=C}return g[A]}}(),c=[];function p(g){for(var A=-1,C=0;C<c.length;C++)if(c[C].identifier===g){A=C;break}return A}function m(g,A){for(var C={},S=[],B=0;B<g.length;B++){var M=g[B],N=A.base?M[0]+A.base:M[0],V=C[N]||0,w="".concat(N," ").concat(V);C[N]=V+1;var D=p(w),I={css:M[1],media:M[2],sourceMap:M[3]};D!==-1?(c[D].references++,c[D].updater(I)):c.push({identifier:w,updater:h(I,A),references:1}),S.push(w)}return S}function v(g){var A=document.createElement("style"),C=g.attributes||{};if(typeof C.nonce>"u"){var S=n.nc;S&&(C.nonce=S)}if(Object.keys(C).forEach(function(M){A.setAttribute(M,C[M])}),typeof g.insert=="function")g.insert(A);else{var B=f(g.insert||"head");if(!B)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");B.appendChild(A)}return A}function _(g){if(g.parentNode===null)return!1;g.parentNode.removeChild(g)}var x=function(){var g=[];return function(A,C){return g[A]=C,g.filter(Boolean).join(`
- `)}}();function k(g,A,C,S){var B=C?"":S.media?"@media ".concat(S.media," {").concat(S.css,"}"):S.css;if(g.styleSheet)g.styleSheet.cssText=x(A,B);else{var M=document.createTextNode(B),N=g.childNodes;N[A]&&g.removeChild(N[A]),N.length?g.insertBefore(M,N[A]):g.appendChild(M)}}function b(g,A,C){var S=C.css,B=C.media,M=C.sourceMap;if(B?g.setAttribute("media",B):g.removeAttribute("media"),M&&typeof btoa<"u"&&(S+=`
- /*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(M))))," */")),g.styleSheet)g.styleSheet.cssText=S;else{for(;g.firstChild;)g.removeChild(g.firstChild);g.appendChild(document.createTextNode(S))}}var F=null,y=0;function h(g,A){var C,S,B;if(A.singleton){var M=y++;C=F||(F=v(A)),S=k.bind(null,C,M,!1),B=k.bind(null,C,M,!0)}else C=v(A),S=b.bind(null,C,A),B=function(){_(C)};return S(g),function(N){if(N){if(N.css===g.css&&N.media===g.media&&N.sourceMap===g.sourceMap)return;S(g=N)}else B()}}o.exports=function(g,A){A=A||{},!A.singleton&&typeof A.singleton!="boolean"&&(A.singleton=l()),g=g||[];var C=m(g,A);return function(S){if(S=S||[],Object.prototype.toString.call(S)==="[object Array]"){for(var B=0;B<C.length;B++){var M=C[B],N=p(M);c[N].references--}for(var V=m(S,A),w=0;w<C.length;w++){var D=C[w],I=p(D);c[I].references===0&&(c[I].updater(),c.splice(I,1))}C=V}}}},function(o,i,n){o.exports=function(c){var p=[];return p.toString=function(){return this.map(function(m){var v=l(m,c);return m[2]?"@media ".concat(m[2]," {").concat(v,"}"):v}).join("")},p.i=function(m,v,_){typeof m=="string"&&(m=[[null,m,""]]);var x={};if(_)for(var k=0;k<this.length;k++){var b=this[k][0];b!=null&&(x[b]=!0)}for(var F=0;F<m.length;F++){var y=[].concat(m[F]);_&&x[y[0]]||(v&&(y[2]?y[2]="".concat(v," and ").concat(y[2]):y[2]=v),p.push(y))}},p};function l(c,p){var m=c[1]||"",v=c[3];if(!v)return m;if(p&&typeof btoa=="function"){var _=f(v),x=v.sources.map(function(k){return"/*# sourceURL=".concat(v.sourceRoot||"").concat(k," */")});return[m].concat(x).concat([_]).join(`
- `)}return[m].join(`
- `)}function f(c){var p=btoa(unescape(encodeURIComponent(JSON.stringify(c)))),m="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(p);return"/*# ".concat(m," */")}},function(o,i,n){var l=n(14),f=n(11),c=n(16),p=Object.defineProperty,m={},v=function(_){throw _};o.exports=function(_,x){if(c(m,_))return m[_];x||(x={});var k=[][_],b=c(x,"ACCESSORS")?x.ACCESSORS:!1,F=c(x,0)?x[0]:v,y=c(x,1)?x[1]:void 0;return m[_]=!!k&&!f(function(){if(b&&!l)return!0;var h={length:-1};b?p(h,1,{enumerable:!0,get:v}):h[1]=1,k.call(h,F,y)})}},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(95)),m=function(v){c.__extends(_,v);function _(x,k){return v.call(this,x,k)||this}return _}(p.default);i.default=m},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4)),p=l(n(46));(0,f.default)(i,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(3)),_=m.__importDefault(n(95)),x=m.__importDefault(n(134)),k=function(b){m.__extends(F,b);function F(y,h,g){var A=b.call(this,y,h)||this;g.title=h.i18next.t("menus.dropListMenu."+g.title);var C=h.config.lang==="zh-CN"?"":"w-e-drop-list-tl";if(C!==""&&g.type==="list"){var S;(0,c.default)(S=g.list).call(S,function(M){var N=M.$elem,V=v.default(N.children());if(V.length>0){var w=V?.getNodeName();w&&w==="I"&&N.addClass(C)}})}var B=new x.default(A,g);return A.dropList=B,y.on("click",function(){var M;h.selection.getRange()!=null&&(y.css("z-index",h.zIndex.get("menu")),(0,c.default)(M=h.txt.eventHooks.dropListMenuHoverEvents).call(M,function(N){return N()}),B.show())}).on("mouseleave",function(){y.css("z-index","auto"),B.hideTimeoutId=(0,p.default)(function(){B.hide()})}),A}return F}(_.default);i.default=k},function(o,i,n){var l=n(13);o.exports=function(f){if(!l(f))throw TypeError(String(f)+" is not an object");return f}},function(o,i,n){o.exports=n(188)},function(o,i,n){o.exports=n(201)},function(o,i,n){o.exports=n(213)},function(o,i,n){o.exports=n(283)},function(o,i,n){var l=n(72),f=n(49);o.exports=function(c){return l(f(c))}},function(o,i,n){var l=n(49);o.exports=function(f){return Object(l(f))}},function(o,i,n){var l=n(40),f=n(72),c=n(31),p=n(35),m=n(88),v=[].push,_=function(x){var k=x==1,b=x==2,F=x==3,y=x==4,h=x==6,g=x==5||h;return function(A,C,S,B){for(var M=c(A),N=f(M),V=l(C,S,3),w=p(N.length),D=0,I=B||m,j=k?I(A,w):b?I(A,0):void 0,R,O;w>D;D++)if((g||D in N)&&(R=N[D],O=V(R,D,M),x)){if(k)j[D]=O;else if(O)switch(x){case 3:return!0;case 5:return R;case 6:return D;case 2:v.call(j,R)}else if(y)return!1}return h?-1:F||y?y:j}};o.exports={forEach:_(0),map:_(1),filter:_(2),some:_(3),every:_(4),find:_(5),findIndex:_(6)}},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4)),p=l(n(29)),m=l(n(132));(0,f.default)(i,"__esModule",{value:!0});var v=n(2),_=v.__importDefault(n(3)),x=n(7),k=function(){function b(F,y){this.menu=F,this.conf=y,this.$container=_.default('<div class="w-e-panel-container"></div>');var h=F.editor;h.txt.eventHooks.clickEvents.push(b.hideCurAllPanels),h.txt.eventHooks.toolbarClickEvents.push(b.hideCurAllPanels),h.txt.eventHooks.dropListMenuHoverEvents.push(b.hideCurAllPanels)}return b.prototype.create=function(){var F=this,y=this.menu;if(!b.createdMenus.has(y)){var h=this.conf,g=this.$container,A=h.width||300,C=y.editor.$toolbarElem.getBoundingClientRect(),S=y.$elem.getBoundingClientRect(),B=C.height+C.top-S.top,M=(C.width-A)/2+C.left-S.left,N=300;Math.abs(M)>N&&(S.left<document.documentElement.clientWidth/2?M=-S.width/2:M=-A+S.width/2),g.css("width",A+"px").css("margin-top",B+"px").css("margin-left",M+"px").css("z-index",y.editor.zIndex.get("panel"));var V=_.default('<i class="w-e-icon-close w-e-panel-close"></i>');g.append(V),V.on("click",function(){F.remove()});var w=_.default('<ul class="w-e-panel-tab-title"></ul>'),D=_.default('<div class="w-e-panel-tab-content"></div>');g.append(w).append(D);var I=h.height;I&&D.css("height",I+"px").css("overflow-y","auto");var j=h.tabs||[],R=[],O=[];(0,c.default)(j).call(j,function(U,Z){if(U){var L=U.title||"",Q=U.tpl||"",W=_.default('<li class="w-e-item">'+L+"</li>");w.append(W);var G=_.default(Q);D.append(G),R.push(W),O.push(G),Z===0?(W.data("active",!0),W.addClass("w-e-active")):G.hide(),W.on("click",function(){W.data("active")||((0,c.default)(R).call(R,function(te){te.data("active",!1),te.removeClass("w-e-active")}),(0,c.default)(O).call(O,function(te){te.hide()}),W.data("active",!0),W.addClass("w-e-active"),G.show())})}}),g.on("click",function(U){U.stopPropagation()}),y.$elem.append(g),h.setLinkValue&&h.setLinkValue(g,"text"),h.setLinkValue&&h.setLinkValue(g,"link"),(0,c.default)(j).call(j,function(U,Z){if(U){var L=U.events||[];(0,c.default)(L).call(L,function(Q){var W,G=Q.selector,te=Q.type,le=Q.fn||x.EMPTY_FN,ye=O[Z],fe=(W=Q.bindEnter)!==null&&W!==void 0?W:!1,oe=function(ce){return v.__awaiter(F,void 0,void 0,function(){var se;return v.__generator(this,function(be){switch(be.label){case 0:return ce.stopPropagation(),[4,le(ce)];case 1:return se=be.sent(),se&&this.remove(),[2]}})})};(0,p.default)(ye).call(ye,G).on(te,oe),fe&&te==="click"&&ye.on("keyup",function(ce){ce.keyCode==13&&oe(ce)})})}});var X=(0,p.default)(g).call(g,"input[type=text],textarea");X.length&&X.get(0).focus(),b.hideCurAllPanels(),y.setPanel(this),b.createdMenus.add(y)}},b.prototype.remove=function(){var F=this.menu,y=this.$container;y&&y.remove(),b.createdMenus.delete(F)},b.hideCurAllPanels=function(){var F;b.createdMenus.size!==0&&(0,c.default)(F=b.createdMenus).call(F,function(y){var h=y.panel;h&&h.remove()})},b.createdMenus=new m.default,b}();i.default=k},function(o,i){var n={}.toString;o.exports=function(l){return n.call(l).slice(8,-1)}},function(o,i,n){var l=n(62),f=Math.min;o.exports=function(c){return c>0?f(l(c),9007199254740991):0}},function(o,i,n){var l=n(9),f=n(8),c=function(p){return typeof p=="function"?p:void 0};o.exports=function(p,m){return arguments.length<2?c(l[p])||c(f[p]):l[p]&&l[p][m]||f[p]&&f[p][m]}},function(o,i,n){var l=n(81),f=n(18).f,c=n(19),p=n(16),m=n(170),v=n(10),_=v("toStringTag");o.exports=function(x,k,b,F){if(x){var y=b?x:x.prototype;p(y,_)||f(y,_,{configurable:!0,value:k}),F&&!l&&c(y,"toString",m)}}},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(95)),m=function(v){c.__extends(_,v);function _(x,k){return v.call(this,x,k)||this}return _.prototype.setPanel=function(x){this.panel=x},_}(p.default);i.default=m},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4)),p=l(n(57));(0,f.default)(i,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(3)),_=function(){function x(k,b,F){this.editor=k,this.$targetElem=b,this.conf=F,this._show=!1,this._isInsertTextContainer=!1;var y=v.default("<div></div>");y.addClass("w-e-tooltip"),this.$container=y}return x.prototype.getPositionData=function(){var k=this.$container,b=0,F=0,y=20,h=document.documentElement.scrollTop,g=this.$targetElem.getBoundingClientRect(),A=this.editor.$textElem.getBoundingClientRect(),C=this.$targetElem.getOffsetData(),S=v.default(C.parent),B=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=S.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var M=S.getBoundingClientRect().height,N=C.top,V=C.left,w=C.height,D=N-B;D>y+5?(b=D-y-15,k.addClass("w-e-tooltip-up")):D+w+y<M?(b=D+w+10,k.addClass("w-e-tooltip-down")):(b=(D>0?D:0)+y+10,k.addClass("w-e-tooltip-down")),V<0?F=0:F=V}else g.top<y||g.top-A.top<y?(b=g.bottom+h+5,k.addClass("w-e-tooltip-down")):(b=g.top+h-y-15,k.addClass("w-e-tooltip-up")),g.left<0?F=0:F=g.left;return{top:b,left:F}},x.prototype.appendMenus=function(){var k=this,b=this.conf,F=this.editor,y=this.$targetElem,h=this.$container;(0,c.default)(b).call(b,function(g,A){var C=g.$elem,S=v.default("<div></div>");S.addClass("w-e-tooltip-item-wrapper "),S.append(C),h.append(S),C.on("click",function(B){B.preventDefault();var M=g.onClick(F,y);M&&k.remove()})})},x.prototype.create=function(){var k,b,F=this.editor,y=this.$container;this.appendMenus();var h=this.getPositionData(),g=h.top,A=h.left;y.css("top",g+"px"),y.css("left",A+"px"),y.css("z-index",F.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(y):v.default("body").append(y),this._show=!0,F.beforeDestroy((0,p.default)(k=this.remove).call(k,this)),F.txt.eventHooks.onBlurEvents.push((0,p.default)(b=this.remove).call(b,this))},x.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,f.default)(x.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),x}();i.default=_},function(o,i,n){var l=n(41);o.exports=function(f,c,p){if(l(f),c===void 0)return f;switch(p){case 0:return function(){return f.call(c)};case 1:return function(m){return f.call(c,m)};case 2:return function(m,v){return f.call(c,m,v)};case 3:return function(m,v,_){return f.call(c,m,v,_)}}return function(){return f.apply(c,arguments)}}},function(o,i){o.exports=function(n){if(typeof n!="function")throw TypeError(String(n)+" is not a function");return n}},function(o,i,n){var l=n(165),f=n(8),c=n(13),p=n(19),m=n(16),v=n(63),_=n(51),x=f.WeakMap,k,b,F,y=function(M){return F(M)?b(M):k(M,{})},h=function(M){return function(N){var V;if(!c(N)||(V=b(N)).type!==M)throw TypeError("Incompatible receiver, "+M+" required");return V}};if(l){var g=new x,A=g.get,C=g.has,S=g.set;k=function(M,N){return S.call(g,M,N),N},b=function(M){return A.call(g,M)||{}},F=function(M){return C.call(g,M)}}else{var B=v("state");_[B]=!0,k=function(M,N){return p(M,B,N),N},b=function(M){return m(M,B)?M[B]:{}},F=function(M){return m(M,B)}}o.exports={set:k,get:b,has:F,enforce:y,getterFor:h}},function(o,i){o.exports=!0},function(o,i){o.exports={}},function(o,i,n){o.exports=n(261)},function(o,i,n){o.exports=n(265)},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0}),i.createElementFragment=i.createDocumentFragment=i.createElement=i.insertBefore=i.getEndPoint=i.getStartPoint=i.updateRange=i.filterSelectionNodes=void 0;var p=n(2),m=n(137),v=p.__importDefault(n(3));function _(A){var C=[];return(0,c.default)(A).call(A,function(S){var B=S.getNodeName();if(B!==m.ListType.OrderedList&&B!==m.ListType.UnorderedList)C.push(S);else if(S.prior)C.push(S.prior);else{var M=S.children();M==null||(0,c.default)(M).call(M,function(N){C.push(v.default(N))})}}),C}i.filterSelectionNodes=_;function x(A,C,S){var B=A.selection,M=document.createRange();C.length>1?(M.setStart(C.elems[0],0),M.setEnd(C.elems[C.length-1],C.elems[C.length-1].childNodes.length)):M.selectNodeContents(C.elems[0]),S&&M.collapse(!1),B.saveRange(M),B.restoreSelection()}i.updateRange=x;function k(A){var C;return A.prior?A.prior:v.default((C=A.children())===null||C===void 0?void 0:C.elems[0])}i.getStartPoint=k;function b(A){var C;return A.prior?A.prior:v.default((C=A.children())===null||C===void 0?void 0:C.last().elems[0])}i.getEndPoint=b;function F(A,C,S){S===void 0&&(S=null),A.parent().elems[0].insertBefore(C,S)}i.insertBefore=F;function y(A){return document.createElement(A)}i.createElement=y;function h(){return document.createDocumentFragment()}i.createDocumentFragment=h;function g(A,C,S){return S===void 0&&(S="li"),(0,c.default)(A).call(A,function(B){var M=y(S);M.innerHTML=B.html(),C.appendChild(M),B.remove()}),C}i.createElementFragment=g},function(o,i){o.exports=function(n,l){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:l}}},function(o,i){o.exports=function(n){if(n==null)throw TypeError("Can't call method on "+n);return n}},function(o,i,n){var l=n(164).charAt,f=n(42),c=n(75),p="String Iterator",m=f.set,v=f.getterFor(p);c(String,"String",function(_){m(this,{type:p,string:String(_),index:0})},function(){var _=v(this),x=_.string,k=_.index,b;return k>=x.length?{value:void 0,done:!0}:(b=l(x,k),_.index+=b.length,{value:b,done:!1})})},function(o,i){o.exports={}},function(o,i,n){var l=n(107),f=n(80);o.exports=Object.keys||function(c){return l(c,f)}},function(o,i,n){var l=n(19);o.exports=function(f,c,p,m){m&&m.enumerable?f[c]=p:l(f,c,p)}},function(o,i,n){n(173);var l=n(174),f=n(8),c=n(65),p=n(19),m=n(44),v=n(10),_=v("toStringTag");for(var x in l){var k=f[x],b=k&&k.prototype;b&&c(b)!==_&&p(b,_,x),m[x]=m.Array}},function(o,i,n){var l=n(34);o.exports=Array.isArray||function(f){return l(f)=="Array"}},function(o,i,n){var l=n(11),f=n(10),c=n(86),p=f("species");o.exports=function(m){return c>=51||!l(function(){var v=[],_=v.constructor={};return _[p]=function(){return{foo:1}},v[m](Boolean).foo!==1})}},function(o,i,n){o.exports=n(222)},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0}),i.ListHandle=void 0;var c=n(2),p=c.__importDefault(n(373)),m=function(){function v(_){this.options=_,this.selectionRangeElem=new p.default}return v}();i.ListHandle=m},function(o,i,n){var l={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,c=f&&!l.call({1:2},1);i.f=c?function(p){var m=f(this,p);return!!m&&m.enumerable}:l},function(o,i,n){var l=n(13);o.exports=function(f,c){if(!l(f))return f;var p,m;if(c&&typeof(p=f.toString)=="function"&&!l(m=p.call(f))||typeof(p=f.valueOf)=="function"&&!l(m=p.call(f))||!c&&typeof(p=f.toString)=="function"&&!l(m=p.call(f)))return m;throw TypeError("Can't convert object to primitive value")}},function(o,i){},function(o,i){var n=Math.ceil,l=Math.floor;o.exports=function(f){return isNaN(f=+f)?0:(f>0?l:n)(f)}},function(o,i,n){var l=n(74),f=n(64),c=l("keys");o.exports=function(p){return c[p]||(c[p]=f(p))}},function(o,i){var n=0,l=Math.random();o.exports=function(f){return"Symbol("+String(f===void 0?"":f)+")_"+(++n+l).toString(36)}},function(o,i,n){var l=n(81),f=n(34),c=n(10),p=c("toStringTag"),m=f(function(){return arguments}())=="Arguments",v=function(_,x){try{return _[x]}catch{}};o.exports=l?f:function(_){var x,k,b;return _===void 0?"Undefined":_===null?"Null":typeof(k=v(x=Object(_),p))=="string"?k:m?f(x):(b=f(x))=="Object"&&typeof x.callee=="function"?"Arguments":b}},function(o,i,n){var l=n(25),f=n(112),c=n(35),p=n(40),m=n(113),v=n(114),_=function(k,b){this.stopped=k,this.result=b},x=o.exports=function(k,b,F,y,h){var g=p(b,F,y?2:1),A,C,S,B,M,N,V;if(h)A=k;else{if(C=m(k),typeof C!="function")throw TypeError("Target is not iterable");if(f(C)){for(S=0,B=c(k.length);B>S;S++)if(M=y?g(l(V=k[S])[0],V[1]):g(k[S]),M&&M instanceof _)return M;return new _(!1)}A=C.call(k)}for(N=A.next;!(V=N.call(A)).done;)if(M=v(A,g,V.value,y),Yt(M)=="object"&&M&&M instanceof _)return M;return new _(!1)};x.stop=function(k){return new _(!0,k)}},function(o,i,n){var l=n(11);o.exports=function(f,c){var p=[][f];return!!p&&l(function(){p.call(null,c||function(){throw 1},1)})}},function(o,i){o.exports=`
- \v\f\r \u2028\u2029\uFEFF`},function(o,i,n){var l=n(60),f=n(18),c=n(48);o.exports=function(p,m,v){var _=l(m);_ in p?f.f(p,_,c(0,v)):p[_]=v}},function(o,i,n){o.exports=n(209)},function(o,i,n){var l=n(14),f=n(59),c=n(48),p=n(30),m=n(60),v=n(16),_=n(100),x=Object.getOwnPropertyDescriptor;i.f=l?x:function(k,b){if(k=p(k),b=m(b,!0),_)try{return x(k,b)}catch{}if(v(k,b))return c(!f.f.call(k,b),k[b])}},function(o,i,n){var l=n(11),f=n(34),c="".split;o.exports=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(p){return f(p)=="String"?c.call(p,""):Object(p)}:Object},function(o,i,n){var l=n(8),f=n(13),c=l.document,p=f(c)&&f(c.createElement);o.exports=function(m){return p?c.createElement(m):{}}},function(o,i,n){var l=n(43),f=n(103);(o.exports=function(c,p){return f[c]||(f[c]=p!==void 0?p:{})})("versions",[]).push({version:"3.6.4",mode:l?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(o,i,n){var l=n(5),f=n(167),c=n(105),p=n(171),m=n(37),v=n(19),_=n(53),x=n(10),k=n(43),b=n(44),F=n(104),y=F.IteratorPrototype,h=F.BUGGY_SAFARI_ITERATORS,g=x("iterator"),A="keys",C="values",S="entries",B=function(){return this};o.exports=function(M,N,V,w,D,I,j){f(V,N,w);var R=function(le){if(le===D&&L)return L;if(!h&&le in U)return U[le];switch(le){case A:return function(){return new V(this,le)};case C:return function(){return new V(this,le)};case S:return function(){return new V(this,le)}}return function(){return new V(this)}},O=N+" Iterator",X=!1,U=M.prototype,Z=U[g]||U["@@iterator"]||D&&U[D],L=!h&&Z||R(D),Q=N=="Array"&&U.entries||Z,W,G,te;if(Q&&(W=c(Q.call(new M)),y!==Object.prototype&&W.next&&(!k&&c(W)!==y&&(p?p(W,y):typeof W[g]!="function"&&v(W,g,B)),m(W,O,!0,!0),k&&(b[O]=B))),D==C&&Z&&Z.name!==C&&(X=!0,L=function(){return Z.call(this)}),(!k||j)&&U[g]!==L&&v(U,g,L),b[N]=L,D)if(G={values:R(C),keys:I?L:R(A),entries:R(S)},j)for(te in G)(h||X||!(te in U))&&_(U,te,G[te]);else l({target:N,proto:!0,forced:h||X},G);return G}},function(o,i,n){var l=n(11);o.exports=!!Object.getOwnPropertySymbols&&!l(function(){return!String(Symbol())})},function(o,i,n){var l=n(25),f=n(169),c=n(80),p=n(51),m=n(108),v=n(73),_=n(63),x=">",k="<",b="prototype",F="script",y=_("IE_PROTO"),h=function(){},g=function(M){return k+F+x+M+k+"/"+F+x},A=function(M){M.write(g("")),M.close();var N=M.parentWindow.Object;return M=null,N},C=function(){var M=v("iframe"),N="java"+F+":",V;return M.style.display="none",m.appendChild(M),M.src=String(N),V=M.contentWindow.document,V.open(),V.write(g("document.F=Object")),V.close(),V.F},S,B=function(){try{S=document.domain&&new ActiveXObject("htmlfile")}catch{}B=S?A(S):C();for(var M=c.length;M--;)delete B[b][c[M]];return B()};p[y]=!0,o.exports=Object.create||function(M,N){var V;return M!==null?(h[b]=l(M),V=new h,h[b]=null,V[y]=M):V=B(),N===void 0?V:f(V,N)}},function(o,i,n){var l=n(30),f=n(35),c=n(79),p=function(m){return function(v,_,x){var k=l(v),b=f(k.length),F=c(x,b),y;if(m&&_!=_){for(;b>F;)if(y=k[F++],y!=y)return!0}else for(;b>F;F++)if((m||F in k)&&k[F]===_)return m||F||0;return!m&&-1}};o.exports={includes:p(!0),indexOf:p(!1)}},function(o,i,n){var l=n(62),f=Math.max,c=Math.min;o.exports=function(p,m){var v=l(p);return v<0?f(v+m,0):c(v,m)}},function(o,i){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(o,i,n){var l=n(10),f=l("toStringTag"),c={};c[f]="z",o.exports=String(c)==="[object z]"},function(o,i){o.exports=function(){}},function(o,i){o.exports=function(n,l,f){if(!(n instanceof l))throw TypeError("Incorrect "+(f?f+" ":"")+"invocation");return n}},function(o,i,n){var l=n(36);o.exports=l("navigator","userAgent")||""},function(o,i,n){var l=n(41),f=function(c){var p,m;this.promise=new c(function(v,_){if(p!==void 0||m!==void 0)throw TypeError("Bad Promise constructor");p=v,m=_}),this.resolve=l(p),this.reject=l(m)};o.exports.f=function(c){return new f(c)}},function(o,i,n){var l=n(8),f=n(84),c=l.process,p=c&&c.versions,m=p&&p.v8,v,_;m?(v=m.split("."),_=v[0]+v[1]):f&&(v=f.match(/Edge\/(\d+)/),(!v||v[1]>=74)&&(v=f.match(/Chrome\/(\d+)/),v&&(_=v[1]))),o.exports=_&&+_},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=n(6),_=p.__importDefault(n(267)),x=p.__importDefault(n(280)),k=p.__importDefault(n(281)),b=p.__importDefault(n(282)),F=p.__importDefault(n(301)),y=p.__importStar(n(416)),h=p.__importDefault(n(417)),g=p.__importDefault(n(418)),A=p.__importDefault(n(419)),C=p.__importStar(n(420)),S=p.__importDefault(n(423)),B=p.__importDefault(n(424)),M=p.__importDefault(n(425)),N=p.__importDefault(n(427)),V=p.__importDefault(n(437)),w=p.__importDefault(n(440)),D=p.__importStar(n(441)),I=p.__importDefault(n(23)),j=p.__importDefault(n(134)),R=p.__importDefault(n(24)),O=p.__importDefault(n(33)),X=p.__importDefault(n(38)),U=p.__importDefault(n(39)),Z=1,L=function(){function Q(W,G){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+Z++,this.toolbarSelector=W,this.textSelector=G,y.selectorValidator(this),this.config=v.deepClone(_.default),this.$toolbarElem=m.default("<div></div>"),this.$textContainerElem=m.default("<div></div>"),this.$textElem=m.default("<div></div>"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new x.default(this),this.cmd=new k.default(this),this.txt=new b.default(this),this.menus=new F.default(this),this.zIndex=new B.default,this.change=new M.default(this),this.history=new N.default(this),this.onSelectionChange=new w.default(this);var te=V.default(this),le=te.disable,ye=te.enable;this.disable=le,this.enable=ye,this.isEnable=!0}return Q.prototype.initSelection=function(W){h.default(this,W)},Q.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),A.default(this),y.default(this),this.txt.init(),this.menus.init(),C.default(this),this.initSelection(!0),g.default(this),this.change.observe(),this.history.observe(),D.default(this)},Q.prototype.beforeDestroy=function(W){return this.beforeDestroyHooks.push(W),this},Q.prototype.destroy=function(){var W,G=this;(0,c.default)(W=this.beforeDestroyHooks).call(W,function(te){return te.call(G)}),this.$toolbarElem.remove(),this.$textContainerElem.remove()},Q.prototype.fullScreen=function(){C.setFullScreen(this)},Q.prototype.unFullScreen=function(){C.setUnFullScreen(this)},Q.prototype.scrollToHead=function(W){S.default(this,W)},Q.registerMenu=function(W,G){!G||typeof G!="function"||(Q.globalCustomMenuConstructorList[W]=G)},Q.prototype.registerPlugin=function(W,G){D.registerPlugin(W,G,this.pluginsFunctionList)},Q.registerPlugin=function(W,G){D.registerPlugin(W,G,Q.globalPluginsFunctionList)},Q.$=m.default,Q.BtnMenu=I.default,Q.DropList=j.default,Q.DropListMenu=R.default,Q.Panel=O.default,Q.PanelMenu=X.default,Q.Tooltip=U.default,Q.globalCustomMenuConstructorList={},Q.globalPluginsFunctionList={},Q}();i.default=L},function(o,i,n){var l=n(13),f=n(55),c=n(10),p=c("species");o.exports=function(m,v){var _;return f(m)&&(_=m.constructor,typeof _=="function"&&(_===Array||f(_.prototype))?_=void 0:l(_)&&(_=_[p],_===null&&(_=void 0))),new(_===void 0?Array:_)(v===0?0:v)}},function(o,i,n){o.exports=n(185)},function(o,i,n){var l=n(49),f=n(68),c="["+f+"]",p=RegExp("^"+c+c+"*"),m=RegExp(c+c+"*$"),v=function(_){return function(x){var k=String(l(x));return _&1&&(k=k.replace(p,"")),_&2&&(k=k.replace(m,"")),k}};o.exports={start:v(1),end:v(2),trim:v(3)}},function(o,i,n){o.exports=n(205)},function(o,i,n){var l=n(227),f=n(230);function c(p){return typeof f=="function"&&typeof l=="symbol"?o.exports=c=function(m){return typeof m}:o.exports=c=function(m){return m&&typeof f=="function"&&m.constructor===f&&m!==f.prototype?"symbol":typeof m},c(p)}o.exports=c},function(o,i,n){var l=n(10);i.f=l},function(o,i,n){o.exports=n(306)},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(33)),v=function(){function _(x,k){var b=this;this.$elem=x,this.editor=k,this._active=!1,x.on("click",function(F){var y;m.default.hideCurAllPanels(),(0,c.default)(y=k.txt.eventHooks.menuClickEvents).call(y,function(h){return h()}),F.stopPropagation(),k.selection.getRange()!=null&&b.clickHandler(F)})}return _.prototype.clickHandler=function(x){},_.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},_.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,f.default)(_.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),_}();i.default=v},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(28));(0,f.default)(i,"__esModule",{value:!0}),i.getParentNodeA=i.EXTRA_TAG=void 0,i.EXTRA_TAG=["B","FONT","I","STRIKE"];function p(v){for(var _=v.elems[0];_&&(0,c.default)(x=i.EXTRA_TAG).call(x,_.nodeName);){var x;if(_=_.parentElement,_.nodeName==="A")return _}}i.getParentNodeA=p;function m(v){var _,x=v.selection.getSelectionContainerElem();if(!(!((_=x?.elems)===null||_===void 0)&&_.length))return!1;if(x.getNodeName()==="A")return!0;var k=p(x);return!!(k&&k.nodeName==="A")}i.default=m},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(57)),p=l(n(4)),m=l(n(27));(0,f.default)(i,"__esModule",{value:!0});var v=n(2),_=n(6),x=v.__importDefault(n(135)),k=v.__importDefault(n(136)),b=function(){function F(y){this.editor=y}return F.prototype.insertImg=function(y,h,g){var A=this.editor,C=A.config,S="validate.",B=function(D,I){return I===void 0&&(I=S),A.i18next.t(I+D)},M=y.replace(/</g,"<").replace(/>/g,">");M=M.replace("'",'"');var N="";g&&(N=g.replace("'",'"'),N="data-href='"+encodeURIComponent(N)+"' ");var V="";h&&(V=h.replace(/</g,"<").replace(/>/g,">"),V=V.replace("'",'"'),V="alt='"+V+"' "),A.cmd.do("insertHTML","<img src='"+M+"' "+V+N+'style="max-width:100%;" contenteditable="false"/>'),C.linkImgCallback(y,h,g);var w=document.createElement("img");w.onload=function(){w=null},w.onerror=function(){C.customAlert(B("插入图片错误"),"error","wangEditor: "+B("插入图片错误")+","+B("图片链接")+' "'+y+'",'+B("下载链接失败")),w=null},w.onabort=function(){return w=null},w.src=y},F.prototype.uploadImg=function(y){var h=this;if(y.length){var g=this.editor,A=g.config,C="validate.",S=function(fe){return g.i18next.t(C+fe)},B=A.uploadImgServer,M=A.uploadImgShowBase64,N=A.uploadImgMaxSize,V=N/1024/1024,w=A.uploadImgMaxLength,D=A.uploadFileName,I=A.uploadImgParams,j=A.uploadImgParamsWithUrl,R=A.uploadImgHeaders,O=A.uploadImgHooks,X=A.uploadImgTimeout,U=A.withCredentials,Z=A.customUploadImg;if(!(!Z&&!B&&!M)){var L=[],Q=[];if(_.arrForEach(y,function(fe){if(fe){var oe=fe.name||fe.type.replace("/","."),ce=fe.size;if(!(!oe||!ce)){var se=g.config.uploadImgAccept.join("|"),be=".("+se+")$",we=new RegExp(be,"i");if(we.test(oe)===!1){Q.push("【"+oe+"】"+S("不是图片"));return}if(N<ce){Q.push("【"+oe+"】"+S("大于")+" "+V+"M");return}L.push(fe)}}}),Q.length){A.customAlert(S("图片验证未通过")+`:
- `+Q.join(`
- `),"warning");return}if(L.length===0){A.customAlert(S("传入的文件不合法"),"warning");return}if(L.length>w){A.customAlert(S("一次最多上传")+w+S("张图片"),"warning");return}if(Z&&typeof Z=="function"){var W;Z(L,(0,c.default)(W=this.insertImg).call(W,this));return}var G=new FormData;if((0,p.default)(L).call(L,function(fe,oe){var ce=D||fe.name;L.length>1&&(ce=ce+(oe+1)),G.append(ce,fe)}),B){var te=B.split("#");B=te[0];var le=te[1]||"";(0,p.default)(_).call(_,I,function(fe,oe){j&&((0,m.default)(B).call(B,"?")>0?B+="&":B+="?",B=B+fe+"="+oe),G.append(fe,oe)}),le&&(B+="#"+le);var ye=x.default(B,{timeout:X,formData:G,headers:R,withCredentials:!!U,beforeSend:function(fe){if(O.before)return O.before(fe,g,L)},onTimeout:function(fe){A.customAlert(S("上传图片超时"),"error"),O.timeout&&O.timeout(fe,g)},onProgress:function(fe,oe){var ce=new k.default(g);oe.lengthComputable&&(fe=oe.loaded/oe.total,ce.show(fe))},onError:function(fe){A.customAlert(S("上传图片错误"),"error",S("上传图片错误")+","+S("服务器返回状态")+": "+fe.status),O.error&&O.error(fe,g)},onFail:function(fe,oe){A.customAlert(S("上传图片失败"),"error",S("上传图片返回结果错误")+(","+S("返回结果")+": ")+oe),O.fail&&O.fail(fe,g,oe)},onSuccess:function(fe,oe){if(O.customInsert){var ce;O.customInsert((0,c.default)(ce=h.insertImg).call(ce,h),oe,g);return}if(oe.errno!="0"){A.customAlert(S("上传图片失败"),"error",S("上传图片返回结果错误")+","+S("返回结果")+" errno="+oe.errno),O.fail&&O.fail(fe,g,oe);return}var se=oe.data;(0,p.default)(se).call(se,function(be){typeof be=="string"?h.insertImg(be):h.insertImg(be.url,be.alt,be.href)}),O.success&&O.success(fe,g,oe)}});typeof ye=="string"&&A.customAlert(ye,"error");return}M&&_.arrForEach(y,function(fe){var oe=h,ce=new FileReader;ce.readAsDataURL(fe),ce.onload=function(){if(this.result){var se=this.result.toString();oe.insertImg(se,se)}}})}}},F}();i.default=b},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(410)),p=l(n(4)),m=l(n(45));(0,f.default)(i,"__esModule",{value:!0}),i.dealTextNode=i.isAllTodo=i.isTodo=i.getCursorNextNode=void 0;function v(F){return F.length?F.attr("class")==="w-e-todo":!1}i.isTodo=v;function _(F){var y=F.selection.getSelectionRangeTopNodes();if(y.length!==0)return(0,c.default)(y).call(y,function(h){return v(h)})}i.isAllTodo=_;function x(F,y,h){var g;if(F.hasChildNodes()){var A=F.cloneNode(),C=!1;y.nodeValue===""&&(C=!0);var S=[];return(0,p.default)(g=F.childNodes).call(g,function(B){if(!k(B,y)&&C&&(A.appendChild(B.cloneNode(!0)),B.nodeName!=="BR"&&S.push(B)),k(B,y)){if(B.nodeType===1){var M=x(B,y,h);M&&M.textContent!==""&&A?.appendChild(M)}if(B.nodeType===3&&y.isEqualNode(B)){var N=b(B,h);A.textContent=N}C=!0}}),(0,p.default)(S).call(S,function(B){var M=B;M.remove()}),A}}i.getCursorNextNode=x;function k(F,y){return F.nodeType===3?F.nodeValue===y.nodeValue:F.contains(y)}function b(F,y,h){h===void 0&&(h=!0);var g=F.nodeValue,A=g==null?void 0:(0,m.default)(g).call(g,0,y);if(g=g==null?void 0:(0,m.default)(g).call(g,y),!h){var C=g;g=A,A=C}return F.nodeValue=A,g}i.dealTextNode=b},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(430),p=function(){function m(v){this.maxSize=v,this.isRe=!1,this.data=new c.CeilStack(v),this.revokeData=new c.CeilStack(v)}return(0,f.default)(m.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),m.prototype.resetMaxSize=function(v){this.data.resetMax(v),this.revokeData.resetMax(v)},m.prototype.save=function(v){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(v),this},m.prototype.revoke=function(v){!this.isRe&&(this.isRe=!0);var _=this.data.outstack();return _?(this.revokeData.instack(_),v(_),!0):!1},m.prototype.restore=function(v){!this.isRe&&(this.isRe=!0);var _=this.revokeData.outstack();return _?(this.data.instack(_),v(_),!0):!1},m}();i.default=p},function(o,i,n){var l=n(14),f=n(11),c=n(73);o.exports=!l&&!f(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},function(o,i,n){var l=n(11),f=/#|\.prototype\./,c=function(x,k){var b=m[p(x)];return b==_?!0:b==v?!1:typeof k=="function"?l(k):!!k},p=c.normalize=function(x){return String(x).replace(f,".").toLowerCase()},m=c.data={},v=c.NATIVE="N",_=c.POLYFILL="P";o.exports=c},function(o,i,n){var l=n(103),f=Function.toString;typeof l.inspectSource!="function"&&(l.inspectSource=function(c){return f.call(c)}),o.exports=l.inspectSource},function(o,i,n){var l=n(8),f=n(166),c="__core-js_shared__",p=l[c]||f(c,{});o.exports=p},function(o,i,n){var l=n(105),f=n(19),c=n(16),p=n(10),m=n(43),v=p("iterator"),_=!1,x=function(){return this},k,b,F;[].keys&&(F=[].keys(),"next"in F?(b=l(l(F)),b!==Object.prototype&&(k=b)):_=!0),k==null&&(k={}),!m&&!c(k,v)&&f(k,v,x),o.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:_}},function(o,i,n){var l=n(16),f=n(31),c=n(63),p=n(168),m=c("IE_PROTO"),v=Object.prototype;o.exports=p?Object.getPrototypeOf:function(_){return _=f(_),l(_,m)?_[m]:typeof _.constructor=="function"&&_ instanceof _.constructor?_.constructor.prototype:_ instanceof Object?v:null}},function(o,i,n){var l=n(76);o.exports=l&&!Symbol.sham&&Yt(Symbol.iterator)=="symbol"},function(o,i,n){var l=n(16),f=n(30),c=n(78).indexOf,p=n(51);o.exports=function(m,v){var _=f(m),x=0,k=[],b;for(b in _)!l(p,b)&&l(_,b)&&k.push(b);for(;v.length>x;)l(_,b=v[x++])&&(~c(k,b)||k.push(b));return k}},function(o,i,n){var l=n(36);o.exports=l("document","documentElement")},function(o,i,n){var l=n(8);o.exports=l.Promise},function(o,i,n){var l=n(53);o.exports=function(f,c,p){for(var m in c)p&&p.unsafe&&f[m]?f[m]=c[m]:l(f,m,c[m],p);return f}},function(o,i,n){var l=n(36),f=n(18),c=n(10),p=n(14),m=c("species");o.exports=function(v){var _=l(v),x=f.f;p&&_&&!_[m]&&x(_,m,{configurable:!0,get:function(){return this}})}},function(o,i,n){var l=n(10),f=n(44),c=l("iterator"),p=Array.prototype;o.exports=function(m){return m!==void 0&&(f.Array===m||p[c]===m)}},function(o,i,n){var l=n(65),f=n(44),c=n(10),p=c("iterator");o.exports=function(m){if(m!=null)return m[p]||m["@@iterator"]||f[l(m)]}},function(o,i,n){var l=n(25);o.exports=function(f,c,p,m){try{return m?c(l(p)[0],p[1]):c(p)}catch(_){var v=f.return;throw v!==void 0&&l(v.call(f)),_}}},function(o,i,n){var l=n(10),f=l("iterator"),c=!1;try{var p=0,m={next:function(){return{done:!!p++}},return:function(){c=!0}};m[f]=function(){return this},Array.from(m,function(){throw 2})}catch{}o.exports=function(v,_){if(!_&&!c)return!1;var x=!1;try{var k={};k[f]=function(){return{next:function(){return{done:x=!0}}}},v(k)}catch{}return x}},function(o,i,n){var l=n(25),f=n(41),c=n(10),p=c("species");o.exports=function(m,v){var _=l(m).constructor,x;return _===void 0||(x=l(_)[p])==null?v:f(x)}},function(o,i,n){var l=n(8),f=n(11),c=n(34),p=n(40),m=n(108),v=n(73),_=n(118),x=l.location,k=l.setImmediate,b=l.clearImmediate,F=l.process,y=l.MessageChannel,h=l.Dispatch,g=0,A={},C="onreadystatechange",S,B,M,N=function(I){if(A.hasOwnProperty(I)){var j=A[I];delete A[I],j()}},V=function(I){return function(){N(I)}},w=function(I){N(I.data)},D=function(I){l.postMessage(I+"",x.protocol+"//"+x.host)};(!k||!b)&&(k=function(I){for(var j=[],R=1;arguments.length>R;)j.push(arguments[R++]);return A[++g]=function(){(typeof I=="function"?I:Function(I)).apply(void 0,j)},S(g),g},b=function(I){delete A[I]},c(F)=="process"?S=function(I){F.nextTick(V(I))}:h&&h.now?S=function(I){h.now(V(I))}:y&&!_?(B=new y,M=B.port2,B.port1.onmessage=w,S=p(M.postMessage,M,1)):l.addEventListener&&typeof postMessage=="function"&&!l.importScripts&&!f(D)&&x.protocol!=="file:"?(S=D,l.addEventListener("message",w,!1)):C in v("script")?S=function(I){m.appendChild(v("script"))[C]=function(){m.removeChild(this),N(I)}}:S=function(I){setTimeout(V(I),0)}),o.exports={set:k,clear:b}},function(o,i,n){var l=n(84);o.exports=/(iphone|ipod|ipad).*applewebkit/i.test(l)},function(o,i,n){var l=n(25),f=n(13),c=n(85);o.exports=function(p,m){if(l(p),f(m)&&m.constructor===p)return m;var v=c.f(p),_=v.resolve;return _(m),v.promise}},function(o,i){o.exports=function(n){try{return{error:!1,value:n()}}catch(l){return{error:!0,value:l}}}},function(o,i,n){o.exports=n(197)},function(o,i,n){var l=n(5),f=n(8),c=n(123),p=n(11),m=n(19),v=n(66),_=n(83),x=n(13),k=n(37),b=n(18).f,F=n(32).forEach,y=n(14),h=n(42),g=h.set,A=h.getterFor;o.exports=function(C,S,B){var M=C.indexOf("Map")!==-1,N=C.indexOf("Weak")!==-1,V=M?"set":"add",w=f[C],D=w&&w.prototype,I={},j;if(!y||typeof w!="function"||!(N||D.forEach&&!p(function(){new w().entries().next()})))j=B.getConstructor(S,C,M,V),c.REQUIRED=!0;else{j=S(function(O,X){g(_(O,j,C),{type:C,collection:new w}),X!=null&&v(X,O[V],O,M)});var R=A(C);F(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(O){var X=O=="add"||O=="set";O in D&&!(N&&O=="clear")&&m(j.prototype,O,function(U,Z){var L=R(this).collection;if(!X&&N&&!x(U))return O=="get"?void 0:!1;var Q=L[O](U===0?0:U,Z);return X?this:Q})}),N||b(j.prototype,"size",{configurable:!0,get:function(){return R(this).collection.size}})}return k(j,C,!1,!0),I[C]=j,l({global:!0,forced:!0},I),N||B.setStrong(j,C,M),j}},function(o,i,n){var l=n(51),f=n(13),c=n(16),p=n(18).f,m=n(64),v=n(200),_=m("meta"),x=0,k=Object.isExtensible||function(){return!0},b=function(A){p(A,_,{value:{objectID:"O"+ ++x,weakData:{}}})},F=function(A,C){if(!f(A))return Yt(A)=="symbol"?A:(typeof A=="string"?"S":"P")+A;if(!c(A,_)){if(!k(A))return"F";if(!C)return"E";b(A)}return A[_].objectID},y=function(A,C){if(!c(A,_)){if(!k(A))return!0;if(!C)return!1;b(A)}return A[_].weakData},h=function(A){return v&&g.REQUIRED&&k(A)&&!c(A,_)&&b(A),A},g=o.exports={REQUIRED:!1,fastKey:F,getWeakData:y,onFreeze:h};l[_]=!0},function(o,i,n){var l=n(18).f,f=n(77),c=n(110),p=n(40),m=n(83),v=n(66),_=n(75),x=n(111),k=n(14),b=n(123).fastKey,F=n(42),y=F.set,h=F.getterFor;o.exports={getConstructor:function(g,A,C,S){var B=g(function(w,D){m(w,B,A),y(w,{type:A,index:f(null),first:void 0,last:void 0,size:0}),k||(w.size=0),D!=null&&v(D,w[S],w,C)}),M=h(A),N=function(w,D,I){var j=M(w),R=V(w,D),O,X;return R?R.value=I:(j.last=R={index:X=b(D,!0),key:D,value:I,previous:O=j.last,next:void 0,removed:!1},j.first||(j.first=R),O&&(O.next=R),k?j.size++:w.size++,X!=="F"&&(j.index[X]=R)),w},V=function(w,D){var I=M(w),j=b(D),R;if(j!=="F")return I.index[j];for(R=I.first;R;R=R.next)if(R.key==D)return R};return c(B.prototype,{clear:function(){for(var w=this,D=M(w),I=D.index,j=D.first;j;)j.removed=!0,j.previous&&(j.previous=j.previous.next=void 0),delete I[j.index],j=j.next;D.first=D.last=void 0,k?D.size=0:w.size=0},delete:function(w){var D=this,I=M(D),j=V(D,w);if(j){var R=j.next,O=j.previous;delete I.index[j.index],j.removed=!0,O&&(O.next=R),R&&(R.previous=O),I.first==j&&(I.first=R),I.last==j&&(I.last=O),k?I.size--:D.size--}return!!j},forEach:function(w){for(var D=M(this),I=p(w,arguments.length>1?arguments[1]:void 0,3),j;j=j?j.next:D.first;)for(I(j.value,j.key,this);j&&j.removed;)j=j.previous},has:function(w){return!!V(this,w)}}),c(B.prototype,C?{get:function(w){var D=V(this,w);return D&&D.value},set:function(w,D){return N(this,w===0?0:w,D)}}:{add:function(w){return N(this,w=w===0?0:w,w)}}),k&&l(B.prototype,"size",{get:function(){return M(this).size}}),B},setStrong:function(g,A,C){var S=A+" Iterator",B=h(A),M=h(S);_(g,A,function(N,V){y(this,{type:S,target:N,state:B(N),kind:V,last:void 0})},function(){for(var N=M(this),V=N.kind,w=N.last;w&&w.removed;)w=w.previous;return!N.target||!(N.last=w=w?w.next:N.state.first)?(N.target=void 0,{value:void 0,done:!0}):V=="keys"?{value:w.key,done:!1}:V=="values"?{value:w.value,done:!1}:{value:[w.key,w.value],done:!1}},C?"entries":"values",!C,!0),x(A)}}},function(o,i,n){var l=n(12);l("iterator")},function(o,i,n){var l=n(107),f=n(80),c=f.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(p){return l(p,c)}},function(o,i){i.f=Object.getOwnPropertySymbols},function(o,i,n){o.exports=n(268)},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0}),i.default={zIndex:1e4}},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0}),i.default={focus:!0,height:300,placeholder:"请输入正文",zIndexFullScreen:10002,showFullScreen:!0}},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0}),i.getPasteImgs=i.getPasteHtml=i.getPasteText=void 0;var p=n(2),m=n(6),v=p.__importDefault(n(292));function _(b){var F=b.clipboardData,y="";return F==null?y=window.clipboardData&&window.clipboardData.getData("text"):y=F.getData("text/plain"),m.replaceHtmlSymbol(y)}i.getPasteText=_;function x(b,F,y){F===void 0&&(F=!0),y===void 0&&(y=!1);var h=b.clipboardData,g="";if(h&&(g=h.getData("text/html")),!g){var A=_(b);if(!A)return"";g="<p>"+A+"</p>"}return g=g.replace(/<(\d)/gm,function(C,S){return"<"+S}),g=g.replace(/<(\/?meta.*?)>/gim,""),g=v.default(g,F,y),g}i.getPasteHtml=x;function k(b){var F,y=[],h=_(b);if(h)return y;var g=(F=b.clipboardData)===null||F===void 0?void 0:F.items;return g&&(0,c.default)(m).call(m,g,function(A,C){var S=C.type;/image/i.test(S)&&y.push(C.getAsFile())}),y}i.getPasteImgs=k},function(o,i,n){o.exports=n(294)},function(o,i,n){o.exports=n(310)},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4)),p=l(n(46));(0,f.default)(i,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(3)),_=n(7),x=function(){function k(b,F){var y=this;this.hideTimeoutId=0,this.menu=b,this.conf=F;var h=v.default('<div class="w-e-droplist"></div>'),g=v.default("<p>"+F.title+"</p>");g.addClass("w-e-dp-title"),h.append(g);var A=F.list||[],C=F.type||"list",S=F.clickHandler||_.EMPTY_FN,B=v.default('<ul class="'+(C==="list"?"w-e-list":"w-e-block")+'"></ul>');(0,c.default)(A).call(A,function(M){var N=M.$elem,V=M.value,w=v.default('<li class="w-e-item"></li>');N&&(w.append(N),B.append(w),w.on("click",function(D){S(V),D.stopPropagation(),y.hideTimeoutId=(0,p.default)(function(){y.hide()})}))}),h.append(B),h.on("mouseleave",function(){y.hideTimeoutId=(0,p.default)(function(){y.hide()})}),this.$container=h,this.rendered=!1,this._show=!1}return k.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var b=this.menu,F=b.$elem,y=this.$container;if(!this._show){if(this.rendered)y.show();else{var h=F.getBoundingClientRect().height||0,g=this.conf.width||100;y.css("margin-top",h+"px").css("width",g+"px"),F.append(y),this.rendered=!0}this._show=!0}},k.prototype.hide=function(){var b=this.$container;!this._show||(b.hide(),this._show=!1)},(0,f.default)(k.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),k}();i.default=x},function(o,i,n){var l=n(0),f=l(n(92)),c=l(n(1)),p=l(n(4));(0,c.default)(i,"__esModule",{value:!0});var m=n(6);function v(_,x){var k=new XMLHttpRequest;if(k.open("POST",_),k.timeout=x.timeout||10*1e3,k.ontimeout=function(){console.error("wangEditor - 请求超时"),x.onTimeout&&x.onTimeout(k)},k.upload&&(k.upload.onprogress=function(F){var y=F.loaded/F.total;x.onProgress&&x.onProgress(y,F)}),x.headers&&(0,p.default)(m).call(m,x.headers,function(F,y){k.setRequestHeader(F,y)}),k.withCredentials=!!x.withCredentials,x.beforeSend){var b=x.beforeSend(k);if(b&&(0,f.default)(b)==="object"&&b.prevent)return b.msg}return k.onreadystatechange=function(){if(k.readyState===4){var F=k.status;if(!(F<200)&&!(F>=300&&F<400)){if(F>=400){console.error("wangEditor - XHR 报错,状态码 "+F),x.onError&&x.onError(k);return}var y=k.responseText,h;if((0,f.default)(y)!=="object")try{h=JSON.parse(y)}catch{console.error("wangEditor - 返回结果不是 JSON 格式",y),x.onFail&&x.onFail(k,y);return}else h=y;x.onSuccess(k,h)}}},k.send(x.formData||null),k}i.default=v},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(342)),p=l(n(46));(0,f.default)(i,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(3)),_=function(){function x(k){this.editor=k,this.$textContainer=k.$textContainerElem,this.$bar=v.default('<div class="w-e-progress"></div>'),this.isShow=!1,this.time=0,this.timeoutId=0}return x.prototype.show=function(k){var b=this;if(!this.isShow){this.isShow=!0;var F=this.$bar,y=this.$textContainer;y.append(F),(0,c.default)()-this.time>100&&k<=1&&(F.css("width",k*100+"%"),this.time=(0,c.default)());var h=this.timeoutId;h&&clearTimeout(h),this.timeoutId=(0,p.default)(function(){b.hide()},500)}},x.prototype.hide=function(){var k=this.$bar;k.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},x}();i.default=_},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0}),i.ListType=void 0;var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(24)),v=n(47),_=c.__importStar(n(371)),x;(function(b){b.OrderedList="OL",b.UnorderedList="UL"})(x=i.ListType||(i.ListType={}));var k=function(b){c.__extends(F,b);function F(y){var h=this,g=p.default(`<div class="w-e-menu" data-title="序列">
- <i class="w-e-icon-list2"></i>
- </div>`),A={width:130,title:"序列",type:"list",list:[{$elem:p.default(`
- <p>
- <i class="w-e-icon-list2 w-e-drop-list-item"></i>
- `+y.i18next.t("menus.dropListMenu.list.无序列表")+`
- <p>`),value:x.UnorderedList},{$elem:p.default(`<p>
- <i class="w-e-icon-list-numbered w-e-drop-list-item"></i>
- `+y.i18next.t("menus.dropListMenu.list.有序列表")+`
- <p>`),value:x.OrderedList}],clickHandler:function(C){h.command(C)}};return h=b.call(this,g,y,A)||this,h}return F.prototype.command=function(y){var h=this.editor,g=h.selection.getSelectionContainerElem();g!==void 0&&(this.handleSelectionRangeNodes(y),this.tryChangeActive())},F.prototype.validator=function(y,h,g){return!(!y.length||!h.length||g.equal(y)||g.equal(h))},F.prototype.handleSelectionRangeNodes=function(y){var h=this.editor,g=h.selection,A=y.toLowerCase(),C=g.getSelectionContainerElem(),S=g.getSelectionStartElem().getNodeTop(h),B=g.getSelectionEndElem().getNodeTop(h);if(this.validator(S,B,h.$textElem)){var M=g.getRange(),N=M?.collapsed;h.$textElem.equal(C)||(C=C.getNodeTop(h));var V={editor:h,listType:y,listTarget:A,$selectionElem:C,$startElem:S,$endElem:B},w;this.isOrderElem(C)?w=_.ClassType.Wrap:this.isOrderElem(S)&&this.isOrderElem(B)?w=_.ClassType.Join:this.isOrderElem(S)?w=_.ClassType.StartJoin:this.isOrderElem(B)?w=_.ClassType.EndJoin:w=_.ClassType.Other;var D=new _.default(_.createListHandle(w,V,M));v.updateRange(h,D.getSelectionRangeElem(),!!N)}},F.prototype.isOrderElem=function(y){var h=y.getNodeName();return h===x.OrderedList||h===x.UnorderedList},F.prototype.tryChangeActive=function(){},F}(m.default);i.default=k},function(o,i,n){o.exports=n(395)},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});function c(p){var m=p.selection.getSelectionContainerElem();return m!=null&&m.length?!!(m.getNodeName()=="CODE"||m.getNodeName()=="PRE"||m.parent().getNodeName()=="CODE"||m.parent().getNodeName()=="PRE"||/hljs/.test(m.parent().attr("class"))):!1}i.default=c},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(29));(0,f.default)(i,"__esModule",{value:!0}),i.todo=void 0;var p=n(2),m=p.__importDefault(n(3)),v=function(){function x(k){var b;this.template='<ul class="w-e-todo"><li><span contenteditable="false"><input type="checkbox"></span></li></ul>',this.checked=!1,this.$todo=m.default(this.template),this.$child=(b=k?.childNodes())===null||b===void 0?void 0:b.clone(!0)}return x.prototype.init=function(){var k=this.$child,b=this.getInputContainer();k&&k.insertAfter(b)},x.prototype.getInput=function(){var k=this.$todo,b=(0,c.default)(k).call(k,"input");return b},x.prototype.getInputContainer=function(){var k=this.getInput().parent();return k},x.prototype.getTodo=function(){return this.$todo},x}();i.todo=v;function _(x){var k=new v(x);return k.init(),k}i.default=_},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2);n(146),n(148),n(152),n(154),n(156),n(158),n(160);var p=c.__importDefault(n(87));c.__exportStar(n(442),i),i.default=p.default},function(o,i,n){var l=n(143);o.exports=l},function(o,i,n){n(144);var l=n(9),f=l.Object,c=o.exports=function(p,m,v){return f.defineProperty(p,m,v)};f.defineProperty.sham&&(c.sham=!0)},function(o,i,n){var l=n(5),f=n(14),c=n(18);l({target:"Object",stat:!0,forced:!f,sham:!f},{defineProperty:c.f})},function(o,i){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch{(typeof window>"u"?"undefined":Yt(window))==="object"&&(n=window)}o.exports=n},function(o,i,n){var l=n(20),f=n(147);f=f.__esModule?f.default:f,typeof f=="string"&&(f=[[o.i,f,""]]);var c={};c.insert="head",c.singleton=!1,l(f,c),o.exports=f.locals||{}},function(o,i,n){var l=n(21);i=l(!1),i.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;
- /*表情菜单样式*/
- /*分割线样式*/
- }
- .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=i},function(o,i,n){var l=n(20),f=n(149);f=f.__esModule?f.default:f,typeof f=="string"&&(f=[[o.i,f,""]]);var c={};c.insert="head",c.singleton=!1,l(f,c),o.exports=f.locals||{}},function(o,i,n){var l=n(21),f=n(150),c=n(151);i=l(!1);var p=f(c);i.push([o.i,`@font-face {
- font-family: 'w-e-icon';
- src: url(`+p+`) 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=i},function(o,i,n){o.exports=function(l,f){return f||(f={}),l=l&&l.__esModule?l.default:l,typeof l!="string"?l:(/^['"].*['"]$/.test(l)&&(l=l.slice(1,-1)),f.hash&&(l+=f.hash),/["'() \t\n]/.test(l)||f.needQuotes?'"'.concat(l.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):l)}},function(o,i,n){n.r(i),i.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,i,n){var l=n(20),f=n(153);f=f.__esModule?f.default:f,typeof f=="string"&&(f=[[o.i,f,""]]);var c={};c.insert="head",c.singleton=!1,l(f,c),o.exports=f.locals||{}},function(o,i,n){var l=n(21);i=l(!1),i.push([o.i,`.w-e-toolbar {
- display: flex;
- padding: 0 6px;
- flex-wrap: wrap;
- position: relative;
- /* 单个菜单 */
- }
- .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=i},function(o,i,n){var l=n(20),f=n(155);f=f.__esModule?f.default:f,typeof f=="string"&&(f=[[o.i,f,""]]);var c={};c.insert="head",c.singleton=!1,l(f,c),o.exports=f.locals||{}},function(o,i,n){var l=n(21);i=l(!1),i.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=i},function(o,i,n){var l=n(20),f=n(157);f=f.__esModule?f.default:f,typeof f=="string"&&(f=[[o.i,f,""]]);var c={};c.insert="head",c.singleton=!1,l(f,c),o.exports=f.locals||{}},function(o,i,n){var l=n(21);i=l(!1),i.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;
- /* 为 emotion panel 定制的样式 */
- /* 上传图片、上传视频的 panel 定制样式 */
- }
- .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;
- /* 输入框的样式 */
- /* 按钮的样式 */
- }
- .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=i},function(o,i,n){var l=n(20),f=n(159);f=f.__esModule?f.default:f,typeof f=="string"&&(f=[[o.i,f,""]]);var c={};c.insert="head",c.singleton=!1,l(f,c),o.exports=f.locals||{}},function(o,i,n){var l=n(21);i=l(!1),i.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=i},function(o,i,n){var l=n(0),f=l(n(161));Element.prototype.matches||(Element.prototype.matches=function(c){var p=this.ownerDocument.querySelectorAll(c),m=p.length;for(m;m>=0&&p.item(m)!==this;m--);return m>-1}),f.default||(window.Promise=f.default)},function(o,i,n){o.exports=n(162)},function(o,i,n){var l=n(163);o.exports=l},function(o,i,n){n(61),n(50),n(54),n(175),n(178),n(179);var l=n(9);o.exports=l.Promise},function(o,i,n){var l=n(62),f=n(49),c=function(p){return function(m,v){var _=String(f(m)),x=l(v),k=_.length,b,F;return x<0||x>=k?p?"":void 0:(b=_.charCodeAt(x),b<55296||b>56319||x+1===k||(F=_.charCodeAt(x+1))<56320||F>57343?p?_.charAt(x):b:p?_.slice(x,x+2):(b-55296<<10)+(F-56320)+65536)}};o.exports={codeAt:c(!1),charAt:c(!0)}},function(o,i,n){var l=n(8),f=n(102),c=l.WeakMap;o.exports=typeof c=="function"&&/native code/.test(f(c))},function(o,i,n){var l=n(8),f=n(19);o.exports=function(c,p){try{f(l,c,p)}catch{l[c]=p}return p}},function(o,i,n){var l=n(104).IteratorPrototype,f=n(77),c=n(48),p=n(37),m=n(44),v=function(){return this};o.exports=function(_,x,k){var b=x+" Iterator";return _.prototype=f(l,{next:c(1,k)}),p(_,b,!1,!0),m[b]=v,_}},function(o,i,n){var l=n(11);o.exports=!l(function(){function f(){}return f.prototype.constructor=null,Object.getPrototypeOf(new f)!==f.prototype})},function(o,i,n){var l=n(14),f=n(18),c=n(25),p=n(52);o.exports=l?Object.defineProperties:function(m,v){c(m);for(var _=p(v),x=_.length,k=0,b;x>k;)f.f(m,b=_[k++],v[b]);return m}},function(o,i,n){var l=n(81),f=n(65);o.exports=l?{}.toString:function(){return"[object "+f(this)+"]"}},function(o,i,n){var l=n(25),f=n(172);o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,p={},m;try{m=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,m.call(p,[]),c=p instanceof Array}catch{}return function(v,_){return l(v),f(_),c?m.call(v,_):v.__proto__=_,v}}():void 0)},function(o,i,n){var l=n(13);o.exports=function(f){if(!l(f)&&f!==null)throw TypeError("Can't set "+String(f)+" as a prototype");return f}},function(o,i,n){var l=n(30),f=n(82),c=n(44),p=n(42),m=n(75),v="Array Iterator",_=p.set,x=p.getterFor(v);o.exports=m(Array,"Array",function(k,b){_(this,{type:v,target:l(k),index:0,kind:b})},function(){var k=x(this),b=k.target,F=k.kind,y=k.index++;return!b||y>=b.length?(k.target=void 0,{value:void 0,done:!0}):F=="keys"?{value:y,done:!1}:F=="values"?{value:b[y],done:!1}:{value:[y,b[y]],done:!1}},"values"),c.Arguments=c.Array,f("keys"),f("values"),f("entries")},function(o,i){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,i,n){var l=n(5),f=n(43),c=n(8),p=n(36),m=n(109),v=n(53),_=n(110),x=n(37),k=n(111),b=n(13),F=n(41),y=n(83),h=n(34),g=n(102),A=n(66),C=n(115),S=n(116),B=n(117).set,M=n(176),N=n(119),V=n(177),w=n(85),D=n(120),I=n(42),j=n(101),R=n(10),O=n(86),X=R("species"),U="Promise",Z=I.get,L=I.set,Q=I.getterFor(U),W=m,G=c.TypeError,te=c.document,le=c.process,ye=p("fetch"),fe=w.f,oe=fe,ce=h(le)=="process",se=!!(te&&te.createEvent&&c.dispatchEvent),be="unhandledrejection",we="rejectionhandled",Te=0,$e=1,ot=2,rt=1,At=2,xt,Le,_t,fn,zt=j(U,function(){var Re=g(W)!==String(W);if(!Re&&(O===66||!ce&&typeof PromiseRejectionEvent!="function")||f&&!W.prototype.finally)return!0;if(O>=51&&/native code/.test(W))return!1;var Se=W.resolve(1),He=function(xe){xe(function(){},function(){})},Ue=Se.constructor={};return Ue[X]=He,!(Se.then(function(){})instanceof He)}),mr=zt||!C(function(Re){W.all(Re).catch(function(){})}),zn=function(Re){var Se;return b(Re)&&typeof(Se=Re.then)=="function"?Se:!1},_n=function(Re,Se,He){if(!Se.notified){Se.notified=!0;var Ue=Se.reactions;M(function(){for(var xe=Se.value,he=Se.state==$e,Ve=0;Ue.length>Ve;){var Ie=Ue[Ve++],We=he?Ie.ok:Ie.fail,ut=Ie.resolve,An=Ie.reject,gt=Ie.domain,bt,St,Hn;try{We?(he||(Se.rejection===At&&kn(Re,Se),Se.rejection=rt),We===!0?bt=xe:(gt&>.enter(),bt=We(xe),gt&&(gt.exit(),Hn=!0)),bt===Ie.promise?An(G("Promise-chain cycle")):(St=zn(bt))?St.call(bt,ut,An):ut(bt)):An(xe)}catch(Lr){gt&&!Hn&>.exit(),An(Lr)}}Se.reactions=[],Se.notified=!1,He&&!Se.rejection&&Un(Re,Se)})}},yn=function(Re,Se,He){var Ue,xe;se?(Ue=te.createEvent("Event"),Ue.promise=Se,Ue.reason=He,Ue.initEvent(Re,!1,!0),c.dispatchEvent(Ue)):Ue={promise:Se,reason:He},(xe=c["on"+Re])?xe(Ue):Re===be&&V("Unhandled promise rejection",He)},Un=function(Re,Se){B.call(c,function(){var He=Se.value,Ue=bn(Se),xe;if(Ue&&(xe=D(function(){ce?le.emit("unhandledRejection",He,Re):yn(be,Re,He)}),Se.rejection=ce||bn(Se)?At:rt,xe.error))throw xe.value})},bn=function(Re){return Re.rejection!==rt&&!Re.parent},kn=function(Re,Se){B.call(c,function(){ce?le.emit("rejectionHandled",Re):yn(we,Re,Se.value)})},Ot=function(Re,Se,He,Ue){return function(xe){Re(Se,He,xe,Ue)}},ft=function(Re,Se,He,Ue){Se.done||(Se.done=!0,Ue&&(Se=Ue),Se.value=He,Se.state=ot,_n(Re,Se,!0))},pn=function Re(Se,He,Ue,xe){if(!He.done){He.done=!0,xe&&(He=xe);try{if(Se===Ue)throw G("Promise can't be resolved itself");var he=zn(Ue);he?M(function(){var Ve={done:!1};try{he.call(Ue,Ot(Re,Se,Ve,He),Ot(ft,Se,Ve,He))}catch(Ie){ft(Se,Ve,Ie,He)}}):(He.value=Ue,He.state=$e,_n(Se,He,!1))}catch(Ve){ft(Se,{done:!1},Ve,He)}}};zt&&(W=function(Re){y(this,W,U),F(Re),xt.call(this);var Se=Z(this);try{Re(Ot(pn,this,Se),Ot(ft,this,Se))}catch(He){ft(this,Se,He)}},xt=function(Re){L(this,{type:U,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Te,value:void 0})},xt.prototype=_(W.prototype,{then:function(Re,Se){var He=Q(this),Ue=fe(S(this,W));return Ue.ok=typeof Re=="function"?Re:!0,Ue.fail=typeof Se=="function"&&Se,Ue.domain=ce?le.domain:void 0,He.parent=!0,He.reactions.push(Ue),He.state!=Te&&_n(this,He,!1),Ue.promise},catch:function(Re){return this.then(void 0,Re)}}),Le=function(){var Re=new xt,Se=Z(Re);this.promise=Re,this.resolve=Ot(pn,Re,Se),this.reject=Ot(ft,Re,Se)},w.f=fe=function(Re){return Re===W||Re===_t?new Le(Re):oe(Re)},!f&&typeof m=="function"&&(fn=m.prototype.then,v(m.prototype,"then",function(Re,Se){var He=this;return new W(function(Ue,xe){fn.call(He,Ue,xe)}).then(Re,Se)},{unsafe:!0}),typeof ye=="function"&&l({global:!0,enumerable:!0,forced:!0},{fetch:function(Re){return N(W,ye.apply(c,arguments))}}))),l({global:!0,wrap:!0,forced:zt},{Promise:W}),x(W,U,!1,!0),k(U),_t=p(U),l({target:U,stat:!0,forced:zt},{reject:function(Re){var Se=fe(this);return Se.reject.call(void 0,Re),Se.promise}}),l({target:U,stat:!0,forced:f||zt},{resolve:function(Re){return N(f&&this===_t?W:this,Re)}}),l({target:U,stat:!0,forced:mr},{all:function(Re){var Se=this,He=fe(Se),Ue=He.resolve,xe=He.reject,he=D(function(){var Ve=F(Se.resolve),Ie=[],We=0,ut=1;A(Re,function(An){var gt=We++,bt=!1;Ie.push(void 0),ut++,Ve.call(Se,An).then(function(St){bt||(bt=!0,Ie[gt]=St,--ut||Ue(Ie))},xe)}),--ut||Ue(Ie)});return he.error&&xe(he.value),He.promise},race:function(Re){var Se=this,He=fe(Se),Ue=He.reject,xe=D(function(){var he=F(Se.resolve);A(Re,function(Ve){he.call(Se,Ve).then(He.resolve,Ue)})});return xe.error&&Ue(xe.value),He.promise}})},function(o,i,n){var l=n(8),f=n(71).f,c=n(34),p=n(117).set,m=n(118),v=l.MutationObserver||l.WebKitMutationObserver,_=l.process,x=l.Promise,k=c(_)=="process",b=f(l,"queueMicrotask"),F=b&&b.value,y,h,g,A,C,S,B,M;F||(y=function(){var N,V;for(k&&(N=_.domain)&&N.exit();h;){V=h.fn,h=h.next;try{V()}catch(w){throw h?A():g=void 0,w}}g=void 0,N&&N.enter()},k?A=function(){_.nextTick(y)}:v&&!m?(C=!0,S=document.createTextNode(""),new v(y).observe(S,{characterData:!0}),A=function(){S.data=C=!C}):x&&x.resolve?(B=x.resolve(void 0),M=B.then,A=function(){M.call(B,y)}):A=function(){p.call(l,y)}),o.exports=F||function(N){var V={fn:N,next:void 0};g&&(g.next=V),h||(h=V,A()),g=V}},function(o,i,n){var l=n(8);o.exports=function(f,c){var p=l.console;p&&p.error&&(arguments.length===1?p.error(f):p.error(f,c))}},function(o,i,n){var l=n(5),f=n(41),c=n(85),p=n(120),m=n(66);l({target:"Promise",stat:!0},{allSettled:function(v){var _=this,x=c.f(_),k=x.resolve,b=x.reject,F=p(function(){var y=f(_.resolve),h=[],g=0,A=1;m(v,function(C){var S=g++,B=!1;h.push(void 0),A++,y.call(_,C).then(function(M){B||(B=!0,h[S]={status:"fulfilled",value:M},--A||k(h))},function(M){B||(B=!0,h[S]={status:"rejected",reason:M},--A||k(h))})}),--A||k(h)});return F.error&&b(F.value),x.promise}})},function(o,i,n){var l=n(5),f=n(43),c=n(109),p=n(11),m=n(36),v=n(116),_=n(119),x=n(53),k=!!c&&p(function(){c.prototype.finally.call({then:function(){}},function(){})});l({target:"Promise",proto:!0,real:!0,forced:k},{finally:function(b){var F=v(this,m("Promise")),y=typeof b=="function";return this.then(y?function(h){return _(F,b()).then(function(){return h})}:b,y?function(h){return _(F,b()).then(function(){throw h})}:b)}}),!f&&typeof c=="function"&&!c.prototype.finally&&x(c.prototype,"finally",m("Promise").prototype.finally)},function(o,i,n){n(54);var l=n(181),f=n(65),c=Array.prototype,p={DOMTokenList:!0,NodeList:!0};o.exports=function(m){var v=m.forEach;return m===c||m instanceof Array&&v===c.forEach||p.hasOwnProperty(f(m))?l:v}},function(o,i,n){var l=n(182);o.exports=l},function(o,i,n){n(183);var l=n(15);o.exports=l("Array").forEach},function(o,i,n){var l=n(5),f=n(184);l({target:"Array",proto:!0,forced:[].forEach!=f},{forEach:f})},function(o,i,n){var l=n(32).forEach,f=n(67),c=n(22),p=f("forEach"),m=c("forEach");o.exports=!p||!m?function(v){return l(this,v,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(o,i,n){var l=n(186);o.exports=l},function(o,i,n){n(187);var l=n(9);o.exports=l.Array.isArray},function(o,i,n){var l=n(5),f=n(55);l({target:"Array",stat:!0},{isArray:f})},function(o,i,n){var l=n(189);o.exports=l},function(o,i,n){var l=n(190),f=Array.prototype;o.exports=function(c){var p=c.map;return c===f||c instanceof Array&&p===f.map?l:p}},function(o,i,n){n(191);var l=n(15);o.exports=l("Array").map},function(o,i,n){var l=n(5),f=n(32).map,c=n(56),p=n(22),m=c("map"),v=p("map");l({target:"Array",proto:!0,forced:!m||!v},{map:function(_){return f(this,_,arguments.length>1?arguments[1]:void 0)}})},function(o,i,n){var l=n(193);o.exports=l},function(o,i,n){var l=n(194),f=String.prototype;o.exports=function(c){var p=c.trim;return typeof c=="string"||c===f||c instanceof String&&p===f.trim?l:p}},function(o,i,n){n(195);var l=n(15);o.exports=l("String").trim},function(o,i,n){var l=n(5),f=n(90).trim,c=n(196);l({target:"String",proto:!0,forced:c("trim")},{trim:function(){return f(this)}})},function(o,i,n){var l=n(11),f=n(68),c="
";o.exports=function(p){return l(function(){return!!f[p]()||c[p]()!=c||f[p].name!==p})}},function(o,i,n){var l=n(198);o.exports=l},function(o,i,n){n(199),n(61),n(50),n(54);var l=n(9);o.exports=l.Map},function(o,i,n){var l=n(122),f=n(124);o.exports=l("Map",function(c){return function(){return c(this,arguments.length?arguments[0]:void 0)}},f)},function(o,i,n){var l=n(11);o.exports=!l(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(o,i,n){var l=n(202);o.exports=l},function(o,i,n){var l=n(203),f=Array.prototype;o.exports=function(c){var p=c.indexOf;return c===f||c instanceof Array&&p===f.indexOf?l:p}},function(o,i,n){n(204);var l=n(15);o.exports=l("Array").indexOf},function(o,i,n){var l=n(5),f=n(78).indexOf,c=n(67),p=n(22),m=[].indexOf,v=!!m&&1/[1].indexOf(1,-0)<0,_=c("indexOf"),x=p("indexOf",{ACCESSORS:!0,1:0});l({target:"Array",proto:!0,forced:v||!_||!x},{indexOf:function(k){return v?m.apply(this,arguments)||0:f(this,k,arguments.length>1?arguments[1]:void 0)}})},function(o,i,n){var l=n(206);o.exports=l},function(o,i,n){var l=n(207),f=Array.prototype;o.exports=function(c){var p=c.splice;return c===f||c instanceof Array&&p===f.splice?l:p}},function(o,i,n){n(208);var l=n(15);o.exports=l("Array").splice},function(o,i,n){var l=n(5),f=n(79),c=n(62),p=n(35),m=n(31),v=n(88),_=n(69),x=n(56),k=n(22),b=x("splice"),F=k("splice",{ACCESSORS:!0,0:0,1:2}),y=Math.max,h=Math.min,g=9007199254740991,A="Maximum allowed length exceeded";l({target:"Array",proto:!0,forced:!b||!F},{splice:function(C,S){var B=m(this),M=p(B.length),N=f(C,M),V=arguments.length,w,D,I,j,R,O;if(V===0?w=D=0:V===1?(w=0,D=M-N):(w=V-2,D=h(y(c(S),0),M-N)),M+w-D>g)throw TypeError(A);for(I=v(B,D),j=0;j<D;j++)R=N+j,R in B&&_(I,j,B[R]);if(I.length=D,w<D){for(j=N;j<M-D;j++)R=j+D,O=j+w,R in B?B[O]=B[R]:delete B[O];for(j=M;j>M-D+w;j--)delete B[j-1]}else if(w>D)for(j=M-D;j>N;j--)R=j+D-1,O=j+w-1,R in B?B[O]=B[R]:delete B[O];for(j=0;j<w;j++)B[j+N]=arguments[j+2];return B.length=M-D+w,I}})},function(o,i,n){var l=n(210);o.exports=l},function(o,i,n){var l=n(211),f=Array.prototype;o.exports=function(c){var p=c.filter;return c===f||c instanceof Array&&p===f.filter?l:p}},function(o,i,n){n(212);var l=n(15);o.exports=l("Array").filter},function(o,i,n){var l=n(5),f=n(32).filter,c=n(56),p=n(22),m=c("filter"),v=p("filter");l({target:"Array",proto:!0,forced:!m||!v},{filter:function(_){return f(this,_,arguments.length>1?arguments[1]:void 0)}})},function(o,i,n){var l=n(214);o.exports=l},function(o,i,n){var l=n(215),f=n(217),c=Array.prototype,p=String.prototype;o.exports=function(m){var v=m.includes;return m===c||m instanceof Array&&v===c.includes?l:typeof m=="string"||m===p||m instanceof String&&v===p.includes?f:v}},function(o,i,n){n(216);var l=n(15);o.exports=l("Array").includes},function(o,i,n){var l=n(5),f=n(78).includes,c=n(82),p=n(22),m=p("indexOf",{ACCESSORS:!0,1:0});l({target:"Array",proto:!0,forced:!m},{includes:function(v){return f(this,v,arguments.length>1?arguments[1]:void 0)}}),c("includes")},function(o,i,n){n(218);var l=n(15);o.exports=l("String").includes},function(o,i,n){var l=n(5),f=n(219),c=n(49),p=n(221);l({target:"String",proto:!0,forced:!p("includes")},{includes:function(m){return!!~String(c(this)).indexOf(f(m),arguments.length>1?arguments[1]:void 0)}})},function(o,i,n){var l=n(220);o.exports=function(f){if(l(f))throw TypeError("The method doesn't accept regular expressions");return f}},function(o,i,n){var l=n(13),f=n(34),c=n(10),p=c("match");o.exports=function(m){var v;return l(m)&&((v=m[p])!==void 0?!!v:f(m)=="RegExp")}},function(o,i,n){var l=n(10),f=l("match");o.exports=function(c){var p=/./;try{"/./"[c](p)}catch{try{return p[f]=!1,"/./"[c](p)}catch{}}return!1}},function(o,i,n){var l=n(223);o.exports=l},function(o,i,n){var l=n(224),f=Function.prototype;o.exports=function(c){var p=c.bind;return c===f||c instanceof Function&&p===f.bind?l:p}},function(o,i,n){n(225);var l=n(15);o.exports=l("Function").bind},function(o,i,n){var l=n(5),f=n(226);l({target:"Function",proto:!0},{bind:f})},function(o,i,n){var l=n(41),f=n(13),c=[].slice,p={},m=function(v,_,x){if(!(_ in p)){for(var k=[],b=0;b<_;b++)k[b]="a["+b+"]";p[_]=Function("C,a","return new C("+k.join(",")+")")}return p[_](v,x)};o.exports=Function.bind||function(v){var _=l(this),x=c.call(arguments,1),k=function(){var b=x.concat(c.call(arguments));return this instanceof k?m(_,b.length,b):_.apply(v,b)};return f(_.prototype)&&(k.prototype=_.prototype),k}},function(o,i,n){o.exports=n(228)},function(o,i,n){var l=n(229);o.exports=l},function(o,i,n){n(125),n(50),n(54);var l=n(93);o.exports=l.f("iterator")},function(o,i,n){o.exports=n(231)},function(o,i,n){var l=n(232);n(251),n(252),n(253),n(254),n(255),o.exports=l},function(o,i,n){n(233),n(61),n(234),n(236),n(237),n(238),n(239),n(125),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250);var l=n(9);o.exports=l.Symbol},function(o,i,n){var l=n(5),f=n(11),c=n(55),p=n(13),m=n(31),v=n(35),_=n(69),x=n(88),k=n(56),b=n(10),F=n(86),y=b("isConcatSpreadable"),h=9007199254740991,g="Maximum allowed index exceeded",A=F>=51||!f(function(){var M=[];return M[y]=!1,M.concat()[0]!==M}),C=k("concat"),S=function(M){if(!p(M))return!1;var N=M[y];return N!==void 0?!!N:c(M)},B=!A||!C;l({target:"Array",proto:!0,forced:B},{concat:function(M){var N=m(this),V=x(N,0),w=0,D,I,j,R,O;for(D=-1,j=arguments.length;D<j;D++)if(O=D===-1?N:arguments[D],S(O)){if(R=v(O.length),w+R>h)throw TypeError(g);for(I=0;I<R;I++,w++)I in O&&_(V,w,O[I])}else{if(w>=h)throw TypeError(g);_(V,w++,O)}return V.length=w,V}})},function(o,i,n){var l=n(5),f=n(8),c=n(36),p=n(43),m=n(14),v=n(76),_=n(106),x=n(11),k=n(16),b=n(55),F=n(13),y=n(25),h=n(31),g=n(30),A=n(60),C=n(48),S=n(77),B=n(52),M=n(126),N=n(235),V=n(127),w=n(71),D=n(18),I=n(59),j=n(19),R=n(53),O=n(74),X=n(63),U=n(51),Z=n(64),L=n(10),Q=n(93),W=n(12),G=n(37),te=n(42),le=n(32).forEach,ye=X("hidden"),fe="Symbol",oe="prototype",ce=L("toPrimitive"),se=te.set,be=te.getterFor(fe),we=Object[oe],Te=f.Symbol,$e=c("JSON","stringify"),ot=w.f,rt=D.f,At=N.f,xt=I.f,Le=O("symbols"),_t=O("op-symbols"),fn=O("string-to-symbol-registry"),zt=O("symbol-to-string-registry"),mr=O("wks"),zn=f.QObject,_n=!zn||!zn[oe]||!zn[oe].findChild,yn=m&&x(function(){return S(rt({},"a",{get:function(){return rt(this,"a",{value:7}).a}})).a!=7})?function(xe,he,Ve){var Ie=ot(we,he);Ie&&delete we[he],rt(xe,he,Ve),Ie&&xe!==we&&rt(we,he,Ie)}:rt,Un=function(xe,he){var Ve=Le[xe]=S(Te[oe]);return se(Ve,{type:fe,tag:xe,description:he}),m||(Ve.description=he),Ve},bn=_?function(xe){return Yt(xe)=="symbol"}:function(xe){return Object(xe)instanceof Te},kn=function(xe,he,Ve){xe===we&&kn(_t,he,Ve),y(xe);var Ie=A(he,!0);return y(Ve),k(Le,Ie)?(Ve.enumerable?(k(xe,ye)&&xe[ye][Ie]&&(xe[ye][Ie]=!1),Ve=S(Ve,{enumerable:C(0,!1)})):(k(xe,ye)||rt(xe,ye,C(1,{})),xe[ye][Ie]=!0),yn(xe,Ie,Ve)):rt(xe,Ie,Ve)},Ot=function(xe,he){y(xe);var Ve=g(he),Ie=B(Ve).concat(He(Ve));return le(Ie,function(We){(!m||pn.call(Ve,We))&&kn(xe,We,Ve[We])}),xe},ft=function(xe,he){return he===void 0?S(xe):Ot(S(xe),he)},pn=function(xe){var he=A(xe,!0),Ve=xt.call(this,he);return this===we&&k(Le,he)&&!k(_t,he)?!1:Ve||!k(this,he)||!k(Le,he)||k(this,ye)&&this[ye][he]?Ve:!0},Re=function(xe,he){var Ve=g(xe),Ie=A(he,!0);if(!(Ve===we&&k(Le,Ie)&&!k(_t,Ie))){var We=ot(Ve,Ie);return We&&k(Le,Ie)&&!(k(Ve,ye)&&Ve[ye][Ie])&&(We.enumerable=!0),We}},Se=function(xe){var he=At(g(xe)),Ve=[];return le(he,function(Ie){!k(Le,Ie)&&!k(U,Ie)&&Ve.push(Ie)}),Ve},He=function(xe){var he=xe===we,Ve=At(he?_t:g(xe)),Ie=[];return le(Ve,function(We){k(Le,We)&&(!he||k(we,We))&&Ie.push(Le[We])}),Ie};if(v||(Te=function(){if(this instanceof Te)throw TypeError("Symbol is not a constructor");var xe=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),he=Z(xe),Ve=function Ie(We){this===we&&Ie.call(_t,We),k(this,ye)&&k(this[ye],he)&&(this[ye][he]=!1),yn(this,he,C(1,We))};return m&&_n&&yn(we,he,{configurable:!0,set:Ve}),Un(he,xe)},R(Te[oe],"toString",function(){return be(this).tag}),R(Te,"withoutSetter",function(xe){return Un(Z(xe),xe)}),I.f=pn,D.f=kn,w.f=Re,M.f=N.f=Se,V.f=He,Q.f=function(xe){return Un(L(xe),xe)},m&&(rt(Te[oe],"description",{configurable:!0,get:function(){return be(this).description}}),p||R(we,"propertyIsEnumerable",pn,{unsafe:!0}))),l({global:!0,wrap:!0,forced:!v,sham:!v},{Symbol:Te}),le(B(mr),function(xe){W(xe)}),l({target:fe,stat:!0,forced:!v},{for:function(xe){var he=String(xe);if(k(fn,he))return fn[he];var Ve=Te(he);return fn[he]=Ve,zt[Ve]=he,Ve},keyFor:function(xe){if(!bn(xe))throw TypeError(xe+" is not a symbol");if(k(zt,xe))return zt[xe]},useSetter:function(){_n=!0},useSimple:function(){_n=!1}}),l({target:"Object",stat:!0,forced:!v,sham:!m},{create:ft,defineProperty:kn,defineProperties:Ot,getOwnPropertyDescriptor:Re}),l({target:"Object",stat:!0,forced:!v},{getOwnPropertyNames:Se,getOwnPropertySymbols:He}),l({target:"Object",stat:!0,forced:x(function(){V.f(1)})},{getOwnPropertySymbols:function(xe){return V.f(h(xe))}}),$e){var Ue=!v||x(function(){var xe=Te();return $e([xe])!="[null]"||$e({a:xe})!="{}"||$e(Object(xe))!="{}"});l({target:"JSON",stat:!0,forced:Ue},{stringify:function(xe,he,Ve){for(var Ie=[xe],We=1,ut;arguments.length>We;)Ie.push(arguments[We++]);if(ut=he,!(!F(he)&&xe===void 0||bn(xe)))return b(he)||(he=function(An,gt){if(typeof ut=="function"&&(gt=ut.call(this,An,gt)),!bn(gt))return gt}),Ie[1]=he,$e.apply(null,Ie)}})}Te[oe][ce]||j(Te[oe],ce,Te[oe].valueOf),G(Te,fe),U[ye]=!0},function(o,i,n){var l=n(30),f=n(126).f,c={}.toString,p=(typeof window>"u"?"undefined":Yt(window))=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(v){try{return f(v)}catch{return p.slice()}};o.exports.f=function(v){return p&&c.call(v)=="[object Window]"?m(v):f(l(v))}},function(o,i,n){var l=n(12);l("asyncIterator")},function(o,i){},function(o,i,n){var l=n(12);l("hasInstance")},function(o,i,n){var l=n(12);l("isConcatSpreadable")},function(o,i,n){var l=n(12);l("match")},function(o,i,n){var l=n(12);l("matchAll")},function(o,i,n){var l=n(12);l("replace")},function(o,i,n){var l=n(12);l("search")},function(o,i,n){var l=n(12);l("species")},function(o,i,n){var l=n(12);l("split")},function(o,i,n){var l=n(12);l("toPrimitive")},function(o,i,n){var l=n(12);l("toStringTag")},function(o,i,n){var l=n(12);l("unscopables")},function(o,i,n){var l=n(37);l(Math,"Math",!0)},function(o,i,n){var l=n(8),f=n(37);f(l.JSON,"JSON",!0)},function(o,i,n){var l=n(12);l("asyncDispose")},function(o,i,n){var l=n(12);l("dispose")},function(o,i,n){var l=n(12);l("observable")},function(o,i,n){var l=n(12);l("patternMatch")},function(o,i,n){var l=n(12);l("replaceAll")},function(o,i,n){o.exports=n(257)},function(o,i,n){var l=n(258);o.exports=l},function(o,i,n){n(259);var l=n(9);o.exports=l.parseInt},function(o,i,n){var l=n(5),f=n(260);l({global:!0,forced:parseInt!=f},{parseInt:f})},function(o,i,n){var l=n(8),f=n(90).trim,c=n(68),p=l.parseInt,m=/^[+-]?0[Xx]/,v=p(c+"08")!==8||p(c+"0x16")!==22;o.exports=v?function(_,x){var k=f(String(_));return p(k,x>>>0||(m.test(k)?16:10))}:p},function(o,i,n){var l=n(262);o.exports=l},function(o,i,n){var l=n(263),f=Array.prototype;o.exports=function(c){var p=c.slice;return c===f||c instanceof Array&&p===f.slice?l:p}},function(o,i,n){n(264);var l=n(15);o.exports=l("Array").slice},function(o,i,n){var l=n(5),f=n(13),c=n(55),p=n(79),m=n(35),v=n(30),_=n(69),x=n(10),k=n(56),b=n(22),F=k("slice"),y=b("slice",{ACCESSORS:!0,0:0,1:2}),h=x("species"),g=[].slice,A=Math.max;l({target:"Array",proto:!0,forced:!F||!y},{slice:function(C,S){var B=v(this),M=m(B.length),N=p(C,M),V=p(S===void 0?M:S,M),w,D,I;if(c(B)&&(w=B.constructor,typeof w=="function"&&(w===Array||c(w.prototype))?w=void 0:f(w)&&(w=w[h],w===null&&(w=void 0)),w===Array||w===void 0))return g.call(B,N,V);for(D=new(w===void 0?Array:w)(A(V-N,0)),I=0;N<V;N++,I++)N in B&&_(D,I,B[N]);return D.length=I,D}})},function(o,i,n){n(266);var l=n(9);o.exports=l.setTimeout},function(o,i,n){var l=n(5),f=n(8),c=n(84),p=[].slice,m=/MSIE .\./.test(c),v=function(_){return function(x,k){var b=arguments.length>2,F=b?p.call(arguments,2):void 0;return _(b?function(){(typeof x=="function"?x:Function(x)).apply(this,F)}:x,k)}};l({global:!0,bind:!0,forced:m},{setTimeout:v(f.setTimeout),setInterval:v(f.setInterval)})},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(128));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(272)),v=p.__importDefault(n(273)),_=p.__importDefault(n(129)),x=p.__importDefault(n(274)),k=p.__importDefault(n(275)),b=p.__importDefault(n(276)),F=p.__importDefault(n(130)),y=p.__importDefault(n(277)),h=p.__importDefault(n(278)),g=p.__importDefault(n(279)),A=(0,c.default)({},m.default,v.default,_.default,k.default,x.default,b.default,F.default,y.default,h.default,g.default,{linkCheck:function(C,S){return!0}});i.default=A},function(o,i,n){var l=n(269);o.exports=l},function(o,i,n){n(270);var l=n(9);o.exports=l.Object.assign},function(o,i,n){var l=n(5),f=n(271);l({target:"Object",stat:!0,forced:Object.assign!==f},{assign:f})},function(o,i,n){var l=n(14),f=n(11),c=n(52),p=n(127),m=n(59),v=n(31),_=n(72),x=Object.assign,k=Object.defineProperty;o.exports=!x||f(function(){if(l&&x({b:1},x(k({},"a",{enumerable:!0,get:function(){k(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var b={},F={},y=Symbol(),h="abcdefghijklmnopqrst";return b[y]=7,h.split("").forEach(function(g){F[g]=g}),x({},b)[y]!=7||c(x({},F)).join("")!=h})?function(b,F){for(var y=v(b),h=arguments.length,g=1,A=p.f,C=m.f;h>g;)for(var S=_(arguments[g++]),B=A?c(S).concat(A(S)):c(S),M=B.length,N=0,V;M>N;)V=B[N++],(!l||C.call(S,V))&&(y[V]=S[V]);return y}:x},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0}),i.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:["黑体","仿宋","楷体","标楷体","华文仿宋","华文楷体","宋体","微软雅黑","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:" ",emotions:[{title:"表情",type:"emoji",content:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣".split(/\s/)},{title:"手势",type:"emoji",content:"👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(/\s/)}],lineHeights:["1","1.15","1.6","2","2.5","3"],undoLimit:20,indentation:"2em",showMenuTooltips:!0,menuTooltipPosition:"up"}},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(7);function p(m,v,_){window.alert(m),_&&console.error("wangEditor: "+_)}i.default={onchangeTimeout:200,onchange:null,onfocus:c.EMPTY_FN,onblur:c.EMPTY_FN,onCatalogChange:null,customAlert:p}},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0}),i.default={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(c){return c}}},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0}),i.default={styleWithCSS:!1}},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(7);i.default={linkImgCheck:function(p,m,v){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,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0}),i.default={lang:"zh-CN",languages:{"zh-CN":{wangEditor:{重置:"重置",插入:"插入",默认:"默认",创建:"创建",修改:"修改",如:"如",请输入正文:"请输入正文",menus:{title:{标题:"标题",加粗:"加粗",字号:"字号",字体:"字体",斜体:"斜体",下划线:"下划线",删除线:"删除线",缩进:"缩进",行高:"行高",文字颜色:"文字颜色",背景色:"背景色",链接:"链接",序列:"序列",对齐:"对齐",引用:"引用",表情:"表情",图片:"图片",视频:"视频",表格:"表格",代码:"代码",分割线:"分割线",恢复:"恢复",撤销:"撤销",全屏:"全屏",取消全屏:"取消全屏",待办事项:"待办事项"},dropListMenu:{设置标题:"设置标题",背景颜色:"背景颜色",文字颜色:"文字颜色",设置字号:"设置字号",设置字体:"设置字体",设置缩进:"设置缩进",对齐方式:"对齐方式",设置行高:"设置行高",序列:"序列",head:{正文:"正文"},indent:{增加缩进:"增加缩进",减少缩进:"减少缩进"},justify:{靠左:"靠左",居中:"居中",靠右:"靠右",两端:"两端"},list:{无序列表:"无序列表",有序列表:"有序列表"}},panelMenus:{emoticon:{默认:"默认",新浪:"新浪",emoji:"emoji",手势:"手势"},image:{上传图片:"上传图片",网络图片:"网络图片",图片地址:"图片地址",图片文字说明:"图片文字说明",跳转链接:"跳转链接"},link:{链接:"链接",链接文字:"链接文字",取消链接:"取消链接",查看链接:"查看链接"},video:{插入视频:"插入视频",上传视频:"上传视频"},table:{行:"行",列:"列",的:"的",表格:"表格",添加行:"添加行",删除行:"删除行",添加列:"添加列",删除列:"删除列",设置表头:"设置表头",取消表头:"取消表头",插入表格:"插入表格",删除表格:"删除表格"},code:{删除代码:"删除代码",修改代码:"修改代码",插入代码:"插入代码"}}},validate:{张图片:"张图片",大于:"大于",图片链接:"图片链接",不是图片:"不是图片",返回结果:"返回结果",上传图片超时:"上传图片超时",上传图片错误:"上传图片错误",上传图片失败:"上传图片失败",插入图片错误:"插入图片错误",一次最多上传:"一次最多上传",下载链接失败:"下载链接失败",图片验证未通过:"图片验证未通过",服务器返回状态:"服务器返回状态",上传图片返回结果错误:"上传图片返回结果错误",请替换为支持的图片类型:"请替换为支持的图片类型",您插入的网络图片无法识别:"您插入的网络图片无法识别",您刚才插入的图片链接未通过编辑器校验:"您刚才插入的图片链接未通过编辑器校验",插入视频错误:"插入视频错误",视频链接:"视频链接",不是视频:"不是视频",视频验证未通过:"视频验证未通过",个视频:"个视频",上传视频超时:"上传视频超时",上传视频错误:"上传视频错误",上传视频失败:"上传视频失败",上传视频返回结果错误:"上传视频返回结果错误"}}},en:{wangEditor:{重置:"reset",插入:"insert",默认:"default",创建:"create",修改:"edit",如:"like",请输入正文:"please enter the text",menus:{title:{标题:"head",加粗:"bold",字号:"font size",字体:"font family",斜体:"italic",下划线:"underline",删除线:"strikethrough",缩进:"indent",行高:"line heihgt",文字颜色:"font color",背景色:"background",链接:"link",序列:"numbered list",对齐:"align",引用:"quote",表情:"emoticons",图片:"image",视频:"media",表格:"table",代码:"code",分割线:"split line",恢复:"redo",撤销:"undo",全屏:"fullscreen",取消全屏:"cancel fullscreen",待办事项:"todo"},dropListMenu:{设置标题:"title",背景颜色:"background",文字颜色:"font color",设置字号:"font size",设置字体:"font family",设置缩进:"indent",对齐方式:"align",设置行高:"line heihgt",序列:"list",head:{正文:"text"},indent:{增加缩进:"indent",减少缩进:"outdent"},justify:{靠左:"left",居中:"center",靠右:"right",两端:"justify"},list:{无序列表:"unordered",有序列表:"ordered"}},panelMenus:{emoticon:{表情:"emoji",手势:"gesture"},image:{上传图片:"upload image",网络图片:"network image",图片地址:"image link",图片文字说明:"image alt",跳转链接:"hyperlink"},link:{链接:"link",链接文字:"link text",取消链接:"unlink",查看链接:"view links"},video:{插入视频:"insert video",上传视频:"upload local video"},table:{行:"rows",列:"columns",的:" ",表格:"table",添加行:"insert row",删除行:"delete row",添加列:"insert column",删除列:"delete column",设置表头:"set header",取消表头:"cancel header",插入表格:"insert table",删除表格:"delete table"},code:{删除代码:"delete code",修改代码:"edit code",插入代码:"insert code"}}},validate:{张图片:"images",大于:"greater than",图片链接:"image link",不是图片:"is not image",返回结果:"return results",上传图片超时:"upload image timeout",上传图片错误:"upload image error",上传图片失败:"upload image failed",插入图片错误:"insert image error",一次最多上传:"once most at upload",下载链接失败:"download link failed",图片验证未通过:"image validate failed",服务器返回状态:"server return status",上传图片返回结果错误:"upload image return results error",请替换为支持的图片类型:"please replace with a supported image type",您插入的网络图片无法识别:"the network picture you inserted is not recognized",您刚才插入的图片链接未通过编辑器校验:"the image link you just inserted did not pass the editor verification",插入视频错误:"insert video error",视频链接:"video link",不是视频:"is not video",视频验证未通过:"video validate failed",个视频:"videos",上传视频超时:"upload video timeout",上传视频错误:"upload video error",上传视频失败:"upload video failed",上传视频返回结果错误:"upload video return results error"}}}}}},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(6);function p(){return!!(c.UA.isIE()||c.UA.isOldEdge)}i.default={compatibleMode:p,historyMaxSize:30}},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(7);i.default={onlineVideoCheck:function(p){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,i,n){var l=n(0),f=l(n(1)),c=l(n(17));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=n(6),_=n(7),x=function(){function k(b){this._currentRange=null,this.editor=b}return k.prototype.getRange=function(){return this._currentRange},k.prototype.saveRange=function(b){if(b){this._currentRange=b;return}var F=window.getSelection();if(F.rangeCount!==0){var y=F.getRangeAt(0),h=this.getSelectionContainerElem(y);if(h!=null&&h.length&&!(h.attr("contenteditable")==="false"||h.parentUntil("[contenteditable=false]"))){var g=this.editor,A=g.$textElem;if(A.isContain(h)){if(A.elems[0]===h.elems[0]){var C;if((0,c.default)(C=A.html()).call(C)===_.EMPTY_P){var S=A.children(),B=S?.last();g.selection.createRangeByElem(B,!0,!0),g.selection.restoreSelection()}}this._currentRange=y}}}},k.prototype.collapseRange=function(b){b===void 0&&(b=!1);var F=this._currentRange;F&&F.collapse(b)},k.prototype.getSelectionText=function(){var b=this._currentRange;return b?b.toString():""},k.prototype.getSelectionContainerElem=function(b){var F;F=b||this._currentRange;var y;if(F)return y=F.commonAncestorContainer,m.default(y.nodeType===1?y:y.parentNode)},k.prototype.getSelectionStartElem=function(b){var F;F=b||this._currentRange;var y;if(F)return y=F.startContainer,m.default(y.nodeType===1?y:y.parentNode)},k.prototype.getSelectionEndElem=function(b){var F;F=b||this._currentRange;var y;if(F)return y=F.endContainer,m.default(y.nodeType===1?y:y.parentNode)},k.prototype.isSelectionEmpty=function(){var b=this._currentRange;return!!(b&&b.startContainer&&b.startContainer===b.endContainer&&b.startOffset===b.endOffset)},k.prototype.restoreSelection=function(){var b=window.getSelection(),F=this._currentRange;b&&F&&(b.removeAllRanges(),b.addRange(F))},k.prototype.createEmptyRange=function(){var b=this.editor,F=this.getRange(),y;if(F&&this.isSelectionEmpty())try{v.UA.isWebkit()?(b.cmd.do("insertHTML","​"),F.setEnd(F.endContainer,F.endOffset+1),this.saveRange(F)):(y=m.default("<strong>​</strong>"),b.cmd.do("insertElem",y),this.createRangeByElem(y,!0))}catch{}},k.prototype.createRangeByElems=function(b,F){var y=window.getSelection?window.getSelection():document.getSelection();y?.removeAllRanges();var h=document.createRange();h.setStart(b,0),h.setEnd(F,F.childNodes.length||1),this.saveRange(h),this.restoreSelection()},k.prototype.createRangeByElem=function(b,F,y){if(b.length){var h=b.elems[0],g=document.createRange();y?g.selectNodeContents(h):g.selectNode(h),F!=null&&(g.collapse(F),F||(this.saveRange(g),this.editor.selection.moveCursor(h))),this.saveRange(g)}},k.prototype.getSelectionRangeTopNodes=function(){var b,F,y,h=(b=this.getSelectionStartElem())===null||b===void 0?void 0:b.getNodeTop(this.editor),g=(F=this.getSelectionEndElem())===null||F===void 0?void 0:F.getNodeTop(this.editor);return y=this.recordSelectionNodes(m.default(h),m.default(g)),y},k.prototype.moveCursor=function(b,F){var y,h=this.getRange(),g=b.nodeType===3?(y=b.nodeValue)===null||y===void 0?void 0:y.length:b.childNodes.length;(v.UA.isFirefox||v.UA.isIE())&&g!==0&&(b.nodeType===3||b.childNodes[g-1].nodeName==="BR")&&(g=g-1);var A=F??g;!h||b&&(h.setStart(b,A),h.setEnd(b,A),this.restoreSelection())},k.prototype.getCursorPos=function(){var b=window.getSelection();return b?.anchorOffset},k.prototype.clearWindowSelectionRange=function(){var b=window.getSelection();b&&b.removeAllRanges()},k.prototype.recordSelectionNodes=function(b,F){var y=[],h=!0;try{for(var g=b,A=this.editor.$textElem;h;){var C=g?.getNodeTop(this.editor);C.getNodeName()==="BODY"&&(h=!1),C.length>0&&(y.push(m.default(g)),F?.equal(C)||A.equal(C)?h=!1:g=C.getNextSibling())}}catch{h=!1}return y},k.prototype.setRangeToElem=function(b){var F=this.getRange();F?.setStart(b,0),F?.setEnd(b,0)},k}();i.default=x},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(3)),m=function(){function v(_){this.editor=_}return v.prototype.do=function(_,x){var k=this.editor;k.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var b=k.selection;if(b.getRange()){switch(b.restoreSelection(),_){case"insertHTML":this.insertHTML(x);break;case"insertElem":this.insertElem(x);break;default:this.execCommand(_,x);break}k.menus.changeActive(),b.saveRange(),b.restoreSelection()}},v.prototype.insertHTML=function(_){var x=this.editor,k=x.selection.getRange();if(k!=null){if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",_);else if(k.insertNode){if(k.deleteContents(),p.default(_).elems.length>0)k.insertNode(p.default(_).elems[0]);else{var b=document.createElement("p");b.appendChild(document.createTextNode(_)),k.insertNode(b)}x.selection.collapseRange()}}},v.prototype.insertElem=function(_){var x=this.editor,k=x.selection.getRange();k!=null&&k.insertNode&&(k.deleteContents(),k.insertNode(_.elems[0]))},v.prototype.execCommand=function(_,x){document.execCommand(_,!1,x)},v.prototype.queryCommandValue=function(_){return document.queryCommandValue(_)},v.prototype.queryCommandState=function(_){return document.queryCommandState(_)},v.prototype.queryCommandSupported=function(_){return document.queryCommandSupported(_)},v}();i.default=m},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(29)),p=l(n(4)),m=l(n(17)),v=l(n(27)),_=l(n(46));(0,f.default)(i,"__esModule",{value:!0});var x=n(2),k=x.__importDefault(n(3)),b=x.__importDefault(n(287)),F=n(6),y=x.__importDefault(n(299)),h=x.__importDefault(n(300)),g=n(7),A=function(){function C(S){this.editor=S,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 C.prototype.init=function(){this._saveRange(),this._bindEventHooks(),b.default(this)},C.prototype.togglePlaceholder=function(){var S,B=this.html(),M=(0,c.default)(S=this.editor.$textContainerElem).call(S,".placeholder");M.hide(),!this.editor.isComposing&&(!B||B===" ")&&M.show()},C.prototype.clear=function(){this.html(g.EMPTY_P)},C.prototype.html=function(S){var B=this.editor,M=B.$textElem;if(S==null){var N=M.html();N=N.replace(/\u200b/gm,""),N=N.replace(/<p><\/p>/gim,""),N=N.replace(g.EMPTY_P_LAST_REGEX,""),N=N.replace(g.EMPTY_P_REGEX,"<p>");var V=N.match(/<(img|br|hr|input)[^>]*>/gi);return V!==null&&(0,p.default)(V).call(V,function(w){w.match(/\/>/)||(N=N.replace(w,w.substring(0,w.length-1)+"/>"))}),N}S=(0,m.default)(S).call(S),S===""&&(S=g.EMPTY_P),(0,v.default)(S).call(S,"<")!==0&&(S="<p>"+S+"</p>"),M.html(S),B.initSelection()},C.prototype.setJSON=function(S){var B=h.default(S).children(),M=this.editor,N=M.$textElem;!B||N.replaceChildAll(B)},C.prototype.getJSON=function(){var S=this.editor,B=S.$textElem;return y.default(B)},C.prototype.text=function(S){var B=this.editor,M=B.$textElem;if(S==null){var N=M.text();return N=N.replace(/\u200b/gm,""),N}M.text("<p>"+S+"</p>"),B.initSelection()},C.prototype.append=function(S){var B=this.editor;(0,v.default)(S).call(S,"<")!==0&&(S="<p>"+S+"</p>"),this.html(this.html()+S),B.initSelection()},C.prototype._saveRange=function(){var S=this.editor,B=S.$textElem,M=k.default(document);function N(){S.selection.saveRange(),S.menus.changeActive()}B.on("keyup",N);function V(){N(),B.off("click",V)}B.on("click",V);function w(){N(),M.off("mouseup",w)}function D(){M.on("mouseup",w),B.off("mouseleave",D)}B.on("mousedown",function(){B.on("mouseleave",D)}),B.on("mouseup",function(I){B.off("mouseleave",D),(0,_.default)(function(){var j=S.selection,R=j.getRange();R!==null&&N()},0)})},C.prototype._bindEventHooks=function(){var S=this.editor,B=S.$textElem,M=this.eventHooks;B.on("click",function(V){var w=M.clickEvents;(0,p.default)(w).call(w,function(D){return D(V)})}),B.on("keyup",function(V){if(V.keyCode===13){var w=M.enterUpEvents;(0,p.default)(w).call(w,function(D){return D(V)})}}),B.on("keyup",function(V){var w=M.keyupEvents;(0,p.default)(w).call(w,function(D){return D(V)})}),B.on("keydown",function(V){var w=M.keydownEvents;(0,p.default)(w).call(w,function(D){return D(V)})}),B.on("keyup",function(V){if(!(V.keyCode!==8&&V.keyCode!==46)){var w=M.deleteUpEvents;(0,p.default)(w).call(w,function(D){return D(V)})}}),B.on("keydown",function(V){if(!(V.keyCode!==8&&V.keyCode!==46)){var w=M.deleteDownEvents;(0,p.default)(w).call(w,function(D){return D(V)})}}),B.on("paste",function(V){if(!F.UA.isIE()){V.preventDefault();var w=M.pasteEvents;(0,p.default)(w).call(w,function(D){return D(V)})}}),B.on("keydown",function(V){(S.isFocus||S.isCompatibleMode)&&(V.ctrlKey||V.metaKey)&&V.keyCode===90&&(V.preventDefault(),V.shiftKey?S.history.restore():S.history.revoke())}),B.on("keyup",function(V){if(V.keyCode===9){V.preventDefault();var w=M.tabUpEvents;(0,p.default)(w).call(w,function(D){return D(V)})}}),B.on("keydown",function(V){if(V.keyCode===9){V.preventDefault();var w=M.tabDownEvents;(0,p.default)(w).call(w,function(D){return D(V)})}}),B.on("scroll",F.throttle(function(V){var w=M.textScrollEvents;(0,p.default)(w).call(w,function(D){return D(V)})},100));function N(V){V.preventDefault()}k.default(document).on("dragleave",N).on("drop",N).on("dragenter",N).on("dragover",N),S.beforeDestroy(function(){k.default(document).off("dragleave",N).off("drop",N).off("dragenter",N).off("dragover",N)}),B.on("drop",function(V){V.preventDefault();var w=M.dropEvents;(0,p.default)(w).call(w,function(D){return D(V)})}),B.on("click",function(V){var w=null,D=V.target,I=k.default(D);if(I.getNodeName()==="A")w=I;else{var j=I.parentUntil("a");j!=null&&(w=j)}if(w){var R=M.linkClickEvents;(0,p.default)(R).call(R,function(O){return O(w)})}}),B.on("click",function(V){var w=null,D=V.target,I=k.default(D);if(I.getNodeName()==="IMG"&&!I.elems[0].getAttribute("data-emoji")&&(V.stopPropagation(),w=I),!!w){var j=M.imgClickEvents;(0,p.default)(j).call(j,function(R){return R(w)})}}),B.on("click",function(V){var w=null,D=V.target,I=k.default(D);if(I.getNodeName()==="PRE")w=I;else{var j=I.parentUntil("pre");j!==null&&(w=j)}if(w){var R=M.codeClickEvents;(0,p.default)(R).call(R,function(O){return O(w)})}}),B.on("click",function(V){var w=null,D=V.target,I=k.default(D);if(I.getNodeName()==="HR"&&(w=I),!!w){S.selection.createRangeByElem(w),S.selection.restoreSelection();var j=M.splitLineEvents;(0,p.default)(j).call(j,function(R){return R(w)})}}),S.$toolbarElem.on("click",function(V){var w=M.toolbarClickEvents;(0,p.default)(w).call(w,function(D){return D(V)})}),S.$textContainerElem.on("mousedown",function(V){var w=V.target,D=k.default(w);if(D.hasClass("w-e-img-drag-rb")){var I=M.imgDragBarMouseDownEvents;(0,p.default)(I).call(I,function(j){return j()})}}),B.on("click",function(V){var w=null,D=V.target;if(w=k.default(D).parentUntilEditor("TABLE",S,D),!!w){var I=M.tableClickEvents;(0,p.default)(I).call(I,function(j){return j(w,V)})}}),B.on("keydown",function(V){if(V.keyCode===13){var w=M.enterDownEvents;(0,p.default)(w).call(w,function(D){return D(V)})}}),B.on("click",function(V){var w=null,D=V.target,I=k.default(D);if(I.getNodeName()==="VIDEO"&&(V.stopPropagation(),w=I),!!w){var j=M.videoClickEvents;(0,p.default)(j).call(j,function(R){return R(w)})}})},C}();i.default=A},function(o,i,n){var l=n(284);o.exports=l},function(o,i,n){var l=n(285),f=Array.prototype;o.exports=function(c){var p=c.find;return c===f||c instanceof Array&&p===f.find?l:p}},function(o,i,n){n(286);var l=n(15);o.exports=l("Array").find},function(o,i,n){var l=n(5),f=n(32).find,c=n(82),p=n(22),m="find",v=!0,_=p(m);m in[]&&Array(1)[m](function(){v=!1}),l({target:"Array",proto:!0,forced:v||!_},{find:function(x){return f(this,x,arguments.length>1?arguments[1]:void 0)}}),c(m)},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(288)),m=c.__importStar(n(289)),v=c.__importDefault(n(290)),_=c.__importDefault(n(291)),x=c.__importDefault(n(298));function k(b){var F=b.editor,y=b.eventHooks;p.default(F,y.enterUpEvents,y.enterDownEvents),m.default(F,y.deleteUpEvents,y.deleteDownEvents),m.cutToKeepP(F,y.keyupEvents),v.default(F,y.tabDownEvents),_.default(F,y.pasteEvents),x.default(F,y.imgClickEvents)}i.default=k},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(27));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=n(7),v=p.__importDefault(n(3));function _(x,k,b){function F(g){var A,C=v.default(m.EMPTY_P);if(C.insertBefore(g),(0,c.default)(A=g.html()).call(A,"<img")>=0){C.remove();return}x.selection.createRangeByElem(C,!0,!0),x.selection.restoreSelection(),g.remove()}function y(){var g=x.$textElem,A=x.selection.getSelectionContainerElem(),C=A.parent();if(C.html()==="<code><br></code>"){F(C);return}if(A.getNodeName()==="FONT"&&A.text()===""&&A.attr("face")==="monospace"){F(C);return}if(C.equal(g)){var S=A.getNodeName();S==="P"&&A.attr("data-we-empty-p")===null||A.text()||F(A)}}k.push(y);function h(g){var A;x.selection.saveRange((A=getSelection())===null||A===void 0?void 0:A.getRangeAt(0));var C=x.selection.getSelectionContainerElem();C.id===x.textElemId&&(g.preventDefault(),x.cmd.do("insertHTML","<p><br></p>"))}b.push(h)}i.default=_},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(17)),p=l(n(28));(0,f.default)(i,"__esModule",{value:!0}),i.cutToKeepP=void 0;var m=n(2),v=n(7),_=m.__importDefault(n(3));function x(b,F,y){function h(){var A=b.$textElem,C=b.$textElem.html(),S=b.$textElem.text(),B=(0,c.default)(C).call(C),M=["<p><br></p>","<br>",'<p data-we-empty-p=""></p>',v.EMPTY_P];if(/^\s*$/.test(S)&&(!B||(0,p.default)(M).call(M,B))){A.html(v.EMPTY_P);var N=A.getNode();b.selection.createRangeByElems(N.childNodes[0],N.childNodes[0]);var V=b.selection.getSelectionContainerElem();b.selection.restoreSelection(),b.selection.moveCursor(V.getNode(),0)}}F.push(h);function g(A){var C,S=b.$textElem,B=(0,c.default)(C=S.html().toLowerCase()).call(C);if(B===v.EMPTY_P){A.preventDefault();return}}y.push(g)}function k(b,F){function y(h){var g;if(h.keyCode===88){var A=b.$textElem,C=(0,c.default)(g=A.html().toLowerCase()).call(g);if(!C||C==="<br>"){var S=_.default(v.EMPTY_P);A.html(" "),A.append(S),b.selection.createRangeByElem(S,!1,!0),b.selection.restoreSelection(),b.selection.moveCursor(S.getNode(),0)}}}F.push(y)}i.cutToKeepP=k,i.default=x},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});function c(p,m){function v(){if(p.cmd.queryCommandSupported("insertHTML")){var _=p.selection.getSelectionContainerElem();if(_){var x=_.parent(),k=_.getNodeName(),b=x.getNodeName();k=="CODE"||b==="CODE"||b==="PRE"||/hljs/.test(b)?p.cmd.do("insertHTML",p.config.languageTab):p.cmd.do("insertHTML"," ")}}}m.push(v)}i.default=c},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(17)),p=l(n(4));(0,f.default)(i,"__esModule",{value:!0});var m=n(131),v=n(6),_=n(7);function x(h){var g,A=(0,c.default)(g=h.replace(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).call(g),C=document.createElement("div");return C.innerHTML=A,C.innerHTML.replace(/<p><\/p>/gim,"")}function k(h){var g=h.replace(/<br>|<br\/>/gm,`
- `).replace(/<[^>]+>/gm,"");return g}function b(h){var g;if(h==="")return!1;var A=document.createElement("div");return A.innerHTML=h,((g=A.firstChild)===null||g===void 0?void 0:g.nodeName)==="P"}function F(h){if(!(h!=null&&h.length))return!1;var g=h.elems[0];return g.nodeName==="P"&&g.innerHTML==="<br>"}function y(h,g){function A(C){var S=h.config,B=S.pasteFilterStyle,M=S.pasteIgnoreImg,N=S.pasteTextHandle,V=m.getPasteHtml(C,B,M),w=m.getPasteText(C);w=w.replace(/\n/gm,"<br>");var D=h.selection.getSelectionContainerElem();if(D){var I=D?.getNodeName(),j=D?.getNodeTop(h),R="";if(j.elems[0]&&(R=j?.getNodeName()),I==="CODE"||R==="PRE"){N&&v.isFunction(N)&&(w=""+(N(w)||"")),h.cmd.do("insertHTML",k(w));return}if(_.urlRegex.test(w)&&B){N&&v.isFunction(N)&&(w=""+(N(w)||""));var O=w.replace(_.urlRegex,function(te){return'<a href="'+te+'" target="_blank">'+te+"</a>"}),X=h.selection.getRange(),U=document.createElement("div"),Z=document.createDocumentFragment();if(U.innerHTML=O,X==null)return;for(;U.childNodes.length;)Z.append(U.childNodes[0]);var L=Z.querySelectorAll("a");(0,p.default)(L).call(L,function(te){te.innerText=te.href}),X.insertNode&&(X.deleteContents(),X.insertNode(Z)),h.selection.clearWindowSelectionRange();return}if(V)try{N&&v.isFunction(N)&&(V=""+(N(V)||""));var Q=/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(V);if(Q&&B)h.cmd.do("insertHTML",""+x(w));else{var W=x(V);if(b(W)){var G=h.$textElem;if(h.cmd.do("insertHTML",W),G.equal(D)){h.selection.createEmptyRange();return}F(j)&&j.remove()}else h.cmd.do("insertHTML",W)}}catch{N&&v.isFunction(N)&&(w=""+(N(w)||"")),h.cmd.do("insertHTML",""+x(w))}}}g.push(A)}i.default=y},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(17)),p=l(n(4)),m=l(n(28));(0,f.default)(i,"__esModule",{value:!0});var v=n(2),_=n(293),x=v.__importDefault(n(297));function k(g){var A=/<span>.*?<\/span>/gi,C=/<span>(.*?)<\/span>/;return g.replace(A,function(S){var B=S.match(C);return B==null?"":B[1]})}function b(g,A){var C;return g=(0,c.default)(C=g.toLowerCase()).call(C),!!(_.IGNORE_TAGS.has(g)||A&&g==="img")}function F(g,A){var C="";C="<"+g;var S=[];(0,p.default)(A).call(A,function(M){S.push(M.name+'="'+M.value+'"')}),S.length>0&&(C=C+" "+S.join(" "));var B=_.EMPTY_TAGS.has(g);return C=C+(B?"/":"")+">",C}function y(g){return"</"+g+">"}function h(g,A,C){A===void 0&&(A=!0),C===void 0&&(C=!1);var S=[],B="";function M(D){D=(0,c.default)(D).call(D),D&&(_.EMPTY_TAGS.has(D)||(B=D))}function N(){B=""}var V=new x.default;V.parse(g,{startElement:function(D,I){if(M(D),!b(D,C)){var j=_.NECESSARY_ATTRS.get(D)||[],R=[];(0,p.default)(I).call(I,function(X){var U=X.name;if(U==="style"){A||R.push(X);return}(0,m.default)(j).call(j,U)!==!1&&R.push(X)});var O=F(D,R);S.push(O)}},characters:function(D){!D||b(B,C)||S.push(D)},endElement:function(D){if(!b(D,C)){var I=y(D);S.push(I),N()}},comment:function(D){M(D)}});var w=S.join("");return w=k(w),w}i.default=h},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(132)),p=l(n(121));(0,f.default)(i,"__esModule",{value:!0}),i.TOP_LEVEL_TAGS=i.EMPTY_TAGS=i.NECESSARY_ATTRS=i.IGNORE_TAGS=void 0,i.IGNORE_TAGS=new c.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),i.NECESSARY_ATTRS=new p.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),i.EMPTY_TAGS=new c.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),i.TOP_LEVEL_TAGS=new c.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(o,i,n){var l=n(295);o.exports=l},function(o,i,n){n(296),n(61),n(50),n(54);var l=n(9);o.exports=l.Set},function(o,i,n){var l=n(122),f=n(124);o.exports=l("Set",function(c){return function(){return c(this,arguments.length?arguments[0]:void 0)}},f)},function(o,i){function n(){}n.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(l,f){f&&(this.contentHandler=f);for(var c,p,m,v=!1,_=this;l.length>0;)l.substring(0,4)=="<!--"?(m=l.indexOf("-->"),m!=-1?(this.contentHandler.comment(l.substring(4,m)),l=l.substring(m+3),v=!1):v=!0):l.substring(0,2)=="</"?this.endTagRe.test(l)?(c=RegExp.lastMatch,p=RegExp.rightContext,c.replace(this.endTagRe,function(){return _.parseEndTag.apply(_,arguments)}),l=p,v=!1):v=!0:l.charAt(0)=="<"&&(this.startTagRe.test(l)?(c=RegExp.lastMatch,p=RegExp.rightContext,c.replace(this.startTagRe,function(){return _.parseStartTag.apply(_,arguments)}),l=p,v=!1):v=!0),v&&(m=l.indexOf("<"),m==-1?(this.contentHandler.characters(l),l=""):(this.contentHandler.characters(l.substring(0,m)),l=l.substring(m))),v=!0},parseStartTag:function(l,f,c){var p=this.parseAttributes(f,c);this.contentHandler.startElement(f,p)},parseEndTag:function(l,f){this.contentHandler.endElement(f)},parseAttributes:function(l,f){var c=this,p=[];return f.replace(this.attrRe,function(m,v,_,x,k,b,F,y){p.push(c.parseAttribute(l,m,v,_,x,k,b,F,y))}),p},parseAttribute:function(l,f,c){var p="";arguments[7]?p=arguments[8]:arguments[5]?p=arguments[6]:arguments[3]&&(p=arguments[4]);var m=!p&&!arguments[3];return{name:c,value:m?null:p}}},o.exports=n},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});function c(p,m){function v(_){p.selection.createRangeByElem(_),p.selection.restoreSelection()}m.push(v)}i.default=c},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=n(6),v=p.__importDefault(n(3));function _(x){var k=[],b=x.childNodes()||[];return(0,c.default)(b).call(b,function(F){var y,h=F.nodeType;if(h===3&&(y=F.textContent||"",y=m.replaceHtmlSymbol(y)),h===1){y={},y=y,y.tag=F.nodeName.toLowerCase();for(var g=[],A=F.attributes,C=A.length||0,S=0;S<C;S++){var B=A[S];g.push({name:B.name,value:B.value})}y.attrs=g,y.children=_(v.default(F))}y&&k.push(y)}),k}i.default=_},function(o,i,n){var l=n(0),f=l(n(92)),c=l(n(1)),p=l(n(4));(0,c.default)(i,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(3));function _(x,k){k===void 0&&(k=document.createElement("div"));var b=k;return(0,p.default)(x).call(x,function(F){var y;if(typeof F=="string"&&(y=document.createTextNode(F)),(0,f.default)(F)==="object"){var h;y=document.createElement(F.tag),(0,p.default)(h=F.attrs).call(h,function(g){v.default(y).attr(g.name,g.value)}),F.children&&F.children.length>0&&_(F.children,y.getRootNode())}y&&b.appendChild(y)}),v.default(b)}i.default=_},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(89)),p=l(n(70)),m=l(n(28)),v=l(n(302)),_=l(n(4)),x=l(n(94)),k=l(n(133)),b=l(n(46)),F=l(n(57));(0,f.default)(i,"__esModule",{value:!0});var y=n(2),h=y.__importDefault(n(87)),g=y.__importDefault(n(314)),A=y.__importDefault(n(3)),C=function(){function S(B){this.editor=B,this.menuList=[],this.constructorList=g.default}return S.prototype.extend=function(B,M){!M||typeof M!="function"||(this.constructorList[B]=M)},S.prototype.init=function(){var B,M,N=this,V=this.editor.config,w=V.excludeMenus;(0,c.default)(w)===!1&&(w=[]),V.menus=(0,p.default)(B=V.menus).call(B,function(Z){return(0,m.default)(w).call(w,Z)===!1});var D=(0,v.default)(h.default.globalCustomMenuConstructorList);D=(0,p.default)(D).call(D,function(Z){return(0,m.default)(w).call(w,Z)}),(0,_.default)(D).call(D,function(Z){delete h.default.globalCustomMenuConstructorList[Z]}),(0,_.default)(M=V.menus).call(M,function(Z){var L=N.constructorList[Z];N._initMenuList(Z,L)});for(var I=0,j=(0,x.default)(h.default.globalCustomMenuConstructorList);I<j.length;I++){var R=j[I],O=R[0],X=R[1],U=X;this._initMenuList(O,U)}this._addToToolbar(),V.showMenuTooltips&&this._bindMenuTooltips()},S.prototype._initMenuList=function(B,M){var N;if(!(M==null||typeof M!="function"))if((0,k.default)(N=this.menuList).call(N,function(w){return w.key===B}))console.warn("菜单名称重复:"+B);else{var V=new M(this.editor);V.key=B,this.menuList.push(V)}},S.prototype._bindMenuTooltips=function(){var B=this.editor,M=B.$toolbarElem,N=B.config,V=N.menuTooltipPosition,w=A.default('<div class="w-e-menu-tooltip w-e-menu-tooltip-'+V+`">
- <div class="w-e-menu-tooltip-item-wrapper">
- <div></div>
- </div>
- </div>`);w.css("visibility","hidden"),M.append(w),w.css("z-index",B.zIndex.get("tooltip"));var D=0;function I(){D&&clearTimeout(D)}function j(){I(),w.css("visibility","hidden")}M.on("mouseover",function(R){var O=R.target,X=A.default(O),U,Z;if(X.isContain(M)){j();return}if(X.parentUntil(".w-e-droplist")!=null)j();else if(X.attr("data-title"))U=X.attr("data-title"),Z=X;else{var L=X.parentUntil(".w-e-menu");L!=null&&(U=L.attr("data-title"),Z=L)}if(U&&Z){I();var Q=Z.getOffsetData();w.text(B.i18next.t("menus.title."+U));var W=w.getOffsetData(),G=Q.left+Q.width/2-W.width/2;w.css("left",G+"px"),V==="up"?w.css("top",Q.top-W.height-8+"px"):V==="down"&&w.css("top",Q.top+Q.height+8+"px"),D=(0,b.default)(function(){w.css("visibility","visible")},200)}else j()}).on("mouseleave",function(){j()})},S.prototype._addToToolbar=function(){var B,M=this.editor,N=M.$toolbarElem;(0,_.default)(B=this.menuList).call(B,function(V){var w=V.$elem;w&&N.append(w)})},S.prototype.menuFind=function(B){for(var M=this.menuList,N=0,V=M.length;N<V;N++)if(M[N].key===B)return M[N];return M[0]},S.prototype.changeActive=function(){var B;(0,_.default)(B=this.menuList).call(B,function(M){var N;(0,b.default)((0,F.default)(N=M.tryChangeActive).call(N,M),100)})},S}();i.default=C},function(o,i,n){o.exports=n(303)},function(o,i,n){var l=n(304);o.exports=l},function(o,i,n){n(305);var l=n(9);o.exports=l.Object.keys},function(o,i,n){var l=n(5),f=n(31),c=n(52),p=n(11),m=p(function(){c(1)});l({target:"Object",stat:!0,forced:m},{keys:function(v){return c(f(v))}})},function(o,i,n){var l=n(307);o.exports=l},function(o,i,n){n(308);var l=n(9);o.exports=l.Object.entries},function(o,i,n){var l=n(5),f=n(309).entries;l({target:"Object",stat:!0},{entries:function(c){return f(c)}})},function(o,i,n){var l=n(14),f=n(52),c=n(30),p=n(59).f,m=function(v){return function(_){for(var x=c(_),k=f(x),b=k.length,F=0,y=[],h;b>F;)h=k[F++],(!l||p.call(x,h))&&y.push(v?[h,x[h]]:x[h]);return y}};o.exports={entries:m(!0),values:m(!1)}},function(o,i,n){var l=n(311);o.exports=l},function(o,i,n){var l=n(312),f=Array.prototype;o.exports=function(c){var p=c.some;return c===f||c instanceof Array&&p===f.some?l:p}},function(o,i,n){n(313);var l=n(15);o.exports=l("Array").some},function(o,i,n){var l=n(5),f=n(32).some,c=n(67),p=n(22),m=c("some"),v=p("some");l({target:"Array",proto:!0,forced:!m||!v},{some:function(_){return f(this,_,arguments.length>1?arguments[1]:void 0)}})},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(315)),m=c.__importDefault(n(316)),v=c.__importDefault(n(321)),_=c.__importDefault(n(326)),x=c.__importDefault(n(327)),k=c.__importDefault(n(328)),b=c.__importDefault(n(329)),F=c.__importDefault(n(331)),y=c.__importDefault(n(333)),h=c.__importDefault(n(334)),g=c.__importDefault(n(337)),A=c.__importDefault(n(338)),C=c.__importDefault(n(339)),S=c.__importDefault(n(350)),B=c.__importDefault(n(365)),M=c.__importDefault(n(369)),N=c.__importDefault(n(137)),V=c.__importDefault(n(378)),w=c.__importDefault(n(380)),D=c.__importDefault(n(381)),I=c.__importDefault(n(382)),j=c.__importDefault(n(401)),R=c.__importDefault(n(406)),O=c.__importDefault(n(409));i.default={bold:p.default,head:m.default,italic:_.default,link:v.default,underline:x.default,strikeThrough:k.default,fontName:b.default,fontSize:F.default,justify:y.default,quote:h.default,backColor:g.default,foreColor:A.default,video:C.default,image:S.default,indent:B.default,emoticon:M.default,list:N.default,lineHeight:V.default,undo:w.default,redo:D.default,table:I.default,code:j.default,splitLine:R.default,todo:O.default}},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(23)),m=c.__importDefault(n(3)),v=function(_){c.__extends(x,_);function x(k){var b=this,F=m.default(`<div class="w-e-menu" data-title="加粗">
- <i class="w-e-icon-bold"></i>
- </div>`);return b=_.call(this,F,k)||this,b}return x.prototype.clickHandler=function(){var k=this.editor,b=k.selection.isSelectionEmpty();b&&k.selection.createEmptyRange(),k.cmd.do("bold"),b&&(k.selection.collapseRange(),k.selection.restoreSelection())},x.prototype.tryChangeActive=function(){var k=this.editor;k.cmd.queryCommandState("bold")?this.active():this.unActive()},x}(p.default);i.default=v},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(27)),p=l(n(29)),m=l(n(4)),v=l(n(317)),_=l(n(28));(0,f.default)(i,"__esModule",{value:!0});var x=n(2),k=x.__importDefault(n(24)),b=x.__importDefault(n(3)),F=n(6),y=n(7),h=function(g){x.__extends(A,g);function A(C){var S=this,B=b.default('<div class="w-e-menu" data-title="标题"><i class="w-e-icon-header"></i></div>'),M={width:100,title:"设置标题",type:"list",list:[{$elem:b.default("<h1>H1</h1>"),value:"<h1>"},{$elem:b.default("<h2>H2</h2>"),value:"<h2>"},{$elem:b.default("<h3>H3</h3>"),value:"<h3>"},{$elem:b.default("<h4>H4</h4>"),value:"<h4>"},{$elem:b.default("<h5>H5</h5>"),value:"<h5>"},{$elem:b.default("<p>"+C.i18next.t("menus.dropListMenu.head.正文")+"</p>"),value:"<p>"}],clickHandler:function(V){S.command(V)}};S=g.call(this,B,C,M)||this;var N=C.config.onCatalogChange;return N&&(S.oldCatalogs=[],S.addListenerCatalog(),S.getCatalogs()),S}return A.prototype.command=function(C){var S=this.editor,B=S.selection.getSelectionContainerElem();if(B&&S.$textElem.equal(B))this.setMultilineHead(C);else{var M;if((0,c.default)(M=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(M,b.default(B).getNodeName())>-1)return;S.cmd.do("formatBlock",C)}C!=="<p>"&&this.addUidForSelectionElem()},A.prototype.addUidForSelectionElem=function(){var C=this.editor,S=C.selection.getSelectionContainerElem(),B=F.getRandomCode();b.default(S).attr("id",B)},A.prototype.addListenerCatalog=function(){var C=this,S=this.editor;S.txt.eventHooks.changeEvents.push(function(){C.getCatalogs()})},A.prototype.getCatalogs=function(){var C=this.editor,S=this.editor.$textElem,B=C.config.onCatalogChange,M=(0,p.default)(S).call(S,"h1,h2,h3,h4,h5"),N=[];(0,m.default)(M).call(M,function(V,w){var D=b.default(V),I=D.attr("id"),j=D.getNodeName(),R=D.text();I||(I=F.getRandomCode(),D.attr("id",I)),R&&N.push({tag:j,id:I,text:R})}),(0,v.default)(this.oldCatalogs)!==(0,v.default)(N)&&(this.oldCatalogs=N,B&&B(N))},A.prototype.setMultilineHead=function(C){var S=this,B,M,N=this.editor,V=N.selection,w=(B=V.getSelectionContainerElem())===null||B===void 0?void 0:B.elems[0],D=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],I=b.default(V.getSelectionStartElem()),j=b.default(V.getSelectionEndElem());j.elems[0].outerHTML===b.default(y.EMPTY_P).elems[0].outerHTML&&!j.elems[0].nextSibling&&(j=j.prev());var R=[];R.push(I.getNodeTop(N));var O=[],X=(M=V.getRange())===null||M===void 0?void 0:M.commonAncestorContainer.childNodes;X==null||(0,m.default)(X).call(X,function(L,Q){L===R[0].getNode()&&O.push(Q),L===j.getNodeTop(N).getNode()&&O.push(Q)});for(var U=0;R[U].getNode()!==j.getNodeTop(N).getNode();){if(!R[U].elems[0])return;var Z=b.default(R[U].next().getNode());R.push(Z),U++}R==null||(0,m.default)(R).call(R,function(L,Q){if(!S.hasTag(L,D)){var W=b.default(C),G=L.parent().getNode();W.html(""+L.html()),G.insertBefore(W.getNode(),L.getNode()),L.remove()}}),V.createRangeByElems(w.children[O[0]],w.children[O[1]])},A.prototype.hasTag=function(C,S){var B=this,M;if(!C)return!1;if((0,_.default)(S).call(S,C?.getNodeName()))return!0;var N=!1;return(M=C.children())===null||M===void 0||(0,m.default)(M).call(M,function(V){N=B.hasTag(b.default(V),S)}),N},A.prototype.tryChangeActive=function(){var C=this.editor,S=/^h/i,B=C.cmd.queryCommandValue("formatBlock");S.test(B)?this.active():this.unActive()},A}(k.default);i.default=h},function(o,i,n){o.exports=n(318)},function(o,i,n){var l=n(319);o.exports=l},function(o,i,n){n(320);var l=n(9);l.JSON||(l.JSON={stringify:JSON.stringify}),o.exports=function(f,c,p){return l.JSON.stringify.apply(null,arguments)}},function(o,i,n){var l=n(5),f=n(36),c=n(11),p=f("JSON","stringify"),m=/[\uD800-\uDFFF]/g,v=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,x=function(b,F,y){var h=y.charAt(F-1),g=y.charAt(F+1);return v.test(b)&&!_.test(g)||_.test(b)&&!v.test(h)?"\\u"+b.charCodeAt(0).toString(16):b},k=c(function(){return p("\uDF06\uD834")!=='"\\udf06\\ud834"'||p("\uDEAD")!=='"\\udead"'});p&&l({target:"JSON",stat:!0,forced:k},{stringify:function(b,F,y){var h=p.apply(null,arguments);return typeof h=="string"?h.replace(m,x):h}})},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(17));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(38)),v=p.__importDefault(n(3)),_=p.__importDefault(n(322)),x=p.__importStar(n(96)),k=p.__importDefault(n(33)),b=p.__importDefault(n(324)),F=n(7),y=function(h){p.__extends(g,h);function g(A){var C=this,S=v.default('<div class="w-e-menu" data-title="链接"><i class="w-e-icon-link"></i></div>');return C=h.call(this,S,A)||this,b.default(A),C}return g.prototype.clickHandler=function(){var A=this.editor,C,S=A.selection.getSelectionContainerElem(),B=A.$textElem,M=B.html(),N=(0,c.default)(M).call(M);if(N===F.EMPTY_P){var V=B.children();A.selection.createRangeByElem(V,!0,!0),S=A.selection.getSelectionContainerElem()}if(!(S&&A.$textElem.equal(S)))if(this.isActive){var w="",D="";if(C=A.selection.getSelectionContainerElem(),!C)return;if(C.getNodeName()!=="A"){var I=x.getParentNodeA(C);C=v.default(I)}w=C.elems[0].innerText,D=C.attr("href"),this.createPanel(w,D)}else A.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(A.selection.getSelectionText(),"")},g.prototype.createPanel=function(A,C){var S=_.default(this.editor,A,C),B=new k.default(this,S);B.create()},g.prototype.tryChangeActive=function(){var A=this.editor;x.default(A)?this.active():this.unActive()},g}(m.default);i.default=y},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(28)),p=l(n(17)),m=l(n(29));(0,f.default)(i,"__esModule",{value:!0});var v=n(2),_=n(6),x=v.__importDefault(n(3)),k=v.__importStar(n(96)),b=n(323);function F(y,h,g){var A=_.getRandom("input-link"),C=_.getRandom("input-text"),S=_.getRandom("btn-ok"),B=_.getRandom("btn-del"),M=k.default(y)?"inline-block":"none",N;function V(){if(k.default(y)){var R=y.selection.getSelectionContainerElem();!R||(y.selection.createRangeByElem(R),y.selection.restoreSelection(),N=R)}}function w(R,O){var X=R.replace(/</g,"<").replace(/>/g,">"),U=x.default('<a target="_blank">'+X+"</a>"),Z=U.elems[0];Z.innerText=R,Z.href=O,k.default(y)&&V(),y.cmd.do("insertElem",U)}function D(){if(k.default(y))if(V(),N.getNodeName()==="A"){var R,O=N.elems[0],X=O.parentElement;X&&(0,c.default)(R=k.EXTRA_TAG).call(R,X.nodeName)?X.innerHTML=O.innerHTML:y.cmd.do("insertHTML","<span>"+O.innerHTML+"</span>")}else{var U=k.getParentNodeA(N),Z=U.innerHTML;y.cmd.do("insertHTML","<span>"+Z+"</span>")}}function I(R,O){var X=y.config.linkCheck(R,O);if(X!==void 0){if(X===!0)return!0;y.config.customAlert(X,"warning")}return!1}var j={width:300,height:0,tabs:[{title:y.i18next.t("menus.panelMenus.link.链接"),tpl:`<div>
- <input
- id="`+C+`"
- type="text"
- class="block"
- placeholder="`+y.i18next.t("menus.panelMenus.link.链接文字")+`"/>
- </td>
- <input
- id="`+A+`"
- type="text"
- class="block"
- placeholder="`+y.i18next.t("如")+` https://..."/>
- </td>
- <div class="w-e-button-container">
- <button type="button" id="`+S+`" class="right">
- `+y.i18next.t("插入")+`
- </button>
- <button type="button" id="`+B+'" class="gray right" style="display:'+M+`">
- `+y.i18next.t("menus.panelMenus.link.取消链接")+`
- </button>
- </div>
- </div>`,events:[{selector:"#"+S,type:"click",fn:function(){var R,O,X,U,Z,L=y.selection.getSelectionContainerElem(),Q=L?.elems[0];y.selection.restoreSelection();var W=y.selection.getSelectionRangeTopNodes()[0].getNode(),G=window.getSelection(),te=x.default("#"+A),le=x.default("#"+C),ye=(0,p.default)(R=te.val()).call(R),fe=(0,p.default)(O=le.val()).call(O),oe="";G&&!(G!=null&&G.isCollapsed)&&(oe=(U=b.insertHtml(G,W))===null||U===void 0?void 0:(0,p.default)(U).call(U));var ce=oe?.replace(/<.*?>/g,""),se=(Z=ce?.length)!==null&&Z!==void 0?Z:0;if(se<=fe.length){var be=fe.substring(0,se),we=fe.substring(se);ce===be&&(fe=ce+we)}if(ye&&(fe||(fe=ye),!!I(fe,ye))){if(Q?.nodeName==="A")return Q.setAttribute("href",ye),Q.innerText=fe,!0;if(Q?.nodeName!=="A"&&(0,c.default)(X=k.EXTRA_TAG).call(X,Q.nodeName)){var Te=k.getParentNodeA(L);if(Te)return Te.setAttribute("href",ye),Q.innerText=fe,!0}return w(fe,ye),!0}},bindEnter:!0},{selector:"#"+B,type:"click",fn:function(){return D(),!0}}]}],setLinkValue:function(R,O){var X="",U="",Z;O==="text"&&(X="#"+C,U=h),O==="link"&&(X="#"+A,U=g),Z=(0,m.default)(R).call(R,X).elems[0],Z.value=U}};return j}i.default=F},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0}),i.insertHtml=i.createPartHtml=i.makeHtmlString=i.getTopNode=void 0;function p(b,F){var y=b,h=b;do{if(y.textContent===F)break;h=y,y.parentNode&&(y=y?.parentNode)}while(y?.nodeName!=="P");return h}i.getTopNode=p;function m(b,F){var y=b.nodeName,h="";if(b.nodeType===3||/^(h|H)[1-6]$/.test(y))return F;if(b.nodeType===1){var g=b.getAttribute("style"),A=b.getAttribute("face"),C=b.getAttribute("color");g&&(h=h+(' style="'+g+'"')),A&&(h=h+(' face="'+A+'"')),C&&(h=h+(' color="'+C+'"'))}return y=y.toLowerCase(),"<"+y+h+">"+F+"</"+y+">"}i.makeHtmlString=m;function v(b,F,y,h){var g,A=(g=F.textContent)===null||g===void 0?void 0:g.substring(y,h),C=F,S="";do S=m(C,A??""),A=S,C=C?.parentElement;while(C&&C.textContent!==b);return S}i.createPartHtml=v;function _(b,F){var y,h,g,A,C,S=b.anchorNode,B=b.focusNode,M=b.anchorOffset,N=b.focusOffset,V=(y=F.textContent)!==null&&y!==void 0?y:"",w=x(F),D="",I="",j="",R="",O=S,X=B,U=S;if(S!=null&&S.isEqualNode(B??null)){var Z=v(V,S,M,N);return Z=k(w,Z),Z}for(S&&(I=v(V,S,M??0)),B&&(R=v(V,B,0,N)),S&&(O=p(S,V)),B&&(X=p(B,V)),U=(h=O?.nextSibling)!==null&&h!==void 0?h:S;!(U!=null&&U.isEqualNode(X??null));){var L=U?.nodeName;if(L==="#text")j=j+U?.textContent;else{var Q=(A=(g=U?.firstChild)===null||g===void 0?void 0:g.parentElement)===null||A===void 0?void 0:A.innerHTML;U&&(j=j+m(U,Q??""))}var W=(C=U?.nextSibling)!==null&&C!==void 0?C:U;if(W===U)break;U=W}return D=""+I+j+R,D=k(w,D),D}i.insertHtml=_;function x(b){for(var F,y=(F=b.textContent)!==null&&F!==void 0?F:"",h=[];b?.textContent===y;)b.nodeName!=="P"&&b.nodeName!=="TABLE"&&h.push(b),b=b.childNodes[0];return h}function k(b,F){return(0,c.default)(b).call(b,function(y){F=m(y,F)}),F}},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(325));function m(v){p.default(v)}i.default=m},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(28));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=p.__importDefault(n(39)),_=n(96);function x(b){var F;function y(g){var A=[{$elem:m.default("<span>"+b.i18next.t("menus.panelMenus.link.查看链接")+"</span>"),onClick:function(C,S){var B=S.attr("href");return window.open(B,"_target"),!0}},{$elem:m.default("<span>"+b.i18next.t("menus.panelMenus.link.取消链接")+"</span>"),onClick:function(C,S){var B,M;C.selection.createRangeByElem(S),C.selection.restoreSelection();var N=S.childNodes();if(N?.getNodeName()==="IMG"){var V=(M=(B=C.selection.getSelectionContainerElem())===null||B===void 0?void 0:B.children())===null||M===void 0?void 0:M.elems[0].children[0];C.cmd.do("insertHTML",`<img
- src=`+V?.getAttribute("src")+`
- style=`+V?.getAttribute("style")+">")}else{var w,D=S.elems[0],I=D.innerHTML,j=D.parentElement;j&&(0,c.default)(w=_.EXTRA_TAG).call(w,j.nodeName)?j.innerHTML=I:C.cmd.do("insertHTML","<span>"+I+"</span>")}return!0}}];F=new v.default(b,g,A),F.create()}function h(){F&&(F.remove(),F=null)}return{showLinkTooltip:y,hideLinkTooltip:h}}function k(b){var F=x(b),y=F.showLinkTooltip,h=F.hideLinkTooltip;b.txt.eventHooks.linkClickEvents.push(y),b.txt.eventHooks.clickEvents.push(h),b.txt.eventHooks.keyupEvents.push(h),b.txt.eventHooks.toolbarClickEvents.push(h),b.txt.eventHooks.menuClickEvents.push(h),b.txt.eventHooks.textScrollEvents.push(h)}i.default=k},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(23)),m=c.__importDefault(n(3)),v=function(_){c.__extends(x,_);function x(k){var b=this,F=m.default(`<div class="w-e-menu" data-title="斜体">
- <i class="w-e-icon-italic"></i>
- </div>`);return b=_.call(this,F,k)||this,b}return x.prototype.clickHandler=function(){var k=this.editor,b=k.selection.isSelectionEmpty();b&&k.selection.createEmptyRange(),k.cmd.do("italic"),b&&(k.selection.collapseRange(),k.selection.restoreSelection())},x.prototype.tryChangeActive=function(){var k=this.editor;k.cmd.queryCommandState("italic")?this.active():this.unActive()},x}(p.default);i.default=v},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(23)),m=c.__importDefault(n(3)),v=function(_){c.__extends(x,_);function x(k){var b=this,F=m.default(`<div class="w-e-menu" data-title="下划线">
- <i class="w-e-icon-underline"></i>
- </div>`);return b=_.call(this,F,k)||this,b}return x.prototype.clickHandler=function(){var k=this.editor,b=k.selection.isSelectionEmpty();b&&k.selection.createEmptyRange(),k.cmd.do("underline"),b&&(k.selection.collapseRange(),k.selection.restoreSelection())},x.prototype.tryChangeActive=function(){var k=this.editor;k.cmd.queryCommandState("underline")?this.active():this.unActive()},x}(p.default);i.default=v},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(23)),m=c.__importDefault(n(3)),v=function(_){c.__extends(x,_);function x(k){var b=this,F=m.default(`<div class="w-e-menu" data-title="删除线">
- <i class="w-e-icon-strikethrough"></i>
- </div>`);return b=_.call(this,F,k)||this,b}return x.prototype.clickHandler=function(){var k=this.editor,b=k.selection.isSelectionEmpty();b&&k.selection.createEmptyRange(),k.cmd.do("strikeThrough"),b&&(k.selection.collapseRange(),k.selection.restoreSelection())},x.prototype.tryChangeActive=function(){var k=this.editor;k.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},x}(p.default);i.default=v},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(24)),m=c.__importDefault(n(3)),v=c.__importDefault(n(330)),_=function(x){c.__extends(k,x);function k(b){var F=this,y=m.default(`<div class="w-e-menu" data-title="字体">
- <i class="w-e-icon-font"></i>
- </div>`),h=new v.default(b.config.fontNames),g={width:100,title:"设置字体",type:"list",list:h.getItemList(),clickHandler:function(A){F.command(A)}};return F=x.call(this,y,b,g)||this,F}return k.prototype.command=function(b){var F,y=this.editor,h=y.selection.isSelectionEmpty(),g=(F=y.selection.getSelectionContainerElem())===null||F===void 0?void 0:F.elems[0];if(g!=null){var A=g?.nodeName.toLowerCase()!=="p",C=g?.getAttribute("face")===b;if(h){if(A&&!C){var S=y.selection.getSelectionRangeTopNodes();y.selection.createRangeByElem(S[0]),y.selection.moveCursor(S[0].elems[0])}y.selection.setRangeToElem(g),y.selection.createEmptyRange()}y.cmd.do("fontName",b),h&&(y.selection.collapseRange(),y.selection.restoreSelection())}},k.prototype.tryChangeActive=function(){},k}(p.default);i.default=_},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=function(){function _(x){var k=this;this.itemList=[],(0,c.default)(x).call(x,function(b){var F=typeof b=="string"?b:b.value,y=typeof b=="string"?b:b.name;k.itemList.push({$elem:m.default(`<p style="font-family:'`+F+`'">`+y+"</p>"),value:y})})}return _.prototype.getItemList=function(){return this.itemList},_}();i.default=v},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(24)),m=c.__importDefault(n(3)),v=c.__importDefault(n(332)),_=function(x){c.__extends(k,x);function k(b){var F=this,y=m.default(`<div class="w-e-menu" data-title="字号">
- <i class="w-e-icon-text-heigh"></i>
- </div>`),h=new v.default(b.config.fontSizes),g={width:160,title:"设置字号",type:"list",list:h.getItemList(),clickHandler:function(A){F.command(A)}};return F=x.call(this,y,b,g)||this,F}return k.prototype.command=function(b){var F,y=this.editor,h=y.selection.isSelectionEmpty(),g=(F=y.selection.getSelectionContainerElem())===null||F===void 0?void 0:F.elems[0];g!=null&&(y.cmd.do("fontSize",b),h&&(y.selection.collapseRange(),y.selection.restoreSelection()))},k.prototype.tryChangeActive=function(){},k}(p.default);i.default=_},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(3)),m=function(){function v(_){this.itemList=[];for(var x in _){var k=_[x];this.itemList.push({$elem:p.default('<p style="font-size:'+x+'">'+k.name+"</p>"),value:k.value})}}return v.prototype.getItemList=function(){return this.itemList},v}();i.default=m},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4)),p=l(n(27));(0,f.default)(i,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(24)),_=m.__importDefault(n(3)),x=["LI"],k=["BLOCKQUOTE"],b=function(F){m.__extends(y,F);function y(h){var g=this,A=_.default('<div class="w-e-menu" data-title="对齐"><i class="w-e-icon-paragraph-left"></i></div>'),C={width:100,title:"对齐方式",type:"list",list:[{$elem:_.default(`<p>
- <i class="w-e-icon-paragraph-left w-e-drop-list-item"></i>
- `+h.i18next.t("menus.dropListMenu.justify.靠左")+`
- </p>`),value:"left"},{$elem:_.default(`<p>
- <i class="w-e-icon-paragraph-center w-e-drop-list-item"></i>
- `+h.i18next.t("menus.dropListMenu.justify.居中")+`
- </p>`),value:"center"},{$elem:_.default(`<p>
- <i class="w-e-icon-paragraph-right w-e-drop-list-item"></i>
- `+h.i18next.t("menus.dropListMenu.justify.靠右")+`
- </p>`),value:"right"},{$elem:_.default(`<p>
- <i class="w-e-icon-paragraph-justify w-e-drop-list-item"></i>
- `+h.i18next.t("menus.dropListMenu.justify.两端")+`
- </p>`),value:"justify"}],clickHandler:function(S){g.command(S)}};return g=F.call(this,A,h,C)||this,g}return y.prototype.command=function(h){var g=this.editor,A=g.selection,C=A.getSelectionContainerElem();A.saveRange();var S=g.selection.getSelectionRangeTopNodes();if(C!=null&&C.length)if(this.isSpecialNode(C,S[0])||this.isSpecialTopNode(S[0])){var B=this.getSpecialNodeUntilTop(C,S[0]);if(B==null)return;_.default(B).css("text-align",h)}else(0,c.default)(S).call(S,function(M){M.css("text-align",h)});A.restoreSelection()},y.prototype.getSpecialNodeUntilTop=function(h,g){for(var A=h.elems[0],C=g.elems[0];A!=null;){if((0,p.default)(x).call(x,A?.nodeName)!==-1||A.parentNode===C)return A;A=A.parentNode}return A},y.prototype.isSpecialNode=function(h,g){var A=this.getSpecialNodeUntilTop(h,g);return A==null?!1:(0,p.default)(x).call(x,A.nodeName)!==-1},y.prototype.isSpecialTopNode=function(h){var g;return h==null?!1:(0,p.default)(k).call(k,(g=h.elems[0])===null||g===void 0?void 0:g.nodeName)!==-1},y.prototype.tryChangeActive=function(){},y}(v.default);i.default=b},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=p.__importDefault(n(23)),_=p.__importDefault(n(335)),x=p.__importDefault(n(336)),k=n(7),b=function(F){p.__extends(y,F);function y(h){var g=this,A=m.default(`<div class="w-e-menu" data-title="引用">
- <i class="w-e-icon-quotes-left"></i>
- </div>`);return g=F.call(this,A,h)||this,_.default(h),g}return y.prototype.clickHandler=function(){var h,g,A=this.editor,C=A.selection.isSelectionEmpty(),S=A.selection.getSelectionRangeTopNodes(),B=S[S.length-1],M=this.getTopNodeName();if(M==="BLOCKQUOTE"){var N=m.default(B.childNodes()),V=N.length,w=B;(0,c.default)(N).call(N,function(R){var O=m.default(R);O.insertAfter(w),w=O}),B.remove(),A.selection.moveCursor(N.elems[V-1]),this.tryChangeActive()}else{var D=x.default(S);if(A.$textElem.equal(B)){var I=(h=A.selection.getSelectionContainerElem())===null||h===void 0?void 0:h.elems[0];A.selection.createRangeByElems(I.children[0],I.children[0]),S=A.selection.getSelectionRangeTopNodes(),D=x.default(S),B.append(D)}else D.insertAfter(B);this.delSelectNode(S);var j=(g=D.childNodes())===null||g===void 0?void 0:g.last().getNode();if(j==null)return;j.textContent?A.selection.moveCursor(j):A.selection.moveCursor(j,0),this.tryChangeActive(),m.default(k.EMPTY_P).insertAfter(D);return}C&&(A.selection.collapseRange(),A.selection.restoreSelection())},y.prototype.tryChangeActive=function(){var h,g=this.editor,A=(h=g.selection.getSelectionRangeTopNodes()[0])===null||h===void 0?void 0:h.getNodeName();A==="BLOCKQUOTE"?this.active():this.unActive()},y.prototype.getTopNodeName=function(){var h=this.editor,g=h.selection.getSelectionRangeTopNodes()[0],A=g?.getNodeName();return A},y.prototype.delSelectNode=function(h){(0,c.default)(h).call(h,function(g){g.remove()})},y}(v.default);i.default=b},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=n(7),m=c.__importDefault(n(3));function v(_){function x(k){var b,F=_.selection.getSelectionContainerElem(),y=_.selection.getSelectionRangeTopNodes()[0];if(y?.getNodeName()==="BLOCKQUOTE"){if(F.getNodeName()==="BLOCKQUOTE"){var h=(b=F.childNodes())===null||b===void 0?void 0:b.getNode();_.selection.moveCursor(h)}if(F.text()===""){k.preventDefault(),F.remove();var g=m.default(p.EMPTY_P);g.insertAfter(y),_.selection.moveCursor(g.getNode(),0)}y.text()===""&&y.remove()}}_.txt.eventHooks.enterDownEvents.push(x)}i.default=v},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3));function v(_){var x=m.default("<blockquote></blockquote>");return(0,c.default)(_).call(_,function(k){x.append(k.clone(!0))}),x}i.default=v},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(26));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(24)),v=p.__importDefault(n(3)),_=n(6),x=function(k){p.__extends(b,k);function b(F){var y,h=this,g=v.default(`<div class="w-e-menu" data-title="背景色">
- <i class="w-e-icon-paint-brush"></i>
- </div>`),A={width:120,title:"背景颜色",type:"inline-block",list:(0,c.default)(y=F.config.colors).call(y,function(C){return{$elem:v.default('<i style="color:'+C+';" class="w-e-icon-paint-brush"></i>'),value:C}}),clickHandler:function(C){h.command(C)}};return h=k.call(this,g,F,A)||this,h}return b.prototype.command=function(F){var y,h=this.editor,g=h.selection.isSelectionEmpty(),A=(y=h.selection.getSelectionContainerElem())===null||y===void 0?void 0:y.elems[0];if(A!=null){var C=A?.nodeName.toLowerCase()!=="p",S=A?.style.backgroundColor,B=_.hexToRgb(F)===S;if(g){if(C&&!B){var M=h.selection.getSelectionRangeTopNodes();h.selection.createRangeByElem(M[0]),h.selection.moveCursor(M[0].elems[0])}h.selection.createEmptyRange()}h.cmd.do("backColor",F),g&&(h.selection.collapseRange(),h.selection.restoreSelection())}},b.prototype.tryChangeActive=function(){},b}(m.default);i.default=x},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(26));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(24)),v=p.__importDefault(n(3)),_=function(x){p.__extends(k,x);function k(b){var F,y=this,h=v.default(`<div class="w-e-menu" data-title="文字颜色">
- <i class="w-e-icon-pencil2"></i>
- </div>`),g={width:120,title:"文字颜色",type:"inline-block",list:(0,c.default)(F=b.config.colors).call(F,function(A){return{$elem:v.default('<i style="color:'+A+';" class="w-e-icon-pencil2"></i>'),value:A}}),clickHandler:function(A){y.command(A)}};return y=x.call(this,h,b,g)||this,y}return k.prototype.command=function(b){var F,y=this.editor,h=y.selection.isSelectionEmpty(),g=(F=y.selection.getSelectionContainerElem())===null||F===void 0?void 0:F.elems[0];if(g!=null){var A=y.selection.getSelectionText();if(g.nodeName==="A"&&g.textContent===A){var C=v.default("<span>​</span>").getNode();g.appendChild(C)}y.cmd.do("foreColor",b),h&&(y.selection.collapseRange(),y.selection.restoreSelection())}},k.prototype.tryChangeActive=function(){},k}(m.default);i.default=_},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(33)),v=c.__importDefault(n(38)),_=c.__importDefault(n(340)),x=c.__importDefault(n(346)),k=function(b){c.__extends(F,b);function F(y){var h=this,g=p.default(`<div class="w-e-menu" data-title="视频">
- <i class="w-e-icon-play"></i>
- </div>`);return h=b.call(this,g,y)||this,x.default(y),h}return F.prototype.clickHandler=function(){this.createPanel("")},F.prototype.createPanel=function(y){var h=_.default(this.editor,y),g=new m.default(this,h);g.create()},F.prototype.tryChangeActive=function(){},F}(v.default);i.default=k},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(17));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=n(6),v=p.__importDefault(n(3)),_=p.__importDefault(n(341)),x=n(7);function k(b,F){var y=b.config,h=new _.default(b),g=m.getRandom("input-iframe"),A=m.getRandom("btn-ok"),C=m.getRandom("input-upload"),S=m.getRandom("btn-local-ok");function B(w){b.cmd.do("insertHTML",w+x.EMPTY_P),b.config.onlineVideoCallback(w)}function M(w){var D=b.config.onlineVideoCheck(w);return D===!0?!0:(typeof D=="string"&&b.config.customAlert(D,"error"),!1)}var N=[{title:b.i18next.t("menus.panelMenus.video.上传视频"),tpl:`<div class="w-e-up-video-container">
- <div id="`+S+`" class="w-e-up-btn">
- <i class="w-e-icon-upload2"></i>
- </div>
- <div style="display:none;">
- <input id="`+C+`" type="file" accept="video/*"/>
- </div>
- </div>`,events:[{selector:"#"+S,type:"click",fn:function(){var w=v.default("#"+C),D=w.elems[0];if(D)D.click();else return!0}},{selector:"#"+C,type:"change",fn:function(){var w=v.default("#"+C),D=w.elems[0];if(!D)return!0;var I=D.files;return I.length&&h.uploadVideo(I),!0}}]},{title:b.i18next.t("menus.panelMenus.video.插入视频"),tpl:`<div>
- <input
- id="`+g+`"
- type="text"
- class="block"
- placeholder="`+b.i18next.t("如")+`:<iframe src=... ></iframe>"/>
- </td>
- <div class="w-e-button-container">
- <button type="button" id="`+A+`" class="right">
- `+b.i18next.t("插入")+`
- </button>
- </div>
- </div>`,events:[{selector:"#"+A,type:"click",fn:function(){var w,D=v.default("#"+g),I=(0,c.default)(w=D.val()).call(w);if(I&&M(I))return B(I),!0},bindEnter:!0}]}],V={width:300,height:0,tabs:[]};return window.FileReader&&(y.uploadVideoServer||y.customUploadVideo)&&V.tabs.push(N[0]),y.showLinkVideo&&V.tabs.push(N[1]),V}i.default=k},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(133)),p=l(n(57)),m=l(n(4)),v=l(n(27));(0,f.default)(i,"__esModule",{value:!0});var _=n(2),x=n(6),k=_.__importDefault(n(135)),b=_.__importDefault(n(136)),F=n(7),y=n(6),h=function(){function g(A){this.editor=A}return g.prototype.uploadVideo=function(A){var C=this;if(A.length){var S=this.editor,B=S.config,M="validate.",N=function(ce){return S.i18next.t(M+ce)},V=B.uploadVideoServer,w=B.uploadVideoMaxSize,D=w/1024,I=B.uploadVideoName,j=B.uploadVideoParams,R=B.uploadVideoParamsWithUrl,O=B.uploadVideoHeaders,X=B.uploadVideoHooks,U=B.uploadVideoTimeout,Z=B.withVideoCredentials,L=B.customUploadVideo,Q=B.uploadVideoAccept,W=[],G=[];if(x.arrForEach(A,function(ce){var se=ce.name,be=ce.size/1024/1024;if(!(!se||!be)){if(!(Q instanceof Array)){G.push("【"+Q+"】"+N("uploadVideoAccept 不是Array"));return}if(!(0,c.default)(Q).call(Q,function(we){return we===se.split(".")[se.split(".").length-1]})){G.push("【"+se+"】"+N("不是视频"));return}if(D<be){G.push("【"+se+"】"+N("大于")+" "+D+"M");return}W.push(ce)}}),G.length){B.customAlert(N("视频验证未通过")+`:
- `+G.join(`
- `),"warning");return}if(W.length===0){B.customAlert(N("传入的文件不合法"),"warning");return}if(L&&typeof L=="function"){var te;L(W,(0,p.default)(te=this.insertVideo).call(te,this));return}var le=new FormData;if((0,m.default)(W).call(W,function(ce,se){var be=I||ce.name;W.length>1&&(be=be+(se+1)),le.append(be,ce)}),V){var ye=V.split("#");V=ye[0];var fe=ye[1]||"";(0,m.default)(x).call(x,j,function(ce,se){R&&((0,v.default)(V).call(V,"?")>0?V+="&":V+="?",V=V+ce+"="+se),le.append(ce,se)}),fe&&(V+="#"+fe);var oe=k.default(V,{timeout:U,formData:le,headers:O,withCredentials:!!Z,beforeSend:function(ce){if(X.before)return X.before(ce,S,W)},onTimeout:function(ce){B.customAlert(N("上传视频超时"),"error"),X.timeout&&X.timeout(ce,S)},onProgress:function(ce,se){var be=new b.default(S);se.lengthComputable&&(ce=se.loaded/se.total,be.show(ce))},onError:function(ce){B.customAlert(N("上传视频错误"),"error",N("上传视频错误")+","+N("服务器返回状态")+": "+ce.status),X.error&&X.error(ce,S)},onFail:function(ce,se){B.customAlert(N("上传视频失败"),"error",N("上传视频返回结果错误")+(","+N("返回结果")+": ")+se),X.fail&&X.fail(ce,S,se)},onSuccess:function(ce,se){if(X.customInsert){var be;X.customInsert((0,p.default)(be=C.insertVideo).call(be,C),se,S);return}if(se.errno!="0"){B.customAlert(N("上传视频失败"),"error",N("上传视频返回结果错误")+","+N("返回结果")+" errno="+se.errno),X.fail&&X.fail(ce,S,se);return}var we=se.data;C.insertVideo(we.url),X.success&&X.success(ce,S,se)}});typeof oe=="string"&&B.customAlert(oe,"error")}}},g.prototype.insertVideo=function(A){var C=this.editor,S=C.config,B="validate.",M=function(V,w){return w===void 0&&(w=B),C.i18next.t(w+V)};if(!S.customInsertVideo)y.UA.isFirefox?C.cmd.do("insertHTML",'<p data-we-video-p="true"><video src="'+A+'" controls="controls" style="max-width:100%"></video></p><p>​</p>'):C.cmd.do("insertHTML",'<video src="'+A+'" controls="controls" style="max-width:100%"></video>'+F.EMPTY_P);else{S.customInsertVideo(A);return}var N=document.createElement("video");N.onload=function(){N=null},N.onerror=function(){S.customAlert(M("插入视频错误"),"error","wangEditor: "+M("插入视频错误")+","+M("视频链接")+' "'+A+'",'+M("下载链接失败")),N=null},N.onabort=function(){return N=null},N.src=A},g}();i.default=h},function(o,i,n){o.exports=n(343)},function(o,i,n){var l=n(344);o.exports=l},function(o,i,n){n(345);var l=n(9);o.exports=l.Date.now},function(o,i,n){var l=n(5);l({target:"Date",stat:!0},{now:function(){return new Date().getTime()}})},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(347)),m=c.__importDefault(n(349));function v(_){p.default(_),m.default(_)}i.default=v},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0}),i.createShowHideFn=void 0;var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(39)),v=c.__importDefault(n(348));function _(k){var b,F=function(g,A){return A===void 0&&(A=""),k.i18next.t(A+g)};function y(g){var A=[{$elem:p.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(C,S){return S.remove(),!0}},{$elem:p.default("<span>100%</span>"),onClick:function(C,S){return S.attr("width","100%"),S.removeAttr("height"),!0}},{$elem:p.default("<span>50%</span>"),onClick:function(C,S){return S.attr("width","50%"),S.removeAttr("height"),!0}},{$elem:p.default("<span>30%</span>"),onClick:function(C,S){return S.attr("width","30%"),S.removeAttr("height"),!0}},{$elem:p.default("<span>"+F("重置")+"</span>"),onClick:function(C,S){return S.removeAttr("width"),S.removeAttr("height"),!0}},{$elem:p.default("<span>"+F("menus.justify.靠左")+"</span>"),onClick:function(C,S){return v.default(S,"left"),!0}},{$elem:p.default("<span>"+F("menus.justify.居中")+"</span>"),onClick:function(C,S){return v.default(S,"center"),!0}},{$elem:p.default("<span>"+F("menus.justify.靠右")+"</span>"),onClick:function(C,S){return v.default(S,"right"),!0}}];b=new m.default(k,g,A),b.create()}function h(){b&&(b.remove(),b=null)}return{showVideoTooltip:y,hideVideoTooltip:h}}i.createShowHideFn=_;function x(k){var b=_(k),F=b.showVideoTooltip,y=b.hideVideoTooltip;k.txt.eventHooks.videoClickEvents.push(F),k.txt.eventHooks.clickEvents.push(y),k.txt.eventHooks.keyupEvents.push(y),k.txt.eventHooks.toolbarClickEvents.push(y),k.txt.eventHooks.menuClickEvents.push(y),k.txt.eventHooks.textScrollEvents.push(y),k.txt.eventHooks.changeEvents.push(y)}i.default=x},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(28));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3));function v(x,k){var b=["P"],F=_(x,b);F&&m.default(F).css("text-align",k)}i.default=v;function _(x,k){for(var b,F=x.elems[0];F!=null;){if((0,c.default)(k).call(k,F?.nodeName))return F;if(((b=F?.parentNode)===null||b===void 0?void 0:b.nodeName)==="BODY")return null;F=F.parentNode}return F}},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(6);function p(m){if(c.UA.isFirefox){var v=m.txt,_=m.selection,x=v.eventHooks.keydownEvents;x.push(function(k){var b=_.getSelectionContainerElem();if(b){var F=b.getNodeTop(m),y=F.length&&F.prev().length?F.prev():null;y&&y.attr("data-we-video-p")&&_.getCursorPos()===0&&k.keyCode===8&&y.remove()}})}}i.default=p},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(26));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=n(7),v=p.__importDefault(n(3)),_=p.__importDefault(n(33)),x=p.__importDefault(n(38)),k=p.__importDefault(n(351)),b=p.__importDefault(n(364)),F=function(y){p.__extends(h,y);function h(g){var A=this,C=v.default('<div class="w-e-menu" data-title="图片"><i class="w-e-icon-image"></i></div>'),S=b.default(g);if(S.onlyUploadConf){var B;C=S.onlyUploadConf.$elem,(0,c.default)(B=S.onlyUploadConf.events).call(B,function(M){var N=M.type,V=M.fn||m.EMPTY_FN;C.on(N,function(w){w.stopPropagation(),V(w)})})}return A=y.call(this,C,g)||this,A.imgPanelConfig=S,k.default(g),A}return h.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},h.prototype.createPanel=function(){var g=this.imgPanelConfig,A=new _.default(this,g);this.setPanel(A),A.create()},h.prototype.tryChangeActive=function(){},h}(x.default);i.default=F},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(352)),m=c.__importDefault(n(353)),v=c.__importDefault(n(354)),_=c.__importDefault(n(362)),x=c.__importDefault(n(363));function k(b){p.default(b),m.default(b),v.default(b),_.default(b),x.default(b)}i.default=k},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=n(131),m=c.__importDefault(n(97));function v(b,F){var y=b.config,h=y.pasteFilterStyle,g=y.pasteIgnoreImg,A=p.getPasteHtml(F,h,g);if(A)return!0;var C=p.getPasteText(F);return!!C}function _(b,F){for(var y,h=((y=F.clipboardData)===null||y===void 0?void 0:y.types)||[],g=0;g<h.length;g++){var A=h[g];if(A==="Files")return!0}return!1}function x(b,F){if(!(!_(F,b)&&v(F,b))){var y=p.getPasteImgs(b);if(y.length){var h=new m.default(F);h.uploadImg(y)}}}function k(b){b.txt.eventHooks.pasteEvents.unshift(function(F){x(F,b)})}i.default=k},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(97));function m(v){function _(x){var k=x.dataTransfer&&x.dataTransfer.files;if(!(!k||!k.length)){var b=new p.default(v);b.uploadImg(k)}}v.txt.eventHooks.dropEvents.push(_)}i.default=m},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(29)),p=l(n(355));(0,f.default)(i,"__esModule",{value:!0}),i.createShowHideFn=void 0;var m=n(2),v=m.__importDefault(n(3));n(360);var _=n(6);function x(h,g,A,C,S){h.attr("style","width:"+g+"px; height:"+A+"px; left:"+C+"px; top:"+S+"px;")}function k(h,g){var A=v.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 A.hide(),g.append(A),A}function b(h,g,A){var C=h.getBoundingClientRect(),S=A.getBoundingClientRect(),B=S.width.toFixed(2),M=S.height.toFixed(2);(0,c.default)(g).call(g,".w-e-img-drag-show-size").text(B+"px * "+M+"px"),x(g,(0,p.default)(B),(0,p.default)(M),S.left-C.left,S.top-C.top),g.show()}function F(h){var g=h.$textContainerElem,A,C=k(h,g);function S(N,V){N.on("click",function(w){w.stopPropagation()}),N.on("mousedown",".w-e-img-drag-rb",function(w){if(w.preventDefault(),!A)return;var D=w.clientX,I=w.clientY,j=V.getBoundingClientRect(),R=A.getBoundingClientRect(),O=R.width,X=R.height,U=R.left-j.left,Z=R.top-j.top,L=O/X,Q=O,W=X,G=v.default(document);function te(){G.off("mousemove",le),G.off("mouseup",ye)}function le(fe){fe.stopPropagation(),fe.preventDefault(),Q=O+(fe.clientX-D),W=X+(fe.clientY-I),Q/W!=L&&(W=Q/L),Q=(0,p.default)(Q.toFixed(2)),W=(0,p.default)(W.toFixed(2)),(0,c.default)(N).call(N,".w-e-img-drag-show-size").text(Q.toFixed(2).replace(".00","")+"px * "+W.toFixed(2).replace(".00","")+"px"),x(N,Q,W,U,Z)}G.on("mousemove",le);function ye(){A.attr("width",Q+""),A.attr("height",W+"");var fe=A.getBoundingClientRect();x(N,Q,W,fe.left-j.left,fe.top-j.top),te()}G.on("mouseup",ye),G.on("mouseleave",te)})}function B(N){if(_.UA.isIE())return!1;N&&(A=N,b(g,C,A))}function M(){(0,c.default)(g).call(g,".w-e-img-drag-mask").hide()}return S(C,g),v.default(document).on("click",M),h.beforeDestroy(function(){v.default(document).off("click",M)}),{showDrag:B,hideDrag:M}}i.createShowHideFn=F;function y(h){var g=F(h),A=g.showDrag,C=g.hideDrag;h.txt.eventHooks.imgClickEvents.push(A),h.txt.eventHooks.textScrollEvents.push(C),h.txt.eventHooks.keyupEvents.push(C),h.txt.eventHooks.toolbarClickEvents.push(C),h.txt.eventHooks.menuClickEvents.push(C),h.txt.eventHooks.changeEvents.push(C)}i.default=y},function(o,i,n){o.exports=n(356)},function(o,i,n){var l=n(357);o.exports=l},function(o,i,n){n(358);var l=n(9);o.exports=l.parseFloat},function(o,i,n){var l=n(5),f=n(359);l({global:!0,forced:parseFloat!=f},{parseFloat:f})},function(o,i,n){var l=n(8),f=n(90).trim,c=n(68),p=l.parseFloat,m=1/p(c+"-0")!==-1/0;o.exports=m?function(v){var _=f(String(v)),x=p(_);return x===0&&_.charAt(0)=="-"?-0:x}:p},function(o,i,n){var l=n(20),f=n(361);f=f.__esModule?f.default:f,typeof f=="string"&&(f=[[o.i,f,""]]);var c={};c.insert="head",c.singleton=!1,l(f,c),o.exports=f.locals||{}},function(o,i,n){var l=n(21);i=l(!1),i.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=i},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0}),i.createShowHideFn=void 0;var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(39));function v(x){var k,b=function(h,g){return g===void 0&&(g=""),x.i18next.t(g+h)};function F(h){var g=[{$elem:p.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(A,C){return A.selection.createRangeByElem(C),A.selection.restoreSelection(),A.cmd.do("delete"),!0}},{$elem:p.default("<span>30%</span>"),onClick:function(A,C){return C.attr("width","30%"),C.removeAttr("height"),!0}},{$elem:p.default("<span>50%</span>"),onClick:function(A,C){return C.attr("width","50%"),C.removeAttr("height"),!0}},{$elem:p.default("<span>100%</span>"),onClick:function(A,C){return C.attr("width","100%"),C.removeAttr("height"),!0}}];g.push({$elem:p.default("<span>"+b("重置")+"</span>"),onClick:function(A,C){return C.removeAttr("width"),C.removeAttr("height"),!0}}),h.attr("data-href")&&g.push({$elem:p.default("<span>"+b("查看链接")+"</span>"),onClick:function(A,C){var S=C.attr("data-href");return S&&(S=decodeURIComponent(S),window.open(S,"_target")),!0}}),k=new m.default(x,h,g),k.create()}function y(){k&&(k.remove(),k=null)}return{showImgTooltip:F,hideImgTooltip:y}}i.createShowHideFn=v;function _(x){var k=v(x),b=k.showImgTooltip,F=k.hideImgTooltip;x.txt.eventHooks.imgClickEvents.push(b),x.txt.eventHooks.clickEvents.push(F),x.txt.eventHooks.keyupEvents.push(F),x.txt.eventHooks.toolbarClickEvents.push(F),x.txt.eventHooks.menuClickEvents.push(F),x.txt.eventHooks.textScrollEvents.push(F),x.txt.eventHooks.imgDragBarMouseDownEvents.push(F),x.txt.eventHooks.changeEvents.push(F)}i.default=_},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});function c(p){var m=p.txt,v=p.selection,_=m.eventHooks.keydownEvents;_.push(function(x){var k=v.getSelectionContainerElem(),b=v.getRange();if(!(!b||!k||x.keyCode!==8||!v.isSelectionEmpty())){var F=b.startContainer,y=b.startOffset,h=null;if(y===0)for(;F!==k.elems[0]&&k.elems[0].contains(F)&&F.parentNode&&!h;){if(F.previousSibling){h=F.previousSibling;break}F=F.parentNode}else F.nodeType!==3&&(h=F.childNodes[y-1]);if(h){for(var g=h;g.childNodes.length;)g=g.childNodes[g.childNodes.length-1];g instanceof HTMLElement&&g.tagName==="IMG"&&(g.remove(),x.preventDefault())}}})}i.default=c},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(26)),p=l(n(17));(0,f.default)(i,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(3)),_=n(6),x=m.__importDefault(n(97));function k(b){var F,y=b.config,h=new x.default(b),g=_.getRandom("up-trigger-id"),A=_.getRandom("up-file-id"),C=_.getRandom("input-link-url"),S=_.getRandom("input-link-url-alt"),B=_.getRandom("input-link-url-href"),M=_.getRandom("btn-link"),N="menus.panelMenus.image.",V=function(Z,L){return L===void 0&&(L=N),b.i18next.t(L+Z)};function w(Z,L,Q){var W=y.linkImgCheck(Z);return W===!0?!0:(typeof W=="string"&&y.customAlert(W,"error"),!1)}var D=y.uploadImgMaxLength===1?"":'multiple="multiple"',I=(0,c.default)(F=y.uploadImgAccept).call(F,function(Z){return"image/"+Z}).join(","),j=function(Z,L,Q){return'<div class="'+Z+'" data-title="'+Q+`">
- <div id="`+g+`" class="w-e-up-btn">
- <i class="`+L+`"></i>
- </div>
- <div style="display:none;">
- <input id="`+A+'" type="file" '+D+' accept="'+I+`"/>
- </div>
- </div>`},R=[{selector:"#"+g,type:"click",fn:function(){var Z=y.uploadImgFromMedia;if(Z&&typeof Z=="function")return Z(),!0;var L=v.default("#"+A),Q=L.elems[0];if(Q)Q.click();else return!0}},{selector:"#"+A,type:"change",fn:function(){var Z=v.default("#"+A),L=Z.elems[0];if(!L)return!0;var Q=L.files;return Q!=null&&Q.length&&h.uploadImg(Q),L&&(L.value=""),!0}}],O=[`<input
- id="`+C+`"
- type="text"
- class="block"
- placeholder="`+V("图片地址")+'"/>'];y.showLinkImgAlt&&O.push(`
- <input
- id="`+S+`"
- type="text"
- class="block"
- placeholder="`+V("图片文字说明")+'"/>'),y.showLinkImgHref&&O.push(`
- <input
- id="`+B+`"
- type="text"
- class="block"
- placeholder="`+V("跳转链接")+'"/>');var X=[{title:V("上传图片"),tpl:j("w-e-up-img-container","w-e-icon-upload2",""),events:R},{title:V("网络图片"),tpl:`<div>
- `+O.join("")+`
- <div class="w-e-button-container">
- <button type="button" id="`+M+'" class="right">'+V("插入","")+`</button>
- </div>
- </div>`,events:[{selector:"#"+M,type:"click",fn:function(){var Z,L=v.default("#"+C),Q=(0,p.default)(Z=L.val()).call(Z);if(Q){var W;if(y.showLinkImgAlt){var G;W=(0,p.default)(G=v.default("#"+S).val()).call(G)}var te;if(y.showLinkImgHref){var le;te=(0,p.default)(le=v.default("#"+B).val()).call(le)}if(w(Q))return h.insertImg(Q,W,te),!0}},bindEnter:!0}]}],U={width:300,height:0,tabs:[],onlyUploadConf:{$elem:v.default(j("w-e-menu","w-e-icon-image","图片")),events:R}};return window.FileReader&&(y.uploadImgShowBase64||y.uploadImgServer||y.customUploadImg||y.uploadImgFromMedia)&&U.tabs.push(X[0]),y.showLinkImg&&(U.tabs.push(X[1]),U.onlyUploadConf=void 0),U}i.default=k},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=p.__importDefault(n(24)),_=p.__importDefault(n(366)),x=function(k){p.__extends(b,k);function b(F){var y=this,h=m.default(`<div class="w-e-menu" data-title="缩进">
- <i class="w-e-icon-indent-increase"></i>
- </div>`),g={width:130,title:"设置缩进",type:"list",list:[{$elem:m.default(`<p>
- <i class="w-e-icon-indent-increase w-e-drop-list-item"></i>
- `+F.i18next.t("menus.dropListMenu.indent.增加缩进")+`
- <p>`),value:"increase"},{$elem:m.default(`<p>
- <i class="w-e-icon-indent-decrease w-e-drop-list-item"></i>
- `+F.i18next.t("menus.dropListMenu.indent.减少缩进")+`
- <p>`),value:"decrease"}],clickHandler:function(A){y.command(A)}};return y=k.call(this,h,F,g)||this,y}return b.prototype.command=function(F){var y=this.editor,h=y.selection.getSelectionContainerElem();if(h&&y.$textElem.equal(h)){var g=y.selection.getSelectionRangeTopNodes();g.length>0&&(0,c.default)(g).call(g,function(A){_.default(m.default(A),F,y)})}else h&&h.length>0&&(0,c.default)(h).call(h,function(A){_.default(m.default(A),F,y)});y.selection.restoreSelection(),this.tryChangeActive()},b.prototype.tryChangeActive=function(){var F=this.editor,y=F.selection.getSelectionStartElem(),h=m.default(y).getNodeTop(F);h.length<=0||(h.elems[0].style.paddingLeft!=""?this.active():this.unActive())},b}(v.default);i.default=x},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(45)),p=l(n(17));(0,f.default)(i,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(367)),_=m.__importDefault(n(368)),x=/^(\d+)(\w+)$/,k=/^(\d+)%$/;function b(y){var h=y.config.indentation;if(typeof h=="string"){if(x.test(h)){var g,A=(0,c.default)(g=(0,p.default)(h).call(h).match(x)).call(g,1,3),C=A[0],S=A[1];return{value:Number(C),unit:S}}else if(k.test(h))return{value:Number((0,p.default)(h).call(h).match(k)[1]),unit:"%"}}else if(h.value!==void 0&&h.unit)return h;return{value:2,unit:"em"}}function F(y,h,g){var A=y.getNodeTop(g),C=/^(P|H[0-9]*)$/;C.test(A.getNodeName())&&(h==="increase"?v.default(A,b(g)):h==="decrease"&&_.default(A,b(g)))}i.default=F},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(45));(0,f.default)(i,"__esModule",{value:!0});function p(m,v){var _=m.elems[0];if(_.style.paddingLeft==="")m.css("padding-left",v.value+v.unit);else{var x=_.style.paddingLeft,k=(0,c.default)(x).call(x,0,x.length-v.unit.length),b=Number(k)+v.value;m.css("padding-left",""+b+v.unit)}}i.default=p},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(45));(0,f.default)(i,"__esModule",{value:!0});function p(m,v){var _=m.elems[0];if(_.style.paddingLeft!==""){var x=_.style.paddingLeft,k=(0,c.default)(x).call(x,0,x.length-v.unit.length),b=Number(k)-v.value;b>0?m.css("padding-left",""+b+v.unit):m.css("padding-left","")}}i.default=p},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(38)),v=c.__importDefault(n(33)),_=c.__importDefault(n(370)),x=function(k){c.__extends(b,k);function b(F){var y=this,h=p.default(`<div class="w-e-menu" data-title="表情">
- <i class="w-e-icon-happy"></i>
- </div>`);return y=k.call(this,h,F)||this,y}return b.prototype.createPanel=function(){var F=_.default(this.editor),y=new v.default(this,F);y.create()},b.prototype.clickHandler=function(){this.createPanel()},b.prototype.tryChangeActive=function(){},b}(m.default);i.default=x},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(26)),p=l(n(70)),m=l(n(17));(0,f.default)(i,"__esModule",{value:!0});var v=n(2),_=v.__importDefault(n(3));function x(k){var b=k.config.emotions;function F(g){var A=[];if(g.type=="image"){var C;A=(0,c.default)(C=g.content).call(C,function(B){return typeof B=="string"?"":'<span title="'+B.alt+`">
- <img class="eleImg" data-emoji="`+B.alt+'" style src="'+B.src+'" alt="['+B.alt+`]">
- </span>`}),A=(0,p.default)(A).call(A,function(B){return B!==""})}else{var S;A=(0,c.default)(S=g.content).call(S,function(B){return'<span class="eleImg" title="'+B+'">'+B+"</span>"})}return A.join("").replace(/ /g,"")}var y=(0,c.default)(b).call(b,function(g){return{title:k.i18next.t("menus.panelMenus.emoticon."+g.title),tpl:"<div>"+F(g)+"</div>",events:[{selector:".eleImg",type:"click",fn:function(A){var C=_.default(A.target),S=C.getNodeName(),B;if(S==="IMG"){var M;B=(0,m.default)(M=C.parent().html()).call(M)}else B="<span>"+C.html()+"</span>";return k.cmd.do("insertHTML",B),!0}}]}}),h={width:300,height:230,tabs:y};return h}i.default=x},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0}),i.createListHandle=i.ClassType=void 0;var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(372)),v=c.__importDefault(n(374)),_=c.__importDefault(n(375)),x=c.__importDefault(n(376)),k=c.__importDefault(n(377)),b;(function(g){g.Wrap="WrapListHandle",g.Join="JoinListHandle",g.StartJoin="StartJoinListHandle",g.EndJoin="EndJoinListHandle",g.Other="OtherListHandle"})(b=i.ClassType||(i.ClassType={}));var F={WrapListHandle:m.default,JoinListHandle:v.default,StartJoinListHandle:_.default,EndJoinListHandle:x.default,OtherListHandle:k.default};function y(g,A,C){if(g===b.Other&&C===void 0)throw new Error("other 类需要传入 range");return g!==b.Other?new F[g](A):new F[g](A,C)}i.createListHandle=y;var h=function(){function g(A){this.handle=A,this.handle.exec()}return g.prototype.getSelectionRangeElem=function(){return p.default(this.handle.selectionRangeElem.get())},g}();i.default=h},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=n(58),_=n(47),x=function(k){p.__extends(b,k);function b(F){return k.call(this,F)||this}return b.prototype.exec=function(){var F=this.options,y=F.listType,h=F.listTarget,g=F.$selectionElem,A=F.$startElem,C=F.$endElem,S,B=[],M=g?.getNodeName(),N=A.prior,V=C.prior;if(!A.prior&&!C.prior||!(N!=null&&N.prev().length)&&!(V!=null&&V.next().length)){var w;(0,c.default)(w=g?.children()).call(w,function(U){B.push(m.default(U))}),M===y?S=_.createElementFragment(B,_.createDocumentFragment(),"p"):(S=_.createElement(h),(0,c.default)(B).call(B,function(U){S.appendChild(U.elems[0])})),this.selectionRangeElem.set(S),_.insertBefore(g,S,g.elems[0]),g.remove()}else{for(var D=N;D.length;)B.push(D),V!=null&&V.equal(D)?D=m.default(void 0):D=D.next();var I=N.prev(),j=V.next();if(M===y?S=_.createElementFragment(B,_.createDocumentFragment(),"p"):(S=_.createElement(h),(0,c.default)(B).call(B,function(U){S.append(U.elems[0])})),I.length&&j.length){for(var R=[];j.length;)R.push(j),j=j.next();var O=_.createElement(M);(0,c.default)(R).call(R,function(U){O.append(U.elems[0])}),m.default(O).insertAfter(g),this.selectionRangeElem.set(S);var X=g.next();X.length?_.insertBefore(g,S,X.elems[0]):g.parent().elems[0].append(S)}else if(!I.length)this.selectionRangeElem.set(S),_.insertBefore(g,S,g.elems[0]);else{this.selectionRangeElem.set(S);var X=g.next();X.length?_.insertBefore(g,S,X.elems[0]):g.parent().elems[0].append(S)}}},b}(v.ListHandle);i.default=x},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0});var p=function(){function m(){this._element=null}return m.prototype.set=function(v){if(v instanceof DocumentFragment){var _,x=[];(0,c.default)(_=v.childNodes).call(_,function(k){x.push(k)}),v=x}this._element=v},m.prototype.get=function(){return this._element},m.prototype.clear=function(){this._element=null},m}();i.default=p},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=n(58),_=n(47),x=function(k){p.__extends(b,k);function b(F){return k.call(this,F)||this}return b.prototype.exec=function(){var F,y,h,g,A,C,S,B=this.options,M=B.editor,N=B.listType,V=B.listTarget,w=B.$startElem,D=B.$endElem,I,j=M.selection.getSelectionRangeTopNodes(),R=w?.getNodeName(),O=D?.getNodeName();if(R===O)if(j.length>2)if(j.shift(),j.pop(),I=_.createElementFragment(_.filterSelectionNodes(j),_.createDocumentFragment()),R===N)(F=D.children())===null||F===void 0||(0,c.default)(F).call(F,function(fe){I.append(fe)}),D.remove(),this.selectionRangeElem.set(I),w.elems[0].append(I);else{for(var X=document.createDocumentFragment(),U=document.createDocumentFragment(),Z=_.getStartPoint(w);Z.length;){var L=Z.elems[0];Z=Z.next(),X.append(L)}for(var Q=_.getEndPoint(D),W=[];Q.length;)W.unshift(Q.elems[0]),Q=Q.prev();(0,c.default)(W).call(W,function(fe){U.append(fe)});var G=_.createElement(V);G.append(X),G.append(I),G.append(U),I=G,this.selectionRangeElem.set(I),m.default(G).insertAfter(w),!(!((y=w.children())===null||y===void 0)&&y.length)&&w.remove(),!(!((h=D.children())===null||h===void 0)&&h.length)&&D.remove()}else{j.length=0;for(var Z=_.getStartPoint(w);Z.length;)j.push(Z),Z=Z.next();for(var Q=_.getEndPoint(D),W=[];Q.length;)W.unshift(Q),Q=Q.prev();j.push.apply(j,W),R===N?(I=_.createElementFragment(j,_.createDocumentFragment(),"p"),this.selectionRangeElem.set(I),_.insertBefore(w,I,D.elems[0])):(I=_.createElement(V),(0,c.default)(j).call(j,function(fe){I.append(fe.elems[0])}),this.selectionRangeElem.set(I),m.default(I).insertAfter(w)),!(!((g=w.children())===null||g===void 0)&&g.length)&&D.remove(),!(!((A=D.children())===null||A===void 0)&&A.length)&&D.remove()}else{for(var te=[],Q=_.getEndPoint(D);Q.length;)te.unshift(Q),Q=Q.prev();for(var le=[],Z=_.getStartPoint(w);Z.length;)le.push(Z),Z=Z.next();if(I=_.createDocumentFragment(),j.shift(),j.pop(),(0,c.default)(le).call(le,function(fe){return I.append(fe.elems[0])}),I=_.createElementFragment(_.filterSelectionNodes(j),I),(0,c.default)(te).call(te,function(fe){return I.append(fe.elems[0])}),this.selectionRangeElem.set(I),R===N)w.elems[0].append(I),!(!((C=D.children())===null||C===void 0)&&C.length)&&D.remove();else if(!((S=D.children())===null||S===void 0)&&S.length){var ye=D.children();_.insertBefore(ye,I,ye.elems[0])}else D.elems[0].append(I)}},b}(v.ListHandle);i.default=x},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=n(58),_=n(47),x=function(k){p.__extends(b,k);function b(F){return k.call(this,F)||this}return b.prototype.exec=function(){var F,y=this.options,h=y.editor,g=y.listType,A=y.listTarget,C=y.$startElem,S,B=h.selection.getSelectionRangeTopNodes(),M=C?.getNodeName();B.shift();for(var N=[],V=_.getStartPoint(C);V.length;)N.push(V),V=V.next();M===g?(S=_.createDocumentFragment(),(0,c.default)(N).call(N,function(w){return S.append(w.elems[0])}),S=_.createElementFragment(_.filterSelectionNodes(B),S),this.selectionRangeElem.set(S),C.elems[0].append(S)):(S=_.createElement(A),(0,c.default)(N).call(N,function(w){return S.append(w.elems[0])}),S=_.createElementFragment(_.filterSelectionNodes(B),S),this.selectionRangeElem.set(S),m.default(S).insertAfter(C),!(!((F=C.children())===null||F===void 0)&&F.length)&&C.remove())},b}(v.ListHandle);i.default=x},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=n(58),_=n(47),x=function(k){p.__extends(b,k);function b(F){return k.call(this,F)||this}return b.prototype.exec=function(){var F,y,h=this.options,g=h.editor,A=h.listType,C=h.listTarget,S=h.$endElem,B,M=g.selection.getSelectionRangeTopNodes(),N=S?.getNodeName();M.pop();for(var V=[],w=_.getEndPoint(S);w.length;)V.unshift(w),w=w.prev();if(N===A)if(B=_.createElementFragment(_.filterSelectionNodes(M),_.createDocumentFragment()),(0,c.default)(V).call(V,function(j){return B.append(j.elems[0])}),this.selectionRangeElem.set(B),!((F=S.children())===null||F===void 0)&&F.length){var D=S.children();_.insertBefore(D,B,D.elems[0])}else S.elems[0].append(B);else{var I=_.filterSelectionNodes(M);I.push.apply(I,V),B=_.createElementFragment(I,_.createElement(C)),this.selectionRangeElem.set(B),m.default(B).insertBefore(S),!(!((y=S.children())===null||y===void 0)&&y.length)&&S.remove()}},b}(v.ListHandle);i.default=x},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=n(58),m=n(47),v=function(_){c.__extends(x,_);function x(k,b){var F=_.call(this,k)||this;return F.range=b,F}return x.prototype.exec=function(){var k=this.options,b=k.editor,F=k.listTarget,y=b.selection.getSelectionRangeTopNodes(),h=m.createElementFragment(m.filterSelectionNodes(y),m.createElement(F));this.selectionRangeElem.set(h),this.range.insertNode(h)},x}(p.ListHandle);i.default=v},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4)),p=l(n(27));(0,f.default)(i,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(24)),_=m.__importDefault(n(3)),x=m.__importDefault(n(379)),k=function(b){m.__extends(F,b);function F(y){var h=this,g=_.default(`<div class="w-e-menu" data-title="行高">
- <i class="w-e-icon-row-height"></i>
- </div>`),A=new x.default(y,y.config.lineHeights),C={width:100,title:"设置行高",type:"list",list:A.getItemList(),clickHandler:function(S){y.selection.saveRange(),h.command(S)}};return h=b.call(this,g,y,C)||this,h}return F.prototype.command=function(y){var h=this.editor;h.selection.restoreSelection();var g=_.default(h.selection.getSelectionContainerElem());if(g.elems.length){if(g&&h.$textElem.equal(g)){for(var A=!1,C=_.default(h.selection.getSelectionStartElem()).elems[0],S=_.default(h.selection.getSelectionEndElem()).elems[0],B=this.getDom(C),M=this.getDom(S),N=g.elems[0].children,V=0;V<N.length;V++){var w=N[V];if(_.default(w).getNodeName()==="P"&&(w===B&&(A=!0),A&&(_.default(w).css("line-height",y),w===M))){A=!1;return}}h.selection.createRangeByElems(C,S);return}var D=g.elems[0],I=this.getDom(D);_.default(I).getNodeName()==="P"&&(_.default(I).css("line-height",y),h.selection.createRangeByElems(I,I))}},F.prototype.getDom=function(y){var h=_.default(y).elems[0];if(!h.parentNode)return h;function g(A,C){var S=_.default(A.parentNode);return C.$textElem.equal(S)?A:g(S.elems[0],C)}return h=g(h,this.editor),h},F.prototype.styleProcessing=function(y){var h="";return(0,c.default)(y).call(y,function(g){g!==""&&(0,p.default)(g).call(g,"line-height")===-1&&(h=h+g+";")}),h},F.prototype.setRange=function(y,h){var g=this.editor,A=window.getSelection?window.getSelection():document.getSelection();A?.removeAllRanges();var C=document.createRange(),S=y,B=h;C.setStart(S,0),C.setEnd(B,1),A?.addRange(C),g.selection.saveRange(),A?.removeAllRanges(),g.selection.restoreSelection()},F.prototype.tryChangeActive=function(){var y=this.editor,h=y.selection.getSelectionContainerElem();if(!(h&&y.$textElem.equal(h))){var g=_.default(y.selection.getSelectionStartElem());if(g.length!==0){g=this.getDom(g.elems[0]);var A=g.getAttribute("style")?g.getAttribute("style"):"";A&&(0,p.default)(A).call(A,"line-height")!==-1?this.active():this.unActive()}}},F}(v.default);i.default=k},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=function(){function _(x,k){var b=this;this.itemList=[{$elem:m.default("<span>"+x.i18next.t("默认")+"</span>"),value:""}],(0,c.default)(k).call(k,function(F){b.itemList.push({$elem:m.default("<span>"+F+"</span>"),value:F})})}return _.prototype.getItemList=function(){return this.itemList},_}();i.default=v},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(23)),v=function(_){c.__extends(x,_);function x(k){var b=this,F=p.default(`<div class="w-e-menu" data-title="撤销">
- <i class="w-e-icon-undo"></i>
- </div>`);return b=_.call(this,F,k)||this,b}return x.prototype.clickHandler=function(){var k=this.editor;k.history.revoke();var b=k.$textElem.children();if(b!=null&&b.length){var F=b.last();k.selection.createRangeByElem(F,!1,!0),k.selection.restoreSelection()}},x.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},x}(m.default);i.default=v},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(23)),v=function(_){c.__extends(x,_);function x(k){var b=this,F=p.default(`<div class="w-e-menu" data-title="恢复">
- <i class="w-e-icon-redo"></i>
- </div>`);return b=_.call(this,F,k)||this,b}return x.prototype.clickHandler=function(){var k=this.editor;k.history.restore();var b=k.$textElem.children();if(b!=null&&b.length){var F=b.last();k.selection.createRangeByElem(F,!1,!0),k.selection.restoreSelection()}},x.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},x}(m.default);i.default=v},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(38)),m=c.__importDefault(n(3)),v=c.__importDefault(n(383)),_=c.__importDefault(n(33)),x=c.__importDefault(n(392)),k=function(b){c.__extends(F,b);function F(y){var h=this,g=m.default('<div class="w-e-menu" data-title="表格"><i class="w-e-icon-table2"></i></div>');return h=b.call(this,g,y)||this,x.default(y),h}return F.prototype.clickHandler=function(){this.createPanel()},F.prototype.createPanel=function(){var y=v.default(this.editor),h=new _.default(this,y);h.create()},F.prototype.tryChangeActive=function(){},F}(p.default);i.default=k},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(384));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=n(6),v=p.__importDefault(n(3));n(389);var _=p.__importDefault(n(391));function x(b){return b>0&&(0,c.default)(b)}function k(b){var F=new _.default(b),y=m.getRandom("w-col-id"),h=m.getRandom("w-row-id"),g=m.getRandom("btn-link"),A="menus.panelMenus.table.",C=function(M){return b.i18next.t(M)},S=[{title:C(A+"插入表格"),tpl:`<div>
- <div class="w-e-table">
- <span>`+C("创建")+`</span>
- <input id="`+h+`" type="text" class="w-e-table-input" value="5"/></td>
- <span>`+C(A+"行")+`</span>
- <input id="`+y+`" type="text" class="w-e-table-input" value="5"/></td>
- <span>`+(C(A+"列")+C(A+"的")+C(A+"表格"))+`</span>
- </div>
- <div class="w-e-button-container">
- <button type="button" id="`+g+'" class="right">'+C("插入")+`</button>
- </div>
- </div>`,events:[{selector:"#"+g,type:"click",fn:function(){var M=Number(v.default("#"+y).val()),N=Number(v.default("#"+h).val());return x(N)&&x(M)?(F.createAction(N,M),!0):(b.config.customAlert("表格行列请输入正整数","warning"),!1)},bindEnter:!0}]}],B={width:330,height:0,tabs:[]};return B.tabs.push(S[0]),B}i.default=k},function(o,i,n){o.exports=n(385)},function(o,i,n){var l=n(386);o.exports=l},function(o,i,n){n(387);var l=n(9);o.exports=l.Number.isInteger},function(o,i,n){var l=n(5),f=n(388);l({target:"Number",stat:!0},{isInteger:f})},function(o,i,n){var l=n(13),f=Math.floor;o.exports=function(c){return!l(c)&&isFinite(c)&&f(c)===c}},function(o,i,n){var l=n(20),f=n(390);f=f.__esModule?f.default:f,typeof f=="string"&&(f=[[o.i,f,""]]);var c={};c.insert="head",c.singleton=!1,l(f,c),o.exports=f.locals||{}},function(o,i,n){var l=n(21);i=l(!1),i.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=i},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=n(7),m=c.__importDefault(n(3)),v=function(){function _(x){this.editor=x}return _.prototype.createAction=function(x,k){var b=this.editor,F=m.default(b.selection.getSelectionContainerElem()),y=m.default(F.elems[0]).parentUntilEditor("UL",b),h=m.default(F.elems[0]).parentUntilEditor("OL",b);if(!(y||h)){var g=this.createTableHtml(x,k);b.cmd.do("insertHTML",g)}},_.prototype.createTableHtml=function(x,k){for(var b="",F="",y=0;y<x;y++){F="";for(var h=0;h<k;h++)y===0?F=F+"<th></th>":F=F+"<td></td>";b=b+"<tr>"+F+"</tr>"}var g='<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+b+("</tbody></table>"+p.EMPTY_P);return g},_}();i.default=v},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(393)),m=n(400);function v(_){p.default(_),m.bindEventKeyboardEvent(_),m.bindClickEvent(_)}i.default=v},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(39)),v=c.__importDefault(n(394)),_=c.__importDefault(n(399)),x=n(7);function k(h){var g;function A(S){var B=new _.default(h),M="menus.panelMenus.table.",N=function(w,D){return D===void 0&&(D=M),h.i18next.t(D+w)},V=[{$elem:p.default("<span>"+N("删除表格")+"</span>"),onClick:function(w,D){return w.selection.createRangeByElem(D),w.selection.restoreSelection(),w.cmd.do("insertHTML",x.EMPTY_P),!0}},{$elem:p.default("<span>"+N("添加行")+"</span>"),onClick:function(w,D){var I=b(w);if(I)return!0;var j=p.default(w.selection.getSelectionStartElem()),R=B.getRowNode(j.elems[0]);if(!R)return!0;var O=Number(B.getCurrentRowIndex(D.elems[0],R)),X=B.getTableHtml(D.elems[0]),U=B.getTableHtml(v.default.ProcessingRow(p.default(X),O).elems[0]);return U=y(D,U),w.selection.createRangeByElem(D),w.selection.restoreSelection(),w.cmd.do("insertHTML",U),!0}},{$elem:p.default("<span>"+N("删除行")+"</span>"),onClick:function(w,D){var I=b(w);if(I)return!0;var j=p.default(w.selection.getSelectionStartElem()),R=B.getRowNode(j.elems[0]);if(!R)return!0;var O=Number(B.getCurrentRowIndex(D.elems[0],R)),X=B.getTableHtml(D.elems[0]),U=v.default.DeleteRow(p.default(X),O).elems[0].children[0].children.length,Z="";return w.selection.createRangeByElem(D),w.selection.restoreSelection(),U===0?Z=x.EMPTY_P:Z=B.getTableHtml(v.default.DeleteRow(p.default(X),O).elems[0]),Z=y(D,Z),w.cmd.do("insertHTML",Z),!0}},{$elem:p.default("<span>"+N("添加列")+"</span>"),onClick:function(w,D){var I=b(w);if(I)return!0;var j=p.default(w.selection.getSelectionStartElem()),R=B.getCurrentColIndex(j.elems[0]),O=B.getTableHtml(D.elems[0]),X=B.getTableHtml(v.default.ProcessingCol(p.default(O),R).elems[0]);return X=y(D,X),w.selection.createRangeByElem(D),w.selection.restoreSelection(),w.cmd.do("insertHTML",X),!0}},{$elem:p.default("<span>"+N("删除列")+"</span>"),onClick:function(w,D){var I=b(w);if(I)return!0;var j=p.default(w.selection.getSelectionStartElem()),R=B.getCurrentColIndex(j.elems[0]),O=B.getTableHtml(D.elems[0]),X=v.default.DeleteCol(p.default(O),R),U=X.elems[0].children[0].children[0].children.length,Z="";return w.selection.createRangeByElem(D),w.selection.restoreSelection(),U===0?Z=x.EMPTY_P:Z=B.getTableHtml(X.elems[0]),Z=y(D,Z),w.cmd.do("insertHTML",Z),!0}},{$elem:p.default("<span>"+N("设置表头")+"</span>"),onClick:function(w,D){var I=b(w);if(I)return!0;var j=p.default(w.selection.getSelectionStartElem()),R=B.getRowNode(j.elems[0]);if(!R)return!0;var O=Number(B.getCurrentRowIndex(D.elems[0],R));O!==0&&(O=0);var X=B.getTableHtml(D.elems[0]),U=B.getTableHtml(v.default.setTheHeader(p.default(X),O,"th").elems[0]);return U=y(D,U),w.selection.createRangeByElem(D),w.selection.restoreSelection(),w.cmd.do("insertHTML",U),!0}},{$elem:p.default("<span>"+N("取消表头")+"</span>"),onClick:function(w,D){var I=p.default(w.selection.getSelectionStartElem()),j=B.getRowNode(I.elems[0]);if(!j)return!0;var R=Number(B.getCurrentRowIndex(D.elems[0],j));R!==0&&(R=0);var O=B.getTableHtml(D.elems[0]),X=B.getTableHtml(v.default.setTheHeader(p.default(O),R,"td").elems[0]);return X=y(D,X),w.selection.createRangeByElem(D),w.selection.restoreSelection(),w.cmd.do("insertHTML",X),!0}}];g=new m.default(h,S,V),g.create()}function C(){g&&(g.remove(),g=null)}return{showTableTooltip:A,hideTableTooltip:C}}function b(h){var g=h.selection.getSelectionStartElem(),A=h.selection.getSelectionEndElem();return g?.elems[0]!==A?.elems[0]}function F(h){var g=k(h),A=g.showTableTooltip,C=g.hideTableTooltip;h.txt.eventHooks.tableClickEvents.push(A),h.txt.eventHooks.clickEvents.push(C),h.txt.eventHooks.keyupEvents.push(C),h.txt.eventHooks.toolbarClickEvents.push(C),h.txt.eventHooks.menuClickEvents.push(C),h.txt.eventHooks.textScrollEvents.push(C)}i.default=F;function y(h,g){var A=h.elems[0].nextSibling;return(!A||A.innerHTML==="<br>")&&(g+=""+x.EMPTY_P),g}},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(45)),p=l(n(91)),m=l(n(4)),v=l(n(138));(0,f.default)(i,"__esModule",{value:!0});var _=n(2),x=_.__importDefault(n(3));function k(C,S){for(var B=A(C),M=(0,c.default)(Array.prototype).apply(B.children),N=M[0].children.length,V=document.createElement("tr"),w=0;w<N;w++){var D=document.createElement("td");V.appendChild(D)}return(0,p.default)(M).call(M,S+1,0,V),g(B,M),x.default(B.parentNode)}function b(C,S){for(var B=A(C),M=(0,c.default)(Array.prototype).apply(B.children),N=function(w){var D,I=[];for((0,m.default)(D=(0,v.default)(M[w].children)).call(D,function(O){I.push(O)});M[w].children.length!==0;)M[w].removeChild(M[w].children[0]);var j=x.default(I[0]).getNodeName()!=="TH"?document.createElement("td"):document.createElement("th");(0,p.default)(I).call(I,S+1,0,j);for(var R=0;R<I.length;R++)M[w].appendChild(I[R])},V=0;V<M.length;V++)N(V);return g(B,M),x.default(B.parentNode)}function F(C,S){var B=A(C),M=(0,c.default)(Array.prototype).apply(B.children);return(0,p.default)(M).call(M,S,1),g(B,M),x.default(B.parentNode)}function y(C,S){for(var B=A(C),M=(0,c.default)(Array.prototype).apply(B.children),N=function(w){var D,I=[];for((0,m.default)(D=(0,v.default)(M[w].children)).call(D,function(R){I.push(R)});M[w].children.length!==0;)M[w].removeChild(M[w].children[0]);(0,p.default)(I).call(I,S,1);for(var j=0;j<I.length;j++)M[w].appendChild(I[j])},V=0;V<M.length;V++)N(V);return g(B,M),x.default(B.parentNode)}function h(C,S,B){for(var M=A(C),N=(0,c.default)(Array.prototype).apply(M.children),V=N[S].children,w=document.createElement("tr"),D=function(j){var R,O=document.createElement(B),X=V[j];(0,m.default)(R=(0,v.default)(X.childNodes)).call(R,function(U){O.appendChild(U)}),w.appendChild(O)},I=0;I<V.length;I++)D(I);return(0,p.default)(N).call(N,S,1,w),g(M,N),x.default(M.parentNode)}function g(C,S){for(;C.children.length!==0;)C.removeChild(C.children[0]);for(var B=0;B<S.length;B++)C.appendChild(S[B])}function A(C){var S=C.elems[0].children[0];return S.nodeName==="COLGROUP"&&(S=C.elems[0].children[C.elems[0].children.length-1]),S}i.default={ProcessingRow:k,ProcessingCol:b,DeleteRow:F,DeleteCol:y,setTheHeader:h}},function(o,i,n){var l=n(396);o.exports=l},function(o,i,n){n(50),n(397);var l=n(9);o.exports=l.Array.from},function(o,i,n){var l=n(5),f=n(398),c=n(115),p=!c(function(m){Array.from(m)});l({target:"Array",stat:!0,forced:p},{from:f})},function(o,i,n){var l=n(40),f=n(31),c=n(114),p=n(112),m=n(35),v=n(69),_=n(113);o.exports=function(x){var k=f(x),b=typeof this=="function"?this:Array,F=arguments.length,y=F>1?arguments[1]:void 0,h=y!==void 0,g=_(k),A=0,C,S,B,M,N,V;if(h&&(y=l(y,F>2?arguments[2]:void 0,2)),g!=null&&!(b==Array&&p(g)))for(M=g.call(k),N=M.next,S=new b;!(B=N.call(M)).done;A++)V=h?c(M,y,[B.value,A],!0):B.value,v(S,A,V);else for(C=m(k.length),S=new b(C);C>A;A++)V=h?y(k[A],A):k[A],v(S,A,V);return S.length=A,S}},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4)),p=l(n(138));(0,f.default)(i,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(3)),_=function(){function x(k){this.editor=k}return x.prototype.getRowNode=function(k){var b,F=v.default(k).elems[0];return F.parentNode&&(F=(b=v.default(F).parentUntil("TR",F))===null||b===void 0?void 0:b.elems[0]),F},x.prototype.getCurrentRowIndex=function(k,b){var F,y=0,h=k.children[0];return h.nodeName==="COLGROUP"&&(h=k.children[k.children.length-1]),(0,c.default)(F=(0,p.default)(h.children)).call(F,function(g,A){g===b&&(y=A)}),y},x.prototype.getCurrentColIndex=function(k){var b,F,y=0,h=v.default(k).getNodeName()==="TD"||v.default(k).getNodeName()==="TH"?k:(F=v.default(k).parentUntil("TD",k))===null||F===void 0?void 0:F.elems[0],g=v.default(h).parent();return(0,c.default)(b=(0,p.default)(g.elems[0].children)).call(b,function(A,C){A===h&&(y=C)}),y},x.prototype.getTableHtml=function(k){var b='<table border="0" width="100%" cellpadding="0" cellspacing="0">'+v.default(k).html()+"</table>";return b},x}();i.default=_},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0}),i.bindEventKeyboardEvent=i.bindClickEvent=void 0;var c=n(2),p=c.__importDefault(n(3));function m(x){if(!x.length)return!1;var k=x.elems[0];return k.nodeName==="P"&&k.innerHTML==="<br>"}function v(x){function k(b,F){if(F.detail>=3){var y=window.getSelection();if(y){var h=y.focusNode,g=y.anchorNode,A=p.default(g?.parentElement);if(!b.isContain(p.default(h))){var C=A.elems[0].tagName==="TD"?A:A.parentUntilEditor("td",x);if(C){var S=x.selection.getRange();S?.setEnd(C.elems[0],C.elems[0].childNodes.length),x.selection.restoreSelection()}}}}}x.txt.eventHooks.tableClickEvents.push(k)}i.bindClickEvent=v;function _(x){var k=x.txt,b=x.selection,F=k.eventHooks.keydownEvents;F.push(function(y){x.selection.saveRange();var h=b.getSelectionContainerElem();if(h){var g=h.getNodeTop(x),A=g.length&&g.prev().length?g.prev():null;if(A&&A.getNodeName()==="TABLE"&&b.isSelectionEmpty()&&b.getCursorPos()===0&&y.keyCode===8){var C=g.next(),S=!!C.length;S&&m(g)&&(g.remove(),x.selection.setRangeToElem(C.elems[0])),y.preventDefault()}}})}i.bindEventKeyboardEvent=_},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(26));(0,f.default)(i,"__esModule",{value:!0}),i.formatCodeHtml=void 0;var p=n(2),m=p.__importDefault(n(38)),v=p.__importDefault(n(3)),_=n(6),x=p.__importDefault(n(402)),k=p.__importDefault(n(139)),b=p.__importDefault(n(33)),F=p.__importDefault(n(403));function y(g,A){if(!A)return A;return A=S(A),A=C(A),A=_.replaceSpecialSymbol(A),A;function C(B){var M=B.match(/<pre[\s|\S]+?\/pre>/g);return M===null||(0,c.default)(M).call(M,function(N){B=B.replace(N,N.replace(/<\/code><code>/g,`
- `).replace(/<br>/g,""))}),B}function S(B){var M,N=B.match(/<span\sclass="hljs[\s|\S]+?\/span>/gm);if(!N||!N.length)return B;for(var V=(0,c.default)(M=_.deepClone(N)).call(M,function(D){return D=D.replace(/<span\sclass="hljs[^>]+>/,""),D.replace(/<\/span>/,"")}),w=0;w<N.length;w++)B=B.replace(N[w],V[w]);return S(B)}}i.formatCodeHtml=y;var h=function(g){p.__extends(A,g);function A(C){var S=this,B=v.default('<div class="w-e-menu" data-title="代码"><i class="w-e-icon-terminal"></i></div>');return S=g.call(this,B,C)||this,F.default(C),S}return A.prototype.insertLineCode=function(C){var S=this.editor,B=v.default("<code>"+C+"</code>");S.cmd.do("insertElem",B),S.selection.createRangeByElem(B,!1),S.selection.restoreSelection()},A.prototype.clickHandler=function(){var C=this.editor,S=C.selection.getSelectionText();this.isActive||(C.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(S))},A.prototype.createPanel=function(C,S){var B=x.default(this.editor,C,S),M=new b.default(this,B);M.create()},A.prototype.tryChangeActive=function(){var C=this.editor;k.default(C)?this.active():this.unActive()},A}(m.default);i.default=h},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(26));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=n(6),v=p.__importDefault(n(3)),_=p.__importDefault(n(139)),x=n(7);function k(b,F,y){var h,g=m.getRandom("input-iframe"),A=m.getRandom("select"),C=m.getRandom("btn-ok");function S(V,w){var D,I=_.default(b);I&&B();var j=(D=b.selection.getSelectionStartElem())===null||D===void 0?void 0:D.elems[0].innerHTML;j&&b.cmd.do("insertHTML",x.EMPTY_P);var R=w.replace(/</g,"<").replace(/>/g,">");b.highlight&&(R=b.highlight.highlightAuto(R).value),b.cmd.do("insertHTML",'<pre><code class="'+V+'">'+R+"</code></pre>");var O=b.selection.getSelectionStartElem(),X=O?.getNodeTop(b);X?.getNextSibling().elems.length===0&&v.default(x.EMPTY_P).insertAfter(X)}function B(){if(_.default(b)){var V=b.selection.getSelectionStartElem(),w=V?.getNodeTop(b);!w||(b.selection.createRangeByElem(w),b.selection.restoreSelection())}}var M=function(V){return b.i18next.t(V)},N={width:500,height:0,tabs:[{title:M("menus.panelMenus.code.插入代码"),tpl:`<div>
- <select name="" id="`+A+`">
- `+(0,c.default)(h=b.config.languageType).call(h,function(V){return"<option "+(y==V?"selected":"")+' value ="'+V+'">'+V+"</option>"})+`
- </select>
- <textarea id="`+g+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+F.replace(/"/g,'"')+`</textarea>
- <div class="w-e-button-container">
- <button type="button" id="`+C+'" class="right">'+(_.default(b)?M("修改"):M("插入"))+`</button>
- </div>
- </div>`,events:[{selector:"#"+C,type:"click",fn:function(){var V=document.getElementById(g),w=v.default("#"+A),D=w.val(),I=V.value;if(I)return _.default(b)?!1:(S(D,I),!0)}}]}]};return N}i.default=k},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(404)),m=c.__importDefault(n(405));function v(_){p.default(_),m.default(_)}i.default=v},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0}),i.createShowHideFn=void 0;var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(39));function v(x){var k;function b(y){var h="menus.panelMenus.code.",g=function(C,S){return S===void 0&&(S=h),x.i18next.t(S+C)},A=[{$elem:p.default("<span>"+g("删除代码")+"</span>"),onClick:function(C,S){return S.remove(),!0}}];k=new m.default(x,y,A),k.create()}function F(){k&&(k.remove(),k=null)}return{showCodeTooltip:b,hideCodeTooltip:F}}i.createShowHideFn=v;function _(x){var k=v(x),b=k.showCodeTooltip,F=k.hideCodeTooltip;x.txt.eventHooks.codeClickEvents.push(b),x.txt.eventHooks.clickEvents.push(F),x.txt.eventHooks.toolbarClickEvents.push(F),x.txt.eventHooks.menuClickEvents.push(F),x.txt.eventHooks.textScrollEvents.push(F)}i.default=_},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=n(7),m=c.__importDefault(n(3));function v(_){var x=_.$textElem,k=_.selection,b=_.txt,F=b.eventHooks.keydownEvents;F.push(function(y){var h;if(y.keyCode===40){var g=k.getSelectionContainerElem(),A=(h=x.children())===null||h===void 0?void 0:h.last();if(g?.elems[0].tagName==="XMP"&&A?.elems[0].tagName==="PRE"){var C=m.default(p.EMPTY_P);x.append(C)}}}),F.push(function(y){_.selection.saveRange();var h=k.getSelectionContainerElem();if(h){var g=h.getNodeTop(_),A=g?.prev(),C=g?.getNextSibling();if(A.length&&A?.getNodeName()==="PRE"&&C.length===0&&k.getCursorPos()===0&&y.keyCode===8){var S=m.default(p.EMPTY_P);x.append(S)}}})}i.default=v},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(23)),m=c.__importDefault(n(3)),v=c.__importDefault(n(407)),_=n(6),x=n(7),k=function(b){c.__extends(F,b);function F(y){var h=this,g=m.default('<div class="w-e-menu" data-title="分割线"><i class="w-e-icon-split-line"></i></div>');return h=b.call(this,g,y)||this,v.default(y),h}return F.prototype.clickHandler=function(){var y=this.editor,h=y.selection.getRange(),g=y.selection.getSelectionContainerElem();if(g!=null&&g.length){var A=m.default(g.elems[0]),C=A.parentUntil("TABLE",g.elems[0]),S=A.children();A.getNodeName()!=="CODE"&&(C&&m.default(C.elems[0]).getNodeName()==="TABLE"||S&&S.length!==0&&m.default(S.elems[0]).getNodeName()==="IMG"&&!(h!=null&&h.collapsed)||this.createSplitLine())}},F.prototype.createSplitLine=function(){var y="<hr/>"+x.EMPTY_P;_.UA.isFirefox&&(y="<hr/><p></p>"),this.editor.cmd.do("insertHTML",y)},F.prototype.tryChangeActive=function(){},F}(p.default);i.default=k},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(408));function m(v){p.default(v)}i.default=m},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(39));function v(x){var k;function b(y){var h=[{$elem:p.default("<span>"+x.i18next.t("menus.panelMenus.删除")+"</span>"),onClick:function(g,A){return g.selection.createRangeByElem(A),g.selection.restoreSelection(),g.cmd.do("delete"),!0}}];k=new m.default(x,y,h),k.create()}function F(){k&&(k.remove(),k=null)}return{showSplitLineTooltip:b,hideSplitLineTooltip:F}}function _(x){var k=v(x),b=k.showSplitLineTooltip,F=k.hideSplitLineTooltip;x.txt.eventHooks.splitLineEvents.push(b),x.txt.eventHooks.clickEvents.push(F),x.txt.eventHooks.keyupEvents.push(F),x.txt.eventHooks.toolbarClickEvents.push(F),x.txt.eventHooks.menuClickEvents.push(F),x.txt.eventHooks.textScrollEvents.push(F)}i.default=_},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=p.__importDefault(n(23)),_=n(98),x=p.__importDefault(n(415)),k=p.__importDefault(n(140)),b=function(F){p.__extends(y,F);function y(h){var g=this,A=m.default(`<div class="w-e-menu" data-title="待办事项">
- <i class="w-e-icon-checkbox-checked"></i>
- </div>`);return g=F.call(this,A,h)||this,x.default(h),g}return y.prototype.clickHandler=function(){var h=this.editor;_.isAllTodo(h)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},y.prototype.tryChangeActive=function(){_.isAllTodo(this.editor)?this.active():this.unActive()},y.prototype.setTodo=function(){var h=this.editor,g=h.selection.getSelectionRangeTopNodes();(0,c.default)(g).call(g,function(A){var C,S=A?.getNodeName();if(S==="P"){var B=k.default(A),M=B.getTodo(),N=(C=M.children())===null||C===void 0?void 0:C.getNode();M.insertAfter(A),h.selection.moveCursor(N),A.remove()}}),this.tryChangeActive()},y.prototype.cancelTodo=function(){var h=this.editor,g=h.selection.getSelectionRangeTopNodes();(0,c.default)(g).call(g,function(A){var C,S,B,M=(S=(C=A.childNodes())===null||C===void 0?void 0:C.childNodes())===null||S===void 0?void 0:S.clone(!0),N=m.default("<p></p>");N.append(M),N.insertAfter(A),(B=N.childNodes())===null||B===void 0||B.get(0).remove(),h.selection.moveCursor(N.getNode()),A.remove()})},y}(v.default);i.default=b},function(o,i,n){o.exports=n(411)},function(o,i,n){var l=n(412);o.exports=l},function(o,i,n){var l=n(413),f=Array.prototype;o.exports=function(c){var p=c.every;return c===f||c instanceof Array&&p===f.every?l:p}},function(o,i,n){n(414);var l=n(15);o.exports=l("Array").every},function(o,i,n){var l=n(5),f=n(32).every,c=n(67),p=n(22),m=c("every"),v=p("every");l({target:"Array",proto:!0,forced:!m||!v},{every:function(_){return f(this,_,arguments.length>1?arguments[1]:void 0)}})},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=n(98),_=p.__importDefault(n(140)),x=n(98),k=n(7);function b(F){function y(C){var S,B;if(v.isAllTodo(F)){C.preventDefault();var M=F.selection,N=M.getSelectionRangeTopNodes()[0],V=(S=N.childNodes())===null||S===void 0?void 0:S.get(0),w=(B=window.getSelection())===null||B===void 0?void 0:B.anchorNode,D=M.getRange();if(!(D!=null&&D.collapsed)){var I=D?.commonAncestorContainer.childNodes,j=D?.startContainer,R=D?.endContainer,O=D?.startOffset,X=D?.endOffset,U=0,Z=0,L=[];I==null||(0,c.default)(I).call(I,function(se,be){se.contains(j)&&(U=be),se.contains(R)&&(Z=be)}),Z-U>1&&(I==null||(0,c.default)(I).call(I,function(se,be){be<=U||be>=Z||L.push(se)}),(0,c.default)(L).call(L,function(se){se.remove()})),x.dealTextNode(j,O),x.dealTextNode(R,X,!1),F.selection.moveCursor(R,0)}if(N.text()===""){var Q=m.default(k.EMPTY_P);Q.insertAfter(N),M.moveCursor(Q.getNode()),N.remove();return}var W=M.getCursorPos(),G=v.getCursorNextNode(V?.getNode(),w,W),te=_.default(m.default(G)),le=te.getInputContainer(),ye=le.parent().getNode(),fe=te.getTodo(),oe=le.getNode().nextSibling;if(V?.text()===""&&V?.append(m.default("<br>")),fe.insertAfter(N),!oe||oe?.textContent===""){if(oe?.nodeName!=="BR"){var ce=m.default("<br>");ce.insertAfter(le)}M.moveCursor(ye,1)}else M.moveCursor(ye)}}function h(C){var S,B;if(v.isAllTodo(F)){var M=F.selection,N=M.getSelectionRangeTopNodes()[0],V=(S=N.childNodes())===null||S===void 0?void 0:S.getNode(),w=m.default("<p></p>"),D=w.getNode(),I=(B=window.getSelection())===null||B===void 0?void 0:B.anchorNode,j=M.getCursorPos(),R=I.previousSibling;if(N.text()===""){C.preventDefault();var O=m.default(k.EMPTY_P);O.insertAfter(N),N.remove(),M.moveCursor(O.getNode(),0);return}if(R?.nodeName==="SPAN"&&R.childNodes[0].nodeName==="INPUT"&&j===0){var X;C.preventDefault(),V==null||(0,c.default)(X=V.childNodes).call(X,function(U,Z){Z!==0&&D.appendChild(U.cloneNode(!0))}),w.insertAfter(N),N.remove()}}}function g(){var C=F.selection,S=C.getSelectionRangeTopNodes()[0];S&&x.isTodo(S)&&S.text()===""&&(m.default(k.EMPTY_P).insertAfter(S),S.remove())}function A(C){C&&C.target instanceof HTMLInputElement&&C.target.type==="checkbox"&&(C.target.checked?C.target.setAttribute("checked","true"):C.target.removeAttribute("checked"))}F.txt.eventHooks.enterDownEvents.push(y),F.txt.eventHooks.deleteUpEvents.push(g),F.txt.eventHooks.deleteDownEvents.push(h),F.txt.eventHooks.clickEvents.push(A)}i.default=b},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0}),i.selectorValidator=void 0;var c=n(2),p=c.__importDefault(n(3)),m=n(6),v=n(7),_=c.__importDefault(n(130)),x={border:"1px solid #c9d8db",toolbarBgColor:"#FFF",toolbarBottomBorder:"1px solid #EEE"};function k(F){var y=F.toolbarSelector,h=p.default(y),g=F.textSelector,A=F.config,C=A.height,S=F.i18next,B=p.default("<div></div>"),M=p.default("<div></div>"),N,V,w=null;g==null?(V=h.children(),h.append(B).append(M),B.css("background-color",x.toolbarBgColor).css("border",x.border).css("border-bottom",x.toolbarBottomBorder),M.css("border",x.border).css("border-top","none").css("height",C+"px")):(h.append(B),w=p.default(g).children(),p.default(g).append(M),V=M.children()),N=p.default("<div></div>"),N.attr("contenteditable","true").css("width","100%").css("height","100%");var D,I=F.config.placeholder;I!==_.default.placeholder?D=p.default("<div>"+I+"</div>"):D=p.default("<div>"+S.t(I)+"</div>"),D.addClass("placeholder"),V&&V.length?(N.append(V),D.hide()):N.append(p.default(v.EMPTY_P)),w&&w.length&&(N.append(w),D.hide()),M.append(N),M.append(D),B.addClass("w-e-toolbar").css("z-index",F.zIndex.get("toolbar")),M.addClass("w-e-text-container"),M.css("z-index",F.zIndex.get()),N.addClass("w-e-text");var j=m.getRandom("toolbar-elem");B.attr("id",j);var R=m.getRandom("text-elem");N.attr("id",R);var O=M.getBoundingClientRect().height,X=N.getBoundingClientRect().height;O!==X&&N.css("min-height",O+"px"),F.$toolbarElem=B,F.$textContainerElem=M,F.$textElem=N,F.toolbarElemId=j,F.textElemId=R}i.default=k;function b(F){var y="data-we-id",h=/^wangEditor-\d+$/,g=F.textSelector,A=F.toolbarSelector,C={bar:p.default("<div></div>"),text:p.default("<div></div>")};if(A==null)throw new Error("错误:初始化编辑器时候未传入任何参数,请查阅文档");if(C.bar=p.default(A),!C.bar.elems.length)throw new Error("无效的节点选择器:"+A);if(h.test(C.bar.attr(y)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器");if(g){if(C.text=p.default(g),!C.text.elems.length)throw new Error("无效的节点选择器:"+g);if(h.test(C.text.attr(y)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器")}C.bar.attr(y,F.id),C.text.attr(y,F.id),F.beforeDestroy(function(){C.bar.removeAttr(y),C.text.removeAttr(y)})}i.selectorValidator=b},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(3)),m=n(7);function v(_,x){var k=_.$textElem,b=k.children();if(!b||!b.length){k.append(p.default(m.EMPTY_P)),v(_);return}var F=b.last();if(x){var y=F.html().toLowerCase(),h=F.getNodeName();if(y!=="<br>"&&y!=="<br/>"||h!=="P"){k.append(p.default(m.EMPTY_P)),v(_);return}}_.selection.createRangeByElem(F,!1,!0),_.config.focus?_.selection.restoreSelection():_.selection.clearWindowSelectionRange()}i.default=v},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3));function v(y){_(y),x(y),k(y)}function _(y){y.txt.eventHooks.changeEvents.push(function(){var h=y.config.onchange;if(h){var g=y.txt.html()||"";y.isFocus=!0,h(g)}y.txt.togglePlaceholder()})}function x(y){y.isFocus=!1;function h(g){var A=g.target,C=m.default(A),S=y.$textElem,B=y.$toolbarElem,M=S.isContain(C),N=B.isContain(C),V=B.elems[0]==g.target;if(M)y.isFocus||F(y),y.isFocus=!0;else{if(N&&!V||!y.isFocus)return;b(y),y.isFocus=!1}}document.activeElement===y.$textElem.elems[0]&&y.config.focus&&(F(y),y.isFocus=!0),m.default(document).on("click",h),y.beforeDestroy(function(){m.default(document).off("click",h)})}function k(y){y.$textElem.on("compositionstart",function(){y.isComposing=!0,y.txt.togglePlaceholder()}).on("compositionend",function(){y.isComposing=!1,y.txt.togglePlaceholder()})}function b(y){var h,g=y.config,A=g.onblur,C=y.txt.html()||"";(0,c.default)(h=y.txt.eventHooks.onBlurEvents).call(h,function(S){return S()}),A(C)}function F(y){var h=y.config,g=h.onfocus,A=y.txt.html()||"";g(A)}i.default=v},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});function c(p){var m=p.config,v=m.lang,_=m.languages;if(p.i18next!=null){try{p.i18next.init({ns:"wangEditor",lng:v,defaultNS:"wangEditor",resources:_})}catch(x){throw new Error("i18next:"+x)}return}p.i18next={t:function(x){var k=x.split(".");return k[k.length-1]}}}i.default=c},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(29));(0,f.default)(i,"__esModule",{value:!0}),i.setUnFullScreen=i.setFullScreen=void 0;var p=n(2),m=p.__importDefault(n(3));n(421);var v="w-e-icon-fullscreen",_="w-e-icon-fullscreen_exit",x="w-e-full-screen-editor";i.setFullScreen=function(b){var F=m.default(b.toolbarSelector),y=b.$textContainerElem,h=b.$toolbarElem,g=(0,c.default)(h).call(h,"i."+v),A=b.config;g.removeClass(v),g.addClass(_),F.addClass(x),F.css("z-index",A.zIndexFullScreen);var C=h.getBoundingClientRect();y.css("height","calc(100% - "+C.height+"px)")},i.setUnFullScreen=function(b){var F=m.default(b.toolbarSelector),y=b.$textContainerElem,h=b.$toolbarElem,g=(0,c.default)(h).call(h,"i."+_),A=b.config;g.removeClass(_),g.addClass(v),F.removeClass(x),F.css("z-index","auto"),y.css("height",A.height+"px")};var k=function(b){if(!b.textSelector&&b.config.showFullScreen){var F=b.$toolbarElem,y=m.default(`<div class="w-e-menu" data-title="全屏">
- <i class="`+v+`"></i>
- </div>`);y.on("click",function(h){var g,A=(0,c.default)(g=m.default(h.currentTarget)).call(g,"i");A.hasClass(v)?(y.attr("data-title","取消全屏"),i.setFullScreen(b)):(y.attr("data-title","全屏"),i.setUnFullScreen(b))}),F.append(y)}};i.default=k},function(o,i,n){var l=n(20),f=n(422);f=f.__esModule?f.default:f,typeof f=="string"&&(f=[[o.i,f,""]]);var c={};c.insert="head",c.singleton=!1,l(f,c),o.exports=f.locals||{}},function(o,i,n){var l=n(21);i=l(!1),i.push([o.i,`.w-e-full-screen-editor {
- position: fixed;
- width: 100%!important;
- height: 100%!important;
- left: 0;
- top: 0;
- }
- `,""]),o.exports=i},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(29));(0,f.default)(i,"__esModule",{value:!0});var p=function(m,v){var _,x=m.isEnable?m.$textElem:(0,c.default)(_=m.$textContainerElem).call(_,".w-e-content-mantle"),k=(0,c.default)(x).call(x,"[id='"+v+"']"),b=k.getOffsetData().top;x.scrollTop(b)};i.default=p},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(129)),m={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},v=function(){function _(){this.tier=m,this.baseZIndex=p.default.zIndex}return _.prototype.get=function(x){return x&&this.tier[x]?this.baseZIndex+this.tier[x]:this.baseZIndex},_.prototype.init=function(x){this.baseZIndex==p.default.zIndex&&(this.baseZIndex=x.config.zIndex)},_}();i.default=v},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(70)),p=l(n(4));(0,f.default)(i,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(426)),_=n(6),x=n(7);function k(F,y){return(0,c.default)(F).call(F,function(h){var g=h.type,A=h.target,C=h.attributeName;return g!="attributes"||g=="attributes"&&(C=="contenteditable"||A!=y)})}var b=function(F){m.__extends(y,F);function y(h){var g=F.call(this,function(A,C){var S;if(A=k(A,C.target),(S=g.data).push.apply(S,A),h.isCompatibleMode)g.asyncSave();else if(!h.isComposing)return g.asyncSave()})||this;return g.editor=h,g.data=[],g.asyncSave=x.EMPTY_FN,g}return y.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},y.prototype.emit=function(){var h;(0,p.default)(h=this.editor.txt.eventHooks.changeEvents).call(h,function(g){return g()})},y.prototype.observe=function(){var h=this;F.prototype.observe.call(this,this.editor.$textElem.elems[0]);var g=this.editor.config.onchangeTimeout;this.asyncSave=_.debounce(function(){h.save()},g),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",function(){h.asyncSave()})},y}(v.default);i.default=b},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=function(){function p(m,v){var _=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(x){m(x,_)},this.observer=new MutationObserver(this.callback),v&&(this.options=v)}return(0,f.default)(p.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),p.prototype.observe=function(m){this.node instanceof Node||(this.node=m,this.connect())},p.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("还未初始化绑定,请您先绑定有效的 Node 节点")},p.prototype.disconnect=function(){var m=this.observer.takeRecords();m.length&&this.callback(m),this.observer.disconnect()},p}();i.default=c},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(428)),m=c.__importDefault(n(435)),v=c.__importDefault(n(436)),_=function(){function x(k){this.editor=k,this.content=new p.default(k),this.scroll=new m.default(k),this.range=new v.default(k)}return(0,f.default)(x.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),x.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},x.prototype.save=function(k){k.length&&(this.content.save(k),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},x.prototype.revoke=function(){this.editor.change.disconnect();var k=this.content.revoke();k&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),k&&this.editor.change.emit()},x.prototype.restore=function(){this.editor.change.disconnect();var k=this.content.restore();k&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),k&&this.editor.change.emit()},x}();i.default=_},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(429)),m=c.__importDefault(n(433)),v=function(){function _(x){this.editor=x}return _.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new m.default(this.editor):this.cache=new p.default(this.editor),this.cache.observe()},_.prototype.save=function(x){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(x)},_.prototype.revoke=function(){var x;return(x=this.cache)===null||x===void 0?void 0:x.revoke()},_.prototype.restore=function(){var x;return(x=this.cache)===null||x===void 0?void 0:x.restore()},_}();i.default=v},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(99)),m=c.__importDefault(n(431)),v=n(432),_=function(x){c.__extends(k,x);function k(b){var F=x.call(this,b.config.historyMaxSize)||this;return F.editor=b,F}return k.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},k.prototype.compile=function(b){return this.save(m.default(b)),this},k.prototype.revoke=function(){return x.prototype.revoke.call(this,function(b){v.revoke(b)})},k.prototype.restore=function(){return x.prototype.restore.call(this,function(b){v.restore(b)})},k}(p.default);i.default=_},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0}),i.CeilStack=void 0;var c=function(){function p(m){m===void 0&&(m=0),this.data=[],this.max=0,this.reset=!1,m=Math.abs(m),m&&(this.max=m)}return p.prototype.resetMax=function(m){m=Math.abs(m),!this.reset&&!isNaN(m)&&(this.max=m,this.reset=!0)},(0,f.default)(p.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),p.prototype.instack=function(m){return this.data.unshift(m),this.max&&this.size>this.max&&(this.data.length=this.max),this},p.prototype.outstack=function(){return this.data.shift()},p.prototype.clear=function(){return this.data.length=0,this},p}();i.CeilStack=c},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4)),p=l(n(27));(0,f.default)(i,"__esModule",{value:!0}),i.compliePosition=i.complieNodes=i.compileValue=i.compileType=void 0;var m=n(6);function v(h){switch(h){case"childList":return"node";case"attributes":return"attr";default:return"text"}}i.compileType=v;function _(h){switch(h.type){case"attributes":return h.target.getAttribute(h.attributeName)||"";case"characterData":return h.target.textContent;default:return""}}i.compileValue=_;function x(h){var g={};return h.addedNodes.length&&(g.add=m.toArray(h.addedNodes)),h.removedNodes.length&&(g.remove=m.toArray(h.removedNodes)),g}i.complieNodes=x;function k(h){var g;return h.previousSibling?g={type:"before",target:h.previousSibling}:h.nextSibling?g={type:"after",target:h.nextSibling}:g={type:"parent",target:h.target},g}i.compliePosition=k;var b=["UL","OL","H1","H2","H3","H4","H5","H6"];function F(h){var g=[],A=!1,C=[];return(0,c.default)(h).call(h,function(S,B){var M={type:v(S.type),target:S.target,attr:S.attributeName||"",value:_(S)||"",oldValue:S.oldValue||"",nodes:x(S),position:k(S)};if(g.push(M),!!m.UA.isFirefox){if(A&&S.addedNodes.length&&S.addedNodes[0].nodeType==1){var N=S.addedNodes[0],V={type:"node",target:N,attr:"",value:"",oldValue:"",nodes:{add:[A]},position:{type:"parent",target:N}};(0,p.default)(b).call(b,N.nodeName)!=-1?(V.nodes.add=m.toArray(N.childNodes),g.push(V)):A.nodeType==3?(y(N,C)&&(V.nodes.add=m.toArray(N.childNodes)),g.push(V)):(0,p.default)(b).call(b,S.target.nodeName)==-1&&y(N,C)&&(V.nodes.add=m.toArray(N.childNodes),g.push(V))}M.type=="node"&&S.removedNodes.length==1?(A=S.removedNodes[0],C.push(A)):(A=!1,C.length=0)}}),g}i.default=F;function y(h,g){for(var A=0,C=g.length-1;C>0&&h.contains(g[C]);C--)A++;return A}},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(4)),p=l(n(94));(0,f.default)(i,"__esModule",{value:!0}),i.restore=i.revoke=void 0;function m(C,S){var B=C.position.target;switch(C.position.type){case"before":B.nextSibling?(B=B.nextSibling,(0,c.default)(S).call(S,function(M){C.target.insertBefore(M,B)})):(0,c.default)(S).call(S,function(M){C.target.appendChild(M)});break;case"after":(0,c.default)(S).call(S,function(M){C.target.insertBefore(M,B)});break;default:(0,c.default)(S).call(S,function(M){B.appendChild(M)});break}}function v(C){for(var S=0,B=(0,p.default)(C.nodes);S<B.length;S++){var M=B[S],N=M[0],V=M[1];switch(N){case"add":(0,c.default)(V).call(V,function(w){C.target.removeChild(w)});break;default:{m(C,V);break}}}}function _(C){var S=C.target;C.oldValue==null?S.removeAttribute(C.attr):S.setAttribute(C.attr,C.oldValue)}function x(C){C.target.textContent=C.oldValue}var k={node:v,text:x,attr:_};function b(C){for(var S=C.length-1;S>-1;S--){var B=C[S];k[B.type](B)}}i.revoke=b;function F(C){for(var S=0,B=(0,p.default)(C.nodes);S<B.length;S++){var M=B[S],N=M[0],V=M[1];switch(N){case"add":{m(C,V);break}default:{(0,c.default)(V).call(V,function(w){w.parentNode.removeChild(w)});break}}}}function y(C){C.target.textContent=C.value}function h(C){C.target.setAttribute(C.attr,C.value)}var g={node:F,text:y,attr:h};function A(C){for(var S=0,B=C;S<B.length;S++){var M=B[S];g[M.type](M)}}i.restore=A},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(434),p=function(){function m(v){this.editor=v,this.data=new c.TailChain}return m.prototype.observe=function(){this.data.resetMax(this.editor.config.historyMaxSize),this.data.insertLast(this.editor.$textElem.html())},m.prototype.save=function(){return this.data.insertLast(this.editor.$textElem.html()),this},m.prototype.revoke=function(){var v=this.data.prev();return v?(this.editor.$textElem.html(v),!0):!1},m.prototype.restore=function(){var v=this.data.next();return v?(this.editor.$textElem.html(v),!0):!1},m}();i.default=p},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(91));(0,f.default)(i,"__esModule",{value:!0}),i.TailChain=void 0;var p=function(){function m(){this.data=[],this.max=0,this.point=0,this.isRe=!1}return m.prototype.resetMax=function(v){v=Math.abs(v),v&&(this.max=v)},(0,f.default)(m.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),m.prototype.insertLast=function(v){if(this.isRe){var _;(0,c.default)(_=this.data).call(_,this.point+1),this.isRe=!1}for(this.data.push(v);this.max&&this.size>this.max;)this.data.shift();return this.point=this.size-1,this},m.prototype.current=function(){return this.data[this.point]},m.prototype.prev=function(){if(!this.isRe&&(this.isRe=!0),this.point--,this.point<0){this.point=0;return}return this.current()},m.prototype.next=function(){if(!this.isRe&&(this.isRe=!0),this.point++,this.point>=this.size){this.point=this.size-1;return}return this.current()},m}();i.TailChain=p},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(99)),m=function(v){c.__extends(_,v);function _(x){var k=v.call(this,x.config.historyMaxSize)||this;return k.editor=x,k.last=0,k.target=x.$textElem.elems[0],k}return _.prototype.observe=function(){var x=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",function(){x.last=x.target.scrollTop}),this.resetMaxSize(this.editor.config.historyMaxSize)},_.prototype.save=function(){return v.prototype.save.call(this,[this.last,this.target.scrollTop]),this},_.prototype.revoke=function(){var x=this;return v.prototype.revoke.call(this,function(k){x.target.scrollTop=k[0]})},_.prototype.restore=function(){var x=this;return v.prototype.restore.call(this,function(k){x.target.scrollTop=k[1]})},_}(p.default);i.default=m},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(99)),m=c.__importDefault(n(3)),v=n(6);function _(k){return{start:[k.startContainer,k.startOffset],end:[k.endContainer,k.endOffset],root:k.commonAncestorContainer,collapsed:k.collapsed}}var x=function(k){c.__extends(b,k);function b(F){var y=k.call(this,F.config.historyMaxSize)||this;return y.editor=F,y.lastRange=_(document.createRange()),y.root=F.$textElem.elems[0],y.updateLastRange=v.debounce(function(){y.lastRange=_(y.rangeHandle)},F.config.onchangeTimeout),y}return(0,f.default)(b.prototype,"rangeHandle",{get:function(){var F=document.getSelection();return F&&F.rangeCount?F.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),b.prototype.observe=function(){var F=this;this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize);function y(){var g=F.rangeHandle;(F.root===g.commonAncestorContainer||F.root.contains(g.commonAncestorContainer))&&(F.editor.isComposing||F.updateLastRange())}function h(g){(g.key=="Backspace"||g.key=="Delete")&&F.updateLastRange()}m.default(document).on("selectionchange",y),this.editor.beforeDestroy(function(){m.default(document).off("selectionchange",y)}),F.editor.$textElem.on("keydown",h)},b.prototype.save=function(){var F=_(this.rangeHandle);return k.prototype.save.call(this,[this.lastRange,F]),this.lastRange=F,this},b.prototype.set=function(F){try{if(F){var y=this.rangeHandle;return y.setStart.apply(y,F.start),y.setEnd.apply(y,F.end),this.editor.menus.changeActive(),!0}}catch{return!1}return!1},b.prototype.revoke=function(){var F=this;return k.prototype.revoke.call(this,function(y){F.set(y[0])})},b.prototype.restore=function(){var F=this;return k.prototype.restore.call(this,function(y){F.set(y[1])})},b}(p.default);i.default=x},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(29));(0,f.default)(i,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3));n(438);function v(_){var x=!1,k,b;_.txt.eventHooks.changeEvents.push(function(){x&&(0,c.default)(k).call(k,".w-e-content-preview").html(_.$textElem.html())});function F(){if(!x){_.$textElem.hide();var h=_.zIndex.get("textContainer"),g=_.txt.html();k=m.default('<div class="w-e-content-mantle" style="z-index:'+h+`">
- <div class="w-e-content-preview w-e-text">`+g+`</div>
- </div>`),_.$textContainerElem.append(k);var A=_.zIndex.get("menu");b=m.default('<div class="w-e-menue-mantle" style="z-index:'+A+'"></div>'),_.$toolbarElem.append(b),x=!0,_.isEnable=!1}}function y(){!x||(k.remove(),b.remove(),_.$textElem.show(),x=!1,_.isEnable=!0)}return{disable:F,enable:y}}i.default=v},function(o,i,n){var l=n(20),f=n(439);f=f.__esModule?f.default:f,typeof f=="string"&&(f=[[o.i,f,""]]);var c={};c.insert="head",c.singleton=!1,l(f,c),o.exports=f.locals||{}},function(o,i,n){var l=n(21);i=l(!1),i.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=i},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0});var c=function(){function p(m){var v=this;this.editor=m;var _=function(){var x=document.activeElement;x===m.$textElem.elems[0]&&v.emit()};window.document.addEventListener("selectionchange",_),this.editor.beforeDestroy(function(){window.document.removeEventListener("selectionchange",_)})}return p.prototype.emit=function(){var m,v=this.editor.config.onSelectionChange;if(v){var _=this.editor.selection;_.saveRange(),_.isSelectionEmpty()||v({text:_.getSelectionText(),html:(m=_.getSelectionContainerElem())===null||m===void 0?void 0:m.elems[0].innerHTML,selection:_})}},p}();i.default=c},function(o,i,n){var l=n(0),f=l(n(1)),c=l(n(128)),p=l(n(94)),m=l(n(4));(0,f.default)(i,"__esModule",{value:!0}),i.registerPlugin=void 0;var v=n(2),_=v.__importDefault(n(87)),x=n(6);function k(F,y,h){if(!F)throw new TypeError("name is not define");if(!y)throw new TypeError("options is not define");if(!y.intention)throw new TypeError("options.intention is not define");if(y.intention&&typeof y.intention!="function")throw new TypeError("options.intention is not function");h[F]&&console.warn("plugin "+F+" 已存在,已覆盖。"),h[F]=y}i.registerPlugin=k;function b(F){var y=(0,c.default)({},x.deepClone(_.default.globalPluginsFunctionList),x.deepClone(F.pluginsFunctionList)),h=(0,p.default)(y);(0,m.default)(h).call(h,function(g){var A=g[0],C=g[1];console.info("plugin "+A+" initializing");var S=C.intention,B=C.config;S(F,B),console.info("plugin "+A+" initialization complete")})}i.default=b},function(o,i,n){var l=n(0),f=l(n(1));(0,f.default)(i,"__esModule",{value:!0})}]).default})})(Up);var l6=a6(Up.exports),u6="fcEditor",s6=1,c6=Object.assign||function(t){for(var a,o=1;o<arguments.length;o++)for(var i in a=arguments[o],a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i]);return t},d6=tt({name:u6,props:{modelValue:String,init:Function,disabled:Boolean,config:Object},inheritAttrs:!1,emits:["update:modelValue"],data:function(){return{editor:{},uni:s6++}},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 l6("#editor".concat(t.uni)),t.editor.config.zIndex=2,t.editor.config.focus=!1,t.editor.config.autoFocus=!1,t.config&&c6(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=i6({},this.$attrs);return delete t.id,ee("div",ei(t,{onInput:this.result,id:"editor".concat(this.uni),style:"line-height: normal;"}),null)},beforeDestroy:function(){this.editor&&this.editor.destroy(),this.editor=null}});const Ja=(t,a,o)=>{Ke.component(t,o||a),Ya.component(t,a)};Ke.component("draggable",ps);Ke.component("DragTool",Op);Ke.component("DragBox",Lp);Ke.component("Validate",f1);Ke.component("Struct",Rp);Ke.component("HtmlEditor",mb);Ke.component("FetchConfig",wb);Ke.component("FnEditor",Io);Ke.component("FnInput",Ip);Ke.component("Required",g1);Ke.component("TableOptions",Pp);Ke.component("TreeOptions",T1);Ke.component("TableFormColumn",X1);Ke.component("EventConfig",gp);Ke.component("ColorInput",Li);Ke.component("SizeInput",Lo);Ke.component("StyleConfig",r6);Ke.component("LanguageInput",As);Ke.component("ConfigItem",Ir);Ke.component("FieldInput",Mb);Ke.component("FnConfig",zb);Ke.component("FcRow",cb);Ke.component("ValueInput",xs);Ja("FcEditor",d6);Ja("TableForm",j1,L1);Ja("FcTable",Kb,Gb);const f6=function(t){t.component("FcDesigner",en)};en.install=f6;en.makeOptionsRule=Ro;en.copyTextToClipboard=Kr;en.getInjectArg=Mo;en.localeOptions=jt;en.localeProps=qe;en.makeRequiredRule=Xf;en.makeTreeOptions=er;en.makeTreeOptionsRule=Ii;en.toJSON=dr;en.formCreate=Ya;en.designerForm=Ke;en.component=Ja;en.useLocale=mp;en.t=ls;en.utils={copyTextToClipboard:Kr,getInjectArg:Mo,localeOptions:jt,localeProps:qe,makeOptionsRule:Ro,makeRequiredRule:Xf,makeTreeOptions:er,makeTreeOptionsRule:Ii,toJSON:dr};const zf="3.2.18";lg(zf,Ya.version)===1&&console.warn("Please use FormCreate version "+zf+" or greater, see https://github.com/xaboy/form-create.");export{en as e};
|