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

1337 lines
1.5 MiB
Raw Permalink Blame History

This file contains invisible Unicode characters

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

/*!
* FormCreate商业版可视化表单设计器-让表单设计更简单
* fc-designer-pro v5.6.0
* (c) 2018-2025 FormCreate Team https://form-create.com/
* license 仅限于被授权主体(个人、企业或组织)使用
*/
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('._fc-step-form .van-step{line-height:1.4;text-align:left}._fc-popup.van-popup{display:flex;height:100%;padding-bottom:110px;padding-top:50px}._fc-popup-title{color:#333;font-size:16px;left:0;position:absolute;text-align:center;top:16px;width:100%}._fc-popup-content{display:flex;flex:1;overflow:auto}._fc-popup-footer{bottom:0;left:0;padding:10px;position:absolute;right:0}._fc-data-table{width:100%}._fc-data-table .ant-pagination{display:flex;margin-top:10px}._fc-data-table .ant-pagination.left{justify-content:flex-start}._fc-data-table .ant-pagination.center{justify-content:center}._fc-data-table .ant-pagination.right{justify-content:flex-end}._fc-data-table ._fc-data-table-img-list .ant-image{height:60px;max-width:150px}._fc-data-table ._fc-data-table-img-list .ant-image img{height:100%;object-fit:cover;width:100%}._fc-data-table .ant-btn+.ant-btn{margin-left:12px}._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}._fc-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-table-form .form-create .ant-form-item{margin-bottom:1px!important}._fc-table-form .ant-form-item-label,._fc-table-form .van-field__label{display:none!important}._fc-tf-head-idx,._fc-tf-idx{font-weight:500;min-width:40px;text-align:center;width:40px}._fc-tf-btn,._fc-tf-edit{min-width:70px;text-align:center;width:70px}._fc-tf-btn .fc-icon{cursor:pointer}._fc-table-form>.ant-btn{align-items:center;display:flex;padding:2px}._fc-table-form._fc-disabled ._fc-tf-btn .fc-icon,._fc-table-form._fc-disabled>.ant-btn{cursor:not-allowed}._fc-tf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-table-form ._fc-tf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;font-weight:500;height:40px}._fc-table-form ._fc-tf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-table-form tr{min-height:50px}._fc-table-form ._fc-read-view{text-align:center;width:100%}._fc-table-form td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:5px;position:relative}._fc-table-form td+td{border-left:1px solid #ebeef5}._fc-tf-table .ant-cascader,._fc-tf-table .ant-input-number,._fc-tf-table .ant-picker,._fc-tf-table .ant-select,._fc-tf-table .ant-slider{width:100%}._fc-tf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-infinite-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-infinite-table-form .form-create .ant-form-item{margin-bottom:1px}._fc-infinite-table-form .ant-form-item-label,._fc-infinite-table-form .van-field__label{display:none!important}._fc-itf-table ._fc-itf-head-idx,._fc-itf-table ._fc-itf-idx{font-weight:500;min-width:40px;padding:0;text-align:center;width:40px}._fc-itf-idx div{border:1px solid #bfbfbf;border-radius:6px;cursor:pointer;display:inline-flex;height:18px;justify-content:center;line-height:16px;width:18px}._fc-itf-sub-idx{width:30px}._fc-itf-btn,._fc-itf-edit{min-width:70px;text-align:center;width:70px}._fc-itf-btn .fc-icon{cursor:pointer}._fc-infinite-table-form>.ant-btn{align-items:center;display:flex;padding:2px}._fc-infinite-table-form._fc-disabled ._fc-itf-btn .fc-icon,._fc-infinite-table-form._fc-disabled>.ant-btn{cursor:not-allowed}._fc-itf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-itf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;font-weight:500;height:40px}._fc-itf-table ._fc-itf-table>thead{display:none}._fc-itf-table ._fc-itf-table{border-right:0}._fc-itf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-itf-table tr{min-height:50px}._fc-itf-table ._fc-read-view{text-align:center;width:100%}._fc-itf-table td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:10px;position:relative}._fc-itf-table td+td{border-left:1px solid #ebeef5}._fc-itf-table .ant-cascader,._fc-itf-table .ant-input-number,._fc-itf-table .ant-picker,._fc-itf-table .ant-select,._fc-itf-table .ant-slider{width:100%}._fc-infinite-table-form ._fc-itf-sub{padding:5px 0 5px 10px}._fc-itf-sub ._fc-table-form{background-color:var(--fc-bg-color-1)}._fc-itf-sub ._fc-tf-table{border:0}._fc-itf-idx+._fc-itf-idx,._fc-itf-sub-idx+._fc-itf-head-idx{border-left:0}._fc-itf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-nested-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-nested-table-form .form-create .ant-form-item{margin-bottom:1px!important}._fc-nested-table-form .ant-form-item-label,._fc-nested-table-form .van-field__label{display:none!important}._fc-ntf-table ._fc-ntf-head-idx,._fc-ntf-table ._fc-ntf-idx{font-weight:500;min-width:40px;padding:0;text-align:center;width:40px}._fc-ntf-idx div{border:1px solid #bfbfbf;border-radius:6px;cursor:pointer;display:inline-flex;height:18px;justify-content:center;line-height:16px;width:18px}._fc-ntf-sub-idx{width:30px}._fc-ntf-btn,._fc-ntf-edit{min-width:70px;text-align:center;width:70px}._fc-ntf-btn .fc-icon{cursor:pointer}._fc-nested-table-form>.ant-btn{align-items:center;display:flex;padding:2px}._fc-nested-table-form._fc-disabled ._fc-ntf-btn .fc-icon,._fc-nested-table-form._fc-disabled>.ant-btn{cursor:not-allowed}._fc-ntf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-ntf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;font-weight:500;height:40px}._fc-ntf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-ntf-table tr{min-height:50px}._fc-ntf-table ._fc-read-view{text-align:center;width:100%}._fc-ntf-table td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:10px;position:relative}._fc-ntf-table td+td{border-left:1px solid #ebeef5}._fc-ntf-table .ant-cascader,._fc-ntf-table .ant-input-number,._fc-ntf-table .ant-picker,._fc-ntf-table .ant-select,._fc-ntf-table .ant-slider{width:100%}._fc-nested-table-form ._fc-ntf-sub{background-color:#fafafa}._fc-ntf-sub ._fc-table-form{background-color:var(--fc-bg-color-1)}._fc-ntf-sub ._fc-tf-table{border:0}._fc-ntf-idx+._fc-ntf-idx,._fc-ntf-sub-idx+._fc-ntf-head-idx{border-left:0}._fc-ntf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-cell{display:inline-block}._fc-line-form{display:flex;flex-wrap:wrap;width:100%}._fc-line-form .ant-form-item{flex:none;flex-wrap:nowrap;margin-inline-end:16px;margin-bottom:0}.form-create ._fc-line-form ._fc-line-form,.form-create ._fc-line-form ._fd-drag-item,.form-create ._fc-line-form ._fd-drag-tool,.form-create ._fc-line-form .ant-col-24{display:inline-flex;flex:initial;flex:unset!important;flex-wrap:wrap;max-width:100%;width:auto!important}._fc-m-con .form-create ._fc-line-form>.ant-col-24{width:100%!important}._fc-line-form .ant-select,._fc-line-form .ant-slider{width:220px}._fc-echarts{height:300px;width:100%}._fc-m-signature{width:100%}._fc-m-signature-btn,._fc-m-signature-preview{background:#fff;border:1px dashed #d4d7e0;border-radius:4px;box-sizing:border-box;color:#c9ccd8;font-size:14px;height:88px;line-height:88px;min-width:160px;position:relative;text-align:center;width:100%}._fc-m-signature-btn{cursor:pointer}._fc-m-signature-preview>img{display:inline-block;height:88px}._fc-m-signature-preview .icon-delete2{cursor:pointer;display:inline-block;font-size:14px;line-height:14px;position:absolute;right:9px;top:9px}._fc-m-signature-btn i{font-size:14px}._fc-m-signature-dialog .van-dialog__header{padding:15px 0;position:relative}._fc-m-signature-dialog .icon-add2{color:var(--fc-text-color-3);display:inline-block;position:absolute;right:18px;transform:rotate(45deg)}._fc-m-signature-pad{background-image:linear-gradient(#fff 14px,transparent 0),linear-gradient(90deg,#fff 14px,#d4d7e0 0);background-size:15px 15px;border:1px dashed #d4d7e0;border-radius:4px;box-sizing:border-box;width:100%}._fc-title{font-size:16px;font-weight:600;margin-bottom:16px;margin-top:1em;width:100%}._fc-title.h1,._fc-title.h2{border-bottom:1px solid #eee;padding-bottom:.3em}._fc-title.h1{font-size:32px;line-height:1.2}._fc-title.h2{font-size:24px;line-height:1.225}._fc-title.h3{font-size:20px;line-height:1.43}._fc-title.h4{font-size:16px}._fc-title.h5{font-size:14px}._fc-title.h6{font-size:12px}._fc-iframe-box,._fc-video-box{width:100%}.form-create-m .van-checkbox--horizontal,.form-create-m .van-radio--horizontal{margin-bottom:5px}.form-create-m .ant-picker:before,.form-create-m .ant-select:before{border-bottom:1px solid var(--van-cell-border-color);bottom:-1px;box-sizing:border-box;content:" ";left:var(--van-padding-md);pointer-events:none;position:absolute;right:var(--van-padding-md);transform:scaleY(.5)}.form-create-m .ant-picker,.form-create-m .ant-select,.form-create-m .ant-tree{flex:1;padding:0}.form-create-m .ant-upload-picture-card-wrapper .ant-upload-list-item-container,.form-create-m .ant-upload-select-picture-card{height:60px!important;width:60px!important}.form-create-m .ant-upload-list-item{padding:0!important}.form-create-m .ant-upload-list-item:before{height:100%!important;width:100%!important}.form-create-m.is-preview .ant-upload,.form-create-m.is-preview .ant-upload-list-item-action{display:none!important}@font-face{font-family:fc-icon;src:url(data:font/woff;base64,d09GRgABAAAAAE6gAAsAAAAAm8AAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAARAAAAGA8V0nTY21hcAAAAYgAAAPZAAAJyrF9uXtnbHlmAAAFZAAAQeoAAIOYSQ6LLmhlYWQAAEdQAAAALwAAADYquA6laGhlYQAAR4AAAAAeAAAAJAfeBJlobXR4AABHoAAAAFsAAAJkexAAAGxvY2EAAEf8AAABNAAAATSML64ebWF4cAAASTAAAAAfAAAAIAG9APxuYW1lAABJUAAAAUUAAAJb1Yvg7HBvc3QAAEqYAAAEBwAABnl9aCF1eJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGFRZ5zAwMrAwNTJdIaBgaEfQjO+ZjBi5ACKMrAyM2AFAWmuKQwHnjk9u8Pc8L+BgYH5DgOQZGBEUcQEAJFWDaV4nO3WZXOVZxSF4TshhZYCpe7uTt0N0qRJg7s7BHd3dw+QUnd3d3d34/P6G3Q9WfyMZuZiTs7wIfPO3vd+gUOAVnaJVUHlPir8iYomf1vR8n0r2rZ8X1XR6N/bciiVVKpatarX/gMHQJ1Vozo1lM8Hfyr8/zrQkaP8uZEJTGQSk5nCVKYxnRnMZBazmcNc5jGfBSxkEYtZwlKWsZwVrGQVq1nDqazlNNaxng1sZBOb2cJWTuF0zmAb2zmTk9nBWexkF03sZg97aeZCLuJi/+UncCmXcTaX04kruJKruJprOIdruY7ruYEbuYmbOZdbuJXbuJ076EwXqrmTGmq5izrquZsGzqMr3Tif7vSgJ73oTR/60o/+DGAggxjMEIYyjOGMYCSjGM0FjGEs4xjPSZzI0RzDsRzH8X4eHTnSz68DR/i5VvnpV9CaNn6mh/mJHU472vvhteb/n3blnzadDv7WXKYsPE+oS3iyUHV4xlBNeNpQbXjuUF14AlF9eBZRQ3gqUdfwfKJu4UlF3cMzi3qEpxf1DM8x6hWeaNQ7PNuoT3jKUd/wvKN+4clH/cM7gAaEtwENDO8FGhTeEDQ4vCtoSHhr0NDw/qBh4U1Cw8M7hUaEtwuNDO8ZGhXeODQ6vHtoTHgL0djwPqJx4c1E48M7ihrD24omhPcWTQxvMJoU3mU0ObzVaEp4v9HU8KajaeGdR9PD249mhDuAZoaLgGaF24BmhyuB5oR7geaGy4HmhRuC5odrghaEu4IWhguDFoVbgxaHq4OWRMusLg2XCC0LNwktD9cJrYhSXq0MFwutCrcLrQ5XDK0J9wytDZcNrQs3Dq0P1w5tCHcPbQwXEG0KtxBtDlcRbQn3EW0NlxJtCzcTbQ/XE+0IdxTtDBcV7Qq3FTWFK4t2h3uL9oTLi/aGG4yawzVG94S7jPaFC43uDUoP7gtKD+4PSg8eCJccPRiUNjwUlDY8HO48eiQonXg0KJ14LHwF0ONBacYT4cuAngxKP54KSj+eDt8N9ExQWvJsUFryXFBa8nxQWvJCUFryYlBa8lJQWvJyUFrySlBa8mpQWvJaUFryelBa8kZQWvJmUFryVlBa8nZQWvJOUFryblBa8l5QWvJ+UFryQVBa8mH4JqKPgtKVj4PSlU+C0pVPg9KVz8JXFH0evqfoi/BlRV+Gbyz6Knxt0dfhu4u+CV9g9G2UdxN9F77K6PvwfUY/hC81+jF8s9FP4euNfo7y9qRforxB6dcob1b6LcqblH4P33v0R/jyoz/D7wDor/DbAPo7ytuX/gm/IaB/o1xI7Q/a/wfUbSluAAAAeJy9vQlgJEXZMNxVPd0903MfPT2TzN2ZmSSTTDJ37mQ3CbvZK1lg73sXgV3OPeS+Dw/kUlgEkQUEF1BYQFhYFFC5fEXBAwTEj1cB5VBfQV9Q1J3e/6nqnmQmm2yin/+X1NRd1V3nc1Y1Y2CYQ6+xZ7CNjIWRmDwzj2FQzIY8IZTtQ/k0EmKJfDHr9fBszIYlj+yF/1Kx+r+QT2M2kYT/Qr4PZUNI8gi8wONgaiSVGllOrJSSyRyVySjDF2zKrxo4Ppewu6RAfTSkBCJyndWe33ThUD4zr7kw79wvnTO/2DS/HZ+amr9ipLl5ZMX81P9mh7Ng0H2FjRcOf+7SdWNNXpPF7pEDISWeSmWyxRJUWygLSnpoZMPGhRcsWHDBwo0bRobSTB207SP2StbC2Bk342EiTDu0sMDMYZYyy5jlzGZmC3MaczpzHnM+83nmCuYG5svMHcydzAPMg8wT0A9Zr+T08Eo0lig488WcrEi5ZDfKBpEnhWK9KB+fKcPMNUAAckAA0rvxREK1X6guUVPcXR2oLoK+4QkGPepBKRiUPn7nnRvEvAgGLyNh9SBJg9jdYk4Eo340VV4UEVtEMNdVnFYRzHXi90Qw14nfFcHUprGWSt3IIAXnVCr64pSx6m8qj0QGT3Cg8i5fFNX7RBEdI2oP0MyXtPq/pD1N/a1YEscNw4+PsZtRmAYY4S5miIwdzEOnx4ag79MIOrcP5bhojIc4by6aLUJMgstlSOcrGdL5USgA2VPIKSvOnDb38d8ahxvBqC7NRX9SXTCTFfQnsMvlEPwhS3F1Ecy11y5bFh+IxwdYS00BsOZklIlil4fUB6DUWKiw5uQ1BXRlj/rHeP+i/jhjqmlHkmnUZ+pcZsksWxOVoiXSogxtUSbfjaYLHLld5+DXyo2r4/B3LrHOI9YMrdo3cCBe9cfAn6GmPR2zHRNB5r1hJCSSgg0n07gPeWWBD4FbKqYRf8QX/0lJTMaxPR/pNqd7Qoks1zh/Ud2NnMkfi/k4vj6fnqERu2yJITMq2VreCDbZjGLPksGwIzjXGfObTH5nXdpWx4jjbZKYOJNgskyO6WcGmEWwk+yY1D5M2ocPax8iCz5DF3wmX5g2AFXhoDYfoSpY0NBVshLjIc4L+YoQk8DX16fr6tL16qA7Xu9w1Mfd6Al10OaBUk/YPR7105H3IsTsoWY9MdhJskKx5zwNAXt9a/1zz9kkyfYcFMJn0qrA0moiGQY89okK1YeikUj03Eg0Gjk3An+ohWR8DiqxBxo8z0HBOR5bpTqmqq8q6zLD9DJ9zAJmBbPm31ifdAJXAjKkQFdAADpC9nrsiAcw1Y+KWS4nKTMs22AoFHwvFAyG7iC+rNHYb/Q5iaV+9r77Zrt8K+7u4OOh0ONBo9FvHDA6faZ+k6eHzH2GgbaThWABqANuCRpF1l+Ujm4xG0Zej4B4ePE0hvcumZBQQtsj+FeRSDkeQf+0KNbLLRb1PJPlNtFj55Efi+gO9Vr32ei0EdL7+CcWy2esikU938hGMW9zm++2mdCQev3FfnQqeTwH/f8X9guslYlBry+GXWQFw7gJPCoVw7gE0KiU06ATvEMbEvhEkoAoNAHlYR1OBvFVAD6peLzZYj4R479idd9lsxn++aLDwlndovEDh+MfP7CFWDf6dGppb9TrUQIN9QGvHKiLBxS3HO0bayk1DaRGVi5IDTR1LEj1tbT0pdDbbqv6yGpAG27YiswWF3bZ1DdNdu5so+mGk412J4cusrpRc6x3aapUSKdiEdltt7vlSKyltVCCx8TU5kR29JjWRS0ti1qPGc1+J5wiFWv9oM1DMhYKrNhFk0cD1tpMy5brQ7I3W+pDIQyoTSwJe5FgQ2n0YQT9JhJRYTw69ZVV3ldZjfjo8j6yePDRYJf/q/vq4eyaosHusPKYm3fjUKwjHxBkiS+QFYVfJSXUQaiArCb0BKkE1pM6CCvZjp6wef6yBW2eP8IL2GR38Js2ZcKhdjNv9TGCNtfwb3W4kWLaoI2l2a4wp+Ke9Dvy6vn7GWfcMjZ2ZiYzms2mFyzAv20calS3gQUG3QDWQDambqP5b4hl16u70JW1v8NhQxLed9YQjpM8Xlgv+TaUODI0KK9mfQffQ30+862ieKvZN9PCnnPRK1ar8STex59ktOrr53V2L5sAvDEOO303M5+8JVkXFL2NEYQ3TxaHrKPLxJ8nsYKGSkA7oBVyjNcWClv0ykoaxXhB6UOY2bl5Q0dXV8eGze9UPDs33Ll+/Z3fPXqsrb29bezojSmC/y4nVirZ0bGkoyN5wqPdS3NX3HBFbmn3o2yipjD1DK+/88k715PC3yO1dKRGlhHsG6yB0mgJjPortPHYjp6ejmM3knHAdO704ifo2mDcZFU46apw5p/Zg3r27FGf2YMfJzYJ0XF7Cx/PhiC/CXZ4L/TI+DYgV+/WODCS6kmBqSONwb8IEX/q+XbV396O3m2H8oj27wbo3zrar8hrw20ItiOCKpO1hYslVMSM7EBNdhRKOX4abgn/VAwEPIJRRE0ONuFUX3WkQsj+s/It3nDYi7f8TDQKnkAAUp1a/T+n40dnlxfABQ/AFIiZbli3NhZwClwq5Iv9kCbYWEA1WK8MYXYjWbP/Tawrclff9JljpfaTr/nKxWOC08rZJGRc/5Vv77u013fc7Qfu7ZfYhJY14OnqNC++6MvXnZJ3HX3JYtbiQchrX7fneF/PJQ8+evNG2+BRVwJQZGl/34H/izFCfzvgvdhcKSrnWIV159zImXOiS/+5sxu5u3f+45yWEwwnINvJ+AflHXd+HV+rnoLC6pvoS+Ud+GpGGy+oayd+lvqtjB/6MUHXUh4wkjmw4zPuauLCWYNe/BspV7WtbQOj7FLAIO/0Ifxsm7ohnUa3t5UfV+APDx05zJCemKEtS5jVgDWccKQ2/WdTrmpLw1+bMqyA+WEaQm3pKQPpNghqgX+14Yd1hHHafqhtd7Q6UINRRmvb8G4bGKifuuoG5ZACBt2uuROvW/sa2pgYDnuX2v3BWQ1Cr2rDn2trK5/VpuDbFKW88bCuqMzXHfhXR56v4xSss4aO/jdSrslsyWa3ZDQb2bKbs+MGQpUEsPHrmV9nwKhXaS7aeeQwhQ3QlrfwIxR+tQJeu2KWEMyGBKlYknJOnXVAdiSNMwBwIQfIlQZcBNhNCwohegBuLEvMSYAp707MicfnJPBJ5d2wnYbwSWCX33MkvMm6NNrni0Z9b8rRqPzpZBtqRN6U5DB7m61+dPeZxgVWXyveD2XVfVod6GhwB1MhdR+pCR0dSn3KIfOtZvktVNcRldV3SEWoTo4uyDUFg+5Gl9kRAARFcWVsdf1N+tx4V2//GLN2ttgGoJqSJwehvELAYi5bknklRgApZTEpsQIJwi6clQWAKCQroXTY1UfoAnUg4UbY6Aidmp+/pNQmxXKdkV45u+WypQMRqS5Y15DuszTZ/ajO43PN0AlfP8FoZs3p0PFzTh1w1NfLcvqytYuPHw75mwMNJZ8j6E4lnQabk9LqT7J/ZAeBDmxihpllzDpmO3MecyHzBegJabzZ0kRfRMf7J1PQekPJJEmbU7Dta64Gm5wKcXOsBrEI5wh6gHCOhFwpJ+dKipQrlvpwIZ9IUh6Fjm7AlEmhQlJWStmcFkwqBfxVdSVt293qSq0H8Ula20ms1+712hsaiH2jXZLszc3EHiUTSX2cTIANyaMS9hFH45r5fTHRKlncDovN7BQdst9uFI28O7bbn/mhmzOJFpPV6sP79b4crPRtpa8Htd79qRSWyjawwOC/gKW+G5XfhMfJb8nRJY80Nz/yCELI7rXa/QZO8rktGJ/AWZwWhNp7BkeR2QE+1ESmHqEt/4e9hnUz9UBX9gFGfxxzKozAudD/11BoLwOaKEfpGrPhZJSneH2RktCCkyTB2oIxSEahAwEJFxQwyQKYUjSMBKUNKXakJPtRNEvRPTsi1JC2NlMIchFGnpfQRYmkQMckS3E/96RRIxgrussdYqEVueZOgtqX7ySUdVfTiy9aXBCNjzO7scOifi+WYSMc18O1wo9DXYbFXMZgHbFybdxiDhlSLtHMGrCBNxhMoj1gd27muE2ZdrPJIv2P1PTDVLtZ5I2WK52y7FRfITaqVz9CFtYdkD4LD+hsVs8ij4XuhVfAG5u65jot5a+a3SyCXr0KcrBZ5Wkuwd3HgUlw7GuCoanJILzG+u3NNgOLWAPH2ZqcPp7lXuMubUMG3mk19QysSHAGLyQ/KDs3OHw+xwanXJpD93rA7b4PuNfhvKxRgOOn/Mc5Wu5quBfvQzCIFIXsR0CqldgYZUWnyn+mOHUK28t/jhcKcWwHuzzKmg7+bWNjMtl4WbKxMXkp8Y1GLgyHL4yovzfViTfeKDjtZlbg16wxGTg2kZqfKn8IFhjsAGs4Hy9/GM/n49gRzz82/AyppPJTTwtHIuHlIms851yOFaxOOz8yInjNDKHbqmigQWYI9tGlsI/MFo5Q4sIrU5hBbEpyJJIK0B1kTlYBZ6k6cESaSd1hCkckKRI2zRfkOlmYXxu8M4I2ArF7W6TizkBTvWi3GOtjdSar3WK1WuxWU12s3mixm20286mEh3EFsSgoodbX8ftMgOlklmsrOFdhyNIWRTVqKgcLF7ZGWefWKtGZExUtsRsB1aU6Q6ZRo91kshtHTaFYyFh+VwthvzH0sitoQnktrP7YFFRCxLGZwEB06FdQFke05PJvSGnTPC00zxTC7zvtJjv8bC6XjXrsQJ447Ua7C37OcY/62njyeAFtLrzOvnDYevkPrBJWSS9pbV2SVvn04jQYpJYPNXZ2NmIEdvkYlj1Y3jg+62c/txmd734PzF8W3t8IVLLERAmO6FQQ+U2Lr34pk8G/y2bL92nYF2rRcDLWcvA9QrHjSzPqrkwGXZmpuJROPfQP9nv4E5gfhLNBNuMQsuHEBMGo8/9kRHdeyqUKomih4iNcLuzmzMYreI6zOl3CqCcgjYpBj3iFaFcvtXlMDpfDhJ82Odx2ESg9/AnCwhWCC7wcP6Z+ljJBzx4TPUHx82ZUZj12yGoCc/vtmvu0FUg+fS5Dv+zV+U2BSVgzR+CREk9yWQDhzmuuR6uvv17dez0rh0sjSfV0hL4oNYadrGU3RELi7ufUXcmRUhitQs5wo4Su1PridfZ7MFfatBlSy5EoEBxCwycoD4+y76hwDuYDIBYCgVAydB5qgy2EAClct2OLxkTY8rvNGzs6PbbTSGsXmor5o4/9zpJFzS18pm106XqbJPE2z26rRayz3m22eSYxIHZSMnj9ogWNTZZ8duzox0eXtKY9Qc83PLbfFDl/vYXrZd3mTwhrmPbR6+zPoA0+JgZ7H+PW0KXcJHzJj2Bp83QcExQhGt8TJDLsvWh8bUOzn+9oROaPVYM239E/YLLvhbnegZ/q7LZ5dolkmMRd8I67tBHb5UHvq9fE88OVuU7m/gdoxyf5+OrV8by6zWPbRWaFuIt0B5SHCbKLvr4+95/Qx5jQMkEy96ef8/HKqnDo5Mh52uRX/dksfgcWxJmTJ/1ubTVo4/0x+wyL4ClZhonnioT9lYjZkZNwXSRnEmwPICfcpJlf1HARQcFe3ixcIXoC4qgU8IyJATLp1S/ZPaLdTeY8dInDyv0ZG68gSaPoLMLDVz83SkpcIR702J7W+u622wgv8mmLh7KN3OPwy8rITBqwsH5mIWBiK5lVzKeYy5gvMrcwe5hvMN9kHmUOMM8QvJhM/SgVZzQhDT8rFtiKoENPqTBfiaCD7HAE/eeqAVgNhVsaFwLABshqJEQyQbjZQGloiHSWbBZJsjXESCzZOKD7dPKjH1ZBIl5dozRtgL2SsGg19i5+tbzNacXLbZ7YDGzf2/xotd+v7vWjJ/xb/GC2+H0+f0M4kQy5/E47Yq1mwecKJxJhl8/u5A1Oq18y2nhBMAN0sFruMFss1CdY1fv89/l89/mrbTTwfuWx779vdWN46v4aqYzORq6IZU7x+cnj/b6sf4vPt8WvXtDY02Q3WxG2CAZ7Y28jACfOYDM50iLLc0bBhOwem9VrFa1mg7jQD38LSekFxII5YNb4WWycCTFhJsW0MB0Av4eZ25k3mHeYDzT4FUQKLF9Fh1rdSFLGF3ktmjJtz8eLBPkm/HeY+310CCkhCThCCMkS7H6SDWJsMKkgHxl6mAKw49EB1zY6GP8EcZOFRL5U6EOkHshTLMmC5IXNRMgIZBFlqGxDogoOZGPNlApkRy1lSoTjnIH3htLJjL7ZymTCkUk2zuPF32giHHBF3UlwoP37NczIGUGLAV96KBL5GTUbiEHbLUEREHqz1cwbsBi0NNosHMIuK7ZLmGWxZMdWF0acxdZoDZoRx1msFiAMzEFrgmTkXc6JjE4XTzIONhgSAYQxCiQMUcQLclIWBMUQD5K4YNyg8EYp6RWEYrilpbelJSTabJLNxjY0DjX94AdKFl7boWTmEFTuQ2jG/UTc9wBB0ah1hcDC6xqMRoMBm1heFkJ2zPFWD8aSjXVG4W08GCHJyvHYHhJkwQDvTHJzSDQIXpLbEQT6Dd7WoTjg1cEftLP2kDHkQWZLIGVAFp8VGZqDFjNyI55zOjnBXUnxW4AECpAUnrPbOX64pY+Id7I2yW6XbGQ/pvjju7W4CNJ33Wj1NKvhW6H4Sy8h6aWX1GMU/PNYrJxWKi7+WvlxPFR+PKYoMfx5JRZTmApP7Of4Wcak65PAMwiRqQBxGR/3oZpHbN0mhV8Ko5atXnDUYIw1xmIHP4nhRNirXoO2e8N7gCz+EDukMDwN/sbh4/d02UNptnIHKlYsEU4KkYfC9M7XwvZSV1dpIxEzbNgwIWZQnxMD4o43CSr0D5Fs+LMQLKgPi+KOtwgy9HcRSgQqMh3tnQkOS6RQs8NeWcrWMCOwgUzToPA4BjqBe+bVe+4bbXqyafS+HfPYeTMgqhepPTt2oGfU3z/3HOUVfMg+yA5QmX0T08wUoUcHmQ3MmcxFs5PZEwzbXS1xjlYH2FrOHexCuYJC0a58IqeBmWIpJ1HQpHgp8yshVHYO1qVTph9Eulp9vtauCHaWP0jkYStxarSp+eDHz5Pph9JkKn6Q6YRdLFQKeCyRvMNu/9mNYqbVGSo939qTb5WTFhwPp02tlpW5vq5CfSzaGY2yZqheVYDw9bV0h9Eb4e4W/3AhriqEAEZvxAsXDqM+ZVsstk3RbPWy/lw8UZfzWbxxl7PJ2+SPhF3RJbnu1Z0eN9fS03LMupHhsURDtxLrjlNeDEzYC1jxML7ufCJpreFOy7MLIErTIi+hZ836Bl5ywyDgxaGPwuGPQv2h/eHw/tC80Knh8KmhuaGWcLglpO4xAI3FIjdnkmXub/80eMwGi4k7DZ2jfgY/HQqHQ/uJws7D4z58tFEUjeVlFtkkmvEJ5ZtEEWNOhk2md3w+f0efz59irpql/gpdqTZMQAVgGRQREaQc5UgBTs4SQEWYdoRgl8ls6EcCAUtEHE/0AIruLJW7g58sY6hM8kK5Ck5DiByC4MDMCWi8jCl5Gm82yBKLeJsD6EvRajFbMM8VzA7stAwNCK0Bg1IwshZZEgSr02gz9AyaYVe2LLWzbq+v3eSENhntvNVtSreZMHJbeYcp3mCiMZkWI0auGZZfX70/abSLyGgzWnxeT5MgSchm5iwu9WAwgTCbjlkk3iyZPQ7zxwjZRM7iRJ3inEBEfdlkbGmxsgi56k3FktHM21ysrb1dj+nK0RiGcen6FdEZ5UUnMrt0CmxK/JGdFjLUrPeaSVyqWfw1eEp1yvYougCA/iVRvCZyYTR6YeRQBF0QjaqXRCrurwlYLT8LSZDhNhK4LXp3JHJ3FK2lGh7PRPQ/9WPdJooCOyIHImDUm0jc2vEAJK2NPhqJPBrV5+6H7M2smXHoekp07hKZdBX0INsV1fSogiA1rCLbtgMnnXTglXWr88VifvW6k9csXtTS2tqyaPH+ikf9bRTNhVd7EraZkw784sC2YmHVutfWri4U57S2LFyyf/HClnS6ZeHi/UsWtrSqL5O3rPBvtbVVGb94lX4QU/MWNThivGr1cVHCyKXrDo3LnWEEctUBdFwMBWMx9e3YxzFWAMD79xh+C+ar+jSZuXnV2RYzol6g9n5LQO9VxGITZKO9mnhR+df6HI8Oqw1Kjs3H0Q5SWaVS4jIV/s23a9qTpdT5rFoia1uItoHkaIBq31J9sc0KCiiK+lvlY0VrgILfJjv6M7Ds/woEWdDjuVAn5TxTv/r9Hpv6NmVgBImtvq3RvySk6zm8xt6tv3sA8KbOydLGyaIqhQiqgbiMVrjdsLURbIPsWbsLPyqAwfcSkfzzxPrON79RfgPjzwkmk1A+y8J92WD4ssHIJgrqCfk8uqkAaNAJUjgsoZu84WH1s+js8tssu0Dk44JpgcCxp7Bm9mQW67LRJ/ETh+mTzQ7PmKRoO6WfDU/HJwaIXH4wX4C//Es1Dn68WR8McFEPuEMAXJ+hwLUnXugvqJ8UCshYmOxSHvlH+A+Uh0B0KQg+GQQ6inD/MlTfpEq3ghv3sbOMQxsWtPSmUr0t6MoFYIP/kxkj8PdDlDAIa456G9GhSqXCmgNBjWzQHGYcH64ek1nKAas4YjP1OfoV9Fl81v2sw+2fw3x2ALY3wmyl2LMmEiN6W3m69/GVzQ8WWrGy/aUR0deuZCyUKFO9Ok9RniEdp3Zu3rh9+8bNv9uyYceODVt2LL6y0Ch7PHJj4cqbweuVJC94UdHm0TMhLNW7qtI9tumT2ESdf8WJK/x1ujNcJ7skVwh+cl2VV/2+x5bXcuU5qxN7AhM5gp73jpSo6QQd+gj2Zgv0pInwWoF8R7KQLOGzH1BbHsAn3L/y/pXEn/oWPv6BFfevGKdX7oZV2gyYP6FXCINRySkT496L+jCZGgWpdm7E5YxXQHwykyihInrd6kIuK3qOEKPoQyWDCIvcSIQMjiaiYtaEj5dlWSWWjG724o+Qu86l0a0Z5QdGu9HkMOIf6PIIQsTa9OyATt4s67jqfvz7KfGGWjzBOW2ghpwsVUObWyL4VQDpTZFxFy0C6PhwBP00ggTw/T3yDAXiv6eg/xRCYaORCpi/LKJ+AiWMkUl7XYpJUx3jZQSXmc36QoqgADmlAM7IKYWcJsIUYK4KVCxMhZUFmPAKIVFSQK9kOU3sXqLsMlkh3GKyRDwUNcjxR1yjqv8YR3ZpcWk+EAgh+4mnNTvNZt7sdIn2erurs8NutNvNFp/Jb8t22JGjLpntiARSnfV21M6arH6LV7BHMlaBa+NnWOLqC+m3316+atXyt332Jgs0pb7R4ePY43oNRskpGFJ8yJQ7y9ff0R0JJiSvzWw3i9LihNPoitP5+Sq7C/aEFFB+K6kEgfz30/MZmsIFINdJyidvQ07CY/KSFU00igkCD6ks5UGRdS44aUYW9gDCXiLsKI29lOAFHHIpLX3zGuIukxlxNmfd+odZm23/Rr/TxiNkMTqjjUf1tcctvMNo7pw3MN+MzGHT0Td96ei0HZnnD8zralxusHCyARnONFgMPwfXy1kMbMTZ4FcsAkJmo3qGwe0Lhk5bgA2GhaeFgj6PAV1pFBFCgkWpa7Twy8VMwMcj9VuhhLh2sG95exNCo4jzBzLqp0+ACt1Q8dUcMvweXChr0HTxYL4dwPMABjHuNCxVr2xCmrIrgs3uYhPPOb2yEa1EK41er4PnjeoVVsWC/mn0yg5eMKp3QwLPO7xekmDVeeRQ53dwGLAjESAbgWqLCUwTFHfOrc1NZ/XctKGayXmEuRkbn5jIero09+T5Jw3HE0l0wuevK/lsQO/IstUUckryooVui8djtlhirsGFbrQtVpizMNXQtUjxoH5edA41Ns9xmYQ+I2rsQ2n15zvOPHMHSkfcRadZMMbzXrvHYLh8jBMDsonrEprMg7eFjx0ZTcWzgYBkcZeOz3ktckaHga/j3zA+ppXpouenshQoePgKv0aDOhTntmFPSFMlxhPKGxO6olUHr3D+mKUjvZ2DQ519I2N3jo30dQ4NdvaOLD2mf27vCT29J/bMPW9O74m9PSf0zu2nsr21i9OtS9L16fr6dJFY+DcNkY7CuSecU+yIKkq0o3jOCecWOiINw/V1y49bftyKukCgbgV4ltfV76ClqTWslwZLb9uzsK8HACMZ0VYOYbNqtCs0SYYWKloTgYQNIy2RcDwgH2X0Qsu17pA8QpIokiOyuYA3XszKmhQvCbgjimeHlkNz5vR1dJeyma6580eOHhvp7Rra8MuMS4JG+Zpt7b7BeOuS1vDnjx1b0NM1N52ph46YO+DydLerB8WAiM/WhXvlz4n4ymzL2YXUFmilLCWy6bpgQxQ6I9e/+9h2W7MPKpRcmUAYOi4x+DfaT/ne+e3pZAvpDtxl9Yli+bO8y2XlOAGfJQZ1GfV36DgnAV4caZSJCv34+bnqAcaSPqZdvTCmS+fDmM7t6lkwdmysr61OG4MlrZURrJt2BB+ta+uLpacYsPF1dyVO6/i8duaNqdGTUybUYXXlIimHpoq7OXNiBsxV5PjWieSw1qoFC/Aa4jmRRJFQa+aTDJig5xMSA9bA66iuOjSuZ/wAfoaxUz1CTUgJ+2mOkhDcOOy60e/6wGVZybJouct/8H2/C3/f5Ud/vcPlt67EflePol7trKtzoh0MgZGAp5wxxfmS2eOgU4seamjgNzW8Q+3TVdyfUvuoesNTgKKopQhaCFB9fyTyfDT6PMBuPxD2786kFnEaQQEe1BjrGkFc0eX99fiYRWEvScNusoBZwqxnNk/SjYxOMVbuabUiZzvaV7VtSqc3taE73fX17s3EOvaoo74EMRCv/jG9OQ3mMhK9yVNf7znmqKNwgXg26TnR8ZqaacD9Hol5zx3o/TEy6SqoZ2sujaYZen6MjNUhHW//JuW3haH13VOPI4pSlmqUUDlJKsXr1hdaqZJCQ6xVI3/VsOaik9WXKQ3cAjTzlteI9zVKB1+k3krjN9HQ4Zyt8o8JiR30PO4JSFQGDB5NW6DCx3iajdA5mKvS4jmFOX+2/MLJA1F7yIurnpo1GsrxGUqyDUdA2k6OtrVF90TT6eiePUar1bjHZLWqEWWlMm7QG5G2tsgemo+kmkg+NkJ65K9694g64++vlPEnxvPb09ECKVWIprsspgKpuGCyWIgCsPoJsefRNJqrS0sjuXT64ec6r3Vwdj3HSgS3paeTnDDgKVTISQplalH+SY7NTTBIST/UMEgf+R+7x2LkDCbJbSdeE8cKsnsGvmb5KYtF4MxGBTUrbrMVkFazoKivKK7KeZGP2GdgP/LAbtQL0PJo2g48K46xlEaEMwwwBJpQKHrlPhzXtZhqBIxsItzV6ptORrJjsK+7remqW84PRBY0LEs3Jhfe2OvfdJH6Tl2L399Sl+zoSFrd7jq3m7X4W7oiakLrGfQ6WEQmkKC49uvxwtt+X8vJg/NsGxes6AgELfNc0bbBT3VcX9eSa/F3LOnoJ3XUufUzMl+u4nsFZ9SCGCjsKYBBo5qrxoeH8eP58of5PHbkK+62gw8zTOUMzu7a+qfXhE9C/Q/lSbV59LpW/ZXT1q7tN9dC3USWJzP1hP6rcLqI1FDjdlU0N/6yh/Cy9qDH9xCPKkG9e+D3ubBXXe0Nk1EIe9Feb3jPwYfZRaR+Qkf/ln0Q9oYg3csow19IYyqSDhHNRLlyyoUi2iQacKMSTQJ8lMQkUZuydvOyQMbZM2+obmfIK3WPjQXXtK1JbT99WTDYhHY279x5bCjSvKsq266gJHWPjobWtKFXlKgp29gebjTJ/l3BsbEuSQqtbVvbHAwdu317M9qZioSP3bmzaVdNttGxbo8Hso3D7e+gr1WdD6pAxtMa8cHGxrKhEd1OFcJctD9/QsfKytigPwNU2lZiOphh5ijmGOZYZhNAMnLeHvZGtzKOIQHSyx0hhP5/yPnzUSneHJeohfbWBMa8DakGL7XKX/tPZsOvSnq0pJvJXvX6//scOv73U/TTmnH4F/r7pelbUx24aMY3qeBot8GeKAP91wv03/HMmcwXmJu1nZHo/eCJA87dSJgEwpR49TFoNPUx6MNrwlPXhGas6SaiI030Zvbpx6PvR/uI5sz9FEP4GomsS9fv045d79tH1KGIpS6pKUc8tQX1ApPLsRaiq3P/eBntCDUtA9YcmggvQd6jNkndQ/NXVH9oDdUl9RLwPFK+KoXOCbJOn6W6BQrTRs81LqPr8jzm8zAydzEPTaNv4Ba0Q8FUDSeZsCNdLR4yxAmHRItOlhRJT4BCcUXSxZkkl6LF0hS3plUvSzlI4UggV6BSTvITpJxeJqqxZGJ6bgD4SWG8+v5xF3Lh8PiRyt9VlB5KZmTzuG3Y6pHsyNz9WXM8auTauxysZEFW1uIxOLraOSHW8OJ3WYG15dosXL+5rD5p6eOs6ZwN4hB6EmGOtc6bZ2U5/JClLWcz8Ox3kblfvQEi0JNYwJD4PNdngYy8wVJsR4vJM62s9kyP25NM3u/ozBjgMSJrkZ41QJq5ISbAe0ylalG+ELHFhGJA8USHARn9rNVl4OIezticNpnSzUbOkzAYXNYXXLms0+CsNwqjx/H8caOCsR6C2ZzL3dzoRqIJg4tkEulrbfUKW0bnkARHutWKTaYFwpItRm+6VWZdwaqHsUg4k/PEOaieJY8yJrIm/fGazuPr7Gkwbyp3qRAa5bA7UrioM4qmZZ2yJXKupPw+sTG48Hswh6O5XPnXuYrLJiBHA83xf+RoR7mB9eSy2VzZn83lstp73MYuYjf+X72H3a8ofjVCbPQbNYJ+U/5tEf2xWFQ9xYrLblT8Bw+QHOx8v9Jz8AB7WRH+Dt5L7Ar+8BTFWeOAs24al7Hq2qnkNfqRfqqHqmOSFxQUSnqVdJhfUQzAFDssxgkuXzm5ABgIEfR3Y4oL8+jLmtzuDSBEiIaykWwjb2jKmwf/bvM8JTgJt4J/+j6qCHiIszolViLxmhbzU/dCPPLYIcHhYRNU0/kNuj8x5LjqwYeByKHhQxDGaMhju+8pgeOsLhf/FDn76sEeC2JsnmdqEiw8TTjEkM2FnLl9hv0l20txeG9OJqoLUo5yhqhSElHZlXJZPURUlEjfCJJH09PTRIhB2Amg7QQLwg0Incfxwso/WLkbDIYbOOsfVmIWG9jzDKIBEowr/4ARazLs5rjdvPX3K4w8dx4rsp3oBt7yh5UChLR8UAEi+bQ6/ohIJSxiJ1KhehbputVPUT7xCJViwIDVSjHyZOCkpFyN0+McRy5zqBrLCUVcVMyi39lcHit6qUJ8idDzJoQqpBlRy8FfF0X1rImBo+Jc9DkxwCaQVO9GFSrkJRFKmpwm/FIF+yfkgCgGobSDjpHbekjT1r0XijMab/eQyj6E/wEQmKmgmlG6vxPykRKPQHVEZapUSYaklCihPIyJA/r3NHTO8gXzmlt8EV//KXPUK04WsYm1RM37rBhb8R+NHGeXJOG0luZ5C5a/Rc4dvTXnlP6TxJCZM5uhOW6rxjczMHg/4NlWxqmv1GhljRLdKnarXzn4keLH15dPxtcffIX93sEBvF/xlw9iA6w8taO5R5Mxqew3WMyEAGoNaGdECNJQwdltAPQBgVbGpdTasBHNItkJCVGaxVkskZMgVExya+NRsm9e8htE2vRgJGfpt+Qi3yKBb35TtFtMhm92tkIM2vcNIZI3N+Uf4kwWO4sbwuGGfEP5Lw15nAiFEjjfgG0N+T67ufwXkx0rOAxxkFJ+M8JiuwnbzHZ9r3gS5pUL8LH0hEafpBTTmLx4H+YkQr7CaGg6GoWch956k7PheIEQujBaWN5JlPiG0VHn3fLVCxsWRs68Wf3otge8IfT1HURzf+ioc/d89YKGRRCPzBAf1uDLzqXXHpdQNo2MnjVn+d1DIe+Bskhg4w6Ijsc2zx89c+7yu4fD3gNUn1fXyxeoRjvRl2tlMkyB6QTsbQ7DlMhLwusQsZJ2NUiOUN2aBEVAkFbSf3H9F530e75/Wx3q2Xrm9k0be/us7DCLnPPnn7LjEvXQMPljFw2XN29FMTDbNPusVcOFrXuG2VJhzdrTt261XbjthJ4+Fq3Ytu3A1q2Pbd1a2LZtdHj8r0KzvIF/zngJ3ktWoRzCNiwQ/T7o0D7sJsrzFa35LNGmT2JD32ljzq51eUPnpi41mF3ZaY3NzwhLzv2FOWQ+u1kMS+ZBc1i8zmzGP8ut7eHnfGrX5m42PXbcukHrvJ1z1R+YIZfZG4Jc5uvEsHlcJvodimcFmf7pcKpEhbAHDEfKUSmHV6qcASZbZ+UClgT27CSD3NlBpcPEs2HLqU6fL+b3GRc0NRa9/nxLWjK4SzYrKlrN3hZz3ZIpEYxvIbmBFEO3p5tHssFYe2PQz7sz4UDY4Qh43e6kVUn3zp845/B9nadRBExxBHDFWXE1DtdFjROnck6HgoAa3hYbIxqQ0woZB2GP27CBHFA4UwyYzxRRkxggEUESEYSfWlaujsWuVmZibajHiaScJyCeaRbPEgMP1wZ7dRVc/Yz31WyU6o2WdOmHzpfC49qiU3CWNb09j9Zq0laZzDQqTdVvLoklYbcFhJPqNfYhGX/SNNQoN5VCqiNUapIbh5rQh6pDF4Jns+ppojhvnuiuN20wgan/uDZ4HAB0XMTeOmpb2QjhVztCxWZZbi6GqBh8oCIjJ/W9KtaJ8+eb6t3iepHWMSl8AsKSVb3Y6mC9VnQh1K3zOZ/X+XMVXvtSwHk+zVxe0fI/Mm0lTys0n03pWVFvtwczgUAm+O0AcQLf/jY52PxthyRdGUPzFUU9EHuPjK163jTZ0P3B9iCYb+uOlgAWmyBBPTt4hyVHpdAGopl7Z0x9NBZDIzF1jp5Dzz+kVUxyD02bMnH+Uduz0hpsO2zXIrJBO8CKEDnmyKZRG6AZ7OEK39NtZPPya7p4rr2taB3JoF8n5yZYpT+RsblPe0oMi81nm0NeunENTr3BjWSW5bNW69GbBnDj3CVDLRzXNniM+n2zGUpKdF8cNIc0ev919heUp0ZgvZepA2gdYxLQImcUIEXUqRRYWUgq8IvDL1cAywk/N2AEBB1gXy6vG8Z1J37h7KavbT216cvoxluadkfvabpoT9On2fI6vKH8Dq7D55fX3XsCrhtSTWc13X5K0w0ZyPRHyISskA0thHx3DJffqexfN7FzKa0gM2EmSfTS3UTyqPVZki5RAZVQSbazYQSUpJscEgJX1t13HSkHXmG3H+9osZfvcTi+MIoHxsrPbm8/vdixdWtH7rStf4j198dCg/1/8rW0+KS2FtZiJzlboAgp2WJPjZW/O4bOPT1z+lVbOztP3NzfiTf0x2L93YnY5hbZ19JU79Nl8F/CF5CTVW4ysFUCeHjL7ZYGy/+iuyri926LYlU/sKDHLZaP0F0mjqOy926rFTkt5KgCheX/y97GMvRMhFnvgXroA+2WKDIitMuTRLmn6gfj04a0X7KSh7314Ef4BXL1zFn3xu7N7Y3dFd0TuzVxq7Lnqrtid111a+zWz9yl7MWZ8rU4o9rQX1jm4Eespb+8407I/t29yl0/26Pc+gJkU+sh0ACeCLh4DeQ/vV+1kfd11pwfOPzM+FrmRGYr7DdnMJfM/lzs9Fr7NSq9RAew4hemSyjVQKvokbTWxsiJ8ueJLiZqpXvOFbEFMTDfmcr5tjKigMF/JtovcV1a9Std+yVOsH70K6ql3xsj+vm6UUdI9eR3QY1HX4PfPKwfl/8neo2lJ0cr5627Eb24g7UcQRO9vFTrC6KS2kLe03uc0WBym9WHNGq23Cx6gv9q28c+JXjdZkSlcCnACZhxHdxvQbtl/Ra0YZg12yewlQmYffgJD3e0ALO8EEWZEj0XVoUgyrmsfHgsISqmyltkPWHtIEdYjVd86Ffjbcnnzz74PiuTX/nVHg6xLGfn29o5h8j1cIKB52YZxyZIxeUPK4/QCMEaaZWqDqnfHkKlXoOVM3BceztntnO9BlSujeDKPZyFZ3m+rY0323l4FtL1Pm7DZ8GuEWZaiEYwqpyp14/aQw9SXZWKvDU+vR7L3YM75s7dMai+Orh9EAxqUl/NHJsBg5qyxFW/PkQSPktTacoWYuEz5+74DCkJ1kDm2ONIHFgDU8ZqfE3tPGpKP4V4FHM0cwyzgdnInMzsYi5gPke0j2rHnQgND58e3axTawohJGtOpkx/RrEmgMjNL0Rsp90AQ3pk3IdueW78dKjt/fHjmxPnR5+7NGIkFwO4V0dOiUxp1DtQVP01oa6Jq91BMO7DP/LYJg6gzqmtGx9NfOVboABkxnNt7ks0zcOKdSlVSZw34K53XTqH3k9w8YDR7rKZqu5R9AI8J3euLJ/g4h/p9K5QtU7SyIa92kLhpj4O3HTk87R3bhYwz5r8xsWLebvDbDDwmwUzZ0ZoqrO5Gn99urOwP9oseE0GI9TEcQaL3cFtNiJ0YPJ52kn3mA4xW5jjmNNhXzkfZtQVs9xTJx1dt2lIrDLOGnRTkkG/0UAnkejWSrG70uwm3ZFv9lhvc2W1mZKlswtQP7ct415vMikKbzBYHU5eUQgNoCiEsgC7bnPkjsgkM4Nmy5jLlqEau5VHuerdGZtLfUEkNfJOh4Xj+IkHuME2/ZJMu9eIdQa9DmTiPmcHEwXcUTtVPNX5lcm3LtbcRDgOsjCz7cC2bQd+sW4VOcWyat1Jq25ateqmhxYvJCdYFi5enQk2BsE4ycNZy7YDLz+6jWR7Zd2qQnHOyq9866ZVJNvDJP9tUjDYFAzuiLwfATMu83+y5s7m2UPZGnwicoSjj+VR1njwk0tiD8fAEGibIuQt1ZKl5G0+USFvE/mrh9W36WlVjf/wIx0PKM5SG4VIqQV6fppqgYYR23qEFzvdFJSwSX1NjIqf4TFvdzn5k2fQodgjYlfArN5lQZb7BLfTjHnjF3T6cmrcb/3s3pzI6d2z3J3phcE2pBOS3iPicurW4eGLYk/HJhn1H70838tZzYJgts7Q5NTB9/AiggDtGbfQ8b28i+81sJyZP0cQOVzhF+2HPggCBbi1QlXrTGUlHiNDUiwR1WSiU0nODLE2TUaQRgT70LfbFOKTSoyqDumiz2iFTqYn7zXiOaoT1BggIHoi0BZ4M15iS43q2VbbjS6r1RVcAltPo8Vcj3i7ILq4DqPfJuxGOwW3WziEWRzwoYsIDVy+htixmEba4u3B9oAjmJT+Gy+BXfepjuTnUz1G653uXN4dZOvRD5Kd7DCQKf8lsEahYGRtUeFWv+likx+hxl+ZpI1e+58IVfwnQi+3B/+kEep/kpJBx9Cke94r99zOerWR/7hTof+zuDeW3kTTNOfAnBl2vH8MXDDw3+oguXgbPaHf/VK5H3zy202De5YoAqKQG+GihRnu9P7M+LXAM17X/QvtQmFydfAc/cwd1Qv94WzOPkx7pWRNoEa+tiuKX4lGy83R6OWRyOVR1BT5TAQMuJeTqPK+Sjr+IT3N+Gqk6k99jeAdOu3yoi5jJKNcYrqZhUD/TSHfgx10ijh02GE1KSdPle9tcuZMfYlo9aCg+r/Ieg+N6KIRj6ir0V7UQvyXE+uM44+3E1d9k55UcxwCch1tDkGYZg97Q0OHWIGke0MhEg4PH0JDteGLarOT4bDR9n5Xp1lqKd61zDpmG3MSc9bsKJhafdZpA2yNqod8hBAbiXS1+HwtXZHynyu+GspO3RFDLkVR/xSb7G4t2HxBn41ahWn8syBg7iRw7NaJPbPORsoG/Dab/14bsSd7dRk1ufNXoueQ+qEnj2WY+PiZo16UkyqYKVtzNwn1wd5BtAphyhRy8JOJlSsoXK5EfIqQpCkl4i+weyub/rD2uqsm9n1ypZBteT6/PO/rLHTehep6E2x2TTi0Jsv+9urVu4MapAgGSUuD+IsTfpKivrhs2Rvr1r2R+ta3Um888sgbX/vaG48k32h+COaLXLUHxoHGmbhv53hmB7OTuZC5iLmSuXaKu3e0G6HGUU8imY5qyrMSwZoInGhDKEvPXBS0CUBgBkCVKvm1do1WvHo+FWrOtM7u2wZETS9Zg/xUBzLVyBu5ymyCZVNHSJ5PUaoEMEm8lAbd9W4IlO8/Qto1lUvaKy7qPRy1fX3OnLbI+mh0fSQXeTZCTES3WQvU8ymNZLrc4sKIBEn9NHDwvSOlPkoqOGn8srsTxy2v+qpCv6LAEx3wSOOEoedBp/t2wrH/hnY7Ny0mNEHnHhkkfhBBddBx70RQo7a7a/YaiuvPdLE6ad9ztAcobSmrz2mdhboq30nA10I7q7BnSiYV9G+wgE9QNFxfx2A0VbEaLf3zRs5fsOD8kYULOzZ0gFm4eWFpUwnMwoV6wu7KSTx87cj5158/MtCx8fSNHQO6Q6M+1G4jNFXBcE0Hv5uZByttdQUno31P36/CQhBqLnzVN+hoDRCtCchEp1QuyaVkKSmUFDkphHF1SGabNO2tLVsINN/ynPoqhepN6qvjWIEOXjUzPDCg/ijodgcDjZYGvoFTLI2n1AbxPYCPqXuhTkAS0GrACQgWsdfuGaCfG1jtjgfs5Su1LxGQYcqWF6E2SVGkoBBzJpPOmBCsCVX0Xx4bvx9/OgnnTLfjV3OKXBMSzopnx3pyW82Tx2i31Ryzcf7Z8+adfQ2x5uVXFwqrtxJrFlfWrJp39rWkFFjD+TUnrsnnV29bnWeqv0VAZJyNQG1OgbVNQW8AxhbXcclkkiwAInA7jOy+agBlJz4JlPQSgdxhS2Tg4O9ZLyI8wfGzIHvxX/QzBSU6+9ZQPtZWwAh2/gs8h0kHPKQp4g4/RSDlJs6TyxNnzI1HupvnWoLmPEaQm4f27aMOsfbdcw9aVB26Pq9d1fJQIUzcsMb3Xa3Tsnt1vu9qSsvujRdKYe82gm9t84a7NpwW9m4l1WwlgZuqA6jkJZWFvZqjn2H+Jfs3NqWfOaTXRYYrWtZh7VMDhCGlfXxFo3bpnWDkZ6eq+EQfBhNyCycTxX6cTKMkPsZh3MhJ1lfsskkw32wy4jg2+0K275rrLE/aQj4zhI3iV8yCSba/YpH4jaZmw1Jbe2j/pR43i8Jf8xf9pjvCnN0lXPpIfdrGRgTn9y12HMbuYNB8g8lvfdkecGHhOAEMUMn2l61+0w3mYNANWeyW73ts6+6sV7i6i9z5etP+ZVZsNizbX1/wCBfVGcK+Cg/8LfZdtgmwnxV0vuxgzmUuYxgullQSyfH/ErlZvPKNF8lLjwUnBBtpM/hy3hI5gEnWbk72lujKTRb0ovSYpqzdxyZ7WVi7xTTmSx4vrGCYJuCBtUxmTrWHziBsjEtsJtMYD/ic7FyTMdlwxYr1605cfVS734X9w62jqWTQK3KciIwNtxt2Bnmj6Az3AYhyB7z1rna31dvcu3D5kiXzt4cUnu+0e7yhaOMdwRRgcc2hrlBTCMyN8EOhVPAezQ0tCzcFg83BkIGv98b8AQ9/3Mmb1iy7IBC2O0c6lrXmePba4RTMbc5rCZh9rfYlI+5BEWrOuxs5zCLB5Gw/FSWTC9u7bZY63/GDC5euW+WWPQGXjLqh6aFm+H0GaG94RrDfEwqBM5c4odAt4MCzK3T9kzpvY7bfZaGsP11ZS5PsHplD9I4YFB9/XNf0exkCvxBn4Eq8LYpPPEHOS7qcwsuiCGUqusEEfyZSW6Id3M700LMs6wGvvIn5GvNw5f01enWqO/1mf2kzKxNNF7LxlHKyFKJyfHIkWxaUpH5FI51nVJsSsni1Q6dkctL7/fSzpR4KbvKliVMypTAi+SVykTe92LtEt6/x9sd1UdM5hK+2tvbm5+t50T4W4OMc4r0c/8VIGnEJXjLb7BZX1GtxpxanuQSHDUbJarTxFosUsngb303JoZC8nFgpT11dk99/FTeXi3Nco2GIOHQoCI1JHl4hELTTZcNP1VwXfTF3WZ2jrlnhOM4g2czWyzkuFuU4myjaBYORE+0d8YYIz5l5E+YsAsuzBsFoDwcakC9wUtDnC54U8LVEeiJgEuzO7Rz3JIfP2EmcKv59hbKe5TkrzplzypLiBKKHnLhyEhoIIB8QRgIhjgpHRh1/0vHKdT/pWQE/dOYDu+BvBnTxeDWHXsjcoP51fewGJK6PdagNPfeh3nN7mHF+6+1VsHryjSPTQGsTkhGLZBMGx6Kf6HQFS81ecqRz0sfvHmktL1yMHkiro8hCnLGZwHd5J96fLi9EC9GDkFv9CD3Qqo5R2n5CXlJ9N9VxzC7m08zFzCXM1bOToMzy/lN3haf3b1U1k+RlmptMszoHatalNKHMbiqUAVdnaO0mJcA6VrueFOrVcgPK2lq/u1L1boKmVueuXGcKc8Mzq/6+hrmZ+SpzN3MPs///fd9Pq1lQXROq/oyS8z84QureykETtJpg/hod4FH3+K/3g/lv/7AfzCjpzvJ95H680AFi/pPjtaoyXo3awxATUn8XDKJ6cMgH+So6h5r+gqfqG4uzpS1qvgs40dkoiw0z0hY3EH7Te7E7FOWO2Cwoik/FPomB+URXGOQOo9m7/g1aXZ4dRa52VijyF+jF8rBFkR1NI0XQn2CHq9mhLiYkXWcV4c1M/v5AhceweJY3zNTwgGp4wvSaQyhITzGGZviE6gcRdD4049JIhFxdF8GCxbiUFw3YsNRgMQszgAr1EKHYzyNEq3rNUqNFMFugHDaIlKb7C/siS7jc5C6tvupWJQVy1IAgLMmattEbCUpEPXyKNrLLoqUomB/221OOuc9FilEc6Yji1eW93mBI+onL1tVntvMvSaGQaqRKP+pLMdYa7YiqjWChPjtrmxPOR9CvIXRUWFIbpbC1t9eMwxJ6zRtSVe2C2Qn8KzyJ73MGcwHzWeZa5n69JX70H0HANFxLu+7Ho13Sod9tpWFbXsBB9bs9SrKGSR1+6TGkUFxL8sg5eBVZolfp9CKSO/evoF5fbEizhnYDYgWnTTQDEp1a6TWbDRkDMhi9ZhOPzKlIffMvDJDH8EimvX1zJpNx0xOH9xj8HOdHCFlNnEFusIqSwSDpn+r4AJmQ8TDE65Phpxur/tSzgw0GA88bjSJvEoJysMFtqrNxBjNnRBxrFkSjX65Pdhv+ZgDT1XtMd/cxvZn6fD2YtYY2Q8ywVoCZ12Ag11m6T4Zwm2H8Lo5fAC1fkWf0a1+KOvxCvanjqo7NaPQ55cSyhHIl+kYAVnIVqV8BZuyZhFqmZPg9N92EO4nnMRIFIfVnLOrDuA8LNxoEwXAjuxkCCE2E8Z/DUvmz9EN6Z0vhofJd+JbJETJkN+BelmUbeEPEICiYVR+gcX1Yj+MbMKvxVH7NvsRGYQ9PU/4ZY0Ljs1VG9EpcVMzHKaOM3PVKT9poX/pAZPpNwSPKUTX5e9XnWzNqubTY4wbCvVTf7kZssiwIbo8VsTaPCRVFQRDVsslT7zGpz4vCL5WuWKxrmFgxOwFLdl8shp5BxeTiklqG8urzSaiLTZx2yOpxk7LPa2XLpCJUNHlsb+vlwRpy1Ifr7bH2mD62n8Yfw6qtA3qbaBwdwzDuCaotkZ/QzQV4NX6hknbqu+p+pUQ+jkhGzV+T8MWzeKfTCjPzLLHeg7uJLYLlNpVfRNdrSYJ6iu5B3qo4yKR+jEKkgPqmKeBG16OQ4HQSDQz1LVLZ9rOA+rM4XfxZJnd9+bWzRHc9VO2pF6Ga6wSDwep08urJvO55vyoO8ltQmGSFmtwBdB0K06qcAg0zOu57h/7d9Wo53hiVaxE+1hk1X2WczI+q+YKSPMu4WtRp+ku/I+Rumi30OpvRUbyGfv18F/1C+SXq5xD0AYl4lUaE1T8g6bCI8laKH6Fe2O6fHnfJ98+36FX3jH6hOrAnKG0mzwOre2yP/nBI7h7FAyGVAxTon+AQFAg1kZrH8aDnq/QZK191nVEWSPiSUfghXauRTVUuly7/eVzeRkR5hBVAlRx2DaN5Q2iedncBu2gWwrnhSl71MaJmqOl+v8m+wXpq5MtdRH+jRrZco6ThrB6xqRAPmUrmYrwg6bIqmW54ZP8o6LteclUHznZ2ll/suCR3IJs9kCOnRfEXw7kwGPX+cD4Uyofvdsgn2r1YdpzotnPOit9jYz0EFVS95Gwp+n1OlXM59H7uEFNVFC2FwPGHleS1GnU++I+q7qiobW/N3bQXjl+a8AKBeuhuAnvQBSSGpDA67/JD9kZ6d2/rlHpPWo9Uye5yFbldApu3PbZt22NUeYlcxXuyzXUx+SLRRe5698VEKHWxe/JFvT8mkfXui6qy6XKZ7+NDtE0exjf5i8lVl7Z/ugG2/oaD5Qa0/dUtuT/kN796zSrDyoXxhoY4frj8wlVX4Zy6969/1ffLGwEmOGrx+n/5XuKa0yOVFpOmFAur1568eol25/CSh5doKl5L1N9FtEuKI29ScV5k22MvP7aNZKYdMFCTmXjS6ksk4+2kCCmqv/uH+JGauV1700m85pucNb2V6NjeAQY1aq4aamC74/GDzzbgTR3qvo4OdHTHsR0qD55/dKgfAooUZ5j/D9nCYecAAHicY2BkYGAA4kkhh/Pj+W2+MnCzMIDA4zOpIQj6/wIWBuYEIJeDgQkkCgA2tQqpAHicY2BkYGBu+N/AEMNSzwAELAwMjAyoYCYAVAYDgQAAeJxjYWBgYHEAYgYyMEyfPQE1DkhqHbCI48LYzEAXR1djj8MOGzQ1NgTcR8iNxkT6wZ4INdjcAcIGOPyFK3zR48EeT9wgm1WPxW57HGrR3cvAgOlPNHUA2pwZdQAAAAAAAG4BYAHEAiwClgMsA6oD7ARwBOAFOgWMBf4GFgY8BmwGtgbcB0IHxggMCDQImgkaCZoKWgsqC7wMQgzCDRwNUg2oDdgOOg6aDtAPHBAeEWIRlhHKEiQScBMgE4wUWhTqFToVohYAFlQWvBceF2gYCBgiGHYYyhlyGgIaLBqgGw4blBvoHDIcXBzCHUQdnh5CHqQfHh9OH3wfrCAOICQg6CEuIfgjFCNYI5wkJiSGJPAlMCVUJbImBiZoJqwnDieMKBIowikmKW4pxCnsKkQq6CtkLAosZC0ULZAuSC6eLuwvQi/EMFQwpjD0MUYxvjJmMtYzyjQ+NIg1HDWANcg2ajbmN7A4Bjj0OVY5rDpkO0g7pDv8PGo8xj2uPio+nD8qP8xAJECgQMhBCkE0QZJBzHicY2BkYGCYyfCBQYoBBJiAmAsIGRj+g/kMADIzAroAeJxdkc1OwkAUhc/IjxESF5q4cDVuiImhBZbsDAnsWeC6lCk/aTvNdCBh5dP4BD6BT+AT6Ev4Ah7K1QTazJ3vnLn3zk0L4AbfUDg+t1xHVrikOvIF+V64Rn4QrpMfhRtoIxRu0h8Kt/CEZ+E2O6bsoOpXVB28Citc4034gvwuXCN/CNfJn8IN3OFLuEn/R7iFmVLCbXTUy8iZyJuFnu/1OrZ5YnOfxN0DTs1ym0ZOlGwz48q1zXU/6IkzMblxfy3K3XLgfaITZzM9Zi+TplYXzm5M7IOV98UwDBPxg9hmGMHBIIJnXEBjjj3jGjEsciRV9NxjdP/dKXOX2PJDRaw+PTtVM2Y6lNQHpdFHgN5ZzoQ5eZV3PkWJHe8Z0D1MoLkcKzLSWOYynCElaxTV2YZOTD/Aqqoq+JNDvslZflDdnf0CPF1o6QAAAHicbVOHcuM2EPWzSIqSbF98vvTeK5OcfOm99957IGIlwQYJGgAlK7333i9fmwUlJfZMNCOCAJbA21dWVlfmv+7K//9OYhUtRIiRoI0UHXTRwxrWsYEjOAWbOIotHMOpOA2n4wycibNwNs7BuTgP5+MCXIiLcDEuwaW4DJfjClyJq3A1rkGGa3Edrsdx9LGNE7gBN+Im3IxbcCtuw+24A3fiLtyNe3Av7sP9eAAP4iE8jEfwKB7D43gCT+IpPI1n8Cyew/N4AS/iJbyMV/AqXsPreANv4i28DYEBckgQhhhhDIUd7EKjQAmDCnuwcPCoMcEU+5jhHbyL9/A+PsCH+Agf4xN8is/wOb7Al/gKX+MbfIvv8D1+wI/4CT/jF/yK3/A7/sCf+Asn8fdKqk0uvDJlsmdzIylVZVX7TMlEDa0oKBa1VKY7NLbICt7XsVdeU+TUqGwLKS0513Gej3Be5e2BaE6JJ0qSScREeGHbrnYVlbI9FbZU5ShyPEktDfnbcX9VqHZudF2U24vxxGLsL8bjiRYzU/uOo1FBpSfZDgNj7szBejFqeTFYy005VKOMJrzLmKjKAuzEaQZjE6mENqOtnZqBDmeZq0ROwpq6lEldaSNklJtq1vWqoMyKckSpF2434x6PHfpmQH5KVCaqqIz1Pb5YU3PRdm8BYCAcHRWaGVKeCpc5b8nn44NLQ037zEKcjynfjUTtTZoLzSvCLttwfqbpyGIi5ESUOcnlZmVN5TZYDvKU5crmmvrrh6bJfHZMKkt5ICuzZmqZG+toTSpXMakNjEhaMVpfrgzYD7uRZN1iksr3o/AMQmcsxtaySpValdTULhFOuDv+jCJppuXG4cIWzajD/yzXxlG7YhiKpr1we1YyKlElQ6NZpF7js3kDnWY7bEZhtdNsBfYixVfGqhAj2lwqE2rZhdZvLFfy4BR75F/p5hrEDGe3HxeqrF3MLqr7UWEsReE11ax6zae2KiGTwgyUprTieVaIfS6bLGeqTLmFLDhstcqjsNhe2DmxQqra9ZyYsCmU1iTTvZpckzCXW6N1GFTl2468b9LApYkbC+YtnQirgp9aM3Jr8zWmkCuDItQNj4U3WQ0tKsdfThX3xRkbBIJ63CYjY+lzH7MkNQdYk/VRLqxMG7cNzD57zeUihGJQe2/KcLDIGifHI45E1ZYqJNhGgdc1SXPI3IOLxr7QSTCFsXETvyhQysw4NzVWxoEA02KvJXPtI8ugY4ZrbDLHFe04JqOsiwHZuIlU978QHchTPwpZjLiiTD3ts7ok2t4Y7VUVOW186pkLNyTL6R91pnyPLYTdjQIHcXNOpzHuWGkZ8Vu/xY+tAykMQQ0Yu01Z47rNA9tzC62s/APehQ0CAA==) format("woff")}.fc-icon{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fc-icon!important;font-size:16px;font-style:normal}.icon-location:before{content:"\\e6d4"}.icon-qrcode:before{content:"\\e6ce"}.icon-input-id:before{content:"\\e6d1"}.icon-iframe:before{content:"\\e6d2"}.icon-audio:before{content:"\\e6d3"}.icon-form-model:before{content:"\\e6d5"}.icon-title:before{content:"\\e6d6"}.icon-sign:before{content:"\\e6d7"}.icon-address:before{content:"\\e6d8"}.icon-statistic:before{content:"\\e6d9"}.icon-barcode:before{content:"\\e6da"}.icon-video:before{content:"\\e6db"}.icon-avatar:before{content:"\\e6dc"}.icon-suspend:before{content:"\\e6cf"}.icon-warning:before{content:"\\e6d0"}.icon-send:before{content:"\\e6cc"}.icon-refresh2:before{content:"\\e6cd"}.icon-ai:before{content:"\\e6cb"}.icon-ai.bright{-webkit-text-fill-color:transparent;background:linear-gradient(90deg,#328ff7,#62e3a3);-webkit-background-clip:text}.icon-column4:before{content:"\\e6c7"}.icon-column3:before{content:"\\e6c6"}.icon-column2:before{content:"\\e6c8"}.icon-column1:before{content:"\\e6c9"}.icon-layout:before{content:"\\e6ca"}.icon-segmented:before{content:"\\e682"}.icon-mention:before{content:"\\e6c5"}.icon-input-tag:before{content:"\\e6c4"}.icon-up:before{content:"\\e697";display:inline-block;transform:rotate(180deg)}.icon-alignitems-flexstart:before{content:"\\e67f";display:inline-block;transform:rotate(180deg)}.icon-align-center:before{content:"\\e6a5";display:inline-block;transform:rotate(90deg)}.icon-align-flexstart:before{content:"\\e6a4";display:inline-block;transform:rotate(90deg)}.icon-align-spacearound:before{content:"\\e670";display:inline-block;transform:rotate(-90deg)}.icon-align-spacebetween:before{content:"\\e695";display:inline-block;transform:rotate(-90deg)}.icon-align-stretch:before{content:"\\e6a7";display:inline-block;transform:rotate(-90deg)}.icon-align-flexend:before{content:"\\e6a4";display:inline-block;transform:rotate(-90deg)}.icon-justify-flexend:before{content:"\\e6a4";display:inline-block;transform:rotate(180deg)}.icon-direction-row:before{content:"\\e68b";display:inline-block;transform:rotate(180deg)}.icon-direction-column:before{content:"\\e68b";display:inline-block;transform:rotate(-90deg)}.icon-direction-columnreverse:before{content:"\\e68b";display:inline-block;transform:rotate(90deg)}.icon-arrow:before{content:"\\e697";display:inline-block;transform:rotate(180deg)}.icon-cell:before{content:"\\e654"}.icon-table:before{content:"\\eb0a"}.icon-next-step:before{content:"\\e6b4";display:inline-block;transform:rotateY(180deg)}.icon-grid:before{content:"\\e65c";display:inline-block;transform:rotate(90deg)}.icon-alignitems-stretch:before{content:"\\e67e"}.icon-alignitems-flexend:before{content:"\\e67f"}.icon-check:before{content:"\\e680"}.icon-auto:before{content:"\\e681"}.icon-config-event:before{content:"\\e66e"}.icon-calendar:before{content:"\\e683"}.icon-config-style:before{content:"\\e684"}.icon-copy:before{content:"\\e676"}.icon-config-advanced:before{content:"\\e686"}.icon-config-props:before{content:"\\e687"}.icon-delete-circle2:before{content:"\\e688"}.icon-delete-circle:before,.icon-delete2:before{content:"\\e689"}.icon-delete:before{content:"\\e68a"}.icon-direction-rowreverse:before{content:"\\e68b"}.icon-display-flex:before{content:"\\e68c"}.icon-dialog:before{content:"\\e66f"}.icon-drag:before{content:"\\e68e"}.icon-display-block:before{content:"\\e68f"}.icon-data:before{content:"\\e690"}.icon-edit2:before{content:"\\e691"}.icon-edit:before{content:"\\e692"}.icon-add-col:before{content:"\\e693"}.icon-display-inlineblock:before{content:"\\e694"}.icon-config-base:before{content:"\\e6bf"}.icon-config-validate:before{content:"\\e696"}.icon-down:before{content:"\\e697"}.icon-display-inline:before{content:"\\e698"}.icon-eye:before{content:"\\e699"}.icon-eye-close:before{content:"\\e69a"}.icon-import:before{content:"\\e6a6"}.icon-preview:before{content:"\\e69b"}.icon-flex-nowrap:before{content:"\\e69c"}.icon-folder:before{content:"\\e69d"}.icon-form-circle:before{content:"\\e69e"}.icon-flex-wrap:before{content:"\\e69f"}.icon-form:before{content:"\\e6a0"}.icon-form-item:before{content:"\\e6a1"}.icon-icon:before{content:"\\e6a2"}.icon-image:before{content:"\\e6a3"}.icon-justify-flexstart:before{content:"\\e6a4"}.icon-justify-center:before{content:"\\e6a5"}.icon-justify-spacearound:before{content:"\\e670"}.icon-justify-stretch:before{content:"\\e6a7"}.icon-link2:before{content:"\\e6a8"}.icon-justify-spacebetween:before{content:"\\e695"}.icon-minus:before{content:"\\e6aa"}.icon-menu2:before{content:"\\e6ab"}.icon-more:before{content:"\\e6ac"}.icon-menu:before{content:"\\e6ad"}.icon-language:before{content:"\\e6ae"}.icon-pad:before{content:"\\e6af"}.icon-mobile:before{content:"\\e6b0"}.icon-page-max:before{content:"\\e6b1"}.icon-move:before{content:"\\e6b2"}.icon-page-min:before{content:"\\e6b3"}.icon-pre-step:before{content:"\\e6b4"}.icon-pc:before{content:"\\e6b5"}.icon-page:before{content:"\\e6b6"}.icon-refresh:before{content:"\\e6b7"}.icon-radius:before{content:"\\e6b8"}.icon-save-filled:before{content:"\\e6b9"}.icon-question:before{content:"\\e6ba"}.icon-scroll:before{content:"\\e6bb"}.icon-script:before{content:"\\e6bc"}.icon-setting:before{content:"\\e6bd"}.icon-save-online:before,.icon-save:before{content:"\\e6be"}.icon-task-add:before{content:"\\e68d"}.icon-shadow:before{content:"\\e6c0"}.icon-variable:before{content:"\\e6c1"}.icon-yes:before{content:"\\e6c2"}.icon-shadow-inset:before{content:"\\e6c3"}.icon-date:before{content:"\\e642"}.icon-date-range:before{content:"\\e643"}.icon-collapse:before{content:"\\e644"}.icon-slider:before{content:"\\e665"}.icon-switch:before{content:"\\e646"}.icon-subform:before{content:"\\e647"}.icon-time-range:before{content:"\\e685"}.icon-tree-select:before{content:"\\e649"}.icon-value:before{content:"\\e64a"}.icon-table-form3:before{content:"\\e6a9"}.icon-alert:before{content:"\\e64c"}.icon-card:before{content:"\\e64d"}.icon-checkbox:before{content:"\\e64e"}.icon-cascader:before{content:"\\e64f"}.icon-button:before{content:"\\e650"}.icon-data-table:before{content:"\\e651"}.icon-group:before{content:"\\e652"}.icon-divider:before{content:"\\e653"}.icon-flex:before{content:"\\e654"}.icon-descriptions:before{content:"\\e655"}.icon-html:before{content:"\\e656"}.icon-editor:before{content:"\\e657"}.icon-input:before{content:"\\e658"}.icon-link:before{content:"\\e659"}.icon-password:before{content:"\\e65a"}.icon-radio:before{content:"\\e65b"}.icon-row:before{content:"\\e65c"}.icon-inline:before{content:"\\e65d"}.icon-rate:before{content:"\\e65e"}.icon-color:before{content:"\\e65f"}.icon-select:before{content:"\\e660"}.icon-json:before{content:"\\e661"}.icon-number:before{content:"\\e662"}.icon-space:before{content:"\\e664"}.icon-step-form:before{content:"\\e663"}.icon-table-form:before{content:"\\e666"}.icon-table-form2:before{content:"\\e667"}.icon-time:before{content:"\\e668"}.icon-span:before{content:"\\e669"}.icon-textarea:before{content:"\\e66a"}.icon-tooltip:before{content:"\\e66b"}.icon-slot:before{content:"\\e66c"}.icon-transfer:before{content:"\\e66d"}.icon-upload:before{content:"\\e673"}.icon-tag:before{content:"\\e671"}.icon-watermark:before{content:"\\e672"}.icon-tab:before{content:"\\e674"}.icon-tree:before{content:"\\e675"}.icon-table:before{content:"\\e677"}.icon-add-child:before{content:"\\e678"}.icon-add2:before{content:"\\e679"}.icon-add:before{content:"\\e67a"}.icon-alignitems-baseline:before{content:"\\e67b"}.icon-add-circle:before{content:"\\e67c"}.icon-alignitems-center:before{content:"\\e67d"}._fd-step-form .van-step{cursor:pointer;line-height:1.4;text-align:left}._fd-popup.van-popup{background:var(--fc-bg-color-1);margin:10px;overflow:auto;padding-top:50px;position:relative;width:calc(100% - 20px)}._fd-popup-content{display:flex;flex:1;height:calc(var(--fc-dialog-height) - 152px);margin-bottom:5px;overflow:auto;padding:1px}._fd-popup-content>._fd-drag-box{align-content:flex-start;align-items:flex-start;box-sizing:border-box;display:flex;flex-wrap:wrap;height:calc(var(--fc-dialog-height) - 105px);justify-content:flex-start;outline:1px dashed var(--fc-tool-border-color);overflow:auto;position:relative}._fd-popup-content ._fd-drag-box{outline:1px dashed var(--fc-line-color-3)}._fd-popup-title{color:#333;font-size:16px;left:0;position:absolute;text-align:center;top:16px;width:100%}.CodeMirror{color:#000;direction:ltr;font-family:monospace;height:300px}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{background-color:#f7f7f7;border-right:1px solid #ddd;white-space:nowrap}.CodeMirror-linenumber{color:#999;min-width:20px;padding:0 3px 0 5px;text-align:right;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{background:#7e7;border:0!important;width:auto}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:-50px}.CodeMirror-ruler{border-left:1px solid #ccc;bottom:0;position:absolute;top:0}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{background:#fff;overflow:hidden;position:relative}.CodeMirror-scroll{height:100%;margin-bottom:-50px;margin-right:-50px;outline:none;overflow:scroll!important;padding-bottom:50px;position:relative;z-index:0}.CodeMirror-sizer{border-right:50px solid transparent;position:relative}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{display:none;outline:none;position:absolute;z-index:5}.CodeMirror-vscrollbar{overflow-x:hidden;overflow-y:scroll;right:0;top:0}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-x:scroll;overflow-y:hidden}.CodeMirror-scrollbar-filler{bottom:0;right:0}.CodeMirror-gutter-filler{bottom:0;left:0}.CodeMirror-gutters{left:0;min-height:100%;position:absolute;top:0;z-index:3}.CodeMirror-gutter{display:inline-block;height:100%;margin-bottom:-50px;vertical-align:top;white-space:normal}.CodeMirror-gutter-wrapper{background:none!important;border:none!important;position:absolute;z-index:4}.CodeMirror-gutter-background{bottom:0;position:absolute;top:0;z-index:4}.CodeMirror-gutter-elt{cursor:default;position:absolute;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{word-wrap:normal;-webkit-tap-highlight-color:transparent;background:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-variant-ligatures:contextual;line-height:inherit;margin:0;overflow:visible;position:relative;white-space:pre;z-index:2}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}.CodeMirror-linewidget{padding:.1px;position:relative;z-index:2}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{box-sizing:content-box}.CodeMirror-measure{height:0;overflow:hidden;position:absolute;visibility:hidden;width:100%}.CodeMirror-cursor{pointer-events:none;position:absolute}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{position:relative;visibility:hidden;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-hints{background:#fff;border:1px solid silver;border-radius:3px;box-shadow:2px 3px 5px #0003;font-family:monospace;font-size:90%;list-style:none;margin:0;max-height:20em;overflow:hidden;overflow-y:auto;padding:2px;position:absolute;z-index:1}.CodeMirror-hint{border-radius:2px;color:#000;cursor:pointer;margin:0;padding:0 4px;white-space:pre}li.CodeMirror-hint-active{background:#08f;color:#fff}._fd-fn{display:flex;flex-direction:column;height:100%;position:relative;width:100%}._fd-fn .ant-btn{bottom:3px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;font-size:12px;position:absolute;right:5px}._fd-fn-editor{display:flex;flex:1;overflow:auto;width:100%}._fd-fn-editor .CodeMirror{height:100%;width:100%}._fd-fn-tip{background:var(--fc-bg-color-2);color:var(--fc-text-color-1);direction:ltr;font-family:monospace}._fd-fn-tip .cm-keyword{color:#708;line-height:24px;overflow-x:auto;white-space:nowrap}._fd-fn-tip .cm-keyword::-webkit-scrollbar{background-color:transparent;height:0;width:0}._fd-fn-ind{background-color:var(--fc-bg-color-3);border-right:1px solid var(--fc-line-color-2);display:inline-block;float:left;height:24px;margin-right:4px;width:29px}._fd-fn-arg{cursor:pointer;text-decoration:underline}._fd-fn-arg i{color:var(--fc-style-color-1);font-size:12px}._fd-cdi-input>div{width:100%}._fd-pattern-input{width:100%}._fd-pattern-input .ant-input-group-addon{padding:0 10px}._fd-pattern-input .fc-icon{cursor:pointer}._fd-pattern-popper{height:340px;overflow:auto}._fd-rule-select{min-width:200px}._fd-rule-select-node{display:flex;justify-content:space-between}._fd-rule-select-node>div{color:#61affe}._fd-rule-select-node>span{font-size:12px}._fd-value-input .ant-input-group-addon:first-child{padding:0;width:55px!important}._fd-value-input .ant-select-selector{padding:0!important}._fd-warning-pop{max-width:400px}._fd-warning-text{cursor:help;text-decoration:underline;text-decoration-style:dashed}._fd-variable-btn{align-items:center;background:var(--fc-style-bg-color-1);border-radius:5px;color:var(--fc-style-color-1);cursor:pointer;display:flex;font-size:12px;margin-left:6px;padding:2px 6px}._fd-variable-l,._fd-variable-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-variable-r{margin-left:10px}._fd-variable-con .ant-layout-content,._fd-variable-con .ant-layout-sider{background:var(--fc-bg-color-1);overflow:auto}._fd-variable-l .ant-layout-header,._fd-variable-r .ant-layout-header{align-items:center;background:var(--fc-bg-color-3);color:var(--fc-text-color-1);display:flex;font-size:13px;height:40px;padding:0 20px}._fd-variable-r .ant-layout-header .fc-icon{color:var(--fc-style-color-1);cursor:pointer;font-size:13px;margin-left:2px}._fd-variable-r .ant-layout-content{padding:10px}._fd-variable-info{background:hsla(0,0%,67%,.1);border-radius:6px;color:var(--fc-text-color-2);display:flex;font-size:12px;line-height:18px;margin-bottom:6px;padding:8px 13px;position:relative}._fd-variable-node{align-items:center;color:var(--fc-text-color-1);display:flex;font-size:13px;height:26px;justify-content:space-between;line-height:26px;padding-right:5px;width:100%}._fd-variable-node>span{color:var(--fc-text-color-3);font-size:12px}._fd-variable-item{align-items:center;border-bottom:1px solid var(--fc-line-color-3);display:flex;min-height:40px;padding:0 20px}._fd-variable-top ._fd-variable-item-label{color:#fca130}._fd-variable-item-label{font-size:13px;margin-right:18px;width:198px}._fd-variable-item .ant-input{display:flex;flex:1;font-size:13px;margin-top:4px}._fd-variable-item.active,._fd-variable-item.active ._fd-variable-item-label,._fd-variable-item.active input{color:var(--fc-style-color-1)}._fd-variable-item input{text-align:center}._fd-variable-item .ant-input-affix-wrapper{border:0;box-shadow:none;flex:1}._fd-variable-pop .ant-tree-indent-unit ._fd-variable-con .ant-tree-indent-unit{width:5px}._fd-variable-pop{overflow:auto;padding:0;width:330px}._fd-variable-pop .ant-layout{height:400px;overflow:auto}._fd-variable-pop .ant-popover-inner{height:100%;padding:0}._fd-variable-pop-header .fc-icon{color:var(--fc-style-color-1);cursor:pointer;margin-left:4px}._fd-variable-pop .ant-layout-header{align-items:center;background-color:var(--fc-bg-color-2);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:0 10px}._fd-variable-pop .ant-layout-content{background:var(--fc-bg-color-1);border:1px solid #f5f5f5;border-top:0;overflow:auto;padding:10px}._fd-variable-pop .ant-input-group-addon{background:var(--fc-style-color-1);color:#fff;cursor:pointer;padding:0;width:60px}._fd-variable-pop-node{align-items:center;display:flex;font-size:13px;height:26px;justify-content:space-between;line-height:26px;padding-right:5px;width:100%}._fd-variable-pop-node>span{color:var(--fc-text-color-3);font-size:12px}._fd-cdg-input{display:flex;flex-direction:column}._fd-cdg-btns{margin-left:30px;margin-top:10px}._fd-cdg-input ._fd-cdg-btns .ant-btn{align-items:center;color:var(--fc-text-color-2);display:inline-flex;font-size:12px!important}._fd-cdg-btns .ant-btn+.ant-btn{margin-left:12px}._fd-cdg-item{display:flex}._fd-cdg-and{display:flex;flex-shrink:0;position:relative;width:100px}._fd-cdg-and>.ant-select{left:-5px;margin-top:-16px;position:absolute;top:50%;width:80px;z-index:1}._fd-cdg-and:before{background-color:var(--fc-line-color-2);bottom:1px;content:"";left:30px;margin-bottom:16px;margin-top:14px;position:absolute;top:1px;width:1px}._fd-cdg-options{display:flex;flex-direction:column}._fd-cdg-option{align-items:center;display:flex;position:relative}._fd-cdg-field,._fd-cdg-variable{width:208px!important}._fd-cdg-variable{height:32px!important}._fd-cdg-term{width:104px!important}._fd-cdg-option>._fd-cfg-value{align-items:center;display:flex;width:208px}._fd-cdg-option>.fc-icon{color:var(--fc-text-color-2);cursor:pointer;margin-left:10px}._fd-cdg-option>.fc-icon.disabled{cursor:not-allowed}._fd-cdg-option>._fd-cfg-value>div{width:100%}._fd-cdg-option>.ant-input-affix-wrapper+.ant-select,._fd-cdg-option>.ant-select+.ant-input-affix-wrapper,._fd-cdg-option>.ant-select+.ant-select,._fd-cfg-value{margin-left:10px}._fd-cfg-value .ant-checkbox-wrapper{margin-left:10px;white-space:nowrap}._fd-cfg-value ._fd-rule-select{min-width:0;width:100%!important}._fd-cdg-option:before{background-color:var(--fc-line-color-2);content:"";height:1px;left:-70px;margin-top:-1px;position:absolute;top:50%;width:105px}._fd-cdg-option.is-group{border:1px dashed #ccd3db;padding:14px}._fd-cdg-option.is-group>.fc-icon{font-size:18px;position:absolute;right:-10px;top:-10px;transform:rotate(45deg);z-index:1}._fd-cdg-option.is-group:before{margin-top:-17px}._fd-cdg-option+._fd-cdg-option{margin-top:16px}._fd-computed,._fd-computed .ant-badge{width:100%}._fd-computed .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-comp-con,._fd-comp-condition{height:500px}._fd-comp-condition .ant-layout-content{padding:20px 5px}._fd-comp-dialog ._fd-comp-head,._fd-comp-dialog .ant-layout,._fd-comp-dialog .ant-layout-sider{background:transparent}._fd-comp-dialog ._fd-comp-head{padding:0 20px}._fd-comp-r{border:1px solid var(--fc-line-color-3);border-top:0;display:flex;flex:1;flex-direction:column;height:100%}._fd-comp-head{align-items:center;border-bottom:1px solid var(--fc-line-color-3);color:var(--fc-text-color-1);display:flex;font-size:13px;font-weight:500;height:38px;padding:5px 15px}._fd-comp-script{height:100%;width:100%}._fd-comp-info{background:var(--fc-bg-color-2);border-radius:6px;color:var(--fc-text-color-2);height:90px;line-height:20px;margin:10px;padding:15px}._fd-comp-con .CodeMirror{height:100%;width:100%}._fd-comp-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}.fc-comp-tree{height:100%;overflow:auto;padding:14px}.fc-comp-tree .ant-tree-treenode{padding-bottom:6px}.fc-comp-tree .ant-tree-indent-unit{width:5px}.fc-comp-tree .ant-tree-treenode:has(.is-formula){margin-top:40px}.fc-comp-tree .ant-tree-treenode:has(.is-formula):after{border-top:1px solid var(--fc-line-color-3);content:" ";left:0;position:absolute;right:0;top:-20px}._fd-comp-node{align-items:center;display:flex;font-size:13px;height:26px;justify-content:space-between;line-height:26px;padding-right:5px;width:100%}._fd-comp-node ._group{color:#61affe;font-weight:700;margin-right:5px}._fd-comp-node ._subform{color:#fca130;font-weight:700;margin-right:5px}._fd-comp-node.disabled{color:var(--fc-text-color-3);cursor:not-allowed}._fd-comp-node.disabled ._fd-comp-id{background-color:#999}._fd-comp-id{background-color:var(--fc-style-color-1);border-radius:5px;color:#fff;font-weight:500;height:20px;line-height:20px;text-align:center;width:20px}._fd-comp-dialog .ant-layout-sider{border:1px solid var(--fc-line-color-3);border-right:0;border-top:0}._fd-comp-title{color:var(--fc-text-color-1);font-weight:500;margin-bottom:15px;padding-left:5px;position:relative}._fd-comp-title:before{background-color:var(--fc-style-color-1);content:" ";display:inline-block;height:1em;left:-5px;position:absolute;top:3px;width:3px}._fd-comp-script .CodeMirror pre.CodeMirror-line{line-height:26px}._fd-comp-linkage{align-items:center;display:flex;font-size:12px}._fd-comp-linkage>._fd-rule-select{display:inline-block;margin:0 6px;width:120px}._fd-event .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-event .ant-badge{width:100%}._fd-event-dialog .ant-layout-content,._fd-event-dialog .ant-layout-sider{background:var(--fc-bg-color-1);overflow:auto}._fd-event-select{align-items:center;display:flex;margin-left:15px;margin-top:15px}._fd-event-con ._fd-event-l,._fd-event-con ._fd-event-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-event-con ._fd-event-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-event-r{border-left:0;display:flex;flex-direction:column}._fd-event-r ._fd-event-head{justify-content:flex-end}._fd-event-r>.ant-layout-content{display:flex;flex-direction:column}._fd-event-r>.ant-layout-content.is-behavior{flex-direction:row;width:100%}._fd-event-r .ant-tabs-nav-wrap{padding:0 15px}._fd-event-item{display:flex;flex-direction:column;font-size:14px;justify-content:center;max-width:250px;overflow:hidden;white-space:pre-wrap}._fd-event-item ._fd-label{color:var(--fc-text-color-3);font-size:12px}._fd-event-method{color:#9d238c;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:225px}._fd-event-method ._fd-label{color:var(--fc-text-color-3);font-size:12px;margin-top:4px}._fd-event-method>span:first-child,._fd-fn-list-method>span:first-child{color:#9d238c}._fd-event-method>span:first-child>span,._fd-fn-list-method>span:first-child>span{color:var(--fc-text-color-1);margin-left:10px}._fd-event-title{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:12px 0;width:100%}._fd-event-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-event-title .ant-input{border:0;box-shadow:none}._fd-event-con .CodeMirror{height:100%;width:100%}._fd-event-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-event-behaviors{width:100%}._fd-event-behavior{background:var(--fc-bg-color-3);border-radius:5px;box-sizing:border-box;cursor:pointer;font-size:12px;margin-bottom:12px;padding:12px;width:100%}._fd-event-behavior.is-active{background:var(--fc-style-color-1)}._fd-event-behavior.is-active ._fd-event-behavior-info,._fd-event-behavior.is-active ._fd-event-behavior-label{color:#fff}._fd-event-behavior-label{color:var(--fc-text-color-2);display:flex;justify-content:space-between}._fd-event-behavior-label>div{align-items:center;display:flex}._fd-event-behavior-info{color:var(--fc-text-color-3);margin-left:16px}._fd-event-behavior-list{border-right:1px solid var(--fc-line-color-3);height:100%;padding:15px}._fd-event-behavior-list .ant-menu{background:transparent!important;border:0!important;border-inline-end:0 none!important}._fd-event-behavior-list .ant-menu-item,._fd-event-behavior-list .ant-menu-submenu-title{height:30px;line-height:30px}._fd-event-con ._fd-event-behavior-con{padding:15px}._fd-event-con .ant-form-item{margin-bottom:18px}._fd-event-con .ant-form-item ._fd-form-item-warning{color:var(--fc-text-color-3);font-size:12px;font-weight:400;line-height:17px;margin-top:6px}._fd-event-behavior-title{color:var(--fc-text-color-1);font-size:13px;font-weight:500;margin-bottom:12px}._fd-event-behavior-title>div{color:var(--fc-text-color-3);font-size:12px;font-weight:400}._fd-config-item{color:var(--fc-text-color-2);display:flex;flex-direction:column;font-size:12px;margin-bottom:10px;width:100%}._fd-ci-head{justify-content:space-between}._fd-ci-head,._fd-ci-label{align-items:center;display:flex}._fd-ci-label{color:var(--fc-text-color-1);font-size:12px}._fd-ci-con{align-items:center;display:flex;justify-content:flex-end;min-width:150px}._fd-ci-label.is-arrow{cursor:pointer}._fd-ci-append{background:var(--fc-bg-color-2);display:flex;flex-direction:column;margin:5px 3px 3px;padding:4px}._fd-ci-label i{font-size:12px;font-weight:600}._fd-ci-label i.down{transform:rotate(-180deg)}._fd-ci-info{font-size:12px;padding-right:5px}._fd-page-item{align-items:center;border-bottom:1px solid var(--fc-line-color-3);box-sizing:content-box;cursor:pointer;display:flex;flex-direction:row;font-size:12px;height:30px;justify-content:space-between;margin:0 12px;padding:12px 0}._fd-page-item.active ._fd-page-label{color:var(--fc-style-color-1)}._fd-page-btns{display:flex}._fd-page-label{color:var(--fc-text-color-1);font-weight:600}._fd-page-label .fc-icon{font-size:12px;margin-left:5px}._fd-page-id{align-items:center;color:var(--fc-text-color-3);display:flex;font-weight:400}._fd-page-id .fc-icon{margin-left:5px}._fd-page-id .fc-icon:hover,._fd-page-input .ant-btn{color:var(--fc-style-color-1)}._fd-page-input .ant-btn{font-size:12px;font-weight:400;margin-left:12px;margin-top:12px;padding:0}._fd-page-input .ant-btn .fc-icon{font-size:12px;margin-left:5px}._fd-page-del{align-items:center;background-color:var(--fc-style-bg-color-3);border-radius:25px;display:flex;height:24px;justify-content:center;margin-left:4px;width:24px}._fd-page-del .fc-icon{color:var(--fc-style-color-3);font-size:14px}._fd-page-copy{align-items:center;background-color:var(--fc-style-bg-color-1);border-radius:25px;display:flex;height:24px;justify-content:center;width:24px}._fd-page-copy .fc-icon{color:var(--fc-style-color-1);font-size:14px}._fc-sublist ._fc-r-title{align-items:center;display:flex;justify-content:space-between}._fc-sublist .fc-icon{cursor:pointer}._fc-sublist ._fd-config-item+._fd-config-item{margin-top:8px}._fc-r-tools-bar{height:30px}._fc-r-tools-close{color:var(--fc-text-color-2);position:absolute;right:5px;transform:rotate(45deg)}._fc-r-tools{border-top:1px solid var(--fc-line-color-3);left:0;padding:0 10px;position:absolute;right:0}._fc-r-tool,._fc-r-tools{align-items:center;display:flex}._fc-r-tool{cursor:pointer;height:28px;justify-content:center;width:28px}._fc-r-tool:hover{color:var(--fc-style-color-1)}._fc-r-tool .fc-icon{font-size:22px}._fc-r-tools-close .fc-icon{font-size:18px}._fd-config-title{align-items:center;display:flex;font-size:14px;margin:26px 0 16px;padding-left:10px;position:relative}._fd-config-title:before{background-color:var(--fc-style-color-1);content:" ";display:block;height:20px;left:0;position:absolute;width:2px}._fd-type-select{cursor:pointer}._fd-type-select[disabled]{cursor:default}._fd-type-select .fc-icon{font-size:14px}._fd-type-select-pop{max-height:500px;overflow:auto}._fd-type-select-pop .fc-icon{font-size:14px;margin-right:5px}._fc-field-tree{padding:5px}._fc-field-tree .ant-tree-indent-unit{width:5px}._fc-field-tree .ant-tree-treenode{padding-bottom:6px;padding-top:3px}._fc-field-tree ._fc-field-drag{display:flex;flex:1;flex-direction:column}._fc-field-tree .fc-icon{font-size:18px;margin-right:5px}._fc-field-tree .icon-folder{color:var(--fc-style-color-1)}._fc-field-node-label{align-items:center;display:flex;user-select:none}._fc-form-tree .ant-tree-indent-unit{width:5px}._fc-form-tree .ant-tree-treenode{margin:5px 5px 0;padding-bottom:6px;padding-top:4px}._fc-form-tree .fc-icon{color:var(--fc-style-color-1);font-size:18px;margin-right:5px}._fc-form-tree .icon-folder{color:#ffba00}._fc-form-node{display:flex;flex-direction:row;justify-content:space-between;padding-right:12px;width:100%}._fc-form-node-label{align-items:flex-start;display:flex;user-select:none;white-space:normal}._fc-form-node-info{color:var(--fc-text-color-2);display:block;font-size:12px;line-height:normal}._fd-gec,._fd-gec .ant-badge{width:100%}._fd-gec .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-gec-l,._fd-gec-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-gec-con ._fd-gec-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-gec-con .ant-layout-content{background:var(--fc-bg-color-1);display:flex;overflow:auto}._fd-gec-head .ant-btn.ant-btn-link{color:var(--fc-style-color-1);padding:0}._fd-gec-r{background:var(--fc-bg-color-1);border-left:0}._fd-gec-r ._fd-gec-head{justify-content:flex-end}._fd-gec-method{color:#9d238c;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:225px}._fd-gec-method ._fd-label{color:var(--fc-text-color-3);font-size:12px;margin-top:4px}._fd-gec-title{align-items:center;display:flex;justify-content:space-between;padding:10px 0;width:100%}._fd-gec-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-gec-title .ant-input{border:0;box-shadow:none}._fd-gec-con .CodeMirror{height:100%;width:100%}._fd-gec-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-struct-editor{flex:1;width:100%}._fd-struct-editor>div{height:100%}._fd-gfc,._fd-gfc .ant-badge{width:100%}._fd-gfc .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-gfc-dialog .form-create{margin-top:15px}._fd-gfc-info{background:hsla(0,0%,67%,.1);border-radius:6px;color:var(--fc-text-color-2);display:flex;font-size:12px;line-height:18px;margin-left:15px;margin-top:8px;padding:8px 13px;position:relative}._fd-gfc-l,._fd-gfc-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-gfc-con ._fd-gfc-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-gfc-con .ant-layout-content{background:var(--fc-bg-color-1);display:flex;overflow:auto}._fd-gfc-head .ant-btn.ant-btn-link{color:var(--fc-style-color-1);padding:0}._fd-gfc-r{background:var(--fc-bg-color-1);border-left:0}._fd-gfc-r ._fd-gfc-head{justify-content:flex-end}._fd-gfc-r .ant-tabs-nav-wrap{padding:0 15px}._fd-gfc-method{color:#702c71;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:100%}._fd-gfc-method ._fd-label{color:var(--fc-text-color-3);font-size:12px;margin-top:4px}._fd-gfc-title{align-items:center;display:flex;justify-content:space-between;padding:10px 0;width:100%}._fd-gfc-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-gfc-title .ant-input{border:0;box-shadow:none}._fd-gfc-con .CodeMirror{height:100%;width:100%}._fd-gfc-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-size-input{align-items:center;display:flex;width:100%}._fd-size-input .ant-input-number{flex:1}._fd-box-size-input .ant-form{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._fd-box-size-input .ant-form-item:last-child{grid-column:span 2}._fd-box-size-input .ant-radio-group{display:flex;width:100%}._fd-box-size-input .ant-radio-button-wrapper{align-items:center;display:flex;flex:1!important;height:auto;justify-content:center;padding-top:2px;text-align:center}._fd-color-input{width:150px}._fd-color-input .ant-input-group-addon{padding:0}._fd-color-input .ant-input-group-addon .ant-input{border:0;cursor:pointer;display:block;height:22px;margin:0;padding:0;width:30px}._fd-border-input{display:flex;height:110px;justify-content:center;width:100%}._fd-border-input ._fd-bi-left{align-items:center;display:flex;flex-direction:column;height:115px;justify-content:center;width:115px}._fd-border-input ._fd-bi-right{display:flex;flex-direction:column;justify-content:space-around;padding:5px;width:140px}._fd-border-input ._fd-bi-right ._fd-color-input{width:100%}._fd-bi-opt{align-items:center;display:flex;height:100%;width:100%}._fd-bi-opt ._line{width:100%}._fd-bi-opt .solid{border:1px solid #000}._fd-bi-opt .dashed{border:1px dashed #000}._fd-bi-opt .dotted{border:1px dotted #000}._fd-bi-opt .double{border:1px double #000}._fd-border-input ._fd-bil-row{display:flex;height:38px;justify-content:center}._fd-border-input ._fd-bil-col{align-items:center;cursor:pointer;display:flex;font-size:16px;height:22px;justify-content:center;margin:8px;width:22px}._fd-border-input ._fd-bil-col.active{color:var(--fc-style-color-1);outline:1px dashed var(--fc-style-color-1)}.line-box{box-sizing:border-box;height:20px;padding:1px;width:150px}.line-box-con{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAD5JREFUOE9jZGBg+M+AChjR+HjlQYqHgQFoXibNS+gBBjKMpDAZHAaQ5GQGBgYUV4+mA7QAgaYokgJ14NMBAK1TIAlUJpxYAAAAAElFTkSuQmCC);height:100%;opacity:.3;width:100%}._fd-radius-input{display:flex;flex-direction:column;width:100%}._fd-radius-con{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._fd-radius-item{align-items:center;box-sizing:border-box;display:flex;justify-content:center;padding:5px 0;width:100%}._fd-radius-item ._fd-size-input .ant-input-number-sm{width:100%}._fd-radius-item ._fd-radius-icon{align-items:center;display:flex;justify-content:center;margin-right:4px}._fd-font-input{display:flex;justify-content:center;padding:0 5px}._fd-fi-box{overflow:hidden;width:150px}._fd-font-input .ant-form{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._fd-font-input .ant-form-item{display:grid}._fd-font-input .ant-form-item-label{padding-bottom:2px}._fd-display-input{display:flex;flex-direction:column}._fd-display-input .ant-radio-group{display:flex;padding:0;width:100%}._fd-display-input .ant-radio-button-wrapper{align-items:center;display:flex;flex:1;height:auto;justify-content:center;padding-top:2px;text-align:center}._fd-display-input .is-active i{color:#fff}._fd-display-con{display:flex;flex-wrap:wrap}._fd-display-con.rotate-flag .rotate{display:inline-block;transform:rotate(-90deg)}._fd-display-con.column .icon-justify-flexstart:before{display:inline-block;transform:rotate(180deg)}._fd-display-con.column .icon-justify-flexend:before{display:inline-block;transform:rotate(0)}._fd-display-con.row-reverse .icon-justify-flexstart:before{display:inline-block;transform:rotate(180deg)}._fd-display-con.column-reverse .icon-justify-flexstart:before,._fd-display-con.row-reverse .icon-justify-flexend:before{display:inline-block;transform:rotate(0)}._fd-display-con.column-reverse .icon-justify-flexend:before{display:inline-block;transform:rotate(180deg)}._fd-display-raw{display:flex;flex-direction:column;margin-bottom:5px;width:100%}._fd-shadow-content{align-items:center;display:flex;flex-direction:column;justify-content:space-between;padding:0 5px}._fd-sc-form .fc-icon{font-size:12px}._fd-shadow-content .ant-form{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._fd-shadow-content .ant-form-item{display:grid}._fd-shadow-content ._fd-sc-box{border:1px solid #ccc;border-radius:5px;cursor:pointer;height:250px;overflow:hidden;position:relative;width:250px}._fd-shadow-content ._fd-sc-box .spot{border-radius:100%;height:0;position:absolute;width:0}._fd-shadow-content ._fd-sc-box .spot-id{background:#1989fa;border-radius:100%;height:10px;left:-5px;position:absolute;top:-5px;width:10px;z-index:1}._fd-shadow-content ._fd-sc-box.down .spot-id{box-shadow:1px 1px 10px 2px #1989fa}._fd-shadow-content ._fd-sc-box .center-spot{background:#1989fa;border-radius:100%;height:0;left:125px;position:absolute;top:125px;width:0}._fd-shadow-content ._fd-sc-box .x-hr{background:#ccc;height:1px;position:absolute;top:125px;width:100%}._fd-shadow-content ._fd-sc-box .y-hr{background:#ccc;height:100%;left:125px;position:absolute;width:1px}._fd-shadow-content .ant-select{padding:0;width:64px}._fd-shadow-content ._fd-color-input{width:100%}._fd-shadow-content ._fd-sc-right{margin-top:10px}._fd-shadow-content ._fd-sc-radio{display:flex;width:105px}._fd-shadow-content ._fd-sc-radio .ant-radio-button-wrapper{align-items:center;display:flex;flex:1;justify-content:center}._fd-shadow-input ._fd-ci-con{width:150px}._fd-si-input .ant-input-group-addon{padding:0;width:32px}._fd-shadow-input ._fd-ci-con .fc-icon{cursor:pointer}._td-table-opt{width:100%}._td-table-opt .icon-delete{cursor:pointer}._td-table-opt tr td:last-child{text-align:center}._td-table-opt-handle{align-items:center;display:flex;justify-content:space-between;padding-right:5px}._td-table-opt-handle .ant-btn{align-items:center;display:flex;font-size:12px}._fd-box-space-input{color:#000}._fd-box-space-input ._margin,._fd-box-space-input ._padding{background-color:#f2cea5;box-sizing:border-box;height:180px;padding:40px 55px;position:relative;width:100%}._fd-box-space-input ._margin,html.dark ._fd-box-space-input ._padding{background-color:#a9855c}._fd-box-space-input ._margin{background-color:#c6cf92;height:100px;width:100%}._fd-box-space-input ._fd-input{background-color:unset;border:0;display:inline-block;font-size:12px;height:20px;margin:0;max-width:40px;outline:0 none;padding:0;text-align:center;text-decoration:underline;width:30%}._fd-box-space-input ._fd-input:focus,._fd-box-space-input ._fd-input:hover{background-color:var(--fc-bg-color-3);color:var(--fc-text-color-1);opacity:.9}._fd-box-space-input ._fd-left,._fd-box-space-input ._fd-right{left:7px;margin-top:-10px;position:absolute;top:50%}._fd-box-space-input ._fd-bottom,._fd-box-space-input ._fd-top{left:50%;margin-left:-20px;position:absolute;top:5px}._fd-box-space-input ._fd-bottom{bottom:15px;top:unset}._fd-box-space-input ._fd-right{left:unset;right:2px}._fd-box-space-input ._box{align-items:center;background-color:#94b5c0;display:flex;height:100%;justify-content:center;width:100%}._fd-box-space-input ._margin-title,._fd-box-space-input ._padding-title{left:4px;position:absolute;top:2px}._fd-box-space-input ._fd-help{align-items:center;color:var(--fc-text-color-3);display:flex;position:absolute;right:5px;top:5px}._fd-box-space-input ._padding .fc-icon{color:var(--fc-text-color-1);cursor:pointer;font-size:12px}._fd-box-space-input ._padding .fc-icon+.fc-icon{margin-left:2px}._fd-box-space-input .fc-icon.active{color:var(--fc-style-color-1)}._fd-box-space-input ._fd-x{margin:0 5px}._fd-style-config{display:flex;flex-direction:column;width:100%}._fd-opacity-input ._fd-ci-con{align-items:center;display:flex;justify-content:space-between;width:150px}._fd-opacity-input ._fd-ci-con>span{width:32px}._fd-opacity-input .ant-slider{flex:1;margin-right:15px}._fd-style-editor{flex:1;width:100%}._fd-style-editor .CodeMirror,._fd-style-editor>div{height:100%}._fd-gcc,._fd-gcc .ant-badge{width:100%}._fd-gcc .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-gcc-l,._fd-gcc-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-gcc-con ._fd-gcc-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-gcc-con .ant-layout-content{background:var(--fc-bg-color-1);display:flex;overflow:auto}._fd-gcc-head .ant-btn.ant-btn-link{color:var(--fc-style-color-1);padding:0}._fd-gcc-r{background:var(--fc-bg-color-1);border-left:0}._fd-gcc-r ._fd-gcc-head{justify-content:flex-end}._fd-gcc-r .ant-layout-content>.ant-form{padding:20px;width:100%}._fd-gcc-default.is-active ._fd-label{color:var(--fc-style-color-1);margin-top:0}._fd-gcc-method{color:#923b76;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:175px}._fd-gcc-method ._fd-label{color:var(--fc-text-color-3);font-size:12px}._fd-gcc-method span+._fd-label{margin-top:4px}._fd-gcc-title{align-items:center;display:flex;justify-content:space-between;padding:10px 0;width:100%}._fd-gcc-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-gcc-title .ant-input{border:0;box-shadow:none}._fd-gvc,._fd-gvc .ant-badge{width:100%}._fd-gvc .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-gvc-l,._fd-gvc-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-gvc-dialog ._fd-gvc-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-gvc-dialog .ant-layout-content{background:var(--fc-bg-color-1)}._fd-gvc-head .ant-btn.ant-btn-link{color:var(--fc-style-color-1);padding:0}._fd-gvc-r{background:var(--fc-bg-color-1);border-left:0}._fd-gvc-r ._fd-gvc-head{justify-content:flex-end}._fd-gvc-title{align-items:center;display:flex;justify-content:space-between;padding:10px 0;width:100%}._fd-gvc-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-gvc-title .ant-input{border:0;box-shadow:none}._fc-json-preview{color:var(--fc-text-color-1);display:flex;width:100%}._fc-json-preview .CodeMirror{font-size:12px;height:100%}._fd-struct,._fd-struct .ant-badge{width:100%}._fd-struct .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-struct-dialog .CodeMirror{height:500px}._fd-props-input{flex:1;text-align:right}._fd-props-input .fc-icon{cursor:pointer}._fd-language-config{height:100%;overflow:auto}._fd-lc-body,._fd-lc-header{padding:0 12px}._fd-lc-body{overflow:auto}._fd-lc-body .ant-table-cell{padding:8px 4px!important}._fd-lc-header{display:flex;justify-content:flex-end;margin-bottom:12px}._fd-lc-header .ant-btn+.ant-btn{margin-left:12px}._fd-lc-handle{align-items:center;cursor:pointer;display:flex;justify-content:space-between}._fd-slots-config .ant-input-group-wrapper{margin-left:5px;min-width:170px;width:170px}._fd-slots-config .fc-icon{cursor:pointer;font-size:14px}._fd-slots-icons{grid-gap:10px;display:grid;grid-template-columns:repeat(13,1fr);width:100%}._fd-slots-icon{color:var(--fc-text-color-1);cursor:pointer;text-align:center}._fd-slots-config-pop{max-height:320px;overflow:auto;width:400px}._fd-quick-layout-content{grid-column-gap:10px;display:grid;grid-template-columns:repeat(4,1fr);width:240px}._fd-quick-layout-content>div{cursor:pointer;display:flex;flex-direction:column;font-size:12px;text-align:center}._fd-quick-layout-content>div:hover{color:var(--fc-style-color-1)}._fd-quick-layout-content i{font-size:24px}._fd-ai-chat{box-sizing:border-box;display:flex;flex-direction:column;font-size:12px;height:100%;padding:12px}._fd-ai-chat-header{border:1px solid var(--fc-line-color-3);border-radius:6px}._fd-ai-chat-prompt{display:flex;justify-content:space-between;padding:8px 12px 10px}._fd-ai-chat-prompt .fc-icon{font-size:12px;margin-right:2px}._fd-ai-chat-refresh{color:var(--fc-style-color-1);cursor:pointer}._fd-ai-chat-question{align-items:center;background:var(--fc-bg-color-2);border-radius:6px;color:var(--fc-text-color-2);cursor:pointer;display:flex;justify-content:space-between;margin:0 12px 12px;padding:7px 10px}._fd-ai-chat-question+._fd-ai-chat-question{margin-top:6px}._fd-ai-chat-question .fc-icon{margin-left:12px}._fd-ai-chat-question .icon-down:before{display:inline-block;transform:rotate(-90deg)}._fd-ai-chat-history{display:flex;flex:1;flex-direction:column;margin-top:12px;overflow:auto}._fd-ai-chat-history-chat{align-items:flex-end;display:flex;flex-direction:column;margin-bottom:10px}._fd-ai-chat-history-chat>div{background:var(--fc-style-bg-color-1);border-radius:6px 0 6px 6px;color:var(--fc-style-color-1);max-width:70%;padding:10px;white-space:pre-wrap}._fd-ai-chat-history-status{align-items:flex-start;display:flex;flex-direction:column;margin-bottom:10px}._fd-ai-chat-history-status>div{background:var(--fc-bg-color-2);border-radius:0 6px 6px;color:var(--fc-text-color-2);max-width:70%;overflow:hidden;padding:10px;position:relative}._fd-ai-chat-history-status>div>div{align-items:center;display:flex;position:relative;z-index:1}._fd-ai-chat-history-status.loading>div:after{animation:b 3s linear infinite;background:linear-gradient(0deg,var(--fc-style-color-1) 0,var(--fc-style-color-4) 100%);bottom:-2px;content:"";filter:blur(5px);left:-2px;padding:1px;position:absolute;right:-2px;top:-2px}._fd-ai-chat-history-status.loading>div{border-radius:0 6px 6px;padding:1px}._fd-ai-chat-history-status.loading>div>div{background-color:var(--fc-bg-color-1);border-radius:0 6px 6px;padding:7px 10px}._fd-ai-chat-history-status.success>div{background:var(--fc-style-bg-color-2);color:var(--fc-style-color-2)}._fd-ai-chat-history-status .fc-icon{background:var(--fc-style-color-2);border-radius:15px;color:#fff;font-size:14px;height:15px;margin-right:5px;text-align:center;width:15px}._fd-ai-chat-history-status.fail>div{background:var(--fc-style-bg-color-3);color:var(--fc-style-color-3)}._fd-ai-chat-history-status.fail .fc-icon{background:var(--fc-style-color-3)}._fd-ai-chat-input{border-radius:6px;margin-top:12px;position:relative;width:100%}._fd-ai-chat-clear{margin-bottom:6px;text-align:right}._fd-ai-chat-clear .ant-btn{color:var(--fc-text-color-2);margin-right:2px;padding:0}._fd-ai-chat-clear .fc-icon{font-size:13px}._fd-ai-chat-input-wrapper{box-sizing:border-box;height:120px;padding:1px;position:relative}._fd-ai-chat-input-wrapper:before{background:linear-gradient(135deg,var(--fc-style-color-1),var(--fc-style-color-4));border-radius:6px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}._fd-ai-chat-input .ant-input{background:var(--fc-bg-color-1);border:none;border-radius:6px;box-shadow:none;height:100%;resize:none}._fd-ai-chat-input>.fc-icon{align-items:center;background:var(--fc-style-color-1);border-radius:15px;bottom:12px;color:#fff;cursor:pointer;display:flex;font-size:14px;height:20px;justify-content:center;position:absolute;right:12px;text-align:center;width:20px}._fd-ai-chat-input .icon-suspend{background:linear-gradient(90deg,var(--fc-style-color-1) 0,var(--fc-style-color-4) 100%)}._fd-ai-chat-input .disabled{background:var(--fc-text-color-3)}@keyframes b{0%{transform:rotate(0)}to{transform:rotate(1turn)}}._fd-drag-tool{word-wrap:break-word;box-sizing:border-box;display:block;min-height:20px;min-width:0;outline:1px dashed var(--fc-tool-border-color);overflow:hidden;padding:2px;position:relative;word-break:break-all;z-index:0}._fd-drag-tool ._fd-drag-tool{margin:2px;max-height:calc(100% - 7px);max-width:calc(100% - 4px)}._fd-drag-tool.is-inline{display:inline-block}._fd-drag-tool.is-inside{height:inherit;width:inherit}._fd-drag-tool:hover{outline-color:var(--fc-style-color-1);outline-style:solid;z-index:1}._fd-drag-tool:has(._fd-drag-tool:hover){outline-style:dashed}._fd-drag-tool:not(.active):hover>div>._fd-drag-btn{display:flex!important;opacity:.7}._fd-drag-tool:has(._fd-drag-tool:not(.active):hover,._fd-drag-tool.active:hover)>div>._fd-drag-btn{display:none!important}._fd-drag-tool:has(._fd-drag-tool){padding:2px}._fd-drag-tool+._fd-drag-tool{margin-top:5px}._fd-drag-tool.active{min-height:36px;min-width:80px;outline:2px solid var(--fc-style-color-1)!important;z-index:2}._fd-drag-tool.active>div>._fd-drag-btn{display:flex}._fd-drag-tool._fd-drop-hover ._fd-drag-box{padding-bottom:15px!important;padding-top:15px!important}._fd-drag-tool._fd-drop-hover:hover{outline:1px dashed var(--fc-tool-border-color)}._fd-drag-tool ._fd-drag-btn{display:none}._fd-drag-r{padding:0 2px 2px 0;right:0;top:calc(100% - 20px)}._fd-drag-l,._fd-drag-r{position:absolute;z-index:4}._fd-drag-l{left:0;top:0}._fd-drag-btn{align-items:center;background-color:var(--fc-style-color-1);color:#fff;cursor:pointer;float:left;height:18px;justify-content:center;line-height:20px;padding-bottom:1px;width:18px}._fd-drag-btn .ant-dropdown{color:#fff}._fd-drag-btn+._fd-drag-btn{margin-left:2px}._fd-drag-danger{background-color:var(--fc-style-color-3)}._fd-drag-btn i{font-size:14px}._fd-drag-hidden,._fd-drag-mask{bottom:0;left:0;position:absolute;right:0;top:0;z-index:3}._fd-drag-hidden{align-items:center;background:rgba(51,51,51,.7);color:#fff;display:flex;font-size:14px;justify-content:center}._fd-drag-tool.active ._fd-drag-hidden,._fd-drag-tool:has(._fd-drag-tool.active) ._fd-drag-hidden,._fd-drag-tool:hover ._fd-drag-hidden{display:none}._fd-drag-hidden .fc-icon{margin-right:5px}._fd-html-editor{width:100%}._fd-html-editor>.ant-btn{font-size:12px;font-weight:400;width:100%}._fd-html-editor-con .CodeMirror{height:450px}._fd-html-editor-con .CodeMirror-line{font-size:13px!important;line-height:16px!important}._fd-html-editor-con .CodeMirror-lint-tooltip{z-index:1!important}._fd-field-input{position:relative;width:100%}._fd-field-input>.fc-icon{color:#a8abb2;cursor:pointer;height:24px;position:absolute;right:32px;text-align:center;top:0;width:24px;z-index:1}._fd-field-input .ant-tree-select{width:100%}._fd-field-input .ant-select-tree-indent-unit{width:5px}._fd-list-input{width:100%}._fd-list-input .ant-input-group-addon{color:var(--fc-text-color-3);cursor:pointer;margin:0;padding:0;width:25px}._fd-list-input .fc-icon{cursor:pointer}._fd-fetch-config,._fd-fetch-config .ant-badge{width:100%}._fd-fetch-config .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-fetch-dialog .form-create{margin-top:15px}._fd-fetch-dialog ._fc-tabs{display:flex}._fd-fetch-info{background:hsla(0,0%,67%,.1);border-radius:6px;color:var(--fc-text-color-2);display:flex;font-size:12px;line-height:18px;margin-left:15px;margin-top:8px;padding:8px 13px;position:relative}._fd-fetch-con{background:var(--fc-bg-color-1)}._fd-fetch-con .CodeMirror{height:100%;width:100%}._fd-fetch-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-table-column-config,._fd-table-column-config .ant-badge{width:100%}._fd-table-column-config .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-tcc-dialog .flex{display:flex}._fd-tcc-dialog .ant-modal-body{height:500px;overflow:auto}._fd-tcc-dialog .ant-table-cell{font-size:12px;font-weight:400}._fd-tcc-dialog .ant-table .fc-icon{cursor:pointer}._fd-tcc-dialog ._fd-fn{height:100%}._fd-table-button-config,._fd-table-button-config .ant-badge{width:100%}._fd-table-button-config .ant-btn{font-weight:400;width:100%}._fd-tcb-dialog .ant-modal-body{height:500px;overflow:auto}._fd-tcb-dialog .ant-modal-body .ant-btn{align-items:center;display:flex}._fd-tcb-dialog .ant-table-cell{padding:4px!important}._fd-tcb-dialog .ant-table-cell .ant-input{height:24px}._fd-tcb-dialog .ant-table-cell{font-size:12px;font-weight:400}._fd-tcb-btn,._fd-tcb-dialog .ant-table .fc-icon{cursor:pointer}._fd-tcb-btn{align-items:center;display:flex;font-size:12px}._fd-fn-list,._fd-fn-list .ant-badge{width:100%}._fd-fn-list .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-fn-list-l,._fd-fn-list-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-fn-list-con ._fd-fn-list-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-fn-list-con ._fd-fn-list-head>span{color:var(--fc-style-color-1);line-height:1em}._fd-fn-list-con .ant-layout-content{background:var(--fc-bg-color-1);display:flex;overflow:auto}._fd-fn-list-head .ant-btn.ant-btn-link{color:var(--fc-style-color-1);padding:0}._fd-fn-list-r{background:var(--fc-bg-color-1);border-left:0}._fd-fn-list-r ._fd-fn-list-head{justify-content:flex-end}._fd-fn-list-method{display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;line-height:1em;overflow:hidden;padding:10px 0;white-space:pre-wrap;width:100%}._fd-fn-list-method ._fd-label{color:var(--fc-text-color-3);font-size:12px;margin-top:4px}._fd-fn-list-method-info>span:first-child,._fd-fn-list-method>span:first-child{color:#9d238c}._fd-fn-list-method-info>span:first-child>span,._fd-fn-list-method>span:first-child>span{color:var(--fc-text-color-1);margin-left:10px}._fd-fn-list-con .CodeMirror{height:100%;width:100%}._fd-fn-list-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-fn-input,._fd-fn-input .ant-badge{width:100%}._fd-fn-input .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-fn-input-dialog .CodeMirror-lint-tooltip{z-index:1!important}._fd-fn-input-dialog .ant-modal-body{height:500px}._fd-gfs{align-items:center;display:flex;width:100%}._fd-gfs .ant-select{flex:1}._fd-gfs-handle{display:inline-flex;height:14px;line-height:14px}._fd-gfs-handle .fc-icon{color:var(--fc-style-color-1);cursor:pointer;margin-left:4px}._fd-gfs-handle .icon-refresh.disabled{color:#a9abb2;cursor:not-allowed}._fd-gfs-handle ._fc-manage-text{border-left:1px solid var(--fc-line-color-3);padding-left:4px}._fd-gcs{align-items:center;display:flex;width:100%}._fd-gcs .ant-select{flex:1}._fd-gcs-handle{display:inline-flex;height:14px;line-height:14px}._fd-gcs-handle ._fc-manage-text{border-left:1px solid var(--fc-line-color-3);padding-left:4px}._fd-fetch-table{width:100%}._fd-fetch-table .ant-layout{background:var(--fc-bg-color-1)}._fd-fetch-table-con{border:1px solid var(--fc-line-color-3);border-bottom:0;display:flex;flex:1;flex-direction:column;height:100%}._fd-fetch-table-con .ant-layout-header{align-items:center;background:var(--fc-bg-color-3);color:var(--fc-text-color-1);display:flex;height:30px;padding-left:12px}._fd-fetch-table-con .ant-layout-content{display:flex;flex-direction:column}._fd-fetch-table-row{align-items:center;border-bottom:1px solid var(--fc-line-color-3);display:flex;min-height:34px;padding:0 10px 4px;width:100%}._fd-fetch-table-row>.fc-icon{align-items:center;color:var(--fc-text-color-2);cursor:pointer;display:flex;font-size:18px;height:24px;justify-content:center;margin-left:12px;margin-top:4px;width:24px}._fd-fetch-table-row .ant-input-affix-wrapper{display:flex;flex:1;font-size:13px;margin-top:4px}._fd-fetch-table-key{margin-right:15px;width:calc(40% - 20px)}._fd-table-view{overflow:auto}._fd-table-view-cell{background:var(--fc-bg-color-1);border:1px inset rgba(0,0,0,.1);height:100%;min-height:50px}._fd-table-view-cell>._fd-drag-tool{border:0;height:100%;margin:0;max-height:100%;max-width:100%;min-width:unset;width:100%}._fd-table-view-btn{flex-direction:column;padding:0}._fd-table-view-btn .fc-icon{color:#fff;font-size:16px;width:18px}._fd-table-view-icon{color:#fff;display:flex;height:100%;justify-content:center;margin-top:1px;width:100%}._fd-table-view>table{border-bottom:1px solid #ebeef5;border-right:1px solid #ebeef5;border-color:#ebeef5 currentcolor currentcolor #ebeef5;border-style:solid none none solid;border-width:1px 0 0 1px;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fd-table-view tr{min-height:50px}._fd-table-view td{border-bottom:0;border-right:0;border-color:currentcolor #ebeef5 #ebeef5 currentcolor;border-style:none solid solid none;border-width:0 1px 1px 0;box-sizing:border-box;min-height:50px;min-width:80px;overflow-wrap:break-word;padding:0;position:relative;white-space:nowrap}._fd-tableCell-drag{height:100%}._fd-value{color:var(--fc-text-color-3);white-space:nowrap}._fd-json-container{--fc-json-mask:" ";display:flex;flex:1;flex-direction:column;flex-wrap:wrap;justify-content:center;min-height:20px;position:relative}._fd-json-container ._fd-dialog,._fd-json-container ._fd-drawer,._fd-json-container ._fd-popup{display:none}._fd-language-popover{width:300px}._fd-language-list{max-height:320px;overflow:auto;padding-top:70px}._fd-language-input .ant-input-group-addon{color:var(--fc-text-color-3);cursor:pointer;margin:0;padding:0;width:25px}._fd-language-input.is-variable input{color:var(--fc-style-color-1)}._fd-language-header,._fd-language-item{border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:0 12px}._fd-language-header{background-color:var(--fc-bg-color-1);color:var(--fc-text-color-1);flex-direction:column;font-weight:500;left:0;line-height:1.4;overflow:auto;padding-top:10px;position:absolute;right:0;top:0}._fd-language-item>div,._fd-language-name>div{flex:1;font-size:12px;min-width:70px;padding:5px}._fd-language-title{margin:6px 0}._fd-language-title .fc-icon{color:var(--fc-style-color-1);cursor:pointer;font-size:14px}._fd-language-name{display:flex}._fd-language-name>div{color:var(--fc-text-color-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._fd-language-item{cursor:pointer}._fd-language-item:hover{background-color:var(--fc-style-bg-color-1);color:var(--fc-style-color-1)}._fd-language-popover .ant-popover-inner{padding:0!important}._fd-validate{display:flex;flex-direction:column;width:100%}._fd-validate-btn{font-weight:400;width:100%}._fd-validate-item{border-bottom:1px dashed var(--fc-line-color-3);margin-bottom:10px}._fd-validate-item .ant-col-12:first-child{padding-right:5px}._fd-validate-item .ant-col-12+.ant-col-12{padding-left:5px}._fd-validate-item .ant-input-number{width:100%}._fd-validate-title{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:10px}._fd-validate-title>div{align-items:center;display:flex}._fd-validate-title>div>span{background:var(--fc-bg-color-3);border-radius:15px;font-size:12px;height:16px;line-height:16px;margin-right:5px;text-align:center;width:16px}._fd-validate-title i{cursor:pointer}._fd-validate-title i:hover{color:var(--fc-style-color-3)}._fd-validate .append-msg{cursor:pointer}._fd-required{align-items:center;display:flex;height:31px;width:100%}._fd-required .ant-input-group-wrapper{margin-left:15px}._fd-tree-opt ._fd-tree-opt-btn{background-color:var(--fc-style-color-1);color:#fff;cursor:pointer;float:left;height:18px;justify-content:center;line-height:18px;padding-bottom:1px;text-align:center;width:22px}._fd-tree-opt-node{align-items:center;display:flex}._fd-tree-opt-first{margin-right:5px;width:60px}._fd-tree-opt-last{width:170px}._fd-tree-opt-last._label{width:160px}._fd-tree-opt ._fd-tree-opt-danger{background-color:var(--fc-style-color-3);border-radius:0 2px 2px 0}._fd-tree-opt .ant-input-group-addon{background:var(--fc-bg-color-1);padding-left:1px;padding-right:1px;width:70px}._fd-tree-opt .ant-tree-indent-unit{width:5px}._fd-tree-opt .ant-tree-switcher{width:12px!important}._fc-step-form{width:100%}._fc-step-form>.ant-steps{margin-bottom:20px}._fd-step-form{width:100%}._fd-step-form .ant-step{cursor:pointer}._fd-step-form>.ant-steps{margin-bottom:20px}._fd-table-form{background:var(--fc-bg-color-1);border:1px solid var(--fc-line-color-3);width:100%}._fc-child-empty,._fd-table-form{min-height:130px}._fd-tf-wrap{display:flex;overflow:auto}._fd-tf-wrap>._fd-drag-tool{display:flex;flex-shrink:0;height:auto;margin:2px}._fd-ntable-form{background:var(--fc-bg-color-1);border:1px solid var(--fc-line-color-3);min-height:130px;width:100%}._fd-ntable-sub .ant-form-item-label,._fd-ntable-sub .van-field__label{display:none!important}._fd-ntable-form ._fc-child-empty{min-height:130px}._fd-ntf-wrap{display:flex;overflow:auto}._fd-ntf-wrap>._fd-drag-tool{display:flex;flex-shrink:0;height:auto;margin:2px}._fd-ntable-sub ._title{background-color:var(--fc-bg-color-3);border-radius:8px 8px 0 0;color:#65676b;display:inline-block;font-size:12px;height:20px;line-height:1em;margin-left:2px;padding:6px 8px 0;text-align:center}._fd-ntable-sub>._fd-drag-tool{margin-top:0}._fd-itable-form{background:var(--fc-bg-color-1);border:1px solid var(--fc-line-color-3);min-height:130px;width:100%}._fd-itable-form ._fc-child-empty{min-height:130px}._fd-itf-wrap{display:flex;overflow:auto}._fd-itf-wrap>._fd-drag-tool{display:flex;flex-shrink:0;height:auto;margin:2px}._fd-tf-col ._fd-tf-con .ant-form-item{margin-bottom:1px!important}._fd-tf-col{display:flex;flex-direction:column;flex-shrink:0;flex-wrap:wrap;width:180px}._fd-tf-con .ant-form-item-label,._fd-tf-con .van-field__label{display:none!important}._fd-tf-con{display:flex;flex:1;width:100%}._fd-tf-title{align-items:center;border-bottom:1px solid #ebeef5;display:flex;height:40px;margin-bottom:0;padding-left:5px;width:100%!important}._fd-tf-required{color:#f56c6c;margin-right:4px}._fd-tf-con ._fc-l-item>*{display:none!important}._fd-tf-con .ant-cascader,._fd-tf-con .ant-input-number,._fd-tf-con .ant-picker,._fd-tf-con .ant-select,._fd-tf-con .ant-slider{width:100%}._fd-step-form-item>._fd-drag-tool{min-height:200px}._fd-dialog.ant-modal{box-sizing:border-box;color:#000000e0;font-size:14px;height:100%;line-height:1.5714285714285714;list-style:none;margin:0;padding:10px;pointer-events:none;width:100%}._fd-dialog.ant-modal .ant-modal-content{background-clip:padding-box;background-color:#fff;border:0;border-radius:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;display:flex;flex-direction:column;height:100%;padding:20px 24px;pointer-events:auto;position:relative}._fd-dialog.ant-modal .ant-modal-close,._fd-dialog.ant-modal .ant-modal-fullpage{background:transparent;border:0;border-radius:4px;color:#00000073;cursor:pointer;font-weight:600;height:22px;inset-inline-end:17px;line-height:1;outline:0;padding:0;position:absolute;text-decoration:none;top:17px;transition:color .2s,background-color .2s;width:22px;z-index:1}._fd-dialog.ant-modal .ant-modal-fullpage{right:45px}._fd-dialog.ant-modal .ant-modal-title{word-wrap:break-word;color:#000000e0;font-size:16px;font-weight:600;line-height:1.5;margin:0}._fd-dialog.ant-modal .ant-modal-header{margin-bottom:8px}._fd-dialog.ant-modal .ant-modal-body{flex:1}._fd-dialog.ant-modal .ant-modal-footer{background:transparent;margin-top:12px;text-align:end}._fd-dialog .ant-modal-body>._fd-drag-box{align-content:flex-start;align-items:flex-start;box-sizing:border-box;display:flex;flex-wrap:wrap;height:calc(var(--fc-dialog-height) - 125px);justify-content:flex-start;outline:1px dashed var(--fc-tool-border-color);overflow:auto;position:relative}._fc-dialog-fullscreen .ant-modal{margin:0;max-width:100%;padding-bottom:0;top:0;width:100%!important}._fc-dialog-fullscreen .ant-modal-content{display:flex;flex-direction:column;height:100vh}._fc-dialog-fullscreen .ant-modal-body{flex:1}._fd-drawer .ant-drawer-content-wrapper,._fd-drawer.ant-drawer{box-shadow:unset;height:100%;width:100%}._fd-drawer.ant-drawer .ant-drawer-wrapper-body{display:flex;flex-direction:column;height:100%;width:100%}._fd-drawer.ant-drawer .ant-drawer-body{flex:1;min-height:0;min-width:0;overflow:auto;padding:5px}._fd-drawer.ant-drawer .ant-drawer-header{align-items:center;border-bottom:1px solid rgba(5,5,5,.06);display:flex;flex:0;font-size:16px;justify-content:space-between;line-height:1.5;padding:16px 24px}._fd-drawer.ant-drawer .ant-drawer-close{background:transparent;border:0;color:#00000073;cursor:pointer;display:inline-block;font-size:16px;font-style:normal;font-weight:600;line-height:1;margin-inline-end:4px;outline:0;text-align:center;text-decoration:none;text-rendering:auto;text-transform:none;transition:color .2s}._fd-drawer.ant-drawer .ant-drawer-title{color:#000000e0;flex:1;font-size:16px;font-weight:600;line-height:1.5;margin:0}._fd-drawer.ant-drawer .ant-drawer-header-title{align-items:center;display:flex;flex:1;min-height:0;min-width:0}._fd-drawer .ant-drawer-body>._fd-drag-box{align-content:flex-start;align-items:flex-start;box-sizing:border-box;display:flex;flex-wrap:wrap;height:calc(var(--fc-drawer-height) - 64px);justify-content:flex-start;outline:1px dashed var(--fc-tool-border-color);overflow:auto;position:relative}._fc-drawer .ant-drawer-close{background:transparent;border:0;color:#00000073;cursor:pointer;display:inline-block;font-size:16px;font-style:normal;font-weight:600;line-height:1;margin-inline-end:12px;outline:0;text-align:center;text-decoration:none;text-rendering:auto;text-transform:none;transition:color .2s}._fd-cell{display:inline-block}._fd-cell.is-new{width:100%!important}._fd-cell>div{box-sizing:border-box}._fd-cell>div>._fd-drag-tool.is-inline,._fd-cell>div>._fd-drag-tool>._fd-drag-box{align-content:var(--fc-cell-alignContent)!important;align-items:var(--fc-cell-alignItems)!important;display:var(--fc-cell-display)!important;flex-direction:var(--fc-cell-flexDirection)!important;flex-wrap:var(--fc-cell-flexWrap)!important;justify-content:var(--fc-cell-justifyContent)!important}._fd-cell>div>._fd-drag-item:has(>._fd-drag-tool>.ant-col-24,>.ant-col-24),._fd-cell>div>._fd-drag-tool>._fd-drag-box>._fd-drag-item:has(>._fd-drag-tool>.ant-col-24,>.ant-col-24){flex:none}._fc-cell .ant-cascader,._fc-cell .ant-input-number,._fc-cell .ant-picker,._fc-cell .ant-select,._fc-cell .ant-slider{width:100%}._fd-row{display:flex;flex-flow:row wrap;min-width:0;width:100%}._fd-hide-config{align-items:center;color:var(--fc-text-color-2);cursor:pointer;display:flex}._fd-hide-config .fc-icon{margin-right:3px}._fd-hide-config.active{color:var(--fc-style-color-1)}._fd-hide-config.disabled{color:var(--fc-text-color-3);cursor:not-allowed}._fd-span-input{display:flex;width:100%}._fd-span-input .ant-radio-button-wrapper{align-items:center;display:flex;flex:1!important;height:auto;justify-content:center;text-align:center}._fc-signature{width:100%}._fc-signature-btn,._fc-signature-preview{background:#fff;border:1px dashed #d4d7e0;border-radius:4px;box-sizing:border-box;color:#c9ccd8;font-size:14px;height:88px;line-height:88px;min-width:160px;position:relative;text-align:center;width:100%}._fc-signature-btn{cursor:pointer}._fc-signature-preview>img{display:inline-block;height:88px}._fc-signature-preview .icon-delete2{cursor:pointer;display:inline-block;font-size:14px;line-height:14px;position:absolute;right:9px;top:9px}._fc-signature-btn i{font-size:14px}._fc-signature-pad{background-image:linear-gradient(#fff 14px,transparent 0),linear-gradient(90deg,#fff 14px,#d4d7e0 0);background-size:15px 15px;border:1px dashed #d4d7e0;border-radius:4px}:root{--fc-drag-empty:"\\62d6\\62fd\\5de6\\4fa7\\5217\\8868\\4e2d\\7684\\7ec4\\4ef6\\5230\\6b64\\5904";--fc-child-empty:"\\70b9\\51fb\\53f3\\4e0b\\89d2 \\e789 \\6309\\94ae\\6dfb\\52a0\\4e00\\5217";--fc-text-color-1:#262626;--fc-text-color-2:#666;--fc-text-color-3:#aaa;--fc-bg-color-1:#fff;--fc-bg-color-2:#f5f5f5;--fc-bg-color-3:#ececec;--fc-line-color-1:#ddd;--fc-line-color-2:#d9d9d9;--fc-line-color-3:#ececec;--fc-style-color-1:#2e73ff;--fc-style-bg-color-1:rgba(46,115,255,.05);--fc-style-color-2:#00c050;--fc-style-bg-color-2:rgba(0,192,80,.05);--fc-style-color-3:#ff2e2e;--fc-style-bg-color-3:rgba(255,46,46,.05);--fc-style-color-4:#4efdb7;--fc-style-bg-color-4:rgba(78,253,183,.05)}html.dark{--fc-text-color-1:#e5eaf3;--fc-text-color-2:#cfd3dc;--fc-text-color-3:#6c6e72;--fc-bg-color-1:#0a0a0a;--fc-bg-color-2:#191919;--fc-bg-color-3:#2b2b2c;--fc-line-color-1:#393a3c;--fc-line-color-2:#636466;--fc-line-color-3:#2b2b2c}._fc-designer,._fd-config-dialog{--el-color-primary:#2e73ff;--el-color-primary-light-3:#69f;--el-color-primary-light-5:#9bf;--el-color-primary-light-7:#ccdfff;--el-color-primary-light-8:#e0ebff;--el-color-primary-light-9:#ccdfff;--el-color-primary-dark-2:#265fcc;--el-color-success:#00c050;--el-color-success-light-3:#4ddb82;--el-color-success-light-5:#80e6a3;--el-color-success-light-7:#b3f1c5;--el-color-success-light-8:#ccf6d5;--el-color-success-light-9:#e6fae6;--el-color-success-dark-2:#00a046;--el-color-danger:#ff2e2e;--el-color-danger-light-3:#f66;--el-color-danger-light-5:#f99;--el-color-danger-light-7:#fcc;--el-color-danger-light-8:#ffd9d9;--el-color-danger-light-9:#ffe6e6;--el-color-danger-dark-2:#cc2626;--el-menu-hover-bg-color:var(--el-color-primary-light-9)}._fd-plain-button{border-color:var(--fc-style-color-1);color:var(--fc-style-color-1)}._fc-designer .CodeMirror-gutters,._fd-config-dialog .CodeMirror-gutters{background-color:var(--fc-bg-color-3);border-right-color:var(--fc-line-color-2)}._fc-designer .CodeMirror-scroll,._fd-config-dialog .CodeMirror-scroll{background-color:var(--fc-bg-color-2);caret-color:var(--fc-text-color-1);color:var(--fc-text-color-1)}._fc-designer .ant-layout-content,._fc-designer .ant-layout-header,._fc-designer .ant-layout-sider{background:var(--fc-bg-color-1)}._fc-designer .ant-layout-header{line-height:normal;padding:0 10px}._fc-designer .ant-layout-content{overflow:auto}._fc-designer .ant-layout{height:100%}._fc-designer,._fd-config-dialog .CodeMirror-scroll{background-color:var(--fc-bg-color-1)}._fc-designer{--fc-tool-border-color:var(--fc-line-color-1);cursor:default;height:100%;min-height:500px;overflow:hidden;position:relative}._fc-designer>.ant-layout-content{bottom:0;left:0;padding:0;position:absolute;right:0;top:0}._fc-l-menu{border-right:1px solid var(--fc-line-color-3);border-top:1px solid var(--fc-line-color-3);flex-direction:column}._fc-l-menu,._fc-l-menu-item{align-items:center;display:flex}._fc-l-menu-item{box-sizing:border-box;cursor:pointer;height:40px;justify-content:center;width:100%}._fc-l-menu-item.active{color:var(--fc-style-color-1)}._fc-l-menu-form{border-bottom:1px solid var(--fc-line-color-3)}._fc-l-menu-item i{font-size:22px}._fc-l-menu-item .ant-scroll-number{height:15px;line-height:15px;min-width:15px}._fc-l-menu-item i:hover{color:var(--fc-style-color-1)}._fc-l-label{color:var(--fc-text-color-1);font-size:14px;font-weight:500;line-height:17px;margin-top:5px;padding:10px 12px}._fc-l-info{color:var(--fc-text-color-3);font-size:12px;font-style:normal;font-weight:400;line-height:17px;text-align:left}._fc-l-global,._fc-l-info{padding:0 12px}._fc-l-global ._fc-l-label{font-size:12px;font-weight:400;margin-bottom:8px;margin-top:14px;padding:0}._fc-m .form-create ._fc-l-item.is-inline,._fc-m .form-create-m ._fc-l-item.is-inline{box-sizing:border-box;display:inline-flex!important;vertical-align:top;width:100px}._fc-m .form-create ._fc-field-node,._fc-m .form-create ._fc-l-item,._fc-m .form-create-m ._fc-field-node,._fc-m .form-create-m ._fc-l-item{align-items:center;background:var(--fc-bg-color-2);border:1px dashed #000;border-radius:4px;color:var(--fc-text-color-1);display:flex!important;height:30px;justify-content:center;margin:5px 0;overflow:hidden;padding-bottom:0;transition:all .3s ease;width:calc(100% - 2px)}._fc-m .form-create ._fc-field-node .fc-icon,._fc-m .form-create ._fc-l-item ._fc-l-icon,._fc-m .form-create-m ._fc-field-node .fc-icon,._fc-m .form-create-m ._fc-l-item ._fc-l-icon{display:inline-block!important;font-size:21px;padding:0 4px}._fc-m .form-create ._fc-field-node ._fc-field-node-label>span,._fc-m .form-create ._fc-l-item ._fc-l-name,._fc-m .form-create-m ._fc-field-node ._fc-field-node-label>span,._fc-m .form-create-m ._fc-l-item ._fc-l-name{display:inline-block!important;font-size:12px}._fc-m .form-create ._fc-field-node ._fc-field-node-label,._fc-m .form-create-m ._fc-field-node ._fc-field-node-label{align-items:center;display:flex!important}._fc-l,._fc-m,._fc-r{border-top:1px solid var(--fc-line-color-3);box-sizing:border-box;transition:none!important}._fc-r-title{color:var(--fc-text-color-1);font-size:12px;margin:15px 0 5px}._fc-r-config{display:grid;grid-template-areas:"a" "b" "c" "d" "e" "f" "g";grid-template-columns:repeat(1,1fr)}._fc-r-name-input .ant-input-group-addon{color:var(--fc-text-color-3);cursor:pointer;margin:0;padding:0;width:25px}._fc-r-name-input .icon-group{cursor:pointer}._fc-r-name-input .icon-group:hover{color:var(--fc-style-color-1)}._fc-r .ant-layout-content{padding:20px 20px 100px}._fc-r ._fc-r-tab-props{padding-top:0}._fc-designer ._fc-r .ant-form-item-label{padding-bottom:4px}._fc-designer ._fc-r .ant-btn,._fc-designer ._fc-r .ant-col,._fc-designer ._fc-r .ant-form input,._fc-designer ._fc-r .ant-form label,._fc-designer ._fc-r .ant-form-item-label label,._fc-designer ._fc-r .ant-input,._fc-designer ._fc-r .ant-input-group-addon,._fc-designer ._fc-r .ant-radio-button-wrapper,._fc-designer ._fc-r .ant-radio-wrapper,._fc-designer ._fc-r .ant-select-selector,._fc-designer ._fc-r .ant-tag{font-size:12px!important}._fc-r .ant-form-item .ant-form-item-label>label{height:auto}._fd-config-dialog .ant-btn,._fd-config-dialog .ant-col,._fd-config-dialog .ant-form input,._fd-config-dialog .ant-form label,._fd-config-dialog .ant-form-item-label label,._fd-config-dialog .ant-input-group-addon,._fd-config-dialog .ant-radio-button-wrapper,._fd-config-dialog .ant-radio-wrapper,._fd-config-dialog .ant-select-selector,._fd-config-dialog .ant-tag{font-size:12px!important}._fd-config-dialog .ant-btn-link{font-size:14px!important;font-weight:500;padding-left:0;padding-right:0}._fc-designer ._fc-r .ant-table-wrapper .ant-table-thead>tr>th{font-size:12px;font-weight:400}@keyframes a{0%{transform:rotate(0)}to{transform:rotate(1turn)}}._fc-loading{animation:a 2s linear infinite}._fc-struct-tree{color:var(--fc-text-color-1);margin:5px 0}._fc-struct-tree .ant-tree-indent-unit{width:10px}._fc-tree-node{align-items:center;display:flex;height:30px;justify-content:space-between;line-height:30px;padding-right:5px;width:100%}._fc-tree-node.active,._fc-tree-node.active .icon-more{color:var(--fc-style-color-1)}._fc-tree-label{align-items:center;display:flex}._fc-tree-label>i{font-weight:400;margin-right:2px}._fc-tree-more{align-items:center;display:flex;padding:0 15px}._fc-tree-more .icon-more{font-weight:700}._fc-designer ._fc-l-tabs,._fc-designer ._fc-r-tabs{border-bottom:1px solid var(--fc-line-color-3);display:block;padding:0 10px;position:relative;width:100%}._fc-l-tab,._fc-r-tab{box-sizing:border-box;color:var(--fc-text-color-1);cursor:pointer;display:inline-block;font-size:14px;font-weight:400;height:40px;line-height:40px;list-style:none;margin:0 10px;position:relative;text-align:center}._fc-l ._fc-l-tab.active{border-bottom:2px solid var(--fc-style-color-1);color:var(--fc-style-color-1)}._fc-l-group{border:1px solid var(--fc-line-color-2);margin:12px;padding:0;user-select:none}._fc-l-group ._fc-l-list{align-items:stretch;display:grid;grid-template-columns:repeat(3,1fr)}._fc-l-group.is-template ._fc-l-list{grid-column-gap:5px;align-items:stretch;display:grid;grid-template-columns:repeat(2,1fr);padding:0 7px}._fc-l-group.is-template ._fc-l-item{background:var(--fc-bg-color-2);height:30px;line-height:28px;margin-bottom:5px;overflow:hidden;padding-bottom:0;text-overflow:ellipsis;white-space:nowrap}._fc-l-group.is-template ._fc-l-item:hover{background:var(--fc-style-color-1)}._fc-l-title{align-items:center;cursor:pointer;display:flex;font-weight:600;justify-content:space-between;margin:0;padding:12px}._fc-l-title,._fc-l-title i{font-size:14px}._fc-l-title i.down{transform:rotate(90deg)}._fc-l-item{background:var(--fc-bg-color-1);color:var(--fc-text-color-1);cursor:pointer;display:inline-block;line-height:1;padding-bottom:10px;text-align:center;transition:all .2s ease}._fc-l-item i{display:inline-block;font-size:21px}._fc-l-item ._fc-l-name{font-size:12px}._fc-l-item ._fc-l-icon{padding:10px 5px 12px}._fc-l-item:hover{background:var(--fc-style-color-1);color:#fff}._fc-m-tools{border:1px solid var(--fc-line-color-3);border-top:0;height:40px;justify-content:space-between;padding:0 10px;white-space:nowrap}._fc-m-tools,._fc-m-tools-l,._fc-m-tools-r{align-items:center;display:flex}._fc-m-tools-r{overflow:auto}._fc-m-tools-l .devices .fc-icon{cursor:pointer;width:18px}._fc-m-tools-l .devices .fc-icon.active{color:var(--fc-style-color-1)}._fc-m-tools-l .devices .fc-icon+.fc-icon{margin-left:5px}._fc-m-tools .line{background:var(--fc-line-color-3);height:24px;margin:0 10px;width:1px}._fd-btn-success{background-color:var(--el-color-success-light-8)!important;color:var(--fc-style-color-2)!important}._fd-btn-success,._fd-btn-success:hover{border-color:var(--el-color-success-light-5)!important}._fd-btn-success:hover{background-color:var(--el-color-success)!important;color:#fff!important}._fd-btn-primary{background-color:var(--el-color-primary-light-8)!important;color:var(--fc-style-color-1)!important}._fd-btn-primary,._fd-btn-primary:hover{border-color:var(--el-color-primary-light-5)!important}._fd-btn-primary:hover{background-color:var(--el-color-primary)!important;color:#fff!important}._fd-btn-danger{background-color:var(--el-color-danger-light-8)!important;color:var(--fc-style-color-3)!important}._fd-btn-danger,._fd-btn-danger:hover{border-color:var(--el-color-danger-light-5)!important}._fd-btn-danger:hover{background-color:var(--el-color-danger)!important;color:#fff!important}._fc-m-tools .ant-btn{align-items:center;border-radius:5px;display:flex;font-size:12px;padding:5px 10px}._fc-m-tools .ant-btn+.ant-btn{margin-left:10px}._fc-m-tools ._fd-m-extend{background-color:var(--fc-bg-color-3);border-color:var(--fc-line-color-1);border-radius:5px;color:#666;padding:5px}._fc-m-tools ._fd-m-extend .fc-icon{margin-right:0}._fc-m-tools ._fd-input-btn{align-items:center;display:flex;font-size:12px;justify-content:space-between}._fc-m-tools ._fd-input-btn .icon-check{color:#67c23a;font-size:18px}._fc-m-tools-r .fc-icon{font-size:14px;margin-right:2px}._fc-m-tools-l .fc-icon{cursor:pointer;font-size:18px}._fc-m-tools-l .fc-icon+.fc-icon{margin-left:10px}._fc-m-tools-l .fc-icon.disabled{color:var(--fc-text-color-3);cursor:not-allowed}._fc-r ._fc-r-tab.active{border-bottom:2px solid var(--fc-style-color-1);color:var(--fc-style-color-1)}._fc-m ._fc-m-con{background:var(--fc-bg-color-2);padding:20px;position:relative}._fc-m-drag.mobile,._fc-m-drag.pad{border:10px solid #000;border-radius:25px}._fc-m-drag{box-sizing:border-box;margin:0 auto;overflow:auto;padding:2px}._fc-m .ant-spin-nested-loading>.ant-spin-container>.ant-form>.ant-row>._fd-drag-box{align-content:flex-start;align-items:flex-start;box-sizing:border-box;display:flex;flex-wrap:wrap;justify-content:flex-start;position:relative;width:100%}._fc-m .ant-spin-nested-loading,._fc-m .ant-spin-nested-loading>.ant-spin-container,._fc-m .ant-spin-nested-loading>.ant-spin-container>.ant-form,._fc-m .ant-spin-nested-loading>.ant-spin-container>.ant-form>.ant-row{height:100%}._fc-m-input{padding:5px 5px 80px}._fc-m-input-handle{background:var(--fc-bg-color-1);bottom:0;box-shadow:0 2px 10px #0000000d;left:0;margin:20px;padding:12px;position:absolute;right:0;text-align:center;z-index:1}._fc-m-input-handle>.ant-btn{font-size:13px}._fc-m-input-handle .ant-btn+.ant-btn{margin-left:12px}._fc-m-drag.mobile{width:400px}._fc-m-drag.pad{width:770px}._fc-m-drag,.draggable-drag{background:var(--fc-bg-color-1);height:100%;position:relative}._fc-m-drag form>.ant-row>._fd-drag-tool,._fc-m-drag form>.van-row>._fd-drag-tool{width:100%}._fd-fcDialog-drag,._fd-fcDrawer-drag{padding:3px}._fc-m-drag>.ant-spin-nested-loading>.ant-spin-container>form>.van-row{flex-direction:column}._fd-drag-box{height:100%;min-height:80px;transition:padding-bottom,padding-top .3s ease;width:100%}._fd-drag-box ._fd-drag-box{outline:1px dashed var(--fc-line-color-1)}._fd-drag-tool>._fd-drag-box{outline:none}._fd-drag-box>div[data-draggable]{margin-bottom:1px}._fc-r ._fc-group-container+._fc-group-container{margin-top:20px}._fc-r ._fc-group-container{margin:0;padding:10px}._fc-r ._fc-group-handle{right:15px}._fc-r .ant-form-item{margin-bottom:14px!important}.cm-fc-field,.cm-fc-id{background-color:var(--fc-style-color-1);border-radius:5px;color:#fff;display:inline-block;line-height:1.5em;padding:0 8px}.cm-fc-id{background-color:#df2121}.CodeMirror-widget+.CodeMirror-widget{margin-left:5px}._fc-tabs{display:flex;height:100%;width:100%}._fc-tabs .ant-tabs-nav{margin-bottom:0;padding:0}._fc-tabs .ant-tabs-content{height:100%;overflow:auto}.form-create .fc-none{display:none}._fc-child-empty,._fd-aCard-drag.drag-holder,._fd-aCollapsePanel-drag.drag-holder,._fd-aTabPane-drag.drag-holder,._fd-aTooltip-drag.drag-holder,._fd-draggable-drag.drag-holder,._fd-fcDialog-drag.drag-holder,._fd-fcDrawer-drag.drag-holder,._fd-fcInlineForm-drag.drag-holder,._fd-group-drag.drag-holder,._fd-stepFormItem-drag.drag-holder,._fd-subForm-drag.drag-holder,._fd-tableFormColumn-drag.drag-holder{background:var(--fc-bg-color-2) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAAAMCAMAAABBazFtAAAA1VBMVEX///8uLi5wcHBDQ0P7+/v4+PhaWlpNTU3x8fHR0dH9/f1dXV0jIyPb29ucnJxSUlJLS0s7Ozvm5ubOzs5hYWH19fXIyMh9fX0+Pj5WVlbu7u6vr69ra2s1NTXj4+O8vLx0dHTX19fDw8OOjo6Hh4d5eXlISEg4ODi5ubkyMjLU1NSjo6Ofn5/r6+u0tLSLi4sWFharq6uEhITFxcXAwMCnp6eBgYGxsbFmZmbz8/OXl5eTk5MAAAANDQ23t7ccHBzd3d3Hx8cqKiro6OjKysrf39+QkJAsSMNaAAAFiElEQVRIx+WV17aaUBRFF016BymiiFLECrZrN5ry/58UjrnGkfKSPOQl0+E+e6Asz9SN4Gc+sCCEZOlx+AmX+7WTAFYAuOaJ8JmC38HiRyT2cVQCrNdBTiLl15TZ7HUW+8r7NRXhHr+hI7/TYQVB0DtNkcDbEMZFPJZEXe/Uuq7TIGgaqa9O3fJVfGHHDjBKAZgcCOP82zZ1vfUlCAIPwN4E1yUGu9aDISCrjrVwyvMNoBB/+fLlCMROFc/pbmW9UhrcdrvtBU1JAKzoj48XvI9d9hj51RHDGqzO8xcgXQBYvgGIed5LeF7Hk4+2vTsMI9u27Ip5UInCiSonueddOVfVFmknDH1gEUW+GUVbsBRFVVVTZupUsZDlbQcfD7Td71d0fxVT1PlKNUxs+Va04mRcADikjeGcbF4kjHSgVJ04mH+QwO7v+9rcbCqg25nBr20WrxQAn6PdKYrMIjqAw4C2DLBA8LnrUvW46WZlHJrq4gC4+fRdczr9yNwysu0ndts5LqL2J9g77AMJcMSOA9Q+TVccO1gsUkaWKUBcrfr91coG3CH5NSMO4Zj6FGKoOdiUyjCO75fYAkSF+xZMT7UWwxsFwFGz5rjJIvEIy54O3AfBfIgG7XpSViYsHSjqWmXQ8EohWKpyU/1a5VCwD81jjeBGWfxzTCd9TFIAXPjUVHzmdvXPL03F68qB712hThJPTpJkqg5LPqvp0Yji1G7a/vRGTS4cGenjsSksYNw0bS0Dq+Zb7vjq+9CqajlWJbil0kxld9xo+mFr/UEtgN0SlxnonTRbE1ZEs5Ll41nhKxX1KYHpbr4A3aNzKAyGObxSCAYd5RGTlTbo20PTsBDo8uZ85u+TgSF/yAWo/HZgGAnDXO9MwKqiuKtFZj3DEwp5Mk+bZZAFVZZRfDaQBJ8dp90oZdd0L+wOla0vrmTZP518WR7caJ73/TtPt5GdWnuxuDlApzjw3ax/Zmemo8/nc15sNJ1Ri7nyETayZN05SLKGqR4EMoimovZG29z1wRXnPDkeCwtgMD8w6AzxSiEYg2aamSNtI86IZmgC/EAV+FzgLaALOjcMw22692uzl9EnJzO72eSluZKlgblRACnX0KNcIA7OLY+/Mv4n0XP6ZkzVugi4/Hab74F9r+eUjNPr7Ve6efHC9lCZLMtICq+Wt8Hmra13Oh2DaM6Y1of0zRE5DrsaW5Z10W8DXaLpVrQ5meyyA4ZTqvfRvfYB7qwzE59ovlLkqhIMuk/TO4e3wZVEczgFCrpKnEnWAsnbM9a6hZemtaXqGdfzjBpP7jsB0upCNNcRUz78XQZ0QovpGhh48839YAiw+JGmxXkP4LaZpi09DlvLdNeBt+RDMrS4lAEa2mTclEazlfqtD7PTHE2KIUEbAuhHi4VCNNUWZy7X8ak5laWAN8UXsHIAmETzlUIwBNmetVTaBrRRo7lxAQrmaCmcLkRuE4o+FZJu/vmhOUuZbTE3tsrgdW2OHigA+3lIpSXdiHxUZDmhJ3kbGA4FtThW1lpZQdOaT18PqC+km5YrwHQBjMnQphi39GIjAe0MAN1oRp+44Is+NS3Y58kkjU4keTweJxB1aAvONFdUEOzJlg/FbNMN0w7wmSeaz5Sn5jI3mN7Obm4th2BeNLeWxIAZ1XxQfsD+5IxpqnvgwJ1l96GJQaYy86Vq4jvl4gEFUQmOAthJGSLxenHY71xYrjBtxtlOl9OeRf6mgd5soDadBiSfAIZoJjtcyvUotyFkW+CTB4lnBNg0sBuqGC0Q01stTkYevsHfp5h+5vwsF6GlQGHpjewm3QrAm0Y0XymElvCoSvi5/44mviGP6A3aAdxJbL6x7iIHOwXeNf1+MWf6Cv4M6W/eIuGfIr0vz/Xx+J/4CrqNrFdzXxZoAAAAAElFTkSuQmCC);background-size:0;min-height:90px;position:relative}._fc-child-empty:after,._fd-aCard-drag.drag-holder:after,._fd-aCollapsePanel-drag.drag-holder:after,._fd-aTabPane-drag.drag-holder:after,._fd-aTooltip-drag.drag-holder:after,._fd-draggable-drag.drag-holder:after,._fd-fcDialog-drag.drag-holder:after,._fd-fcDrawer-drag.drag-holder:after,._fd-fcInlineForm-drag.drag-holder:after,._fd-group-drag.drag-holder:after,._fd-stepFormItem-drag.drag-holder:after,._fd-subForm-drag.drag-holder:after,._fd-tableFormColumn-drag.drag-holder:after{align-items:center;bottom:0;color:var(--fc-text-color-3);content:var(--fc-drag-empty);display:flex;font-size:12px;justify-content:center;left:0;position:absolute;right:0;top:0}._fc-designer ._fc-m-drag ._fd-draggable-drag{overflow:auto;padding:2px 2px 100px}._fc-m-drag._fd-drop-hover ._fd-draggable-drag{padding-top:20px}._fd-draggable-drag.drag-holder{background-color:var(--fc-bg-color-1)}._fd-draggable-drag.drag-holder:after{font-size:16px}._fd-drag-item{width:100%}._fd-drag-item.is-inline{display:inline;vertical-align:top;width:auto}._fd-drag-item.is-inline>div{vertical-align:top}._fc-child-empty:after{content:var(--fc-child-empty);font-family:fc-icon!important}.fc-configured{color:var(--fc-text-color-3);margin-left:5px}._fc-manage-text{margin-left:4px}._fc-manage-text,._fd-preview-copy{color:var(--fc-style-color-1);cursor:pointer}._fd-preview-copy{align-items:center;background:var(--fc-style-bg-color-1);border-radius:10px;display:flex;height:28px;justify-content:center;position:absolute;right:35px;top:65px;width:28px}._fd-preview-dialog .ant-modal-content{padding:6px 16px 16px}._fd-preview-code{margin-top:0;max-height:510px;overflow:auto}._fd-preview-code>code{white-space:pre-wrap}._fd-preview-device{align-items:center;display:flex;position:absolute;right:50px;top:14px}._fd-preview-device>div{align-items:center;border-radius:3px;cursor:pointer;height:28px;margin-right:10px;width:76px}._fd-preview-device>div,._fd-preview-mobile{display:flex;justify-content:center}._fd-preview-mobile>div{border:5px solid #000;border-radius:25px;box-sizing:border-box;height:70vh;overflow:scroll;width:350px}._fd-preview-device>div.active{background:var(--fc-style-bg-color-1);color:var(--fc-style-color-1)}._fd-row-line{background:var(--fc-line-color-3);height:1px;margin:10px 0;width:100%}.CodeMirror-hints{z-index:2}._fd-slot-empty{align-items:center;background:var(--fc-bg-color-2);color:var(--fc-text-color-3);display:flex;flex-direction:row;font-size:12px;justify-content:center;min-height:90px;position:relative;width:100%}.form-create-m ._fd-slot-empty{flex-direction:column}._fd-slot-empty>span{color:var(--fc-text-color-2)}._fd-menu{box-sizing:border-box;display:flex;flex-direction:column;overflow:auto;width:100%}._fd-menu-item{border:1px solid var(--fc-bg-color-1);border-bottom:1px dashed var(--fc-line-color-3);cursor:pointer;padding:0 15px}._fd-menu-item.is-active{border:1px solid var(--fc-style-color-1);margin:0}._fd-menu-item>div>.fc-icon{cursor:pointer}._fd-menu-item.is-active>div>.fc-icon{color:var(--fc-style-color-1)}._fd-drag-item:has(>._fd-drag-tool>.ant-col,>.ant-col){transition:all .3s}._fd-drag-item:has(>._fd-drag-tool>.ant-col-1,>.ant-col-1){flex:0 0 4.1666666667%;max-width:4.1666666667%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-2,>.ant-col-2){flex:0 0 8.3333333333%;max-width:8.3333333333%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-3,>.ant-col-3){flex:0 0 12.5%;max-width:12.5%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-4,>.ant-col-4){flex:0 0 16.6666666667%;max-width:16.6666666667%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-5,>.ant-col-5){flex:0 0 20.8333333333%;max-width:20.8333333333%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-6,>.ant-col-6){flex:0 0 25%;max-width:25%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-7,>.ant-col-7){flex:0 0 29.1666666667%;max-width:29.1666666667%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-8,>.ant-col-8){flex:0 0 33.3333333333%;max-width:33.3333333333%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-9,>.ant-col-9){flex:0 0 37.5%;max-width:37.5%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-10,>.ant-col-10){flex:0 0 41.6666666667%;max-width:41.6666666667%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-11,>.ant-col-11){flex:0 0 45.8333333333%;max-width:45.8333333333%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-12,>.ant-col-12){flex:0 0 50%;max-width:50%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-13,>.ant-col-13){flex:0 0 54.1666666667%;max-width:54.1666666667%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-14,>.ant-col-14){flex:0 0 58.3333333333%;max-width:58.3333333333%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-15,>.ant-col-15){flex:0 0 62.5%;max-width:62.5%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-16,>.ant-col-16){flex:0 0 66.6666666667%;max-width:66.6666666667%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-17,>.ant-col-17){flex:0 0 70.8333333333%;max-width:70.8333333333%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-18,>.ant-col-18){flex:0 0 75%;max-width:75%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-19,>.ant-col-19){flex:0 0 79.1666666667%;max-width:79.1666666667%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-20,>.ant-col-20){flex:0 0 83.3333333333%;max-width:83.3333333333%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-21,>.ant-col-21){flex:0 0 87.5%;max-width:87.5%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-22,>.ant-col-22){flex:0 0 91.6666666667%;max-width:91.6666666667%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-23,>.ant-col-23){flex:0 0 95.8333333333%;max-width:95.8333333333%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-24,>.ant-col-24){flex:0 0 100%;max-width:100%}._fd-drag-item>._fd-drag-tool>.ant-col,._fd-drag-item>.ant-col{flex:0 0 100%;max-width:100%}.fc-icon[class*=icon-chart-]{background-color:var(--fc-bg-color-2);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXAAAABsCAYAAAEEfdn9AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABcKADAAQAAAABAAAAbAAAAACUwJ3TAAA5qklEQVR4Ae1dB5wURdavnpkNwLLkICAZFpaogpKUoBgQUBARRMCACUVPBfXUO/XzPM/Tk/PEjApyEhRFEeEIShZUQFhWYBElSFxQCcKmmenv/3qmmu6e7p7pCTu7ULW/2a7w6lXVv1+/elVdVc1YOXUS1bvDg3JLJ/Xf9JK0Pdl5XGYV9jM2ThsvSyyPfto4o98s3ciH8nBe/Grks2ng4M3GOJ5v08BBah08nIgYSTLL4mHtdXO/G/Jq/HLpQ/Vz7tBGK5XALftQZmyoNq9ZhXlG4sX9Lr/7aNsF05VgztU3zEn7o97MDnM/abdpwODcdotmtud0WlCo8h3mzslSK05EPJJn4Nf2X8wayP3aK1U2Z8CQVe0/n52lzStJ7F4msVNMZhX9aBXCW5FvO+W14iW7i7Ozlk+cRZVs/8UnXXL6D9rKngMXjWv/+RyKmEVRpqKioVW8hCD/adN+vvBv3VHpHjs7P9+JUNCmUaUprDSCsZHaNDNePD+BIfnZ7zys8NBKgsz+SnEq4pQBxAp/tOYVxRP8ZwzztKbfPrGa/E2+e2Qdj6OrVmy08dxvxY+nm12NPNWKmxFHE0caxyqfXZrTPBGJihVTbbz2AdLGJ8qvIk5yh0Iy8PtDcrFCyNnb2kJRsddxu+42xKkawngrtXSJ8OsQx4N0Mz1Msp+lmxTWB49yG208VZb/gg3XJifUr6u4WUl5PR+6juJRwedlmb2hpSHx0HYK2rRE+1VRoScdaC+hAlFB0ruKy1r+r4+D3ndR+XeD/sBFYg9XPtzxdwpAvy7WpYnAGYaAZGXllQUL0AprqlvIw2nUDvQA8p+REeJ/MMbZhUF/AedFVyNt7lUjX87rfZ/OPCAav8SG0lWrCJSHk5iQWqNEo+PWXIhx5GKroevbmOZ1sXv8/oAdRA8954ky1sMKVCsMnjxJZ+BpDTYiwIP/DC4fqsTwqFqFIilDu7lzJmkJQirME/2sOy8A1y2wc7J5EvqBK6GhWqJAH1mH2spb8dMaVZUPdbqZ8+JXAoisQ+50FeeR2qtRdHglTtXYUpEK45XX5gFEyogKdXZThwZLUUVdy4/z0uVFoOk3j68xxlFYKxVKxXmEttU8oxXzir9mnyIaszycH+ehvVrx09IY/Wb8wiJuZBIuHE8L0K4sABAfB7GoHh9OkXFREVdkz8UqMT87aXY7XR6W6fey4xq2f0GeFaBdHkz7TZOWcK+COFWaHiLI0i1UIsza1rzknP5DVtITbag0JT9Dlfb4WYbXy0Zz+tK6KhXHv1fw5H/GC4U6U40s2eWrDaNLpyKJjhpD1/XXDlpP19J2qqi4XOw9FP4eKunTVsJMawTTb6drhWPNH3Z72EbZq80l/JYIoHMrn1NwVi0q68ahKuJWDYgkHs/pXCMdFJTp5JeR7mwLRwQ4N4sUpWmCUDTgyi72vTpJRwa1xEai733C7WedYX1ruzldiUh3l7jY2GDketTpax2BIcCVtiFaCZpZQJSQM+C6b2TJX9WYJ3N/l5FN1j3yrTGewsDoO/SEmeQnvmR6kp+cVi/rAOeVs6pIIHvofy3zlKKa72QvfPufoVT6GIxAzuMxKHctyuwC/TZtx0V/684nJHk6XflN9wNhNIwmfcZQr4j4CygdcVvBQ5mioDB3OQMGca/u2mDjfV1q7Omti6MAtUXypeW0mz+zq0umYgPOJ7FGuQMGLUK6DkCezsGmsORhjc77bE5nngYBUp0OcDUWHg6i9u5o07X+9vPmPKUNQ3qH8zCAncH92ivxr7H3ssG/NljySc3dVww40mhhHiTe2+HzObqZMp4HDbqX+/k1GLcdT0dD5N2I+BDAqf78ZvF8dMV9U+aCtHHk17YX7ZgP06cWaDu7ZbZbm2bMpw37fWxRYNAakHZtmg5w3IhRkLa6qDzLzO80qiTtaF0ihqE4B/ea5kJNnRWopsTBSF75BhvuUcbn9TfdZTpO5zxsnzrU184BMHXUaEdnTEO7+mmE05isC9vWT0cpAqWKgHIDrebfrGpSmqaXVR3KazyetlAHFdKP6z26QpdVC6WKPYZ30pwThb0eFmId8PQz4RoCuOxjEqb5JlKHRADgeg/00/V2jeU3R0uTM2Do/3jHq40nPwea9B78WygMiyATN/oVl1f/DteYt7yHdZ0m+p5zZTe71tBR0A1IQ0PHmXU+HNSUU7U8rZe8NRt5fyEA2837UDc1aQSKaAhw/JS5XTKd0LsbijbmKv9hHeAKWNQmL2sF4FUzjICGWrn9tFV6uuHc2jgdE2oKadOMfn7DzPgYac+EsA5wapAixW6AZjClYCLpXovH0niSbJ5fC7TZE8TpxFUgEBUCis4sy2bhmVY3PMXClSYCITrcaeGwLsgySdXl82MySmJ/18WJgIJARIBzO9usUwPY7UKwdKFTlMMDzk1Dnh/hFfDX0XaqPE17pfqY1UVLQ37ib4zThu3KOdRidr1DWbOmSX7P4XbzZwzT5rPy8/L4DKXbW2FV2/nTb9PSRwS4NoPRb1dpI602zCuH6xTwuJmHw/HjNz9S0LVlav14AgfTJJ2Z46YqpckubwMe1lpUxny8/tp4n6eghzZMfh3gPFO4RmuZYJXMbIRVlWK1+ESbh8rBk3ExGpxP/mB4IsK6tYDaPBxoY5ydpFM7UL+Qt1HEA/U0XcqkA1diF2H80UrysakUTz8z0Dlu2rpxf07/ofPbz/uwHw/rAOeRTq5Y4x2qUsIw4De0oOr2ChWOtlRtcspWmLkzPf14k0I7FjTtgNHv67hpPn4jrIBH/XT87fgGhef0nLjMvgHY31AeAprfDDselGZ4+aB7e2UJOGdudke1BYZL19Jq/Tn9r1+Kx7Uezy97iqScfsO2uYsqf9524fvjtbTkD4I82SWxMRTG9W6zdRCUpnWcvzbOys+FB5pmMW5mX6KDUeCiNz+QYqXc3KuHT2v7xYyQRXlanj4X+46HuXDxsCXgnCDcFRUaCjAwNg11WHvxNdZP7Dam0GNOYFc61nI83Vh3caVFvtSTl4cDh4PN+dFNgH8yfmOgjixfMvCngOezehqM5ZOqANjKEwLgJiOdygpxBKqFWvnRSBwz4GhoHUiaqUNDO0JSQgCnx5w3btOAQf+IBGzTAgKRiuTZpEedZJROO0YAvBvo1RfaCOe4/KGzrHrAse4bS0j3kLjSCp/UE+fsoUIA2mKAesxsLs9KWpTKAXEzx8GmNKt3mMZ8ThpvzGtbRyNxlGGA+yuyqv0F6mvqdIBjguozrhtaLn9BXUMGwLfh8RVOIFD+EFDktixPEJU/SO1rDPUmXGkiYAk4RljX4HdlaVYGbz/etTCvSrUaiSzMFHCyW9FwN1YdtTDasPGqDPjPw+91zg+d+lRYQt1jsUY4r7J81QGOBtfhAMNieY5XnMfxcLgrwBtOI0crOpJi0NRBeh8aycHcnIZflzMdbMJDBzhMv0P4rQuO4JThtELkYUvpauawGt8N1dNAmwakZ9AwfVvve00HJS4fOw8juM4EMGi3AvwLya/cWGwn0/I60/w6wIOSPEXbSAIfG056W0n5piuGTznUaqZEQ3ySXMqLp6MWDW5aLZ00GZNM3bX8yI8bpGzKIj/Sh2klm+/do7Qz0ekAVxoo6xfXQ/poBGXqTtbaVMnnLrzwUPNZSyCxWIjCniVCv5ut4uBj/kM5C0HLQFEpwZuDgdb32rQz3R8COADeg0YX8IaDYAT5sRD+HR7Hr5UOdzippHnTldkxdLJVKAwem91upq6P5vRmV5q84jOTZulnWpxuaO+B1YBH3Iuf6rD8rCJAL9KqATURHu28COiUGTtI+xCoIeFMENABTmADtAoAeYmWFtbLW9pwzH5MkuExyCc+NEnmKayq+NGBLkaU8tTEXEYZZaADnOqIzrEA/9QNj4moN02Scb7GSTIeL64CAYGAQEAgEA4BdfTtdIY2HGNjOj+vQZRjRMY+LHCzx8cqleMGG1A4gcCZi0CIER5tU2nK0F+sbASi+ccirITRHQJix5dPutjR8DTtLBePi/aKOtbDfMV+u/yYuRuLtV1zMCF0wI4u0jSaVsUgZG+k9FZ0wGw60pQ971Y0dvHxxNGunHik8TOGtPM/Nff0HVh/41jblbpUdtwEvMSL0x2C/QFJNryWq6Di0ehYeEA4cpA/DfM9tJy5GDdbtzaSAPX5AkvVaEoJQk578mdEWyZtw1Q3qGEYD34lmNawXLQaSTmo841OFIOB5ypDOKJgXq8Hh2DdpzIbbJVBkj2H2ix4r7fbmxGxgjPywjT/OtjOlXk87gUth1LX+1D8kYaL5+LHUgqrv5e96J1/cFrj1VrAJXY1bkJdygAgdwNQ3VyWkVEs4dLSJpAt9TiT4Nu8+hDgj0lQIHTjMLM8HvGNgoAeQPt7OW0X5v668+l/aOtU8LzTuOgSNCngOy7Fx972uZntImG78ksLN6xE/AG46GQlpaDWa9X39v64+r4e+ftafdDhRK0NT8rukhay5K2T22/kFqq33dEyZu3CPbgK9+jf6sDQjMgQV5L+2y15fe49kPXVpKmGJCWoq7SWADf+JXpsNE73BGniY/Zqux4js0iPujHmMwsDwEy06VLFRCDVjNNSSDNAwNdi8vkVaq+/hHWHuXXELH9EcRI7HzfpfIUWHqNDWVUgmMcovsSNbcaM5aO3m+Xzspqu1MBJeqjfSmM+q7AddmZ5Uk7WfjX7yzf/Y5ZmjCuqtDdt26XjqLdTXOaBLiPo/HI8uPNQx5fpCB6siy5u9M2jqSk4Hccr4UUpdvLyB+J4vbXTcMr8ARzY3ivIwvZCwm1HUDdveB/TdD/1xebOUsDNyU8fEcTTta96eFxcr/7Ibflw5SoaLwgFDrRajQOtalL9Ed+F54Vwqy63341TsEGnK0XE1E4JSxMYu4j4KDoD//BA8dMUa+PGjoOwMGh7Ml8cvYSgnQu+tBMDiHckLlLhJl5a4ab200OIvqcthLg/pfNF/5KbNcM4ZTVwfBvw/pOWQmOnxQIs/m8qS75z8nrfPzxr6ctRm3hKWehla29XTiCmoOqgMAqxZLmDGmHwaG6nIaUUgzEJj8N6YnPTQtlV0phnIw2YUljt/exF7yq25a6OL3U41nDlhzy9xu7Lrm2w6Z6IhQ4CSrsxwjqig5wfg7kyjRNDONyIuwLhiM3B4Lac8TR45XysrhDMvVZppvF41aqNV3o2+XTvRqYdpYOv2ruj/g9TXPM1T1/3Y7fHlUUFhZX2PoCo8AIu46xuSf9VAOJl51xu1snssA2ep0wIOGkwXiEnV7zj3gNw1deidnk39x/2od9VpDzpmfu6D2+yfvwGosfeqOkl6b+PgqCP4vmxj3UZ9rHeycOJukKgq2gfCAgHubWBi7P/0P6DwuUAf0cDf7tNKeDVXOkM/eyqQLekL50O3rbLr6cOhMBzMHq2VuAX/p7iqF7QZ2O4buvKhIDb1tAmEV0ino3IXLt5M0P7N2TFxr8biQMEfGu7hbPauIpSI+ZpVrJiBpklJDgOqv/LcEVAeOLmwGqH0lZIWTwd2G3D4F7pEbDYsRlmtB5HL9cBZf0Kwf8C15edlGcp4FY3ysqciGVaMOq8cbxhaJd6VLoTAMsKLYRXmbkoK/WJRz2wufcnqLBbIR8BF8X9VvNyHuIqEBAICAQEAuUEAdWCEougnN0xvpjHWS5BXdoICBMlDOKYCnuHT4eFIRXJZRABRwKOgYyyURa70gZTW2h6D/Ovd5fBdoWtEure044IQj0lKNg9MHpXXwTZ5RFpZQ8By1kUbVWxUGgsFgy5zeY7Mf/qweA2MI/tUk4ZWq7NG0d/fwhlE9ThVbyYjWoqT3kdnhLYJkq2WXBQfiNmjNbzeiKOdp1fSGE8/RfioT7GCTmNuJYfBCwFHNqrK25uJ6UpwXVheClxBcItSLyQ/hyE5Cho/qs218/aI6k9hV0pWC1XEm4aPpATi5M8XnyQGzzn0tdxVH7wkBZFOXSE5DzqbvJ6/2lEYcbuvxJNvc139Ki186rD5Ld1EpsJwT0PdSKppsU8ryv0OEIB8dNRBhawsfXwK1t3aQsvfU0RYeHKOQKmAk7nZ0CYW0CgluImp6GNtPbYzFXlb+Jo3tztY+kQlpZYIdcSL3lvQYaIds9iIp9239KXMFUH7xZoUjrg7A3EK7tkKfHcTXfM+bH74xBwqZgLN8ykG/FG06qOJNTDIMChTsbXPOgjEx62DeV1BhidfDI7QVum8aDq3q4q9QvlIGLKOAKmAk4mAASV9tf3pvpDiOmFKOk/S0cCAds84CAtEKiIXgsbV8O1Xvafdml/nFsTPQPnRq/MJ6I+L+A6sMJv2Qxfn9at4bYVbl6l4LqJYFD92goWCsn4U96cRb2AmTMV1zKHgKmAUy1JaCCnihaDsL3JNbVZC0D3tTYeJsd2CE1Ubl/Lme2arJuwHrZ9PxjB/TweNjV4CEVfDcNUjT8mr/EBs3pTG1MhInPSELAUcKoRhHoThLsDXZVX9x7WFsKmaPVgugeatQ6WKz4KDd4NcYEtVDJbSOl2DvmeQnpLK4GC2XEMD0oBzKUC4oPyO9JVOIGAEwTsBVxmKyDctPgln6YDsf5XRw/h9yJtn2KvBmY3vobibhVJBSCwT9nRwT45At6TIxum2nESaWczAjqBNQUiOMCDyULfVrB2QZMENNusiZKXovRAJsVb9SBiUGkCVjmMwn0UTiAgEBAICAQEAgIBgYBAQCAgEChFBNRxo1gu6wx1vlxW4Fa2cRODTGf3R1CXMwSEgJezGyaq6wwBIeDO8BLU5QyB8C96EtwgvAXtibelD0VSDF7WDIyETtAIBDgCcRNwvOmsyJnitf4p7g93xdEAo/HKX1nNF46WNizEdG6gtgBa2x5mzYyybJixVXiwaJ1NzA4HFbXGIrKIT8myKxBrecIeHWyZX2YbMLsw3DK9jCXQ6bz52R/WO5g14yuqmttbcUXb+R/cHkk14yLgtP7E72KnV/u52GdYgLUnkgokhUZifVDn/0DgPsLC7yfM6gABugBCEFhjLrE/42F4zowu0jjgQ0eMdcUBPY3xQC+INF8i6NC2l/DQRu3yet83srjC4av9nqI2kt+d7/Kl59bacc3zdX4csj9qppqMOLPd7fWw5cC8FkW7XfpvyPk8py6hVaDN1vylU8bh809osoZ4k26D42ZHvAxbTteflRfSmggicHO74t4qO3pQ9vUAoJ0xG2goPSDcjBXHQbh7knBTOdhQ0Rw3r6qxTMdhCQIQpcN6f+XMQCfZfZ4/3DkDrl9BglVY+Zcn/J7C87CTJBUHbDbwpfxx5cHWHyylNDpD3AlfE9oeXjc2uwSF2yRdjfqp6zPr1ICFJ+kCDk1yO350wmvYn8fLjlq0I6JoPEm4KWxKkFg5WBIH3M0mjcEZQPhz4e8TDC9BvUIeAE4byRUPy1UQbmUbH6d3ebGTKEYHk/DFGFlEnH1np+cvpDO/6ezvcJnogHyc3PtNODqzdNyLRsDrHbM0q7jcfiPetkqjeFMThWxPPOW3aDI6KlSTr8x4IbitsL58plIhif0IAekPMDcjnBrUGNdgG5J66CN2Mw2D1H/vpAHYnN0FvcKPMM9+pXzK6QM+Vt+UhwR8ZfaeaVpkkdtJKURGGj0VCTed863lIPlSfqx8+Pyn628bsem3+qtq/9Zg6XUlFQ6P5TQ4lroqnRHu9PBNaNtFnEekVzJX7GhNBRyzGgMgEA/zjBgYbYNwrObheF5/7vZkzz+qbTOdRXHJruNt58+4KdbyIHR1sDtIEV7Y1buhUZXzrUk7Q8gDg7XTwu2DIdQGG48BgUPnZxnIdSNmhmizSAGMrwpWHPAAZWCA3QZ1+cGKJlx87lU3vu93+RyZO+2/mBXxTJQ/rdilE25ZKunw+SdtqV5QgkPJ1Kl3dHj1uluHv4yol/N6PnBDYZVd/6fUGztdc66+YQ7KG6SEw/0jLJwjHo6ruQYPmyuOBKeqbR8tu4tNNRFMirg4CNshPKRTIeQ0c3K5linie2GwuUyJk9laPACjTxssWkpnfjxUocIt4ZMwMjvIOeH01D6kPGhfKB62lhiItoG59DFPD3d1FVX+zpeRf284umjTcy+/UZm1UPJjcwsJN2TwbvRQU4HRTorHVx0Ok52LmbP5Wcsn9tvZ+fmfjp+z9gNKw33Npq9EpJ1sUERhOwccHqWNvFau5i+XEm7cdLQiC4mnup0VDkL+dwhRT97Y/e0mNyc/eqYDAPZFpN2mCDcnCF5zrxo+1RAVVRDlDAD/IaiHTqPh4RoLob8HgtMXZlM9J8zrbL9JZzo4yRsJLX2dgdORuUGfLEEbXqdpYD5QVfADEerej0xb+sSJ5EtTP3uS1+shRdg5H8urZD3WwSkNL6acrFHpnG1DTxh/tbcMtZ25cSTgO3o+MoBGyvz3c+dnYp8fll3xUtSW2BkTDrR6r8nhJl98QdNdlIabQwOVVVq6I02/rEHt9KUUdsnr+dB12jQbf4pJmoQHiAS4UTCtPoREOVjIhNZRVI29FzsadLtLMr6ItAD67Ainlfyen8nv94V+vQJCrZxyptCSyedi1dp/MfN6nhdaPLJBumTzOUcoJnzy8Tuzn3IqAi/M5Gpqg5vQKVF+hk5U6yTooxhdpBP2MRajZj/UYna9/JZz/0cRNN11uNGiBbV2X35EJYBnW5977ijK2K+OCxpuunW+Nt3GPwyIdIFAF0KgV8C+LkD4mhB6nJwF4PbCjLHVPiH5TCKsttyZkDqKKqmY349nyDjc8f8wVhkL8+kZCLTqIMyj0MZxiPiEIiEctEn9S3gvpbATB7afAbMHneSJhNaRgEfCsCzTQJhr0nytto77O7y+GgKujgHw8aSlmNtVTAVorj3t533UV0sfkV9m6bhhl9vZlOAzGEIzGaZRIeeJhyE7moEWBK0B52F1RS+11yrNLN4nlbRCXZSp1Lo7BtGpCmu0wo223Yv0cdCgf9e+yQBdQLiDec14m8b52Zvg6UzAYf+HwyvpAk52HQZbjk0daAof7MAPTcEyiTzR8OsqJMyBJOl4h7mfdCYThMKbBg7e2GzNExdrXxykn2rwbNaSV943YRW3KGi8MdBak3BjL8ID0Tlaxhig6ex6Mz7g/4pZvFVch3mzbeuDepPmpi/DTQPvEOd0ilBhIOHziTKO6YvQ4b0ImS62LukCDuHuCJBq2tYyxsSTtTZV+rnjC98G2LgKOsz9WLl5bZa90+aHXrf9gNtUQSvcTTdOuLDynm7HYiw2ouzQ2gmbBYmoAtESyYGlGJAvmhWNi0MvMwa90fcQ8orhGNKkAIQ77PgtjPyHK6Z8pFc63OGk25cOAZeKIdwdea09x6t7M/d3u5GHaV0F2bSlJdy83PJ4hdbuS7941x1Cfh56tJV2fPFE0VTvKjsanpZ0DY4nEe88Eu/wNTVlxsRYEh0Tl3vlqM89voq7Wi1+Y5Ix3UkYbRnthD5etO5S/sJavOptxYc0uZLmYndCNq6BRq+H32ZMqf6DXoy5rTKaxJsKOAr4DF2F6vhbzJbLX/hse88JanzTb59QbFo8ybrDfpB/j0oUziOzzzVFhaNOSHrb/70/PiGMS4kpxiNbSqmo0i0GA0/I1ptqoVEYQ6YCTgxJyFXGGg8JuSaoeo1CriYIj0AgiQgkW3kmsemi6LMBASHgZ8NdFm0UCAgEBAICAYFAuUMAY8OAEyc0cSQiu/KTrSKjFlTJQkDY4MlCXpRbKggIAQ8Ds3a/ZhhSkVwGERACbnNT8Io1jfZr4qXX7TZkIqkMI+BYwPEyqQO1Bxkr4ManluG2xVQ1Em68Gg7sTBEnasWEZTIzOxJwCPQoVPYSXmGsArxTWcPMI8rTlTa5Wjj6oK0q3Pi4MtaYDLAgFdFlHIGIBJy0GTT3OAh0FWN7cJDNpRB8dUWeMb0MhlvSTnqs3/iEjgQz1o96JhzMsykYvw3CHfEudCMvEU4+AmEFHALcEWJwh11VIfg16AFI5IBMecDwKUO7eoRLg2C/jd/nKp1bf2QDCTcOn9lI6VjFtgXCHbrdTM0sPOUBAVsBx0E2o2GC6HZYIDyINCCWLIbkLaEd4hJrEq+GYzX7hVQH4geTYQ/OEVH2RtIGBidlUA9EdUYexbzCTqAH4JdRVzda8S7x0go3Un4AzSCKF658I2C5mpA0pm6/hAuDLhyzxptbLLENEIQPEP6dx9EVwtQf0rIXZ2fM0cbb+aEtb8bevgyUp1uPjUMXH0Lv0Bp5pypLeFEpvs0MIq9sO7Pjy9NUexrb3CDodLaH3+NjC5UZEpl1h6BfhofpVYUewg275fROcc5EXMslApYCDo0W2MMnsdoQiOcgzD2MLYQ2HwHhWAMhXA+N/hP2V67Cp76PO97E5EIOGX9G52c3hBjJKo2cqXrDeGBv/xXtOQ9kj+IhVRxtdwLvUQi+jwhFuOHfDLohOA6pPtqhCjna9YHkZb8Fcor/5QkB3E8TB5sbGrUvDomoAeH4ChQhwq3mkllXCPoFEI75EPQMaO/e+N1Jh8CoNGE80M7vQ8QDGhS0NGglkyJoVuhyu70VVlFE+omGTysJmA1BPRvqiAwBVGQWoh41RJOR8g0eUGV7FMrKgVkyhGjwyfLKWlqlXdoI4S83CJhrcJxD6PMpx2S1gvDuh/A2CtOidMWkwT/uIFSaEI8NvdKhOoWZux7zFFde2GbhlMcUCpk9ySkheA9A606kMBj2bLt4+l34fn0JT4eQHvb4WaHuSAM1MbwHD9cYlDEdJlV5mgkK3zBBoSBgrmU1B0JCuMMe1g7BU45fUDGl8yoicHl97h9VWOXnv2P7UIY37dh1OQOGLKdsEDj1rBDMSX8ZjMvDw/YWtGsuhLKFyl5m+RDu42rYxIMe4RrwVHoEumKc0F1LhgdICLcWkDPIby7gmgbCRFEOf9FEhXghILqToaBqFUENITREFGbsCWjsYDzOwqtLXmjTDtDMT2EvaH+YHzn46WY0MLPyloGVCAoETBEwN1FACuHaBU3XmHJBi+dITH+IO8VbOeQ9YJWmjXd50zcGvhSgjQ34MfORiZmNi/AE/oiYFQaKRYZwVEE6uvlEzRz1Yamxt/fgBhvu+yEqZiJTmUTAUoNDoE8LlYvNQO23W7UApkMBT3M5OFe73fwZwzDdd4rnbbDhwYvI75VZVRwIlIqeoBqFodF/RS9xF7yYncRpVjF+L4d4kvOmnNKdrV3sOa4LB6jE//KMgKUGh2lyjDcM57/S4YqfwNZWjuvi8RDsGnhCNoL2U2j5QJoU2fdfyBaG0GbhCDWavtM5j8SOIv0AhPkEdR9BtxT07XhAXAUCkSBgqcEpMwTYh5ctS8iPgZw6L0xhchDsX/Eq/1zye2Qcig6HI3Yj+sARCTfRWzmkz4ZwL7RKF/ECgUgQsBVwmAlfYw54KwS9CoStvhVDKNnraSYDJyxtxlxyRNODVrxEvEAgnghYmihUCARWWXiElyH14Fc0uVXh/hJQudkyq/RkxuMU0nlYIag6DIJXU6DZ6ifn/dT9aTWen9QF84g+8KQ6TEvuUQPCU64Q0Nx263qTFrdODaTgzWeZdcpreZOTutzeDJ/ZSV3BXmhbmW2QqFjECNiaKBFzEYQCgTKKgBDwMnpjRLUEAgIBgYBAQCAgEBAICAQEAgIBgYBAQCAgEBAICAQEAqWFAFYz6V2iz5jVlxb/kPHMV9Ge+GMcC0dxf2JBL/F5xf1JPMaxlGC8P+ItTyxoirwCAYGAQCCJCAgFnkTwRdECAYGAQCAWBIQCjwU9kVcgIBAQCCQRgYi2OiSxfqVSNPbuvI2CLol3YT43uwj7iI7Gm29Z44czxTK8LvZHWatXWawPtogNxAk/KcmoG86lKMFLr7nJKPtsKvNQi9n1DraePlfye/Jdfs/+lMLqK6sc7PFV3S3Dfok3DmVKgeNstWoQsKHKYSiGluIEoAKcrP8BtjKrh68YSKIOYje1G0cDxN1JhTigtkwhjCb62RXAeSK2zm7Fbzg2mhZH03DAVR35X0DeHiXYp4j79j2GczfhlKiwR6BFU57TPNhw2x6K8hLI0skUL5uBzlQ9B9Apr3jSA7dG2At5bzx5RsoLZb8asmoh0syC7jQCKSxFLmZdoJP6Qm90wfNUB5u306GfOivnR7rwn8mVZVdJZZ+rpJkvY9/Fhc1nPXaoOR3+y/xQ6FOzvnr5Bdore5ppdL6ypV78rA4UtOkX27DhuQKsvFqwIvZE19SzOxcE7WJo2ddx4gG3/triCJDNeKifgLR9FAk6yreMPOw25HsQvHTby8HnPEjj8xjNTEjmkSGQn25oywXoSFjwww0Z6GBux1dBvkLnlfTj+HCY1es4kP5WYFgxEszjSFPgSsH9L4kjxzCsCjN3pu+64MURxRWP9JfdxdlhyHXJki91S+qpmvMarx//QfrxJsnvfPHFGogUfSuhhWKiwFohESPLRXvyhq4R5gFXSfpvt+T2G3kLHQHfetFbd8SiyMuWAjdvcMJjYaVNxY3IxL0w7TyiqoCfrXV7DIftRsUotkywQjtBwCajfRVMOUnsb4gfC8U7GNa47is0nB6y2g5K52X64IUSB6A07heMYO7nylGfpKFKoBf2Dgxu1gedFH3lxtThHvdBQlsYArNxSFvMlo9pIRFEKiMUGVhK7M8RkMeTZJLuOP14ctbwOth6RoP8pp9OgsK2vBcacksvKfyiyvuz83o9+DARQaFvrf3ztffW3Tp8r2WmBCTguegKTf0OWOsMlngU5fMU9IAiz625p++19TeO1Z88H2EBQoEDKCio5bhJyyPELDKyZGgybc3wiS1Yo1OgvPUfYZHZVnQs98OangILoh5lUa4yW4vr26j2ixRH89olHvYsEq800XZeKPsXoYTeI1pikAwHrY1qsqtQfuMIq1DbncLuhqL/FPUvVUWgw8eHT6mlsC2od6lJCXD6LpGFbe854ZqCzB34hEViJg2pQzjU4sMvDzX/0FvhePPHzI7p0mEchwCMn4/w/LRP8F1yHWm4eK67uPpl0cyRO1XgPdAjUW9k6vBAXRvJ2W6mmUVkXBCAYmrhd7NpYEbvE7RuJw6NvIlGBfj2C7neEEz60tazSoj+Sex23N8RUCxuTDuk4Wp0KzCXPEF5MWtgbiSMRxh1uYxb1SjuCJTQNphB2/EtGx86l4GwZus4LQdHHlPNB6HT/gnNUz626pRHrPQ425DOpf02Vj5O8qO9CXGKxd3849n4JItygL9ZIS5/6saMQ+e/0OS7R9aZpRvjdnZ+vtMfdTZM8LuKOxrTcPc8BVV2/BPfOPpz7R3XDUmURQ7ZWATl3Sik/ARFHGk890ko8DFO2TtS4Jisr2HyUKtl4mts1WksW95cbr8Rb/s8py6Jpt4pBTXfyl789r+iyRvvPDRHLXuggKG8Nbz3oVMdgftyAMpb5yCgs3FP50JJTsdtC3xQwDg3i4+IYfrhQShOReFAeSfF4YGqiTr2gBLvgQ4qZqsfo4pmwOQufAB4ZrJWCuX2u3EyhtEXJxJQzLOubDt/umPFEEmdtl8yfnBB1Z+eM6OVZNfRyge6jG2ybsJ6bTo633RgvgFxm3A/h1Ma7ukkTMP1Rfhi6Jf8oKK/gdJ2dnrhghPnrH1Nlvy6L65Qh0EW+fFa6//ccsWL9FGOuDkYDveDWakpb6q4z1MY2llF0CLDIx1BjjORRFJUQnQtc8V/biy6isCAJssOH6RD/qdgqdyF8AJY27vxcFg6WOz0qaMhENquIKLRFalH6Gz2BuJfwUvjGMCxLDbhCaj7ecCA2nQclvpshENehCE+xeVlI9HAfZgVTwFO9K1jar/qELcVHZ3tcfgqsUNPxd+z3j9Ra2NCFXjFoy2mOaxWROR5ve+9ubDyvj+bEacfb/Rk1rJ/z+RpkKUH0VkOALADMYI7gXuhe6GJ0cG93DAE3lVAT0bFx4j/T7ADuCiv15+GFWbufprz5FfqQFCXzKylk6bwuJivMrtaGac5ZCSnwHDCx93r5A3dh5/tR2scsrYkT6gCP9xkQa0D2VPfxIA8ZKgr+VL2NFv719sq/pqtflfNspYiwTkCMnsjOFWiy7u/3eTmRxotmOYqqbS67cL3x/NEKKk18GfD0q2OB+w3nRbjRJqrP63Yta37uHtKMvLHItrlKc78pM3/ppo+0JpsCfXi4ac5/Svwq6QpqCqUxxi0Kw9KYrEm/rTXF3g5C6VRqq7pmidX5PS/frfs8ibE2oNd8kvTr59eHu9G5Tf+rA6U96NmfDP3dxnZZN0j3wYNgim4Jy/BCHgJ2L+EUY+lw4vouli9dBD34Bjkryd+9HLqHoTvQ0c7kjqEnZ2e//l4vbUhHRLVBXVaUHvXNYcsC3CQgLrXUMp3kIdIMT23KBrF73Zj+SEUv8PiFPKEKvDfG37VTXYXtTGrGOJrHmz2yXlNf81WPpBjRlNacRV/bzn1j2rbMlGeo1UoLtl1vMqBznNKq56xlHOw1fSG+S3m/FeWvEpn6ks7MWDTgEFXZe7vPrLJ+vE0pFUcBPc37je77rzwH51P1Fk3EUPYWtp0b+rxwTlXD81qu+S/Q1xFqTCi4uJugvJtgYd7F6aBdqNTOQjGejUrsYqo8+UorYFdiaDJwsOVhY5qMXjk2dGWZlr6icav4hPftyWizPQT505JBN/8Vh9PAN8QHUfTiaS8qcygQZBluFuh1ZHZMEzjPYWPfg2Csj6oI/Ar69Zf5cYE8d7S9/a3SiocuUNHh+KoTlDgqkFiSHcUhMxtQl26O8oULbHMdkervKnIhCrwaNtU2vmCVsry0i63NMrLbzq37sHs9/8ru3znhpSHF0LH66+ekVt3/frWSyeNdJ+qYWoknWj4dZXdbV59wZdyqmcID8aK0o81fjZr+cRZJmmxRkEPYO5bxk9inUhzc60BPwwlNRhxOcjUF7wupuWEyJT0XbLB1RSfRdyAMkDodxe0N6tGtf09PqZ44DsWneRgbGwZjM7X1LKE0r4dyn28cgdl9iUU5lYznrjPtGGM+H4AOZhMZeQ3+9SowJnfUxh4h2PGxGEc3iX9Ddb/AofZoiOX2TPOpfh0UUKBn8bijPIdabys+v62r0FxlzTTNoxeLlU83vxvJ6v8+Ax0YAVK87kLL8i9bMyWSr+3HN985fOfc/q8PveOLqy072EIWIicuL2VFjbZ8MBjlQ5ekJQt9NEob94uKI50KJmboBwOQHF8Cl7ajisFSr4N5l/PAz1NxazFLyFz4Gp9gh4ovXHGuGjCqDttOEmYa//FRzTisXTA9DVg+hqUd4gDtmMQOUFrmWOT1SvoUE0dWPwG2t488ZwfRu/CL6Hzy5CNn/ES6FbstHyXl5uIK+TvL7D2V8bCO+TBjIVZuc2LFyyYZ2tcmvXHjdsFwVSVZbzKPlHn28ydnV6cIrtL9FNXsuuP6vsuvuXcDX/KCZb1+ZbLb328JP33Ubzsk9W2v5jTfwjewEsy5mUb8nh+xdkO+6vt736/hgdPKpdXKIdz8LDejQ5qL+5FXTRCeR4QL1ziEKAXy6edjfV9mqj0fXg+V6MD6oZ5+dlQtMp+iXjVAvxOoJO9HiOKnbHyFAocCMIqcGktglhBjSQ/lYkbGFd3su76jF3nT3xLr7ylwsxDnW5v8s1jytyktsDsRe8+ixfNbx1o+84cPqcdMtWChLSCuhOzlk2cLHnT4lxjbW2S6Jft58+TWLMzrmjI/G203BUrf2rgTcnvviTuig0HLl6+/goasv5boaN/HcIfkyLHyOQ4+NyHToEWDMTFCQUeFxjLBhOazmg3f8awgqrbK/zU9emX8XJ2etO1Ty6zq12tnVcdxq9HXp/7R+Fl2uOc1u2r8HXdrbeNr/nzpSTEyXEyjiKQlIcoOeVTqVQH4eKKAC13xYvJI1De5cJhRLYNctCbRmYYqXeHEn4Icqkf4Vq1BC8pYc1PhPJeoIzs4mwCOVLg6D0P2pWPN8mHtOkpRVUPFlg1DPHpBXX1y37oSFKLuTBigzkp23SbomyTMAe30SezNNwYyFXiHW6mj8q0mveLtQYVjrYsaLvgg5AXPXZ8cTra+1D8Hx1s+UnbJt8++p0dbWmlQeAfKu2RUWm1zaycRM9dm5Up4pwhQFMryLHaiVzieU+Yc6TAUelv8FBZvkAw1rPJ2se/Qc0t6Y2tovMpwN/6BUyCdgHSZhc8PLud3BRj3Z2EqSc2W6PthEciaEnxlxXlnYj2CZ4CgTMNgXIyiDnTYBftEQgIBAQCsSMgFHjsGAoOAgGBgEAgKQgIBZ4U2EWhAgGBgEBAICAQEAgIBAQCAgGBgEBAICAQEAiULwRoQYTOdXhQbqmLKGeBTS9J27VVFu3RopF8v/H+JL9GogYCgfKLgJgDL7/3TtRcICAQOMsREAr8LBeAWJuPnWlpOBbgHexMc7RxKNZyRX6BgEBA+Z5v6cCATToVeUl0FgL3i2v5RIAUN06QeRe7Y+lwrB7YxPUQFHkerteVzxaJWgsEyh8CznZiOmwfPeT42sSlPj9rxlLYPpePfUIsEJeOTZVjXG521FfEFtCHdh2yFuRJQoC+aejzsNdx7EA3wxbhPHTLo3Hcwu9JqpooViBw1iGQEAWOc0U6ujysG05ZdkN5Wzp8gqiq5GHDiQQKYSsOIlkGpZ+gDfOW1TgrEqgzhbVMX1IZid8+dKLXOvkSiPIxWg97w+tRvjOpxWwbvnM4WvkwsPEsBS2V8AsEBAJxRyBuChzWWB2cpnwlpkcyoYwZro4c8reG5m6NQ57oI7tf4aCnHx0xKCPEfpfyPb3LYYlWxJTCKkwdJffzXRIbCb06AfckTQNRfZ+PfQeL+QXUc7ImPsSLlyQVfBJ7E4r7Im0i7tdWv4fdTIo7WV+q19ZH+AUCZyMCMSlwsuqgcC/Dtakyq22ntGV2MQ5I9+Ms3E/tgMaXMFKRfmXwl+/BMYxWn2Wy45OsNCjEC6HcapIxCuXXEx3Zdjo+szTrgxFNTyjs51BmDZNyixFHGJObgE5mFGp3LTpN3bcwFcXN2FtQ3hcGSAP/0ZAtGCndjOsxfNFdOIGAQCCJCESlwGmKxBOcIoHytnYu1hIKrRcIUoMqrB8UxvN47tcgnIv4IuvMSkptL+ZVMVcuY7j/PTTiGnQANpMyYbiFSaYXrbKHNYHSPQIFqD/q1iyvxJai+coh7zhmsj+NGtDewLm/RE/YpBVJ23o9cHdRxYO3IaKy5Evdji93/6Xx9w9sNGMZQ1xLYPsS8rcIeUMss3UYGUzANwr3E38A+CDad2ewrDrofNfA/wrqO4kUNzrMt9EXdw6mBy4y+wHvKm6maRe7W67LIwICAYFAQhGISoHjuyw7MLddDKV1LpTGuVBcyrcVlZpKrAGU2GVQChlBpR3SACiYrkjvirzFUJqLoBB2hRAFIzBvewxz6b+A10Go+xR0BeGUvhUr23jUoxYOmB+mdA+kAXFeN+JW2mWCpX0dPs7azy2zDVZTPpuvGP2x7C5SD3+X3cUtj527YlZe1V1PZS19eYYdf0dpEisBfQM1j8z2ANfxUMibKA7KW3WIe0nysWnorD6l0QIlgHYc7sk4k0FULvLeQqMgKG/mKmEVij266RiFL3gWQB4Scm/UiguPQEAgoEMgYgUO68vtL8aaXxc75aUPK8hsCzhtgbImZZeF8L/ga6FwDzEBldiQf8ibCqXRXyGX2VoogL9Cgfyis7KDigdTNfQZDwlpmVIKO+nz6j5EG8LbaQTadTjFB8vTzRrCWv0VytvqSzQtUede+KVguudrKLf/EgRWzlOS8V2JRoEH6XwZv2dtsMoTVTy+rwccO0LRdgZGygcZ7G4DtRedVXe0YyzKw3cw9Q5t2uzBh10VxR1khLhW3hTWF7fC1AG3z/AZqj2miSJSICAQiDsCEStwUphQoD1hsTXX1sLtYi5Mo9yFZ9zqudaSW/sl1gV8JkKJvwelURMdQkYIMSZfoeB/lLzsfyFpcYiA8i4Em+1QQiEOyqkhlPp8UtxKIrQZ6nofKW+MJEYgz7qQTIjIXjT5OVye29vh1dbFFY7UqXyga26t3Zfrlk2Cx3X41UMnlQulutSMT6RxXHlHSo9O9DUo8xm4zkEdzsF93ASYb8M02QncB+EEAgKBMoxAxAqc2gALdWWxS6/AMZVC6m4JFNvlsbYT87L7ocQbW/GhuXCphK2AwomLkz1F0g+XjXnFl/pH31CG0okqe3vc3njDg99TGpR3Z1V5G4jRqXVHlKLAQUfz6I8h7noN2cF6G+95DAp/mSZO9UJPfqzoSpOOQyWKwAMFfC4w/Ds6lGpGcijow4h/EPULWacdjOuF3pE+Kud0AZGxKBEWCAgESgkBR6qQpk6QQVFohvpth3KIabkclI8fVt8OA19dEDTroLxP6SJjCGy+4qaF5sqbmMqVjzVYOXPHxY/0oxApWfx7GF7tPC+pvBcxB/5ykKY5vrb9vUF5U1JdzOW/C4z+Q4GEORc7HxhdiNFLC+MP8d2gmbPtyi7t1TJ2dRFpAgGBQHgEHFngxA5zvmtgpbWFpRyYSgiWgSmEJVBQDRE8/UIzmBbJBRYiKW+Td2iB3FCAhXhR+K1iqUbCMAyNN/M3j+z2nROGjHnTTjTiNLBUP4P/M3ofgJpWpGkGKErVYcqhsRow9zQxj05e7N7zJmUXpxwNsdjTCmvn18+5o1yuxU8emqJkgUDpIuBYgWOlhg9b4r/GnHBPbVUx+pfxNw9DeO3UgZbE1g/lb/+lZ6wIgfUf4yTD6Sp4jlf3Zu7rNvp4/dUfINZ0JOL2pa9uteS113kuUtyYMhpT4lXXUeOtKtsTVOwMndASjBCeBg5P8jya615MQQ3HKKbMuO09J1xTUGXHP80qdAKRRen5tzb99onVZukiTiAgEEg+Ao4VOFUZyjsH89EdaCs8bwJewPl9xezf2EL/BMVhuC7JKWwErOZsvBTLhKFaBdMNmZheqAIrmvwVeV5cj+Hl2z/oRSHmiQeCr9HQzkfENg19LN4e6CyegJKd2mT9+Bls/fjWh7I+rH+03srLvanHW0uy+1TaH/VXNv72kWVub4ZuRFDiwxy8rEyh8I0wVNECbWWgzKcjTD8Gi9yFdqmdTllS3to6C79AQCBQPhGISoFTU2Fpr8BlYNBf4C9k09zBNdpQ4plQXjdCeadAwR2ABjtAdFCapy9BP0VAaf+sXLEEDfleQx5alVFXIaZ/MspCZDwcRhA/Q8kuwuqZjaif4urkDd2H33vh+AeV8RRdVVT1HJpbq7xDU0WMQEAgIBCIDYGoFbjsZbtp+gD2ZSqOn5rtCu61hD7rgA0flzipFubTm0KJ01LEGVB6x5D3Iyjw5rhehXj6wk6gA3DC1IIWc/j7kfQSV94WZCJaICAQEAiUeQSiVuDUMijqebBkceZgYMoE18GIVraWO2158KXoKMwhfwMl+y2mindgzvm1khLmgRIXLgIEgNMp4GjpMHWkW8Hj9qXqwsaMLm9FXTo6vRLztwXBnD6ki3tlhFGEBQIJQyAmBa4o72DVgkvQAuuZY6muZkqCNg9BKenmoWNhfabnxXuHxdCfWVbtRD+rc81WPbsYEZb0OmIE8J7jJ1xeMcarYaG8VSiERyBQGgiUoTURpdFcUYZAQCAgEDhzEBAK/My5l6IlAgGBwFmGgFDgZ9kNF80VCAgEBAICAYGAQEAgIBAQCAgEBAICAYGAQCAaBP4f7gEVmIzBYlQAAAAASUVORK5CYII=);background-repeat:no-repeat;background-size:164px;border-radius:3px;display:inline-block;height:21px;width:21px}.fc-icon.icon-chart-bar{background-position:-2px -2px}.fc-icon.icon-chart-stripe{background-position:-25px -2px}.fc-icon.icon-chart-line{background-position:-48px -2px}.fc-icon.icon-chart-area{background-position:-71px -2px}.fc-icon.icon-chart-funnel{background-position:-95px -2px}.fc-icon.icon-chart-gauge{background-position:-118px -2px}.fc-icon.icon-chart-pie{background-position:-141px -2px}.fc-icon.icon-chart-radar{background-position:-2px -25px}.fc-icon.icon-chart-scatter{background-position:-25px -25px}.fc-icon.icon-chart-custom{background-position:-48px -25px}.fd-theme-purple,.fd-theme-purple ._fc-designer,.fd-theme-purple ._fd-config-dialog{--fc-style-color-1:#884cff;--fc-style-bg-color-1:rgba(136,76,255,.05);--el-color-primary:#884cff;--el-color-primary-light-3:#a47fff;--el-color-primary-light-5:#b599ff;--el-color-primary-light-7:#c6b3ff;--el-color-primary-light-8:#d1c2ff;--el-color-primary-light-9:#e1d6ff;--el-color-primary-dark-2:#6e3acc;--fc-style-color-4:#e000ff;--fc-style-bg-color-4:rgba(224,0,255,.05)}.fd-theme-orange,.fd-theme-orange ._fc-designer,.fd-theme-orange ._fd-config-dialog{--fc-style-color-1:#f27024;--fc-style-bg-color-1:rgba(242,112,36,.05);--el-color-primary:#f27024;--el-color-primary-light-3:#ff9a59;--el-color-primary-light-5:#ffb380;--el-color-primary-light-7:#fc9;--el-color-primary-light-8:#ffd6b3;--el-color-primary-light-9:#ffe6cc;--el-color-primary-dark-2:#c25a1d;--fc-style-color-4:#ffb600;--fc-style-bg-color-4:rgba(255,182,0,.05)}.fd-theme-pink,.fd-theme-pink ._fc-designer,.fd-theme-pink ._fd-config-dialog{--fc-style-color-1:#fe679a;--fc-style-bg-color-1:rgba(254,103,154,.05);--el-color-primary:#fe679a;--el-color-primary-light-3:#ff96b3;--el-color-primary-light-5:#ffb3c8;--el-color-primary-light-7:#ffd1dc;--el-color-primary-light-8:#ffdce5;--el-color-primary-light-9:#ffe6ed;--el-color-primary-dark-2:#cb517a;--fc-style-color-4:#bd2bff;--fc-style-bg-color-4:rgba(189,43,255,.05)}.fd-theme-green,.fd-theme-green ._fc-designer,.fd-theme-green ._fd-config-dialog{--fc-style-color-1:#18bf82;--fc-style-bg-color-1:rgba(24,191,130,.05);--el-color-primary:#18bf82;--el-color-primary-light-3:#4fd8a1;--el-color-primary-light-5:#80e6bb;--el-color-primary-light-7:#b3f1d6;--el-color-primary-light-8:#c6f5e0;--el-color-primary-light-9:#d9f9eb;--el-color-primary-dark-2:#149566;--fc-style-color-4:#e2ff00;--fc-style-bg-color-4:rgba(226,255,0,.05)}.fd-theme-green ._fc-designer,.fd-theme-green ._fd-config-dialog{--fc-style-color-2:#f27024;--fc-style-bg-color-2:#ffe6cc;--el-color-success:#f27024;--el-color-success-light-3:#ff9a59;--el-color-success-light-5:#ffb380;--el-color-success-light-7:#fc9;--el-color-success-light-8:#ffd6b3;--el-color-success-light-9:#ffe6cc;--el-color-success-dark-2:#c25a1d}._fc-upload-preview{border-radius:5px;display:inline-block;height:120px;overflow:hidden;width:120px}._fc-upload-preview>.ant-image{height:100%}.form-create.is-preview .ant-upload,.form-create.is-preview .ant-upload-list-item-action{display:none!important}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#fff;color:#000}.hljs-subst,.hljs-title{color:#000;font-weight:400}.hljs-title.function_{color:#7a7a43}.hljs-code,.hljs-comment,.hljs-quote{color:#8c8c8c;font-style:italic}.hljs-meta{color:#9e880d}.hljs-section{color:#871094}.hljs-built_in,.hljs-keyword,.hljs-literal,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-selector-pseudo,.hljs-selector-tag,.hljs-symbol,.hljs-template-tag,.hljs-type,.hljs-variable.language_{color:#0033b3}.hljs-attr,.hljs-property{color:#871094}.hljs-attribute{color:#174ad4}.hljs-number{color:#1750eb}.hljs-regexp{color:#264eff}.hljs-link{color:#006dcc;text-decoration:underline}.hljs-meta .hljs-string,.hljs-string{color:#067d17}.hljs-char.escape_{color:#0037a6}.hljs-doctag{text-decoration:underline}.hljs-template-variable{color:#248f8f}.hljs-addition{background:#bee6be}.hljs-deletion{background:#d6d6d6}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
(function(Et,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("ant-design-vue"),require("@form-create/ant-design-vue"),require("@form-create/vant")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue","@form-create/ant-design-vue","@form-create/vant"],n):(Et=typeof globalThis<"u"?globalThis:Et||self,n(Et.FcDesigner={},Et.Vue,Et.antd,Et.formCreate,Et.formCreateMobile))})(this,function(Et,n,Jl,Uv,Wv){"use strict";const Pu=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},ua=Pu(Uv),At=Pu(Wv),at={type(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"},Undef(e){return e==null},Element(e){return typeof e=="object"&&e!==null&&e.nodeType===1&&!at.Object(e)},trueArray(e){return Array.isArray(e)&&e.length>0},Function(e){const t=this.getType(e);return t==="Function"||t==="AsyncFunction"},getType(e){const t=Object.prototype.toString.call(e);return/^\[object (.*)\]$/.exec(t)[1]},empty(e){return e==null||Array.isArray(e)&&Array.isArray(e)&&!e.length?!0:typeof e=="string"&&!e}};["Date","Object","String","Boolean","Array","Number"].forEach(e=>{at[e]=function(t){return at.type(t,e)}});function In(e,t){return{}.hasOwnProperty.call(e,t)}function ci(e,t,i){e[t]=i}function Zl(e,t={},i){let r=!1;for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)){let s=t[o];if((r=Array.isArray(s))||at.Object(s)){let d=e[o]===void 0;if(r)r=!1,d&&ci(e,o,[]);else if(s._clone&&i!==void 0)if(i)s=s.getRule(),d&&ci(e,o,{});else{ci(e,o,s._clone());continue}else d&&ci(e,o,{});e[o]=Zl(e[o],s,i)}else ci(e,o,s),at.Undef(s)||(at.Undef(s.__json)||(e[o].__json=s.__json),at.Undef(s.__origin)||(e[o].__origin=s.__origin))}return i!==void 0&&Array.isArray(e)?e.filter(o=>!o||!o.__ctrl):e}function et(e){return Zl({},{value:e}).value}function Gv(e,t,i){return`[form-create ${e}]: ${t}`+(i?`
rule: `+JSON.stringify(i.getRule?i.getRule():i):"")}function Kv(e,t){console.error(Gv("err",e,t))}const Mu="[[FORM-CREATE-PREFIX-",Lu="-FORM-CREATE-SUFFIX]]";function ql(e){return new Function("return "+e)()}function es(e,t){if(e&&at.String(e)&&e.length>4){let i=e.trim(),r=!1;try{if(i.indexOf(Lu)>0&&i.indexOf(Mu)===0)i=i.replace(Lu,"").replace(Mu,""),r=!0;else if(i.indexOf("$FN:")===0)i=i.substring(4),r=!0;else if(i.indexOf("$EXEC:")===0)i=i.substring(6),r=!0;else if(i.indexOf("$GLOBAL:")===0){const s=i.substring(8);return i=function(...d){const c=d[0].api.getGlobalEvent(s);if(c)return c.call(this,...d)},i.__json=e,i.__inject=!0,i}else{if(i.indexOf("$FNX:")===0)return i=ql("function($inject){"+i.substring(5)+"}"),i.__json=e,i.__inject=!0,i;(!t&&i.indexOf("function ")===0&&i!=="function "||!t&&i.indexOf("function(")===0&&i!=="function(")&&(r=!0)}if(!r)return e;let o;try{o=ql(i)}catch{o=ql("function "+i)}return o.__json=e,o}catch(o){Kv(`\u89E3\u6790\u5931\u8D25:${i}
err: ${o}`);return}}return e}function ju(e){const t=e.replace(/(-[a-z])/g,function(i){return i.replace("-","").toLocaleUpperCase()});return fa(t)}function fa(e){return e.replace(e[0],e[0].toLowerCase())}const zu={name:"zh-cn",form:{field:"\u5B57\u6BB5 ID",title:"\u5B57\u6BB5\u540D\u79F0",info:"\u63D0\u793A\u4FE1\u606F",ignore:"\u5FFD\u7565\u5B57\u6BB5",native:"\u662F\u5426\u663E\u793A\u6807\u9898",control:"\u8054\u52A8\u6570\u636E",labelShow:"\u662F\u5426\u663E\u793A",labelStyle:"\u6807\u7B7E\u7684\u6837\u5F0F",formItem:"\u914D\u7F6E\u8868\u5355\u9879",formItemSpan:"\u7EC4\u4EF6\u5BBD\u5EA6",row:"\u6574\u884C",globalEvent:"\u5168\u5C40\u4E8B\u4EF6",globalFetch:"\u5168\u5C40\u6570\u636E\u6E90",globalClass:"\u5168\u5C40\u6837\u5F0F",globalConfig:"\u5168\u5C40\u914D\u7F6E",size:"\u8868\u5355\u7684\u5C3A\u5BF8",event:"\u8868\u5355\u4E8B\u4EF6",layout:"\u8868\u5355\u5E03\u5C40",labelAlign:"\u6807\u7B7E\u7684\u4F4D\u7F6E",labelWrap:"\u5141\u8BB8\u6807\u7B7E\u6362\u884C",colon:"\u662F\u5426\u663E\u793A\u6807\u7B7E\u540E\u9762\u7684\u5192\u53F7",labelCol:"\u6807\u7B7E\u7684\u5BBD\u5EA6",hideRequiredMark:"\u9690\u85CF\u5FC5\u586B\u5B57\u6BB5\u7684\u6807\u7B7E\u65C1\u8FB9\u7684\u7EA2\u8272\u661F\u53F7",formItemMarginBottom:"\u8868\u5355\u9879\u7684\u4E0B\u8FB9\u8DDD",scrollToFirstError:"\u63D0\u4EA4\u5931\u8D25\u81EA\u52A8\u6EDA\u52A8\u5230\u7B2C\u4E00\u4E2A\u9519\u8BEF\u5B57\u6BB5",submitBtn:"\u662F\u5426\u663E\u793A\u8868\u5355\u63D0\u4EA4\u6309\u94AE",resetBtn:"\u662F\u5426\u663E\u793A\u8868\u5355\u91CD\u7F6E\u6309\u94AE",appendChild:"\u6DFB\u52A0\u5B50\u7EA7",formMode:"\u8868\u5355\u6A21\u5F0F",formName:"\u8868\u5355\u540D\u79F0",ignoreHiddenFields:"\u63D0\u4EA4\u8868\u5355\u65F6\u5FFD\u7565\u88AB\u9690\u85CF\u7684\u5B57\u6BB5",previewMode:"\u9605\u8BFB\u6A21\u5F0F",componentMode:"\u751F\u6210\u7EC4\u4EF6",sfcMode:"\u751F\u6210SFC",document:"\u5E2E\u52A9\u6587\u6863",controlDocument:"\u9700\u8981\u66F4\u8BE6\u7EC6\u7684\u914D\u7F6E\u65B9\u6CD5\uFF1F\u8BF7\u67E5\u770B{doc}",onSubmit:"\u8868\u5355\u63D0\u4EA4\u65F6\u89E6\u53D1",onReset:"\u8868\u5355\u91CD\u7F6E\u540E\u89E6\u53D1",onCreated:"\u8868\u5355\u7EC4\u4EF6\u521D\u59CB\u5316\u5B8C\u6BD5\u540E\u89E6\u53D1",onMounted:"\u8868\u5355\u7EC4\u4EF6\u6E32\u67D3\u5B8C\u6BD5\u540E\u89E6\u53D1",onReload:"\u8868\u5355\u6E32\u67D3\u89C4\u5219\u91CD\u8F7D\u540E\u89E6\u53D1",onChange:"\u8868\u5355\u7EC4\u4EF6\u7684\u503C\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1",beforeFetch:"\u8FDC\u7A0B\u6570\u636E\u8BF7\u6C42\u53D1\u9001\u524D\u89E6\u53D1"},ai:{name:"\u667A\u80FD\u8868\u5355\u52A9\u7406",info:"\u60A8\u597D\uFF0C\u6211\u662F\u60A8\u7684\u667A\u80FD\u8868\u5355\u52A9\u624B\uFF01\u6211\u53EF\u4EE5\u5E2E\u52A9\u60A8\u5FEB\u901F\u751F\u6210\u548C\u4FEE\u6539\u8868\u5355\uFF0C\u5E2E\u52A9\u60A8\u8F7B\u677E\u9AD8\u6548\u5730\u5B8C\u6210\u8868\u5355\u8BBE\u8BA1\u3002",try:"\u4F60\u53EF\u4EE5\u8BD5\u7740\u95EE\u6211",change:"\u6362\u4E00\u6362",loading:"\u6B63\u5728\u6839\u636E\u60A8\u7684\u9700\u6C42\u5236\u4F5C\u8868\u5355\uFF0C\u8BF7\u7A0D\u5019...",fail:"\u5236\u4F5C\u8868\u5355\u65F6\u9047\u5230\u95EE\u9898\uFF0C\u8BF7\u5C1D\u8BD5\u8C03\u6574\u5185\u5BB9\u3002",success:"\u5DF2\u5904\u7406\u5B8C\u6BD5\uFF01",placeholder:"\u8BF7\u63CF\u8FF0\u60A8\u7684\u9700\u6C42"},warning:{name:"\u7EC4\u4EF6\u7684\u552F\u4E00\u6807\u8BC6\uFF0C\u7528\u4E8E\u83B7\u53D6\u548C\u4FEE\u6539\u8BE5\u7EC4\u4EF6\u7684\u914D\u7F6E\u89C4\u5219\u3002\u901A\u8FC7\u8BE5\u6807\u8BC6\u53EF\u4EE5\u7CBE\u786E\u5B9A\u4F4D\u7EC4\u4EF6\uFF0C\u5B9E\u73B0\u5BF9\u7EC4\u4EF6\u5C5E\u6027\u548C\u884C\u4E3A\u7684\u63A7\u5236\u3002",field:"\u7EC4\u4EF6\u5BF9\u5E94\u7684\u5B57\u6BB5\u540D\u7528\u4E8E\u4E0E\u7EC4\u4EF6\u7684\u6570\u636E\u8FDB\u884C\u7ED1\u5B9A\u3002\u5B57\u6BB5\u540D\u9700\u4EE5\u5B57\u6BCD\u5F00\u5934\uFF0C\u4EE5\u786E\u4FDD\u80FD\u591F\u6B63\u786E\u8BC6\u522B\u3002",formList:"\u7528\u4E8E\u7BA1\u7406\u548C\u5207\u6362\u8868\u5355\u6A21\u677F\uFF0C\u65B9\u4FBF\u5728\u4E0D\u540C\u4E1A\u52A1\u573A\u666F\u4E2D\u5FEB\u901F\u5207\u6362\u548C\u914D\u7F6E\u8868\u5355\u3002",fetch:"\u8FDC\u7A0B\u6570\u636E\u901A\u8FC7\u8FDC\u7A0B\u8BF7\u6C42\u52A0\u8F7D\u7EC4\u4EF6\u7684\u914D\u7F6E\u9879\u3002\u914D\u7F6E\u8BF7\u6C42\u53C2\u6570\u540E\uFF0C\u7EC4\u4EF6\u4F1A\u81EA\u52A8\u53D1\u8D77\u8BF7\u6C42\uFF0C\u83B7\u53D6\u8FDC\u7A0B\u6570\u636E\u5E76\u6839\u636E\u8FD4\u56DE\u7684\u7ED3\u679C\u66F4\u65B0\u7EC4\u4EF6\u3002",fetchQuery:"\u5B9A\u4E49\u8BF7\u6C42\u7684 GET \u53C2\u6570\uFF0C\u901A\u8FC7 URL \u4F20\u9012\u6570\u636E\u3002",fetchData:"\u5B9A\u4E49\u8BF7\u6C42\u7684 POST \u53C2\u6570\uFF0C\u901A\u8FC7\u8BF7\u6C42\u4F53\u4F20\u9012\u6570\u636E\u3002",fetchDataType:"\u9009\u62E9\u8BF7\u6C42\u4F53\u7684\u6570\u636E\u7C7B\u578B\uFF0C\u786E\u4FDD\u6570\u636E\u683C\u5F0F\u6B63\u786E\u3002",fetchParse:"\u8BF7\u6C42\u8FD4\u56DE\u540E\uFF0C\u53EF\u4EE5\u901A\u8FC7\u5904\u7406\u51FD\u6570\u5BF9\u8FD4\u56DE\u7684\u7ED3\u679C\u8FDB\u884C\u5904\u7406\uFF0C\u5C06\u7ED3\u679C\u8F6C\u6362\u4E3A\u7EC4\u4EF6\u6240\u9700\u7684\u6570\u636E\u548C\u7ED3\u6784\u3002",language:"\u7BA1\u7406\u9875\u9762\u7684\u591A\u8BED\u8A00\u6570\u636E\uFF0C\u5728\u7EC4\u4EF6\u4E2D\u914D\u7F6E\u4E0D\u540C\u8BED\u8A00\u7684\u6587\u672C\uFF0C\u652F\u6301\u4E00\u952E\u5207\u6362\u8BED\u8A00\u4F53\u7CFB\uFF0C\u4FBF\u4E8E\u5728\u591A\u8BED\u8A00\u73AF\u5883\u4E0B\u4F7F\u7528\u548C\u5C55\u793A\u5185\u5BB9\u3002",variable:"\u4ECE\u53D8\u91CF\u8BFB\u53D6\u914D\u7F6E\u9879\u7684\u503C\uFF0C\u652F\u6301\u901A\u8FC7\u53D8\u91CF\uFF08\u5982 Cookie\u3001localStorage\u3001\u5168\u5C40\u53D8\u91CF\u548C\u5916\u90E8\u6570\u636E\u6E90\u7B49\uFF09\u8BBE\u7F6E\u914D\u7F6E\u9879\u3002\u5F53\u5173\u8054\u7684\u53D8\u91CF\u53D8\u5316\u65F6\uFF0C\u914D\u7F6E\u9879\u4F1A\u540C\u6B65\u66F4\u65B0\u3002",variableInfo:"\u8BF7\u5728\u53D8\u91CF\u5217\u8868\u4E2D\u9009\u62E9\u53D8\u91CF\u3002\u5982\u679C\u53D8\u91CF\u7684\u503C\u662F\u5BF9\u8C61\uFF0C\u60A8\u53EF\u4EE5\u901A\u8FC7 {{variableName.attributeName}} \u683C\u5F0F\u8BBF\u95EE\u5BF9\u8C61\u4E2D\u7684\u5C5E\u6027\u503C\u3002",pageManage:"\u8BBE\u8BA1\u8868\u5355\u4E2D\u7684\u5B50\u5F39\u7A97\uFF0C\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u5F39\u7A97\u663E\u793A\uFF0C\u4FBF\u4E8E\u5728\u8868\u5355\u4E2D\u52A8\u6001\u5C55\u793A\u4FE1\u606F\u6216\u8FDB\u884C\u4EA4\u4E92\u64CD\u4F5C\u3002",globalConfig:"\u7BA1\u7406\u5168\u5C40\u4E8B\u4EF6\u3001\u6837\u5F0F\u3001\u6570\u636E\u548C\u53D8\u91CF\uFF0C\u7528\u4E8E\u5728\u4E0D\u540C\u7EC4\u4EF6\u95F4\u8FDB\u884C\u6570\u636E\u5171\u4EAB\u548C\u4E8B\u4EF6\u5904\u7406\u3002",globalClass:"\u63D0\u4F9B\u5B9A\u4E49\u5168\u5C40\u6837\u5F0F\u548C Class \u7684\u529F\u80FD\uFF0C\u7528\u6237\u53EF\u4EE5\u5728\u7EC4\u4EF6\u914D\u7F6E\u4E2D\u9009\u62E9\u5E76\u5E94\u7528\u8FD9\u4E9B\u9884\u5B9A\u4E49\u7684 Class\uFF0C\u4EE5\u5B9E\u73B0\u7EDF\u4E00\u7684\u6837\u5F0F\u7BA1\u7406\u3002",globalEvent:"\u5168\u5C40\u4E8B\u4EF6\u7528\u4E8E\u5B9A\u4E49\u7EC4\u4EF6\u4E8B\u4EF6\uFF0C\u4F9B\u7EC4\u4EF6\u8FDB\u884C\u914D\u7F6E\u548C\u9009\u62E9\uFF0C\u65B9\u4FBF\u5728\u4E0D\u540C\u7EC4\u4EF6\u4E2D\u7EDF\u4E00\u4F7F\u7528\u9884\u8BBE\u4E8B\u4EF6\uFF0C\u7B80\u5316\u4E8B\u4EF6\u7684\u7BA1\u7406\u548C\u5206\u53D1\u3002",globalFetch:"\u5168\u5C40\u6570\u636E\u6E90\u7528\u4E8E\u5B9A\u4E49\u5E38\u7528\u7684\u6570\u636E\u6E90\uFF0C\u652F\u6301\u9759\u6001\u6570\u636E\u548C\u8FDC\u7A0B\u6570\u636E\u3002\u8BE5\u6570\u636E\u6E90\u53EF\u5728\u5404\u79CD\u7EC4\u4EF6\u914D\u7F6E\u4E2D\u4F7F\u7528\uFF0C\u65B9\u4FBF\u7EDF\u4E00\u7BA1\u7406\u548C\u8C03\u7528\u6570\u636E\u3002",globalVariable:"\u5168\u5C40\u53D8\u91CF\u4E2D\u53EF\u4EE5\u5B9A\u4E49\u8BA1\u7B97\u5C5E\u6027\uFF0C\u901A\u8FC7\u8868\u5355\u6570\u636E\u548C\u5916\u90E8\u6570\u636E\u8FD4\u56DE\u7EC4\u4EF6\u6240\u9700\u7684\u6570\u636E\u3002\u5173\u8054\u6570\u636E\u53D8\u5316\u65F6\uFF0C\u8BA1\u7B97\u5C5E\u6027\u4F1A\u81EA\u52A8\u66F4\u65B0\uFF0C\u53EF\u4EE5\u5728\u7ED1\u5B9A\u53D8\u91CF\u6A21\u5757\u548C\u4E8B\u4EF6\u4E2D\u4F7F\u7528\u3002",ignore:"\u5F00\u542F\u540E\uFF0C\u8868\u5355\u63D0\u4EA4\u65F6\u4F1A\u81EA\u52A8\u6392\u9664\u8BE5\u7EC4\u4EF6\u7684\u5B57\u6BB5\uFF0C\u4E0D\u4F1A\u5C06\u5176\u5305\u542B\u5728\u63D0\u4EA4\u7684\u6570\u636E\u4E2D\u3002",ignoreHiddenFields:"\u5F00\u542F\u540E\uFF0C\u8868\u5355\u63D0\u4EA4\u65F6\u4F1A\u81EA\u52A8\u8FC7\u6EE4\u6389\u88AB\u9690\u85CF\u7684\u7EC4\u4EF6\u5B57\u6BB5\uFF0C\u786E\u4FDD\u4EC5\u63D0\u4EA4\u53EF\u89C1\u7684\u5B57\u6BB5\u6570\u636E\u3002",behaviorIgnoreError:"\u5982\u679C\u52A8\u4F5C\u6267\u884C\u8FC7\u7A0B\u4E2D\u53D1\u751F\u9519\u8BEF\uFF0C\u662F\u5426\u7EE7\u7EED\u6267\u884C\u540E\u7EED\u7684\u52A8\u4F5C\u3002",behaviorExpression:"\u5F53\u6761\u4EF6\u8FBE\u6210\u65F6\uFF0C\u52A8\u4F5C\u624D\u4F1A\u88AB\u6267\u884C\u3002",behaviorStopPropagation:"\u5F53\u6761\u4EF6\u8FBE\u6210\u65F6\uFF0C\u4F1A\u963B\u6B62\u540E\u7EED\u52A8\u4F5C\u7684\u6267\u884C\u3002",computedCondition:"\u901A\u8FC7\u5B9A\u4E49\u6761\u4EF6\uFF0C\u7EC4\u4EF6\u7684\u72B6\u6001\u548C\u6570\u636E\u503C\u4F1A\u6839\u636E\u6761\u4EF6\u662F\u5426\u6210\u7ACB\u81EA\u52A8\u8C03\u6574\u3002",computedFormula:"\u901A\u8FC7\u516C\u5F0F\u548C\u8868\u5355\u6570\u636E\uFF0C\u52A8\u6001\u8BA1\u7B97\u7EC4\u4EF6\u7684\u72B6\u6001\u548C\u6570\u636E\u503C\u3002"},computed:{value:{title:"\u6570\u636E\u8054\u52A8",btn:"\u8BBE\u7F6E\u6570\u636E\u8054\u52A8",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u503C"},hidden:{title:"\u9690\u85CF\u6761\u4EF6",btn:"\u8BBE\u7F6E\u9690\u85CF\u6761\u4EF6",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u9690\u85CF\u6761\u4EF6"},required:{title:"\u5FC5\u586B\u6761\u4EF6",btn:"\u8BBE\u7F6E\u5FC5\u586B\u6761\u4EF6",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u5FC5\u586B\u6761\u4EF6"},disabled:{title:"\u7981\u7528\u6761\u4EF6",btn:"\u8BBE\u7F6E\u7981\u7528\u6761\u4EF6",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u7981\u7528\u6761\u4EF6"},formulas:{"==":"\u7B49\u4E8E","!=":"\u4E0D\u7B49\u4E8E",on:"\u5305\u542B",notOn:"\u4E0D\u5305\u542B",empty:"\u4E3A\u7A7A",notEmpty:"\u4E0D\u4E3A\u7A7A",pattern:"\u6B63\u5219\u8868\u8FBE\u5F0F",">":"\u5927\u4E8E",">=":"\u5927\u4E8E\u7B49\u4E8E","<":"\u5C0F\u4E8E","<=":"\u5C0F\u4E8E\u7B49\u4E8E"},variable:{attr:"\u5C5E\u6027\u5217\u8868",bind:"\u7ED1\u5B9A\u53D8\u91CF",list:"\u53D8\u91CF\u5217\u8868",btn:"\u8BBE\u7F6E\u53D8\u91CF",title:"\u5168\u5C40\u53D8\u91CF",create:"\u521B\u5EFA\u53D8\u91CF",placeholder:"\u8BF7\u8F93\u5165\u53D8\u91CF\u7684\u63CF\u8FF0\u4FE1\u606F"},linkage:{trigger:"\u89E6\u53D1\u4EE5\u4E0B\u8054\u52A8",info:["\u5F53\u524D\u7EC4\u4EF6\u8054\u52A8\u663E\u793A","\u7684\u503C"]},name:"\u8BA1\u7B97\u516C\u5F0F",setting:"\u8BBE\u7F6E\u6761\u4EF6",invert:"\u6761\u4EF6\u6210\u7ACB\u540E\u7EC4\u4EF6\u72B6\u6001",condition:"\u903B\u8F91\u6761\u4EF6",addCondition:"\u6DFB\u52A0\u6761\u4EF6",addGroup:"\u6DFB\u52A0\u6761\u4EF6\u7EC4",form:"\u5F53\u524D\u8868\u5355",subform:"\u5B50\u8868\u5355",formula:"\u51FD\u6570\u516C\u5F0F",formulaInfo:"\u51FD\u6570\u8BF4\u660E",formulaExample:"\u51FD\u6570\u793A\u4F8B",fieldUsed:"\u3010{label}\u3011\u5728\u8BA1\u7B97\u516C\u5F0F\u4E2D\u88AB\u4F7F\u7528\uFF0C\u8BF7\u5148\u4FEE\u6539\u5BF9\u5E94\u516C\u5F0F",fieldExist:"\u3010{label}\u3011\u5B57\u6BB5\u5DF2\u5B58\u5728",fieldEmpty:"\u5B57\u6BB5\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",fieldChar:"\u5B57\u6BB5\u540D\u79F0\u5FC5\u987B\u4EE5\u5B57\u6BCD\u5F00\u5934"},validate:{type:"\u5B57\u6BB5\u7C7B\u578B",typePlaceholder:"\u8BF7\u9009\u62E9",trigger:"\u89E6\u53D1\u65B9\u5F0F",mode:"\u9A8C\u8BC1\u65B9\u5F0F",modes:{required:"\u5FC5\u586B",notRequired:"\u975E\u5FC5\u586B",pattern:"\u6B63\u5219\u8868\u8FBE\u5F0F",validator:"\u81EA\u5B9A\u4E49\u9A8C\u8BC1",min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C",len:"\u957F\u5EA6"},types:{string:"\u6587\u672C",boolean:"\u5E03\u5C14",array:"\u591A\u9009",number:"\u6570\u5B57",integer:"\u6574\u6570",float:"\u5C0F\u6570",object:"\u5408\u96C6",date:"\u65E5\u671F",url:"URL\u94FE\u63A5",email:"\u90AE\u7BB1\u5730\u5740"},message:"\u9519\u8BEF\u4FE1\u606F",auto:"\u81EA\u52A8\u83B7\u53D6",autoRequired:"\u8BF7\u8F93\u5165{title}",autoMode:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684{title}",requiredPlaceholder:"\u8BF7\u8F93\u5165\u63D0\u793A\u8BED",required:"\u662F\u5426\u5FC5\u586B",rule:"\u9A8C\u8BC1\u89C4\u5219"},tableOptions:{handle:"\u64CD\u4F5C",add:"\u6DFB\u52A0",empty1:"\u70B9\u51FB\u53F3\u4E0B\u89D2",empty2:"\u6309\u94AE\u6DFB\u52A0\u4E00\u5217",rmCol:"\u5220\u9664\u5F53\u524D\u5217",rmRow:"\u5220\u9664\u5F53\u524D\u884C",splitRow:"\u62C6\u5206\u6210\u884C",splitCol:"\u62C6\u5206\u6210\u5217",mergeBottom:"\u5411\u4E0B\u5408\u5E76",mergeRight:"\u5411\u53F3\u5408\u5E76",addTop:"\u6DFB\u52A0\u4E0A\u5217",addBottom:"\u6DFB\u52A0\u4E0B\u5217",addLeft:"\u6DFB\u52A0\u5DE6\u5217",addRight:"\u6DFB\u52A0\u53F3\u5217",keyValue:"\u952E\u503C\u5BF9"},struct:{title:"\u7F16\u8F91\u6570\u636E",only:"\u3010{label}\u3011\u53EA\u5141\u8BB8\u6DFB\u52A0\u4E00\u4E2A",errorMsg:"\u8F93\u5165\u7684\u5185\u5BB9\u8BED\u6CD5\u9519\u8BEF",configured:"\u5DF2\u914D\u7F6E",configuredData:"\u5DF2\u914D\u7F6E {num} \u4E2A\u6570\u636E\u6E90",configuredEvent:"\u5DF2\u914D\u7F6E {num} \u4E2A\u4E8B\u4EF6"},class:{title:"\u8BBE\u7F6E\u6837\u5F0F",create:"\u521B\u5EFA\u6837\u5F0F",placeholder:"\u8BF7\u8F93\u5165\u6837\u5F0F\u7684\u63CF\u8FF0\u4FE1\u606F",saveMsg:"\u8BF7\u5148\u4FDD\u5B58\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u6837\u5F0F",configured:"\u5DF2\u914D\u7F6E {num} \u4E2A\u6837\u5F0F"},event:{title:"\u8BBE\u7F6E\u4E8B\u4EF6",create:"\u521B\u5EFA\u4E8B\u4EF6",list:"\u4E8B\u4EF6\u5217\u8868",placeholder:"\u8BF7\u8F93\u5165\u4E8B\u4EF6\u7684\u540D\u79F0",saveMsg:"\u8BF7\u5148\u4FDD\u5B58\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u4E8B\u4EF6",type:"\u7C7B\u578B",info:"\u8BF4\u660E",action:"\u7F16\u8F91\u884C\u4E3A",inject:{api:"\u5F53\u524D\u8868\u5355\u7684api",rule:"\u5F53\u524D\u8868\u5355\u7684\u751F\u6210\u89C4\u5219",self:"\u7EC4\u4EF6\u7684\u751F\u6210\u89C4\u5219",option:"\u8868\u5355\u7684\u914D\u7F6E",args:"\u4E8B\u4EF6\u7684\u539F\u59CB\u53C2\u6570"}},eventInfo:{blur:"\u5931\u53BB\u7126\u70B9\u65F6\u89E6\u53D1",focus:"\u83B7\u5F97\u7126\u70B9\u65F6\u89E6\u53D1",change:"\u5F53\u7ED1\u5B9A\u503C\u53D8\u5316\u65F6\u89E6\u53D1",input:"\u5728\u503C\u6539\u53D8\u65F6\u89E6\u53D1",clear:"\u5728\u70B9\u51FB\u6E05\u7A7A\u6309\u94AE\u65F6\u89E6\u53D1",close:"\u5173\u95ED\u7EC4\u4EF6\u65F6\u89E6\u53D1",click:"\u70B9\u51FB\u7EC4\u4EF6\u65F6\u89E6\u53D1",add:"\u589E\u52A0\u65F6\u89E6\u53D1",delete:"\u5220\u9664\u65F6\u89E6\u53D1",remove:"\u5220\u9664\u65F6\u89E6\u53D1",ok:"\u70B9\u51FB\u786E\u5B9A\u6309\u94AE\u65F6\u89E6\u53D1",pressEnter:"\u6309\u4E0B\u56DE\u8F66\u952E\u65F6\u89E6\u53D1",submit:"\u8868\u5355\u63D0\u4EA4\u65F6\u89E6\u53D1",confirm:"\u70B9\u51FB\u786E\u8BA4\u6309\u94AE\u65F6\u89E6\u53D1",validateFail:"\u8868\u5355\u9A8C\u8BC1\u5931\u8D25\u65F6\u89E6\u53D1",beforeLoad:"\u521D\u59CB\u5316\u4E4B\u524D\u89E6\u53D1",loaded:"\u521D\u59CB\u5316\u5B8C\u6210\u4E4B\u540E\u89E6\u53D1",hook_load:"\u7EC4\u4EF6\u89C4\u5219\u52A0\u8F7D\u540E\u89E6\u53D1",hook_mounted:"\u7EC4\u4EF6\u6302\u8F7D\u540E\u89E6\u53D1",hook_deleted:"\u7EC4\u4EF6\u89C4\u5219\u88AB\u79FB\u9664\u540E\u89E6\u53D1",hook_watch:"\u7EC4\u4EF6\u89C4\u5219\u53D1\u751F\u53D8\u5316\u540E\u89E6\u53D1",hook_value:"\u7EC4\u4EF6\u7684\u503C\u53D1\u751F\u53D8\u5316\u540E\u89E6\u53D1",hook_hidden:"\u7EC4\u4EF6\u663E\u793A\u72B6\u6001\u53D1\u751F\u53D8\u5316\u540E\u89E6\u53D1"},fetch:{info:"\u5B9A\u4E49\u8BF7\u6C42\u65F6\uFF0C\u652F\u6301\u901A\u8FC7\u53CC\u5927\u62EC\u53F7\u8BED\u6CD5\uFF08\u5982 {{token}}\uFF09\u4F7F\u7528\u53D8\u91CF\u3002\u5728\u63A5\u53E3\u8BF7\u6C42\u65F6\u4F1A\u81EA\u52A8\u8BFB\u53D6\u8FD9\u4E9B\u53D8\u91CF\u3002\u5982\u679C\u53D8\u91CF\u7684\u503C\u662F\u5BF9\u8C61\uFF0C\u53EF\u4EE5\u901A\u8FC7 {{variableName.attributeName}} \u8BBF\u95EE\u5BF9\u8C61\u7684\u5C5E\u6027\u503C\u3002",title:"\u8BBE\u7F6E\u6570\u636E\u6E90",create:"\u521B\u5EFA\u6570\u636E\u6E90",config:"\u8BF7\u6C42\u914D\u7F6E",action:"\u8BF7\u6C42\u94FE\u63A5",actionRequired:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u94FE\u63A5",placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u6E90\u7684\u63CF\u8FF0\u4FE1\u606F",method:"\u8BF7\u6C42\u65B9\u5F0F",data:"\u9644\u5E26\u6570\u636E",dataType:"\u6570\u636E\u7C7B\u578B",headers:"\u8BF7\u6C42\u5934\u90E8",query:"\u8BF7\u6C42\u53C2\u6570",parse:"\u6570\u636E\u5904\u7406",response:"\u63A5\u53E3\u8FD4\u56DE\u7684\u6570\u636E",onError:"\u9519\u8BEF\u5904\u7406",remote:"\u8FDC\u7A0B\u6570\u636E",static:"\u9759\u6001\u6570\u636E",optionsType:{fetch:"\u8FDC\u7A0B\u6570\u636E",global:"\u5168\u5C40\u6570\u636E\u6E90",struct:"\u9759\u6001\u6570\u636E"}},style:{width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6",minWidth:"\u6700\u5C0F\u5BBD",minHeight:"\u6700\u5C0F\u9AD8",maxWidth:"\u6700\u5927\u5BBD",maxHeight:"\u6700\u5927\u9AD8",color:"\u989C\u8272",backgroundColor:"\u80CC\u666F\u8272",margin:"\u5916\u8FB9\u8DDD",padding:"\u5185\u8FB9\u8DDD",borderRadius:"\u5706\u89D2",border:"\u8FB9\u6846",solid:"\u5B9E\u7EBF",dashed:"\u865A\u7EBF",dotted:"\u70B9\u72B6\u865A\u7EBF",double:"\u53CC\u5B9E\u7EBF",opacity:"\u900F\u660E\u5EA6",scale:"\u7F29\u653E",overflow:{name:"\u6EA2\u51FA",visible:"\u53EF\u89C1",hidden:"\u9690\u85CF",scroll:"\u6EDA\u52A8",auto:"\u6EA2\u51FA\u540E\u81EA\u52A8\u6EDA\u52A8"},shadow:{name:"\u9634\u5F71",x:"x\u8F74\u504F\u79FB\u91CF",y:"y\u8F74\u504F\u79FB\u91CF",vague:"\u6A21\u7CCA\u534A\u5F84",extend:"\u6269\u6563\u534A\u5F84",inset:"\u5411\u5185",external:"\u5411\u5916",mode:"\u6A21\u5F0F",classic:"\u7ECF\u5178",flat:"\u6241\u5E73",solid:"\u7ACB\u4F53"},display:{name:"\u5E03\u5C40",block:"\u533A\u5757","inline-block":"\u884C\u5185\u533A\u5757",inline:"\u884C\u5185\u6587\u672C",flex:"\u5F39\u6027\u76D2\u5B50"},flexDirection:{name:"\u4E3B\u8F74\u7684\u65B9\u5411",row:"\u4E3B\u8F74\u4E3A\u6C34\u5E73\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u5DE6\u7AEF","row-reverse":"\u4E3B\u8F74\u4E3A\u6C34\u5E73\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u53F3\u7AEF",column:"\u4E3B\u8F74\u4E3A\u5782\u76F4\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u4E0A\u6CBF","column-reverse":"\u4E3B\u8F74\u4E3A\u5782\u76F4\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u4E0B\u6CBF"},flexWrap:{name:"\u662F\u5426\u6362\u884C",nowrap:"\u4E0D\u6362\u884C",wrap:"\u6362\u884C"},justifyContent:{name:"\u4E3B\u8F74\u4E0A\u7684\u5BF9\u9F50\u65B9\u5F0F","flex-start":"\u5DE6\u5BF9\u9F50","flex-end":"\u53F3\u5BF9\u9F50",center:"\u5C45\u4E2D","space-between":"\u4E24\u7AEF\u5BF9\u9F50","space-around":"\u5B50\u5143\u7D20\u4E24\u4FA7\u7684\u95F4\u9694\u76F8\u7B49","space-evenly":"\u5B50\u5143\u7D20\u5E73\u5747\u5206\u5E03\u5728\u4E3B\u8F74\u4E0A"},alignItems:{name:"\u5B50\u5143\u7D20\u4EA4\u53C9\u8F74\u4E0A\u7684\u5BF9\u9F50\u65B9\u5F0F","flex-start":"\u4EA4\u53C9\u8F74\u7684\u8D77\u70B9\u5BF9\u9F50","flex-end":"\u4EA4\u53C9\u8F74\u7684\u7EC8\u70B9\u5BF9\u9F50",center:"\u4EA4\u53C9\u8F74\u7684\u4E2D\u70B9\u5BF9\u9F50",baseline:"\u6CBF\u7B2C\u4E00\u884C\u6587\u5B57\u7684\u57FA\u7EBF\u5BF9\u9F50",stretch:"\u6EE1\u6574\u4E2A\u5BB9\u5668\u7684\u9AD8\u5EA6"},alignContent:{name:"\u591A\u884C\u5B50\u5143\u7D20\u5728\u4EA4\u53C9\u8F74\u4E0A\u7684\u5BF9\u9F50\u65B9\u5F0F","flex-start":"\u4E0E\u4EA4\u53C9\u8F74\u7684\u8D77\u70B9\u5BF9\u9F50","flex-end":"\u4E0E\u4EA4\u53C9\u8F74\u7684\u7EC8\u70B9\u5BF9\u9F50",center:"\u4E0E\u4EA4\u53C9\u8F74\u7684\u4E2D\u70B9\u5BF9\u9F50","space-between":"\u4E0E\u4EA4\u53C9\u8F74\u4E24\u7AEF\u5BF9\u9F50","space-around":"\u591A\u884C\u5B50\u5143\u7D20\u5E73\u5747\u5206\u5E03\u5728\u4EA4\u53C9\u8F74",stretch:"\u8F74\u7EBF\u5360\u6EE1\u6574\u4E2A\u4EA4\u53C9\u8F74"},font:{name:"\u5B57\u4F53",size:"\u5927\u5C0F",align:"\u5BF9\u9F50\u65B9\u5F0F",height:"\u884C\u9AD8",spacing:"\u5B57\u95F4\u8DDD",preview:"\u6837\u5F0F\u9884\u89C8"},decoration:{name:"\u4FEE\u9970",underline:"\u4E0B\u5212\u7EBF","line-through":"\u5220\u9664\u7EBF",overline:"\u4E0A\u5212\u7EBF"},weight:{name:"\u7C97\u7EC6",300:"\u7EC6\u4F53",400:"\u5E38\u89C4\u4F53",500:"\u4E2D\u9ED1\u4F53",700:"\u4E2D\u7C97\u4F53"}},designer:{component:"\u7EC4\u4EF6\u914D\u7F6E",id:"\u552F\u4E00\u503C",name:"\u7F16\u53F7",type:"\u7EC4\u4EF6\u7C7B\u578B",form:"\u8868\u5355\u914D\u7F6E",json:"\u6E32\u67D3\u89C4\u5219",customProps:"\u81EA\u5B9A\u4E49\u5C5E\u6027\u914D\u7F6E",style:"\u6837\u5F0F\u914D\u7F6E",rule:"\u57FA\u7840\u914D\u7F6E",advanced:"\u9AD8\u7EA7\u914D\u7F6E",props:"\u5C5E\u6027\u914D\u7F6E",slots:"\u63D2\u69FD\u914D\u7F6E",validate:"\u9A8C\u8BC1\u914D\u7F6E",event:"\u4E8B\u4EF6\u914D\u7F6E",clearWarn:"\u6E05\u7A7A\u540E\u5C06\u4E0D\u80FD\u6062\u590D\uFF0C\u786E\u5B9A\u8981\u6E05\u7A7A\u5417\uFF1F",childEmpty:"\u70B9\u51FB\u53F3\u4E0B\u89D2 \\e789 \u6309\u94AE\u6DFB\u52A0\u4E00\u5217",dragEmpty:"\u62D6\u62FD\u5DE6\u4FA7\u5217\u8868\u4E2D\u7684\u7EC4\u4EF6\u5230\u6B64\u5904",unload:"\u786E\u5B9A\u79BB\u5F00\u5F53\u524D\u9875\u9762\u5417?",sublist:"\u5B50\u8282\u70B9\u5217\u8868",formList:"\u8868\u5355\u5217\u8868",comList:"\u7EC4\u4EF6\u5217\u8868",addPage:"\u6DFB\u52A0\u6A21\u5757",pageManage:"\u6A21\u5757\u7BA1\u7406",main:"\u4E3B\u4F53",layout:"\u5FEB\u901F\u5E03\u5C40",col1:"\u4E00\u5217",col2:"\u4E24\u5217",col3:"\u4E09\u5217",col4:"\u56DB\u5217"},menu:{template:"\u6A21\u677F",main:"\u57FA\u7840\u7EC4\u4EF6",aide:"\u8F85\u52A9\u7EC4\u4EF6",layout:"\u5E03\u5C40\u7EC4\u4EF6",component:"\u7EC4\u4EF6",subform:"\u5B50\u8868\u5355\u7EC4\u4EF6",container:"\u5BB9\u5668\u7EC4\u4EF6",chart:"\u56FE\u8868\u7EC4\u4EF6",tree:"\u5927\u7EB2"},formula:{math:"\u6570\u5B57\u5904\u7406",string:"\u6587\u672C\u5904\u7406",date:"\u65F6\u95F4\u5904\u7406",collection:"\u5408\u96C6\u5904\u7406",condition:"\u903B\u8F91\u5904\u7406",ADD:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u52A0\u7684\u503C",SUB:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u51CF\u7684\u503C",MUL:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u4E58\u7684\u503C",DIV:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u9664\u7684\u503C",SUM:"\u83B7\u53D6\u5408\u96C6\u4E2D\u6570\u503C\u7684\u603B\u548C",MAX:"\u83B7\u53D6\u53C2\u6570\u5217\u8868\u4E2D\u7684\u6700\u5927\u503C",MIN:"\u83B7\u53D6\u53C2\u6570\u5217\u8868\u4E2D\u7684\u6700\u5C0F\u503C",ABS:"\u83B7\u53D6\u6570\u5B57\u7684\u7EDD\u5BF9\u503C",AVG:"\u83B7\u53D6\u53C2\u6570\u5217\u8868\u7684\u5E73\u5747\u503C",POWER:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u7684\u4E58\u5E42",RAND:"\u83B7\u53D6\u4E00\u4E2A\u5927\u4E8E\u7B49\u4E8E0\u4E14\u5C0F\u4E8E1\u7684\u968F\u673A\u6570",PI:"\u83B7\u53D6\u5706\u5468\u7387",ROUND:"\u5C06\u4E00\u4E2A\u5C0F\u6570\u56DB\u820D\u4E94\u5165\u5230\u6307\u5B9A\u7684\u4F4D\u6570",SQRT:"\u83B7\u53D6\u4E00\u4E2A\u6570\u5B57\u7684\u6B63\u5E73\u65B9\u6839",NOW:"\u83B7\u53D6\u5F53\u524D\u7684\u65F6\u95F4",TODAY:"\u83B7\u53D6\u4ECA\u5929\u7684\u65E5\u671F",YEAR:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5E74\u4EFD",MONTH:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u6708\u4EFD",DAY:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5929\u6570",HOUR:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5C0F\u65F6\u6570",MINUTE:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5206\u949F\u6570",SECOND:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u79D2\u6570",DIFFDAYS:"\u83B7\u53D6\u4E24\u4E2A\u65E5\u671F\u4E4B\u95F4\u7684\u5929\u6570",DIFFHOURS:"\u83B7\u53D6\u4E24\u4E2A\u65F6\u95F4\u4E4B\u95F4\u7684\u5C0F\u65F6\u6570,\u4FDD\u7559\u4E24\u4F4D\u5C0F\u6570",DIFFMINUTES:"\u83B7\u53D6\u4E24\u4E2A\u65F6\u95F4\u4E4B\u95F4\u7684\u5206\u949F\u6570",TIMESTAMP:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u65F6\u95F4\u6233",STARTSWITH:"\u68C0\u67E5\u5B57\u7B26\u4E32\u662F\u5426\u4EE5\u6307\u5B9A\u5B57\u7B26\u4E32\u5F00\u5934",EMPTY:"\u68C0\u67E5\u53C2\u6570\u662F\u5426\u4E3A\u7A7A",NOTEMPTY:"\u68C0\u67E5\u53C2\u6570\u662F\u5426\u4E0D\u4E3A\u7A7A",LEN:"\u83B7\u53D6\u6307\u5B9A\u5408\u96C6\u7684\u957F\u5EA6",MOD:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u7684\u4F59\u6570",FLOOR:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u5411\u4E0B\u53D6\u6574\u7684\u503C",CEIL:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u5411\u4E0A\u53D6\u6574\u7684\u503C",FIXED:"\u5C06\u4E00\u4E2A\u5C0F\u6570\u4FDD\u7559\u6307\u5B9A\u4F4D\u6570\u7684\u5C0F\u6570",ISNUMBER:"\u68C0\u67E5\u53C2\u6570\u662F\u5426\u4E3A\u6570\u5B57",TONUMBER:"\u5C06\u53C2\u6570\u8F6C\u6362\u4E3A\u6570\u5B57",SLICELEFT:"\u83B7\u53D6\u4E00\u4E2A\u5B57\u7B26\u4E32\u4ECE\u5F00\u5934\u5F00\u59CB\u6307\u5B9A\u957F\u5EA6\u7684\u5B57\u7B26\u4E32",SLICERIGHT:"\u83B7\u53D6\u4E00\u4E2A\u5B57\u7B26\u4E32\u4ECE\u7ED3\u5C3E\u5F00\u59CB\u6307\u5B9A\u957F\u5EA6\u7684\u5B57\u7B26\u4E32",TOLOWER:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u6240\u6709\u5927\u5199\u5B57\u6BCD\u8F6C\u6362\u4E3A\u5C0F\u5199\u5B57\u6BCD",TOUPPER:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u6240\u6709\u5C0F\u5199\u5B57\u6BCD\u8F6C\u6362\u4E3A\u5927\u5199\u5B57\u6BCD",INCLUDES:"\u68C0\u67E5\u5B57\u7B26\u4E32\u4E2D\u662F\u5426\u5305\u542B\u6307\u5B9A\u5B57\u7B26\u4E32",REPLACE:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u7684\u90E8\u5206\u6587\u672C\u66FF\u6362\u4E3A\u4E0D\u540C\u7684\u6587\u672C,\u53EA\u66FF\u6362\u5339\u914D\u5230\u7684\u7B2C\u4E00\u4E2A",REPLACEALL:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u7684\u90E8\u5206\u6587\u672C\u66FF\u6362\u4E3A\u4E0D\u540C\u7684\u6587\u672C,\u66FF\u6362\u6240\u6709\u5339\u914D\u5230\u7684",TRIM:"\u5C06\u5B57\u7B26\u4E32\u524D\u540E\u7684\u7A7A\u683C\u5220\u9664",TOCHINSESAMOUNT:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u7684\u4E2D\u6587\u5927\u5199\u91D1\u989D",UNION:"\u5C06\u5408\u96C6/\u53C2\u6570\u4E2D\u7684\u503C\u53BB\u91CD,\u8FD4\u56DE\u53BB\u91CD\u540E\u7684\u5408\u96C6",INTERSECTIONSET:"\u83B7\u53D6\u4E24\u4E2A\u96C6\u5408\u7684\u4EA4\u96C6",LIST:"\u83B7\u53D6\u6240\u6709\u53C2\u6570\u7EC4\u6210\u7684\u96C6\u5408",AND:'\u5C06\u8868\u8FBE\u5F0F\u7528"\u5E76\u4E14"\u94FE\u63A5,\u5F53\u6240\u6709\u8868\u8FBE\u5F0F\u5747\u4E3Atrue\u65F6\u8FD4\u56DEtrue\uFF0C\u5426\u5219\u8FD4\u56DEfalse',OR:'\u5C06\u8868\u8FBE\u5F0F\u7528"\u6216"\u94FE\u63A5,\u5F53\u6709\u4E00\u4E2A\u8868\u8FBE\u5F0F\u4E3Atrue\u65F6\u8FD4\u56DEtrue\uFF0C\u5426\u5219\u8FD4\u56DEfalse',IF:"\u68C0\u67E5\u4E00\u4E2A\u6761\u4EF6\u80FD\u5426\u6EE1\u8DB3,\u5982\u679C\u6EE1\u8DB3\u8FD4\u56DE\u7B2C\u4E8C\u4E2A\u53C2\u6570\uFF0C\u5426\u5219\u8FD4\u56DE\u7B2C\u4E09\u4E2A\u53C2\u6570",IN:"\u68C0\u67E5\u7B2C\u4E8C\u4E2A\u53C2\u6570\u662F\u5426\u5728\u5408\u96C6\u4E2D",DEFAULT:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u53C2\u6570,\u5982\u679C\u4E3A\u7A7A\u8FD4\u56DE\u7B2C\u4E8C\u4E2A\u53C2\u6570,\u5426\u5219\u8FD4\u56DE\u7B2C\u4E00\u4E2A\u53C2\u6570",CASE:"\u68C0\u67E5\u662F\u5426\u6EE1\u8DB3\u4E00\u4E2A\u6216\u591A\u4E2A\u6761\u4EF6\uFF0C\u8FD4\u56DE\u7B2C\u4E00\u4E2A\u6EE1\u8DB3\u6761\u4EF6\u7684\u503C",COLUMN:"\u83B7\u53D6\u5B50\u8868\u5355\u4E2D\u6307\u5B9A\u5B57\u6BB5\u5E76\u8FD4\u56DE\u5408\u96C6",VALUE:"\u83B7\u53D6\u5206\u7EC4\u8868\u5355\u4E2D\u6307\u5B9A\u5B57\u6BB5",CONCAT:"\u5C06\u6240\u6709\u53C2\u6570\u62FC\u63A5,\u8FD4\u56DE\u62FC\u63A5\u540E\u7684\u5B57\u7B26\u4E32",FALSE:"\u8FD4\u56DE\u903B\u8F91\u503C false",TRUE:"\u8FD4\u56DE\u903B\u8F91\u503C true",NOT:"\u83B7\u53D6\u67D0\u4E2A\u903B\u8F91\u503C\u7684\u76F8\u53CD\u503C",EQ:"\u68C0\u67E5\u4E24\u4E2A\u503C\u662F\u5426\u76F8\u7B49",NE:"\u68C0\u67E5\u4E24\u4E2A\u503C\u662F\u5426\u4E0D\u76F8\u7B49",GE:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5927\u4E8E\u7B49\u4E8E\u53E6\u4E00\u4E2A\u503C",GT:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5927\u4E8E\u53E6\u4E00\u4E2A\u503C",LE:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5C0F\u4E8E\u7B49\u4E8E\u53E6\u4E00\u4E2A\u503C",LT:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5C0F\u4E8E\u53E6\u4E00\u4E2A\u503C"},language:{name:"\u56FD\u9645\u5316\u914D\u7F6E",add:"\u65B0\u589E\u8BCD\u6761",batchRemove:"\u6279\u91CF\u5220\u9664",select:"\u9009\u62E9\u591A\u8BED\u8A00"},props:{circle:"\u5706\u5F62",square:"\u6B63\u65B9\u5F62",image:"\u56FE\u7247",video:"\u89C6\u9891",audio:"\u97F3\u9891",document:"\u6587\u6863",link:"\u94FE\u63A5",dashed:"\u865A\u7EBF",info:"\u63D0\u793A",success:"\u6210\u529F",error:"\u5931\u8D25",warning:"\u8B66\u544A",primary:"\u91CD\u8981",danger:"\u5371\u9669",form:"\u8868\u5355",subform:"\u5B50\u8868\u5355",other:"\u5176\u4ED6",model:"\u5F39\u7A97",field:"\u5B57\u6BB5",size:"\u5C3A\u5BF8",variable:"\u53D8\u91CF",disabled:"\u7981\u7528",enable:"\u542F\u7528",time:"\u65F6\u95F4",email:"\u90AE\u7BB1",number:"\u6570\u5B57",globalData:"\u5168\u5C40\u6570\u636E",mobile:"\u79FB\u52A8\u7AEF",reactive:"\u54CD\u5E94\u5F0F",pc:"\u7535\u8111\u7AEF",title:"\u6807\u9898",content:"\u5185\u5BB9",collection:"\u5408\u96C6",group:"\u5206\u7EC4",custom:"\u81EA\u5B9A\u4E49",change:"\u6539\u53D8",blur:"\u5931\u53BB\u7126\u70B9",preview:"\u9884\u89C8",clear:"\u6E05\u7A7A",cancel:"\u53D6\u6D88",close:"\u5173\u95ED",ok:"\u786E\u5B9A",save:"\u4FDD\u5B58",refresh:"\u5237\u65B0",submit:"\u63D0\u4EA4",reset:"\u91CD\u7F6E",copy:"\u590D\u5236",delete:"\u5220\u9664",hide:"\u9690\u85CF",show:"\u663E\u793A",position:"\u4F4D\u7F6E",render:"\u6E32\u67D3",large:"\u5927",default:"\u9ED8\u8BA4",middle:"\u4E2D",small:"\u5C0F",always:"\u5E38\u663E",never:"\u4E0D\u663E\u793A",hover:"\u60AC\u6D6E",click:"\u70B9\u51FB",button:"\u6309\u94AE",year:"\u5E74\u4EFD",month:"\u6708\u4EFD",date:"\u65E5\u671F",dates:"\u65E5\u671F\u591A\u9009",week:"\u4E00\u5468",quarter:"\u5B63\u5EA6",datetime:"\u65E5\u671F\u65F6\u95F4","datetime-local":"\u65E5\u671F\u65F6\u95F4",datetimerange:"\u65E5\u671F\u65F6\u95F4\u533A\u95F4",daterange:"\u65E5\u671F\u533A\u95F4",monthrange:"\u6708\u4EFD\u533A\u95F4",left:"\u5DE6\u5BF9\u9F50",right:"\u53F3\u5BF9\u9F50",top:"\u9876\u90E8",bottom:"\u4F4E\u90E8",text:"\u6587\u5B57",icon:"\u56FE\u6807",picture:"\u56FE\u7247","picture-card":"\u5361\u7247",center:"\u5C45\u4E2D",vertical:"\u7AD6\u5411",horizontal:"\u6A2A\u5411",manage:"\u7BA1\u7406",key:"\u952E\u540D",name:"\u540D\u79F0",value:"\u503C",inputData:"\u9ED8\u8BA4\u503C",append:"\u63D2\u5165",options:"\u9009\u9879\u6570\u636E",option:"\u9009\u9879",callback:"\u56DE\u8C03",_self:"\u5F53\u524D\u7A97\u53E3",_blank:"\u65B0\u7684\u7A97\u53E3",_parent:"\u7236\u7EA7\u7A97\u53E3",_top:"\u9876\u7EA7\u7A97\u53E3"},slots:{addonBefore:"\u5934\u90E8\u5185\u5BB9",addonAfter:"\u5C3E\u90E8\u5185\u5BB9",prefix:"\u524D\u7F6E\u5185\u5BB9",suffix:"\u540E\u7F6E\u5185\u5BB9"},behavior:{add:"\u6DFB\u52A0\u52A8\u4F5C",props:{id:"\u9009\u62E9\u7EC4\u4EF6",status:"\u72B6\u6001",compute:"\u6761\u4EF6",static:"\u9759\u6001",formula:"\u8868\u8FBE\u5F0F",setFormula:"\u914D\u7F6E\u8868\u8FBE\u5F0F",continue:"\u7EE7\u7EED\u6267\u884C\u52A8\u4F5C",stop:"\u4E2D\u65AD\u6267\u884C\u52A8\u4F5C",break:"\u8DF3\u8FC7\u5F53\u524D\u52A8\u4F5C",model:"\u9009\u62E9\u5F39\u7A97",fetch:"\u914D\u7F6E\u8BF7\u6C42",response:"\u8BF7\u6C42\u7ED3\u679C",callback:"\u81EA\u5B9A\u4E49JS",ignoreError:"\u6267\u884C\u5F02\u5E38",expression:"\u6267\u884C\u6761\u4EF6",stopPropagation:"\u963B\u65AD\u6761\u4EF6",execute:"\u6267\u884C\u52A8\u4F5C",info:"\u52A8\u4F5C\u8BF4\u660E"},openModel:{name:"\u6253\u5F00\u5F39\u7A97",info:"\u6253\u5F00\u6240\u9009\u7684\u5F39\u7A97"},closeModel:{name:"\u5173\u95ED\u5F39\u7A97",info:"\u5173\u95ED\u5F53\u524D\u5F39\u7A97"},hidden:{name:"\u7EC4\u4EF6\u53EF\u89C1\u6027",info:"\u63A7\u5236\u6240\u9009\u7684\u7EC4\u4EF6\u7684\u663E\u793A/\u9690\u85CF"},disabled:{name:"\u7EC4\u4EF6\u53EF\u7528\u6027",info:"\u63A7\u5236\u6240\u9009\u7684\u7EC4\u4EF6\u7684\u542F\u7528/\u7981\u7528"},resetFields:{name:"\u91CD\u7F6E\u8868\u5355",info:"\u91CD\u7F6E\u8868\u5355\u6570\u636E"},clearFields:{name:"\u6E05\u7A7A\u8868\u5355",info:"\u6E05\u7A7A\u8868\u5355\u6570\u636E"},validate:{name:"\u6821\u9A8C\u8868\u5355",info:"\u5BF9\u6574\u4E2A\u8868\u5355\u7684\u5185\u5BB9\u8FDB\u884C\u6821\u9A8C"},validateFields:{name:"\u6821\u9A8C\u8868\u5355\u9879",info:"\u6821\u9A8C\u6240\u9009\u7684\u7684\u8868\u5355\u9879"},setValue:{name:"\u8868\u5355\u8D4B\u503C",info:"\u4FEE\u6539\u8868\u5355\u7684\u6570\u636E"},fetch:{name:"\u53D1\u9001\u8BF7\u6C42",info:"\u914D\u7F6E\u5E76\u53D1\u9001API\u8BF7\u6C42",props:{append:"\u8FFD\u52A0\u8868\u5355\u6570\u636E"},warning:{append:"\u5F00\u542F\u540E\uFF0C\u8FDC\u7A0B\u8BF7\u6C42\u8FD4\u56DE\u7684\u6570\u636E\u5C06\u81EA\u52A8\u8FFD\u52A0\u5230\u8868\u5355\u7684\u6570\u636E\u4E2D\u3002",response:"\u8FDC\u7A0B\u8BF7\u6C42\u8FD4\u56DE\u7684\u6570\u636E\u5C06\u6682\u5B58\u5230\u6307\u5B9A\u7684\u53D8\u91CF\u4E2D\u3002"}},copy:{name:"\u590D\u5236\u5185\u5BB9",info:"\u590D\u5236\u6587\u672C\u5185\u5BB9\u81F3\u7C98\u8D34\u677F"},callback:{name:"\u81EA\u5B9A\u4E49\u64CD\u4F5C",info:"\u901A\u8FC7JavaScript\u81EA\u5B9A\u4E49\u52A8\u4F5C\u903B\u8F91"},message:{name:"\u6D88\u606F\u63D0\u9192",info:"\u5F39\u51FA\u6D88\u606F\u63D0\u9192",props:{type:"\u7C7B\u578B",message:"\u63D0\u793A\u4FE1\u606F",duration:"\u6301\u7EED\u65F6\u95F4"}},submit:{name:"\u63D0\u4EA4\u8868\u5355",info:"\u624B\u52A8\u63D0\u4EA4\u8868\u5355\u5E76\u89E6\u53D1\u8868\u5355\u63D0\u4EA4\u4E8B\u4EF6"}},com:{cascader:{name:"\u7EA7\u8054\u9009\u62E9\u5668",event:{dropdownVisibleChange:"\u663E\u793A/\u9690\u85CF\u6D6E\u5C42\u65F6\u89E6\u53D1",search:"\u76D1\u542C\u641C\u7D22\uFF0C\u8FD4\u56DE\u8F93\u5165\u7684\u503C"},props:{props:"\u914D\u7F6E\u9009\u9879",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",disabled:"\u662F\u5426\u7981\u7528",allowClear:"\u662F\u5426\u652F\u6301\u6E05\u7A7A\u9009\u9879",multiple:"\u652F\u6301\u591A\u9009\u8282\u70B9",showSearch:"\u8BE5\u9009\u9879\u662F\u5426\u53EF\u4EE5\u88AB\u641C\u7D22"}},checkbox:{name:"\u591A\u9009\u6846",props:{disabled:"\u662F\u5426\u7981\u7528"}},col:{name:"\u5E03\u5C40\u683C\u5B50",info:"\u901A\u8FC7\u54CD\u5E94\u5F0F\u914D\u7F6E\u591A\u7AEF\u5E03\u5C40\uFF0C\u79FB\u52A8\u7AEF\u4F1A\u81EA\u52A8\u5E94\u7528\u7B2C\u4E00\u4E2A",props:{span:"\u6805\u683C\u5360\u636E\u7684\u5217\u6570",offset:"\u6805\u683C\u5DE6\u4FA7\u7684\u95F4\u9694\u683C\u6570",push:"\u6805\u683C\u5411\u53F3\u79FB\u52A8\u683C\u6570",pull:"\u6805\u683C\u5411\u5DE6\u79FB\u52A8\u683C\u6570"}},datePicker:{name:"\u65E5\u671F",props:{disabled:"\u7981\u7528",bordered:"\u662F\u5426\u6709\u8FB9\u6846",picker:"\u663E\u793A\u7C7B\u578B",inputReadOnly:"\u6587\u672C\u6846\u4E0D\u53EF\u8F93\u5165",showTime:"\u589E\u52A0\u65F6\u95F4\u9009\u62E9",allowClear:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",placeholder:"\u9009\u62E9\u65F6\u7684\u5360\u4F4D\u5185\u5BB9",__startPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u5F00\u59CB\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",__endPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u7ED3\u675F\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",separator:"\u8BBE\u7F6E\u5206\u9694\u7B26",format:"\u663E\u793A\u5728\u8F93\u5165\u6846\u4E2D\u7684\u683C\u5F0F",valueFormat:"\u7ED1\u5B9A\u503C\u7684\u683C\u5F0F"}},dateRange:{name:"\u65E5\u671F\u533A\u95F4",event:{calendarChange:"\u5F85\u9009\u65E5\u671F\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1"}},timeRange:{name:"\u65F6\u95F4\u533A\u95F4"},aAlert:{name:"\u63D0\u793A",description:"\u8BF4\u660E\u6587\u5B57",props:{message:"\u6807\u9898",type:"\u4E3B\u9898",description:"\u8F85\u52A9\u6027\u6587\u5B57",closable:"\u662F\u5426\u53EF\u5173\u95ED",banner:"\u662F\u5426\u7528\u4F5C\u9876\u90E8\u516C\u544A",closeText:"\u5173\u95ED\u6309\u94AE\u81EA\u5B9A\u4E49\u6587\u672C",showIcon:"\u662F\u5426\u663E\u793A\u56FE\u6807"}},aButton:{name:"\u6309\u94AE",props:{formCreateChild:"\u5185\u5BB9",size:"\u5C3A\u5BF8",type:"\u7C7B\u578B",shape:"\u5F62\u72B6",ghost:"\u4F7F\u6309\u94AE\u80CC\u666F\u900F\u660E",danger:"\u8BBE\u7F6E\u5371\u9669\u6309\u94AE",block:"\u5C06\u6309\u94AE\u5BBD\u5EA6\u81EA\u52A8\u6491\u5F00",loading:"\u662F\u5426\u52A0\u8F7D\u4E2D\u72B6\u6001",disabled:"\u662F\u5426\u7981\u7528\u72B6\u6001"}},aCard:{name:"\u5361\u7247",props:{title:"\u6807\u9898",size:"\u5C3A\u5BF8",type:"\u7C7B\u578B",hoverable:"\u9F20\u6807\u79FB\u8FC7\u65F6\u53EF\u6D6E\u8D77"}},aCollapse:{name:"\u6298\u53E0\u9762\u677F",event:{change:"\u5207\u6362\u9762\u677F\u65F6\u89E6\u53D1"},props:{accordion:"\u662F\u5426\u624B\u98CE\u7434\u6A21\u5F0F",bordered:"\u5E26\u8FB9\u6846\u98CE\u683C\u7684\u6298\u53E0\u9762\u677F",ghost:"\u4F7F\u6298\u53E0\u9762\u677F\u900F\u660E\u4E14\u65E0\u8FB9\u6846"}},aCollapsePanel:{name:"\u9762\u677F",props:{header:"\u9762\u677F\u6807\u9898",key:"\u552F\u4E00\u6807\u5FD7\u7B26",disabled:"\u662F\u5426\u7981\u7528",showArrow:"\u662F\u5426\u5C55\u793A\u5F53\u524D\u9762\u677F\u4E0A\u7684\u7BAD\u5934"}},aDescriptions:{name:"\u63CF\u8FF0\u5217\u8868",props:{title:"\u6807\u9898\u6587\u672C\uFF0C\u663E\u793A\u5728\u5DE6\u4E0A\u65B9",extra:"\u64CD\u4F5C\u533A\u6587\u672C\uFF0C\u663E\u793A\u5728\u53F3\u4E0A\u65B9",column:"\u4E00\u884C\u4E2D\u8868\u683C\u7684\u6570\u91CF",bordered:"\u662F\u5426\u5E26\u6709\u8FB9\u6846",layout:"\u6392\u5217\u7684\u65B9\u5411",size:"\u5217\u8868\u7684\u5C3A\u5BF8"}},aDescriptionsItem:{name:"\u63CF\u8FF0\u683C\u5B50",props:{label:"\u6807\u7B7E\u6587\u672C",__child:"\u5185\u5BB9",span:"\u5217\u7684\u6570\u91CF"}},aDivider:{name:"\u5206\u5272\u7EBF",props:{type:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u65B9\u5411",formCreateChild:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u6587\u6848",orientation:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u6587\u6848\u7684\u4F4D\u7F6E",plain:"\u6587\u5B57\u662F\u5426\u663E\u793A\u4E3A\u666E\u901A\u6B63\u6587\u6837\u5F0F",dashed:"\u662F\u5426\u865A\u7EBF"}},aTabPane:{name:"\u9009\u9879\u5361",props:{tab:"\u9009\u9879\u5361\u6807\u9898",disabled:"\u662F\u5426\u7981\u7528",key:"\u9009\u9879\u5361\u7684\u6807\u8BC6\u7B26"}},aTabs:{name:"\u6807\u7B7E\u9875",event:{change:"\u5207\u6362\u9762\u677F\u65F6\u89E6\u53D1",tabClick:"tab \u88AB\u9009\u4E2D\u65F6\u89E6\u53D1",edit:"\u70B9\u51FB tab \u7684\u65B0\u589E\u6216\u79FB\u9664\u6309\u94AE\u540E\u89E6\u53D1"},props:{type:"\u98CE\u683C\u7C7B\u578B",tabPosition:"\u9009\u9879\u5361\u6240\u5728\u4F4D\u7F6E",centered:"\u6807\u7B7E\u5C45\u4E2D\u5C55\u793A"}},aTag:{name:"\u6807\u7B7E",props:{formCreateChild:"\u6807\u7B7E\u5185\u5BB9",closable:"\u662F\u5426\u53EF\u5173\u95ED",bordered:"\u662F\u5426\u6709\u8FB9\u6846",color:"\u80CC\u666F\u8272"}},aTransfer:{name:"\u7A7F\u68AD\u6846",event:{search:"\u641C\u7D22\u6846\u5185\u5BB9\u65F6\u6539\u53D8\u65F6\u89E6\u53D1",selectChange:"\u9009\u4E2D\u9879\u53D1\u751F\u6539\u53D8\u65F6\u89E6\u53D1"},props:{oneWay:"\u5C55\u793A\u4E3A\u5355\u5411\u6837\u5F0F",pagination:"\u4F7F\u7528\u5206\u9875\u6837\u5F0F",showSearch:"\u662F\u5426\u663E\u793A\u641C\u7D22\u6846",showSelectAll:"\u662F\u5426\u5C55\u793A\u5168\u9009\u52FE\u9009\u6846",filterPlaceholder:"\u641C\u7D22\u6846\u5360\u4F4D\u7B26",titles:"\u81EA\u5B9A\u4E49\u5217\u8868\u6807\u9898"}},aTreeSelect:{name:"\u6811\u5F62\u9009\u62E9",event:{check:"\u9009\u4E2D\u6811\u8282\u70B9\u6216\u8F93\u5165\u503C\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1",treeExpand:"\u5C55\u5F00\u6811\u8282\u70B9\u65F6\u8C03\u7528",select:"\u70B9\u51FB\u6811\u8282\u70B9\u89E6\u53D1"},props:{multiple:"\u662F\u5426\u591A\u9009",disabled:"\u662F\u5426\u7981\u7528",allowClear:"\u662F\u5426\u53EF\u4EE5\u6E05\u7A7A\u9009\u9879",showSearch:"\u5728\u4E0B\u62C9\u4E2D\u663E\u793A\u641C\u7D22\u6846(\u4EC5\u5728\u5355\u9009\u6A21\u5F0F\u4E0B\u751F\u6548)",treeCheckable:"\u663E\u793A\u591A\u9009\u6846",fieldNames:"\u914D\u7F6E\u9009\u9879",treeDefaultExpandAll:"\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u8282\u70B9",treeLine:"\u662F\u5426\u5C55\u793A\u7EBF\u6761\u6837\u5F0F"}},aWatermark:{name:"\u6C34\u5370",props:{content:"\u6C34\u5370\u6587\u672C\u5185\u5BB9",image:"\u6C34\u5370\u56FE\u7247\uFF0C\u5EFA\u8BAE\u4F7F\u7528 2x \u6216 3x \u56FE\u50CF",width:"\u6C34\u5370\u7684\u5BBD\u5EA6\uFF0C content \u7684\u9ED8\u8BA4\u503C\u662F\u5B83\u81EA\u5DF1\u7684\u5BBD\u5EA6",height:"\u6C34\u5370\u7684\u9AD8\u5EA6\uFF0C content \u7684\u9ED8\u8BA4\u503C\u662F\u5B83\u81EA\u5DF1\u7684\u9AD8\u5EA6",rotate:"\u6C34\u5370\u7684\u65CB\u8F6C\u89D2\u5EA6, \u5355\u4F4D \xB0",zIndex:"\u6C34\u5370\u5143\u7D20\u7684z-index\u503C"}},aTooltip:{name:"\u6587\u5B57\u63D0\u793A",props:{title:"\u663E\u793A\u7684\u5185\u5BB9",color:"\u80CC\u666F\u8272",placement:"Tooltip \u7EC4\u4EF6\u51FA\u73B0\u7684\u4F4D\u7F6E",trigger:"\u5982\u4F55\u89E6\u53D1 Tooltip",mouseEnterDelay:"\u5728\u89E6\u53D1\u540E\u591A\u4E45\u663E\u793A\u5185\u5BB9\uFF0C\u5355\u4F4D\u79D2",mouseLeaveDelay:"\u5EF6\u8FDF\u5173\u95ED\uFF0C\u5355\u4F4D\u79D2"}},aImage:{name:"\u56FE\u7247",props:{src:"\u56FE\u7247\u94FE\u63A5",preview:"\u5F00\u542F\u9884\u89C8"}},aAvatar:{name:"\u5934\u50CF\u6846",props:{src:"\u56FE\u7247\u94FE\u63A5",shape:"\u5F62\u72B6",size:"\u5C3A\u5BF8"}},aMentions:{name:"\u63D0\u53CA",event:{search:"\u6309\u4E0B\u89E6\u53D1\u5B57\u6BB5\u65F6\u89E6\u53D1",select:"\u5F53\u7528\u6237\u9009\u62E9\u9009\u9879\u65F6\u89E6\u53D1"},props:{rows:"\u5185\u5BB9\u9AD8\u5EA6",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",disabled:"\u662F\u5426\u7981\u7528",filterOption:"\u7B5B\u9009\u5668\u9009\u9879\u903B\u8F91"}},aSegmented:{name:"\u5206\u6BB5\u63A7\u5236\u5668",props:{size:"\u5C3A\u5BF8",block:"\u6491\u6EE1\u7236\u5143\u7D20\u5BBD\u5EA6",disabled:"\u662F\u5426\u7981\u7528"}},aFormItem:{name:"\u8868\u5355\u9879",props:{label:"\u6807\u7B7E\u6587\u672C","formCreateStyle>width":"\u6807\u7B7E\u5BBD\u5EA6"}},aStatistic:{name:"\u7EDF\u8BA1\u680F",props:{value:"\u6570\u503C",title:"\u6807\u9898",prefix:"\u6570\u503C\u7684\u524D\u7F00",suffix:"\u6570\u503C\u7684\u540E\u7F00"}},fcTitle:{name:"\u6807\u9898",props:{title:"\u6807\u9898",size:"\u5C3A\u5BF8",align:"\u5BF9\u9F50\u65B9\u5F0F"}},fcId:{name:"\u552F\u4E00\u503C",props:{prefix:"\u524D\u7F00"}},fcCell:{name:"\u683C\u5B50"},fcEditor:{name:"\u5BCC\u6587\u672C\u6846",props:{disabled:"\u662F\u5426\u7981\u7528"}},fcFlex:{name:"\u76D2\u5B50\u5E03\u5C40"},fcFlex2:{name:"\u76D2\u5B50\u5E03\u5C40",horizontal:"\u6C34\u5E73\u5C45\u4E2D",vertical:"\u5782\u76F4\u5C45\u4E2D",left:"\u5DE6\u5BF9\u9F50",right:"\u53F3\u5BF9\u9F50",reset:"\u91CD\u7F6E\u5E03\u5C40"},fcRow:{name:"\u6805\u683C\u5E03\u5C40",props:{gutter:"\u6805\u683C\u95F4\u9694",justify:"\u6C34\u5E73\u6392\u5217\u65B9\u5F0F",align:"\u5782\u76F4\u6392\u5217\u65B9\u5F0F"}},fcDialog:{name:"\u5F39\u51FA\u6846",props:{title:"\u6807\u9898",width:"\u5BF9\u8BDD\u6846\u7684\u5BBD\u5EA6",fullscreen:"\u662F\u5426\u4E3A\u5168\u5C4F",mask:"\u662F\u5426\u9700\u8981\u906E\u7F69\u5C42",afterClose:"\u5173\u95ED\u540E\u89E6\u53D1",autoClose:"\u63D0\u4EA4\u8868\u5355\u540E\u81EA\u52A8\u5173\u95ED\u5F39\u51FA\u6846",footer:"\u662F\u5426\u663E\u793A\u64CD\u4F5C\u6309\u94AE"}},fcDrawer:{name:"\u62BD\u5C49",event:{afterOpenChange:"\u5207\u6362\u62BD\u5C49\u65F6\u52A8\u753B\u7ED3\u675F\u540E\u89E6\u53D1"},props:{title:"\u6807\u9898",width:"\u5BF9\u8BDD\u6846\u7684\u5BBD\u5EA6",placement:"\u6253\u5F00\u7684\u65B9\u5411",mask:"\u662F\u5426\u9700\u8981\u906E\u7F69\u5C42",autoClose:"\u63D0\u4EA4\u8868\u5355\u540E\u81EA\u52A8\u5173\u95ED\u5F39\u51FA\u6846",footer:"\u662F\u5426\u663E\u793A\u64CD\u4F5C\u6309\u94AE"},placementType:{left:"\u5DE6\u4FA7",right:"\u53F3\u4FA7"}},fcTable:{name:"\u8868\u683C\u5E03\u5C40",props:{border:"\u662F\u5426\u663E\u793A\u8FB9\u6846",borderColor:"\u8FB9\u6846\u989C\u8272",borderWidth:"\u8FB9\u6846\u5BBD\u5EA6"}},fcTableGrid:{name:"\u683C\u5B50"},fcValue:{name:"\u8BA1\u7B97\u516C\u5F0F",empty:"\u5728\u53F3\u4FA7\u914D\u7F6E\u4E2D\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F"},fcSlot:{name:"\u63D2\u69FD\u533A\u57DF",empty:"\u901A\u8FC7\u5B9A\u4E49\u63D2\u69FD&nbsp;{tag}&nbsp;\u586B\u5145\u533A\u57DF",props:{name:"\u63D2\u69FD\u540D\u79F0"}},fcJson:{name:"\u52A8\u6001\u533A\u57DF",empty:"\u901A\u8FC7\u52A0\u8F7D&nbsp;{tag}&nbsp;\u89C4\u5219\u586B\u5145\u533A\u57DF",props:{_loadType:"JSON \u89C4\u5219",type:"\u7C7B\u578B"}},lineChart:{name:"\u6298\u7EBF\u56FE",data:"\u56FE\u8868\u6570\u636E",pieTypeOpt:{pie:"\u5706\u5F62",doughnut:"\u73AF\u5F62","half-doughnut":"\u534A\u73AF\u5F62"},funnelSortOpt:{descending:"\u5012\u5E8F",ascending:"\u6B63\u5E8F"},props:{title:"\u56FE\u8868\u7684\u540D\u79F0",subtitle:"\u56FE\u8868\u7684\u7B80\u4ECB",valueFormat:"\u683C\u5F0F\u5316\u6570\u503C\u663E\u793A",stack:"\u591A\u5217\u6570\u636E\u65F6\u662F\u5426\u5806\u53E0",smooth:"\u7EBF\u6761\u662F\u5426\u5E73\u6ED1\u8FC7\u6E21",showLegend:"\u662F\u5426\u663E\u793A\u6807\u8BB0",showSeriesLabel:"\u662F\u5426\u663E\u793A\u6570\u503C",barBackgroundColor:"\u67F1\u72B6\u7684\u80CC\u666F\u8272",funnelSort:"\u6392\u5E8F\u65B9\u5F0F",pieType:"\u5F62\u72B6",min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C",value:"\u6570\u503C",indicator:"\u6307\u793A\u5668",loadOptions:"\u521D\u59CB\u5316"}},areaChart:{name:"\u4F53\u79EF\u56FE"},barChart:{name:"\u67F1\u72B6\u56FE"},customChart:{name:"\u81EA\u5B9A\u4E49\u56FE\u8868"},funnelChart:{name:"\u6F0F\u6597\u56FE"},gaugeChart:{name:"\u4EEA\u8868\u76D8"},pieChart:{name:"\u997C\u56FE"},radarChart:{name:"\u96F7\u8FBE\u56FE"},scatterChart:{name:"\u6563\u70B9\u56FE"},stripeChart:{name:"\u6761\u5F62\u56FE"},fcInlineForm:{name:"\u884C\u5185\u5E03\u5C40"},group:{name:"\u5B50\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",syncDisabled:"\u662F\u5426\u4E0E\u5B50\u8868\u5355\u5F3A\u5236\u540C\u6B65\u7981\u7528\u72B6\u6001",expand:"\u8BBE\u7F6E\u9ED8\u8BA4\u5C55\u5F00\u51E0\u9879",button:"\u662F\u5426\u663E\u793A\u64CD\u4F5C\u6309\u94AE",sortBtn:"\u662F\u5426\u663E\u793A\u6392\u5E8F\u6309\u94AE",min:"\u8BBE\u7F6E\u6700\u5C0F\u6DFB\u52A0\u51E0\u9879",max:"\u8BBE\u7F6E\u6700\u591A\u6DFB\u52A0\u51E0\u9879"}},html:{name:"HTML",props:{formCreateChild:"\u5185\u5BB9"}},input:{name:"\u8F93\u5165\u6846",event:{change:"\u8F93\u5165\u6846\u5185\u5BB9\u53D8\u5316\u65F6\u89E6\u53D1"},props:{type:"\u7C7B\u578B",maxlength:"\u6700\u5927\u8F93\u5165\u957F\u5EA6",minlength:"\u6700\u5C0F\u8F93\u5165\u957F\u5EA6",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",allowClear:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",bordered:"\u662F\u5426\u6709\u8FB9\u6846",showCount:"\u662F\u5426\u5C55\u793A\u5B57\u6570",disabled:"\u662F\u5426\u7981\u7528",autoSize:"\u81EA\u9002\u5E94\u5185\u5BB9\u9AD8\u5EA6"}},inputNumber:{name:"\u6570\u5B57\u8F93\u5165\u6846",event:{step:"\u70B9\u51FB\u4E0A\u4E0B\u7BAD\u5934\u65F6\u89E6\u53D1"},props:{precision:"\u6570\u503C\u7CBE\u5EA6",min:"\u8BBE\u7F6E\u8BA1\u6570\u5668\u5141\u8BB8\u7684\u6700\u5C0F\u503C",max:"\u8BBE\u7F6E\u8BA1\u6570\u5668\u5141\u8BB8\u7684\u6700\u5927\u503C",step:"\u8BA1\u6570\u5668\u6B65\u957F",disabled:"\u662F\u5426\u7981\u7528\u8BA1\u6570\u5668",controls:"\u662F\u5426\u4F7F\u7528\u63A7\u5236\u6309\u94AE",bordered:"\u662F\u5426\u6709\u8FB9\u6846",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C"}},password:{name:"\u5BC6\u7801\u8F93\u5165\u6846",event:{change:"\u8F93\u5165\u6846\u5185\u5BB9\u53D8\u5316\u65F6\u89E6\u53D1"},props:{disabled:"\u662F\u5426\u7981\u7528",maxlength:"\u6700\u5927\u8F93\u5165\u957F\u5EA6",minlength:"\u6700\u5C0F\u8F93\u5165\u957F\u5EA6",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",showCount:"\u662F\u5426\u5C55\u793A\u5B57\u6570",visibilityToggle:"\u662F\u5426\u663E\u793A\u5207\u6362\u6309\u94AE\u6216\u8005\u63A7\u5236\u5BC6\u7801\u663E\u9690",allowClear:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",bordered:"\u662F\u5426\u6709\u8FB9\u6846"}},radio:{name:"\u5355\u9009\u6846",props:{input:"\u662F\u5426\u53EF\u4EE5\u586B\u5199",disabled:"\u662F\u5426\u7981\u7528",optionType:"\u9009\u9879\u7C7B\u578B"}},rate:{name:"\u8BC4\u5206",props:{count:"\u6700\u5927\u5206\u503C",disabled:"\u662F\u5426\u7981\u7528",allowClear:"\u662F\u5426\u5141\u8BB8\u518D\u6B21\u70B9\u51FB\u540E\u6E05\u9664",allowHalf:"\u662F\u5426\u5141\u8BB8\u534A\u9009"}},select:{name:"\u9009\u62E9\u5668",event:{search:"\u6587\u672C\u6846\u503C\u53D8\u5316\u65F6\u89E6\u53D1",select:"\u88AB\u9009\u4E2D\u65F6\u8C03\u7528"},modeOpt:{multiple:"\u591A\u9009",tags:"\u6807\u7B7E",combobox:"\u5355\u9009"},props:{disabled:"\u662F\u5426\u7981\u7528",allowClear:"\u662F\u5426\u53EF\u4EE5\u6E05\u7A7A\u9009\u9879",placeholder:"\u5360\u4F4D\u7B26",bordered:"\u662F\u5426\u6709\u8FB9\u6846",mode:"\u6A21\u5F0F"}},slider:{name:"\u6ED1\u5757",props:{min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C",disabled:"\u662F\u5426\u7981\u7528",step:"\u6B65\u957F",dots:"\u662F\u5426\u663E\u793A\u95F4\u65AD\u70B9",range:"\u662F\u5426\u4E3A\u8303\u56F4\u9009\u62E9",vertical:"\u662F\u5426\u7AD6\u5411\u6A21\u5F0F"}},space:{name:"\u95F4\u8DDD"},stepForm:{name:"\u5206\u6B65\u8868\u5355",event:{next:"\u70B9\u51FB\u4E0B\u4E00\u6B65\u6309\u94AE\u65F6\u89E6\u53D1"},props:{autoValidate:"\u8FDB\u5165\u4E0B\u4E00\u6B65\u524D\u81EA\u52A8\u9A8C\u8BC1\u8868\u5355","stepsProps>size":"\u5C3A\u5BF8"}},stepFormItem:{name:"\u6B65\u9AA4\u6761",props:{title:"\u6807\u9898",description:"\u63CF\u8FF0\u6587\u6848"}},subForm:{name:"\u5206\u7EC4",props:{disabled:"\u662F\u5426\u7981\u7528",syncDisabled:"\u662F\u5426\u4E0E\u5B50\u8868\u5355\u5F3A\u5236\u540C\u6B65\u7981\u7528\u72B6\u6001"}},switch:{name:"\u5F00\u5173",props:{disabled:"\u662F\u5426\u7981\u7528",checkedChildren:"\u6253\u5F00\u65F6\u7684\u6587\u5B57\u63CF\u8FF0",unCheckedChildren:"\u5173\u95ED\u65F6\u7684\u6587\u5B57\u63CF\u8FF0",checkedValue:"\u6253\u5F00\u65F6\u7684\u503C",unCheckedValue:"\u5173\u95ED\u65F6\u7684\u503C"}},tableForm:{name:"\u8868\u683C\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",filterEmptyColumn:"\u662F\u5426\u8FC7\u6EE4\u7A7A\u884C\u7684\u6570\u636E",max:"\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236"}},nestedTableForm:{name:"\u5D4C\u5957\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",max:"\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",nestedMax:"\u5B50\u8868\u5355\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236"}},infiniteTableForm:{name:"\u65E0\u9650\u7EA7\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",childrenField:"\u8BBE\u7F6E\u5B50\u7EA7\u7684\u5B57\u6BB5\u540D",max:"\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",layerMax:"\u6700\u591A\u6DFB\u52A0\u51E0\u5C42\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236"}},nestedSubTableForm:{name:"\u5B50\u8868\u683C\u8868\u5355"},tableFormColumn:{name:"\u8868\u683C\u683C\u5B50",label:"\u81EA\u5B9A\u4E49\u540D\u79F0",props:{label:"\u6807\u9898",width:"\u5BBD\u5EA6",color:"\u989C\u8272",required:"\u662F\u5426\u663E\u793A\u5FC5\u586B\u661F\u53F7"}},dataTable:{name:"\u6570\u636E\u8868\u683C",handle:"\u7981\u7528\u903B\u8F91",click:"\u70B9\u51FB\u4E8B\u4EF6",filter:"\u7B5B\u9009",event:{handleClick:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",change:"\u5206\u9875\u3001\u6392\u5E8F\u3001\u7B5B\u9009\u53D8\u5316\u65F6\u89E6\u53D1",rowSelectionChange:"\u5F53\u9009\u62E9\u9879\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1"},button:{title:"\u64CD\u4F5C\u6309\u94AE",btn:"\u914D\u7F6E\u64CD\u4F5C\u6309\u94AE",link:"\u6587\u5B57",round:"\u5706\u89D2",plain:"\u6734\u7D20",disabled:"\u7981\u7528"},column:{title:"\u5217\u8868\u7BA1\u7406",btn:"\u914D\u7F6E\u8868\u683C\u5217\u8868",prop:"\u5B57\u6BB5\u540D\u79F0",sort:"\u6392\u5E8F"},format:{default:"\u5E38\u89C4",tag:"\u6807\u7B7E",image:"\u56FE\u7247",custom:"\u81EA\u5B9A\u4E49"},fixed:{default:"\u5E38\u89C4",left:"\u5DE6\u60AC\u6D6E",right:"\u53F3\u60AC\u6D6E"},sortable:{disabled:"\u4E0D\u6392\u5E8F",default:"\u5E38\u89C4\u6392\u5E8F",custom:"\u63A5\u53E3\u6392\u5E8F"},props:{_optionType:"\u8868\u683C\u6570\u636E","page>totalField":"\u63A5\u53E3\u54CD\u5E94\u6570\u636E\u4E2D\u603B\u6761\u76EE\u6570\u7684\u5B57\u6BB5\u540D\u79F0","page>dataField":"\u63A5\u53E3\u54CD\u5E94\u6570\u636E\u4E2D\u5217\u8868\u6570\u636E\u7684\u5B57\u6BB5\u540D\u79F0","page>orderField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u6392\u5E8F\u7684\u53C2\u6570\u540D\u79F0","page>orderByField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u6392\u5E8F\u65B9\u5F0F\u7684\u53C2\u6570\u540D\u79F0","page>pageField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u9875\u7801\u7684\u53C2\u6570\u540D\u79F0(\u5206\u9875)","page>pageSizeField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u6761\u76EE\u6570\u7684\u53C2\u6570\u540D\u79F0(\u5206\u9875)",column:"\u8868\u683C\u7BA1\u7406",selection:"\u662F\u5426\u663E\u793A\u591A\u9009\u6846",size:"\u5C3A\u5BF8",rowKey:"\u884C\u6570\u636E\u7684Key","scroll>x":"\u5BBD\u5EA6","scroll>y":"\u9AD8\u5EA6",bordered:"\u8FB9\u6846",button:"\u64CD\u4F5C\u6309\u94AE",page:"\u5206\u9875","button>column":"\u6309\u94AE\u7BA1\u7406","button>label":"\u64CD\u4F5C","button>fixed":"\u4F4D\u7F6E","button>width":"\u5217\u7684\u5BBD\u5EA6","page>position":"\u4F4D\u7F6E","page>props>pageSize":"\u6BCF\u9875\u663E\u793A\u6761\u76EE\u4E2A\u6570","page>props>size":"\u5C3A\u5BF8"},requiredName:"\u8BF7\u8F93\u5165\u6309\u94AE\u540D\u79F0",requiredKey:"\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u8BC6",requiredLabel:"\u8BF7\u8F93\u5165\u6807\u9898",requiredRender:"\u8BF7\u8F93\u5165\u6E32\u67D3\u51FD\u6570"},text:{name:"\u6587\u5B57",props:{formCreateChild:"\u5185\u5BB9"}},textarea:{name:"\u591A\u884C\u8F93\u5165\u6846"},timePicker:{name:"\u65F6\u95F4","HH:mm:ss":"\u65F6:\u5206:\u79D2","HH:mm":"\u65F6:\u5206",props:{__format:"\u8F93\u5165\u6846\u4E2D\u7684\u683C\u5F0F",disabled:"\u7981\u7528",inputReadOnly:"\u6587\u672C\u6846\u4E0D\u53EF\u8F93\u5165",allowClear:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",hourStep:"\u5C0F\u65F6\u9009\u9879\u95F4\u9694",minuteStep:"\u5206\u949F\u9009\u9879\u95F4\u9694",secondStep:"\u79D2\u9009\u9879\u95F4\u9694",placeholder:"\u9009\u62E9\u65F6\u7684\u5360\u4F4D\u5185\u5BB9",__startPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u5F00\u59CB\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",__endPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u7ED3\u675F\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",bordered:"\u662F\u5426\u6709\u8FB9\u6846"}},tree:{name:"\u6811\u5F62\u63A7\u4EF6",event:{check:"\u70B9\u51FB\u590D\u9009\u6846\u89E6\u53D1",expand:"\u5C55\u5F00/\u6536\u8D77\u8282\u70B9\u65F6\u89E6\u53D1",rightClick:"\u54CD\u5E94\u53F3\u952E\u70B9\u51FB",select:"\u70B9\u51FB\u6811\u8282\u70B9\u89E6\u53D1"},props:{fieldNames:"\u914D\u7F6E\u9009\u9879",showLine:"\u662F\u5426\u5C55\u793A\u8FDE\u63A5\u7EBF",defaultExpandAll:"\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u8282\u70B9"}},upload:{name:"\u4E0A\u4F20",info:"\u4E0A\u4F20\u6210\u529F\u540E\uFF0C\u5C06\u63A5\u53E3\u8FD4\u56DE\u7684 URL \u8D4B\u503C\u7ED9 file.url\uFF0C\u6216\u5C06\u8FD4\u56DE\u7ED3\u679C\u8D4B\u503C\u7ED9 file.value\uFF0C\u4EE5\u4FBF\u5728\u540E\u7EED\u7684\u8868\u5355\u63D0\u4EA4\u65F6\u83B7\u53D6\u8FD9\u4E9B\u6570\u636E\u3002",event:{download:"\u70B9\u51FB\u4E0B\u8F7D\u6587\u4EF6\u65F6\u89E6\u53D1",preview:"\u70B9\u51FB\u6587\u4EF6\u94FE\u63A5\u6216\u9884\u89C8\u56FE\u6807\u65F6\u89E6\u53D1",remove:"\u6587\u4EF6\u5217\u8868\u79FB\u9664\u6587\u4EF6\u65F6\u89E6\u53D1"},props:{listType:"\u4E0A\u4F20\u7C7B\u578B",multiple:"\u662F\u5426\u652F\u6301\u591A\u9009\u6587\u4EF6",action:"\u4E0A\u4F20\u7684\u5730\u5740(\u5FC5\u586B)",beforeUpload:"\u4E0A\u4F20\u6587\u4EF6\u4E4B\u524D\u7684\u94A9\u5B50",onSuccess:"\u4E0A\u4F20\u6210\u529F\u56DE\u8C03",headers:"\u8BBE\u7F6E\u4E0A\u4F20\u7684\u8BF7\u6C42\u5934\u90E8",data:"\u4E0A\u4F20\u65F6\u9644\u5E26\u7684\u989D\u5916\u53C2\u6570",name:"\u4E0A\u4F20\u7684\u6587\u4EF6\u5B57\u6BB5\u540D",withCredentials:"\u652F\u6301\u53D1\u9001 cookie \u51ED\u8BC1\u4FE1\u606F",accept:"\u63A5\u53D7\u4E0A\u4F20\u7684\u6587\u4EF6\u7C7B\u578B",customRequest:"\u81EA\u5B9A\u4E49\u4E0A\u4F20\u884C\u4E3A",disabled:"\u662F\u5426\u7981\u7528",maxCount:"\u6700\u5927\u5141\u8BB8\u4E0A\u4F20\u4E2A\u6570"}},audioBox:{name:"\u97F3\u9891\u64AD\u653E\u5668",preloadOpt:{auto:"\u81EA\u52A8",metadata:"\u5143\u6570\u636E",none:"\u7981\u6B62"},event:{pause:"\u97F3\u9891\u64AD\u653E\u6682\u505C\u65F6\u89E6\u53D1",play:"\u97F3\u9891\u5F00\u59CB\u64AD\u653E\u65F6\u89E6\u53D1",ended:"\u97F3\u9891\u64AD\u653E\u7ED3\u675F\u540E\u89E6\u53D1"},props:{src:"\u97F3\u9891\u5730\u5740",type:"\u97F3\u9891\u7C7B\u578B",autoplay:"\u662F\u5426\u81EA\u52A8\u64AD\u653E",loop:"\u662F\u5426\u5FAA\u73AF\u64AD\u653E",muted:"\u662F\u5426\u9759\u97F3",controls:"\u662F\u5426\u663E\u793A\u63A7\u5236\u6761",preload:"\u9884\u52A0\u8F7D"}},barCodeBox:{name:"\u6761\u5F62\u7801",props:{value:"\u5185\u5BB9",format:"\u6761\u5F62\u7801\u7684\u7C7B\u578B",width:"\u5355\u4E2A\u6761\u5F62\u7684\u5BBD\u5EA6",height:"\u6761\u5F62\u7801\u7684\u9AD8\u5EA6",displayValue:"\u662F\u5426\u663E\u793A\u5185\u5BB9",fontSize:"\u8BBE\u7F6E\u6587\u5B57\u7684\u5927\u5C0F",textPosition:"\u8BBE\u7F6E\u6587\u5B57\u7684\u4F4D\u7F6E",textAlign:"\u8BBE\u7F6E\u6587\u5B57\u7684\u5BF9\u9F50\u65B9\u5F0F",textMargin:"\u8BBE\u7F6E\u6587\u5B57\u7684\u8FB9\u8DDD",background:"\u6761\u5F62\u7801\u7684\u80CC\u666F\u8272",lineColor:"\u7EBF\u6761\u7684\u989C\u8272"}},iframeBox:{name:"\u5185\u5D4C\u9875\u9762",event:{load:"\u9875\u9762\u52A0\u8F7D\u5B8C\u6210\u540E\u89E6\u53D1"},loadingOpt:{eager:"\u7ACB\u5373\u52A0\u8F7D",lazy:"\u5EF6\u8FDF\u52A0\u8F7D"},props:{src:"\u9875\u9762\u94FE\u63A5",loading:"\u52A0\u8F7D\u65B9\u5F0F"}},qrCodeBox:{name:"\u4E8C\u7EF4\u7801",circleTypeOpt:{square:"\u6B63\u65B9\u5F62",dots:"\u70B9\u72B6",rounded:"\u5706\u5F62",classy:"\u7ECF\u5178"},props:{data:"\u5185\u5BB9",image:"\u4E2D\u5FC3\u7684\u56FE\u7247\u94FE\u63A5",width:"\u4E8C\u7EF4\u7801\u7684\u5BBD\u5EA6",height:"\u4E8C\u7EF4\u7801\u7684\u9AD8\u5EA6",circleType:"\u70B9\u7684\u7C7B\u578B",circleColor:"\u70B9\u7684\u989C\u8272"}},signaturePad:{name:"\u624B\u5199\u7B7E\u540D",props:{penColor:"\u7EBF\u6761\u7684\u989C\u8272"}},videoBox:{name:"\u89C6\u9891\u64AD\u653E\u5668",event:{error:"\u89C6\u9891\u52A0\u8F7D\u5931\u8D25\u65F6\u89E6\u53D1",pause:"\u89C6\u9891\u64AD\u653E\u6682\u505C\u65F6\u89E6\u53D1",play:"\u89C6\u9891\u5F00\u59CB\u64AD\u653E\u65F6\u89E6\u53D1",ended:"\u89C6\u9891\u64AD\u653E\u7ED3\u675F\u540E\u89E6\u53D1"},props:{src:"\u89C6\u9891\u5730\u5740",type:"\u89C6\u9891\u7C7B\u578B",autoplay:"\u662F\u5426\u81EA\u52A8\u64AD\u653E",loop:"\u662F\u5426\u5FAA\u73AF\u64AD\u653E",isLive:"\u662F\u5426\u662F\u76F4\u64AD",controls:"\u662F\u5426\u663E\u793A\u63A7\u5236\u6761",withCredentials:"\u662F\u5426\u643A\u5E26\u51ED\u8BC1"}}},tmp:{duration:"\u65F6\u957F",chineseAmount:"\u91D1\u989D",col3:"\u4E09\u5217\u6805\u683C",col4:"\u56DB\u5217\u6805\u683C",table43:"4x3\u8868\u683C"}},ts=(e,t)=>Jl.message[t||"info"]({content:e}),qt=e=>ts(e,"error"),pa=function(e,t,i,r){return t.forEach(o=>{e.indexOf(o[i||"id"])>-1&&e.splice(e.indexOf(o[i||"id"]),1,o[r||"label"]),at.trueArray(o.children)&&pa(e,o.children,i,r)}),e},Yv=function(e,t){return t.forEach(i=>{e.indexOf(i.value)>-1&&(e[e.indexOf(i.value)]=i.label)}),e};function ar(e){if(e){if(!Array.isArray(e))return[e]}else return[];return e}function Qv(e,t){let i=t.rule.value;const r=t.$render.vNode.h,o=t.type,s=t.$handle.subForm[t.id],d=t.prop.readMode;if(t.prop.title.title&&t.prop.title.title.trim()&&(t.prop.title.title+="\uFF1A"),d===!1||d==="custom"||!t.input||t.rule.subForm||(Array.isArray(s)?s.length:s)||["fcGroup","fcSubForm","tableForm","stepForm","nestedTableForm","infiniteTableForm","fcUpload"].indexOf(t.trueType)>-1)return t.parser.render(e,t);if(["radio","select","checkbox"].indexOf(o)>-1)i=Yv([...ar(i)],t.prop.props.options||t.prop.props.formCreateInject.options||[]).join(", ");else if(["timePicker","datePicker","slider"].indexOf(o)>-1)i=Array.isArray(i)?i.join(" - "):i;else if(o==="cascader")i=[...ar(i)],Array.isArray(i[0])||(i=[i]),i=i.map(c=>pa(c,t.prop.props.options||t.prop.props.formCreateInject.options||[],"value").join("/")).join(", ");else if(o==="aTransfer"){const c=[...ar(i)];i=pa(c,t.prop.props.dataSource||t.prop.props.formCreateInject.options||[],"key").join(", ")}else if(["tree","aTreeSelect"].indexOf(o)>-1){const c=t.prop.props.treeData||t.prop.props.formCreateInject.options||[];i=pa([...ar(i)],c,o==="aTreeSelect"?"value":"id").join(", ")}else{if(o==="fcEditor"||d==="html")return r("div",{innerHTML:i});if(d==="image")return i=ar(i),r("div",{class:"_fc-upload"},[r("a-image-preview-group",{},{default:()=>i.map(function(c){return r("div",{class:"_fc-upload-preview"},[r("a-image",{style:{height:"100%"},src:typeof c=="object"?c.url:c})])})})]);if((o==="switch"||o==="a-switch")&&(t.prop.props.checkedValue!=null||t.prop.props.unCheckedValue!=null))i=t.prop.props.checkedValue===i?"\u662F":"\u5426";else{if(o==="signaturePad"&&i)return r("a-image",{src:i,fit:"cover",style:{height:"90px"}});typeof i=="boolean"&&(i=i?"\u662F":"\u5426")}}return r("span",{class:"_fc-read-view"},[""+(i==null?"":i)])}function Xv(e,t){return`<template>
<form-create
v-model="formData"
v-model:api="fapi"
:rule="rule"
:option="option"
@submit="onSubmit"
></form-create>
</template>
<script>
import formCreate from "@form-create/ant-design-vue";
export default {
components: {
formCreate: formCreate.$form()
},
data () {
const option = formCreate.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}');
//\u5F00\u542F\u9605\u8BFB\u6A21\u5F0F
//option.preview = true;
return {
formData: {},
fapi: null,
rule: formCreate.parseJson('${e.replaceAll("\\","\\\\").replaceAll("'","\\'")}'),
option: option
}
},
methods: {
onSubmit (formData) {
//todo \u63D0\u4EA4\u8868\u5355
}
}
}
<\/script>`}function Jv(e,t){return`<template>
<form-create
v-model="formData"
v-model:api="fapi"
:rule="rule"
:option="option"
@submit="onSubmit"
></form-create>
</template>
<script setup>
import {ref} from "vue";
import formCreate from "@form-create/ant-design-vue";
const option = ref(formCreate.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
const rule = ref(formCreate.parseJson('${e.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
const fapi = ref(null);
const formData = ref({});
const onSubmit = (formData) => {
//todo \u63D0\u4EA4\u8868\u5355
}
<\/script>`}function Zv(e,t){return`<template>
<form-create-mobile
driver="antd"
v-model="formData"
v-model:api="fapi"
:rule="rule"
:option="option"
@submit="onSubmit"
></form-create-mobile>
</template>
<script>
import formCreate from "@form-create/vant";
export default {
components: {
formCreateMobile: formCreate.$form()
},
data () {
const option = formCreate.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}');
//\u5F00\u542F\u9605\u8BFB\u6A21\u5F0F
//option.preview = true;
return {
formData: {},
fapi: null,
rule: formCreate.parseJson('${e.replaceAll("\\","\\\\").replaceAll("'","\\'")}'),
option: option
}
},
methods: {
onSubmit (formData) {
//todo \u63D0\u4EA4\u8868\u5355
}
}
}
<\/script>`}function qv(e,t){return`<template>
<form-create-mobile
driver="antd"
v-model="formData"
v-model:api="fapi"
:rule="rule"
:option="option"
@submit="onSubmit"
></form-create-mobile>
</template>
<script setup>
import {ref} from "vue";
import formCreateMobile from "@form-create/vant";
const option = ref(formCreateMobile.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
const rule = ref(formCreateMobile.parseJson('${e.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
const fapi = ref(null);
const formData = ref({});
const onSubmit = (formData) => {
//todo \u63D0\u4EA4\u8868\u5355
}
<\/script>`}function ns(){return{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"}}function IM(e){}function Tn(e,t,i){const r=[{label:e("fetch.optionsType.struct"),value:2},{label:e("fetch.optionsType.fetch"),value:3},{label:e("fetch.optionsType.global"),value:1}],o=[{value:1,rule:[{type:"GlobalFetchSelect",field:"formCreateEffect>fetch",props:{to:t}}]},{value:3,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:t}}]},{value:2,rule:[{type:"Struct",field:"formCreate"+fi(t).replace(".",">"),title:i||e("props.options"),_fc_important_prop:!0,wrap:{show:!1}}]}];return{type:"radio",title:i||e("props.options"),field:"_optionType",value:2,options:r,props:{type:"button"},control:o}}function Fn(e,t,i,r=[]){t.id||(t.id=1),i&&i--;for(let o=0;o<3;o++){const s={[t.label]:e+i*10+(o+1),[t.value]:""+t.id++};i&&Fn(e+(o+1)+"-",t,i,s.children=[]),r.push(s)}return r}function os(e){return[{type:"ConfigItem",col:{show:!0},name:"labelConfig",style:"margin-bottom: 10px",props:{label:e("form.formItem")},children:[{type:"HideConfig",field:"formCreateNative",_fc_important_prop:!1,col:{show:!1},wrap:{show:!1},value:!1,props:{activeValue:!1,inactiveValue:!0}},{type:"input",field:"formCreateTitle",title:e("form.title"),_fc_important_prop:!1,col:{show:!1},slot:"append"},{type:"select",field:"formCreateWrap>labelAlign",_fc_important_prop:!1,col:{show:!1},options:st(e,[{label:"left",value:"left"},{label:"right",value:"right"}]),slot:"append",title:e("form.labelAlign")},{type:"SizeInput",field:"formCreateWrap>labelCol>style>width",_fc_important_prop:!1,col:{show:!1},value:"",slot:"append",title:e("form.labelCol")}]}]}function Eo(e,t,i,r){const o=[{label:e("fetch.optionsType.struct"),value:2},{label:e("fetch.optionsType.fetch"),value:3},{label:e("fetch.optionsType.global"),value:1}],s=[{value:1,rule:[{type:"GlobalFetchSelect",field:"formCreateEffect>fetch",props:{to:t}}]},{value:3,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:t}}]},{value:2,rule:[{type:"TableOptions",field:"formCreate"+fi(t).replace(".",">"),title:e("props.options"),_fc_important_prop:!0,wrap:{show:!1},props:{column:[{label:"label",key:i||"label"},{value:!0,label:"value",key:r||"value"}],keyValue:i||"label"}}]}];return{type:"radio",title:e("props.options"),field:"_optionType",value:2,options:o,props:{optionType:"button"},control:s}}function ui(e,t,i,r){const o=[{label:e("fetch.optionsType.struct"),value:2},{label:e("fetch.optionsType.fetch"),value:3},{label:e("fetch.optionsType.global"),value:1}],s=[{value:1,rule:[{type:"GlobalFetchSelect",field:"formCreateEffect>fetch",props:{to:t}}]},{value:3,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:t}}]},{value:2,rule:[{type:"TreeOptions",field:"formCreate"+fi(t).replace(".",">"),title:e("props.options"),_fc_important_prop:!0,wrap:{show:!1},props:{columns:{label:i,value:r},keyValue:i}}]}];return{type:"radio",title:e("props.options"),field:"_optionType",value:2,options:o,props:{optionType:"button"},control:s}}function fi(e){return e.replace(e[0],e[0].toLocaleUpperCase())}const fn=function(e){const t=/object ([a-zA-Z]*)/.exec(Object.prototype.toString.call(e));return t&&Hu[t[1].toLowerCase()]?Hu[t[1].toLowerCase()](e):e},Hu={object:function(e){var t=[];for(var i in e)!In(e,i)||t.push(fn(i)+": "+(e[i]!=null?fn(e[i]):"null"));return`{
`+t.join(`,
`)+`
}`},function:function(e){e=""+e;var t=/^ *([\w]+) *\(/.exec(e);return t&&t[1]!=="function"?"function "+e:e},array:function(e){for(var t=0,i=[];t<e.length;t++)i[t]=e[t]!=null?fn(e[t]):"null";return"["+i.join(", ")+"]"},string:function(e){for(var t=e.split(""),i=0;i<t.length;i++){var r=t[i];r>=" "?r==="\\"?t[i]="\\\\":r==='"'&&(t[i]='\\"'):t[i]=r===`
`?"\\n":r==="\r"?"\\r":r===" "?"\\t":r==="\b"?"\\b":r==="\f"?"\\f":(r=r.charCodeAt(),"\\u00"+(r>15?1:0)+r%16)}return'"'+t.join("")+'"'}},Uu=function(e){if(e&&typeof e=="object"){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let i=e[t];(Array.isArray(i)||at.Object(i))&&Uu(i),at.String(i)&&(e[t]=es(i))}}return e};function pi(e,t,i){t=(t||"").split(".");let r=0,o=t.length;for(;e!=null&&r<o;)e=e[t[r++]];return r&&r===o&&e!==void 0?e:i}const ey=e=>(t,i)=>ty(t,i,n.unref(e)),ty=(e,t,i)=>pi(i,e,"").replace(/\{(\w+)\}/g,(r,o)=>{var s;return`${(s=t==null?void 0:t[o])!=null?s:`{${o}}`}`}),ny=e=>{const t=n.computed(()=>n.unref(e).name),i=n.computed(()=>fi(ju(t.value||""))),r=n.isRef(e)?e:n.ref(e);return{lang:t,name:i,locale:r,t:ey(e)}},is=e=>ny(n.computed(()=>(n.isRef(e)?e.value:e)||zu)),st=(e,t,i)=>t.map(r=>(r.label=e((i||"props")+"."+(r.label||r.value))||r.label,r)),Pe=(e,t,i)=>i.map(r=>(r.field==="formCreate$required"?r.title=e("validate.required")||r.title:r.field&&r.field!=="_optionType"&&(r.title=e("com."+t+"."+r.field)||r.title),r.type==="template"&&at.trueArray(r.children)&&(r.children=Pe(e,t,r.children)),r)),rs=e=>{const t=[];return e&&e.forEach(i=>{if(!i._fc_drag_skip)if(i._fc_drag_tag){const r={id:i.__fc__.id,rule:i,children:rs(i.children)};r.children.length||delete r.children,t.push(r)}else t.push(...rs(i.children))}),t},Wu=e=>{const t=i=>{const r=[];return i&&i.forEach(o=>{o._fc_drag_skip||(o.field?(o.children=t(o.children||[]),o.children.length||delete o.children,r.push(o)):r.push(...t(o.children||[])))}),r};return t(e)},Gu=e=>{const t=i=>{const r=[];return i&&i.forEach(o=>{if(typeof o=="object")if(o._fc_drag_tag){const s={_fc_id:o._fc_id,_fc_drag_tag:o._fc_drag_tag==="_"?void 0:o._fc_drag_tag,type:o.type,field:o.field,title:o.title,name:o.name,slot:o.slot,props:{...o.props||{}},children:t(o.children||[])};o.children&&typeof o.children[0]=="string"&&(s.content=o.children[0]),s.children.length||delete s.children,r.push(s)}else r.push(...t(o.children))}),r};return t(e)};function bn(e){return{name:"$inject",columns:[{label:"$inject.api",info:e("event.inject.api"),type:"Api"},{label:"$inject.rule",info:e("event.inject.rule"),type:"Rule[]"},{label:"$inject.self",info:e("event.inject.self"),type:"Rule"},{label:"$inject.option",info:e("event.inject.option"),type:"Object"},{label:"$inject.args",info:e("event.inject.args"),type:"Array"}]}}function Gn(e){return["",null,void 0].indexOf(e)!==-1}function Ku(e){return e.replace(/[\ .*+?^${}()|[\]\\]/g,"\\$&")}function oy(e,t){const i=e.split("."),r=t.split("."),o=Math.min(i.length,r.length);for(var s=0;s<o;s++){var d=parseInt(i[s],10)-parseInt(r[s],10);if(d>0)return 1;if(d<0)return-1}return i.length===r.length?0:i.length<r.length?-1:1}function Kn(e){const t=document.createElement("textarea");t.style.position="fixed",t.style.top=0,t.style.left="-9999px",t.value=e,document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}catch{console.log("Oops, unable to copy")}ts("\u5DF2\u590D\u5236!","success"),document.body.removeChild(t)}function as(e){return e.filter((t,i)=>e.indexOf(t)===i)}function ls(e,t=null){return e.forEach(i=>{Object.defineProperty(i,"$parent",{value:t,enumerable:!1,writable:!0,configurable:!0}),i.children&&Array.isArray(i.children)&&ls(i.children,i)}),e}let iy=0;function Ye(){const e=370+ ++iy;return"F"+Math.random().toString(36).substr(3,3)+Number(`${Date.now()}`).toString(36)+e.toString(36)+"c"}function ry(e,t){return function(i,r,o){const s={...i||{}};Object.keys(s).forEach(d=>{Gn(s[d])&&delete s[d]}),o.getRule(e).props.info=Object.keys(s).length>0?t("struct.configured"):""}}function Yu({t:e}){const t=Ye();return[{type:"input",field:">formName",value:"",title:e("form.formName")},{type:"radio",field:"layout",value:"horizontal",title:e("form.layout"),options:st(e,[{value:"horizontal",label:"horizontal"},{value:"vertical",label:"vertical"}])},{type:"radio",field:"labelAlign",value:"left",title:e("form.layout"),options:st(e,[{value:"left",label:"left"},{value:"right",label:"right"}])},{type:"switch",field:"labelWrap",value:!1,title:e("form.labelWrap")},{type:"radio",field:"size",value:"small",title:e("form.size"),options:st(e,[{value:"large",label:"large"},{value:"middle",label:"middle"},{value:"small",label:"small"}])},{type:"switch",field:"colon",value:!1,title:e("form.colon")},{type:"SizeInput",field:">form>labelCol>style>width",value:"",title:e("form.labelCol")},{type:"switch",field:"hideRequiredMark",value:!1,title:e("form.hideRequiredMark")},{type:"switch",field:"scrollToFirstError",value:!1,title:e("form.scrollToFirstError")},{type:"switch",field:"_submitBtn>show",value:!0,title:e("form.submitBtn")},{type:"switch",field:"_resetBtn>show",value:!1,title:e("form.resetBtn")},{type:"switch",field:">ignoreHiddenFields",value:!1,title:e("form.ignoreHiddenFields"),warning:e("warning.ignoreHiddenFields")},{type:"ConfigItem",col:{show:!0},name:t,style:"margin-bottom: 10px",props:{label:e("form.labelStyle"),info:""},children:[{type:"StyleConfig",field:"title>style",wrap:{show:!1},value:{},slot:"append",update:ry(t,e)}]},{type:"FnConfig",field:">_event",value:{},col:{show:!0},props:{eventConfig:[{name:"onSubmit",info:e("form.onSubmit"),args:["formData","api"]},{name:"onReset",info:e("form.onReset"),args:["api"]},{name:"onCreated",info:e("form.onCreated"),args:["api"]},{name:"onMounted",info:e("form.onMounted"),args:["api"]},{name:"onReload",info:e("form.onReload"),args:["api"]},{name:"onChange",info:e("form.onChange"),args:["field","value","options"]},{name:"beforeFetch",info:e("form.beforeFetch"),args:["config","data"]}]},title:e("form.event")}]}function lr({t:e}){return[{type:"FieldInput",field:"field",value:"",title:e("form.field"),warning:e("warning.field")},{type:"LanguageInput",field:"title",value:"",title:e("form.title")},{type:"LanguageInput",field:"info",value:"",title:e("form.info")},{type:"SpanInput",field:"formCreateCol>span",title:e("form.formItemSpan")},{type:"ConfigItem",col:{show:!0},name:"labelConfig",style:"margin-bottom: 10px",props:{label:e("form.ignore"),warning:e("warning.ignore")},children:[{type:"switch",field:"ignore",value:!1,wrap:{show:!1},col:{show:!1}}]},{type:"ConfigItem",col:{show:!0},name:"labelConfig",style:"margin-bottom: 10px",props:{label:e("form.formItem")},children:[{type:"HideConfig",field:"formCreateWrap>title",col:{show:!1},wrap:{show:!1},value:!0},{type:"select",field:"formCreateWrap>labelAlign",col:{show:!1},options:st(e,[{label:"left",value:"left"},{label:"right",value:"right"}]),slot:"append",title:e("form.labelAlign")},{type:"SizeInput",field:"formCreateWrap>labelCol>style>width",col:{show:!1},value:"",slot:"append",title:e("form.labelCol")}]},{type:"Struct",field:"_control",name:"control",value:[],title:e("form.control"),warning:e("form.controlDocument",{doc:'<a target="_blank" href="https://form-create.com/v3/guide/control" style="color: inherit;text-decoration: underline;">'+e("form.document")+"</a>"}),props:{defaultValue:[],validate(t){return Array.isArray(t)?t.length?!t.some(({rule:i})=>!Array.isArray(i)):!0:!1}}}]}function Qu({t:e}){return[{type:"input",title:"ID",field:"id"},{type:"GlobalClassSelect",title:"Class",field:"class"},{type:"StyleConfig",field:"style",title:"",value:{}}]}function Xu({t:e}){return[{type:"ComputedConfig",field:"value",value:"",props:{type:"linkage",btn:e("computed.value.btn"),title:e("computed.value.title"),name:e("computed.value.name")},title:e("computed.value.title")},{type:"ComputedConfig",field:"hidden",value:"",props:{btn:e("computed.hidden.btn"),title:e("computed.hidden.title"),name:e("computed.hidden.name"),invertLabel:e("props.show"),validLabel:e("props.hide")},title:e("computed.hidden.title")},{type:"ComputedConfig",field:"$required",value:"",props:{btn:e("computed.required.btn"),title:e("computed.required.title"),name:e("computed.required.name"),invertLabel:e("validate.modes.notRequired"),validLabel:e("validate.modes.required")},title:e("computed.required.title")},{type:"ComputedConfig",field:"props.disabled",value:"",props:{btn:e("computed.disabled.btn"),title:e("computed.disabled.title"),name:e("computed.disabled.name"),invertLabel:e("props.enable"),validLabel:e("props.disabled")},title:e("computed.disabled.title")}]}function Ju({t:e}){return[{type:"Required",field:"$required",title:e("validate.required")},{type:"validate",field:"validate",title:e("validate.rule"),value:[]}]}function ay(e){e=e||new Map;const t={$on(i,r){const o=e.get(i);o&&o.push(r)||e.set(i,[r])},$once(i,r){r._once=!0,t.$on(i,r)},$off(i,r){const o=e.get(i);o&&o.splice(o.indexOf(r)>>>0,1)},$emit(i,...r){(e.get(i)||[]).slice().map(o=>{o._once&&(t.$off(i,o),delete o._once),o(...r)}),(e.get("*")||[]).slice().map(o=>{o(i,r)})}};return t}const ly="\u5355\u9009\u6846",ss="radio",sy={menu:"main",icon:"icon-radio",label:ly,name:ss,input:!0,event:["change"],validate:["string","number"],condition:{type:"select",options:"options"},sfc(e){e.type="aRadioGroup",e.props.options=e.options||[]},rule({t:e}){return{type:ss,field:Ye(),title:e("com.radio.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:Fn(e("props.option"),{label:"label",value:"value"},1)}},props(e,{t}){return Pe(t,ss+".props",[Eo(t,"options"),{type:"switch",field:"disabled"},{type:"switch",field:"optionType",props:{checkedValue:"button",unCheckedValue:"default"}}])}},dy="\u591A\u9009\u6846",ds="checkbox",cy={menu:"main",icon:"icon-checkbox",label:dy,name:ds,input:!0,event:["change"],validate:["array"],condition:{type:"select",options:"options"},sfc(e){e.type="aCheckboxGroup",e.props.options=e.options||[]},rule({t:e}){return{type:ds,field:Ye(),title:e("com.checkbox.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:Fn(e("props.option"),{label:"label",value:"value"},1)}},props(e,{t}){return Pe(t,ds+".props",[Eo(t,"options"),{type:"switch",field:"disabled"}])}},uy="\u8F93\u5165\u6846",cs="input",fy={menu:"main",icon:"icon-input",label:uy,name:cs,input:!0,easySlots:["addonBefore","addonAfter","prefix","suffix"],event:["blur","focus","change","pressEnter"],validate:["string","url","email"],rule({t:e}){return{type:cs,field:Ye(),title:e("com.input.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Pe(t,cs+".props",[{type:"switch",field:"disabled"},{type:"select",field:"type",options:st(t,[{label:"text",value:"text"},{label:"number",value:"number"},{label:"time",value:"time"},{label:"date",value:"date"},{label:"month",value:"month"},{label:"datetime-local",value:"datetime-local"}])},{type:"inputNumber",field:"maxlength",props:{min:0}},{type:"input",field:"placeholder"},{type:"switch",field:"allowClear"},{type:"switch",field:"showCount"},{type:"switch",field:"bordered",value:!0}])}},py={menu:"main",icon:"icon-textarea",label:"\u591A\u884C\u8F93\u5165\u6846",name:"textarea",input:!0,event:["blur","focus","change","pressEnter"],validate:["string"],rule({t:e}){return{type:"input",field:Ye(),title:e("com.textarea.name"),info:"",$required:!1,props:{type:"textarea"}}},props(e,{t}){return Pe(t,"input.props",[{type:"switch",field:"disabled"},{type:"inputNumber",field:"maxlength",props:{min:0}},{type:"input",field:"placeholder"},{type:"switch",field:"allowClear"},{type:"switch",field:"showCount"},{type:"switch",field:"autoSize"},{type:"switch",field:"bordered",value:!0}])}},hy="\u5BC6\u7801\u8F93\u5165\u6846",Zu="password",my={menu:"main",icon:"icon-password",label:hy,name:Zu,input:!0,easySlots:["addonBefore","addonAfter","prefix"],event:["blur","focus","change","pressEnter"],validate:["string"],rule({t:e}){return{type:"input",field:Ye(),title:e("com.password.name"),info:"",$required:!1,props:{type:"password"}}},props(e,{t}){return Pe(t,Zu+".props",[{type:"switch",field:"disabled"},{type:"inputNumber",field:"maxlength",props:{min:0}},{type:"input",field:"placeholder"},{type:"switch",field:"allowClear"},{type:"switch",field:"visibilityToggle"},{type:"switch",field:"showCount"},{type:"switch",field:"bordered",value:!0}])}},gy="\u8BA1\u6570\u5668",us="inputNumber",vy={menu:"main",icon:"icon-number",label:gy,name:us,input:!0,easySlots:["addonBefore","addonAfter","prefix"],event:["blur","focus","change","pressEnter","step"],validate:["number","integer","float"],condition:"number",rule({t:e}){return{type:us,field:Ye(),title:e("com.inputNumber.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Pe(t,us+".props",[{type:"switch",field:"disabled"},{type:"inputNumber",field:"min"},{type:"inputNumber",field:"max"},{type:"inputNumber",title:"precision",field:"precision"},{type:"inputNumber",field:"step",props:{min:0}},{type:"switch",field:"controls",value:!0},{type:"switch",field:"bordered",value:!0},{type:"input",field:"placeholder"}])}},yy="\u9009\u62E9\u5668",fs="select",by={menu:"main",icon:"icon-select",label:yy,name:fs,input:!0,event:["change","search","select","blur","focus"],validate:["string","number","array"],condition:{type:"select",options:"options"},sfc(e){e.type="aSelect",e.props.options=e.options||[]},rule({t:e}){return{type:fs,field:Ye(),title:e("com.select.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:Fn(e("props.option"),{label:"label",value:"value"},1)}},watch:{multiple({rule:e}){e.key=Ye()}},props(e,{t}){return Pe(t,fs+".props",[Eo(t,"options"),{type:"switch",field:"disabled"},{type:"switch",field:"allowClear"},{type:"select",field:"mode",options:st(t,[{label:"multiple",value:"multiple"},{label:"tags",value:"tags"},{label:"combobox",value:"combobox"}],"com.select.modeOpt")},{type:"input",field:"placeholder"},{type:"switch",field:"bordered"}])}},Cy="\u5F00\u5173",ps="switch",_y={menu:"main",icon:"icon-switch",label:Cy,name:ps,input:!0,event:["change"],condition:function(e){return{type:"switch",props:{checkedValue:e.props.checkedValue,unCheckedValue:e.props.unCheckedValue,checkedChildren:e.props.checkedChildren,unCheckedChildren:e.props.unCheckedChildren}}},rule({t:e}){return{type:ps,field:Ye(),title:e("com.switch.name"),info:"",$required:!1,props:{checkedValue:!0,unCheckedValue:!1}}},props(e,{t}){return Pe(t,ps+".props",[{type:"switch",field:"disabled"},{type:"input",field:"checkedChildren"},{type:"input",field:"unCheckedChildren"},{type:"ValueInput",field:"checkedValue"},{type:"ValueInput",field:"unCheckedValue"}])}},wy="\u6ED1\u5757",hs="slider",Ey={menu:"main",icon:"icon-slider",label:wy,name:hs,input:!0,event:["change"],validate:["number","array"],condition:"number",rule({t:e}){return{type:hs,field:Ye(),title:e("com.slider.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Pe(t,hs+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"range"},{type:"inputNumber",field:"min",props:{min:0}},{type:"inputNumber",field:"max",props:{min:0}},{type:"inputNumber",field:"step",props:{min:0}},{type:"switch",field:"dots"},{type:"switch",field:"vertical"}])}},Ay="\u65F6\u95F4",sr="timePicker",Sy={menu:"main",icon:"icon-time",label:Ay,name:sr,input:!0,event:["change"],sfc(e){e.props.valueFormat||(e.props.valueFormat="HH:mm:ss")},rule({t:e}){return{type:sr,field:Ye(),title:e("com.timePicker.name"),info:"",$required:!1,props:{}}},watch:{isRange({rule:e}){e.key=Ye()},__format({value:e,rule:t}){t.props.format=e,t.props.valueFormat=e}},attrs:{format({rule:e}){return e.props.format||""}},props(e,{t}){return Pe(t,sr+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"allowClear",value:!0},{type:"select",field:"__format",options:[{label:t("com."+sr+".HH:mm:ss"),value:"HH:mm:ss"},{label:t("com."+sr+".HH:mm"),value:"HH:mm"}]},{type:"inputNumber",field:"hourStep"},{type:"inputNumber",field:"minuteStep"},{type:"inputNumber",field:"secondStep"},{type:"switch",field:"inputReadOnly",value:!1},{type:"input",field:"placeholder"},{type:"switch",field:"bordered",value:!0}])}},xy={menu:"main",icon:"icon-time-range",label:"\u65F6\u95F4\u533A\u95F4",name:"timeRange",input:!0,event:["change"],sfc(e){e.type="aTimeRangePicker",e.props.valueFormat||(e.props.valueFormat="HH:mm:ss"),delete e.props.range},rule({t:e}){return{type:"timePicker",field:Ye(),title:e("com.timeRange.name"),info:"",$required:!1,props:{range:!0}}},watch:{__format({value:e,rule:t}){t.props.format=e,t.props.valueFormat=e},__startPlaceholder({value:e,rule:t}){Array.isArray(t.props.placeholder)?t.props.placeholder[0]=e:t.props.placeholder=[e]},__endPlaceholder({value:e,rule:t}){Array.isArray(t.props.placeholder)?t.props.placeholder[1]=e:t.props.placeholder=[null,e]}},attrs:{format({rule:e}){return e.props.format||""},startPlaceholder({rule:e}){return Array.isArray(e.props.placeholder)?e.props.placeholder[0]:""},endPlaceholder({rule:e}){return Array.isArray(e.props.placeholder)?e.props.placeholder[1]:""}},props(e,{t}){return Pe(t,"timePicker.props",[{type:"switch",field:"disabled"},{type:"switch",field:"allowClear",value:!0},{type:"select",field:"__format",options:[{label:t("com.timePicker.HH:mm:ss"),value:"HH:mm:ss"},{label:t("com.timePicker.HH:mm"),value:"HH:mm"}]},{type:"inputNumber",field:"hourStep"},{type:"inputNumber",field:"minuteStep"},{type:"inputNumber",field:"secondStep"},{type:"switch",field:"inputReadOnly",value:!1},{type:"input",field:"__startPlaceholder"},{type:"input",field:"__endPlaceholder"},{type:"switch",field:"bordered",value:!0}])}},ky="\u65E5\u671F",ms="datePicker",qu={date:"YYYY-MM-DD",month:"YYYY-MM",datetime:"YYYY-MM-DD HH:mm:ss",week:"YYYY-wo",quarter:"YYYY-QQ",year:"YYYY"},ef={menu:"main",icon:"icon-date",label:ky,name:ms,input:!0,event:["change","ok"],sfc(e){e.props.valueFormat||(e.props.valueFormat=qu[e.props.type]||qu.date)},rule({t:e}){return{type:ms,field:Ye(),title:e("com.datePicker.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Pe(t,ms+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"bordered",value:!0},{type:"select",field:"picker",options:st(t,[{label:"year",value:"year"},{label:"month",value:"month"},{label:"date",value:"date"},{label:"week",value:"week"},{label:"quarter",value:"quarter"}])},{type:"switch",field:"showTime"},{type:"switch",field:"allowClear"},{type:"switch",field:"inputReadOnly"},{type:"input",field:"placeholder"},{type:"input",field:"format"},{type:"input",field:"valueFormat"}])}},Ny={menu:"main",icon:"icon-date-range",label:"\u65E5\u671F\u533A\u95F4",name:"dateRange",input:!0,event:["change","ok","calendarChange"],sfc(e){e.type="aRangePicker",ef.sfc(e),delete e.props.range},rule({t:e}){return{type:"datePicker",field:Ye(),title:e("com.dateRange.name"),info:"",$required:!1,props:{range:!0}}},watch:{__startPlaceholder({value:e,rule:t}){Array.isArray(t.props.placeholder)?t.props.placeholder[0]=e:t.props.placeholder=[e]},__endPlaceholder({value:e,rule:t}){Array.isArray(t.props.placeholder)?t.props.placeholder[1]=e:t.props.placeholder=[null,e]}},attrs:{startPlaceholder({rule:e}){return Array.isArray(e.props.placeholder)?e.props.placeholder[0]:""},endPlaceholder({rule:e}){return Array.isArray(e.props.placeholder)?e.props.placeholder[1]:""}},props(e,{t}){return Pe(t,"datePicker.props",[{type:"switch",field:"disabled"},{type:"switch",field:"bordered",value:!0},{type:"select",field:"picker",options:st(t,[{label:"year",value:"year"},{label:"month",value:"month"},{label:"date",value:"date"},{label:"week",value:"week"},{label:"quarter",value:"quarter"}])},{type:"switch",field:"showTime"},{type:"switch",field:"allowClear"},{type:"switch",field:"inputReadOnly"},{type:"input",field:"__startPlaceholder"},{type:"input",field:"__endPlaceholder"},{type:"input",field:"separator"},{type:"input",field:"format"},{type:"input",field:"valueFormat"}])}},Ty="\u8BC4\u5206",gs="rate",Oy={menu:"main",icon:"icon-rate",label:Ty,name:gs,input:!0,event:["change"],validate:["number"],condition:"number",rule({t:e}){return{type:gs,field:Ye(),title:e("com.rate.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Pe(t,gs+".props",[{type:"inputNumber",field:"count",props:{min:0}},{type:"switch",field:"disabled"},{type:"switch",field:"allowHalf"},{type:"switch",field:"allowClear",value:!0}])}},Dy="\u6805\u683C\u5E03\u5C40",vs="fcRow",By={menu:"layout",icon:"icon-row",label:Dy,name:vs,mask:!1,children:"col",childrenLen:2,subRender({t:e,h:t,resolveComponent:i,subRule:r}){return[{label:e("style.width"),vnode:t(i("a-slider"),{style:"width:100%;",size:"small",min:0,max:24,value:r.props.span,"onUpdate:value":o=>{r.props.span=o}})}]},sfc(e){e.type="aRow"},rule(){return{type:vs,props:{},children:[]}},props(e,{t}){return Pe(t,vs+".props",[{type:"inputNumber",field:"gutter",props:{min:0}},{type:"select",field:"justify",options:[{label:"start",value:"start"},{label:"end",value:"end"},{label:"center",value:"center"},{label:"space-around",value:"space-around"},{label:"space-between",value:"space-between"}]},{type:"select",field:"align",options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}]}])}},ys="col",tf={xxs:"<576px",sm:"\u2265576px",md:"\u2265768px",lg:"\u2265992px",xl:"\u22651200px",xxl:"\u22651600px"},$y={name:ys,label:"\u683C\u5B50",drag:!0,dragBtn:!1,inside:!0,mask:!1,rule(){return{type:ys,props:{span:12},children:[]}},props(e,{t}){return Pe(t,ys+".props",[{type:"slider",field:"span",value:12,props:{min:0,max:24}},{type:"slider",field:"offset",props:{min:0,max:24}},{type:"slider",field:"push",props:{min:0,max:24}},{type:"slider",field:"pull",props:{min:0,max:24}},{type:"ConfigItem",props:{label:t("props.reactive"),warning:t("com.col.info")},children:[{type:"aTabs",style:{width:"100%"},slot:"append",children:Object.keys(tf).map(i=>({type:"aTabPane",props:{tab:tf[i]},style:"padding:0 10px;",children:[{type:"slider",field:i+">span",title:t("com.col.props.span"),value:12,props:{min:0,max:24}},{type:"slider",field:i+">offset",title:t("com.col.props.offset"),props:{min:0,max:24}},{type:"slider",field:i+">push",title:t("com.col.props.push"),props:{min:0,max:24}},{type:"slider",field:i+">pull",title:t("com.col.props.pull"),props:{min:0,max:24}}]}))}]}])}},Vy="\u9009\u9879\u5361",bs="aTabPane",Ry={label:Vy,name:bs,inside:!0,drag:!0,dragBtn:!1,mask:!1,rule({t:e}){return{type:bs,props:{tab:e("com.aTabPane.name")},children:[]}},props(e,{t}){return Pe(t,bs+".props",[{type:"input",field:"tab"},{type:"switch",field:"disabled"},{type:"input",field:"key"}])}},Iy="\u5206\u5272\u7EBF",Cs="aDivider",Fy={menu:"aide",icon:"icon-divider",label:Iy,name:Cs,rule({t:e}){return{type:Cs,props:{},children:[e("com.aDivider.name")]}},props(e,{t}){return Pe(t,Cs+".props",[{type:"select",field:"type",options:st(t,[{label:"horizontal",value:"horizontal"},{label:"vertical",value:"vertical"}])},{type:"input",field:"formCreateChild"},{type:"select",field:"orientation",options:st(t,[{label:"left",value:"left"},{label:"right",value:"right"},{label:"center",value:"center"}])},{type:"switch",field:"plain"},{type:"switch",field:"dashed"}])}},Py="\u7EA7\u8054\u9009\u62E9\u5668",_s="cascader",My={menu:"main",icon:"icon-cascader",label:Py,name:_s,input:!0,event:["change","dropdownVisibleChange","search"],validate:["string","number","array"],condition(e){return{type:"cascader",options:"props.options",props:{props:e.props&&e.props.props||{}}}},rule({t:e}){return{type:_s,field:Ye(),title:e("com.cascader.name"),info:"",effect:{fetch:""},$required:!1,props:{options:Fn(e("props.option"),{label:"label",value:"value"},3)}}},props(e,{t}){return Pe(t,_s+".props",[ui(t,"props.options"),{type:"switch",field:"disabled"},{type:"switch",field:"allowClear"},{type:"switch",field:"multiple"},{type:"input",field:"placeholder"},{type:"switch",field:"showSearch"}])}},Ly="\u4E0A\u4F20",ws="upload",jy={menu:"main",icon:"icon-upload",label:Ly,name:ws,input:!0,languageKey:["clickToUpload"],event:["change","download","preview","remove"],validate:["array"],sfc(e){e.type="aUpload",e.props.listType||(e.props.listType="picture-card"),e._sfc.modelField="fileList"},rule({t:e}){return{type:ws,field:Ye(),title:e("com.upload.name"),info:"",$required:!1,props:{action:"/",onSuccess:`$FNX:const file = $inject.args[0];
file.url = file.response.url;`}}},props(e,{t}){return Pe(t,ws+".props",[{type:"switch",field:"disabled"},{type:"select",field:"listType",options:st(t,[{label:"text",value:"text"},{label:"picture",value:"picture"},{label:"picture-card",value:"picture-card"}])},{type:"switch",field:"multiple"},{type:"input",field:"name"},{type:"PromptInput",field:"accept",props:{options:[{label:t("props.image"),value:"image/*"},{label:t("props.document"),value:".pdf,.doc,.docx,.xml,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"},{label:t("props.video"),value:"video/*"},{label:t("props.audio"),value:"audio/*"}]}},{type:"input",field:"action"},{type:"FnInput",field:"beforeUpload",props:{body:!0,button:!0,fnx:!0,args:[bn(t)],name:"beforeUpload"}},{type:"FnInput",field:"onSuccess",warning:t("com.upload.info"),props:{body:!0,button:!0,fnx:!0,args:[bn(t)],name:"onSuccess"}},{type:"FnInput",field:"customRequest",props:{body:!0,button:!0,fnx:!0,args:[bn(t)],name:"customRequest"}},{type:"TableOptions",field:"headers",props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object"}},{type:"TableOptions",field:"data",props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object"}},{type:"switch",field:"withCredentials"},{type:"inputNumber",field:"maxCount",props:{min:0}}])}},zy="\u7A7F\u68AD\u6846",Es="aTransfer",Hy={menu:"main",icon:"icon-transfer",label:zy,name:Es,input:!0,event:["change","search","selectChange"],validate:["array"],condition:function(e){return{type:"select",options:e.props.dataSource?e.props.dataSource.map(t=>({label:t.title,value:t.key})):[]}},sfc(e){e.type="aTransfer",e._sfc.modelField="targetKeys"},rule({t:e}){return{type:Es,field:Ye(),modelField:"targetKeys",title:e("com.aTransfer.name"),info:"",$required:!1,props:{render:new Function("item","return item.label || item.title"),dataSource:Fn(e("props.option"),{label:"label",value:"key"},1)}}},props(e,{t}){return Pe(t,Es+".props",[Eo(t,"props.dataSource","label","key"),{type:"switch",field:"oneWay"},{type:"switch",field:"pagination"},{type:"switch",field:"showSearch"},{type:"switch",field:"showSelectAll"},{type:"TableOptions",field:"titles",props:{column:[{label:t("props.value"),key:"value"}],valueType:"string",max:2}}])}},Uy="\u6811\u5F62\u63A7\u4EF6",As="tree",Wy={menu:"main",icon:"icon-tree",label:Uy,name:As,input:!0,event:["check","expand","select","rightClick"],validate:["string","number","array"],condition:function(e){const t=e.props.fieldNames||{};return{type:"cascader",options:e.props.treeData||[],props:{fieldNames:{label:t.title||"label",value:t.key||"id"}}}},sfc(e){e.type="aTree",e._sfc.modelField="checkedKeys"},rule({t:e}){return{type:As,field:Ye(),title:e("com.tree.name"),info:"",effect:{fetch:""},$required:!1,props:{fieldNames:{title:"label",key:"id"},checkable:!0,treeData:Fn(e("props.option"),{label:"label",value:"id"},3)}}},props(e,{t}){return Pe(t,As+".props",[ui(t,"props.treeData","label","id"),{type:"TableOptions",field:"fieldNames",props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object"}},{type:"switch",field:"showLine"},{type:"switch",field:"defaultExpandAll"}])}},Gy="\u63D0\u793A",Ss="aAlert",Ky={menu:"aide",icon:"icon-alert",label:Gy,name:Ss,event:["close"],rule({t:e}){return{type:Ss,props:{message:e("com.aAlert.name"),description:e("com.aAlert.description"),type:"success"},style:{width:"100%"},children:[]}},props(e,{t}){return Pe(t,Ss+".props",[{type:"input",field:"message"},{type:"select",field:"type",options:[{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"info",value:"info"},{label:"error",value:"error"}]},{type:"input",field:"description"},{type:"switch",field:"closable",value:!1},{type:"switch",field:"banner",value:!1},{type:"input",field:"closeText"},{type:"switch",field:"showIcon"}])}},Yy="\u6587\u5B57",nf="text",Qy={menu:"aide",icon:"icon-span",label:Yy,name:nf,inline:!0,rule({t:e}){return{type:"div",title:"",style:{whiteSpace:"pre-line"},children:[e("com.text.name")]}},props(e,{t}){return Pe(t,nf+".props",[{type:"input",field:"formCreateChild",props:{type:"textarea"}}])}},Xy={menu:"layout",icon:"icon-space",label:"\u95F4\u8DDD",name:"space",rule(){return{type:"div",wrap:{show:!1},native:!0,style:{width:"100%",height:"20px"},children:[]}},props(){return[]}},Jy="\u6807\u7B7E\u9875",xs="aTabs",Zy={menu:"layout",icon:"icon-tab",label:Jy,name:xs,mask:!1,event:["change","tabClick","edit"],children:"aTabPane",subRender({t:e,h:t,resolveComponent:i,subRule:r}){return[{label:e("props.title"),vnode:t(i("a-input"),{size:"small",value:r.props.tab,"onUpdate:value":o=>{r.props.tab=o}})}]},rule(){return{type:xs,style:{width:"100%"},props:{},children:[]}},props(e,{t}){return Pe(t,xs+".props",[{type:"select",field:"type",options:[{label:"card",value:"card"},{label:"line",value:"line"},{label:"editable-card",value:"editable-card"}]},{type:"select",field:"tabPosition",options:st(t,[{label:"top",value:"top"},{label:"bottom",value:"bottom"},{label:"right",value:"right"},{label:"left",value:"left"}])},{type:"switch",field:"centered"}])}},qy="\u6309\u94AE",ks="aButton",e0={menu:"aide",icon:"icon-button",label:qy,name:ks,mask:!0,inline:!0,easySlots:[{value:"icon",type:"icon"}],event:["click"],rule({t:e}){return{type:ks,props:{},children:[e("com.aButton.name")]}},props(e,{t}){return Pe(t,ks+".props",[{type:"input",field:"formCreateChild"},{type:"select",field:"size",options:st(t,[{label:"large",value:"large"},{label:"middle",value:"middle"},{label:"small",value:"small"}])},{type:"select",field:"type",options:st(t,[{label:"primary",value:"primary"},{label:"ghost",value:"ghost"},{label:"dashed",value:"dashed"},{label:"link",value:"link"},{label:"text",value:"text"},{label:"default",value:"default"}])},{type:"select",field:"shape",options:st(t,[{label:"circle",value:"circle"},{label:"round",value:"round"},{label:"default",value:"default"}])},{type:"switch",field:"ghost"},{type:"switch",field:"danger"},{type:"switch",field:"block"},{type:"switch",field:"loading"},{type:"switch",field:"disabled"}])}},t0="\u5BCC\u6587\u672C\u6846",Ns="fcEditor",n0={menu:"main",icon:"icon-editor",label:t0,name:Ns,input:!0,event:["change"],validate:["string"],rule({t:e}){return{type:Ns,field:Ye(),title:e("com.fcEditor.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Pe(t,Ns+".props",[{type:"switch",field:"disabled"}])}},o0="\u5B50\u8868\u5355",of="group",i0={menu:"subform",icon:"icon-subform",label:o0,name:of,input:!0,inside:!1,drag:!0,dragBtn:!0,mask:!1,event:["change"],subForm:"array",loadRule(e){e.children=e.props.rule||[],e.type="FcRow",delete e.props.rule},parseRule(e){e.props.rule=e.children,e.type="group",delete e.children,delete e.props.mode},sfc:!1,rule({t:e}){return{type:"fcRow",field:Ye(),title:e("com.group.name"),info:"",$required:!1,props:{},children:[]}},props(e,{t}){return Pe(t,of+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"button",value:!0},{type:"switch",field:"sortBtn",value:!0},{type:"inputNumber",field:"expand"},{type:"inputNumber",field:"min"},{type:"inputNumber",field:"max"}])}},r0="\u5206\u7EC4",rf="subForm",a0={menu:"subform",icon:"icon-group",label:r0,name:rf,inside:!1,drag:!0,dragBtn:!0,mask:!1,input:!0,subForm:"object",event:["change"],loadRule(e){e.children=e.props.rule||[],e.type="FcRow",delete e.props.rule},parseRule(e){e.props.rule=e.children,e.type="subForm",delete e.children},sfc(e,{getParentFieldStr:t}){return{type:"aFormItem",props:{name:t()+e.field,label:e.title,required:e.$required===!0?!0:void 0},col:{show:!0},_sfc:{parentField:e.field},_fc_id:e._fc_id,children:[{type:"aRow",class:e.class,style:e.style,children:e.children}]}},rule({t:e}){return{type:"fcRow",field:Ye(),title:e("com.subForm.name"),info:"",$required:!1,props:{},children:[]}},props(e,{t}){return Pe(t,rf+".props",[{type:"switch",field:"disabled"}])}},l0="\u5361\u7247",Ts="aCard",s0={menu:"layout",icon:"icon-card",label:l0,name:Ts,drag:!0,inside:!1,mask:!1,rule({t:e}){return{type:Ts,props:{title:e("com.aCard.props.title")},style:{width:"100%"},children:[]}},props(e,{t}){return Pe(t,Ts+".props",[{type:"input",field:"title"},{type:"select",field:"size",options:st(t,[{label:"default",value:"default"},{label:"small",value:"small"}])},{type:"select",field:"type",options:st(t,[{label:"inner",value:"inner"},{label:"default",value:""}])},{type:"switch",field:"hoverable"}])}},d0="\u6298\u53E0\u9762\u677F",Os="aCollapse",c0={menu:"layout",icon:"icon-collapse",label:d0,name:Os,mask:!1,children:"aCollapsePanel",subRender({t:e,h:t,resolveComponent:i,subRule:r}){return[{label:e("props.title"),vnode:t(i("a-input"),{size:"small",value:r.props.header,"onUpdate:value":o=>{r.props.header=o}})}]},event:["change"],rule(){return{type:Os,props:{},style:{width:"100%"},children:[]}},props(e,{t}){return Pe(t,Os+".props",[{type:"switch",field:"accordion"},{type:"switch",field:"bordered",value:!0},{type:"switch",field:"ghost"}])}},u0="\u9762\u677F",Ds="aCollapsePanel",f0={icon:"icon-cell",label:u0,name:Ds,drag:!0,dragBtn:!1,inside:!0,mask:!1,rule({t:e}){return{type:Ds,props:{header:e("com.aCollapsePanel.name"),key:Ye()},style:{},children:[]}},props(e,{t}){return Pe(t,Ds+".props",[{type:"input",field:"header"},{type:"input",field:"key"},{type:"switch",field:"disabled"},{type:"switch",field:"showArrow",value:!0}])}},p0="\u6811\u5F62\u9009\u62E9",Bs="aTreeSelect",h0={menu:"main",icon:"icon-tree-select",label:p0,name:Bs,input:!0,event:["check","treeExpand","select"],validate:["string","number","array"],condition:function(e){return{type:"cascader",options:e.props.treeData||[]}},sfc(e){e.type="aTreeSelect",e._sfc.modelField="value"},rule({t:e}){return{type:Bs,field:Ye(),modelField:"value",title:e("com.aTreeSelect.name"),info:"",effect:{fetch:""},$required:!1,props:{treeNodeFilterProp:"label",treeData:Fn(e("props.option"),{label:"label",value:"value"},3)}}},props(e,{t}){return Pe(t,Bs+".props",[ui(t,"props.treeData","label","value"),{type:"switch",field:"multiple"},{type:"switch",field:"disabled"},{type:"switch",field:"allowClear"},{type:"switch",field:"showSearch"},{type:"switch",field:"treeCheckable"},{type:"switch",field:"treeDefaultExpandAll"},{type:"switch",field:"treeLine"},{type:"TableOptions",field:"fieldNames",props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object"}}])}},m0="\u6807\u7B7E",$s="aTag",g0={menu:"aide",icon:"icon-tag",label:m0,name:$s,mask:!0,inline:!0,event:["click","close"],rule({t:e}){return{type:$s,title:"",children:[e("com.aTag.name")]}},props(e,{t}){return Pe(t,$s+".props",[{type:"input",field:"formCreateChild"},{type:"ColorInput",field:"color"},{type:"switch",field:"closable"},{type:"switch",field:"bordered",value:!0}])}},v0="\u63CF\u8FF0\u683C\u5B50",Vs="aDescriptionsItem",y0={icon:"icon-cell",label:v0,name:Vs,dragBtn:!1,inside:!0,mask:!1,rule({t:e}){return{type:Vs,props:{label:e("props.title")},children:[e("props.content")]}},watch:{__child({value:e,rule:t}){t.children[0].children[0]=e}},attrs:{child({rule:e}){return e.children[0].children[0]||""}},props(e,{t}){return Pe(t,Vs+".props",[{type:"input",field:"label"},{type:"input",field:"__child",_fc_important_prop:"formCreateChild"},{type:"inputNumber",field:"span"}])}},b0="\u63CF\u8FF0\u5217\u8868",Rs="aDescriptions",C0={menu:"layout",icon:"icon-descriptions",label:b0,name:Rs,mask:!1,rule(){return{type:Rs,props:{bordered:!0},style:{width:"100%"},children:[]}},children:"aDescriptionsItem",childrenLen:2,subRender({t:e,h:t,resolveComponent:i,subRule:r}){return[{label:e("props.title"),vnode:t(i("a-input"),{size:"small",value:r.props.label,"onUpdate:value":o=>{r.props.label=o}})}]},props(e,{t}){return Pe(t,Rs+".props",[{type:"input",field:"title",value:""},{type:"input",field:"extra",value:""},{type:"inputNumber",field:"column",value:3,props:{min:0}},{type:"switch",field:"bordered"},{type:"select",field:"layout",options:st(t,[{label:"vertical",value:"vertical"},{label:"horizontal",value:"horizontal"}])},{type:"select",field:"size",options:st(t,[{label:"large",value:"large"},{label:"middle",value:"middle"},{label:"small",value:"small"}])}])}},_0="\u5206\u6B65\u8868\u5355",Is="stepForm",w0={menu:"subform",icon:"icon-step-form",label:_0,name:Is,mask:!1,input:!0,languageKey:["prevStep","nextStep","submit"],event:["change","submit","next","validateFail"],subForm:"object",children:"stepFormItem",childrenLen:2,subRender({t:e,h:t,resolveComponent:i,subRule:r}){return[{label:e("props.title"),vnode:t(i("a-input"),{size:"small",value:r.props.title,"onUpdate:value":o=>{r.props.title=o}})}]},loadRule(e){e.props||(e.props={});const t=e.props.steps||{};e.children=t.map(i=>({type:"stepFormItem",_fc_drag_tag:"stepFormItem",props:{title:i.props.title,description:i.props.description},children:i.rule})),delete e.props.steps},parseRule(e){const t=e.children||[];e.props.steps=t.map(i=>({props:i.props,rule:i.children})),e.children=[]},sfc:!1,rule(){return{type:Is,field:Ye(),title:"",info:"",$required:!1,props:{},children:[]}},props(e,{t}){return Pe(t,Is+".props",[{type:"switch",field:"autoValidate"},{type:"select",field:"stepsProps>size",options:st(t,[{label:"default",value:"default"},{label:"small",value:"small"}])}])}},E0="\u6B65\u9AA4\u6761",Fs="stepFormItem",A0={icon:"icon-cell",label:E0,name:Fs,aide:!0,drag:!0,dragBtn:!1,inside:!0,mask:!1,style:!1,advanced:!1,variable:!1,rule({t:e}){return{type:Fs,props:{title:e("com.stepFormItem.props.title"),description:""},children:[]}},props(e,{t}){return Pe(t,Fs+".props",[{type:"input",field:"title",value:""},{type:"input",field:"description",value:""}])}},S0="HTML",Ps="html",x0={menu:"aide",icon:"icon-html",label:S0,name:Ps,sfc(e){e.type="div"},rule(){return{type:Ps,title:"",style:{display:"block",width:"100%"},children:['<div style="color:#2E73FF;display:flex;align-items:center;"><img style="width:20px;height:20px;display:inline-block;"src="https://static.form-create.com/example.png"data="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAIAAABLixI0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAGaADAAQAAAABAAAAGQAAAABY85deAAABuElEQVQ4Ee2UTYtBYRTH595BIu8hoYSNfAFJVrKxsFA+gg9laycLG7KQHUo+gRAhRaHI+8v8ZOYu7jTNTM1iauZZnOc8/+c8/3PP/5yu0G63n35oiT/Ec6f55/qemL9VL8VkMimVSo9iUqlUuVze7Xay2mw222w2A4zFYl6v93ELUiwW8YPBoNForNfrCqfTSUS1Wk0mkxaLRalUxuNxu92ey+XC4bDb7a7Van6/fzQardfrbrcrcS0WC4PBQEAoFBIE4XA4KCA2m81YvV6PjUQiEOE8lkqlikajxN1uN2yr1TqdTuTj9nK54Oh0OlG8iw6JXHuXy/VK87ZpNBqTycSJHGq1ejgc4q9WKz7qLeR1F7PZbD6fl6EfHSmw3+9zi8rvs4qZTCadTn/0WIb7fD6EOx6PlCy74iiv8X2EhFyvV6vVqtVqm82mw+GQcMm5c223WywSSCgIGi+XSwQGPJ/P4/G41+vhUOZ8Pqfj+/2e6aG55CBms9k8JxKJx3x1Oh2Px4PS0+m0UCgQgUMC6qpUKoPBgIHiZSAQoH0Iz9CQD5D+gjcaDeH/Xyh14yvON2biU7q/wPUCZDXIe9hWJkQAAAAASUVORK5CYII="/><span style="font-size:16px;">HTMLHTMLHTMLHTMLHTMLHTMLHTMLHTMLHTMLHTMLHTML</span></div>']}},props(e,{t}){return Pe(t,Ps+".props",[{type:"HtmlEditor",field:"formCreateChild"}])}},k0="\u8868\u683C\u5E03\u5C40",Ms="fcTable",N0={menu:"layout",icon:"icon-table",label:k0,name:Ms,inside:!1,mask:!1,sfc:{style:`._fc-table {
overflow: auto;
}
._fc-table > table {
width: 100%;
height: 100%;
overflow: hidden;
table-layout: fixed;
border: 1px solid #EBEEF5;
border-bottom: 0 none;
border-right: 0 none;
}
._fc-table tr {
min-height: 50px;
}
._fc-table td {
padding: 5px;
min-height: 50px;
min-width: 80px;
position: relative;
box-sizing: border-box;
overflow-wrap: break-word;
overflow: hidden;
border: 0 none;
border-right: 1px solid #EBEEF5;
border-bottom: 1px solid #EBEEF5;
}`,handle(e){const t=(e.children||[]).reduce((y,C)=>(y[C.slot]||(y[C.slot]=[]),y[C.slot].push(C),delete C.slot,y),{}),{row:i,col:r,style:o,class:s,layout:d}=e.props.rule,c={},u=[];d.forEach(y=>{const C=y.row||1,w=y.col||1,A=`${y.top}:${y.left}`;c[A]={row:C,col:w};for(let E=0;E<C;E++)for(let _=0;_<w;_++){if(E===0&&E===_)continue;const v=`${y.top+E}:${y.left+_}`;t[v]&&(t[A]=(t[A]||[]).concat(t[v]),delete t[v]),u.push(v)}});const g=[];for(let y=0;y<i;y++){const C=[];for(let w=0;w<r;w++){const A=`${y}:${w}`;if(u.indexOf(A)>-1)continue;const E=t[A];C.push({type:"td",props:{rowspan:""+(c[A]?c[A].row:1),colspan:""+(c[A]?c[A].col:1)},style:o[A],class:s[A],children:E})}g.push({type:"tr",children:C})}return{type:"aCol",props:{span:24},style:e.style,class:e.class,children:[{type:"div",class:"_fc-table",children:[{type:"table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:g}]}]}}},rule(){return{type:Ms,props:{rule:{row:3,col:4,style:{},class:{},layout:[]}},children:[]}},props(e,{t}){return Pe(t,Ms+".props",[{type:"switch",field:"border",value:!0},{type:"ColorInput",field:"borderColor"},{type:"input",field:"borderWidth"}])}},T0="\u8868\u683C\u8868\u5355",Ls="tableForm",O0={menu:"subform",icon:"icon-table-form",label:T0,name:Ls,mask:!1,input:!0,subForm:"array",languageKey:["add","operation","dataEmpty"],event:["change","add","delete"],children:"tableFormColumn",subRender({t:e,h:t,resolveComponent:i,subRule:r}){return[{label:e("props.title"),vnode:t(i("a-input"),{size:"small",value:r.props.label,"onUpdate:value":o=>{r.props.label=o}})}]},loadRule(e){e.props||(e.props={});const t=e.props.columns||[];e.children=t.map(i=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{label:i.label,required:i.required||!1,width:i.style.width||"",color:i.style.color||""},children:i.rule||[]})),delete e.props.columns},parseRule(e){const t=e.children||[];e.props.columns=t.map(i=>({label:i.props.label,required:i.props.required,style:{width:i.props.width,color:i.props.color},rule:i.children||[]})),e.children=[]},sfc:!1,rule({t:e}){return{type:Ls,field:Ye(),title:e("com.tableForm.name"),info:"",props:{},children:[]}},props(e,{t}){return Pe(t,Ls+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"filterEmptyColumn",value:!0},{type:"inputNumber",field:"max",props:{min:0}}])}},D0="\u65E0\u9650\u7EA7\u8868\u5355",ha="infiniteTableForm",B0={menu:"subform",icon:"icon-table-form3",label:D0,name:ha,input:!0,mask:!1,subForm:"array",languageKey:["add","operation"],event:["change","add","delete"],children:"tableFormColumn",subRender({t:e,h:t,resolveComponent:i,subRule:r}){return[{label:e("props.title"),vnode:t(i("a-input"),{size:"small",value:r.props.label,"onUpdate:value":o=>{r.props.label=o}})}]},loadRule(e){e.props||(e.props={});const t=e.props.columns||[];e.children=t.map(i=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{label:i.label,required:i.required||!1,width:i.style.width||"",color:i.style.color||""},children:i.rule||[]})),delete e.props.columns},parseRule(e){const t=e.children||[];e.props.columns=t.map(i=>({label:i.props.label,required:i.props.required,style:{width:i.props.width,color:i.props.color},rule:i.children||[]})),e.children=[]},sfc:!1,rule({t:e}){return{type:ha,field:Ye(),title:e("com."+ha+".name"),info:"",props:{},children:[]}},props(e,{t}){return Pe(t,ha+".props",[{type:"switch",field:"disabled"},{type:"input",field:"childrenField",value:"children"},{type:"inputNumber",field:"max",props:{min:0}},{type:"inputNumber",field:"layerMax",props:{min:0}}])}},$0="\u5D4C\u5957\u8868\u5355",ma="nestedTableForm",V0=e=>e.map(t=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{required:t.required||!1,label:t.label,width:t.style.width||"",color:t.style.color||""},children:t.rule||[]})),R0={menu:"subform",icon:"icon-table-form2",label:$0,name:ma,mask:!1,input:!0,subForm:"array",languageKey:["add","operation"],event:["change","add","delete"],slot:["default",{name:"nested",type:"nestedSubTableForm"}],children:"tableFormColumn",subRender({t:e,h:t,resolveComponent:i,subRule:r}){return[{label:e("props.title"),vnode:t(i("a-input"),{size:"small",value:r.props.label,"onUpdate:value":o=>{r.props.label=o}})}]},loadRule(e){e.props||(e.props={});const t=e.props.columns||[],i=e.props.nested||[];e.children=V0(t),e.children.push({type:"TableForm",_fc_drag_tag:"nestedSubTableForm",field:e.props.nestedField,props:{columns:i},slot:"nested"}),delete e.props.nestedField,delete e.props.columns,delete e.props.nested},parseRule(e){const t=e.children||[];e.props.columns=[],t.forEach(i=>{if(i.slot==="nested"){e.props.nested=i.props.columns,e.props.nestedField=i.field;return}e.props.columns.push({label:i.props.label,required:i.props.required,style:{width:i.props.width,color:i.props.color},rule:i.children||[]})}),e.children=[]},sfc:!1,rule({t:e}){return{type:ma,field:Ye(),title:e("com."+ma+".name"),info:"",props:{},children:[]}},props(e,{t}){return Pe(t,ma+".props",[{type:"switch",field:"disabled"},{type:"inputNumber",field:"max",props:{min:0}},{type:"inputNumber",field:"nestedMax",props:{min:0}}])}},I0={icon:"icon-table-form",label:"\u5B50\u8868\u683C\u8868\u5355",name:"nestedSubTableForm",aide:!0,mask:!1,validate:!1,style:!1,advanced:!1,variable:!1,input:!0,subForm:"array",hiddenBaseField:["title","info","labelConfig","formCreate_computed>hidden","formCreate_computed>value","_control"],children:"tableFormColumn",subRender({t:e,h:t,resolveComponent:i,subRule:r}){return[{label:e("props.title"),vnode:t(i("a-input"),{size:"small",value:r.props.label,"onUpdate:value":o=>{r.props.label=o}})}]},loadRule(e){e.props||(e.props={});const t=e.props.columns||[];e.children=t.map(i=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{required:i.required||!1,label:i.label,width:i.style.width||"",color:i.style.color||""},children:i.rule||[]})),delete e.props.columns},parseRule(e){const t=e.children||[];e.props.columns=t.map(i=>({label:i.props.label,required:i.props.required,style:{width:i.props.width,color:i.props.color},rule:i.children||[]})),e.children=[]},rule(){return{type:"TableForm",field:Ye(),title:"",info:"",props:{},children:[]}},props(){return[]}},js="tableFormColumn",F0={icon:"icon-cell",name:js,aide:!0,drag:!0,dragBtn:!1,mask:!1,style:!1,advanced:!1,variable:!1,rule({t:e}){return{type:js,props:{label:e("com.tableFormColumn.label"),width:"auto"},children:[]}},props(e,{t}){return Pe(t,js+".props",[{type:"input",field:"label"},{type:"switch",field:"required"},{type:"input",field:"width"},{type:"ColorInput",field:"color"}])}},P0={icon:"icon-flex",label:"\u76D2\u5B50\u5E03\u5C40",name:"fcFlex",mask:!1,children:"fcCell",childrenLen:2,subRender({t:e,h:t,resolveComponent:i,subRule:r}){return[{label:e("style.width"),vnode:t(i("SizeInput"),{size:"small",modelValue:r.style&&r.style.width||"","onUpdate:modelValue":o=>{r.style||(r.style={}),r.style.width=o}})},{label:e("style.height"),vnode:t(i("SizeInput"),{size:"small",modelValue:r.style&&r.style.height||"auto","onUpdate:modelValue":o=>{r.style||(r.style={}),r.style.height=o}})}]},sfc(e){e.type="aRow"},rule(){return{type:"fcRow",props:{},children:[]}},props(){return[]}},af="fcCell",M0={name:af,label:"\u683C\u5B50",drag:!0,dragBtn:!1,inside:!0,inline:!0,mask:!1,sfc(e){e.type="div"},rule(){return{type:af,style:{display:"block",width:"50%",height:"100px"},children:[]}},props(e,{t}){return[{type:"SizeInput",field:"formCreateStyle>width",title:t("style.width")}]}},L0="\u8BA1\u7B97\u516C\u5F0F",lf="fcValue",j0={menu:"main",icon:"icon-value",label:L0,name:lf,input:!0,event:["change"],validate:!1,sfc(e,{getParentFieldStr:t}){e.type="div",e._sfc.content=`{{formData.${t()}${e.field}}}`,e._sfc.vModel=!1},rule({t:e}){return{type:lf,field:Ye(),title:e("com.fcValue.name"),info:"",props:{}}},props(){return[]}},z0="\u6587\u5B57\u63D0\u793A",ga="aTooltip",H0={menu:"aide",icon:"icon-tooltip",label:z0,name:ga,drag:!0,dragBtn:!0,inside:!1,mask:!1,rule({t:e}){return{type:ga,props:{title:e("com."+ga+".name")},children:[]}},props(e,{t}){return Pe(t,ga+".props",[{type:"input",field:"title",props:{type:"textarea"}},{type:"ColorInput",field:"color"},{type:"select",field:"placement",value:"bottom",options:[{label:"top",value:"top"},{label:"topLeft",value:"topLeft"},{label:"topRight",value:"topRight"},{label:"bottom",value:"bottom"},{label:"bottomLeft",value:"bottomLeft"},{label:"bottomRight",value:"bottomRight"},{label:"left",value:"left"},{label:"leftTop",value:"leftTop"},{label:"leftBottom",value:"leftBottom"},{label:"right",value:"right"},{label:"rightTop",value:"rightTop"},{label:"rightBottom",value:"rightBottom"}]},{type:"select",field:"trigger",value:"hover",options:[{label:"hover",value:"hover"},{label:"click",value:"click"},{label:"focus",value:"focus"},{label:"contextmenu",value:"contextmenu"}]},{type:"inputNumber",field:"mouseEnterDelay",props:{min:0}},{type:"inputNumber",field:"mouseLeaveDelay",props:{min:0}}])}},U0="\u6C34\u5370",va="aWatermark",W0={menu:"aide",icon:"icon-watermark",label:U0,name:va,drag:!0,dragBtn:!0,inside:!1,mask:!1,rule({t:e}){return{type:va,style:{width:"100%"},props:{content:e("com."+va+".name")},children:[]}},props(e,{t}){return Pe(t,va+".props",[{type:"input",field:"content"},{type:"input",field:"image"},{type:"inputNumber",field:"width",props:{min:0},value:120},{type:"inputNumber",field:"height",props:{min:0},value:64},{type:"inputNumber",field:"rotate",value:-22},{type:"inputNumber",field:"zIndex",props:{min:0}}])}},G0={menu:"template",name:"chineseAmount",label:"\u91D1\u989D",autoField:!0,template:[{type:"inputNumber",field:"Fgtxlugfgbdvb5c",title:"\u91D1\u989D",info:"",$required:!1,display:!0,hidden:!1,_fc_drag_tag:"inputNumber"},{type:"fcValue",field:"Fvr1lugfgd3yb7c",title:" ",info:"",display:!0,hidden:!1,_fc_drag_tag:"fcValue",style:{color:"#999999"},computed:{value:'"\u5927\u5199: " + TOCHINSESAMOUNT(Fgtxlugfgbdvb5c || 0)'}}]},K0={menu:"template",name:"duration",label:"\u65F6\u957F",autoField:!0,template:[{type:"fcInlineForm",_fc_id:"id_Fljpm51cjms2bdc",name:"ref_Fjpim51cjms2bec",display:!0,hidden:!1,_fc_drag_tag:"fcInlineForm",children:[{type:"datePicker",field:"Fzogm51cjc1pacc",title:"\u5F00\u59CB\u65F6\u95F4",$required:!1,_fc_drag_tag:"datePicker",validate:[{type:"validator",trigger:"change",validator:`[[FORM-CREATE-PREFIX-function validator(rule, value, callback){this.api.validateField('Fdnxm51cjc1paec');
callback();}-FORM-CREATE-SUFFIX]]`,mode:"validator",message:""}],_fc_template:"duration",_fc_id:"id_Fyjom51cjc1qahc",name:"ref_Fzqim51cjc1qaic",display:!0,hidden:!1,style:{width:"250px"}},{type:"select",field:"Fvv5m51cjc1padc",effect:{fetch:""},$required:!1,options:[{label:"\u4E0A\u5348",value:"1"},{label:"\u4E0B\u5348",value:"1.5"}],_fc_drag_tag:"select",_fc_template:"duration",_fc_id:"id_Fpjhm51cjc1qalc",name:"ref_Fpr6m51cjc1qamc",display:!0,hidden:!1,style:{width:"150px"}}],style:{marginBottom:"12px"}},{type:"fcInlineForm",_fc_id:"id_Fq0nm51cjshzbfc",name:"ref_Fpazm51cjshzbgc",display:!0,hidden:!1,_fc_drag_tag:"fcInlineForm",children:[{type:"datePicker",field:"Fdnxm51cjc1paec",title:"\u7ED3\u675F\u65F6\u95F4",$required:!1,_fc_drag_tag:"datePicker",validate:[{type:"validator",trigger:"change",validator:`[[FORM-CREATE-PREFIX-function validator(rule, value, callback){let startTime = this.api.getValue('Fzogm51cjc1pacc');
if(startTime && value && Date.parse(startTime) > Date.parse(value)) {
callback(false);
return;
}
callback()}-FORM-CREATE-SUFFIX]]`,mode:"validator",message:"\u5F00\u59CB\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u7ED3\u675F\u65F6\u95F4"}],_fc_template:"duration",_fc_id:"id_F6hgm51cjc1qarc",name:"ref_F18lm51cjc1qasc",display:!0,hidden:!1,style:{width:"250px"}},{type:"select",field:"Ff4rm51cjc1pafc",effect:{fetch:""},$required:!1,options:[{label:"\u4E0A\u5348",value:"1"},{label:"\u4E0B\u5348",value:"1.5"}],_fc_drag_tag:"select",_fc_template:"duration",_fc_id:"id_Fcshm51cjc1qavc",name:"ref_F5xqm51cjc1qawc",display:!0,hidden:!1,style:{width:"150px"}}],style:{paddingBottom:"12px"}},{type:"fcInlineForm",_fc_id:"id_Fvuxm51cjt51bhc",name:"ref_F6a5m51cjt51bic",display:!0,hidden:!1,_fc_drag_tag:"fcInlineForm",children:[{type:"inputNumber",field:"F68jm51cjc1pagc",title:"\u65F6\u957F",$required:!1,props:{controls:!1},_fc_drag_tag:"inputNumber",_fc_template:"duration",_fc_id:"id_Fqtim51cjc1qb1c",name:"ref_Fla0m51cjc1qb2c",display:!0,hidden:!1,style:{width:"250px"},computed:{value:"MAX(IF(Fzogm51cjc1pacc && Fdnxm51cjc1paec && TIMESTAMP(Fdnxm51cjc1paec) > TIMESTAMP(Fzogm51cjc1pacc), DIFFDAYS(Fzogm51cjc1pacc, Fdnxm51cjc1paec), -1) + IF(Ff4rm51cjc1pafc && Fvv5m51cjc1padc, Ff4rm51cjc1pafc - Fvv5m51cjc1padc + 0.5, 0), 0);"}},{type:"text",native:!0,children:["\u5929"],_fc_drag_tag:"text",_fc_template:"duration",_fc_id:"id_Frd4m51cjc1qb5c",name:"ref_Fhwjm51cjc1qb6c",display:!0,hidden:!1,style:{marginTop:"5px"}}]}]},Y0={menu:"template",name:"col3",label:"\u4E09\u5217\u6805\u683C",autoField:!1,template:[{type:"fcRow",children:[{type:"col",props:{span:8},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:8},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:8},display:!0,hidden:!1,_fc_drag_tag:"col"}],display:!0,hidden:!1,_fc_drag_tag:"fcRow"}]},Q0={menu:"template",name:"col4",label:"\u56DB\u5217\u6805\u683C",autoField:!1,template:[{type:"fcRow",children:[{type:"col",props:{span:6},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:6},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:6},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:6},display:!0,hidden:!1,_fc_drag_tag:"col"}],display:!0,hidden:!1,_fc_drag_tag:"fcRow"}]},X0={menu:"template",name:"table43",label:"\u56DB\u884C\u4E09\u5217\u8868\u683C",autoField:!1,template:[{type:"fcTable",props:{rule:{row:4,col:3,style:{},class:{},layout:[]}},display:!0,hidden:!1,_fc_drag_tag:"fcTable"}]},J0="\u6570\u636E\u8868\u683C",ya="dataTable",Z0=()=>{const e=[];for(let t=0;t<30;t++)e.push({date:"2016-05-12",name:"Tom "+(10+t),state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036"});return e},q0={menu:"main",icon:"icon-data-table",label:J0,name:ya,languageKey:["operation"],event:["handleClick","change","rowSelectionChange"],sfc:!1,rule(){return{type:ya,native:!0,props:{scroll:{x:"1000px",y:"500px"},button:{},data:Z0(),column:[{format:"default",prop:"date",label:"Date",width:"150"},{format:"default",prop:"name",label:"Name",width:"120"},{format:"default",prop:"state",label:"State",width:"120"},{format:"default",prop:"city",label:"City",width:"320"},{format:"default",prop:"address",label:"Address",width:"600"},{format:"default",prop:"zip",label:"Zip",width:"120"}]}}},props(e,{t}){const i=function(o){return Pe(t,ya+".props",o)},r=i([{type:"input",field:"page>totalField",value:"count"},{type:"input",field:"page>dataField",value:"list"},{type:"input",field:"page>orderField",value:"order"},{type:"input",field:"page>orderByField",value:"orderBy"},{type:"input",field:"page>pageField",value:"page"},{type:"input",field:"page>pageSizeField",value:"limit"}]);return Pe(t,ya+".props",[{type:"radio",field:"_optionType",value:0,options:[{label:t("fetch.optionsType.struct"),value:0},{label:t("fetch.optionsType.fetch"),value:2},{label:t("fetch.optionsType.global"),value:1}],props:{optionType:"button"},control:[{value:1,rule:[{type:"GlobalFetchSelect",field:"globalDataKey"},...r]},{value:2,rule:[{type:"FetchConfig",field:"fetch"},...r]},{value:0,rule:[{type:"Struct",title:t("com.dataTable.props._optionType"),field:"data",_fc_important_prop:!0,props:{validate(o){return!o||Array.isArray(o)}}}]}]},{type:"TableColumnConfig",field:"column",_fc_important_prop:!0},{type:"select",field:"size",options:st(t,[{label:"default",value:"default"},{label:"small",value:"small"}])},{type:"ConfigItem",props:{label:t("com.dataTable.props.button")},col:{show:!0},children:[{type:"HideConfig",title:t("com.dataTable.props.button"),wrap:{show:!1},col:{show:!1},field:"button>open"},{type:"template",slot:"append",children:i([{type:"TableButtonConfig",col:{show:!1},field:"button>column"},{type:"input",col:{show:!1},field:"button>label",value:"\u64CD\u4F5C"},{type:"select",col:{show:!1},field:"button>fixed",options:[{label:t("com.dataTable.fixed.default"),value:!1},{label:t("com.dataTable.fixed.right"),value:"right"}],value:"right"},{type:"SizeInput",col:{show:!1},field:"button>width",value:"125px"}])}]},{type:"ConfigItem",props:{label:t("com.dataTable.props.page")},col:{show:!0},children:[{type:"HideConfig",wrap:{show:!1},col:{show:!1},title:t("com.dataTable.props.page"),field:"page>open"},{type:"template",slot:"append",children:i([{type:"select",field:"page>position",value:"right",col:{show:!1},options:st(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"inputNumber",col:{show:!1},field:"page>props>pageSize",value:20},{type:"select",col:{show:!1},field:"page>props>size",options:st(t,[{label:"default",value:"default"},{label:"small",value:"small"}])}])}]},{type:"input",field:"rowKey"},{type:"switch",field:"selection"},{type:"SizeInput",field:"scroll>x"},{type:"SizeInput",field:"scroll>y"},{type:"switch",field:"bordered"}])}},ba="fcDialog",e1={name:ba,icon:"icon-dialog",label:"\u5F39\u51FA\u6846",drag:!0,dragBtn:!1,handleBtn:!1,inside:!1,mask:!1,style:!1,advanced:!1,languageKey:["close","ok"],event:["confirm","submit","cancel","validateFail"],container:{formDataField:"props.formData",labelField:"props.title"},loadRule(e){e.children=e.props.rule||[],delete e.props.rule},parseRule(e){e.props.rule=e.children||[],e.children=[]},rule({t:e}){return{type:ba,props:{title:e("com."+ba+".name")},children:[]}},props(e,{t}){return Pe(t,ba+".props",[{type:"input",field:"title"},{type:"SizeInput",field:"width",value:"50%"},{type:"switch",field:"fullscreen"},{type:"switch",field:"mask",value:!0},{type:"switch",field:"footer",value:!0},{type:"switch",field:"autoClose",value:!0},{type:"FnInput",field:"afterClose",props:{body:!0,button:!0,fnx:!0,name:"beforeClose",args:[bn(t)]}}])}},Ca="fcDrawer",t1={name:Ca,icon:"icon-dialog",label:"\u62BD\u5C49",drag:!0,dragBtn:!1,handleBtn:!1,inside:!1,mask:!1,style:!1,advanced:!1,languageKey:["close","ok"],event:["confirm","submit","validateFail","afterOpenChange"],container:{formDataField:"props.formData",labelField:"props.title"},loadRule(e){e.children=e.props.rule||[],delete e.props.rule},parseRule(e){e.props.rule=e.children||[],e.children=[]},rule({t:e}){return{type:Ca,props:{title:e("com."+Ca+".name")},children:[]}},props(e,{t}){return Pe(t,Ca+".props",[{type:"input",field:"title"},{type:"SizeInput",field:"width",value:"30%"},{type:"select",field:"placement",options:st(t,[{label:"left",value:"left"},{label:"right",value:"right"}],"com.fcDrawer.placementType"),value:"right"},{type:"switch",field:"mask",value:!0},{type:"switch",field:"footer",value:!0},{type:"switch",field:"autoClose",value:!0}])}},n1="\u63D2\u69FD\u533A\u57DF",zs="fcSlot",o1={menu:"container",icon:"icon-slot",label:n1,name:zs,input:!0,mask:!0,style:!1,sfc:!1,rule(){return{type:zs,field:Ye(),title:"",native:!1,$required:!1,readMode:"custom",props:{name:"block_"+Ye()}}},props(e,{t}){return Pe(t,zs+".props",[{type:"input",field:"name"}])}},i1="\u52A8\u6001\u533A\u57DF",Hs="fcJson",r1={menu:"container",icon:"icon-json",label:i1,name:Hs,mask:!0,style:!1,sfc:!1,input:!0,rule(){return{type:Hs,field:Ye(),props:{expand:1}}},props(e,{t}){return Pe(t,Hs+".props",[{type:"radio",field:"_loadType",value:2,props:{optionType:"button"},options:[{label:t("fetch.optionsType.struct"),value:2},{label:t("fetch.optionsType.fetch"),value:3},{label:t("fetch.optionsType.global"),value:1}],control:[{value:1,rule:[{type:"GlobalFetchSelect",field:"formCreateEffect>fetch",props:{to:"props.rule"}}]},{value:2,rule:[{type:"Struct",field:"rule",title:t("com.fcJson.props._loadType"),_fc_important_prop:!0,wrap:{show:!1}}]},{value:3,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:"props.rule"}}]}]},{type:"select",field:"type",options:st(t,[{label:t("props.default"),value:"default"},{label:t("com.group.name"),value:"array"},{label:t("com.subForm.name"),value:"object"}]),control:[{value:"array",method:"hidden",rule:Pe(t,"group.props",[{type:"switch",field:"disabled",ignore:"hidden"},{type:"switch",field:"button",ignore:"hidden",value:!0},{type:"switch",field:"sortBtn",ignore:"hidden",value:!0},{type:"inputNumber",field:"expand",ignore:"hidden"},{type:"inputNumber",field:"min",ignore:"hidden"},{type:"inputNumber",field:"max",ignore:"hidden"}])},{value:"object",method:"hidden",rule:Pe(t,"group.props",[{type:"switch",field:"disabled",ignore:"hidden"}])}]}])}},a1="\u5185\u8054\u5E03\u5C40",sf="fcInlineForm",l1={menu:"layout",icon:"icon-inline",label:a1,name:sf,denyDrag:{menu:["subform","layout"]},drag:!0,inside:!1,mask:!1,sfc:{style:`._fc-line-form {
width: 100%;
display: flex;
flex-wrap: wrap;
}
._fc-line-form .ant-form-item {
flex: none;
flex-wrap: nowrap;
margin-inline-end: 16px;
margin-bottom: 0;
}
._fc-line-form .ant-select, ._fc-line-form .ant-slider {
width: 220px;
}`,handle(e){return{type:"div",class:"_fc-line-form",children:e.children}}},rule(){return{type:sf,props:{}}},props(){return[]}},s1="\u56FE\u7247",Us="aImage",d1={menu:"aide",icon:"icon-image",label:s1,name:Us,inline:!0,rule(){return{type:Us,title:"",style:{width:"100px",height:"100px"},props:{src:"https://static.form-create.com/example.png"}}},props(e,{t}){return Pe(t,Us+".props",[{type:"input",field:"src"},{type:"switch",field:"preview",value:!0}])}},c1={menu:"layout",icon:"icon-flex",name:"fcFlex2",label:"\u76D2\u5B50\u5E03\u5C40",drag:!0,inside:!0,inline:!0,mask:!1,sfc(e){e.type="div"},actions:[{label:"com.fcFlex2.horizontal",handler(e){e.style||(e.style={}),e.style.display!=="flex"?(e.style.display="flex",e.style.flexDirection="row",e.style.justifyContent="center"):["column-reverse","column"].indexOf(e.style.flexDirection)>-1?e.style.alignItems="center":e.style.justifyContent="center"}},{label:"com.fcFlex2.vertical",handler(e){e.style||(e.style={}),e.style.display!=="flex"?(e.style.display="flex",e.style.flexDirection="row",e.style.alignItems="center"):["column-reverse","column"].indexOf(e.style.flexDirection)>-1?e.style.justifyContent="center":e.style.alignItems="center"}},{label:"com.fcFlex2.left",handler(e){e.style||(e.style={}),e.style.display!=="flex"?(e.style.display="flex",e.style.flexDirection="row",e.style.justifyContent="flex-start"):["column-reverse","column"].indexOf(e.style.flexDirection)>-1?e.style.alignItems="flex-start":e.style.justifyContent="flex-start"}},{label:"com.fcFlex2.right",handler(e){e.style||(e.style={}),e.style.display!=="flex"?(e.style.display="flex",e.style.flexDirection="row",e.style.justifyContent="flex-end"):["column-reverse","column"].indexOf(e.style.flexDirection)>-1?e.style.alignItems="flex-end":e.style.justifyContent="flex-end"}},{label:"com.fcFlex2.reset",handler(e){e.style?(delete e.style.flexDirection,delete e.style.justifyContent,delete e.style.alignContent,delete e.style.flexWrap,delete e.style.alignItems,e.style.display="flex"):e.style={}}}],rule(){return{type:"fcCell",style:{display:"block",width:"100%",height:"100px"},children:[]}},props(e,{t}){return[{type:"SizeInput",field:"formCreateStyle>width",title:t("style.width")},{type:"SizeInput",field:"formCreateStyle>height",title:t("style.height")}]}},u1="\u8868\u5355\u9879",Ws="aFormItem",f1={menu:"container",icon:"icon-form-item",label:u1,name:Ws,drag:!0,mask:!1,event:!1,rule({t:e}){return{type:Ws,props:{label:e("com.aFormItem.name")},children:[]}},props(e,{t}){return Pe(t,Ws+".props",[{type:"input",field:"label"},{type:"SizeInput",field:"labelCol>style>width",value:"",title:t("form.labelCol")},{type:"radio",field:"labelAlign",title:t("form.layout"),options:st(t,[{value:"left",label:"left"},{value:"right",label:"right"}])}])}},p1="\u97F3\u9891\u64AD\u653E\u5668",Gs="audioBox",h1={menu:"aide",icon:"icon-audio",label:p1,name:Gs,mask:!1,event:["pause","play","ended"],rule(){return{type:Gs,props:{src:"https://static.form-create.com/res/demo.mp3",type:"audio/mpeg"}}},props(e,{t}){return Pe(t,Gs+".props",[{type:"input",field:"src"},{type:"select",field:"type",options:[{label:"MP3",value:"audio/mpeg"},{label:"OGG",value:"audio/ogg"},{label:"AAC",value:"audio/aac"},{label:"WAV",value:"audio/wav"},{label:"WMA",value:"audio/x-ms-wma"},{label:"WEBA",value:"audio/webm"},{label:"FLAC",value:"audio/flac"},{label:"ALAC",value:"audio/x-alac"},{label:"AMR",value:"audio/amr"},{label:"MIDI",value:"audio/midi"}]},{type:"switch",field:"autoplay"},{type:"switch",field:"loop"},{type:"switch",field:"muted"},{type:"switch",field:"controls"},{type:"select",field:"preload",options:st(t,[{label:"auto",value:"auto"},{label:"metadata",value:"metadata"},{label:"none",value:"none"}],"com.audioBox.preloadOpt")}])}},m1="\u89C6\u9891\u64AD\u653E\u5668",Ks="videoBox",g1={menu:"aide",icon:"icon-video",label:m1,name:Ks,mask:!1,event:["pause","play","ended","error"],rule(){return{type:Ks,props:{src:"https://static.form-create.com/res/demo.mp4",type:"mp4"}}},props(e,{t}){return Pe(t,Ks+".props",[{type:"input",field:"src"},{type:"select",field:"type",options:[{label:"mp4",value:"mp4"},{label:"mpegts",value:"mpegts"},{label:"m2ts",value:"m2ts"},{label:"flv",value:"flv"},{label:"mse",value:"mse"}]},{type:"switch",field:"autoplay"},{type:"switch",field:"controls",value:!0},{type:"switch",field:"isLive"},{type:"switch",field:"loop"},{type:"switch",field:"withCredentials",value:!0}])}},v1="\u5934\u50CF\u6846",df="aAvatar",y1={menu:"aide",icon:"icon-avatar",label:v1,name:df,mask:!0,inline:!0,event:[],rule(){return{type:df,props:{fit:"cover",src:"https://static.form-create.com/example.png"}}},props(e,{t}){return Pe(t,"aAvatar.props",[{type:"input",field:"src"},{type:"select",field:"shape",options:st(t,[{label:"circle",value:"circle"},{label:"square",value:"square"}])},{type:"select",field:"size",options:st(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])}])}},b1="\u6761\u5F62\u7801",cf="barCodeBox",C1={menu:"aide",icon:"icon-barcode",label:b1,name:cf,mask:!0,inline:!0,event:[],rule(){return{type:cf,props:{value:"12345670",format:"CODE128"}}},props(e,{t}){return Pe(t,"barCodeBox.props",[{type:"input",field:"value"},{type:"select",field:"format",options:[{label:"CODE39",value:"CODE39"},{label:"CODE128",value:"CODE128"},{label:"CODE128A",value:"CODE128A"},{label:"CODE128B",value:"CODE128B"},{label:"CODE128C",value:"CODE128C"},{label:"EAN13",value:"EAN13"},{label:"UPC",value:"UPC"},{label:"CODABAR",value:"CODABAR"}]},{type:"inputNumber",field:"width",value:2},{type:"inputNumber",field:"height",value:50},{type:"switch",field:"displayValue",value:!0},{type:"inputNumber",field:"fontSize",value:12},{type:"select",field:"textPosition",options:st(t,[{label:"top",value:"top"},{label:"bottom",value:"bottom"}])},{type:"select",field:"textAlign",options:st(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"inputNumber",field:"textMargin",value:2},{type:"ColorInput",field:"background"},{type:"ColorInput",field:"lineColor"}])}},_1="\u5185\u5D4C\u7F51\u9875",uf="iframeBox",w1={menu:"aide",icon:"icon-iframe",label:_1,name:uf,mask:!0,event:["load"],rule(){return{type:uf,props:{src:"https://pro.form-create.com/doc/"}}},props(e,{t}){return Pe(t,"iframeBox.props",[{type:"input",field:"src"},{type:"select",field:"loading",value:"eager",options:st(t,[{label:"eager",value:"eager"},{label:"lazy",value:"lazy"}],"com.iframeBox.loadingOpt")}])}},E1="\u4E8C\u7EF4\u7801",Ys="qrCodeBox",A1={menu:"aide",icon:"icon-qrcode",label:E1,name:Ys,mask:!0,inline:!0,rule(){return{type:Ys,props:{data:"1234567890",width:150,height:150}}},props(e,{t}){return Pe(t,Ys+".props",[{type:"input",field:"data"},{type:"input",field:"image"},{type:"inputNumber",field:"width"},{type:"inputNumber",field:"height"},{type:"select",field:"circleType",options:st(t,[{label:"square",value:"square"},{label:"dots",value:"dots"},{label:"rounded",value:"rounded"},{label:"classy",value:"classy"}],"com.qrCodeBox.circleTypeOpt")},{type:"ColorInput",field:"circleColor"}])}},S1="\u624B\u5199\u7B7E\u540D",Qs="signaturePad",x1={menu:"main",icon:"icon-sign",label:S1,name:Qs,input:!0,mask:!0,languageKey:["signaturePadTip","signaturePadTitle","reset","ok"],event:["change","remove"],rule({t:e}){return{type:Qs,field:Ye(),title:e("com.signaturePad.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Pe(t,Qs+".props",[{type:"ColorInput",field:"penColor"}])}},k1="\u63D0\u53CA",Xs="aMentions",N1={menu:"main",icon:"icon-mention",label:k1,name:Xs,input:!0,event:["search","select","blur","focus","change"],validate:["string"],rule({t:e}){return{type:Xs,modelField:"value",field:Ye(),title:e("com.aMentions.name"),info:"",$required:!1,props:{options:[{label:"Fuphoenixes",value:"Fuphoenixes"},{label:"kooriookami",value:"kooriookami"},{label:"Jeremy",value:"Jeremy"},{label:"btea",value:"btea"}]}}},props(e,{t}){return Pe(t,Xs+".props",[Eo(t,"props.options"),{type:"switch",field:"disabled"},{type:"input",field:"placeholder"},{type:"inputNumber",field:"rows"},{type:"FnInput",field:"filterOption",props:{body:!0,button:!0,fnx:!0,args:[bn(t)],name:"filterOption"}}])}},T1="\u5206\u6BB5\u63A7\u5236\u5668",Js="aSegmented",O1={menu:"main",icon:"icon-segmented",label:T1,name:Js,input:!0,event:["change"],validate:["string","number"],rule(){return{type:Js,field:Ye(),modelField:"value",title:"",value:"",props:{options:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"].map(e=>({label:e,value:e}))}}},props(e,{t}){return Pe(t,Js+".props",[{type:"TableOptions",field:"options",title:t("props.options"),wrap:{show:!1},props:{column:[{label:"label",key:"label"},{value:!0,label:"value",key:"value"}],keyValue:"label"}},{type:"switch",field:"disabled"},{type:"switch",field:"block"},{type:"select",field:"size",options:st(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])}])}},D1="\u6807\u9898",ff="fcTitle",B1={menu:"aide",icon:"icon-title",label:D1,name:ff,event:[],rule({t:e}){return{type:"fcTitle",props:{title:e("props.title")}}},props(e,{t}){return Pe(t,ff+".props",[{type:"input",field:"title"},{type:"select",field:"size",value:"H2",options:[1,2,3,4,5,6].map(i=>({label:"H"+i,value:"h"+i}))},{type:"select",field:"align",options:st(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])}])}},$1="\u552F\u4E00\u503C",Zs="fcId",V1={menu:"main",icon:"icon-input-id",label:$1,name:Zs,input:!0,validate:!1,rule({t:e}){return{type:Zs,field:Ye(),title:e("com.fcId.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Pe(t,Zs+".props",[{type:"input",field:"prefix"}])}},R1="\u7EDF\u8BA1\u680F",_a="aStatistic",pf=[fy,py,my,N1,O1,vy,sy,cy,by,_y,Oy,Sy,xy,Ey,ef,Ny,My,jy,Hy,Wy,h0,n0,V1,x1,q0,i0,a0,w0,j0,O0,F0,R0,I0,B0,Ky,e0,B1,Qy,x0,{menu:"aide",icon:"icon-statistic",label:R1,name:_a,inline:!0,easySlots:["prefix","suffix"],rule({t:e}){return{type:_a,props:{value:99e3,title:e("com."+_a+".name")}}},props(e,{t}){return Pe(t,_a+".props",[{type:"inputNumber",field:"value"},{type:"input",field:"title"},{type:"input",field:"prefix"},{type:"input",field:"suffix"}])}},Fy,g0,H0,W0,d1,h1,g1,y1,C1,w1,A1,o1,r1,f1,{menu:"chart",icon:"icon-chart-line",label:"\u6298\u7EBF\u56FE",name:"lineChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",props:{type:"line",config:{category:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],series:[{name:"Email",data:[120,132,101,134,90,230,210]},{name:"Union Ads",data:[220,182,191,234,290,330,310]},{name:"Video Ads",data:[150,232,201,154,190,330,410]},{name:"Direct",data:[320,332,301,334,390,330,320]},{name:"Search Engine",data:[820,932,901,934,1290,1330,1320]}]}}}},props(e,{t}){return Pe(t,"lineChart.props",[Tn(t,"props.config",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"input",field:"valueFormat",value:"{value}"},{type:"switch",field:"stack"},{type:"switch",field:"smooth"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-area",label:"\u4F53\u79EF\u56FE",name:"areaChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",props:{type:"area",config:{category:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],series:[{name:"Email",data:[120,132,101,134,90,230,210]},{name:"Union Ads",data:[220,182,191,234,290,330,310]},{name:"Video Ads",data:[150,232,201,154,190,330,410]},{name:"Direct",data:[320,332,301,334,390,330,320]},{name:"Search Engine",data:[820,932,901,934,1290,1330,1320]}]}}}},props(e,{t}){return Pe(t,"lineChart.props",[Tn(t,"props.config",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"input",field:"valueFormat",value:"{value}"},{type:"switch",field:"stack"},{type:"switch",field:"smooth"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-bar",label:"\u67F1\u72B6\u56FE",name:"barChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",props:{type:"bar",config:{category:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],series:[{name:"Direct",data:[320,332,301,334,390,330,320]}]}}}},props(e,{t}){return Pe(t,"lineChart.props",[Tn(t,"props.config",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"input",field:"valueFormat",value:"{value}"},{type:"ColorInput",field:"barBackgroundColor"},{type:"switch",field:"stack"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-stripe",label:"\u6761\u5F62\u56FE",name:"stripeChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",props:{type:"bar",stripe:!0,config:{category:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],series:[{name:"Direct",data:[320,332,301,334,390,330,320]},{name:"Direct2",data:[320,332,301,334,390,330,320]}]}}}},props(e,{t}){return Pe(t,"lineChart.props",[Tn(t,"props.config",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"input",field:"valueFormat",value:"{value}"},{type:"ColorInput",field:"barBackgroundColor"},{type:"switch",field:"stack"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-pie",label:"\u997C\u56FE",name:"pieChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",props:{type:"pie",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Num"},{value:300,name:"Video Num"}]}}},props(e,{t}){return Pe(t,"lineChart.props",[Tn(t,"props.data",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"select",field:"pieType",options:st(t,[{label:"pie",value:"pie"},{label:"doughnut",value:"doughnut"},{label:"half-doughnut",value:"half-doughnut"}],"com.lineChart.pieTypeOpt")},{type:"switch",field:"showLegend",value:!0}])}},{menu:"chart",icon:"icon-chart-funnel",label:"\u6F0F\u6597\u56FE",name:"funnelChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",props:{type:"funnel",data:[{value:60,name:"Visit"},{value:40,name:"Inquiry"},{value:20,name:"Order"},{value:80,name:"Click"},{value:100,name:"Show"}]}}},props(e,{t}){return Pe(t,"lineChart.props",[Tn(t,"props.data",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"select",field:"funnelSort",options:st(t,[{label:"descending",value:"descending"},{label:"ascending",value:"ascending"}],"com.lineChart.funnelSortOpt"),value:"descending"},{type:"switch",field:"showLegend",value:!0}])}},{menu:"chart",icon:"icon-chart-gauge",label:"\u4EEA\u8868\u76D8",name:"gaugeChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",props:{type:"gauge",value:50}}},props(e,{t}){return Pe(t,"lineChart.props",[{type:"inputNumber",field:"value"},{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"inputNumber",field:"min"},{type:"inputNumber",field:"max"}])}},{menu:"chart",icon:"icon-chart-radar",label:"\u96F7\u8FBE\u56FE",name:"radarChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",props:{type:"radar",indicator:[{name:"Sales",max:6500},{name:"Administration",max:16e3},{name:"Information Technology",max:3e4},{name:"Customer Support",max:38e3},{name:"Development",max:52e3},{name:"Marketing",max:25e3}],data:[{value:[4200,3e3,2e4,35e3,5e4,18e3],name:"Allocated Budget"},{value:[5e3,14e3,28e3,26e3,42e3,21e3],name:"Actual Spending"}]}}},props(e,{t}){return Pe(t,"lineChart.props",[Tn(t,"props.data",t("com.lineChart.data")),{type:"TableOptions",field:"indicator",props:{column:[{label:t("props.name"),key:"name"},{label:t("com.lineChart.props.max"),key:"max"}]}},{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-scatter",label:"\u6563\u70B9\u56FE",name:"scatterChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",props:{type:"scatter",data:[[[161.2,51.6],[167.5,59],[159.5,49.2],[157,63],[155.8,53.6],[170,59],[159.1,47.6],[166,69.8],[176.2,66.8],[160.2,75.2]],[[172.5,55.2],[170.9,54.2],[172.9,62.5],[153.4,42],[160,50],[147.2,49.8],[168.2,49.2],[175,73.2],[157,47.8],[167.6,68.8]]]}}},props(e,{t}){return Pe(t,"lineChart.props",[Tn(t,"props.data",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"}])}},{menu:"chart",icon:"icon-chart-custom",label:"\u81EA\u5B9A\u4E49\u56FE\u8868",name:"customChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",style:{height:"500px"},props:{type:"custom",config:{builderJson:{all:10887,charts:{map:3237,lines:2164,bar:7561,line:7778,pie:7355,scatter:2405,candlestick:1842,radar:2090,heatmap:1762,treemap:1593,graph:2060,boxplot:1537,parallel:1908,gauge:2107,funnel:1692,sankey:1568},components:{geo:2788,title:9575,legend:9400,tooltip:9466,grid:9266,markPoint:3419,markLine:2984,timeline:2739,dataZoom:2744,visualMap:2466,toolbox:3034,polar:1945},ie:9743},downloadJson:{"echarts.min.js":17365,"echarts.simple.min.js":4079,"echarts.common.min.js":6929,"echarts.js":14890},themeJson:{"dark.js":1594,"infographic.js":925,"shine.js":1608,"roma.js":721,"macarons.js":2179,"vintage.js":1982}},loadOptions:`$FNX:const builderJson = $inject.args[0]?.builderJson;
const downloadJson = $inject.args[0]?.downloadJson;
const themeJson = $inject.args[0]?.themeJson;
const waterMarkText = 'ECHARTS';
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
canvas.width = canvas.height = 100;
ctx.textAlign = 'center';
ctx.textBaseline = 'middle';
ctx.globalAlpha = 0.08;
ctx.font = '20px';
ctx.translate(50, 50);
ctx.rotate(-Math.PI / 4);
ctx.fillText(waterMarkText, 0, 0);
return {
backgroundColor: {
type: 'pattern',
image: canvas,
repeat: 'repeat'
},
tooltip: {},
title: [
{
text: '\u5728\u7EBF\u6784\u5EFA',
subtext: '\u603B\u8BA1 ' + builderJson.all,
left: '25%',
textAlign: 'center'
},
{
text: '\u5404\u7248\u672C\u4E0B\u8F7D',
subtext:
'\u603B\u8BA1 ' +
Object.keys(downloadJson).reduce(function (all, key) {
return all + downloadJson[key];
}, 0),
left: '75%',
textAlign: 'center'
},
{
text: '\u4E3B\u9898\u4E0B\u8F7D',
subtext:
'\u603B\u8BA1 ' +
Object.keys(themeJson).reduce(function (all, key) {
return all + themeJson[key];
}, 0),
left: '75%',
top: '50%',
textAlign: 'center'
}
],
grid: [
{
top: 50,
width: '50%',
bottom: '45%',
left: 10,
containLabel: true
},
{
top: '55%',
width: '50%',
bottom: 0,
left: 10,
containLabel: true
}
],
xAxis: [
{
type: 'value',
max: builderJson.all,
splitLine: {
show: false
}
},
{
type: 'value',
max: builderJson.all,
gridIndex: 1,
splitLine: {
show: false
}
}
],
yAxis: [
{
type: 'category',
data: Object.keys(builderJson.charts),
axisLabel: {
interval: 0,
rotate: 30
},
splitLine: {
show: false
}
},
{
gridIndex: 1,
type: 'category',
data: Object.keys(builderJson.components),
axisLabel: {
interval: 0,
rotate: 30
},
splitLine: {
show: false
}
}
],
series: [
{
type: 'bar',
stack: 'chart',
z: 3,
label: {
position: 'right',
show: true
},
data: Object.keys(builderJson.charts).map(function (key) {
return builderJson.charts[key];
})
},
{
type: 'bar',
stack: 'chart',
silent: true,
itemStyle: {
color: '#eee'
},
data: Object.keys(builderJson.charts).map(function (key) {
return builderJson.all - builderJson.charts[key];
})
},
{
type: 'bar',
stack: 'component',
xAxisIndex: 1,
yAxisIndex: 1,
z: 3,
label: {
position: 'right',
show: true
},
data: Object.keys(builderJson.components).map(function (key) {
return builderJson.components[key];
})
},
{
type: 'bar',
stack: 'component',
silent: true,
xAxisIndex: 1,
yAxisIndex: 1,
itemStyle: {
color: '#eee'
},
data: Object.keys(builderJson.components).map(function (key) {
return builderJson.all - builderJson.components[key];
})
},
{
type: 'pie',
radius: [0, '30%'],
center: ['75%', '25%'],
data: Object.keys(downloadJson).map(function (key) {
return {
name: key.replace('.js', ''),
value: downloadJson[key]
};
})
},
{
type: 'pie',
radius: [0, '30%'],
center: ['75%', '75%'],
data: Object.keys(themeJson).map(function (key) {
return {
name: key.replace('.js', ''),
value: themeJson[key]
};
})
}
]
};`}}},props(e,{t}){return Pe(t,"lineChart.props",[Tn(t,"props.config",t("com.lineChart.data")),{type:"FnInput",field:"loadOptions",props:{body:!0,button:!0,fnx:!0,args:[bn(t)],name:"loadOptions"}}])}},By,N0,l1,c1,P0,M0,Zy,Xy,s0,c0,C0,e1,t1,Y0,Q0,X0,G0,K0,$y,Ry,f0,y0,A0];function I1(e){return{icon:e.field?"icon-input":"icon-cell",label:e.field||e.type,name:"_",mask:!0,handleBtn:["delete"],rule(){return e},props(){return[]}}}/**!
* Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function hf(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),i.push.apply(i,r)}return i}function Yn(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?hf(Object(i),!0).forEach(function(r){F1(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):hf(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function wa(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wa=function(t){return typeof t}:wa=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wa(e)}function F1(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function ao(){return ao=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},ao.apply(this,arguments)}function P1(e,t){if(e==null)return{};var i={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(i[o]=e[o]);return i}function M1(e,t){if(e==null)return{};var i=P1(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(i[r]=e[r]))}return i}var L1="1.14.0";function lo(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var so=lo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),dr=lo(/Edge/i),mf=lo(/firefox/i),cr=lo(/safari/i)&&!lo(/chrome/i)&&!lo(/android/i),gf=lo(/iP(ad|od|hone)/i),j1=lo(/chrome/i)&&lo(/android/i),vf={capture:!1,passive:!1};function yt(e,t,i){e.addEventListener(t,i,!so&&vf)}function pt(e,t,i){e.removeEventListener(t,i,!so&&vf)}function Ea(e,t){if(!!t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function z1(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Qn(e,t,i,r){if(e){i=i||document;do{if(t!=null&&(t[0]===">"?e.parentNode===i&&Ea(e,t):Ea(e,t))||r&&e===i)return e;if(e===i)break}while(e=z1(e))}return null}var yf=/\s+/g;function Cn(e,t,i){if(e&&t)if(e.classList)e.classList[i?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(yf," ").replace(" "+t+" "," ");e.className=(r+(i?" "+t:"")).replace(yf," ")}}function ot(e,t,i){var r=e&&e.style;if(r){if(i===void 0)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(i=e.currentStyle),t===void 0?i:i[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=i+(typeof i=="string"?"":"px")}}function hi(e,t){var i="";if(typeof e=="string")i=e;else do{var r=ot(e,"transform");r&&r!=="none"&&(i=r+" "+i)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(i)}function bf(e,t,i){if(e){var r=e.getElementsByTagName(t),o=0,s=r.length;if(i)for(;o<s;o++)i(r[o],o);return r}return[]}function Xn(){var e=document.scrollingElement;return e||document.documentElement}function zt(e,t,i,r,o){if(!(!e.getBoundingClientRect&&e!==window)){var s,d,c,u,g,y,C;if(e!==window&&e.parentNode&&e!==Xn()?(s=e.getBoundingClientRect(),d=s.top,c=s.left,u=s.bottom,g=s.right,y=s.height,C=s.width):(d=0,c=0,u=window.innerHeight,g=window.innerWidth,y=window.innerHeight,C=window.innerWidth),(t||i)&&e!==window&&(o=o||e.parentNode,!so))do if(o&&o.getBoundingClientRect&&(ot(o,"transform")!=="none"||i&&ot(o,"position")!=="static")){var w=o.getBoundingClientRect();d-=w.top+parseInt(ot(o,"border-top-width")),c-=w.left+parseInt(ot(o,"border-left-width")),u=d+s.height,g=c+s.width;break}while(o=o.parentNode);if(r&&e!==window){var A=hi(o||e),E=A&&A.a,_=A&&A.d;A&&(d/=_,c/=E,C/=E,y/=_,u=d+y,g=c+C)}return{top:d,left:c,bottom:u,right:g,width:C,height:y}}}function Cf(e,t,i){for(var r=Ao(e,!0),o=zt(e)[t];r;){var s=zt(r)[i],d=void 0;if(i==="top"||i==="left"?d=o>=s:d=o<=s,!d)return r;if(r===Xn())break;r=Ao(r,!1)}return!1}function mi(e,t,i,r){for(var o=0,s=0,d=e.children;s<d.length;){if(d[s].style.display!=="none"&&d[s]!==it.ghost&&(r||d[s]!==it.dragged)&&Qn(d[s],i.draggable,e,!1)){if(o===t)return d[s];o++}s++}return null}function qs(e,t){for(var i=e.lastElementChild;i&&(i===it.ghost||ot(i,"display")==="none"||t&&!Ea(i,t));)i=i.previousElementSibling;return i||null}function On(e,t){var i=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==it.clone&&(!t||Ea(e,t))&&i++;return i}function _f(e){var t=0,i=0,r=Xn();if(e)do{var o=hi(e),s=o.a,d=o.d;t+=e.scrollLeft*s,i+=e.scrollTop*d}while(e!==r&&(e=e.parentNode));return[t,i]}function H1(e,t){for(var i in e)if(!!e.hasOwnProperty(i)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[i][r])return Number(i)}return-1}function Ao(e,t){if(!e||!e.getBoundingClientRect)return Xn();var i=e,r=!1;do if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var o=ot(i);if(i.clientWidth<i.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||i.clientHeight<i.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!i.getBoundingClientRect||i===document.body)return Xn();if(r||t)return i;r=!0}}while(i=i.parentNode);return Xn()}function U1(e,t){if(e&&t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function ed(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var ur;function wf(e,t){return function(){if(!ur){var i=arguments,r=this;i.length===1?e.call(r,i[0]):e.apply(r,i),ur=setTimeout(function(){ur=void 0},t)}}}function W1(){clearTimeout(ur),ur=void 0}function Ef(e,t,i){e.scrollLeft+=t,e.scrollTop+=i}function Af(e){var t=window.Polymer,i=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):i?i(e).clone(!0)[0]:e.cloneNode(!0)}var _n="Sortable"+new Date().getTime();function G1(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!(ot(o,"display")==="none"||o===it.ghost)){e.push({target:o,rect:zt(o)});var s=Yn({},e[e.length-1].rect);if(o.thisAnimationDuration){var d=hi(o,!0);d&&(s.top-=d.f,s.left-=d.e)}o.fromRect=s}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(H1(e,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var s=!1,d=0;e.forEach(function(c){var u=0,g=c.target,y=g.fromRect,C=zt(g),w=g.prevFromRect,A=g.prevToRect,E=c.rect,_=hi(g,!0);_&&(C.top-=_.f,C.left-=_.e),g.toRect=C,g.thisAnimationDuration&&ed(w,C)&&!ed(y,C)&&(E.top-C.top)/(E.left-C.left)===(y.top-C.top)/(y.left-C.left)&&(u=Y1(E,w,A,o.options)),ed(C,y)||(g.prevFromRect=y,g.prevToRect=C,u||(u=o.options.animation),o.animate(g,E,C,u)),u&&(s=!0,d=Math.max(d,u),clearTimeout(g.animationResetTimer),g.animationResetTimer=setTimeout(function(){g.animationTime=0,g.prevFromRect=null,g.fromRect=null,g.prevToRect=null,g.thisAnimationDuration=null},u),g.thisAnimationDuration=u)}),clearTimeout(t),s?t=setTimeout(function(){typeof r=="function"&&r()},d):typeof r=="function"&&r(),e=[]},animate:function(r,o,s,d){if(d){ot(r,"transition",""),ot(r,"transform","");var c=hi(this.el),u=c&&c.a,g=c&&c.d,y=(o.left-s.left)/(u||1),C=(o.top-s.top)/(g||1);r.animatingX=!!y,r.animatingY=!!C,ot(r,"transform","translate3d("+y+"px,"+C+"px,0)"),this.forRepaintDummy=K1(r),ot(r,"transition","transform "+d+"ms"+(this.options.easing?" "+this.options.easing:"")),ot(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){ot(r,"transition",""),ot(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},d)}}}}function K1(e){return e.offsetWidth}function Y1(e,t,i,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-i.top,2)+Math.pow(t.left-i.left,2))*r.animation}var gi=[],td={initializeByDefault:!0},fr={mount:function(t){for(var i in td)td.hasOwnProperty(i)&&!(i in t)&&(t[i]=td[i]);gi.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),gi.push(t)},pluginEvent:function(t,i,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var s=t+"Global";gi.forEach(function(d){!i[d.pluginName]||(i[d.pluginName][s]&&i[d.pluginName][s](Yn({sortable:i},r)),i.options[d.pluginName]&&i[d.pluginName][t]&&i[d.pluginName][t](Yn({sortable:i},r)))})},initializePlugins:function(t,i,r,o){gi.forEach(function(c){var u=c.pluginName;if(!(!t.options[u]&&!c.initializeByDefault)){var g=new c(t,i,t.options);g.sortable=t,g.options=t.options,t[u]=g,ao(r,g.defaults)}});for(var s in t.options)if(!!t.options.hasOwnProperty(s)){var d=this.modifyOption(t,s,t.options[s]);typeof d<"u"&&(t.options[s]=d)}},getEventProperties:function(t,i){var r={};return gi.forEach(function(o){typeof o.eventProperties=="function"&&ao(r,o.eventProperties.call(i[o.pluginName],t))}),r},modifyOption:function(t,i,r){var o;return gi.forEach(function(s){!t[s.pluginName]||s.optionListeners&&typeof s.optionListeners[i]=="function"&&(o=s.optionListeners[i].call(t[s.pluginName],r))}),o}};function Q1(e){var t=e.sortable,i=e.rootEl,r=e.name,o=e.targetEl,s=e.cloneEl,d=e.toEl,c=e.fromEl,u=e.oldIndex,g=e.newIndex,y=e.oldDraggableIndex,C=e.newDraggableIndex,w=e.originalEvent,A=e.putSortable,E=e.extraEventProperties;if(t=t||i&&i[_n],!!t){var _,v=t.options,m="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!so&&!dr?_=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(_=document.createEvent("Event"),_.initEvent(r,!0,!0)),_.to=d||i,_.from=c||i,_.item=o||i,_.clone=s,_.oldIndex=u,_.newIndex=g,_.oldDraggableIndex=y,_.newDraggableIndex=C,_.originalEvent=w,_.pullMode=A?A.lastPutMode:void 0;var b=Yn(Yn({},E),fr.getEventProperties(r,t));for(var S in b)_[S]=b[S];i&&i.dispatchEvent(_),v[m]&&v[m].call(t,_)}}var X1=["evt"],pn=function(t,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,s=M1(r,X1);fr.pluginEvent.bind(it)(t,i,Yn({dragEl:Me,parentEl:Vt,ghostEl:dt,rootEl:kt,nextEl:Wo,lastDownEl:Aa,cloneEl:Rt,cloneHidden:So,dragStarted:hr,putSortable:Xt,activeSortable:it.active,originalEvent:o,oldIndex:vi,oldDraggableIndex:pr,newIndex:wn,newDraggableIndex:xo,hideGhostForTarget:Df,unhideGhostForTarget:Bf,cloneNowHidden:function(){So=!0},cloneNowShown:function(){So=!1},dispatchSortableEvent:function(c){on({sortable:i,name:c,originalEvent:o})}},s))};function on(e){Q1(Yn({putSortable:Xt,cloneEl:Rt,targetEl:Me,rootEl:kt,oldIndex:vi,oldDraggableIndex:pr,newIndex:wn,newDraggableIndex:xo},e))}var Me,Vt,dt,kt,Wo,Aa,Rt,So,vi,wn,pr,xo,Sa,Xt,yi=!1,xa=!1,ka=[],Go,Pn,nd,od,Sf,xf,hr,bi,mr,gr=!1,Na=!1,Ta,en,id=[],rd=!1,Oa=[],Da=typeof document<"u",Ba=gf,kf=dr||so?"cssFloat":"float",J1=Da&&!j1&&!gf&&"draggable"in document.createElement("div"),Nf=function(){if(!!Da){if(so)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Tf=function(t,i){var r=ot(t),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),s=mi(t,0,i),d=mi(t,1,i),c=s&&ot(s),u=d&&ot(d),g=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+zt(s).width,y=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+zt(d).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&c.float&&c.float!=="none"){var C=c.float==="left"?"left":"right";return d&&(u.clear==="both"||u.clear===C)?"vertical":"horizontal"}return s&&(c.display==="block"||c.display==="flex"||c.display==="table"||c.display==="grid"||g>=o&&r[kf]==="none"||d&&r[kf]==="none"&&g+y>o)?"vertical":"horizontal"},Z1=function(t,i,r){var o=r?t.left:t.top,s=r?t.right:t.bottom,d=r?t.width:t.height,c=r?i.left:i.top,u=r?i.right:i.bottom,g=r?i.width:i.height;return o===c||s===u||o+d/2===c+g/2},q1=function(t,i){var r;return ka.some(function(o){var s=o[_n].options.emptyInsertThreshold;if(!(!s||qs(o))){var d=zt(o),c=t>=d.left-s&&t<=d.right+s,u=i>=d.top-s&&i<=d.bottom+s;if(c&&u)return r=o}}),r},Of=function(t){function i(s,d){return function(c,u,g,y){var C=c.options.group.name&&u.options.group.name&&c.options.group.name===u.options.group.name;if(s==null&&(d||C))return!0;if(s==null||s===!1)return!1;if(d&&s==="clone")return s;if(typeof s=="function")return i(s(c,u,g,y),d)(c,u,g,y);var w=(d?c:u).options.group.name;return s===!0||typeof s=="string"&&s===w||s.join&&s.indexOf(w)>-1}}var r={},o=t.group;(!o||wa(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=i(o.pull,!0),r.checkPut=i(o.put),r.revertClone=o.revertClone,t.group=r},Df=function(){!Nf&&dt&&ot(dt,"display","none")},Bf=function(){!Nf&&dt&&ot(dt,"display","")};Da&&document.addEventListener("click",function(e){if(xa)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),xa=!1,!1},!0);var Ko=function(t){if(Me){t=t.touches?t.touches[0]:t;var i=q1(t.clientX,t.clientY);if(i){var r={};for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);r.target=r.rootEl=i,r.preventDefault=void 0,r.stopPropagation=void 0,i[_n]._onDragOver(r)}}},eb=function(t){Me&&Me.parentNode[_n]._isOutsideThisEl(t.target)};function it(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=ao({},t),e[_n]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Tf(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(d,c){d.setData("Text",c.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:it.supportPointer!==!1&&"PointerEvent"in window&&!cr,emptyInsertThreshold:5};fr.initializePlugins(this,e,i);for(var r in i)!(r in t)&&(t[r]=i[r]);Of(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:J1,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?yt(e,"pointerdown",this._onTapStart):(yt(e,"mousedown",this._onTapStart),yt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(yt(e,"dragover",this),yt(e,"dragenter",this)),ka.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),ao(this,G1())}it.prototype={constructor:it,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(bi=null)},_getDirection:function(t,i){return typeof this.options.direction=="function"?this.options.direction.call(this,t,i,Me):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var i=this,r=this.el,o=this.options,s=o.preventOnFilter,d=t.type,c=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,u=(c||t).target,g=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||u,y=o.filter;if(sb(r),!Me&&!(/mousedown|pointerdown/.test(d)&&t.button!==0||o.disabled)&&!g.isContentEditable&&!(!this.nativeDraggable&&cr&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=Qn(u,o.draggable,r,!1),!(u&&u.animated)&&Aa!==u)){if(vi=On(u),pr=On(u,o.draggable),typeof y=="function"){if(y.call(this,t,u,this)){on({sortable:i,rootEl:g,name:"filter",targetEl:u,toEl:r,fromEl:r}),pn("filter",i,{evt:t}),s&&t.cancelable&&t.preventDefault();return}}else if(y&&(y=y.split(",").some(function(C){if(C=Qn(g,C.trim(),r,!1),C)return on({sortable:i,rootEl:C,name:"filter",targetEl:u,fromEl:r,toEl:r}),pn("filter",i,{evt:t}),!0}),y)){s&&t.cancelable&&t.preventDefault();return}o.handle&&!Qn(g,o.handle,r,!1)||this._prepareDragStart(t,c,u)}}},_prepareDragStart:function(t,i,r){var o=this,s=o.el,d=o.options,c=s.ownerDocument,u;if(r&&!Me&&r.parentNode===s){var g=zt(r);if(kt=s,Me=r,Vt=Me.parentNode,Wo=Me.nextSibling,Aa=r,Sa=d.group,it.dragged=Me,Go={target:Me,clientX:(i||t).clientX,clientY:(i||t).clientY},Sf=Go.clientX-g.left,xf=Go.clientY-g.top,this._lastX=(i||t).clientX,this._lastY=(i||t).clientY,Me.style["will-change"]="all",u=function(){if(pn("delayEnded",o,{evt:t}),it.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!mf&&o.nativeDraggable&&(Me.draggable=!0),o._triggerDragStart(t,i),on({sortable:o,name:"choose",originalEvent:t}),Cn(Me,d.chosenClass,!0)},d.ignore.split(",").forEach(function(y){bf(Me,y.trim(),ad)}),yt(c,"dragover",Ko),yt(c,"mousemove",Ko),yt(c,"touchmove",Ko),yt(c,"mouseup",o._onDrop),yt(c,"touchend",o._onDrop),yt(c,"touchcancel",o._onDrop),mf&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Me.draggable=!0),pn("delayStart",this,{evt:t}),d.delay&&(!d.delayOnTouchOnly||i)&&(!this.nativeDraggable||!(dr||so))){if(it.eventCanceled){this._onDrop();return}yt(c,"mouseup",o._disableDelayedDrag),yt(c,"touchend",o._disableDelayedDrag),yt(c,"touchcancel",o._disableDelayedDrag),yt(c,"mousemove",o._delayedDragTouchMoveHandler),yt(c,"touchmove",o._delayedDragTouchMoveHandler),d.supportPointer&&yt(c,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(u,d.delay)}else u()}},_delayedDragTouchMoveHandler:function(t){var i=t.touches?t.touches[0]:t;Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Me&&ad(Me),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;pt(t,"mouseup",this._disableDelayedDrag),pt(t,"touchend",this._disableDelayedDrag),pt(t,"touchcancel",this._disableDelayedDrag),pt(t,"mousemove",this._delayedDragTouchMoveHandler),pt(t,"touchmove",this._delayedDragTouchMoveHandler),pt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,i){i=i||t.pointerType=="touch"&&t,!this.nativeDraggable||i?this.options.supportPointer?yt(document,"pointermove",this._onTouchMove):i?yt(document,"touchmove",this._onTouchMove):yt(document,"mousemove",this._onTouchMove):(yt(Me,"dragend",this),yt(kt,"dragstart",this._onDragStart));try{document.selection?Va(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,i){if(yi=!1,kt&&Me){pn("dragStarted",this,{evt:i}),this.nativeDraggable&&yt(document,"dragover",eb);var r=this.options;!t&&Cn(Me,r.dragClass,!1),Cn(Me,r.ghostClass,!0),it.active=this,t&&this._appendGhost(),on({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(Pn){this._lastX=Pn.clientX,this._lastY=Pn.clientY,Df();for(var t=document.elementFromPoint(Pn.clientX,Pn.clientY),i=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Pn.clientX,Pn.clientY),t!==i);)i=t;if(Me.parentNode[_n]._isOutsideThisEl(t),i)do{if(i[_n]){var r=void 0;if(r=i[_n]._onDragOver({clientX:Pn.clientX,clientY:Pn.clientY,target:t,rootEl:i}),r&&!this.options.dragoverBubble)break}t=i}while(i=i.parentNode);Bf()}},_onTouchMove:function(t){if(Go){var i=this.options,r=i.fallbackTolerance,o=i.fallbackOffset,s=t.touches?t.touches[0]:t,d=dt&&hi(dt,!0),c=dt&&d&&d.a,u=dt&&d&&d.d,g=Ba&&en&&_f(en),y=(s.clientX-Go.clientX+o.x)/(c||1)+(g?g[0]-id[0]:0)/(c||1),C=(s.clientY-Go.clientY+o.y)/(u||1)+(g?g[1]-id[1]:0)/(u||1);if(!it.active&&!yi){if(r&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(dt){d?(d.e+=y-(nd||0),d.f+=C-(od||0)):d={a:1,b:0,c:0,d:1,e:y,f:C};var w="matrix(".concat(d.a,",").concat(d.b,",").concat(d.c,",").concat(d.d,",").concat(d.e,",").concat(d.f,")");ot(dt,"webkitTransform",w),ot(dt,"mozTransform",w),ot(dt,"msTransform",w),ot(dt,"transform",w),nd=y,od=C,Pn=s}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!dt){var t=this.options.fallbackOnBody?document.body:kt,i=zt(Me,!0,Ba,!0,t),r=this.options;if(Ba){for(en=t;ot(en,"position")==="static"&&ot(en,"transform")==="none"&&en!==document;)en=en.parentNode;en!==document.body&&en!==document.documentElement?(en===document&&(en=Xn()),i.top+=en.scrollTop,i.left+=en.scrollLeft):en=Xn(),id=_f(en)}dt=Me.cloneNode(!0),Cn(dt,r.ghostClass,!1),Cn(dt,r.fallbackClass,!0),Cn(dt,r.dragClass,!0),ot(dt,"transition",""),ot(dt,"transform",""),ot(dt,"box-sizing","border-box"),ot(dt,"margin",0),ot(dt,"top",i.top),ot(dt,"left",i.left),ot(dt,"width",i.width),ot(dt,"height",i.height),ot(dt,"opacity","0.8"),ot(dt,"position",Ba?"absolute":"fixed"),ot(dt,"zIndex","100000"),ot(dt,"pointerEvents","none"),it.ghost=dt,t.appendChild(dt),ot(dt,"transform-origin",Sf/parseInt(dt.style.width)*100+"% "+xf/parseInt(dt.style.height)*100+"%")}},_onDragStart:function(t,i){var r=this,o=t.dataTransfer,s=r.options;if(pn("dragStart",this,{evt:t}),it.eventCanceled){this._onDrop();return}pn("setupClone",this),it.eventCanceled||(Rt=Af(Me),Rt.draggable=!1,Rt.style["will-change"]="",this._hideClone(),Cn(Rt,this.options.chosenClass,!1),it.clone=Rt),r.cloneId=Va(function(){pn("clone",r),!it.eventCanceled&&(r.options.removeCloneOnHide||kt.insertBefore(Rt,Me),r._hideClone(),on({sortable:r,name:"clone"}))}),!i&&Cn(Me,s.dragClass,!0),i?(xa=!0,r._loopId=setInterval(r._emulateDragOver,50)):(pt(document,"mouseup",r._onDrop),pt(document,"touchend",r._onDrop),pt(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",s.setData&&s.setData.call(r,o,Me)),yt(document,"drop",r),ot(Me,"transform","translateZ(0)")),yi=!0,r._dragStartId=Va(r._dragStarted.bind(r,i,t)),yt(document,"selectstart",r),hr=!0,cr&&ot(document.body,"user-select","none")},_onDragOver:function(t){var i=this.el,r=t.target,o,s,d,c=this.options,u=c.group,g=it.active,y=Sa===u,C=c.sort,w=Xt||g,A,E=this,_=!1;if(rd)return;function v(j,Z){pn(j,E,Yn({evt:t,isOwner:y,axis:A?"vertical":"horizontal",revert:d,dragRect:o,targetRect:s,canSort:C,fromSortable:w,target:r,completed:b,onMove:function(F,ie){return $a(kt,i,Me,o,F,zt(F),t,ie)},changed:S},Z))}function m(){v("dragOverAnimationCapture"),E.captureAnimationState(),E!==w&&w.captureAnimationState()}function b(j){return v("dragOverCompleted",{insertion:j}),j&&(y?g._hideClone():g._showClone(E),E!==w&&(Cn(Me,Xt?Xt.options.ghostClass:g.options.ghostClass,!1),Cn(Me,c.ghostClass,!0)),Xt!==E&&E!==it.active?Xt=E:E===it.active&&Xt&&(Xt=null),w===E&&(E._ignoreWhileAnimating=r),E.animateAll(function(){v("dragOverAnimationComplete"),E._ignoreWhileAnimating=null}),E!==w&&(w.animateAll(),w._ignoreWhileAnimating=null)),(r===Me&&!Me.animated||r===i&&!r.animated)&&(bi=null),!c.dragoverBubble&&!t.rootEl&&r!==document&&(Me.parentNode[_n]._isOutsideThisEl(t.target),!j&&Ko(t)),!c.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),_=!0}function S(){wn=On(Me),xo=On(Me,c.draggable),on({sortable:E,name:"change",toEl:i,newIndex:wn,newDraggableIndex:xo,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=Qn(r,c.draggable,i,!0),v("dragOver"),it.eventCanceled)return _;if(Me.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||E._ignoreWhileAnimating===r)return b(!1);if(xa=!1,g&&!c.disabled&&(y?C||(d=Vt!==kt):Xt===this||(this.lastPutMode=Sa.checkPull(this,g,Me,t))&&u.checkPut(this,g,Me,t))){if(A=this._getDirection(t,r)==="vertical",o=zt(Me),v("dragOverValid"),it.eventCanceled)return _;if(d)return Vt=kt,m(),this._hideClone(),v("revert"),it.eventCanceled||(Wo?kt.insertBefore(Me,Wo):kt.appendChild(Me)),b(!0);var x=qs(i,c.draggable);if(!x||ib(t,A,this)&&!x.animated){if(x===Me)return b(!1);if(x&&i===t.target&&(r=x),r&&(s=zt(r)),$a(kt,i,Me,o,r,s,t,!!r)!==!1)return m(),i.appendChild(Me),Vt=i,S(),b(!0)}else if(x&&ob(t,A,this)){var O=mi(i,0,c,!0);if(O===Me)return b(!1);if(r=O,s=zt(r),$a(kt,i,Me,o,r,s,t,!1)!==!1)return m(),i.insertBefore(Me,O),Vt=i,S(),b(!0)}else if(r.parentNode===i){s=zt(r);var D=0,R,I=Me.parentNode!==i,z=!Z1(Me.animated&&Me.toRect||o,r.animated&&r.toRect||s,A),T=A?"top":"left",B=Cf(r,"top","top")||Cf(Me,"top","top"),L=B?B.scrollTop:void 0;bi!==r&&(R=s[T],gr=!1,Na=!z&&c.invertSwap||I),D=rb(t,r,s,A,z?1:c.swapThreshold,c.invertedSwapThreshold==null?c.swapThreshold:c.invertedSwapThreshold,Na,bi===r);var U;if(D!==0){var W=On(Me);do W-=D,U=Vt.children[W];while(U&&(ot(U,"display")==="none"||U===dt))}if(D===0||U===r)return b(!1);bi=r,mr=D;var V=r.nextElementSibling,k=!1;k=D===1;var M=$a(kt,i,Me,o,r,s,t,k);if(M!==!1)return(M===1||M===-1)&&(k=M===1),rd=!0,setTimeout(nb,30),m(),k&&!V?i.appendChild(Me):r.parentNode.insertBefore(Me,k?V:r),B&&Ef(B,0,L-B.scrollTop),Vt=Me.parentNode,R!==void 0&&!Na&&(Ta=Math.abs(R-zt(r)[T])),S(),b(!0)}if(i.contains(Me))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){pt(document,"mousemove",this._onTouchMove),pt(document,"touchmove",this._onTouchMove),pt(document,"pointermove",this._onTouchMove),pt(document,"dragover",Ko),pt(document,"mousemove",Ko),pt(document,"touchmove",Ko)},_offUpEvents:function(){var t=this.el.ownerDocument;pt(t,"mouseup",this._onDrop),pt(t,"touchend",this._onDrop),pt(t,"pointerup",this._onDrop),pt(t,"touchcancel",this._onDrop),pt(document,"selectstart",this)},_onDrop:function(t){var i=this.el,r=this.options;if(wn=On(Me),xo=On(Me,r.draggable),pn("drop",this,{evt:t}),Vt=Me&&Me.parentNode,wn=On(Me),xo=On(Me,r.draggable),it.eventCanceled){this._nulling();return}yi=!1,Na=!1,gr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ld(this.cloneId),ld(this._dragStartId),this.nativeDraggable&&(pt(document,"drop",this),pt(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),cr&&ot(document.body,"user-select",""),ot(Me,"transform",""),t&&(hr&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),dt&&dt.parentNode&&dt.parentNode.removeChild(dt),(kt===Vt||Xt&&Xt.lastPutMode!=="clone")&&Rt&&Rt.parentNode&&Rt.parentNode.removeChild(Rt),Me&&(this.nativeDraggable&&pt(Me,"dragend",this),ad(Me),Me.style["will-change"]="",hr&&!yi&&Cn(Me,Xt?Xt.options.ghostClass:this.options.ghostClass,!1),Cn(Me,this.options.chosenClass,!1),on({sortable:this,name:"unchoose",toEl:Vt,newIndex:null,newDraggableIndex:null,originalEvent:t}),kt!==Vt?(wn>=0&&(on({rootEl:Vt,name:"add",toEl:Vt,fromEl:kt,originalEvent:t}),on({sortable:this,name:"remove",toEl:Vt,originalEvent:t}),on({rootEl:Vt,name:"sort",toEl:Vt,fromEl:kt,originalEvent:t}),on({sortable:this,name:"sort",toEl:Vt,originalEvent:t})),Xt&&Xt.save()):wn!==vi&&wn>=0&&(on({sortable:this,name:"update",toEl:Vt,originalEvent:t}),on({sortable:this,name:"sort",toEl:Vt,originalEvent:t})),it.active&&((wn==null||wn===-1)&&(wn=vi,xo=pr),on({sortable:this,name:"end",toEl:Vt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){pn("nulling",this),kt=Me=Vt=dt=Wo=Rt=Aa=So=Go=Pn=hr=wn=xo=vi=pr=bi=mr=Xt=Sa=it.dragged=it.ghost=it.clone=it.active=null,Oa.forEach(function(t){t.checked=!0}),Oa.length=nd=od=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Me&&(this._onDragOver(t),tb(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],i,r=this.el.children,o=0,s=r.length,d=this.options;o<s;o++)i=r[o],Qn(i,d.draggable,this.el,!1)&&t.push(i.getAttribute(d.dataIdAttr)||lb(i));return t},sort:function(t,i){var r={},o=this.el;this.toArray().forEach(function(s,d){var c=o.children[d];Qn(c,this.options.draggable,o,!1)&&(r[s]=c)},this),i&&this.captureAnimationState(),t.forEach(function(s){r[s]&&(o.removeChild(r[s]),o.appendChild(r[s]))}),i&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,i){return Qn(t,i||this.options.draggable,this.el,!1)},option:function(t,i){var r=this.options;if(i===void 0)return r[t];var o=fr.modifyOption(this,t,i);typeof o<"u"?r[t]=o:r[t]=i,t==="group"&&Of(r)},destroy:function(){pn("destroy",this);var t=this.el;t[_n]=null,pt(t,"mousedown",this._onTapStart),pt(t,"touchstart",this._onTapStart),pt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(pt(t,"dragover",this),pt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(i){i.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),ka.splice(ka.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!So){if(pn("hideClone",this),it.eventCanceled)return;ot(Rt,"display","none"),this.options.removeCloneOnHide&&Rt.parentNode&&Rt.parentNode.removeChild(Rt),So=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(So){if(pn("showClone",this),it.eventCanceled)return;Me.parentNode==kt&&!this.options.group.revertClone?kt.insertBefore(Rt,Me):Wo?kt.insertBefore(Rt,Wo):kt.appendChild(Rt),this.options.group.revertClone&&this.animate(Me,Rt),ot(Rt,"display",""),So=!1}}};function tb(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function $a(e,t,i,r,o,s,d,c){var u,g=e[_n],y=g.options.onMove,C;return window.CustomEvent&&!so&&!dr?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=t,u.from=e,u.dragged=i,u.draggedRect=r,u.related=o||t,u.relatedRect=s||zt(t),u.willInsertAfter=c,u.originalEvent=d,e.dispatchEvent(u),y&&(C=y.call(g,u,d)),C}function ad(e){e.draggable=!1}function nb(){rd=!1}function ob(e,t,i){var r=zt(mi(i.el,0,i.options,!0)),o=10;return t?e.clientX<r.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-o||e.clientY<r.bottom&&e.clientX<r.left}function ib(e,t,i){var r=zt(qs(i.el,i.options.draggable)),o=10;return t?e.clientX>r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}function rb(e,t,i,r,o,s,d,c){var u=r?e.clientY:e.clientX,g=r?i.height:i.width,y=r?i.top:i.left,C=r?i.bottom:i.right,w=!1;if(!d){if(c&&Ta<g*o){if(!gr&&(mr===1?u>y+g*s/2:u<C-g*s/2)&&(gr=!0),gr)w=!0;else if(mr===1?u<y+Ta:u>C-Ta)return-mr}else if(u>y+g*(1-o)/2&&u<C-g*(1-o)/2)return ab(t)}return w=w||d,w&&(u<y+g*s/2||u>C-g*s/2)?u>y+g/2?1:-1:0}function ab(e){return On(Me)<On(e)?1:-1}function lb(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,i=t.length,r=0;i--;)r+=t.charCodeAt(i);return r.toString(36)}function sb(e){Oa.length=0;for(var t=e.getElementsByTagName("input"),i=t.length;i--;){var r=t[i];r.checked&&Oa.push(r)}}function Va(e){return setTimeout(e,0)}function ld(e){return clearTimeout(e)}Da&&yt(document,"touchmove",function(e){(it.active||yi)&&e.cancelable&&e.preventDefault()}),it.utils={on:yt,off:pt,css:ot,find:bf,is:function(t,i){return!!Qn(t,i,t,!1)},extend:U1,throttle:wf,closest:Qn,toggleClass:Cn,clone:Af,index:On,nextTick:Va,cancelNextTick:ld,detectDirection:Tf,getChild:mi},it.get=function(e){return e[_n]},it.mount=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(it.utils=Yn(Yn({},it.utils),r.utils)),fr.mount(r)})},it.create=function(e,t){return new it(e,t)},it.version=L1;var Mt=[],vr,sd,dd=!1,cd,ud,Ra,yr;function db(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(i){var r=i.originalEvent;this.sortable.nativeDraggable?yt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?yt(document,"pointermove",this._handleFallbackAutoScroll):r.touches?yt(document,"touchmove",this._handleFallbackAutoScroll):yt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(i){var r=i.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?pt(document,"dragover",this._handleAutoScroll):(pt(document,"pointermove",this._handleFallbackAutoScroll),pt(document,"touchmove",this._handleFallbackAutoScroll),pt(document,"mousemove",this._handleFallbackAutoScroll)),$f(),Ia(),W1()},nulling:function(){Ra=sd=vr=dd=yr=cd=ud=null,Mt.length=0},_handleFallbackAutoScroll:function(i){this._handleAutoScroll(i,!0)},_handleAutoScroll:function(i,r){var o=this,s=(i.touches?i.touches[0]:i).clientX,d=(i.touches?i.touches[0]:i).clientY,c=document.elementFromPoint(s,d);if(Ra=i,r||this.options.forceAutoScrollFallback||dr||so||cr){fd(i,this.options,c,r);var u=Ao(c,!0);dd&&(!yr||s!==cd||d!==ud)&&(yr&&$f(),yr=setInterval(function(){var g=Ao(document.elementFromPoint(s,d),!0);g!==u&&(u=g,Ia()),fd(i,o.options,g,r)},10),cd=s,ud=d)}else{if(!this.options.bubbleScroll||Ao(c,!0)===Xn()){Ia();return}fd(i,this.options,Ao(c,!1),!1)}}},ao(e,{pluginName:"scroll",initializeByDefault:!0})}function Ia(){Mt.forEach(function(e){clearInterval(e.pid)}),Mt=[]}function $f(){clearInterval(yr)}var fd=wf(function(e,t,i,r){if(!!t.scroll){var o=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,d=t.scrollSensitivity,c=t.scrollSpeed,u=Xn(),g=!1,y;sd!==i&&(sd=i,Ia(),vr=t.scroll,y=t.scrollFn,vr===!0&&(vr=Ao(i,!0)));var C=0,w=vr;do{var A=w,E=zt(A),_=E.top,v=E.bottom,m=E.left,b=E.right,S=E.width,x=E.height,O=void 0,D=void 0,R=A.scrollWidth,I=A.scrollHeight,z=ot(A),T=A.scrollLeft,B=A.scrollTop;A===u?(O=S<R&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),D=x<I&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(O=S<R&&(z.overflowX==="auto"||z.overflowX==="scroll"),D=x<I&&(z.overflowY==="auto"||z.overflowY==="scroll"));var L=O&&(Math.abs(b-o)<=d&&T+S<R)-(Math.abs(m-o)<=d&&!!T),U=D&&(Math.abs(v-s)<=d&&B+x<I)-(Math.abs(_-s)<=d&&!!B);if(!Mt[C])for(var W=0;W<=C;W++)Mt[W]||(Mt[W]={});(Mt[C].vx!=L||Mt[C].vy!=U||Mt[C].el!==A)&&(Mt[C].el=A,Mt[C].vx=L,Mt[C].vy=U,clearInterval(Mt[C].pid),(L!=0||U!=0)&&(g=!0,Mt[C].pid=setInterval(function(){r&&this.layer===0&&it.active._onTouchMove(Ra);var V=Mt[this.layer].vy?Mt[this.layer].vy*c:0,k=Mt[this.layer].vx?Mt[this.layer].vx*c:0;typeof y=="function"&&y.call(it.dragged.parentNode[_n],k,V,e,Ra,Mt[this.layer].el)!=="continue"||Ef(Mt[this.layer].el,k,V)}.bind({layer:C}),24))),C++}while(t.bubbleScroll&&w!==u&&(w=Ao(w,!1)));dd=g}},30),Vf=function(t){var i=t.originalEvent,r=t.putSortable,o=t.dragEl,s=t.activeSortable,d=t.dispatchSortableEvent,c=t.hideGhostForTarget,u=t.unhideGhostForTarget;if(!!i){var g=r||s;c();var y=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i,C=document.elementFromPoint(y.clientX,y.clientY);u(),g&&!g.el.contains(C)&&(d("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function pd(){}pd.prototype={startIndex:null,dragStart:function(t){var i=t.oldDraggableIndex;this.startIndex=i},onSpill:function(t){var i=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=mi(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(i,o):this.sortable.el.appendChild(i),this.sortable.animateAll(),r&&r.animateAll()},drop:Vf},ao(pd,{pluginName:"revertOnSpill"});function hd(){}hd.prototype={onSpill:function(t){var i=t.dragEl,r=t.putSortable,o=r||this.sortable;o.captureAnimationState(),i.parentNode&&i.parentNode.removeChild(i),o.animateAll()},drop:Vf},ao(hd,{pluginName:"removeOnSpill"}),it.mount(new db),it.mount(hd,pd);function md(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function Rf(e,t,i){const r=i===0?e.children[0]:e.children[i-1].nextSibling;e.insertBefore(t,r)}function cb(){return typeof window<"u"?window.console:global.console}const ub=cb();function fb(e){const t=Object.create(null);return function(r){return t[r]||(t[r]=e(r))}}const pb=/-(\w)/g,hb=fb(e=>e.replace(pb,(t,i)=>i.toUpperCase())),If=["Start","Add","Remove","Update","End"],Ff=["Choose","Unchoose","Sort","Filter","Clone"],Pf=["Move"],mb=[Pf,If,Ff].flatMap(e=>e).map(e=>`on${e}`),gd={manage:Pf,manageAndEmit:If,emit:Ff};function gb(e){return mb.indexOf(e)!==-1}const vb=["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 yb(e){return vb.includes(e)}function bb(e){return["transition-group","TransitionGroup"].includes(e)}function Mf(e){return["id","class","role","style"].includes(e)||e.startsWith("data-")||e.startsWith("aria-")||e.startsWith("on")}function Lf(e){return e.reduce((t,[i,r])=>(t[i]=r,t),{})}function Cb({$attrs:e,componentData:t={}}){return{...Lf(Object.entries(e).filter(([r,o])=>Mf(r))),...t}}function _b({$attrs:e,callBackBuilder:t}){const i=Lf(jf(e));Object.entries(t).forEach(([o,s])=>{gd[o].forEach(d=>{i[`on${d}`]=s(d)})});const r=`[data-draggable]${i.draggable||""}`;return{...i,draggable:r}}function jf(e){return Object.entries(e).filter(([t,i])=>!Mf(t)).map(([t,i])=>[hb(t),i]).filter(([t,i])=>!gb(t))}const zf=({el:e})=>e,wb=(e,t)=>e.__draggable_context=t,Hf=e=>e.__draggable_context;class Eb{constructor({nodes:{header:t,default:i,footer:r},root:o,realList:s}){this.defaultNodes=i,this.children=[...t,...i,...r],this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=s}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(t,i){const{tag:r,children:o,_isRootComponent:s}=this;return t(r,i,s?{default:()=>o}:o)}updated(){const{defaultNodes:t,realList:i}=this;t.forEach((r,o)=>{wb(zf(r),{element:i[o],index:o})})}getUnderlyingVm(t){return Hf(t)}getVmIndexFromDomIndex(t,i){const{defaultNodes:r}=this,{length:o}=r,s=i.children,d=s.item(t);if(d===null)return o;const c=Hf(d);if(c)return c.index;if(o===0)return 0;const u=zf(r[0]),g=[...s].findIndex(y=>y===u);return t<g?0:o}}function Ab(e,t){const i=e[t];return i?i():[]}function Sb({$slots:e,realList:t,getKey:i}){const r=t||[],[o,s]=["header","footer"].map(u=>Ab(e,u)),{item:d}=e;if(!d)throw new Error("draggable element must have an item slot");const c=r.flatMap((u,g)=>d({element:u,index:g}).map(y=>(y.key=i(u),y.props={...y.props||{},"data-draggable":!0},y)));if(c.length!==r.length)throw new Error("Item slot must have only one child");return{header:o,footer:s,default:c}}function xb(e){const t=bb(e),i=!yb(e)&&!t;return{transition:t,externalComponent:i,tag:i?n.resolveComponent(e):t?n.TransitionGroup:e}}function kb({$slots:e,tag:t,realList:i,getKey:r}){const o=Sb({$slots:e,realList:i,getKey:r}),s=xb(t);return new Eb({nodes:o,root:s,realList:i})}function Uf(e,t){n.nextTick(()=>this.$emit(e.toLowerCase(),t))}function Wf(e){return(t,i)=>{if(this.realList!==null)return this[`onDrag${e}`](t,i)}}function Nb(e){const t=Wf.call(this,e);return(i,r)=>{t.call(this,i,r),Uf.call(this,e,i)}}let vd=null;const Tb={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:e=>e},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Ob=["update:modelValue","change",...[...gd.manageAndEmit,...gd.emit].map(e=>e.toLowerCase())],Ci=n.defineComponent({name:"draggable",inheritAttrs:!1,props:Tb,emits:Ob,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:e,$attrs:t,tag:i,componentData:r,realList:o,getKey:s}=this,d=kb({$slots:e,tag:i,realList:o,getKey:s});this.componentStructure=d;const c=Cb({$attrs:t,componentData:r});return d.render(n.h,c)}catch(e){return this.error=!0,n.h("pre",{style:{color:"red"}},e.stack)}},created(){this.list!==null&&this.modelValue!==null&&ub.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:e,$el:t,componentStructure:i}=this;i.updated();const r=_b({$attrs:e,callBackBuilder:{manageAndEmit:s=>Nb.call(this,s),emit:s=>Uf.bind(this,s),manage:s=>Wf.call(this,s)}}),o=t.nodeType===1?t:t.parentElement;this._sortable=new it(o,r),this.targetDomElement=o,o.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:e}=this;return e||this.modelValue},getKey(){const{itemKey:e}=this;return typeof e=="function"?e:t=>t[e]}},watch:{$attrs:{handler(e){const{_sortable:t}=this;!t||jf(e).forEach(([i,r])=>{t.option(i,r)})},deep:!0}},methods:{getUnderlyingVm(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent(e){return e.__draggable_component__},emitChanges(e){n.nextTick(()=>this.$emit("change",e))},alterList(e){if(this.list){e(this.list);return}const t=[...this.modelValue];e(t),this.$emit("update:modelValue",t)},spliceList(){const e=t=>t.splice(...arguments);this.alterList(e)},updatePosition(e,t){const i=r=>r.splice(t,0,r.splice(e,1)[0]);this.alterList(i)},getRelatedContextFromMoveEvent({to:e,related:t}){const i=this.getUnderlyingPotencialDraggableComponent(e);if(!i)return{component:i};const r=i.realList,o={list:r,component:i};return e!==t&&r?{...i.getUnderlyingVm(t)||{},...o}:o},getVmIndexFromDomIndex(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),vd=e.item},onDragAdd(e){const t=e.item._underlying_vm_;if(t===void 0)return;md(e.item);const i=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(i,0,t);const r={element:t,newIndex:i};this.emitChanges({added:r})},onDragRemove(e){if(Rf(this.$el,e.item,e.oldIndex),e.pullMode==="clone"){md(e.clone);return}const{index:t,element:i}=this.context;this.spliceList(t,1);const r={element:i,oldIndex:t};this.emitChanges({removed:r})},onDragUpdate(e){md(e.item),Rf(e.from,e.item,e.oldIndex);const t=this.context.index,i=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,i);const r={element:this.context.element,oldIndex:t,newIndex:i};this.emitChanges({moved:r})},computeFutureIndex(e,t){if(!e.element)return 0;const i=[...t.to.children].filter(d=>d.style.display!=="none"),r=i.indexOf(t.related),o=e.component.getVmIndexFromDomIndex(r);return i.indexOf(vd)!==-1||!t.willInsertAfter?o:o+1},onDragMove(e,t){const{move:i,realList:r}=this;if(!i||!r)return!0;const o=this.getRelatedContextFromMoveEvent(e),s=this.computeFutureIndex(o,e),d={...this.context,futureIndex:s},c={...e,relatedContext:o,draggedContext:d};return i(c,t)},onDragEnd(){vd=null}}});function Db(){return[{name:"template",title:"\u6A21\u677F",list:[]},{name:"main",title:"\u57FA\u7840\u7EC4\u4EF6",list:[]},{name:"subform",title:"\u5B50\u8868\u5355\u7EC4\u4EF6",list:[]},{name:"container",title:"\u5BB9\u5668\u7EC4\u4EF6",list:[]},{name:"chart",title:"\u56FE\u8868\u7EC4\u4EF6",list:[]},{name:"aide",title:"\u8F85\u52A9\u7EC4\u4EF6",list:[]},{name:"layout",title:"\u5E03\u5C40\u7EC4\u4EF6",list:[]}]}const _i={Add:(e,t)=>{let i,r,o;try{i=e.toString().split(".")[1].length}catch{i=0}try{r=t.toString().split(".")[1].length}catch{r=0}return o=Math.pow(10,Math.max(i,r)),(e*o+t*o)/o},Sub:(e,t)=>{let i,r,o;try{i=e.toString().split(".")[1].length}catch{i=0}try{r=t.toString().split(".")[1].length}catch{r=0}o=Math.pow(10,Math.max(i,r));let s=i>=r?i:r;return Number(((e*o-t*o)/o).toFixed(s))},Mul:(e,t)=>{let i=0,r=e.toString(),o=t.toString();try{i+=r.split(".")[1].length}catch{}try{i+=o.split(".")[1].length}catch{}return Number(r.replace(".",""))*Number(o.replace(".",""))/Math.pow(10,i)},Div:(e,t)=>{let i=0,r=0;try{i=e.toString().split(".")[1].length}catch{}try{r=t.toString().split(".")[1].length}catch{}let o=Number(e.toString().replace(".","")),s=Number(t.toString().replace(".",""));return o/s*Math.pow(10,r-i)}},ko={ADD:function(e,t){return _i.Add(e,t)},SUB:function(e,t){return _i.Sub(e,t)},MUL:function(e,t){return _i.Mul(e,t)},DIV:function(e,t){return _i.Div(e,t)},SUM:function(...e){return(e||[]).reduce((t,i)=>_i.Add(t,Array.isArray(i)?ko.SUM(...i):i||0),0)},MAX:function(...e){const t=Array.isArray(e[0])?e[0]:e;return Math.max(...t.map(i=>parseFloat(i)).filter(i=>!isNaN(i)))},MIN:function(...e){const t=Array.isArray(e[0])?e[0]:e;return Math.min(...t.map(i=>parseFloat(i)).filter(i=>!isNaN(i)))},ABS:function(e){return parseFloat(Math.abs(e))||0},AVG:function(...e){const t=Array.isArray(e[0])?e[0]:e;return t.length?_i.Div(ko.SUM(t),t.length):0},POWER:function(e,t){return Math.pow(parseFloat(e),parseFloat(t))},RAND:function(){return Math.random()},CEIL:function(e){return Math.ceil(parseFloat(e))||0},FLOOR:function(e){return Math.floor(parseFloat(e)||0)},FIXED:function(e,t){const i=Math.pow(10,t||0);return(Math.floor(parseFloat(e)*i)/i).toFixed(t||0)},ISNUMBER:function(e){return e===""||e===null?!1:!isNaN(Number(e))},PI:function(){return Number(Math.PI)},ROUND:function(e,t){return e=parseFloat(e),isNaN(e)?0:parseFloat(e.toFixed(parseFloat(t)||0))},SQRT:function(e){return Math.sqrt(parseFloat(e))||0},TONUMBER:function(e){return parseFloat(e)||0},NOW:function(){const e=new Date,t=e.getFullYear(),i=("0"+(e.getMonth()+1)).slice(-2),r=("0"+e.getDate()).slice(-2),o=("0"+e.getHours()).slice(-2),s=("0"+e.getMinutes()).slice(-2),d=("0"+e.getSeconds()).slice(-2);return t+"-"+i+"-"+r+" "+o+":"+s+":"+d},TODAY:function(){const e=new Date,t=e.getFullYear(),i=("0"+(e.getMonth()+1)).slice(-2),r=("0"+e.getDate()).slice(-2);return t+"-"+i+"-"+r},YEAR:function(e){return e?new Date(e).getFullYear():null},MONTH:function(e){return e?new Date(e).getMonth()+1:null},DAY:function(e){return e?new Date(e).getDate():null},HOUR:function(e){return e?new Date(e).getHours():null},MINUTE:function(e){return e?new Date(e).getMinutes():null},SECOND:function(e){return e?new Date(e).getSeconds():null},DIFFDAYS:function(e,t){const i=new Date(e),r=new Date(t);return parseInt(Math.ceil(Math.abs(r.getTime()-i.getTime())/(1e3*60*60*24)))},DIFFHOURS:function(e,t){const i=new Date(e),r=new Date(t);return parseFloat(Math.abs(r.getTime()-i.getTime())/(1e3*60*60)).toFixed(2)},DIFFMINUTES:function(e,t){const i=new Date(e),r=new Date(t);return parseInt(Math.ceil(Math.abs(r.getTime()-i.getTime())/(1e3*60)))},TIMESTAMP:function(e){return Date.parse(e)},STARTSWITH:function(e,t){return(""+e).substring(0,(""+t).length)===t},EMPTY:function(e){return at.empty(e)},NOTEMPTY:function(e){return!at.empty(e)},LEN:function(e){return Array.isArray(e)?e.length:0},MOD:function(e,t){return e=parseFloat(e),t=parseFloat(t),!e||!t||isNaN(e)||isNaN(t)?0:e%t},SLICELEFT:function(e,t){return(""+e).slice(0,Number(t)||0)},SLICERIGHT:function(e,t){return(""+e).slice(Number(t)*-1)},TOLOWER:function(e){return(""+e).toLowerCase()},TOUPPER:function(e){return(""+e).toUpperCase()},INCLUDES:function(e,t){return(e||"").indexOf(t||"")},REPLACE:function(e,t,i){return(e||"").replace(t||"",i||"")},REPLACEALL:function(e,t,i){return(e||"").replaceAll(t||"",i||"")},TRIM:function(e){return(e||"").trim()},TOCHINSESAMOUNT:function(e){let t=["\u96F6","\u58F9","\u8D30","\u53C1","\u8086","\u4F0D","\u9646","\u67D2","\u634C","\u7396"],i=["","\u4E07","\u4EBF","\u4E07\u4EBF","\u4EBF\u4EBF"],r=["","\u62FE","\u4F70","\u4EDF"],o=["\u89D2","\u5206"];function s(w){let A="",E="",_=0,v=!0;for(;w>0;){let m=w%10;m===0?v||(v=!0,E=t[m]+E):(v=!1,A=t[m],A+=r[_],E=A+E),_++,w=Math.floor(w/10)}return E}let d=0,c="",u="",g=!1;if(e===0)return t[0];let y=Math.floor(e),C=Math.round((e-y)*100);for(;y>0;){let w=y%1e4;g&&(u=t[0]+u),c=s(w),c+=w!==0?i[d]:i[0],u=c+u,g=w<1e3&&w>0,y=Math.floor(y/1e4),d++}return u&&(u+="\u5143"),C>0?(u+=t[Math.floor(C/10)]+o[0],C%10!==0&&(u+=t[C%10]+o[1])):u&&(u+="\u6574"),u},UNION:function(...e){return(Array.isArray(e[0])?e[0]:e).filter((i,r,o)=>o.indexOf(i)===r)},AND:function(...e){return!!e.reduce((t,i)=>t&&i,!0)},OR:function(...e){return!!e.reduce((t,i)=>t||i,!1)},IF:function(e,t=!0,i=!1){return e?t:i},DEFAULT:function(e,t){return at.Undef(e)?t:e},CASE:function(...e){for(let t=0;t<e.length-1;t+=2)if(e[t])return e[t+1];return null},COLUMN:function(e,t){const i=[];return Array.isArray(e)&&e.forEach(function(r){Array.isArray(r)?i.push(...ko.COLUMN(r,t)):r&&i.push(r[t])}),i},VALUE:function(e,t,i){const r=(""+t).split(".");let o=e;for(let s=0;s<r.length;s++)if(In(o,r[s]))o=o[r[s]];else return i;return o},CONCAT:function(...e){return"".concat(...e)},INTERSECTIONSET:function(e,t){const i=[];for(let r=0;r<e.length;r++){const o=e[r];t.indexOf(o)!==-1&&i.indexOf(o)===-1&&i.push(o)}return i},LIST:function(...e){return e},IN:function(e,t){return(e||[]).indexOf(t)>-1},FALSE:function(){return!1},TRUE:function(){return!0},NOT:function(e){return!e},EQ:function(e,t){return e===t},GE:function(e,t){return e>=t},GT:function(e,t){return e>t},LE:function(e,t){return e<=t},LT:function(e,t){return e<t},NE:function(e,t){return e!==t}},yd={ADD:"ADD(1, 2) = 3",SUB:"SUB(10, 1) = 9",MUL:"MUL(2, 2) = 4",DIV:"DIV(10, 2) = 5",SUM:"SUM(1,2,3) = 6, SUM([5, 6, 7]) = 18",MAX:"MAX(1, 5, 10) = 10",MIN:"MIN(1, 5, 10) = 1",ABS:"ABS(-10) = 10, ABS(10) = 10",AVG:"AVG(2, 4, 6, 8) = 5",POWER:"POWER(2, 4) = 16",RAND:"RAND() = 0.75348173001531",PI:"PI() = 3.141592653589793",ROUND:"ROUND(3.149, 2) = 3.15, ROUND(3.149) = 3",SQRT:"SQRT(9) = 3",NOW:'NOW() = "2024-03-15 12:08:31"',TODAY:'TODAY() = "2024-03-15"',YEAR:'YEAR("2024-03-15 12:08:31") = 2024',MONTH:'MONTH("2024-03-15 12:08:31") = 3',DAY:'DAY("2024-03-15 12:08:31") = 15',HOUR:'HOUR("2024-03-15 12:08:31") = 12',MINUTE:'MINUTE("2024-03-15 12:08:31") = 8',SECOND:'SECOND("2024-03-15 12:08:31") = 31',TIMESTAMP:'TIMESTAMP("2024-03-15 12:08:31") = 1710475711000',DIFFDAYS:'DIFFDAYS("2024-01-15","2024-03-15") = 60',DIFFHOURS:'DIFFHOURS("2024-01-15 12:00:00", "2024-01-16 15:00:00") = 27, DIFFHOURS("2024-01-15 12:00:00", "2024-01-15 12:30:00") = 0.5',DIFFMINUTES:'DIFFMINUTES("2024-01-15 12:00:00", "2024-01-15 12:30:00") = 30',STARTSWITH:'STARTSWITH("ABCDEF","ABC") = true, STARTSWITH("ABCDEF","AD") = false',EMPTY:'EMPTY("") = true, EMPTY([]) = true, EMPTY("0") = false',NOTEMPTY:'NOTEMPTY("") = false, NOTEMPTY([]) = false, NOTEMPTY("0") = true',LEN:'LEN(["a", "b", "c"]) = 3',MOD:"MOD(10, 3) = 1",FLOOR:"FLOOR(1.93) = 1",CEIL:"CEIL(1.93) = 2",FIXED:"FIXED(1.93, 1) = 1.9",ISNUMBER:'ISNUMBER("2.34") = true, ISNUMBER("2.4e") = false',TONUMBER:'TONUMBER("1.5") = 1.5, TONUMBER("2.4e") = 2.4, TONUMBER("ABC") = 0',SLICELEFT:'SLICELEFT("ABCDE", 3) = "ABC"',SLICERIGHT:'SLICERIGHT("ABCDE", 3) = "CDE"',TOLOWER:'TOUPPER("ABCD") = "abcd"',TOUPPER:'TOUPPER("abcd") = "ABCD"',INCLUDES:'INCLUDES("ABCD", "BC") = 1,INCLUDES("ABCD", "E") = -1',REPLACE:'REPLACE("AbAc","A","1") = "1bAc"',REPLACEALL:'REPLACEALL("AbAc","A","1") = "1b1c"',TRIM:'TRIM("\\t\\n ABC \\t\\n") = "ABC"',TOCHINSESAMOUNT:'TOCHINSESAMOUNT(32.14) = "\u53C1\u62FE\u8D30\u5143\u58F9\u89D2\u8086\u5206"',UNION:"UNION(1, 3, 5, 1, 4, 3) = [1, 3, 5, 4], UNION([1, 2, 3, 1, 2, 3]) = [1, 2, 3]",INTERSECTIONSET:"INTERSECTIONSET([1, 3, 5], [1, 4, 3]) = [1, 3]",LIST:"LIST([1, 3, 5], [1, 4, 3]) = [[1, 3, 5], [1, 4, 3]]",AND:"AND(true, true) = true, AND(true, false) = false",OR:"OR(false, false) = false, OR(false, true) = true",IF:"IF(false, 1, 0) = 0, IF(true, 1, 0) = 1",IN:"IN([1,2,3,4], 4) = true, IN([1,2,3,4], 5) = false",DEFAULT:'DEFAULT("#FF7271", "#000") = "#FF7271", DEFAULT("", "#000") = "", DEFAULT(null, "#000") = "#000"',CASE:"CASE(IN([1,2,3,4], 5), 1, IN([1,2,3,4], 2), 2) = 2",COLUMN:'COLUMN([{key: 1}, {key: 2}, {key: 3}],"key") = [1, 2, 3], COLUMN([[{key: 1}, {key: 2}], [{key: 3}, {key: 4}]], "key") = [1, 2, 3, 4]',VALUE:'VALUE({key: 1}, "key", 2) = 1, VALUE({key: 1}, "value", 2) = 2, VALUE({list: {key: 1}}, "list.key") = 1',CONCAT:'CONCAT("ABC", "DEF") = "ABCDEF"',FALSE:"FALSE() = false",TRUE:"FALSE() = true",NOT:"NOT(true) = false, NOT(false) = true",EQ:'EQ(100, 100) = true, EQ(100, 90) = false, EQ(100, "100") = false',GE:"GE(100, 90) = true, GE(100, 100) = true, GE(100, 110) = false",GT:"GT(100, 90) = true, GT(100, 100) = false, GT(100, 110) = false",LE:"LE(100, 90) = false, LE(100, 100) = true, LE(100, 110) = true",LT:"LT(100, 90) = false, LT(100, 100) = false, LT(100, 110) = true",NE:'NE(100, 90) = true, NE(100, 100) = false, NE(100, "100") = true'},Gf=[{key:"math",children:["TONUMBER","ADD","SUB","MUL","DIV","SUM","MAX","MIN","ABS","AVG","MOD","SQRT","POWER","RAND","PI","ROUND","FLOOR","CEIL","FIXED","TOCHINSESAMOUNT"]},{key:"string",children:["STARTSWITH","SLICELEFT","SLICERIGHT","TOLOWER","TOUPPER","INCLUDES","CONCAT","REPLACE","REPLACEALL","TRIM"]},{key:"date",children:["NOW","TODAY","YEAR","MONTH","DAY","HOUR","MINUTE","SECOND","DIFFDAYS","DIFFHOURS","DIFFMINUTES","TIMESTAMP"]},{key:"collection",children:["IN","LEN","UNION","COLUMN","VALUE","INTERSECTIONSET","LIST"]},{key:"condition",children:["IF","AND","OR","CASE","NOT","EQ","NE","GE","GT","LE","LT","TRUE","FALSE","DEFAULT","EMPTY","NOTEMPTY","ISNUMBER"]}],Bb=(e,t)=>{let i=[e];const r=t.split(".");let o=1;for(;r[o];){let s=[];i.forEach(d=>{Object.values(d.ctxs).forEach(c=>{if(c.rule._fc_id===r[o-1]){const u=d.subForm[c.id];s.push(...Array.isArray(u)?u:[u])}})}),i=s.map(d=>d.rule[0].__fc__.$handle),o++}return[i,r[o-1]]},Fa=(e,t,i)=>{const r=e.vm.setupState.top.setupState.fc.$handle;let o=[e.$handle];e.$handle!==r&&o.push(r);let s=t;t.indexOf(".")>-1&&([o,s]=Bb(r,t)),o.forEach(d=>{Object.values(d.ctxs).forEach(c=>{c.rule._fc_id===s&&i(c.rule,d.api)})})},bd={openModel(e,t){t.api.open(e.model)},closeModel(e,t){t.api.close(e.model)},hidden(e,t,i){const r=typeof e.id=="string"?[e.id]:e.id||[];let o=!!e.status;e.compute&&(o=!!i.$handle.compute(t.self.__fc__,e.formula)),r.forEach(s=>{Fa(i,s,d=>{d.hidden=o})})},disabled(e,t,i){const r=typeof e.id=="string"?[e.id]:e.id||[];let o=!!e.status;e.compute&&(o=!!i.$handle.compute(t.self.__fc__,e.formula)),r.forEach(s=>{Fa(i,s,d=>{d.props||(d.props={}),d.props.disabled=o})})},resetFields(e,t){t.api.top.resetFields()},clearFields(e,t){t.api.top.coverValue({})},validate(e,t){return t.api.top.validate()},validateFields(e,t,i){const r=typeof e.id=="string"?[e.id]:e.id||[],o=[];return r.forEach(s=>{Fa(i,s,(d,c)=>{d.field&&o.push(c.validateField(d.field))})}),o.length?Promise.all(o):void 0},submit(e,t){return t.api.top.submit()},setValue(e,t,i){(e.formData||[]).forEach(r=>{let o=r.value;r.compute&&(o=i.$handle.compute(t.self.__fc__,r.formula)),Fa(i,r.id,s=>{s.value=o})})},fetch(e,t){const{append:i,response:r,fetch:o}=e;return i&&(o.data={...t.api.formData(),...o.data||{}}),new Promise((s,d)=>{t.api.fetch(e.fetch).then(c=>{r&&t.api.setData(r,c),s(c)}).catch(c=>{d(c)})})},copy(e,t,i){let r=e.content||"";e.compute&&(r=i.$handle.compute(t.self.__fc__,e.formula)),Kn(r)},callback(e,t){return e.callback&&e.callback(t)},message(e){Jl.message[e.type||"info"]({content:e.message,duration:e.duration})}},Kf=[{key:"model",children:["openModel","closeModel","message"]},{key:"form",children:["hidden","disabled","resetFields","clearFields","setValue","validate","validateFields","submit"]},{key:"other",children:["fetch","copy","callback"]}],Yf={openModel(e){return[{type:"select",field:"model",$required:!0,options:e.pageData.filter(t=>!t.default).map(t=>{const i=t.main._menu;return{label:pi(t.main,t.config.labelField,"")||e.t("com."+i.name+".name")||i.label,value:t.main.name}})}]},message(e){return[{type:"radio",field:"type",value:"info",props:{optionType:"button"},options:st(e.t,["info","warning","success","error"].map(t=>({label:t,value:t})))},{type:"input",$required:!0,field:"message"},{type:"inputNumber",field:"duration"}]},hidden(e){const t=e.t;return[{type:"RuleSelect",field:"id",$required:!0,props:{multiple:!0}},{type:"radio",field:"compute",value:!1,options:[{label:t("behavior.props.static"),value:!1},{label:t("behavior.props.formula"),value:!0}],control:[{value:!1,rule:[{type:"radio",field:"status",value:!0,options:[{label:t("props.show"),value:!1},{label:t("props.hide"),value:!0}]}]},{value:!0,rule:[{type:"ComputedConfig",field:"formula",$required:!0,props:{btn:t("behavior.props.setFormula"),title:t("behavior.props.setFormula"),name:t("behavior.props.setFormula"),invertLabel:t("props.show"),validLabel:t("props.hide")}}]}]}]},disabled(e){const t=e.t;return[{type:"RuleSelect",field:"id",$required:!0,props:{onlyField:!0,multiple:!0}},{type:"radio",field:"compute",value:!1,options:[{label:t("behavior.props.static"),value:!1},{label:t("behavior.props.formula"),value:!0}],control:[{value:!1,rule:[{type:"radio",field:"status",value:!0,options:[{label:t("props.enable"),value:!1},{label:t("props.disabled"),value:!0}]}]},{value:!0,rule:[{type:"ComputedConfig",field:"formula",$required:!0,props:{title:t("behavior.props.setFormula"),invertLabel:t("props.enable"),validLabel:t("props.disabled")}}]}]}]},validateFields(){return[{type:"RuleSelect",field:"id",$required:!0,props:{onlyField:!0,multiple:!0}}]},setValue(e){const t=e.t;return[{type:"group",field:"formData",wrap:{wrapperCol:{span:24}},props:{expand:1,rule:[{type:"RuleSelect",field:"id",title:t("behavior.props.id"),$required:!0,props:{onlyField:!0}},{type:"radio",field:"compute",value:!1,title:t("behavior.props.compute"),options:[{label:t("behavior.props.static"),value:!1},{label:t("behavior.props.formula"),value:!0}],control:[{value:!1,rule:[{type:"ValueInput",field:"value",title:t("props.value"),$required:!0}]},{value:!0,rule:[{type:"ComputedConfig",field:"formula",title:t("behavior.props.formula"),$required:!0,props:{type:"value",title:t("behavior.props.setFormula"),invertLabel:t("props.show"),validLabel:t("props.hide")}}]}]}]}}]},fetch(){return[{type:"FetchConfig",field:"fetch",$required:!0},{type:"switch",field:"append",value:!1},{type:"input",field:"response",value:"res_"+Ye()}]},copy(e){const t=e.t;return[{type:"radio",field:"compute",value:!1,options:[{label:t("behavior.props.static"),value:!1},{label:t("behavior.props.formula"),value:!0}],control:[{value:!1,rule:[{type:"input",field:"content",$required:!0,props:{type:"textarea"},options:[{label:t("props.enable"),value:!1},{label:t("props.disabled"),value:!0}]}]},{value:!0,rule:[{type:"ComputedConfig",field:"formula",$required:!0,props:{type:"value",title:t("behavior.props.setFormula"),invertLabel:t("props.enable"),validLabel:t("props.disabled")}}]}]}]},callback(e){return[{type:"FnInput",field:"callback",$required:!0,props:{name:"callback",args:[bn(e.t)]}}]}};function $b(e,t){return e.reduce((i,r)=>i.then(()=>r(t)),Promise.resolve())}const Qf=function(e){return{name:"behavior",load(t,i){const r=t.getValue(),o={},s={};r&&Object.keys(r).forEach(d=>{if(Array.isArray(r[d])){const c=[];if(r[d].forEach(u=>{const{method:g,config:y,expression:C,stopPropagation:w,ignoreError:A}=u;c.push(E=>new Promise(_=>{if(C&&e.$handle.compute(i.__fc__,C)===!1){_();return}const v=(...b)=>{(!w||e.$handle.compute(i.__fc__,w)!==!0)&&_(...b)};let m;try{m=bd[g](y||{},E,e)}catch(b){console.error(b),A!==!1&&v();return}m&&m.then?m.then(v).catch(()=>{A!==!1&&v()}):v(m)}))}),c.length){const u=e.$handle.inject(i,function(g){$b(c,g)},i.inject||e.$handle.options.injectEvent);d.indexOf("hook_")>-1?s[d.replace("hook_","")]=u:o[d]=u}}}),t.getProp().on=o,t.getProp().hook=s}}},br={name:"easySlots",load(e){const t=e.getValue(),i={};t&&Object.keys(t).forEach(r=>{i[r]=t[r].type==="icon"?{type:"i",class:"fc-icon iconfont "+t[r].value}:{type:"div",children:[""+(t[r].value||"")]}}),e.getProp().renderSlots=i}};br.watch=br.load;const Vb=Object.assign||function(e){for(let t,i=1;i<arguments.length;i++)for(let r in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,r)&&ci(e,r,t[r]);return e};function Cd(){return Vb.apply(this,arguments)}function Rb(e){return typeof e!="object"||e===null?e:e instanceof Array?[...e]:{...e}}function _d(e){e.__proto__.setBehavior=t=>{Cd(bd,t)},e.extendApi(t=>({open(i,...r){(t.el(i)||t.top.el(i)).open(...r)},close(i){i?(t.el(i)||t.top.el(i)).close():(t.top.bus.$emit("fc.closeDialog"),t!==t.top&&t.bus.$emit("fc.closeDialog"))}}))}ua.default.parser().preview=Qv,Object.keys(ko).forEach(e=>{ua.default.setFormula(e,ko[e])});const co=ua.default,ze=ua.default.factory();_d(co),_d(ze),co.register("behavior",Qf),co.register("easySlots",br),ze.register("easySlots",br);/*!
* @form-create/component-antdv-upload v3.2.15
* (c) 2018-2024 xaboy
* Github https://github.com/xaboy/form-create with upload
* Released under the MIT License.
*/function Xf(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),i.push.apply(i,r)}return i}function wd(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Xf(Object(i),!0).forEach(function(r){Jf(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Xf(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function Pa(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pa=function(t){return typeof t}:Pa=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pa(e)}function Jf(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Ib(e){return Array.isArray(e)?e:[null,void 0,""].indexOf(e)>-1?[]:[e]}function Fb(e,t){return Object.keys(e).reduce(function(i,r){return(!t||t.indexOf(r)===-1)&&i.push(e[r]),i},[])}var Zf={name:"PlusOutlined"},Pb={class:"anticon"},Mb=n.createElementVNode("svg",{height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("defs"),n.createElementVNode("path",{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z",fill:"currentColor"}),n.createElementVNode("path",{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z",fill:"currentColor"})],-1),Lb=[Mb];function jb(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("span",Pb,Lb)}Zf.render=jb;var qf={name:"UploadOutlined"},zb={class:"anticon"},Hb=n.createElementVNode("svg",{focusable:"false","data-icon":"upload",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},[n.createElementVNode("path",{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"})],-1),Ub=[Hb];function Wb(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("span",zb,Ub)}qf.render=Wb;var ep=function(t,i){return Pa(t)==="object"?t:{url:t,is_string:!0,name:Gb(t),status:"done",uid:-1*(i+1)}},Gb=function(t){return(""+t).split("/").pop()},tp=function(t){return wd(wd({},t),{},{file:t,value:t})},Kb="fcUpload",Yb=n.defineComponent({name:Kb,inheritAttrs:!1,formCreateParser:{toFormValue:function(t){return Ib(t)},toValue:function(t,i){return i.prop.props.limit===1?t[0]||"":t}},props:{limit:{type:Number,default:0},modelValue:{type:[Array,String,Object],default:function(){return[]}},onSuccess:{type:Function,required:!0},onPreview:Function,listType:String,modalTitle:String,previewMask:void 0},emits:["update:modelValue","change","fc.el"],data:function(){return{previewImage:"",previewVisible:!1,uploadList:this.modelValue.map(ep).map(tp)}},watch:{modelValue:function(t){this.uploadList=t.map(ep).map(tp)}},methods:{handlePreview:function(t){this.onPreview?this.onPreview.apply(this,arguments):(this.previewImage=t.url,this.previewVisible=!0)},handleChange:function(t){var i=t.file,r=t.fileList;this.$emit.apply(this,["change"].concat(Array.prototype.slice.call(arguments))),this.uploadList=r,i.status==="done"?(this.onSuccess(i,r),this.input()):i.status==="removed"&&(r.forEach(function(o,s){o.file===i&&r.splice(s,1)}),this.input())},input:function(){this.$emit("update:modelValue",this.uploadList.map(function(t){return t.is_string?t.url:t.value||t.url}))}},render:function(){var t,i,r=this,o=!this.limit||this.limit>this.uploadList.length,s=n.resolveComponent("AModal"),d=Jf({},s.props.open?"open":"visible",this.previewVisible);return n.createVNode(n.Fragment,null,[n.createVNode(n.resolveComponent("AUpload"),n.mergeProps({maxCount:this.limit,listType:this.listType||"picture-card"},this.$attrs,{onPreview:this.handlePreview,onChange:this.handleChange,fileList:this.uploadList,ref:"upload"}),wd({default:function(){return[o?(t=(i=r.$slots).default)!==null&&t!==void 0&&t.call(i)||["text","picture"].indexOf(r.listType)===-1?n.createVNode(Zf,{style:"font-size: 16px; width: 16px;"},null):n.createVNode(n.resolveComponent("AButton"),null,{default:function(){return[n.createVNode(qf,null,null),n.createTextVNode("\u70B9\u51FB\u4E0A\u4F20")]}}):null]}},Fb(this.$slots,["default"]))),n.createVNode(s,n.mergeProps({mask:this.previewMask,title:this.modalTitle},d,{onCancel:function(){return r.previewVisible=!1},footer:null}),{default:function(){return[n.createVNode("img",{style:"width: 100%",src:r.previewImage},null)]}})])},mounted:function(){this.$emit("fc.el",this.$refs.upload)}});const $L="",Ne=(e,t)=>{const i=e.__vccOpts||e;for(const[r,o]of t)i[r]=o;return i},np=e=>{const t=[];return e.forEach(i=>{i.field&&t.push(i.field),i.children&&t.push(...np(i.children))}),t},Qb=n.defineComponent({name:"StepForm",props:{stepsProps:Object,modelValue:Object,formCreateInject:Object,autoValidate:Boolean,steps:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})}},emits:["update:modelValue","change","itemMounted","submit","next"],data(){return{active:0,cacheRule:[],cacheValue:{},subApi:{},Form:n.markRaw(this.formCreateInject.form.$form())}},watch:{active(){this.init()},modelValue(e){this.setValue(e)}},methods:{init(){this.steps.forEach((e,t)=>{this.cacheRule[t]?this.cacheRule[t].display=t===this.active:this.cacheRule[t]={type:"FcRow",native:!0,display:t===this.active,children:e.rule}})},onPrev(){this.active--},validate(){return new Promise((e,t)=>{const i=np(this.cacheRule[this.active].children);i.length>0?Promise.all(i.map(r=>this.subApi.validateField(r))).then(()=>{e()}).catch(r=>{t(r)}):e()})},onNext(){this.autoValidate?this.validate().then(()=>{this.active++}).catch(e=>{}):this.active++,this.$emit("next",{active:this.active,api:this.subApi})},submit(){const e=()=>{this.$emit("submit",this.subApi.formData(),this.subApi)};this.autoValidate?this.validate().then(()=>{e()}).catch(t=>{}):e()},addSubApi(e){this.subApi=e,this.$emit("itemMounted",e)},formData(e){this.cacheValue=JSON.stringify(e),this.$emit("update:modelValue",e),this.$emit("change",e)},setValue(e){const t=JSON.stringify(e);this.cacheValue!==t&&(this.cacheValue=t,this.subApi.coverValue(e||{}))}},created(){this.init()}}),Xb={class:"_fc-step-form"};function Jb(e,t,i,r,o,s){const d=n.resolveComponent("van-step"),c=n.resolveComponent("van-steps"),u=n.resolveComponent("van-button"),g=n.resolveComponent("van-col"),y=n.resolveComponent("van-row");return n.openBlock(),n.createElementBlock("div",Xb,[n.createVNode(c,n.mergeProps({active:e.active},e.stepsProps),{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.steps,C=>(n.openBlock(),n.createBlock(d,n.mergeProps({ref_for:!0},C.props),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(C.props.title),1)]),_:2},1040))),256))]),_:1},16,["active"]),(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.Form),{option:e.options,rule:e.cacheRule,extendOption:!0,modelValue:e.modelValue,"onUpdate:api":e.addSubApi,onEmitEvent:e.$emit,"onUpdate:modelValue":e.formData},null,40,["option","rule","modelValue","onUpdate:api","onEmitEvent","onUpdate:modelValue"])),n.createVNode(y,null,{default:n.withCtx(()=>[n.createVNode(g,{span:24,style:{"margin-top":"15px"}},{default:n.withCtx(()=>[e.active>0?(n.openBlock(),n.createBlock(u,{key:0,block:"",size:"small",onClick:e.onPrev},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("prevStep")||"\u4E0A\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.active<e.cacheRule.length-1?(n.openBlock(),n.createBlock(u,{key:1,block:"",size:"small",type:"primary",onClick:e.onNext},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("nextStep")||"\u4E0B\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.active===e.cacheRule.length-1?(n.openBlock(),n.createBlock(u,{key:2,block:"",size:"small",class:"fc-clock",type:"primary",onClick:e.submit,style:{"margin-top":"10px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("submit")||"\u63D0\u4EA4"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0)]),_:1})]),_:1})])}const Zb=Ne(Qb,[["render",Jb]]),VL="",qb=n.defineComponent({name:"FcPopup",emits:["confirm","submit","validateFail"],props:{formData:Object,options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},rule:Array,autoClose:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},modelValue:Boolean,formCreateInject:Object,title:String},data(){return{visible:!1,fapi:{},value:{},formRule:[],Form:n.markRaw(this.formCreateInject.form.$form())}},methods:{open(e){this.$nextTick(()=>{this.visible=!0,this.value=et(e||this.formData||{}),this.formRule=et(this.rule||[])})},close(){this.visible=!1},handleConfirm(){this.$emit("confirm",this.fapi),this.fapi.submit().then(e=>{this.$emit("submit",e,this.fapi,this.close),this.autoClose&&this.close()}).catch(e=>{this.$emit("validateFail",e,this.fapi)})}},mounted(){this.formCreateInject.api.top.bus.$on("fc.closeDialog",this.close),n.onUnmounted(()=>{this.formCreateInject.api.top.bus.$off("fc.closeDialog",this.close)})}}),eC={class:"_fc-popup-title"},tC={class:"_fc-popup-content"},nC={class:"_fc-popup-footer"};function oC(e,t,i,r,o,s){const d=n.resolveComponent("van-button"),c=n.resolveComponent("van-popup");return n.openBlock(),n.createBlock(c,n.mergeProps({class:"_fc-popup",closeable:""},e.$attrs,{show:e.visible,"onUpdate:show":t[1]||(t[1]=u=>e.visible=u)}),{default:n.withCtx(()=>[n.createElementVNode("div",eC,n.toDisplayString(e.title),1),n.createElementVNode("div",tC,[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.Form),{option:e.options,rule:e.formRule,extendOption:!0,api:e.fapi,"onUpdate:api":t[0]||(t[0]=u=>e.fapi=u),"model-value":e.value,onEmitEvent:e.$emit},null,40,["option","rule","api","model-value","onEmitEvent"]))]),n.createElementVNode("div",nC,[e.footer!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(d,{block:"",size:"small",type:"primary",class:"fc-clock",onClick:e.handleConfirm},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["onClick"]),n.createVNode(d,{block:"",size:"small",class:"fc-clock",style:{"margin-top":"10px"},onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("close")||"\u5173\u95ED"),1)]),_:1},8,["onClick"])],64)):n.createCommentVNode("",!0)])]),_:1},16,["show"])}const iC=Ne(qb,[["render",oC]]),RL="",op=n.defineComponent({name:"DataTable",emits:["change","handleClick","rowSelectionChange"],props:{column:{type:Array,default:()=>[]},globalDataKey:[String,Object],fetch:Object,data:{type:Array,default:()=>[]},button:Object,index:Boolean,selection:Boolean,page:Object,formCreateInject:Object},data(){return{total:0,loading:!1,unwatch:null,list:[],currentPage:1,id:1,order:"",orderBy:""}},watch:{globalDataKey(){this.initPage()},fetch(){this.globalDataKey||this.initPage()},data(){!this.globalDataKey&&!this.fetch&&this.initPage()},selection(){this.id++},index(){this.id++},page:{handler(){this.initPage(),this.id++},deep:!0},button:{handler(){this.id++},deep:!0}},computed:{filterList(){let e=this.list||[];const t=[];return this.column.forEach(i=>{i.prop&&Array.isArray(i.filter)&&i.filter.length>0&&t.push(r=>i.filter.indexOf(r[i.prop])>-1)}),t.forEach(i=>{e=e.filter(i)}),e},tableColumns(){const e=[];return this.column.forEach(t=>{e.push({dataIndex:t.prop,title:t.label,width:t.width,fixed:t.fixed,className:t.className,align:t.align,sorter:t.sorter==="custom"?!0:t.sorter?(i,r)=>i[t.prop]>r[t.prop]:!1,customRender:i=>this.makeTd(t,i)})}),this.button&&this.button.open===!0&&this.button.column&&e.push({dataIndex:"_handle",label:this.button.label||this.formCreateInject.t("operation")||"\u64CD\u4F5C",fixed:this.button.fixed===void 0?"right":this.button.fixed,width:this.button.width||"125px",customRender:t=>(this.button.column||[]).filter(i=>i.hidden!==!0).map(i=>n.h(n.resolveComponent("a-button"),this.btnProps(i,t),()=>[i.name]))}),e}},render(){return n.h("div",{class:"_fc-data-table"},[n.h(n.resolveComponent("a-spin"),{spinning:this.loading},()=>[n.h(n.resolveComponent("a-table"),{dataSource:this.filterList,columns:this.tableColumns,pagination:!1,rowSelection:this.selection?{onChange:(...e)=>{this.$emit("rowSelectionChange",...e)}}:void 0,...this.$attrs,key:this.id,ref:"table",onChange:(...e)=>{const t=e[2];this.$emit("change",...e),t.order&&t.field?(this.orderBy=t.order==="descend"?"DESC":"ASC",this.order=t.field):(this.orderBy="",this.order=""),this.initPage()}}),this.makePage()])])},methods:{getEl(){return this.$refs.table},deepGet(e,t,i){t=(t||"").split(".");let r=0,o=t.length;for(;e!=null&&r<o;)e=e[t[r++]];return r&&r===o&&e!==void 0?e:i},initPage(){this.loading=!1,this.page&&this.page.open?(this.currentPage=1,this.nextList()):this.globalDataKey||this.fetch?this.fetchData().then(({list:e})=>{this.list=e}):this.list=this.data},btnProps(e,t){const i={type:e.type,size:e.size,onClick:o=>{o.stopPropagation();const s=es(e.click);try{s&&s(t,this.formCreateInject.api)}catch(d){console.error(d)}this.$emit("handleClick",{name:e.name,scope:t,column:t.record})}},r=es(e.handle);try{const o=r&&r(i,t,this.formCreateInject.api);typeof o=="boolean"&&(i.disabled=o)}catch(o){console.error(o)}return i},getLimit(){return this.page.props&&this.page.props.pageSize||20},nextList(){if(this.globalDataKey||this.fetch)this.fetchData(!0).then(({list:e,total:t})=>{this.list=e,this.total=t});else{const e=this.data,t=this.getLimit(),i=this.currentPage*t;this.list=e.slice(i-t,i),this.total=e.length}},fetchData(e){return this.unwatch&&this.unwatch(),new Promise(t=>{let i=this.fetch;if(this.globalDataKey){const r=typeof this.globalDataKey=="string"?this.globalDataKey:this.globalDataKey.key;i=this.formCreateInject.api.options.globalData[r]}if(i)if(i.type==="fetch"||!this.globalDataKey){i={...i};let r={};if(e){const s=this.page.props&&this.page.props.pageSize||20,d=this.page.pageField||"page",c=this.page.pageSizeField||"limit";r={[d]:this.currentPage,[c]:s}}if(this.order){const s=this.page.orderField||"order",d=this.page.orderByField||"orderBy";r[s]=this.order,r[d]=this.orderBy}const o=Object.keys(r).map(s=>encodeURIComponent(s)+"="+encodeURIComponent(r[s]),"").join("&");o&&(i.action+=(i.action.indexOf("?")!==-1?"&":"?")+o),this.loading=!0,i.wait=1e3,this.unwatch=this.formCreateInject.api.watchFetch(i,(s,d)=>{this.loading=!1;const c=this.page.totalField,u=this.page.dataField,g=u?this.deepGet(s,u,[]):s;let y=c?this.deepGet(s,c):0;y||(y=g.length||0),t({list:g,total:y})},s=>{console.error(s),this.loading=!1},(s,d)=>{if(d)return this.unwatch&&this.unwatch(),this.unwatch=null,setTimeout(()=>{this.changePage(1)}),!1})}else{let r=i.data||[],o=i.data.length;if(e){const s=this.getLimit(),d=this.currentPage*s;r=r.slice(d-s,d),o=r.length}t({list:r,total:o})}else t({list:[],total:0})})},changePage(e){this.currentPage=e,this.nextList()},makePage(){if(this.page&&this.page.open===!0)return n.h(n.resolveComponent("a-pagination"),{total:this.total,current:this.currentPage,showSizeChanger:!1,"onUpdate:current":e=>{this.currentPage!==e&&this.changePage(e)},class:this.page.position||"right",...this.page.props||{},pageSize:this.page.props&&this.page.props.pageSize||20})},makeTd(e,t){return e.format==="custom"&&e.render?e.render(t,n.h,n.resolveComponent,this.formCreateInject.api):e.format==="tag"?n.h(n.resolveComponent("a-tag"),{color:"green"},()=>[this.deepGet(t.record,e.prop,"")]):e.format==="image"?n.h("div",{class:"_fc-data-table-img-list"},[n.h(n.resolveComponent("a-image-preview-group"),{},()=>{let i=this.deepGet(t.record,e.prop,"");return i=(Array.isArray(i)?i:[i]).filter(r=>!!r),i.map((r,o)=>n.h(n.resolveComponent("a-image"),{src:r}))})]):""+this.deepGet(t.record,e.prop,"")}},created(){this.initPage(),this.$watch(()=>this.data&&this.data.length,()=>{!this.globalDataKey&&!this.fetch&&this.initPage()})}}),IL="",rC={name:"FcTable",props:{label:String,width:[Number,String],border:{type:Boolean,default:!0},borderWidth:String,borderColor:String,rule:{type:Object,default:()=>({row:1,col:1})}},watch:{rule:{handler(){this.initRule(),this.loadRule(),this.tdStyle=this.rule.style||{},this.tdClass=this.rule.class||{}},immediate:!0,deep:!0}},data(){return{tdStyle:{},tdClass:{},lattice:{}}},computed:{tableColor(){const e={};return this.border===!1?e.border="0 none":(this.borderColor&&(e.borderColor=this.borderColor),this.borderWidth&&(e.borderWidth=this.borderWidth)),e}},methods:{initRule(){const e=this.rule;e.style||(e.style={}),e.layout||(e.layout=[]),e.row||(e.row=1),e.col||(e.col=1)},loadRule(){const e=[],t=this.rule||{row:1,col:1};for(let r=0;r<t.row;r++){const o=[];e.push(o);for(let s=0;s<t.col;s++)o.push({rowspan:1,colspan:1,slot:[],show:!0})}[...t.layout||[]].forEach((r,o)=>{if((!r.row||r.row<=0)&&(!r.col||r.col<=0)||!e[r.top]||!e[r.top][r.left]||!e[r.top][r.left].show){t.layout.splice(o,1);return}const s=e[r.top][r.left];s.layout=r;let d=1,c=1;if(r.col&&(d=r.col+r.left>t.col?t.col-r.left:r.col,s.colspan=d),r.row&&(c=r.row+r.top>t.row?t.row-r.top:r.row,s.rowspan=c),c&&d)for(let u=0;u<c;u++){const g=e[r.top+u];if(g)for(let y=0;y<d;y++)!y&&!u||(g[r.left+y]&&(g[r.left+y].show=!1),s.slot.push(`${r.top+u}:${r.left+y}`))}});const i=r=>!!(!r||r.layout||!r.show);e.forEach((r,o)=>{r.forEach((s,d)=>{let c=!1,u=!1;if(s.layout){const g=s.layout.col||1,y=s.layout.row||1;for(let C=0;C<g;C++)if(!e[o+y]||i(e[o+y][d+C])){u=!0;continue}for(let C=0;C<y;C++)if(!e[o+C]||i(e[o+C][d+g])){c=!0;continue}}else c=i(r[d+1]),u=e[o+1]?i(e[o+1][d]):!0;s.right=c,s.bottom=u})}),this.lattice=e}}},aC={class:"_fc-table"};function lC(e,t,i,r,o,s){const d=n.resolveComponent("a-col");return n.openBlock(),n.createBlock(d,{span:24},{default:n.withCtx(()=>[n.createElementVNode("div",aC,[n.createElementVNode("table",{border:"1",cellspacing:"0",cellpadding:"0",style:n.normalizeStyle(s.tableColor)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.rule.row,(c,u)=>(n.openBlock(),n.createElementBlock("tr",{key:u},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.rule.col,(g,y)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:`${u}${y}`},[o.lattice[u][y].show?(n.openBlock(),n.createElementBlock("td",n.mergeProps({key:0,ref_for:!0},o.lattice[u][y]?{colspan:o.lattice[u][y].colspan,rowspan:o.lattice[u][y].rowspan}:{},{valign:"top",class:o.tdClass&&o.tdClass[`${u}:${y}`]||"",style:[s.tableColor,o.tdStyle&&o.tdStyle[`${u}:${y}`]||{}]}),[n.renderSlot(e.$slots,`${u}:${y}`),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.lattice[u][y].slot,C=>n.renderSlot(e.$slots,`${C}`)),256))],16)):n.createCommentVNode("",!0)],64))),128))]))),128))],4)])]),_:3})}const ip=Ne(rC,[["render",lC]]),FL="",sC={name:"TableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:()=>[]},columns:{type:Array,required:!0,default:()=>[]},filterEmptyColumn:{type:Boolean,default:!0},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},max:Number,disabled:Boolean},watch:{modelValue:{handler(){this.updateTable()},deep:!0},"formCreateInject.preview":function(e){this.emptyRule.children[0].props.colspan=this.columns.length+(e?1:2)}},data(){return{rule:[],trs:[],fapi:{},Form:n.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:"",emptyRule:{type:"tr",_isEmpty:!0,native:!0,subRule:!0,children:[{type:"td",style:{textAlign:"center"},native:!0,subRule:!0,props:{colspan:this.columns.length+(this.formCreateInject.preview?1:2)},children:[this.formCreateInject.t("dataEmpty")||"\u6682\u65E0\u6570\u636E"]}]}}},methods:{formChange(){this.updateValue()},updateValue(){const e=this.trs.map((i,r)=>({...this.modelValue[r]||{},...this.fapi.getChildrenFormData(i)})).filter(i=>{if(!this.filterEmptyColumn)return!0;if(i==null)return!1;let r=!1;return Object.keys(i).forEach(o=>{r=r||i[o]!==void 0&&i[o]!==""&&i[o]!==null}),r}),t=JSON.stringify(e);t!==this.oldValue&&(this.oldValue=t,this.$emit("update:modelValue",e),this.$emit("change",e))},setRawData(e,t){const i=this.trs[e];this.fapi.setChildrenFormData(i,t,!0)},updateTable(){const e=JSON.stringify(this.modelValue);this.oldValue!==e&&(this.oldValue=e,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length||this.addEmpty(),this.modelValue.forEach((t,i)=>{this.trs[i]||this.addRaw(),this.setRawData(i,t||{})}),this.rule[0].children[1].children=this.trs)},addEmpty(){this.trs.push(this.emptyRule)},delRaw(e){this.disabled||(this.trs.splice(e,1),this.updateValue(),this.trs.length?this.trs.forEach(t=>this.updateRaw(t)):this.addEmpty(),this.$emit("delete",e))},addRaw(e){if(e&&this.disabled)return;const t=this.formCreateInject.form.parseJson(this.copyTrs)[0];this.trs.length===1&&this.trs[0]._isEmpty&&this.trs.splice(0,1),this.trs.push(t),this.updateRaw(t),e&&(this.$emit("add",this.trs.length),this.updateValue())},updateRaw(e){const t=this.trs.indexOf(e);e.children[0].props.innerText=t+1,e.children[e.children.length-1].children[0].props.onClick=()=>{this.delRaw(t)}},loadRule(){const e=[{type:"th",native:!0,class:"_fc-tf-head-idx",props:{innerText:"#"}}];let t=[{type:"td",class:"_fc-tf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(i=>{e.push({type:"th",native:!0,style:i.style,class:i.required?"_fc-tf-head-required":"",props:{innerText:i.label||""}}),t.push({type:"td",native:!0,children:[...i.rule||[]]})}),e.push({type:"th",native:!0,class:"_fc-tf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),t.push({type:"td",native:!0,class:"_fc-tf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,subRule:!0,children:t}]),this.rule=[{type:"table",native:!0,class:"_fc-tf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:e}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function dC(e,t,i,r,o,s){const d=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fc-table-form",{"_fc-disabled":i.disabled}])},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(o.Form),{option:i.options,rule:o.rule,extendOption:!0,disabled:i.disabled,onChange:s.formChange,api:o.fapi,"onUpdate:api":t[0]||(t[0]=c=>o.fapi=c),onEmitEvent:e.$emit},null,40,["option","rule","disabled","onChange","api","onEmitEvent"])),!i.max||i.max>this.trs.length?(n.openBlock(),n.createBlock(d,{key:0,type:"link",class:"fc-clock",onClick:t[1]||(t[1]=c=>s.addRaw(!0)),disabled:i.disabled},{default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),n.createTextVNode(" "+n.toDisplayString(i.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1},8,["disabled"])):n.createCommentVNode("",!0)],2)}const rp=Ne(sC,[["render",dC]]),PL="",cC={name:"InfiniteTableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:()=>[]},columns:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},max:Number,layerMax:{type:Number,default:0},childrenField:String,disabled:Boolean},computed:{preview(){return this.formCreateInject.preview},subField(){return this.childrenField||"children"}},watch:{modelValue(){this.updateTable()},"formCreateInject.preview"(e){this.trs.forEach((t,i)=>{t.children[1]&&(t.children[1].children[0].props.colspan=this.rule[0].children[0].children[0].children.length-(e?1:0)),t.children[0].children[0].children[0].hidden=this.layerMax===1||e&&!(this.modelValue&&this.modelValue[i]&&Array.isArray(this.modelValue[i][this.subField])&&this.modelValue[i][this.subField].length>0)})}},data(){return{rule:[],trs:[],fapi:{},Form:n.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:""}},methods:{formChange(e,t,i,r,o){o===!1&&this.updateValue()},updateValue(){const e=this.trs.map((i,r)=>{const o={...this.modelValue[r]||{},...this.fapi.getChildrenFormData(i)};return!In(o,this.subField)&&this.modelValue[r]&&(o[this.subField]=this.modelValue[r][this.subField]),o[this.subField]==null&&delete o[this.subField],o}),t=JSON.stringify(e);t!==this.oldValue&&(this.oldValue=t,this.$emit("update:modelValue",e),this.$emit("change",e))},setRawData(e,t){const i=this.trs[e];this.fapi.setChildrenFormData(i,t,!0)},updateTable(){const e=JSON.stringify(this.modelValue);this.oldValue!==e&&(this.oldValue=e,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length||this.addRaw(),this.modelValue.forEach((t,i)=>{this.trs[i]||this.addRaw(),this.setRawData(i,t||{})}),this.rule[0].children[1].children=this.trs)},delRaw(e){this.disabled||(this.trs.splice(e,1),this.updateValue(),this.trs.length?this.trs.forEach(t=>this.updateRaw(t)):this.addRaw(),this.$emit("delete",e))},addRaw(e){if(e&&this.disabled)return;const t=this.formCreateInject.form.parseJson(this.copyTrs)[0],i={type:"template",subRule:!0,children:[]};i.children.push(t),this.trs.push(i),this.trs.forEach(r=>this.updateRaw(r)),e&&this.$emit("add",this.trs)},updateRaw(e){const t=this.trs.indexOf(e),i=e.children[0];i.children[0].children[0].hidden=this.layerMax===1||this.preview&&!(this.modelValue&&this.modelValue[t]&&Array.isArray(this.modelValue[t][this.subField])&&this.modelValue[t][this.subField].length>0),i.children[0].children[0].props.onClick=r=>{if(this.trs[t].children.length===1){if(this.disabled&&!(this.modelValue&&this.modelValue[t]&&Array.isArray(this.modelValue[t][this.subField])&&this.modelValue[t][this.subField].length>0))return;this.trs[t].children.push({type:"tr",native:!0,display:!0,children:[{type:"td",native:!0,props:{colspan:this.rule[0].children[0].children[0].children.length-(this.preview?1:0)},class:"_fc-itf-sub",children:[{type:"infiniteTableForm",field:this.subField,value:[...this.modelValue[t]&&this.modelValue[t][this.subField]||[]],props:{disabled:this.disabled,layerMax:this.layerMax===0?0:this.layerMax>1?this.layerMax-1:1,max:this.max||0,columns:et(this.columns),options:et(this.options)}}]}]})}const o=r.self.children[0]==="-"?"+":"-";r.self.children=[o],this.trs[t].children[1].display=o==="-"},i.children[1].props.innerText=t+1,i.children[i.children.length-1].children[0].props.onClick=()=>{this.delRaw(t)}},loadRule(){const e=[{type:"th",native:!0,class:"_fc-itf-sub-idx"},{type:"th",native:!0,class:"_fc-itf-head-idx",props:{innerText:"#"}}];let t=[{type:"td",class:"_fc-itf-idx",native:!0,children:[{type:"div",hidden:!1,children:["+"],inject:!0,props:{}}]},{type:"td",class:"_fc-itf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(i=>{e.push({type:"th",native:!0,class:i.required?"_fc-itf-head-required":"",style:i.style,props:{innerText:i.label||""}}),t.push({type:"td",native:!0,children:[...i.rule||[]]})}),e.push({type:"th",native:!0,class:"_fc-itf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),t.push({type:"td",native:!0,class:"_fc-itf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,children:t}]),this.rule=[{type:"table",native:!0,class:"_fc-itf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:e}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function uC(e,t,i,r,o,s){const d=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fc-infinite-table-form",{"_fc-disabled":i.disabled}])},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(o.Form),{option:i.options,rule:o.rule,extendOption:!0,onChange:s.formChange,disabled:i.disabled,api:o.fapi,"onUpdate:api":t[0]||(t[0]=c=>o.fapi=c),onEmitEvent:e.$emit},null,40,["option","rule","onChange","disabled","api","onEmitEvent"])),!i.max||i.max>this.trs.length?(n.openBlock(),n.createBlock(d,{key:0,type:"link",class:"fc-clock",disabled:i.disabled,onClick:t[1]||(t[1]=c=>s.addRaw(!0))},{default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),n.createTextVNode(" "+n.toDisplayString(i.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1},8,["disabled"])):n.createCommentVNode("",!0)],2)}const ap=Ne(cC,[["render",uC]]),ML="",fC={name:"NestedTableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:()=>[]},nested:Array,nestedField:String,columns:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},max:Number,nestedMax:Number,disabled:Boolean},computed:{preview(){return this.formCreateInject.preview}},watch:{modelValue(){this.updateTable()},"formCreateInject.preview"(e){this.trs.forEach(t=>{const i=t.children[1].children[0].props.colspan;t.children[1].children[0].props.colspan=e?i-1:i+1})}},data(){return{rule:[],trs:[],fapi:{},Form:n.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:""}},methods:{formChange(e,t,i,r,o){o===!1&&this.updateValue()},updateValue(){const e=this.trs.map((i,r)=>({...this.modelValue[r]||{},...this.fapi.getChildrenFormData(i)})).filter(i=>{if(i==null)return!1;let r=!1;return Object.keys(i).forEach(o=>{r||(r=r||i[o]!==void 0&&i[o]!==""&&i[o]!==null&&(Array.isArray(i[o])?!!i[o].length:!0))}),r}),t=JSON.stringify(e);t!==this.oldValue&&(this.oldValue=t,this.$emit("update:modelValue",e),this.$emit("change",e))},setRawData(e,t){const i=this.trs[e];this.fapi.setChildrenFormData(i,t,!0)},updateTable(){const e=JSON.stringify(this.modelValue);this.oldValue!==e&&(this.oldValue=e,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length||this.addRaw(),this.modelValue.forEach((t,i)=>{this.trs[i]||this.addRaw(),this.setRawData(i,t||{})}),this.rule[0].children[1].children=this.trs)},delRaw(e){this.disabled||(this.trs.splice(e,1),this.updateValue(),this.trs.length?this.trs.forEach(t=>this.updateRaw(t)):this.addRaw(),this.$emit("delete",e))},addRaw(e){if(e&&this.disabled)return;const t=this.formCreateInject.form.parseJson(this.copyTrs)[0],i={type:"template",subRule:!0,children:[]};i.children.push(t),i.children.push({type:"tr",native:!0,display:!1,children:[{type:"td",native:!0,props:{colspan:t.children.length-(this.preview?1:0)},class:"_fc-ntf-sub",children:[{type:"TableForm",field:this.nestedField,value:[],props:{disabled:this.disabled,max:this.nestedMax||0,columns:et(this.nested),options:et(this.options)}}]}]}),this.trs.push(i),this.updateRaw(i),e&&this.$emit("add",this.trs)},updateRaw(e){const t=this.trs.indexOf(e),i=e.children[0];i.children[0].children[0].props.onClick=r=>{const o=r.self.children[0]==="-"?"+":"-";r.self.children=[o],this.trs[t].children[1].display=o==="-"},i.children[1].props.innerText=t+1,i.children[i.children.length-1].children[0].props.onClick=()=>{this.delRaw(t)}},loadRule(){const e=[{type:"th",native:!0,class:"_fc-ntf-sub-idx"},{type:"th",native:!0,class:"_fc-ntf-head-idx",props:{innerText:"#"}}];let t=[{type:"td",class:"_fc-ntf-idx",native:!0,children:[{type:"div",hidden:!1,children:["+"],inject:!0,props:{}}]},{type:"td",class:"_fc-ntf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(i=>{e.push({type:"th",native:!0,style:i.style,class:i.required?"_fc-ntf-head-required":"",props:{innerText:i.label||""}}),t.push({type:"td",native:!0,children:[...i.rule||[]]})}),e.push({type:"th",native:!0,class:"_fc-ntf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),t.push({type:"td",native:!0,class:"_fc-ntf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,children:t}]),this.rule=[{type:"table",native:!0,class:"_fc-ntf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:e}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function pC(e,t,i,r,o,s){const d=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fc-nested-table-form",{"_fc-disabled":i.disabled}])},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(o.Form),{option:i.options,rule:o.rule,extendOption:!0,onChange:s.formChange,disabled:i.disabled,api:o.fapi,"onUpdate:api":t[0]||(t[0]=c=>o.fapi=c),onEmitEvent:e.$emit},null,40,["option","rule","onChange","disabled","api","onEmitEvent"])),!i.max||i.max>this.trs.length?(n.openBlock(),n.createBlock(d,{key:0,type:"link",class:"fc-clock",disabled:i.disabled,onClick:t[1]||(t[1]=c=>s.addRaw(!0))},{default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),n.createTextVNode(" "+n.toDisplayString(i.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1},8,["disabled"])):n.createCommentVNode("",!0)],2)}const lp=Ne(fC,[["render",pC]]),LL="",hC=n.defineComponent({name:"FcCell"}),mC={ref:"cell",class:"_fc-cell"};function gC(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",mC,[n.renderSlot(e.$slots,"default")],512)}const sp=Ne(hC,[["render",gC]]),vC=n.defineComponent({name:"FcValue",props:["modelValue"],watch:{modelValue(e){this.$emit("change",e)}}}),yC={class:"_fc-value"};function bC(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",yC,n.toDisplayString(e.modelValue),1)}const dp=Ne(vC,[["render",bC]]),cp=n.defineComponent({name:"FcSlot",inheritAttrs:!1,inject:["parentFC"],props:{name:String,formCreateInject:Object},computed:{slotName(){return this.name||"block_default"},slotArg(){const{rule:e,preview:t,api:i}=this.formCreateInject,r=e.__fc__.prop;return{rule:e,prop:r,preview:t,api:i,model:r.model||{}}}},render(){const e=this.getSlot();return n.createVNode(n.Fragment,{},e?[e(this.slotArg)]:[])},methods:{getSlot(){const e=t=>{if(t){let i=t.slots[this.slotName];return i||e(t.setupState.parent)}};return e(this.parentFC)}}}),up=n.defineComponent({name:"FcJson",inheritAttrs:!1,props:{rule:[Array,String,Object],type:String,disabled:Boolean,expand:Number,button:{type:Boolean,default:!0},max:{type:Number,default:0},min:{type:Number,default:0},sortBtn:{type:Boolean,default:!0},modelValue:[Object,Array],formCreateInject:Object},data(){return{fcSubForm:n.shallowRef(this.formCreateInject.form.component("fcSubForm")),fcGroup:n.shallowRef(this.formCreateInject.form.component("fcGroup")),uni:0,formRule:[],formOptions:{submitBtn:!1,resetBtn:!1}}},watch:{rule(){this.uni++,this.loadRule()},type(){this.loadRule()}},render(){var e,t;if(this.rule)return this.type==="object"?n.createVNode(this.fcSubForm,{key:2,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":i=>{this.$emit("update:modelValue",i)},disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):this.type==="array"?n.createVNode(this.fcGroup,{key:3,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":i=>{this.$emit("update:modelValue",i)},sortBtn:this.sortBtn,min:this.min,max:this.max,expand:this.expand,button:this.button,disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):n.createVNode(n.Fragment,{key:this.uni},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])},methods:{loadRule(){let e=et(this.rule);typeof e=="string"&&(e=this.formCreateInject.form.parseJson(e)),Array.isArray(e)?this.formRule=e:typeof e=="object"&&(this.formRule=e.rule||[],this.formOptions={submitBtn:!1,resetBtn:!1,...e.options||{}}),e!=null?["array","object"].indexOf(this.type)===-1&&(this.formCreateInject.rule.children=[{type:"template",_fc_drag_skip:!0,children:this.formRule}]):this.formCreateInject.rule.children=[]}},created(){this.rule&&this.loadRule()}}),jL="",CC=n.defineComponent({name:"fcInlineForm"}),_C={class:"_fc-line-form"};function wC(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",_C,[n.renderSlot(e.$slots,"default")])}const fp=Ne(CC,[["render",wC]]);var Ed=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function EC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pp={exports:{}};(function(e,t){(function(i,r){e.exports=r()})(Ed,function(){var i=function(){},r={},o={},s={};function d(w,A){w=w.push?w:[w];var E=[],_=w.length,v=_,m,b,S,x;for(m=function(O,D){D.length&&E.push(O),v--,v||A(E)};_--;){if(b=w[_],S=o[b],S){m(b,S);continue}x=s[b]=s[b]||[],x.push(m)}}function c(w,A){if(!!w){var E=s[w];if(o[w]=A,!!E)for(;E.length;)E[0](w,A),E.splice(0,1)}}function u(w,A){w.call&&(w={success:w}),A.length?(w.error||i)(A):(w.success||i)(w)}function g(w,A,E,_){var v=document,m=E.async,b=(E.numRetries||0)+1,S=E.before||i,x=w.replace(/[\?|#].*$/,""),O=w.replace(/^(css|img|module|nomodule)!/,""),D,R,I;if(_=_||0,/(^css!|\.css$)/.test(x))I=v.createElement("link"),I.rel="stylesheet",I.href=O,D="hideFocus"in I,D&&I.relList&&(D=0,I.rel="preload",I.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(x))I=v.createElement("img"),I.src=O;else if(I=v.createElement("script"),I.src=O,I.async=m===void 0?!0:m,R="noModule"in I,/^module!/.test(x)){if(!R)return A(w,"l");I.type="module"}else if(/^nomodule!/.test(x)&&R)return A(w,"l");I.onload=I.onerror=I.onbeforeload=function(z){var T=z.type[0];if(D)try{I.sheet.cssText.length||(T="e")}catch(B){B.code!=18&&(T="e")}if(T=="e"){if(_+=1,_<b)return g(w,A,E,_)}else if(I.rel=="preload"&&I.as=="style")return I.rel="stylesheet";A(w,T,z.defaultPrevented)},S(w,I)!==!1&&v.head.appendChild(I)}function y(w,A,E){w=w.push?w:[w];var _=w.length,v=_,m=[],b,S;for(b=function(x,O,D){if(O=="e"&&m.push(x),O=="b")if(D)m.push(x);else return;_--,_||A(m)},S=0;S<v;S++)g(w[S],b,E)}function C(w,A,E){var _,v;if(A&&A.trim&&(_=A),v=(_?E:A)||{},_){if(_ in r)throw"LoadJS";r[_]=!0}function m(b,S){y(w,function(x){u(v,x),b&&u({success:b,error:S},x),c(_,x)},v)}if(v.returnPromise)return new Promise(m);m()}return C.ready=function(A,E){return d(A,function(_){u(E,_)}),C},C.done=function(A){c(A,[])},C.reset=function(){r={},o={},s={}},C.isDefined=function(A){return A in r},C})})(pp);const Mn=pp.exports;function hp(e,t){var i=null;return function(...r){i!==null&&clearTimeout(i),i=setTimeout(()=>e.call(this,...r),t)}}const zL="",AC=n.defineComponent({name:"FcEcharts",data(){return{chart:null}},emits:["beforeLoad","loaded"],props:{title:String,value:Number,min:Number,max:Number,name:String,valueFormat:String,subtitle:String,funnelSort:String,config:Object,data:Array,indicator:Array,smooth:Boolean,stripe:Boolean,showLegend:{type:Boolean,default:!0},loadOptions:{type:Function,default:()=>{}},showSeriesLabel:Boolean,type:String,pieType:String,stack:Boolean,barBackgroundColor:String},watch:{$props:{handler:hp(function(){this.load()},600),deep:!0}},methods:{getSeries(){var i;const e={type:"line",stack:this.stack?"Total":"",smooth:this.smooth,showBackground:!1,label:{show:this.showSeriesLabel,position:this.stripe?"inside":"top"}};this.type==="area"?(e.areaStyle={},e.emphasis={focus:"series"}):this.type==="bar"&&(e.type="bar",this.barBackgroundColor&&(e.showBackground=!0,e.backgroundStyle={color:this.barBackgroundColor}));let t=((i=this.config)==null?void 0:i.series)||[];return t.length?(typeof t[0]!="object"&&(t=[{data:t}]),t=t.map(r=>({...e,...r})),t):[]},getTooltip(){const e={trigger:"axis",valueFormat:void 0};return this.valueFormat&&(e.valueFormatter=t=>this.valueFormat?this.valueFormat.replaceAll("{value}",t):t),this.type==="bar"&&(e.axisPointer={type:"shadow"}),e},getAxis(){var e,t;return this.stripe?{yAxis:{type:"category",boundaryGap:this.type==="bar",data:((t=this.config)==null?void 0:t.category)||[]},xAxis:{type:"value"}}:{xAxis:{type:"category",boundaryGap:this.type==="bar",data:(e=this.config)==null?void 0:e.category},yAxis:{type:"value"}}},getDefOptions(){return{title:{text:this.title,subtext:this.subtitle},tooltip:this.getTooltip(),legend:{left:"right",show:this.showLegend},grid:{left:"20px",right:"20px",bottom:"20px",containLabel:!0},...this.getAxis(),series:this.getSeries()}},getPieOptions(){const e={radius:"50%",center:"50%",startAngle:0,avoidLabelOverlap:!0,labelLine:{show:!0},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}};return this.pieType==="doughnut"?(e.radius=["40%","70%"],e.avoidLabelOverlap=!1):this.pieType==="half-doughnut"&&(e.radius=["40%","70%"],e.center=["50%","70%"],e.startAngle=180,e.endAngle=360),{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"item"},legend:{left:"right",show:this.showLegend},series:[{type:"pie",data:this.data,...e}]}},getGaugeOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"center"},series:[{name:"Pressure",type:"gauge",min:this.min||0,max:this.max||60,progress:{show:!0},detail:{valueAnimation:!0,formatter:"{value}"},data:[{value:this.value,name:this.name}]}]}},getRadarOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"axis"},legend:{left:"right",show:this.showLegend},radar:{indicator:this.indicator},series:[{type:"radar",tooltip:{trigger:"item"},data:this.data}]}},getScatterOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"axis"},legend:{left:"right",show:!0},xAxis:{scale:!0},yAxis:{scale:!0},grid:{left:"20px",right:"20px",bottom:"20px",containLabel:!0},series:(this.data||[]).map(e=>Array.isArray(e)?{type:"scatter",data:e}:{type:"scatter",...e})}},getFunnelOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"item"},legend:{left:"right",show:this.showLegend},series:[{name:"Funnel",type:"funnel",left:"10%",top:"40px",bottom:"20px",width:"80%",min:0,max:Math.max(...(this.data||[]).map(e=>e.value)),minSize:"0%",maxSize:"100%",sort:this.funnelSort||"descending",gap:2,label:{show:!0,position:"inside"},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{}},data:this.data}]}},load(){this.$nextTick(()=>{Mn.ready("echarts",()=>{this.chart=n.markRaw(window.echarts.init(this.$refs.chart));let e;if(this.type==="pie")e=this.getPieOptions();else if(this.type==="funnel")e=this.getFunnelOptions();else if(this.type==="gauge")e=this.getGaugeOptions();else if(this.type==="radar")e=this.getRadarOptions();else if(this.type==="scatter")e=this.getScatterOptions();else if(this.type==="custom"){if(e=this.loadOptions(this.config,this.chart)||{},typeof e.then=="function"){e.then(t=>{this.$emit("beforeLoad",this.chart,t),this.chart.setOption(t),this.$emit("loaded",this.chart,t)});return}}else e=this.getDefOptions();this.$emit("beforeLoad",this.chart,e),this.chart.setOption(e),this.$emit("loaded",this.chart,e)})})}},created(){window.echarts?Mn.done("echarts"):Mn.isDefined("echarts")||Mn(["https://static.form-create.com/res/echarts.min.js"],"echarts")},mounted(){this.load()}}),SC={class:"_fc-echarts",ref:"chart"};function xC(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",SC,null,512)}const mp=Ne(AC,[["render",xC]]);/*!
* Signature Pad v5.0.4 | https://github.com/szimek/signature_pad
* (c) 2024 Szymon Nowak | Released under the MIT license
*/class Ma{constructor(t,i,r,o){if(isNaN(t)||isNaN(i))throw new Error(`Point is invalid: (${t}, ${i})`);this.x=+t,this.y=+i,this.pressure=r||0,this.time=o||Date.now()}distanceTo(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}equals(t){return this.x===t.x&&this.y===t.y&&this.pressure===t.pressure&&this.time===t.time}velocityFrom(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}class Ad{static fromPoints(t,i){const r=this.calculateControlPoints(t[0],t[1],t[2]).c2,o=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new Ad(t[1],r,o,t[2],i.start,i.end)}static calculateControlPoints(t,i,r){const o=t.x-i.x,s=t.y-i.y,d=i.x-r.x,c=i.y-r.y,u={x:(t.x+i.x)/2,y:(t.y+i.y)/2},g={x:(i.x+r.x)/2,y:(i.y+r.y)/2},y=Math.sqrt(o*o+s*s),C=Math.sqrt(d*d+c*c),w=u.x-g.x,A=u.y-g.y,E=y+C==0?0:C/(y+C),_={x:g.x+w*E,y:g.y+A*E},v=i.x-_.x,m=i.y-_.y;return{c1:new Ma(u.x+v,u.y+m),c2:new Ma(g.x+v,g.y+m)}}constructor(t,i,r,o,s,d){this.startPoint=t,this.control2=i,this.control1=r,this.endPoint=o,this.startWidth=s,this.endWidth=d}length(){let i=0,r,o;for(let s=0;s<=10;s+=1){const d=s/10,c=this.point(d,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),u=this.point(d,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(s>0){const g=c-r,y=u-o;i+=Math.sqrt(g*g+y*y)}r=c,o=u}return i}point(t,i,r,o,s){return i*(1-t)*(1-t)*(1-t)+3*r*(1-t)*(1-t)*t+3*o*(1-t)*t*t+s*t*t*t}}class kC{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(t,i,r){this._et.addEventListener(t,i,r)}dispatchEvent(t){return this._et.dispatchEvent(t)}removeEventListener(t,i,r){this._et.removeEventListener(t,i,r)}}function NC(e,t=250){let i=0,r=null,o,s,d;const c=()=>{i=Date.now(),r=null,o=e.apply(s,d),r||(s=null,d=[])};return function(...g){const y=Date.now(),C=t-(y-i);return s=this,d=g,C<=0||C>t?(r&&(clearTimeout(r),r=null),i=y,o=e.apply(s,d),r||(s=null,d=[])):r||(r=window.setTimeout(c,C)),o}}class Cr extends kC{constructor(t,i={}){var r,o,s;super(),this.canvas=t,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=d=>{!this._isLeftButtonPressed(d,!0)||this._drawingStroke||this._strokeBegin(this._pointerEventToSignatureEvent(d))},this._handleMouseMove=d=>{if(!this._isLeftButtonPressed(d,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(d),!1);return}this._strokeMoveUpdate(this._pointerEventToSignatureEvent(d))},this._handleMouseUp=d=>{this._isLeftButtonPressed(d)||this._strokeEnd(this._pointerEventToSignatureEvent(d))},this._handleTouchStart=d=>{d.targetTouches.length!==1||this._drawingStroke||(d.cancelable&&d.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(d)))},this._handleTouchMove=d=>{if(d.targetTouches.length===1){if(d.cancelable&&d.preventDefault(),!this._drawingStroke){this._strokeEnd(this._touchEventToSignatureEvent(d),!1);return}this._strokeMoveUpdate(this._touchEventToSignatureEvent(d))}},this._handleTouchEnd=d=>{d.targetTouches.length===0&&(d.cancelable&&d.preventDefault(),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this._strokeEnd(this._touchEventToSignatureEvent(d)))},this._handlePointerDown=d=>{!d.isPrimary||!this._isLeftButtonPressed(d)||this._drawingStroke||(d.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(d)))},this._handlePointerMove=d=>{if(!!d.isPrimary){if(!this._isLeftButtonPressed(d,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(d),!1);return}d.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(d))}},this._handlePointerUp=d=>{!d.isPrimary||this._isLeftButtonPressed(d)||(d.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(d)))},this.velocityFilterWeight=i.velocityFilterWeight||.7,this.minWidth=i.minWidth||.5,this.maxWidth=i.maxWidth||2.5,this.throttle=(r=i.throttle)!==null&&r!==void 0?r:16,this.minDistance=(o=i.minDistance)!==null&&o!==void 0?o:5,this.dotSize=i.dotSize||0,this.penColor=i.penColor||"black",this.backgroundColor=i.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=i.compositeOperation||"source-over",this.canvasContextOptions=(s=i.canvasContextOptions)!==null&&s!==void 0?s:{},this._strokeMoveUpdate=this.throttle?NC(Cr.prototype._strokeUpdate,this.throttle):Cr.prototype._strokeUpdate,this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:t,canvas:i}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,i.width,i.height),t.fillRect(0,0,i.width,i.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(t,i={}){return new Promise((r,o)=>{const s=new Image,d=i.ratio||window.devicePixelRatio||1,c=i.width||this.canvas.width/d,u=i.height||this.canvas.height/d,g=i.xOffset||0,y=i.yOffset||0;this._reset(this._getPointGroupOptions()),s.onload=()=>{this._ctx.drawImage(s,g,y,c,u),r()},s.onerror=C=>{o(C)},s.crossOrigin="anonymous",s.src=t,this._isEmpty=!1})}toDataURL(t="image/png",i){switch(t){case"image/svg+xml":return typeof i!="object"&&(i=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(i))}`;default:return typeof i!="number"&&(i=void 0),this.canvas.toDataURL(t,i)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerDown),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this._removeMoveUpEventListeners()}_getListenerFunctions(){var t;const i=window.document===this.canvas.ownerDocument?window:(t=this.canvas.ownerDocument.defaultView)!==null&&t!==void 0?t:this.canvas.ownerDocument;return{addEventListener:i.addEventListener.bind(i),removeEventListener:i.removeEventListener.bind(i)}}_removeMoveUpEventListeners(){const{removeEventListener:t}=this._getListenerFunctions();t("pointermove",this._handlePointerMove),t("pointerup",this._handlePointerUp),t("mousemove",this._handleMouseMove),t("mouseup",this._handleMouseUp),t("touchmove",this._handleTouchMove),t("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(t,{clear:i=!0}={}){i&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_isLeftButtonPressed(t,i){return i?t.buttons===1:(t.buttons&1)===1}_pointerEventToSignatureEvent(t){return{event:t,type:t.type,x:t.clientX,y:t.clientY,pressure:"pressure"in t?t.pressure:0}}_touchEventToSignatureEvent(t){const i=t.changedTouches[0];return{event:t,type:t.type,x:i.clientX,y:i.clientY,pressure:i.force}}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;const{addEventListener:r}=this._getListenerFunctions();switch(t.event.type){case"mousedown":r("mousemove",this._handleMouseMove),r("mouseup",this._handleMouseUp);break;case"touchstart":r("touchmove",this._handleTouchMove),r("touchend",this._handleTouchEnd);break;case"pointerdown":r("pointermove",this._handlePointerMove),r("pointerup",this._handlePointerUp);break}this._drawingStroke=!0;const o=this._getPointGroupOptions(),s=Object.assign(Object.assign({},o),{points:[]});this._data.push(s),this._reset(o),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(t);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const i=this._createPoint(t.x,t.y,t.pressure),r=this._data[this._data.length-1],o=r.points,s=o.length>0&&o[o.length-1],d=s?i.distanceTo(s)<=this.minDistance:!1,c=this._getPointGroupOptions(r);if(!s||!(s&&d)){const u=this._addPoint(i,c);s?u&&this._drawCurve(u,c):this._drawDot(i,c),o.push({time:i.time,x:i.x,y:i.y,pressure:i.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t,i=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(i&&this._strokeUpdate(t),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart)}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,i,r){const o=this.canvas.getBoundingClientRect();return new Ma(t-o.left,i-o.top,r,new Date().getTime())}_addPoint(t,i){const{_lastPoints:r}=this;if(r.push(t),r.length>2){r.length===3&&r.unshift(r[0]);const o=this._calculateCurveWidths(r[1],r[2],i),s=Ad.fromPoints(r,o);return r.shift(),s}return null}_calculateCurveWidths(t,i,r){const o=r.velocityFilterWeight*i.velocityFrom(t)+(1-r.velocityFilterWeight)*this._lastVelocity,s=this._strokeWidth(o,r),d={end:s,start:this._lastWidth};return this._lastVelocity=o,this._lastWidth=s,d}_strokeWidth(t,i){return Math.max(i.maxWidth/(t+1),i.minWidth)}_drawCurveSegment(t,i,r){const o=this._ctx;o.moveTo(t,i),o.arc(t,i,r,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,i){const r=this._ctx,o=t.endWidth-t.startWidth,s=Math.ceil(t.length())*2;r.beginPath(),r.fillStyle=i.penColor;for(let d=0;d<s;d+=1){const c=d/s,u=c*c,g=u*c,y=1-c,C=y*y,w=C*y;let A=w*t.startPoint.x;A+=3*C*c*t.control1.x,A+=3*y*u*t.control2.x,A+=g*t.endPoint.x;let E=w*t.startPoint.y;E+=3*C*c*t.control1.y,E+=3*y*u*t.control2.y,E+=g*t.endPoint.y;const _=Math.min(t.startWidth+g*o,i.maxWidth);this._drawCurveSegment(A,E,_)}r.closePath(),r.fill()}_drawDot(t,i){const r=this._ctx,o=i.dotSize>0?i.dotSize:(i.minWidth+i.maxWidth)/2;r.beginPath(),this._drawCurveSegment(t.x,t.y,o),r.closePath(),r.fillStyle=i.penColor,r.fill()}_fromData(t,i,r){for(const o of t){const{points:s}=o,d=this._getPointGroupOptions(o);if(s.length>1)for(let c=0;c<s.length;c+=1){const u=s[c],g=new Ma(u.x,u.y,u.pressure,u.time);c===0&&this._reset(d);const y=this._addPoint(g,d);y&&i(y,d)}else this._reset(d),r(s[0],d)}}toSVG({includeBackgroundColor:t=!1}={}){const i=this._data,r=Math.max(window.devicePixelRatio||1,1),o=0,s=0,d=this.canvas.width/r,c=this.canvas.height/r,u=document.createElementNS("http://www.w3.org/2000/svg","svg");if(u.setAttribute("xmlns","http://www.w3.org/2000/svg"),u.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),u.setAttribute("viewBox",`${o} ${s} ${d} ${c}`),u.setAttribute("width",d.toString()),u.setAttribute("height",c.toString()),t&&this.backgroundColor){const g=document.createElement("rect");g.setAttribute("width","100%"),g.setAttribute("height","100%"),g.setAttribute("fill",this.backgroundColor),u.appendChild(g)}return this._fromData(i,(g,{penColor:y})=>{const C=document.createElement("path");if(!isNaN(g.control1.x)&&!isNaN(g.control1.y)&&!isNaN(g.control2.x)&&!isNaN(g.control2.y)){const w=`M ${g.startPoint.x.toFixed(3)},${g.startPoint.y.toFixed(3)} C ${g.control1.x.toFixed(3)},${g.control1.y.toFixed(3)} ${g.control2.x.toFixed(3)},${g.control2.y.toFixed(3)} ${g.endPoint.x.toFixed(3)},${g.endPoint.y.toFixed(3)}`;C.setAttribute("d",w),C.setAttribute("stroke-width",(g.endWidth*2.25).toFixed(3)),C.setAttribute("stroke",y),C.setAttribute("fill","none"),C.setAttribute("stroke-linecap","round"),u.appendChild(C)}},(g,{penColor:y,dotSize:C,minWidth:w,maxWidth:A})=>{const E=document.createElement("circle"),_=C>0?C:(w+A)/2;E.setAttribute("r",_.toString()),E.setAttribute("cx",g.x.toString()),E.setAttribute("cy",g.y.toString()),E.setAttribute("fill",y),u.appendChild(E)}),u.outerHTML}}const HL="",TC=n.defineComponent({name:"SignaturePad",emits:["update:modelValue","change","remove"],data(){return{visible:!1,isEmpty:!0,signaturePad:null}},props:{modelValue:String,penColor:String,formCreateInject:Object},watch:{visible(e){e?(this.isEmpty=!0,this.$nextTick(()=>{this.signaturePad=n.markRaw(new Cr(this.$refs.pad,{penColor:this.penColor})),this.signaturePad.addEventListener("endStroke",()=>{this.isEmpty=this.signaturePad.isEmpty()})})):(this.signaturePad.off(),this.signaturePad=null)}},methods:{clear(){this.signaturePad.clear(),this.isEmpty=!0},submit(){const e=this.signaturePad.toDataURL();this.updateValue(e),this.visible=!1},updateValue(e){this.$emit("update:modelValue",e),this.$emit("change",e)},remove(){this.updateValue(""),this.$emit("remove")}}}),OC={class:"_fc-m-signature"},DC={key:0,class:"_fc-m-signature-preview"},BC=["src"],$C={class:"_fc-m-signature-pad",ref:"pad",width:"320px",height:"145px"};function VC(e,t,i,r,o,s){const d=n.resolveComponent("van-dialog");return n.openBlock(),n.createElementBlock("div",OC,[e.modelValue?(n.openBlock(),n.createElementBlock("div",DC,[n.createElementVNode("i",{class:"fc-icon icon-delete2",onClick:t[0]||(t[0]=(...c)=>e.remove&&e.remove(...c))}),n.createElementVNode("img",{src:e.modelValue,alt:"signature"},null,8,BC)])):(n.openBlock(),n.createElementBlock("div",{key:1,class:"_fc-m-signature-btn",onClick:t[1]||(t[1]=c=>e.visible=!0)},[t[4]||(t[4]=n.createElementVNode("i",{class:"fc-icon icon-edit2"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.formCreateInject.t("signaturePadTip")||"\u70B9\u51FB\u6DFB\u52A0\u624B\u5199\u7B7E\u540D"),1)])),n.createVNode(d,{show:e.visible,"onUpdate:show":t[3]||(t[3]=c=>e.visible=c),class:"_fc-m-signature-dialog",onConfirm:e.submit,onCancel:e.clear,"confirm-button-text":e.formCreateInject.t("ok")||"\u786E\u5B9A","cancel-button-text":e.formCreateInject.t("reset")||"\u91CD\u7F6E","confirm-button-disabled":e.isEmpty},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("signaturePadTitle")||"\u8BF7\u5728\u865A\u7EBF\u6846\u5185\u4E66\u5199")+" ",1),n.createElementVNode("i",{class:"fc-icon icon-add2",onClick:t[2]||(t[2]=c=>e.visible=!1)})]),default:n.withCtx(()=>[n.createElementVNode("canvas",$C,null,512)]),_:1},8,["show","onConfirm","onCancel","confirm-button-text","cancel-button-text","confirm-button-disabled"])])}const RC=Ne(TC,[["render",VC]]);function Sd(e,t,i){for(var r=[],o=Math.max(e.length,t.length),s=0,d=0;d<o||s;){var c=d<e.length?e[d]:0,u=d<t.length?t[d]:0,g=s+c+u;r.push(g%i),s=Math.floor(g/i),d++}return r}function gp(e,t,i){if(e<0)return null;if(e==0)return[];for(var r=[],o=t;e&1&&(r=Sd(r,o,i)),e=e>>1,e!==0;)o=Sd(o,o,i);return r}function IC(e,t){for(var i=e.split(""),r=[],o=i.length-1;o>=0;o--){var s=parseInt(i[o],t);if(isNaN(s))return null;r.push(s)}return r}function FC(e,t,i){var r=IC(e,t);if(r===null)return null;for(var o=[],s=[1],d=0;d<r.length;d++)r[d]&&(o=Sd(o,gp(r[d],s,i),i)),s=gp(t,s,i);for(var c="",d=o.length-1;d>=0;d--)c+=o[d].toString(i);return c}function PC(e){return e.substring(0,2)==="0x"&&(e=e.substring(2)),e=e.toLowerCase(),FC(e,16,10)}class MC{constructor(t){t=t||{},this.seq=0,this.mid=(t.mid||1)%1023,this.offset=t.offset||0,this.lastTime=0}generate(){const t=Date.now(),i=(t-this.offset).toString(2);this.lastTime==t?(this.seq++,this.seq>4095&&(this.seq=0)):this.seq=0,this.lastTime=t;let r=this.seq.toString(2),o=this.mid.toString(2);for(;r.length<12;)r="0"+r;for(;o.length<10;)o="0"+o;const s=i+o+r;let d="";for(let c=s.length;c>0;c-=4)d=parseInt(s.substring(c-4,c),2).toString(16)+d;return PC(d)}}const LC=n.defineComponent({name:"FcId",props:["modelValue","prefix"],emits:["update:modelValue"],inject:{designer:{default:null}},data(){return{preview:"7379787000000000"}},watch:{modelValue:{handler:function(e){if(!e){const t=new MC({mid:42,offset:173448e7});this.$emit("update:modelValue",""+(this.prefix||"")+t.generate())}},immediate:!0}}});function jC(e,t,i,r,o,s){const d=n.resolveComponent("a-input");return n.openBlock(),n.createBlock(d,{value:e.designer?""+(e.prefix||"")+e.preview:e.modelValue,readonly:"",disabled:""},null,8,["value"])}const vp=Ne(LC,[["render",jC]]),UL="",zC=n.defineComponent({name:"FcTitle",data(){return{}},props:{title:String,size:String,align:String},computed:{textStyle(){return{textAlign:this.align||"left"}}}});function HC(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fc-title",e.size||"h2"]),style:n.normalizeStyle(e.textStyle)},n.toDisplayString(e.title),7)}const yp=Ne(zC,[["render",HC]]),UC=n.defineComponent({name:"AudioBox",emits:["pause","play","ended"],data(){return{}},props:{src:String,type:String,controls:{type:Boolean,default:!0},autoplay:Boolean,loop:Boolean,preload:{type:String,default:"auto"},muted:Boolean}}),WC=["controls","autoplay","loop","preload","muted"],GC=["src","type"];function KC(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("audio",{key:e.src,controls:e.controls,autoplay:e.autoplay,loop:e.loop,preload:e.preload,muted:e.muted,onPause:t[0]||(t[0]=d=>e.$emit("pause",d)),onPlay:t[1]||(t[1]=d=>e.$emit("play",d)),onEnded:t[2]||(t[2]=d=>e.$emit("ended",d))},[n.createElementVNode("source",{src:e.src,type:e.type},null,8,GC),t[3]||(t[3]=n.createTextVNode(" Your browser does not support the audio element. "))],40,WC)}const bp=Ne(UC,[["render",KC]]),WL="",YC=n.defineComponent({name:"IframeBox",emits:["load"],data(){return{}},props:{src:String,loading:String}}),QC=["src"];function XC(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("iframe",{class:"_fc-iframe-box",src:e.src,frameborder:"0",onLoad:t[0]||(t[0]=d=>e.$emit("load",d))},null,40,QC)}const Cp=Ne(YC,[["render",XC]]);var xd={},La={},hn={};Object.defineProperty(hn,"__esModule",{value:!0});function JC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var ZC=function e(t,i){JC(this,e),this.data=t,this.text=i.text||t,this.options=i};hn.default=ZC,Object.defineProperty(La,"__esModule",{value:!0}),La.CODE39=void 0;var qC=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),e_=hn,t_=n_(e_);function n_(e){return e&&e.__esModule?e:{default:e}}function o_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i_(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function r_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a_=function(e){r_(t,e);function t(i,r){return o_(this,t),i=i.toUpperCase(),r.mod43&&(i+=d_(c_(i))),i_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i,r))}return qC(t,[{key:"encode",value:function(){for(var r=kd("*"),o=0;o<this.data.length;o++)r+=kd(this.data[o])+"0";return r+=kd("*"),{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),t}(t_.default),_p=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],l_=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function kd(e){return s_(wp(e))}function s_(e){return l_[e].toString(2)}function d_(e){return _p[e]}function wp(e){return _p.indexOf(e)}function c_(e){for(var t=0,i=0;i<e.length;i++)t+=wp(e[i]);return t=t%43,t}La.CODE39=a_;var Jn={},Nd={},wi={},St={};Object.defineProperty(St,"__esModule",{value:!0});var _r;function Td(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var Ep=St.SET_A=0,Ap=St.SET_B=1,Sp=St.SET_C=2;St.SHIFT=98;var u_=St.START_A=103,f_=St.START_B=104,p_=St.START_C=105;St.MODULO=103,St.STOP=106,St.FNC1=207,St.SET_BY_CODE=(_r={},Td(_r,u_,Ep),Td(_r,f_,Ap),Td(_r,p_,Sp),_r),St.SWAP={101:Ep,100:Ap,99:Sp},St.A_START_CHAR=String.fromCharCode(208),St.B_START_CHAR=String.fromCharCode(209),St.C_START_CHAR=String.fromCharCode(210),St.A_CHARS="[\0-_\xC8-\xCF]",St.B_CHARS="[ -\x7F\xC8-\xCF]",St.C_CHARS="(\xCF*[0-9]{2}\xCF*)",St.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],Object.defineProperty(wi,"__esModule",{value:!0});var h_=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),m_=hn,g_=v_(m_),En=St;function v_(e){return e&&e.__esModule?e:{default:e}}function y_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b_(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function C_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var __=function(e){C_(t,e);function t(i,r){y_(this,t);var o=b_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i.substring(1),r));return o.bytes=i.split("").map(function(s){return s.charCodeAt(0)}),o}return h_(t,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.bytes,o=r.shift()-105,s=En.SET_BY_CODE[o];if(s===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&r.unshift(En.FNC1);var d=t.next(r,1,s);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:t.getBar(o)+d.result+t.getBar((d.checksum+o)%En.MODULO)+t.getBar(En.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var r=this.options.ean128||!1;return typeof r=="string"&&(r=r.toLowerCase()==="true"),r}}],[{key:"getBar",value:function(r){return En.BARS[r]?En.BARS[r].toString():""}},{key:"correctIndex",value:function(r,o){if(o===En.SET_A){var s=r.shift();return s<32?s+64:s-32}else return o===En.SET_B?r.shift()-32:(r.shift()-48)*10+r.shift()-48}},{key:"next",value:function(r,o,s){if(!r.length)return{result:"",checksum:0};var d=void 0,c=void 0;if(r[0]>=200){c=r.shift()-105;var u=En.SWAP[c];u!==void 0?d=t.next(r,o+1,u):((s===En.SET_A||s===En.SET_B)&&c===En.SHIFT&&(r[0]=s===En.SET_A?r[0]>95?r[0]-96:r[0]:r[0]<32?r[0]+96:r[0]),d=t.next(r,o+1,s))}else c=t.correctIndex(r,s),d=t.next(r,o+1,s);var g=t.getBar(c),y=c*o;return{result:g+d.result,checksum:y+d.checksum}}}]),t}(g_.default);wi.default=__;var Od={};Object.defineProperty(Od,"__esModule",{value:!0});var No=St,xp=function(t){return t.match(new RegExp("^"+No.A_CHARS+"*"))[0].length},kp=function(t){return t.match(new RegExp("^"+No.B_CHARS+"*"))[0].length},Np=function(t){return t.match(new RegExp("^"+No.C_CHARS+"*"))[0]};function Dd(e,t){var i=t?No.A_CHARS:No.B_CHARS,r=e.match(new RegExp("^("+i+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(r)return r[1]+String.fromCharCode(204)+Tp(e.substring(r[1].length));var o=e.match(new RegExp("^"+i+"+"))[0];return o.length===e.length?e:o+String.fromCharCode(t?205:206)+Dd(e.substring(o.length),!t)}function Tp(e){var t=Np(e),i=t.length;if(i===e.length)return e;e=e.substring(i);var r=xp(e)>=kp(e);return t+String.fromCharCode(r?206:205)+Dd(e,r)}Od.default=function(e){var t=void 0,i=Np(e).length;if(i>=2)t=No.C_START_CHAR+Tp(e);else{var r=xp(e)>kp(e);t=(r?No.A_START_CHAR:No.B_START_CHAR)+Dd(e,r)}return t.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(o,s){return String.fromCharCode(203)+s})},Object.defineProperty(Nd,"__esModule",{value:!0});var w_=wi,E_=Op(w_),A_=Od,S_=Op(A_);function Op(e){return e&&e.__esModule?e:{default:e}}function x_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bd(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function k_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var N_=function(e){k_(t,e);function t(i,r){if(x_(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(i))var o=Bd(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,S_.default)(i),r));else var o=Bd(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i,r));return Bd(o)}return t}(E_.default);Nd.default=N_;var $d={};Object.defineProperty($d,"__esModule",{value:!0});var T_=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),O_=wi,D_=B_(O_),Dp=St;function B_(e){return e&&e.__esModule?e:{default:e}}function $_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V_(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function R_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var I_=function(e){R_(t,e);function t(i,r){return $_(this,t),V_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Dp.A_START_CHAR+i,r))}return T_(t,[{key:"valid",value:function(){return new RegExp("^"+Dp.A_CHARS+"+$").test(this.data)}}]),t}(D_.default);$d.default=I_;var Vd={};Object.defineProperty(Vd,"__esModule",{value:!0});var F_=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),P_=wi,M_=L_(P_),Bp=St;function L_(e){return e&&e.__esModule?e:{default:e}}function j_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z_(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function H_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var U_=function(e){H_(t,e);function t(i,r){return j_(this,t),z_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Bp.B_START_CHAR+i,r))}return F_(t,[{key:"valid",value:function(){return new RegExp("^"+Bp.B_CHARS+"+$").test(this.data)}}]),t}(M_.default);Vd.default=U_;var Rd={};Object.defineProperty(Rd,"__esModule",{value:!0});var W_=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),G_=wi,K_=Y_(G_),$p=St;function Y_(e){return e&&e.__esModule?e:{default:e}}function Q_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X_(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function J_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Z_=function(e){J_(t,e);function t(i,r){return Q_(this,t),X_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,$p.C_START_CHAR+i,r))}return W_(t,[{key:"valid",value:function(){return new RegExp("^"+$p.C_CHARS+"+$").test(this.data)}}]),t}(K_.default);Rd.default=Z_,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.CODE128C=Jn.CODE128B=Jn.CODE128A=Jn.CODE128=void 0;var q_=Nd,ew=ja(q_),tw=$d,nw=ja(tw),ow=Vd,iw=ja(ow),rw=Rd,aw=ja(rw);function ja(e){return e&&e.__esModule?e:{default:e}}Jn.CODE128=ew.default,Jn.CODE128A=nw.default,Jn.CODE128B=iw.default,Jn.CODE128C=aw.default;var mn={},Id={},Dn={};Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.SIDE_BIN="101",Dn.MIDDLE_BIN="01010",Dn.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},Dn.EAN2_STRUCTURE=["LL","LG","GL","GG"],Dn.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],Dn.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var za={},Yo={};Object.defineProperty(Yo,"__esModule",{value:!0});var lw=Dn,sw=function(t,i,r){var o=t.split("").map(function(d,c){return lw.BINARIES[i[c]]}).map(function(d,c){return d?d[t[c]]:""});if(r){var s=t.length-1;o=o.map(function(d,c){return c<s?d+r:d})}return o.join("")};Yo.default=sw,Object.defineProperty(za,"__esModule",{value:!0});var dw=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),Ei=Dn,cw=Yo,Vp=Rp(cw),uw=hn,fw=Rp(uw);function Rp(e){return e&&e.__esModule?e:{default:e}}function pw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hw(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function mw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var gw=function(e){mw(t,e);function t(i,r){pw(this,t);var o=hw(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i,r));return o.fontSize=!r.flat&&r.fontSize>r.width*10?r.width*10:r.fontSize,o.guardHeight=r.height+o.fontSize/2+r.textMargin,o}return dw(t,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(r,o){return this.text.substr(r,o)}},{key:"leftEncode",value:function(r,o){return(0,Vp.default)(r,o)}},{key:"rightText",value:function(r,o){return this.text.substr(r,o)}},{key:"rightEncode",value:function(r,o){return(0,Vp.default)(r,o)}},{key:"encodeGuarded",value:function(){var r={fontSize:this.fontSize},o={height:this.guardHeight};return[{data:Ei.SIDE_BIN,options:o},{data:this.leftEncode(),text:this.leftText(),options:r},{data:Ei.MIDDLE_BIN,options:o},{data:this.rightEncode(),text:this.rightText(),options:r},{data:Ei.SIDE_BIN,options:o}]}},{key:"encodeFlat",value:function(){var r=[Ei.SIDE_BIN,this.leftEncode(),Ei.MIDDLE_BIN,this.rightEncode(),Ei.SIDE_BIN];return{data:r.join(""),text:this.text}}}]),t}(fw.default);za.default=gw,Object.defineProperty(Id,"__esModule",{value:!0});var vw=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),wr=function e(t,i,r){t===null&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,i);if(o===void 0){var s=Object.getPrototypeOf(t);return s===null?void 0:e(s,i,r)}else{if("value"in o)return o.value;var d=o.get;return d===void 0?void 0:d.call(r)}},yw=Dn,bw=za,Cw=_w(bw);function _w(e){return e&&e.__esModule?e:{default:e}}function ww(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ew(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Aw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Ip=function(t){var i=t.substr(0,12).split("").map(function(r){return+r}).reduce(function(r,o,s){return s%2?r+o*3:r+o},0);return(10-i%10)%10},Sw=function(e){Aw(t,e);function t(i,r){ww(this,t),i.search(/^[0-9]{12}$/)!==-1&&(i+=Ip(i));var o=Ew(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i,r));return o.lastChar=r.lastChar,o}return vw(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===Ip(this.data)}},{key:"leftText",value:function(){return wr(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var r=this.data.substr(1,6),o=yw.EAN13_STRUCTURE[this.data[0]];return wr(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,r,o)}},{key:"rightText",value:function(){return wr(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var r=this.data.substr(7,6);return wr(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,r,"RRRRRR")}},{key:"encodeGuarded",value:function(){var r=wr(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(r.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(r.push({data:"00"}),r.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),r}}]),t}(Cw.default);Id.default=Sw;var Fd={};Object.defineProperty(Fd,"__esModule",{value:!0});var xw=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),Ha=function e(t,i,r){t===null&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,i);if(o===void 0){var s=Object.getPrototypeOf(t);return s===null?void 0:e(s,i,r)}else{if("value"in o)return o.value;var d=o.get;return d===void 0?void 0:d.call(r)}},kw=za,Nw=Tw(kw);function Tw(e){return e&&e.__esModule?e:{default:e}}function Ow(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dw(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Bw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Fp=function(t){var i=t.substr(0,7).split("").map(function(r){return+r}).reduce(function(r,o,s){return s%2?r+o:r+o*3},0);return(10-i%10)%10},$w=function(e){Bw(t,e);function t(i,r){return Ow(this,t),i.search(/^[0-9]{7}$/)!==-1&&(i+=Fp(i)),Dw(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i,r))}return xw(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===Fp(this.data)}},{key:"leftText",value:function(){return Ha(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var r=this.data.substr(0,4);return Ha(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,r,"LLLL")}},{key:"rightText",value:function(){return Ha(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var r=this.data.substr(4,4);return Ha(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,r,"RRRR")}}]),t}(Nw.default);Fd.default=$w;var Pd={};Object.defineProperty(Pd,"__esModule",{value:!0});var Vw=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),Rw=Dn,Iw=Yo,Fw=Pp(Iw),Pw=hn,Mw=Pp(Pw);function Pp(e){return e&&e.__esModule?e:{default:e}}function Lw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jw(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function zw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Hw=function(t){var i=t.split("").map(function(r){return+r}).reduce(function(r,o,s){return s%2?r+o*9:r+o*3},0);return i%10},Uw=function(e){zw(t,e);function t(i,r){return Lw(this,t),jw(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i,r))}return Vw(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var r=Rw.EAN5_STRUCTURE[Hw(this.data)];return{data:"1011"+(0,Fw.default)(this.data,r,"01"),text:this.text}}}]),t}(Mw.default);Pd.default=Uw;var Md={};Object.defineProperty(Md,"__esModule",{value:!0});var Ww=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),Gw=Dn,Kw=Yo,Yw=Mp(Kw),Qw=hn,Xw=Mp(Qw);function Mp(e){return e&&e.__esModule?e:{default:e}}function Jw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zw(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function qw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var eE=function(e){qw(t,e);function t(i,r){return Jw(this,t),Zw(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i,r))}return Ww(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var r=Gw.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,Yw.default)(this.data,r,"01"),text:this.text}}}]),t}(Xw.default);Md.default=eE;var Er={};Object.defineProperty(Er,"__esModule",{value:!0});var tE=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}();Er.checksum=Ld;var nE=Yo,Ai=Lp(nE),oE=hn,iE=Lp(oE);function Lp(e){return e&&e.__esModule?e:{default:e}}function rE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aE(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function lE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var sE=function(e){lE(t,e);function t(i,r){rE(this,t),i.search(/^[0-9]{11}$/)!==-1&&(i+=Ld(i));var o=aE(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i,r));return o.displayValue=r.displayValue,r.fontSize>r.width*10?o.fontSize=r.width*10:o.fontSize=r.fontSize,o.guardHeight=r.height+o.fontSize/2+r.textMargin,o}return tE(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==Ld(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=(0,Ai.default)(this.data.substr(0,6),"LLLLLL"),r+="01010",r+=(0,Ai.default)(this.data.substr(6,6),"RRRRRR"),r+="101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101"+(0,Ai.default)(this.data[0],"L"),options:{height:this.guardHeight}}),r.push({data:(0,Ai.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),r.push({data:"01010",options:{height:this.guardHeight}}),r.push({data:(0,Ai.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),r.push({data:(0,Ai.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),r}}]),t}(iE.default);function Ld(e){var t=0,i;for(i=1;i<11;i+=2)t+=parseInt(e[i]);for(i=0;i<11;i+=2)t+=parseInt(e[i])*3;return(10-t%10)%10}Er.default=sE;var jd={};Object.defineProperty(jd,"__esModule",{value:!0});var dE=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),cE=Yo,uE=jp(cE),fE=hn,pE=jp(fE),hE=Er;function jp(e){return e&&e.__esModule?e:{default:e}}function mE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zd(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function gE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var vE=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],yE=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],bE=function(e){gE(t,e);function t(i,r){mE(this,t);var o=zd(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i,r));if(o.isValid=!1,i.search(/^[0-9]{6}$/)!==-1)o.middleDigits=i,o.upcA=zp(i,"0"),o.text=r.text||""+o.upcA[0]+i+o.upcA[o.upcA.length-1],o.isValid=!0;else if(i.search(/^[01][0-9]{7}$/)!==-1)if(o.middleDigits=i.substring(1,i.length-1),o.upcA=zp(o.middleDigits,i[0]),o.upcA[o.upcA.length-1]===i[i.length-1])o.isValid=!0;else return zd(o);else return zd(o);return o.displayValue=r.displayValue,r.fontSize>r.width*10?o.fontSize=r.width*10:o.fontSize=r.fontSize,o.guardHeight=r.height+o.fontSize/2+r.textMargin,o}return dE(t,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=this.encodeMiddleDigits(),r+="010101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101",options:{height:this.guardHeight}}),r.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),r.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),r}},{key:"encodeMiddleDigits",value:function(){var r=this.upcA[0],o=this.upcA[this.upcA.length-1],s=yE[parseInt(o)][parseInt(r)];return(0,uE.default)(this.middleDigits,s)}}]),t}(pE.default);function zp(e,t){for(var i=parseInt(e[e.length-1]),r=vE[i],o="",s=0,d=0;d<r.length;d++){var c=r[d];c==="X"?o+=e[s++]:o+=c}return o=""+t+o,""+o+(0,hE.checksum)(o)}jd.default=bE,Object.defineProperty(mn,"__esModule",{value:!0}),mn.UPCE=mn.UPC=mn.EAN2=mn.EAN5=mn.EAN8=mn.EAN13=void 0;var CE=Id,_E=Si(CE),wE=Fd,EE=Si(wE),AE=Pd,SE=Si(AE),xE=Md,kE=Si(xE),NE=Er,TE=Si(NE),OE=jd,DE=Si(OE);function Si(e){return e&&e.__esModule?e:{default:e}}mn.EAN13=_E.default,mn.EAN8=EE.default,mn.EAN5=SE.default,mn.EAN2=kE.default,mn.UPC=TE.default,mn.UPCE=DE.default;var xi={},Ua={},Ar={};Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.START_BIN="1010",Ar.END_BIN="11101",Ar.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"],Object.defineProperty(Ua,"__esModule",{value:!0});var BE=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),Wa=Ar,$E=hn,VE=RE($E);function RE(e){return e&&e.__esModule?e:{default:e}}function IE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FE(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function PE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var ME=function(e){PE(t,e);function t(){return IE(this,t),FE(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return BE(t,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var r=this,o=this.data.match(/.{2}/g).map(function(s){return r.encodePair(s)}).join("");return{data:Wa.START_BIN+o+Wa.END_BIN,text:this.text}}},{key:"encodePair",value:function(r){var o=Wa.BINARIES[r[1]];return Wa.BINARIES[r[0]].split("").map(function(s,d){return(s==="1"?"111":"1")+(o[d]==="1"?"000":"0")}).join("")}}]),t}(VE.default);Ua.default=ME;var Hd={};Object.defineProperty(Hd,"__esModule",{value:!0});var LE=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),jE=Ua,zE=HE(jE);function HE(e){return e&&e.__esModule?e:{default:e}}function UE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WE(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function GE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Hp=function(t){var i=t.substr(0,13).split("").map(function(r){return parseInt(r,10)}).reduce(function(r,o,s){return r+o*(3-s%2*2)},0);return Math.ceil(i/10)*10-i},KE=function(e){GE(t,e);function t(i,r){return UE(this,t),i.search(/^[0-9]{13}$/)!==-1&&(i+=Hp(i)),WE(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i,r))}return LE(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===Hp(this.data)}}]),t}(zE.default);Hd.default=KE,Object.defineProperty(xi,"__esModule",{value:!0}),xi.ITF14=xi.ITF=void 0;var YE=Ua,QE=Up(YE),XE=Hd,JE=Up(XE);function Up(e){return e&&e.__esModule?e:{default:e}}xi.ITF=QE.default,xi.ITF14=JE.default;var Bn={},Qo={};Object.defineProperty(Qo,"__esModule",{value:!0});var ZE=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),qE=hn,eA=tA(qE);function tA(e){return e&&e.__esModule?e:{default:e}}function nA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function iA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var rA=function(e){iA(t,e);function t(i,r){return nA(this,t),oA(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i,r))}return ZE(t,[{key:"encode",value:function(){for(var r="110",o=0;o<this.data.length;o++){var s=parseInt(this.data[o]),d=s.toString(2);d=aA(d,4-d.length);for(var c=0;c<d.length;c++)r+=d[c]=="0"?"100":"110"}return r+="1001",{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),t}(eA.default);function aA(e,t){for(var i=0;i<t;i++)e="0"+e;return e}Qo.default=rA;var Ud={},Xo={};Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.mod10=lA,Xo.mod11=sA;function lA(e){for(var t=0,i=0;i<e.length;i++){var r=parseInt(e[i]);(i+e.length)%2===0?t+=r:t+=r*2%10+Math.floor(r*2/10)}return(10-t%10)%10}function sA(e){for(var t=0,i=[2,3,4,5,6,7],r=0;r<e.length;r++){var o=parseInt(e[e.length-1-r]);t+=i[r%i.length]*o}return(11-t%11)%11}Object.defineProperty(Ud,"__esModule",{value:!0});var dA=Qo,cA=fA(dA),uA=Xo;function fA(e){return e&&e.__esModule?e:{default:e}}function pA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function mA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var gA=function(e){mA(t,e);function t(i,r){return pA(this,t),hA(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i+(0,uA.mod10)(i),r))}return t}(cA.default);Ud.default=gA;var Wd={};Object.defineProperty(Wd,"__esModule",{value:!0});var vA=Qo,yA=CA(vA),bA=Xo;function CA(e){return e&&e.__esModule?e:{default:e}}function _A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function EA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var AA=function(e){EA(t,e);function t(i,r){return _A(this,t),wA(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i+(0,bA.mod11)(i),r))}return t}(yA.default);Wd.default=AA;var Gd={};Object.defineProperty(Gd,"__esModule",{value:!0});var SA=Qo,xA=kA(SA),Wp=Xo;function kA(e){return e&&e.__esModule?e:{default:e}}function NA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function OA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var DA=function(e){OA(t,e);function t(i,r){return NA(this,t),i+=(0,Wp.mod10)(i),i+=(0,Wp.mod10)(i),TA(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i,r))}return t}(xA.default);Gd.default=DA;var Kd={};Object.defineProperty(Kd,"__esModule",{value:!0});var BA=Qo,$A=VA(BA),Gp=Xo;function VA(e){return e&&e.__esModule?e:{default:e}}function RA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function FA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var PA=function(e){FA(t,e);function t(i,r){return RA(this,t),i+=(0,Gp.mod11)(i),i+=(0,Gp.mod10)(i),IA(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i,r))}return t}($A.default);Kd.default=PA,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.MSI1110=Bn.MSI1010=Bn.MSI11=Bn.MSI10=Bn.MSI=void 0;var MA=Qo,LA=Sr(MA),jA=Ud,zA=Sr(jA),HA=Wd,UA=Sr(HA),WA=Gd,GA=Sr(WA),KA=Kd,YA=Sr(KA);function Sr(e){return e&&e.__esModule?e:{default:e}}Bn.MSI=LA.default,Bn.MSI10=zA.default,Bn.MSI11=UA.default,Bn.MSI1010=GA.default,Bn.MSI1110=YA.default;var Ga={};Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.pharmacode=void 0;var QA=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),XA=hn,JA=ZA(XA);function ZA(e){return e&&e.__esModule?e:{default:e}}function qA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eS(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function tS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var nS=function(e){tS(t,e);function t(i,r){qA(this,t);var o=eS(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i,r));return o.number=parseInt(i,10),o}return QA(t,[{key:"encode",value:function(){for(var r=this.number,o="";!isNaN(r)&&r!=0;)r%2===0?(o="11100"+o,r=(r-2)/2):(o="100"+o,r=(r-1)/2);return o=o.slice(0,-2),{data:o,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),t}(JA.default);Ga.pharmacode=nS;var Ka={};Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.codabar=void 0;var oS=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),iS=hn,rS=aS(iS);function aS(e){return e&&e.__esModule?e:{default:e}}function lS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sS(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function dS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var cS=function(e){dS(t,e);function t(i,r){lS(this,t),i.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(i="A"+i+"A");var o=sS(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i.toUpperCase(),r));return o.text=o.options.text||o.text.replace(/[A-D]/g,""),o}return oS(t,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var r=[],o=this.getEncodings(),s=0;s<this.data.length;s++)r.push(o[this.data.charAt(s)]),s!==this.data.length-1&&r.push("0");return{text:this.text,data:r.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),t}(rS.default);Ka.codabar=cS;var Ya={};Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.GenericBarcode=void 0;var uS=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),fS=hn,pS=hS(fS);function hS(e){return e&&e.__esModule?e:{default:e}}function mS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gS(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function vS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var yS=function(e){vS(t,e);function t(i,r){return mS(this,t),gS(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i,r))}return uS(t,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),t}(pS.default);Ya.GenericBarcode=yS,Object.defineProperty(xd,"__esModule",{value:!0});var bS=La,Qa=Jn,ki=mn,Kp=xi,xr=Bn,CS=Ga,_S=Ka,wS=Ya;xd.default={CODE39:bS.CODE39,CODE128:Qa.CODE128,CODE128A:Qa.CODE128A,CODE128B:Qa.CODE128B,CODE128C:Qa.CODE128C,EAN13:ki.EAN13,EAN8:ki.EAN8,EAN5:ki.EAN5,EAN2:ki.EAN2,UPC:ki.UPC,UPCE:ki.UPCE,ITF14:Kp.ITF14,ITF:Kp.ITF,MSI:xr.MSI,MSI10:xr.MSI10,MSI11:xr.MSI11,MSI1010:xr.MSI1010,MSI1110:xr.MSI1110,pharmacode:CS.pharmacode,codabar:_S.codabar,GenericBarcode:wS.GenericBarcode};var Ni={};Object.defineProperty(Ni,"__esModule",{value:!0});var ES=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e};Ni.default=function(e,t){return ES({},e,t)};var Yd={};Object.defineProperty(Yd,"__esModule",{value:!0}),Yd.default=AS;function AS(e){var t=[];function i(r){if(Array.isArray(r))for(var o=0;o<r.length;o++)i(r[o]);else r.text=r.text||"",r.data=r.data||"",t.push(r)}return i(e),t}var Qd={};Object.defineProperty(Qd,"__esModule",{value:!0}),Qd.default=SS;function SS(e){return e.marginTop=e.marginTop||e.margin,e.marginBottom=e.marginBottom||e.margin,e.marginRight=e.marginRight||e.margin,e.marginLeft=e.marginLeft||e.margin,e}var Xd={},Jd={},Xa={};Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.default=xS;function xS(e){var t=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var i in t)t.hasOwnProperty(i)&&(i=t[i],typeof e[i]=="string"&&(e[i]=parseInt(e[i],10)));return typeof e.displayValue=="string"&&(e.displayValue=e.displayValue!="false"),e}var Ja={};Object.defineProperty(Ja,"__esModule",{value:!0});var kS={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};Ja.default=kS,Object.defineProperty(Jd,"__esModule",{value:!0});var NS=Xa,TS=Qp(NS),OS=Ja,Yp=Qp(OS);function Qp(e){return e&&e.__esModule?e:{default:e}}function DS(e){var t={};for(var i in Yp.default)Yp.default.hasOwnProperty(i)&&(e.hasAttribute("jsbarcode-"+i.toLowerCase())&&(t[i]=e.getAttribute("jsbarcode-"+i.toLowerCase())),e.hasAttribute("data-"+i.toLowerCase())&&(t[i]=e.getAttribute("data-"+i.toLowerCase())));return t.value=e.getAttribute("jsbarcode-value")||e.getAttribute("data-value"),t=(0,TS.default)(t),t}Jd.default=DS;var Zd={},qd={},An={};Object.defineProperty(An,"__esModule",{value:!0}),An.getTotalWidthOfEncodings=An.calculateEncodingAttributes=An.getBarcodePadding=An.getEncodingHeight=An.getMaximumHeightOfEncodings=void 0;var BS=Ni,$S=VS(BS);function VS(e){return e&&e.__esModule?e:{default:e}}function Xp(e,t){return t.height+(t.displayValue&&e.text.length>0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function Jp(e,t,i){if(i.displayValue&&t<e){if(i.textAlign=="center")return Math.floor((e-t)/2);if(i.textAlign=="left")return 0;if(i.textAlign=="right")return Math.floor(e-t)}return 0}function RS(e,t,i){for(var r=0;r<e.length;r++){var o=e[r],s=(0,$S.default)(t,o.options),d;s.displayValue?d=PS(o.text,s,i):d=0;var c=o.data.length*s.width;o.width=Math.ceil(Math.max(d,c)),o.height=Xp(o,s),o.barcodePadding=Jp(d,c,s)}}function IS(e){for(var t=0,i=0;i<e.length;i++)t+=e[i].width;return t}function FS(e){for(var t=0,i=0;i<e.length;i++)e[i].height>t&&(t=e[i].height);return t}function PS(e,t,i){var r;if(i)r=i;else if(typeof document<"u")r=document.createElement("canvas").getContext("2d");else return 0;r.font=t.fontOptions+" "+t.fontSize+"px "+t.font;var o=r.measureText(e);if(!o)return 0;var s=o.width;return s}An.getMaximumHeightOfEncodings=FS,An.getEncodingHeight=Xp,An.getBarcodePadding=Jp,An.calculateEncodingAttributes=RS,An.getTotalWidthOfEncodings=IS,Object.defineProperty(qd,"__esModule",{value:!0});var MS=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),LS=Ni,jS=zS(LS),ec=An;function zS(e){return e&&e.__esModule?e:{default:e}}function HS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var US=function(){function e(t,i,r){HS(this,e),this.canvas=t,this.encodings=i,this.options=r}return MS(e,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var i=0;i<this.encodings.length;i++){var r=(0,jS.default)(this.options,this.encodings[i].options);this.drawCanvasBarcode(r,this.encodings[i]),this.drawCanvasText(r,this.encodings[i]),this.moveCanvasDrawing(this.encodings[i])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var i=this.canvas.getContext("2d");i.save(),(0,ec.calculateEncodingAttributes)(this.encodings,this.options,i);var r=(0,ec.getTotalWidthOfEncodings)(this.encodings),o=(0,ec.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=r+this.options.marginLeft+this.options.marginRight,this.canvas.height=o,i.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(i.fillStyle=this.options.background,i.fillRect(0,0,this.canvas.width,this.canvas.height)),i.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(i,r){var o=this.canvas.getContext("2d"),s=r.data,d;i.textPosition=="top"?d=i.marginTop+i.fontSize+i.textMargin:d=i.marginTop,o.fillStyle=i.lineColor;for(var c=0;c<s.length;c++){var u=c*i.width+r.barcodePadding;s[c]==="1"?o.fillRect(u,d,i.width,i.height):s[c]&&o.fillRect(u,d,i.width,i.height*s[c])}}},{key:"drawCanvasText",value:function(i,r){var o=this.canvas.getContext("2d"),s=i.fontOptions+" "+i.fontSize+"px "+i.font;if(i.displayValue){var d,c;i.textPosition=="top"?c=i.marginTop+i.fontSize-i.textMargin:c=i.height+i.textMargin+i.marginTop+i.fontSize,o.font=s,i.textAlign=="left"||r.barcodePadding>0?(d=0,o.textAlign="left"):i.textAlign=="right"?(d=r.width-1,o.textAlign="right"):(d=r.width/2,o.textAlign="center"),o.fillText(r.text,d,c)}}},{key:"moveCanvasDrawing",value:function(i){var r=this.canvas.getContext("2d");r.translate(i.width,0)}},{key:"restoreCanvas",value:function(){var i=this.canvas.getContext("2d");i.restore()}}]),e}();qd.default=US;var tc={};Object.defineProperty(tc,"__esModule",{value:!0});var WS=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),GS=Ni,KS=YS(GS),nc=An;function YS(e){return e&&e.__esModule?e:{default:e}}function QS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Za="http://www.w3.org/2000/svg",XS=function(){function e(t,i,r){QS(this,e),this.svg=t,this.encodings=i,this.options=r,this.document=r.xmlDocument||document}return WS(e,[{key:"render",value:function(){var i=this.options.marginLeft;this.prepareSVG();for(var r=0;r<this.encodings.length;r++){var o=this.encodings[r],s=(0,KS.default)(this.options,o.options),d=this.createGroup(i,s.marginTop,this.svg);this.setGroupOptions(d,s),this.drawSvgBarcode(d,s,o),this.drawSVGText(d,s,o),i+=o.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,nc.calculateEncodingAttributes)(this.encodings,this.options);var i=(0,nc.getTotalWidthOfEncodings)(this.encodings),r=(0,nc.getMaximumHeightOfEncodings)(this.encodings),o=i+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(o,r),this.options.background&&this.drawRect(0,0,o,r,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(i,r,o){var s=o.data,d;r.textPosition=="top"?d=r.fontSize+r.textMargin:d=0;for(var c=0,u=0,g=0;g<s.length;g++)u=g*r.width+o.barcodePadding,s[g]==="1"?c++:c>0&&(this.drawRect(u-r.width*c,d,r.width*c,r.height,i),c=0);c>0&&this.drawRect(u-r.width*(c-1),d,r.width*c,r.height,i)}},{key:"drawSVGText",value:function(i,r,o){var s=this.document.createElementNS(Za,"text");if(r.displayValue){var d,c;s.setAttribute("style","font:"+r.fontOptions+" "+r.fontSize+"px "+r.font),r.textPosition=="top"?c=r.fontSize-r.textMargin:c=r.height+r.textMargin+r.fontSize,r.textAlign=="left"||o.barcodePadding>0?(d=0,s.setAttribute("text-anchor","start")):r.textAlign=="right"?(d=o.width-1,s.setAttribute("text-anchor","end")):(d=o.width/2,s.setAttribute("text-anchor","middle")),s.setAttribute("x",d),s.setAttribute("y",c),s.appendChild(this.document.createTextNode(o.text)),i.appendChild(s)}}},{key:"setSvgAttributes",value:function(i,r){var o=this.svg;o.setAttribute("width",i+"px"),o.setAttribute("height",r+"px"),o.setAttribute("x","0px"),o.setAttribute("y","0px"),o.setAttribute("viewBox","0 0 "+i+" "+r),o.setAttribute("xmlns",Za),o.setAttribute("version","1.1"),o.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(i,r,o){var s=this.document.createElementNS(Za,"g");return s.setAttribute("transform","translate("+i+", "+r+")"),o.appendChild(s),s}},{key:"setGroupOptions",value:function(i,r){i.setAttribute("style","fill:"+r.lineColor+";")}},{key:"drawRect",value:function(i,r,o,s,d){var c=this.document.createElementNS(Za,"rect");return c.setAttribute("x",i),c.setAttribute("y",r),c.setAttribute("width",o),c.setAttribute("height",s),d.appendChild(c),c}}]),e}();tc.default=XS;var oc={};Object.defineProperty(oc,"__esModule",{value:!0});var JS=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}();function ZS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var qS=function(){function e(t,i,r){ZS(this,e),this.object=t,this.encodings=i,this.options=r}return JS(e,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),e}();oc.default=qS,Object.defineProperty(Zd,"__esModule",{value:!0});var ex=qd,tx=ic(ex),nx=tc,ox=ic(nx),ix=oc,rx=ic(ix);function ic(e){return e&&e.__esModule?e:{default:e}}Zd.default={CanvasRenderer:tx.default,SVGRenderer:ox.default,ObjectRenderer:rx.default};var Ti={};Object.defineProperty(Ti,"__esModule",{value:!0});function rc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ac(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function lc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var ax=function(e){lc(t,e);function t(i,r){rc(this,t);var o=ac(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.name="InvalidInputException",o.symbology=i,o.input=r,o.message='"'+o.input+'" is not a valid input for '+o.symbology,o}return t}(Error),lx=function(e){lc(t,e);function t(){rc(this,t);var i=ac(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.name="InvalidElementException",i.message="Not supported type to render on",i}return t}(Error),sx=function(e){lc(t,e);function t(){rc(this,t);var i=ac(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.name="NoElementException",i.message="No element to render on.",i}return t}(Error);Ti.InvalidInputException=ax,Ti.InvalidElementException=lx,Ti.NoElementException=sx,Object.defineProperty(Xd,"__esModule",{value:!0});var dx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cx=Jd,sc=Zp(cx),ux=Zd,kr=Zp(ux),fx=Ti;function Zp(e){return e&&e.__esModule?e:{default:e}}function dc(e){if(typeof e=="string")return px(e);if(Array.isArray(e)){for(var t=[],i=0;i<e.length;i++)t.push(dc(e[i]));return t}else{if(typeof HTMLCanvasElement<"u"&&e instanceof HTMLImageElement)return hx(e);if(e&&e.nodeName&&e.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&e instanceof SVGElement)return{element:e,options:(0,sc.default)(e),renderer:kr.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement)return{element:e,options:(0,sc.default)(e),renderer:kr.default.CanvasRenderer};if(e&&e.getContext)return{element:e,renderer:kr.default.CanvasRenderer};if(e&&(typeof e>"u"?"undefined":dx(e))==="object"&&!e.nodeName)return{element:e,renderer:kr.default.ObjectRenderer};throw new fx.InvalidElementException}}function px(e){var t=document.querySelectorAll(e);if(t.length!==0){for(var i=[],r=0;r<t.length;r++)i.push(dc(t[r]));return i}}function hx(e){var t=document.createElement("canvas");return{element:t,options:(0,sc.default)(e),renderer:kr.default.CanvasRenderer,afterRender:function(){e.setAttribute("src",t.toDataURL())}}}Xd.default=dc;var cc={};Object.defineProperty(cc,"__esModule",{value:!0});var mx=function(){function e(t,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}();function gx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var vx=function(){function e(t){gx(this,e),this.api=t}return mx(e,[{key:"handleCatch",value:function(i){if(i.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw i.message;else throw i;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(i){try{var r=i.apply(void 0,arguments);return this.api._options.valid(!0),r}catch(o){return this.handleCatch(o),this.api}}}]),e}();cc.default=vx;var yx=xd,Jo=To(yx),bx=Ni,Nr=To(bx),Cx=Yd,qp=To(Cx),_x=Qd,eh=To(_x),wx=Xd,Ex=To(wx),Ax=Xa,Sx=To(Ax),xx=cc,kx=To(xx),th=Ti,Nx=Ja,nh=To(Nx);function To(e){return e&&e.__esModule?e:{default:e}}var uo=function(){},qa=function(t,i,r){var o=new uo;if(typeof t>"u")throw Error("No element to render on was provided.");return o._renderProperties=(0,Ex.default)(t),o._encodings=[],o._options=nh.default,o._errorHandler=new kx.default(o),typeof i<"u"&&(r=r||{},r.format||(r.format=rh()),o.options(r)[r.format](i,r).render()),o};qa.getModule=function(e){return Jo.default[e]};for(var oh in Jo.default)Jo.default.hasOwnProperty(oh)&&Tx(Jo.default,oh);function Tx(e,t){uo.prototype[t]=uo.prototype[t.toUpperCase()]=uo.prototype[t.toLowerCase()]=function(i,r){var o=this;return o._errorHandler.wrapBarcodeCall(function(){r.text=typeof r.text>"u"?void 0:""+r.text;var s=(0,Nr.default)(o._options,r);s=(0,Sx.default)(s);var d=e[t],c=ih(i,d,s);return o._encodings.push(c),o})}}function ih(e,t,i){e=""+e;var r=new t(e,i);if(!r.valid())throw new th.InvalidInputException(r.constructor.name,e);var o=r.encode();o=(0,qp.default)(o);for(var s=0;s<o.length;s++)o[s].options=(0,Nr.default)(i,o[s].options);return o}function rh(){return Jo.default.CODE128?"CODE128":Object.keys(Jo.default)[0]}uo.prototype.options=function(e){return this._options=(0,Nr.default)(this._options,e),this},uo.prototype.blank=function(e){var t=new Array(e+1).join("0");return this._encodings.push({data:t}),this},uo.prototype.init=function(){if(!!this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var e;for(var t in this._renderProperties){e=this._renderProperties[t];var i=(0,Nr.default)(this._options,e.options);i.format=="auto"&&(i.format=rh()),this._errorHandler.wrapBarcodeCall(function(){var r=i.value,o=Jo.default[i.format.toUpperCase()],s=ih(r,o,i);uc(e,s,i)})}}},uo.prototype.render=function(){if(!this._renderProperties)throw new th.NoElementException;if(Array.isArray(this._renderProperties))for(var e=0;e<this._renderProperties.length;e++)uc(this._renderProperties[e],this._encodings,this._options);else uc(this._renderProperties,this._encodings,this._options);return this},uo.prototype._defaults=nh.default;function uc(e,t,i){t=(0,qp.default)(t);for(var r=0;r<t.length;r++)t[r].options=(0,Nr.default)(i,t[r].options),(0,eh.default)(t[r].options);(0,eh.default)(i);var o=e.renderer,s=new o(e.element,t,i);s.render(),e.afterRender&&e.afterRender()}typeof window<"u"&&(window.JsBarcode=qa),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(e,t){var i=[];return jQuery(this).each(function(){i.push(this)}),qa(i,e,t)});var Ox=qa;const Dx=n.defineComponent({name:"BarCodeBox",data(){return{}},props:{value:String,format:String,displayValue:{type:Boolean,default:!0},fontSize:Number,textPosition:String,textAlign:String,textMargin:Number,width:{type:Number,default:2},height:{type:Number,default:50},background:String,lineColor:String},methods:{},computed:{},components:{},watch:{$props:{handler(){const e=this.value,t={};Object.keys(this.$props).forEach(i=>{this.$props[i]!=null&&this.$props[i]!==""&&(t[i]=this.$props[i])}),delete t.value,delete t.formCreateInject,this.$nextTick(()=>{Ox(this.$refs.bar,e||"",t)})},deep:!0,immediate:!0}}}),Bx={class:"_fc-barcode",ref:"bar"};function $x(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("img",Bx,null,512)}const ah=Ne(Dx,[["render",$x]]),GL="",Vx=n.defineComponent({name:"VideoBox",emits:["pause","play","ended","error"],data(){return{player:null}},props:{src:String,type:String,controls:{type:Boolean,default:!0},autoplay:Boolean,isLive:Boolean,withCredentials:Boolean,loop:Boolean},watch:{src:{handler:function(){this.$nextTick(()=>{Mn.ready("mpegts",()=>{const e=this.$refs.video,t=window.mpegts.createPlayer({isLive:this.isLive,type:this.type,url:this.src});t.attachMediaElement(e),t.on("error",i=>{this.$emit("error",i)}),t.load(),this.autoplay&&t.play().catch(i=>{this.$emit("error",i)}),this.player=t})})},immediate:!0}},created(){window.mpegts?Mn.done("mpegts"):Mn.isDefined("mpegts")||Mn(["https://static.form-create.com/res/mpegts.min.js"],"mpegts")}}),Rx=["controls","loop"];function Ix(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("video",{ref:"video",class:"_fc-video-box",controls:e.controls,loop:e.loop,onPause:t[0]||(t[0]=d=>e.$emit("pause",d)),onPlay:t[1]||(t[1]=d=>e.$emit("play",d)),onEnded:t[2]||(t[2]=d=>e.$emit("ended",d))},null,40,Rx)}const lh=Ne(Vx,[["render",Ix]]);var sh={exports:{}};(function(e,t){(function(i,r){e.exports=r()})(Ed,()=>(()=>{var i={873:(d,c)=>{var u,g,y=function(){var C=function(W,V){var k=W,M=m[V],j=null,Z=0,J=null,F=[],ie={},pe=function(K,te){j=function(q){for(var oe=new Array(q),de=0;de<q;de+=1){oe[de]=new Array(q);for(var Ee=0;Ee<q;Ee+=1)oe[de][Ee]=null}return oe}(Z=4*k+17),se(0,0),se(Z-7,0),se(0,Z-7),fe(),ye(),he(K,te),k>=7&&ue(K),J==null&&(J=Y(k,M,F)),$(J,te)},se=function(K,te){for(var q=-1;q<=7;q+=1)if(!(K+q<=-1||Z<=K+q))for(var oe=-1;oe<=7;oe+=1)te+oe<=-1||Z<=te+oe||(j[K+q][te+oe]=0<=q&&q<=6&&(oe==0||oe==6)||0<=oe&&oe<=6&&(q==0||q==6)||2<=q&&q<=4&&2<=oe&&oe<=4)},ye=function(){for(var K=8;K<Z-8;K+=1)j[K][6]==null&&(j[K][6]=K%2==0);for(var te=8;te<Z-8;te+=1)j[6][te]==null&&(j[6][te]=te%2==0)},fe=function(){for(var K=b.getPatternPosition(k),te=0;te<K.length;te+=1)for(var q=0;q<K.length;q+=1){var oe=K[te],de=K[q];if(j[oe][de]==null)for(var Ee=-2;Ee<=2;Ee+=1)for(var Se=-2;Se<=2;Se+=1)j[oe+Ee][de+Se]=Ee==-2||Ee==2||Se==-2||Se==2||Ee==0&&Se==0}},ue=function(K){for(var te=b.getBCHTypeNumber(k),q=0;q<18;q+=1){var oe=!K&&(te>>q&1)==1;j[Math.floor(q/3)][q%3+Z-8-3]=oe}for(q=0;q<18;q+=1)oe=!K&&(te>>q&1)==1,j[q%3+Z-8-3][Math.floor(q/3)]=oe},he=function(K,te){for(var q=M<<3|te,oe=b.getBCHTypeInfo(q),de=0;de<15;de+=1){var Ee=!K&&(oe>>de&1)==1;de<6?j[de][8]=Ee:de<8?j[de+1][8]=Ee:j[Z-15+de][8]=Ee}for(de=0;de<15;de+=1)Ee=!K&&(oe>>de&1)==1,de<8?j[8][Z-de-1]=Ee:de<9?j[8][15-de-1+1]=Ee:j[8][15-de-1]=Ee;j[Z-8][8]=!K},$=function(K,te){for(var q=-1,oe=Z-1,de=7,Ee=0,Se=b.getMaskFunction(te),ke=Z-1;ke>0;ke-=2)for(ke==6&&(ke-=1);;){for(var qe=0;qe<2;qe+=1)if(j[oe][ke-qe]==null){var Re=!1;Ee<K.length&&(Re=(K[Ee]>>>de&1)==1),Se(oe,ke-qe)&&(Re=!Re),j[oe][ke-qe]=Re,(de-=1)==-1&&(Ee+=1,de=7)}if((oe+=q)<0||Z<=oe){oe-=q,q=-q;break}}},Y=function(K,te,q){for(var oe=O.getRSBlocks(K,te),de=D(),Ee=0;Ee<q.length;Ee+=1){var Se=q[Ee];de.put(Se.getMode(),4),de.put(Se.getLength(),b.getLengthInBits(Se.getMode(),K)),Se.write(de)}var ke=0;for(Ee=0;Ee<oe.length;Ee+=1)ke+=oe[Ee].dataCount;if(de.getLengthInBits()>8*ke)throw"code length overflow. ("+de.getLengthInBits()+">"+8*ke+")";for(de.getLengthInBits()+4<=8*ke&&de.put(0,4);de.getLengthInBits()%8!=0;)de.putBit(!1);for(;!(de.getLengthInBits()>=8*ke||(de.put(236,8),de.getLengthInBits()>=8*ke));)de.put(17,8);return function(qe,Re){for(var ge=0,Ae=0,le=0,we=new Array(Re.length),Ie=new Array(Re.length),je=0;je<Re.length;je+=1){var ct=Re[je].dataCount,rt=Re[je].totalCount-ct;Ae=Math.max(Ae,ct),le=Math.max(le,rt),we[je]=new Array(ct);for(var Fe=0;Fe<we[je].length;Fe+=1)we[je][Fe]=255&qe.getBuffer()[Fe+ge];ge+=ct;var Ct=b.getErrorCorrectPolynomial(rt),Ze=x(we[je],Ct.getLength()-1).mod(Ct);for(Ie[je]=new Array(Ct.getLength()-1),Fe=0;Fe<Ie[je].length;Fe+=1){var Oe=Fe+Ze.getLength()-Ie[je].length;Ie[je][Fe]=Oe>=0?Ze.getAt(Oe):0}}var Ve=0;for(Fe=0;Fe<Re.length;Fe+=1)Ve+=Re[Fe].totalCount;var Xe=new Array(Ve),De=0;for(Fe=0;Fe<Ae;Fe+=1)for(je=0;je<Re.length;je+=1)Fe<we[je].length&&(Xe[De]=we[je][Fe],De+=1);for(Fe=0;Fe<le;Fe+=1)for(je=0;je<Re.length;je+=1)Fe<Ie[je].length&&(Xe[De]=Ie[je][Fe],De+=1);return Xe}(de,oe)};ie.addData=function(K,te){var q=null;switch(te=te||"Byte"){case"Numeric":q=R(K);break;case"Alphanumeric":q=I(K);break;case"Byte":q=z(K);break;case"Kanji":q=T(K);break;default:throw"mode:"+te}F.push(q),J=null},ie.isDark=function(K,te){if(K<0||Z<=K||te<0||Z<=te)throw K+","+te;return j[K][te]},ie.getModuleCount=function(){return Z},ie.make=function(){if(k<1){for(var K=1;K<40;K++){for(var te=O.getRSBlocks(K,M),q=D(),oe=0;oe<F.length;oe++){var de=F[oe];q.put(de.getMode(),4),q.put(de.getLength(),b.getLengthInBits(de.getMode(),K)),de.write(q)}var Ee=0;for(oe=0;oe<te.length;oe++)Ee+=te[oe].dataCount;if(q.getLengthInBits()<=8*Ee)break}k=K}pe(!1,function(){for(var Se=0,ke=0,qe=0;qe<8;qe+=1){pe(!0,qe);var Re=b.getLostPoint(ie);(qe==0||Se>Re)&&(Se=Re,ke=qe)}return ke}())},ie.createTableTag=function(K,te){K=K||2;var q="";q+='<table style="',q+=" border-width: 0px; border-style: none;",q+=" border-collapse: collapse;",q+=" padding: 0px; margin: "+(te=te===void 0?4*K:te)+"px;",q+='">',q+="<tbody>";for(var oe=0;oe<ie.getModuleCount();oe+=1){q+="<tr>";for(var de=0;de<ie.getModuleCount();de+=1)q+='<td style="',q+=" border-width: 0px; border-style: none;",q+=" border-collapse: collapse;",q+=" padding: 0px; margin: 0px;",q+=" width: "+K+"px;",q+=" height: "+K+"px;",q+=" background-color: ",q+=ie.isDark(oe,de)?"#000000":"#ffffff",q+=";",q+='"/>';q+="</tr>"}return(q+="</tbody>")+"</table>"},ie.createSvgTag=function(K,te,q,oe){var de={};typeof arguments[0]=="object"&&(K=(de=arguments[0]).cellSize,te=de.margin,q=de.alt,oe=de.title),K=K||2,te=te===void 0?4*K:te,(q=typeof q=="string"?{text:q}:q||{}).text=q.text||null,q.id=q.text?q.id||"qrcode-description":null,(oe=typeof oe=="string"?{text:oe}:oe||{}).text=oe.text||null,oe.id=oe.text?oe.id||"qrcode-title":null;var Ee,Se,ke,qe,Re=ie.getModuleCount()*K+2*te,ge="";for(qe="l"+K+",0 0,"+K+" -"+K+",0 0,-"+K+"z ",ge+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',ge+=de.scalable?"":' width="'+Re+'px" height="'+Re+'px"',ge+=' viewBox="0 0 '+Re+" "+Re+'" ',ge+=' preserveAspectRatio="xMinYMin meet"',ge+=oe.text||q.text?' role="img" aria-labelledby="'+Q([oe.id,q.id].join(" ").trim())+'"':"",ge+=">",ge+=oe.text?'<title id="'+Q(oe.id)+'">'+Q(oe.text)+"</title>":"",ge+=q.text?'<description id="'+Q(q.id)+'">'+Q(q.text)+"</description>":"",ge+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',ge+='<path d="',Se=0;Se<ie.getModuleCount();Se+=1)for(ke=Se*K+te,Ee=0;Ee<ie.getModuleCount();Ee+=1)ie.isDark(Se,Ee)&&(ge+="M"+(Ee*K+te)+","+ke+qe);return(ge+='" stroke="transparent" fill="black"/>')+"</svg>"},ie.createDataURL=function(K,te){K=K||2,te=te===void 0?4*K:te;var q=ie.getModuleCount()*K+2*te,oe=te,de=q-te;return U(q,q,function(Ee,Se){if(oe<=Ee&&Ee<de&&oe<=Se&&Se<de){var ke=Math.floor((Ee-oe)/K),qe=Math.floor((Se-oe)/K);return ie.isDark(qe,ke)?0:1}return 1})},ie.createImgTag=function(K,te,q){K=K||2,te=te===void 0?4*K:te;var oe=ie.getModuleCount()*K+2*te,de="";return de+="<img",de+=' src="',de+=ie.createDataURL(K,te),de+='"',de+=' width="',de+=oe,de+='"',de+=' height="',de+=oe,de+='"',q&&(de+=' alt="',de+=Q(q),de+='"'),de+"/>"};var Q=function(K){for(var te="",q=0;q<K.length;q+=1){var oe=K.charAt(q);switch(oe){case"<":te+="&lt;";break;case">":te+="&gt;";break;case"&":te+="&amp;";break;case'"':te+="&quot;";break;default:te+=oe}}return te};return ie.createASCII=function(K,te){if((K=K||1)<2)return function(we){we=we===void 0?2:we;var Ie,je,ct,rt,Fe,Ct=1*ie.getModuleCount()+2*we,Ze=we,Oe=Ct-we,Ve={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},Xe={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},De="";for(Ie=0;Ie<Ct;Ie+=2){for(ct=Math.floor((Ie-Ze)/1),rt=Math.floor((Ie+1-Ze)/1),je=0;je<Ct;je+=1)Fe="\u2588",Ze<=je&&je<Oe&&Ze<=Ie&&Ie<Oe&&ie.isDark(ct,Math.floor((je-Ze)/1))&&(Fe=" "),Ze<=je&&je<Oe&&Ze<=Ie+1&&Ie+1<Oe&&ie.isDark(rt,Math.floor((je-Ze)/1))?Fe+=" ":Fe+="\u2588",De+=we<1&&Ie+1>=Oe?Xe[Fe]:Ve[Fe];De+=`
`}return Ct%2&&we>0?De.substring(0,De.length-Ct-1)+Array(Ct+1).join("\u2580"):De.substring(0,De.length-1)}(te);K-=1,te=te===void 0?2*K:te;var q,oe,de,Ee,Se=ie.getModuleCount()*K+2*te,ke=te,qe=Se-te,Re=Array(K+1).join("\u2588\u2588"),ge=Array(K+1).join(" "),Ae="",le="";for(q=0;q<Se;q+=1){for(de=Math.floor((q-ke)/K),le="",oe=0;oe<Se;oe+=1)Ee=1,ke<=oe&&oe<qe&&ke<=q&&q<qe&&ie.isDark(de,Math.floor((oe-ke)/K))&&(Ee=0),le+=Ee?Re:ge;for(de=0;de<K;de+=1)Ae+=le+`
`}return Ae.substring(0,Ae.length-1)},ie.renderTo2dContext=function(K,te){te=te||2;for(var q=ie.getModuleCount(),oe=0;oe<q;oe++)for(var de=0;de<q;de++)K.fillStyle=ie.isDark(oe,de)?"black":"white",K.fillRect(oe*te,de*te,te,te)},ie};C.stringToBytes=(C.stringToBytesFuncs={default:function(W){for(var V=[],k=0;k<W.length;k+=1){var M=W.charCodeAt(k);V.push(255&M)}return V}}).default,C.createStringToBytes=function(W,V){var k=function(){for(var j=L(W),Z=function(){var ye=j.read();if(ye==-1)throw"eof";return ye},J=0,F={};;){var ie=j.read();if(ie==-1)break;var pe=Z(),se=Z()<<8|Z();F[String.fromCharCode(ie<<8|pe)]=se,J+=1}if(J!=V)throw J+" != "+V;return F}(),M="?".charCodeAt(0);return function(j){for(var Z=[],J=0;J<j.length;J+=1){var F=j.charCodeAt(J);if(F<128)Z.push(F);else{var ie=k[j.charAt(J)];typeof ie=="number"?(255&ie)==ie?Z.push(ie):(Z.push(ie>>>8),Z.push(255&ie)):Z.push(M)}}return Z}};var w,A,E,_,v,m={L:1,M:0,Q:3,H:2},b=(w=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],A=1335,E=7973,v=function(W){for(var V=0;W!=0;)V+=1,W>>>=1;return V},(_={}).getBCHTypeInfo=function(W){for(var V=W<<10;v(V)-v(A)>=0;)V^=A<<v(V)-v(A);return 21522^(W<<10|V)},_.getBCHTypeNumber=function(W){for(var V=W<<12;v(V)-v(E)>=0;)V^=E<<v(V)-v(E);return W<<12|V},_.getPatternPosition=function(W){return w[W-1]},_.getMaskFunction=function(W){switch(W){case 0:return function(V,k){return(V+k)%2==0};case 1:return function(V,k){return V%2==0};case 2:return function(V,k){return k%3==0};case 3:return function(V,k){return(V+k)%3==0};case 4:return function(V,k){return(Math.floor(V/2)+Math.floor(k/3))%2==0};case 5:return function(V,k){return V*k%2+V*k%3==0};case 6:return function(V,k){return(V*k%2+V*k%3)%2==0};case 7:return function(V,k){return(V*k%3+(V+k)%2)%2==0};default:throw"bad maskPattern:"+W}},_.getErrorCorrectPolynomial=function(W){for(var V=x([1],0),k=0;k<W;k+=1)V=V.multiply(x([1,S.gexp(k)],0));return V},_.getLengthInBits=function(W,V){if(1<=V&&V<10)switch(W){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+W}else if(V<27)switch(W){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+W}else{if(!(V<41))throw"type:"+V;switch(W){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+W}}},_.getLostPoint=function(W){for(var V=W.getModuleCount(),k=0,M=0;M<V;M+=1)for(var j=0;j<V;j+=1){for(var Z=0,J=W.isDark(M,j),F=-1;F<=1;F+=1)if(!(M+F<0||V<=M+F))for(var ie=-1;ie<=1;ie+=1)j+ie<0||V<=j+ie||F==0&&ie==0||J==W.isDark(M+F,j+ie)&&(Z+=1);Z>5&&(k+=3+Z-5)}for(M=0;M<V-1;M+=1)for(j=0;j<V-1;j+=1){var pe=0;W.isDark(M,j)&&(pe+=1),W.isDark(M+1,j)&&(pe+=1),W.isDark(M,j+1)&&(pe+=1),W.isDark(M+1,j+1)&&(pe+=1),pe!=0&&pe!=4||(k+=3)}for(M=0;M<V;M+=1)for(j=0;j<V-6;j+=1)W.isDark(M,j)&&!W.isDark(M,j+1)&&W.isDark(M,j+2)&&W.isDark(M,j+3)&&W.isDark(M,j+4)&&!W.isDark(M,j+5)&&W.isDark(M,j+6)&&(k+=40);for(j=0;j<V;j+=1)for(M=0;M<V-6;M+=1)W.isDark(M,j)&&!W.isDark(M+1,j)&&W.isDark(M+2,j)&&W.isDark(M+3,j)&&W.isDark(M+4,j)&&!W.isDark(M+5,j)&&W.isDark(M+6,j)&&(k+=40);var se=0;for(j=0;j<V;j+=1)for(M=0;M<V;M+=1)W.isDark(M,j)&&(se+=1);return k+Math.abs(100*se/V/V-50)/5*10},_),S=function(){for(var W=new Array(256),V=new Array(256),k=0;k<8;k+=1)W[k]=1<<k;for(k=8;k<256;k+=1)W[k]=W[k-4]^W[k-5]^W[k-6]^W[k-8];for(k=0;k<255;k+=1)V[W[k]]=k;return{glog:function(M){if(M<1)throw"glog("+M+")";return V[M]},gexp:function(M){for(;M<0;)M+=255;for(;M>=256;)M-=255;return W[M]}}}();function x(W,V){if(W.length===void 0)throw W.length+"/"+V;var k=function(){for(var j=0;j<W.length&&W[j]==0;)j+=1;for(var Z=new Array(W.length-j+V),J=0;J<W.length-j;J+=1)Z[J]=W[J+j];return Z}(),M={getAt:function(j){return k[j]},getLength:function(){return k.length},multiply:function(j){for(var Z=new Array(M.getLength()+j.getLength()-1),J=0;J<M.getLength();J+=1)for(var F=0;F<j.getLength();F+=1)Z[J+F]^=S.gexp(S.glog(M.getAt(J))+S.glog(j.getAt(F)));return x(Z,0)},mod:function(j){if(M.getLength()-j.getLength()<0)return M;for(var Z=S.glog(M.getAt(0))-S.glog(j.getAt(0)),J=new Array(M.getLength()),F=0;F<M.getLength();F+=1)J[F]=M.getAt(F);for(F=0;F<j.getLength();F+=1)J[F]^=S.gexp(S.glog(j.getAt(F))+Z);return x(J,0).mod(j)}};return M}var O=function(){var W=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],V=function(M,j){var Z={};return Z.totalCount=M,Z.dataCount=j,Z},k={getRSBlocks:function(M,j){var Z=function(ue,he){switch(he){case m.L:return W[4*(ue-1)+0];case m.M:return W[4*(ue-1)+1];case m.Q:return W[4*(ue-1)+2];case m.H:return W[4*(ue-1)+3];default:return}}(M,j);if(Z===void 0)throw"bad rs block @ typeNumber:"+M+"/errorCorrectionLevel:"+j;for(var J=Z.length/3,F=[],ie=0;ie<J;ie+=1)for(var pe=Z[3*ie+0],se=Z[3*ie+1],ye=Z[3*ie+2],fe=0;fe<pe;fe+=1)F.push(V(se,ye));return F}};return k}(),D=function(){var W=[],V=0,k={getBuffer:function(){return W},getAt:function(M){var j=Math.floor(M/8);return(W[j]>>>7-M%8&1)==1},put:function(M,j){for(var Z=0;Z<j;Z+=1)k.putBit((M>>>j-Z-1&1)==1)},getLengthInBits:function(){return V},putBit:function(M){var j=Math.floor(V/8);W.length<=j&&W.push(0),M&&(W[j]|=128>>>V%8),V+=1}};return k},R=function(W){var V=W,k={getMode:function(){return 1},getLength:function(Z){return V.length},write:function(Z){for(var J=V,F=0;F+2<J.length;)Z.put(M(J.substring(F,F+3)),10),F+=3;F<J.length&&(J.length-F==1?Z.put(M(J.substring(F,F+1)),4):J.length-F==2&&Z.put(M(J.substring(F,F+2)),7))}},M=function(Z){for(var J=0,F=0;F<Z.length;F+=1)J=10*J+j(Z.charAt(F));return J},j=function(Z){if("0"<=Z&&Z<="9")return Z.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+Z};return k},I=function(W){var V=W,k={getMode:function(){return 2},getLength:function(j){return V.length},write:function(j){for(var Z=V,J=0;J+1<Z.length;)j.put(45*M(Z.charAt(J))+M(Z.charAt(J+1)),11),J+=2;J<Z.length&&j.put(M(Z.charAt(J)),6)}},M=function(j){if("0"<=j&&j<="9")return j.charCodeAt(0)-"0".charCodeAt(0);if("A"<=j&&j<="Z")return j.charCodeAt(0)-"A".charCodeAt(0)+10;switch(j){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+j}};return k},z=function(W){var V=C.stringToBytes(W);return{getMode:function(){return 4},getLength:function(k){return V.length},write:function(k){for(var M=0;M<V.length;M+=1)k.put(V[M],8)}}},T=function(W){var V=C.stringToBytesFuncs.SJIS;if(!V)throw"sjis not supported.";(function(){var j=V("\u53CB");if(j.length!=2||(j[0]<<8|j[1])!=38726)throw"sjis not supported."})();var k=V(W),M={getMode:function(){return 8},getLength:function(j){return~~(k.length/2)},write:function(j){for(var Z=k,J=0;J+1<Z.length;){var F=(255&Z[J])<<8|255&Z[J+1];if(33088<=F&&F<=40956)F-=33088;else{if(!(57408<=F&&F<=60351))throw"illegal char at "+(J+1)+"/"+F;F-=49472}F=192*(F>>>8&255)+(255&F),j.put(F,13),J+=2}if(J<Z.length)throw"illegal char at "+(J+1)}};return M},B=function(){var W=[],V={writeByte:function(k){W.push(255&k)},writeShort:function(k){V.writeByte(k),V.writeByte(k>>>8)},writeBytes:function(k,M,j){M=M||0,j=j||k.length;for(var Z=0;Z<j;Z+=1)V.writeByte(k[Z+M])},writeString:function(k){for(var M=0;M<k.length;M+=1)V.writeByte(k.charCodeAt(M))},toByteArray:function(){return W},toString:function(){var k="";k+="[";for(var M=0;M<W.length;M+=1)M>0&&(k+=","),k+=W[M];return k+"]"}};return V},L=function(W){var V=W,k=0,M=0,j=0,Z={read:function(){for(;j<8;){if(k>=V.length){if(j==0)return-1;throw"unexpected end of file./"+j}var F=V.charAt(k);if(k+=1,F=="=")return j=0,-1;F.match(/^\s$/)||(M=M<<6|J(F.charCodeAt(0)),j+=6)}var ie=M>>>j-8&255;return j-=8,ie}},J=function(F){if(65<=F&&F<=90)return F-65;if(97<=F&&F<=122)return F-97+26;if(48<=F&&F<=57)return F-48+52;if(F==43)return 62;if(F==47)return 63;throw"c:"+F};return Z},U=function(W,V,k){for(var M=function(se,ye){var fe=se,ue=ye,he=new Array(se*ye),$={setPixel:function(K,te,q){he[te*fe+K]=q},write:function(K){K.writeString("GIF87a"),K.writeShort(fe),K.writeShort(ue),K.writeByte(128),K.writeByte(0),K.writeByte(0),K.writeByte(0),K.writeByte(0),K.writeByte(0),K.writeByte(255),K.writeByte(255),K.writeByte(255),K.writeString(","),K.writeShort(0),K.writeShort(0),K.writeShort(fe),K.writeShort(ue),K.writeByte(0);var te=Y(2);K.writeByte(2);for(var q=0;te.length-q>255;)K.writeByte(255),K.writeBytes(te,q,255),q+=255;K.writeByte(te.length-q),K.writeBytes(te,q,te.length-q),K.writeByte(0),K.writeString(";")}},Y=function(K){for(var te=1<<K,q=1+(1<<K),oe=K+1,de=Q(),Ee=0;Ee<te;Ee+=1)de.add(String.fromCharCode(Ee));de.add(String.fromCharCode(te)),de.add(String.fromCharCode(q));var Se,ke,qe,Re=B(),ge=(Se=Re,ke=0,qe=0,{write:function(Ie,je){if(Ie>>>je!=0)throw"length over";for(;ke+je>=8;)Se.writeByte(255&(Ie<<ke|qe)),je-=8-ke,Ie>>>=8-ke,qe=0,ke=0;qe|=Ie<<ke,ke+=je},flush:function(){ke>0&&Se.writeByte(qe)}});ge.write(te,oe);var Ae=0,le=String.fromCharCode(he[Ae]);for(Ae+=1;Ae<he.length;){var we=String.fromCharCode(he[Ae]);Ae+=1,de.contains(le+we)?le+=we:(ge.write(de.indexOf(le),oe),de.size()<4095&&(de.size()==1<<oe&&(oe+=1),de.add(le+we)),le=we)}return ge.write(de.indexOf(le),oe),ge.write(q,oe),ge.flush(),Re.toByteArray()},Q=function(){var K={},te=0,q={add:function(oe){if(q.contains(oe))throw"dup key:"+oe;K[oe]=te,te+=1},size:function(){return te},indexOf:function(oe){return K[oe]},contains:function(oe){return K[oe]!==void 0}};return q};return $}(W,V),j=0;j<V;j+=1)for(var Z=0;Z<W;Z+=1)M.setPixel(Z,j,k(Z,j));var J=B();M.write(J);for(var F=function(){var se=0,ye=0,fe=0,ue="",he={},$=function(Q){ue+=String.fromCharCode(Y(63&Q))},Y=function(Q){if(!(Q<0)){if(Q<26)return 65+Q;if(Q<52)return Q-26+97;if(Q<62)return Q-52+48;if(Q==62)return 43;if(Q==63)return 47}throw"n:"+Q};return he.writeByte=function(Q){for(se=se<<8|255&Q,ye+=8,fe+=1;ye>=6;)$(se>>>ye-6),ye-=6},he.flush=function(){if(ye>0&&($(se<<6-ye),se=0,ye=0),fe%3!=0)for(var Q=3-fe%3,K=0;K<Q;K+=1)ue+="="},he.toString=function(){return ue},he}(),ie=J.toByteArray(),pe=0;pe<ie.length;pe+=1)F.writeByte(ie[pe]);return F.flush(),"data:image/gif;base64,"+F};return C}();y.stringToBytesFuncs["UTF-8"]=function(C){return function(w){for(var A=[],E=0;E<w.length;E++){var _=w.charCodeAt(E);_<128?A.push(_):_<2048?A.push(192|_>>6,128|63&_):_<55296||_>=57344?A.push(224|_>>12,128|_>>6&63,128|63&_):(E++,_=65536+((1023&_)<<10|1023&w.charCodeAt(E)),A.push(240|_>>18,128|_>>12&63,128|_>>6&63,128|63&_))}return A}(C)},(g=typeof(u=function(){return y})=="function"?u.apply(c,[]):u)===void 0||(d.exports=g)}},r={};function o(d){var c=r[d];if(c!==void 0)return c.exports;var u=r[d]={exports:{}};return i[d](u,u.exports,o),u.exports}o.n=d=>{var c=d&&d.__esModule?()=>d.default:()=>d;return o.d(c,{a:c}),c},o.d=(d,c)=>{for(var u in c)o.o(c,u)&&!o.o(d,u)&&Object.defineProperty(d,u,{enumerable:!0,get:c[u]})},o.o=(d,c)=>Object.prototype.hasOwnProperty.call(d,c);var s={};return(()=>{o.d(s,{default:()=>V});const d=k=>!!k&&typeof k=="object"&&!Array.isArray(k);function c(k,...M){if(!M.length)return k;const j=M.shift();return j!==void 0&&d(k)&&d(j)?(k=Object.assign({},k),Object.keys(j).forEach(Z=>{const J=k[Z],F=j[Z];Array.isArray(J)&&Array.isArray(F)?k[Z]=F:d(J)&&d(F)?k[Z]=c(Object.assign({},J),F):k[Z]=F}),c(k,...M)):k}function u(k,M){const j=document.createElement("a");j.download=M,j.href=k,document.body.appendChild(j),j.click(),document.body.removeChild(j)}const g={L:.07,M:.15,Q:.25,H:.3};class y{constructor({svg:M,type:j,window:Z}){this._svg=M,this._type=j,this._window=Z}draw(M,j,Z,J){let F;switch(this._type){case"dots":F=this._drawDot;break;case"classy":F=this._drawClassy;break;case"classy-rounded":F=this._drawClassyRounded;break;case"rounded":F=this._drawRounded;break;case"extra-rounded":F=this._drawExtraRounded;break;default:F=this._drawSquare}F.call(this,{x:M,y:j,size:Z,getNeighbor:J})}_rotateFigure({x:M,y:j,size:Z,rotation:J=0,draw:F}){var ie;const pe=M+Z/2,se=j+Z/2;F(),(ie=this._element)===null||ie===void 0||ie.setAttribute("transform",`rotate(${180*J/Math.PI},${pe},${se})`)}_basicDot(M){const{size:j,x:Z,y:J}=M;this._rotateFigure(Object.assign(Object.assign({},M),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(Z+j/2)),this._element.setAttribute("cy",String(J+j/2)),this._element.setAttribute("r",String(j/2))}}))}_basicSquare(M){const{size:j,x:Z,y:J}=M;this._rotateFigure(Object.assign(Object.assign({},M),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(Z)),this._element.setAttribute("y",String(J)),this._element.setAttribute("width",String(j)),this._element.setAttribute("height",String(j))}}))}_basicSideRounded(M){const{size:j,x:Z,y:J}=M;this._rotateFigure(Object.assign(Object.assign({},M),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${Z} ${J}v ${j}h `+j/2+`a ${j/2} ${j/2}, 0, 0, 0, 0 ${-j}`)}}))}_basicCornerRounded(M){const{size:j,x:Z,y:J}=M;this._rotateFigure(Object.assign(Object.assign({},M),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${Z} ${J}v ${j}h ${j}v `+-j/2+`a ${j/2} ${j/2}, 0, 0, 0, ${-j/2} ${-j/2}`)}}))}_basicCornerExtraRounded(M){const{size:j,x:Z,y:J}=M;this._rotateFigure(Object.assign(Object.assign({},M),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${Z} ${J}v ${j}h ${j}a ${j} ${j}, 0, 0, 0, ${-j} ${-j}`)}}))}_basicCornersRounded(M){const{size:j,x:Z,y:J}=M;this._rotateFigure(Object.assign(Object.assign({},M),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${Z} ${J}v `+j/2+`a ${j/2} ${j/2}, 0, 0, 0, ${j/2} ${j/2}h `+j/2+"v "+-j/2+`a ${j/2} ${j/2}, 0, 0, 0, ${-j/2} ${-j/2}`)}}))}_drawDot({x:M,y:j,size:Z}){this._basicDot({x:M,y:j,size:Z,rotation:0})}_drawSquare({x:M,y:j,size:Z}){this._basicSquare({x:M,y:j,size:Z,rotation:0})}_drawRounded({x:M,y:j,size:Z,getNeighbor:J}){const F=J?+J(-1,0):0,ie=J?+J(1,0):0,pe=J?+J(0,-1):0,se=J?+J(0,1):0,ye=F+ie+pe+se;if(ye!==0)if(ye>2||F&&ie||pe&&se)this._basicSquare({x:M,y:j,size:Z,rotation:0});else{if(ye===2){let fe=0;return F&&pe?fe=Math.PI/2:pe&&ie?fe=Math.PI:ie&&se&&(fe=-Math.PI/2),void this._basicCornerRounded({x:M,y:j,size:Z,rotation:fe})}if(ye===1){let fe=0;return pe?fe=Math.PI/2:ie?fe=Math.PI:se&&(fe=-Math.PI/2),void this._basicSideRounded({x:M,y:j,size:Z,rotation:fe})}}else this._basicDot({x:M,y:j,size:Z,rotation:0})}_drawExtraRounded({x:M,y:j,size:Z,getNeighbor:J}){const F=J?+J(-1,0):0,ie=J?+J(1,0):0,pe=J?+J(0,-1):0,se=J?+J(0,1):0,ye=F+ie+pe+se;if(ye!==0)if(ye>2||F&&ie||pe&&se)this._basicSquare({x:M,y:j,size:Z,rotation:0});else{if(ye===2){let fe=0;return F&&pe?fe=Math.PI/2:pe&&ie?fe=Math.PI:ie&&se&&(fe=-Math.PI/2),void this._basicCornerExtraRounded({x:M,y:j,size:Z,rotation:fe})}if(ye===1){let fe=0;return pe?fe=Math.PI/2:ie?fe=Math.PI:se&&(fe=-Math.PI/2),void this._basicSideRounded({x:M,y:j,size:Z,rotation:fe})}}else this._basicDot({x:M,y:j,size:Z,rotation:0})}_drawClassy({x:M,y:j,size:Z,getNeighbor:J}){const F=J?+J(-1,0):0,ie=J?+J(1,0):0,pe=J?+J(0,-1):0,se=J?+J(0,1):0;F+ie+pe+se!==0?F||pe?ie||se?this._basicSquare({x:M,y:j,size:Z,rotation:0}):this._basicCornerRounded({x:M,y:j,size:Z,rotation:Math.PI/2}):this._basicCornerRounded({x:M,y:j,size:Z,rotation:-Math.PI/2}):this._basicCornersRounded({x:M,y:j,size:Z,rotation:Math.PI/2})}_drawClassyRounded({x:M,y:j,size:Z,getNeighbor:J}){const F=J?+J(-1,0):0,ie=J?+J(1,0):0,pe=J?+J(0,-1):0,se=J?+J(0,1):0;F+ie+pe+se!==0?F||pe?ie||se?this._basicSquare({x:M,y:j,size:Z,rotation:0}):this._basicCornerExtraRounded({x:M,y:j,size:Z,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:M,y:j,size:Z,rotation:-Math.PI/2}):this._basicCornersRounded({x:M,y:j,size:Z,rotation:Math.PI/2})}}const C={dot:"dot",square:"square",extraRounded:"extra-rounded"},w=Object.values(C);class A{constructor({svg:M,type:j,window:Z}){this._svg=M,this._type=j,this._window=Z}draw(M,j,Z,J){let F;switch(this._type){case C.square:F=this._drawSquare;break;case C.extraRounded:F=this._drawExtraRounded;break;default:F=this._drawDot}F.call(this,{x:M,y:j,size:Z,rotation:J})}_rotateFigure({x:M,y:j,size:Z,rotation:J=0,draw:F}){var ie;const pe=M+Z/2,se=j+Z/2;F(),(ie=this._element)===null||ie===void 0||ie.setAttribute("transform",`rotate(${180*J/Math.PI},${pe},${se})`)}_basicDot(M){const{size:j,x:Z,y:J}=M,F=j/7;this._rotateFigure(Object.assign(Object.assign({},M),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${Z+j/2} ${J}a ${j/2} ${j/2} 0 1 0 0.1 0zm 0 ${F}a ${j/2-F} ${j/2-F} 0 1 1 -0.1 0Z`)}}))}_basicSquare(M){const{size:j,x:Z,y:J}=M,F=j/7;this._rotateFigure(Object.assign(Object.assign({},M),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${Z} ${J}v ${j}h ${j}v `+-j+`zM ${Z+F} ${J+F}h `+(j-2*F)+"v "+(j-2*F)+"h "+(2*F-j)+"z")}}))}_basicExtraRounded(M){const{size:j,x:Z,y:J}=M,F=j/7;this._rotateFigure(Object.assign(Object.assign({},M),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${Z} ${J+2.5*F}v `+2*F+`a ${2.5*F} ${2.5*F}, 0, 0, 0, ${2.5*F} ${2.5*F}h `+2*F+`a ${2.5*F} ${2.5*F}, 0, 0, 0, ${2.5*F} ${2.5*-F}v `+-2*F+`a ${2.5*F} ${2.5*F}, 0, 0, 0, ${2.5*-F} ${2.5*-F}h `+-2*F+`a ${2.5*F} ${2.5*F}, 0, 0, 0, ${2.5*-F} ${2.5*F}M ${Z+2.5*F} ${J+F}h `+2*F+`a ${1.5*F} ${1.5*F}, 0, 0, 1, ${1.5*F} ${1.5*F}v `+2*F+`a ${1.5*F} ${1.5*F}, 0, 0, 1, ${1.5*-F} ${1.5*F}h `+-2*F+`a ${1.5*F} ${1.5*F}, 0, 0, 1, ${1.5*-F} ${1.5*-F}v `+-2*F+`a ${1.5*F} ${1.5*F}, 0, 0, 1, ${1.5*F} ${1.5*-F}`)}}))}_drawDot({x:M,y:j,size:Z,rotation:J}){this._basicDot({x:M,y:j,size:Z,rotation:J})}_drawSquare({x:M,y:j,size:Z,rotation:J}){this._basicSquare({x:M,y:j,size:Z,rotation:J})}_drawExtraRounded({x:M,y:j,size:Z,rotation:J}){this._basicExtraRounded({x:M,y:j,size:Z,rotation:J})}}const E={dot:"dot",square:"square"},_=Object.values(E);class v{constructor({svg:M,type:j,window:Z}){this._svg=M,this._type=j,this._window=Z}draw(M,j,Z,J){let F;F=this._type===E.square?this._drawSquare:this._drawDot,F.call(this,{x:M,y:j,size:Z,rotation:J})}_rotateFigure({x:M,y:j,size:Z,rotation:J=0,draw:F}){var ie;const pe=M+Z/2,se=j+Z/2;F(),(ie=this._element)===null||ie===void 0||ie.setAttribute("transform",`rotate(${180*J/Math.PI},${pe},${se})`)}_basicDot(M){const{size:j,x:Z,y:J}=M;this._rotateFigure(Object.assign(Object.assign({},M),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(Z+j/2)),this._element.setAttribute("cy",String(J+j/2)),this._element.setAttribute("r",String(j/2))}}))}_basicSquare(M){const{size:j,x:Z,y:J}=M;this._rotateFigure(Object.assign(Object.assign({},M),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(Z)),this._element.setAttribute("y",String(J)),this._element.setAttribute("width",String(j)),this._element.setAttribute("height",String(j))}}))}_drawDot({x:M,y:j,size:Z,rotation:J}){this._basicDot({x:M,y:j,size:Z,rotation:J})}_drawSquare({x:M,y:j,size:Z,rotation:J}){this._basicSquare({x:M,y:j,size:Z,rotation:J})}}const m="circle",b=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],S=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class x{constructor(M,j){this._roundSize=Z=>this._options.dotsOptions.roundSize?Math.floor(Z):Z,this._window=j,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(M.width)),this._element.setAttribute("height",String(M.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),M.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${M.width} ${M.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=M.image,this._instanceId=x.instanceCount++,this._options=M}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(M){const j=M.getModuleCount(),Z=Math.min(this._options.width,this._options.height)-2*this._options.margin,J=this._options.shape===m?Z/Math.sqrt(2):Z,F=this._roundSize(J/j);let ie={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=M,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:pe,qrOptions:se}=this._options,ye=pe.imageSize*g[se.errorCorrectionLevel],fe=Math.floor(ye*j*j);ie=function({originalHeight:ue,originalWidth:he,maxHiddenDots:$,maxHiddenAxisDots:Y,dotSize:Q}){const K={x:0,y:0},te={x:0,y:0};if(ue<=0||he<=0||$<=0||Q<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const q=ue/he;return K.x=Math.floor(Math.sqrt($/q)),K.x<=0&&(K.x=1),Y&&Y<K.x&&(K.x=Y),K.x%2==0&&K.x--,te.x=K.x*Q,K.y=1+2*Math.ceil((K.x*q-1)/2),te.y=Math.round(te.x*q),(K.y*K.x>$||Y&&Y<K.y)&&(Y&&Y<K.y?(K.y=Y,K.y%2==0&&K.x--):K.y-=2,te.y=K.y*Q,K.x=1+2*Math.ceil((K.y/q-1)/2),te.x=Math.round(te.y/q)),{height:te.y,width:te.x,hideYDots:K.y,hideXDots:K.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:fe,maxHiddenAxisDots:j-14,dotSize:F})}this.drawBackground(),this.drawDots((pe,se)=>{var ye,fe,ue,he,$,Y;return!(this._options.imageOptions.hideBackgroundDots&&pe>=(j-ie.hideYDots)/2&&pe<(j+ie.hideYDots)/2&&se>=(j-ie.hideXDots)/2&&se<(j+ie.hideXDots)/2||((ye=b[pe])===null||ye===void 0?void 0:ye[se])||((fe=b[pe-j+7])===null||fe===void 0?void 0:fe[se])||((ue=b[pe])===null||ue===void 0?void 0:ue[se-j+7])||((he=S[pe])===null||he===void 0?void 0:he[se])||(($=S[pe-j+7])===null||$===void 0?void 0:$[se])||((Y=S[pe])===null||Y===void 0?void 0:Y[se-j+7]))}),this.drawCorners(),this._options.image&&await this.drawImage({width:ie.width,height:ie.height,count:j,dotSize:F})}drawBackground(){var M,j,Z;const J=this._element,F=this._options;if(J){const ie=(M=F.backgroundOptions)===null||M===void 0?void 0:M.gradient,pe=(j=F.backgroundOptions)===null||j===void 0?void 0:j.color;let se=F.height,ye=F.width;if(ie||pe){const fe=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((Z=F.backgroundOptions)===null||Z===void 0)&&Z.round&&(se=ye=Math.min(F.width,F.height),fe.setAttribute("rx",String(se/2*F.backgroundOptions.round))),fe.setAttribute("x",String(this._roundSize((F.width-ye)/2))),fe.setAttribute("y",String(this._roundSize((F.height-se)/2))),fe.setAttribute("width",String(ye)),fe.setAttribute("height",String(se)),this._backgroundClipPath.appendChild(fe),this._createColor({options:ie,color:pe,additionalRotation:0,x:0,y:0,height:F.height,width:F.width,name:`background-color-${this._instanceId}`})}}}drawDots(M){var j,Z;if(!this._qr)throw"QR code is not defined";const J=this._options,F=this._qr.getModuleCount();if(F>J.width||F>J.height)throw"The canvas is too small.";const ie=Math.min(J.width,J.height)-2*J.margin,pe=J.shape===m?ie/Math.sqrt(2):ie,se=this._roundSize(pe/F),ye=this._roundSize((J.width-F*se)/2),fe=this._roundSize((J.height-F*se)/2),ue=new y({svg:this._element,type:J.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(j=J.dotsOptions)===null||j===void 0?void 0:j.gradient,color:J.dotsOptions.color,additionalRotation:0,x:0,y:0,height:J.height,width:J.width,name:`dot-color-${this._instanceId}`});for(let he=0;he<F;he++)for(let $=0;$<F;$++)M&&!M(he,$)||!((Z=this._qr)===null||Z===void 0)&&Z.isDark(he,$)&&(ue.draw(ye+$*se,fe+he*se,se,(Y,Q)=>!($+Y<0||he+Q<0||$+Y>=F||he+Q>=F)&&!(M&&!M(he+Q,$+Y))&&!!this._qr&&this._qr.isDark(he+Q,$+Y)),ue._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(ue._element));if(J.shape===m){const he=this._roundSize((ie/se-F)/2),$=F+2*he,Y=ye-he*se,Q=fe-he*se,K=[],te=this._roundSize($/2);for(let q=0;q<$;q++){K[q]=[];for(let oe=0;oe<$;oe++)q>=he-1&&q<=$-he&&oe>=he-1&&oe<=$-he||Math.sqrt((q-te)*(q-te)+(oe-te)*(oe-te))>te?K[q][oe]=0:K[q][oe]=this._qr.isDark(oe-2*he<0?oe:oe>=F?oe-2*he:oe-he,q-2*he<0?q:q>=F?q-2*he:q-he)?1:0}for(let q=0;q<$;q++)for(let oe=0;oe<$;oe++)K[q][oe]&&(ue.draw(Y+oe*se,Q+q*se,se,(de,Ee)=>{var Se;return!!(!((Se=K[q+Ee])===null||Se===void 0)&&Se[oe+de])}),ue._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(ue._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const M=this._element,j=this._options;if(!M)throw"Element code is not defined";const Z=this._qr.getModuleCount(),J=Math.min(j.width,j.height)-2*j.margin,F=j.shape===m?J/Math.sqrt(2):J,ie=this._roundSize(F/Z),pe=7*ie,se=3*ie,ye=this._roundSize((j.width-Z*ie)/2),fe=this._roundSize((j.height-Z*ie)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([ue,he,$])=>{var Y,Q,K,te,q,oe,de,Ee,Se,ke,qe,Re,ge,Ae;const le=ye+ue*ie*(Z-7),we=fe+he*ie*(Z-7);let Ie=this._dotsClipPath,je=this._dotsClipPath;if((((Y=j.cornersSquareOptions)===null||Y===void 0?void 0:Y.gradient)||((Q=j.cornersSquareOptions)===null||Q===void 0?void 0:Q.color))&&(Ie=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Ie.setAttribute("id",`clip-path-corners-square-color-${ue}-${he}-${this._instanceId}`),this._defs.appendChild(Ie),this._cornersSquareClipPath=this._cornersDotClipPath=je=Ie,this._createColor({options:(K=j.cornersSquareOptions)===null||K===void 0?void 0:K.gradient,color:(te=j.cornersSquareOptions)===null||te===void 0?void 0:te.color,additionalRotation:$,x:le,y:we,height:pe,width:pe,name:`corners-square-color-${ue}-${he}-${this._instanceId}`})),((q=j.cornersSquareOptions)===null||q===void 0?void 0:q.type)&&w.includes(j.cornersSquareOptions.type)){const ct=new A({svg:this._element,type:j.cornersSquareOptions.type,window:this._window});ct.draw(le,we,pe,$),ct._element&&Ie&&Ie.appendChild(ct._element)}else{const ct=new y({svg:this._element,type:((oe=j.cornersSquareOptions)===null||oe===void 0?void 0:oe.type)||j.dotsOptions.type,window:this._window});for(let rt=0;rt<b.length;rt++)for(let Fe=0;Fe<b[rt].length;Fe++)!((de=b[rt])===null||de===void 0)&&de[Fe]&&(ct.draw(le+Fe*ie,we+rt*ie,ie,(Ct,Ze)=>{var Oe;return!!(!((Oe=b[rt+Ze])===null||Oe===void 0)&&Oe[Fe+Ct])}),ct._element&&Ie&&Ie.appendChild(ct._element))}if((((Ee=j.cornersDotOptions)===null||Ee===void 0?void 0:Ee.gradient)||((Se=j.cornersDotOptions)===null||Se===void 0?void 0:Se.color))&&(je=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),je.setAttribute("id",`clip-path-corners-dot-color-${ue}-${he}-${this._instanceId}`),this._defs.appendChild(je),this._cornersDotClipPath=je,this._createColor({options:(ke=j.cornersDotOptions)===null||ke===void 0?void 0:ke.gradient,color:(qe=j.cornersDotOptions)===null||qe===void 0?void 0:qe.color,additionalRotation:$,x:le+2*ie,y:we+2*ie,height:se,width:se,name:`corners-dot-color-${ue}-${he}-${this._instanceId}`})),((Re=j.cornersDotOptions)===null||Re===void 0?void 0:Re.type)&&_.includes(j.cornersDotOptions.type)){const ct=new v({svg:this._element,type:j.cornersDotOptions.type,window:this._window});ct.draw(le+2*ie,we+2*ie,se,$),ct._element&&je&&je.appendChild(ct._element)}else{const ct=new y({svg:this._element,type:((ge=j.cornersDotOptions)===null||ge===void 0?void 0:ge.type)||j.dotsOptions.type,window:this._window});for(let rt=0;rt<S.length;rt++)for(let Fe=0;Fe<S[rt].length;Fe++)!((Ae=S[rt])===null||Ae===void 0)&&Ae[Fe]&&(ct.draw(le+Fe*ie,we+rt*ie,ie,(Ct,Ze)=>{var Oe;return!!(!((Oe=S[rt+Ze])===null||Oe===void 0)&&Oe[Fe+Ct])}),ct._element&&je&&je.appendChild(ct._element))}})}loadImage(){return new Promise((M,j)=>{var Z;const J=this._options;if(!J.image)return j("Image is not defined");if(!((Z=J.nodeCanvas)===null||Z===void 0)&&Z.loadImage)J.nodeCanvas.loadImage(J.image).then(F=>{var ie,pe;if(this._image=F,this._options.imageOptions.saveAsBlob){const se=(ie=J.nodeCanvas)===null||ie===void 0?void 0:ie.createCanvas(this._image.width,this._image.height);(pe=se==null?void 0:se.getContext("2d"))===null||pe===void 0||pe.drawImage(F,0,0),this._imageUri=se==null?void 0:se.toDataURL()}M()}).catch(j);else{const F=new this._window.Image;typeof J.imageOptions.crossOrigin=="string"&&(F.crossOrigin=J.imageOptions.crossOrigin),this._image=F,F.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(ie,pe){return new Promise(se=>{const ye=new pe.XMLHttpRequest;ye.onload=function(){const fe=new pe.FileReader;fe.onloadend=function(){se(fe.result)},fe.readAsDataURL(ye.response)},ye.open("GET",ie),ye.responseType="blob",ye.send()})}(J.image||"",this._window)),M()},F.src=J.image}})}async drawImage({width:M,height:j,count:Z,dotSize:J}){const F=this._options,ie=this._roundSize((F.width-Z*J)/2),pe=this._roundSize((F.height-Z*J)/2),se=ie+this._roundSize(F.imageOptions.margin+(Z*J-M)/2),ye=pe+this._roundSize(F.imageOptions.margin+(Z*J-j)/2),fe=M-2*F.imageOptions.margin,ue=j-2*F.imageOptions.margin,he=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");he.setAttribute("href",this._imageUri||""),he.setAttribute("x",String(se)),he.setAttribute("y",String(ye)),he.setAttribute("width",`${fe}px`),he.setAttribute("height",`${ue}px`),this._element.appendChild(he)}_createColor({options:M,color:j,additionalRotation:Z,x:J,y:F,height:ie,width:pe,name:se}){const ye=pe>ie?pe:ie,fe=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(fe.setAttribute("x",String(J)),fe.setAttribute("y",String(F)),fe.setAttribute("height",String(ie)),fe.setAttribute("width",String(pe)),fe.setAttribute("clip-path",`url('#clip-path-${se}')`),M){let ue;if(M.type==="radial")ue=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),ue.setAttribute("id",se),ue.setAttribute("gradientUnits","userSpaceOnUse"),ue.setAttribute("fx",String(J+pe/2)),ue.setAttribute("fy",String(F+ie/2)),ue.setAttribute("cx",String(J+pe/2)),ue.setAttribute("cy",String(F+ie/2)),ue.setAttribute("r",String(ye/2));else{const he=((M.rotation||0)+Z)%(2*Math.PI),$=(he+2*Math.PI)%(2*Math.PI);let Y=J+pe/2,Q=F+ie/2,K=J+pe/2,te=F+ie/2;$>=0&&$<=.25*Math.PI||$>1.75*Math.PI&&$<=2*Math.PI?(Y-=pe/2,Q-=ie/2*Math.tan(he),K+=pe/2,te+=ie/2*Math.tan(he)):$>.25*Math.PI&&$<=.75*Math.PI?(Q-=ie/2,Y-=pe/2/Math.tan(he),te+=ie/2,K+=pe/2/Math.tan(he)):$>.75*Math.PI&&$<=1.25*Math.PI?(Y+=pe/2,Q+=ie/2*Math.tan(he),K-=pe/2,te-=ie/2*Math.tan(he)):$>1.25*Math.PI&&$<=1.75*Math.PI&&(Q+=ie/2,Y+=pe/2/Math.tan(he),te-=ie/2,K-=pe/2/Math.tan(he)),ue=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),ue.setAttribute("id",se),ue.setAttribute("gradientUnits","userSpaceOnUse"),ue.setAttribute("x1",String(Math.round(Y))),ue.setAttribute("y1",String(Math.round(Q))),ue.setAttribute("x2",String(Math.round(K))),ue.setAttribute("y2",String(Math.round(te)))}M.colorStops.forEach(({offset:he,color:$})=>{const Y=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");Y.setAttribute("offset",100*he+"%"),Y.setAttribute("stop-color",$),ue.appendChild(Y)}),fe.setAttribute("fill",`url('#${se}')`),this._defs.appendChild(ue)}else j&&fe.setAttribute("fill",j);this._element.appendChild(fe)}}x.instanceCount=0;const O=x,D="canvas",R={};for(let k=0;k<=40;k++)R[k]=k;const I={type:D,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:R[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function z(k){const M=Object.assign({},k);if(!M.colorStops||!M.colorStops.length)throw"Field 'colorStops' is required in gradient";return M.rotation?M.rotation=Number(M.rotation):M.rotation=0,M.colorStops=M.colorStops.map(j=>Object.assign(Object.assign({},j),{offset:Number(j.offset)})),M}function T(k){const M=Object.assign({},k);return M.width=Number(M.width),M.height=Number(M.height),M.margin=Number(M.margin),M.imageOptions=Object.assign(Object.assign({},M.imageOptions),{hideBackgroundDots:Boolean(M.imageOptions.hideBackgroundDots),imageSize:Number(M.imageOptions.imageSize),margin:Number(M.imageOptions.margin)}),M.margin>Math.min(M.width,M.height)&&(M.margin=Math.min(M.width,M.height)),M.dotsOptions=Object.assign({},M.dotsOptions),M.dotsOptions.gradient&&(M.dotsOptions.gradient=z(M.dotsOptions.gradient)),M.cornersSquareOptions&&(M.cornersSquareOptions=Object.assign({},M.cornersSquareOptions),M.cornersSquareOptions.gradient&&(M.cornersSquareOptions.gradient=z(M.cornersSquareOptions.gradient))),M.cornersDotOptions&&(M.cornersDotOptions=Object.assign({},M.cornersDotOptions),M.cornersDotOptions.gradient&&(M.cornersDotOptions.gradient=z(M.cornersDotOptions.gradient))),M.backgroundOptions&&(M.backgroundOptions=Object.assign({},M.backgroundOptions),M.backgroundOptions.gradient&&(M.backgroundOptions.gradient=z(M.backgroundOptions.gradient))),M}var B=o(873),L=o.n(B);function U(k){if(!k)throw new Error("Extension must be defined");k[0]==="."&&(k=k.substring(1));const M={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[k.toLowerCase()];if(!M)throw new Error(`Extension "${k}" is not supported`);return M}class W{constructor(M){M!=null&&M.jsdom?this._window=new M.jsdom("",{resources:"usable"}).window:this._window=window,this._options=M?T(c(I,M)):I,this.update()}static _clearContainer(M){M&&(M.innerHTML="")}_setupSvg(){if(!this._qr)return;const M=new O(this._options,this._window);this._svg=M.getElement(),this._svgDrawingPromise=M.drawQR(this._qr).then(()=>{var j;this._svg&&((j=this._extension)===null||j===void 0||j.call(this,M.getElement(),this._options))})}_setupCanvas(){var M,j;this._qr&&(!((M=this._options.nodeCanvas)===null||M===void 0)&&M.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(j=this._svgDrawingPromise)===null||j===void 0?void 0:j.then(()=>{var Z;if(!this._svg)return;const J=this._svg,F=new this._window.XMLSerializer().serializeToString(J),ie=btoa(F),pe=`data:${U("svg")};base64,${ie}`;if(!((Z=this._options.nodeCanvas)===null||Z===void 0)&&Z.loadImage)return this._options.nodeCanvas.loadImage(pe).then(se=>{var ye,fe;se.width=this._options.width,se.height=this._options.height,(fe=(ye=this._nodeCanvas)===null||ye===void 0?void 0:ye.getContext("2d"))===null||fe===void 0||fe.drawImage(se,0,0)});{const se=new this._window.Image;return new Promise(ye=>{se.onload=()=>{var fe,ue;(ue=(fe=this._domCanvas)===null||fe===void 0?void 0:fe.getContext("2d"))===null||ue===void 0||ue.drawImage(se,0,0),ye()},se.src=pe})}}))}async _getElement(M="png"){if(!this._qr)throw"QR code is empty";return M.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(M){W._clearContainer(this._container),this._options=M?T(c(this._options,M)):this._options,this._options.data&&(this._qr=L()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(j){switch(!0){case/^[0-9]*$/.test(j):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(j):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===D?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(M){if(M){if(typeof M.appendChild!="function")throw"Container should be a single DOM node";this._options.type===D?this._domCanvas&&M.appendChild(this._domCanvas):this._svg&&M.appendChild(this._svg),this._container=M}}applyExtension(M){if(!M)throw"Extension function should be defined.";this._extension=M,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(M="png"){if(!this._qr)throw"QR code is empty";const j=await this._getElement(M),Z=U(M);if(!j)return null;if(M.toLowerCase()==="svg"){const J=`<?xml version="1.0" standalone="no"?>\r
${new this._window.XMLSerializer().serializeToString(j)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(J):new Blob([J],{type:Z})}return new Promise(J=>{const F=j;if("toBuffer"in F)if(Z==="image/png")J(F.toBuffer(Z));else if(Z==="image/jpeg")J(F.toBuffer(Z));else{if(Z!=="application/pdf")throw Error("Unsupported extension");J(F.toBuffer(Z))}else"toBlob"in F&&F.toBlob(J,Z,1)})}async download(M){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let j="png",Z="qr";typeof M=="string"?(j=M,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof M=="object"&&M!==null&&(M.name&&(Z=M.name),M.extension&&(j=M.extension));const J=await this._getElement(j);if(J)if(j.toLowerCase()==="svg"){let F=new XMLSerializer().serializeToString(J);F=`<?xml version="1.0" standalone="no"?>\r
`+F,u(`data:${U(j)};charset=utf-8,${encodeURIComponent(F)}`,`${Z}.svg`)}else u(J.toDataURL(U(j)),`${Z}.${j}`)}}const V=W})(),s.default})())})(sh);const Fx=EC(sh.exports),Px=n.defineComponent({name:"QrCodeBox",data(){return{qrcode:null}},props:{data:String,image:String,width:Number,height:Number,circleType:String,circleColor:String},methods:{},computed:{},components:{},watch:{$props:{handler(){const e={dotsOptions:{}};Object.keys(this.$props).forEach(t=>{this.$props[t]!=null&&this.$props[t]!==""&&(e[t]=this.$props[t])}),delete e.formCreateInject,e.circleType&&(e.dotsOptions.type=e.circleType),e.circleColor&&(e.dotsOptions.color=e.circleColor),delete e.circleColor,delete e.circleType,this.$nextTick(()=>{this.qrcode?this.qrcode.update(e):(this.qrcode=n.markRaw(new Fx(e)),this.qrcode.append(this.$refs.qr))})},deep:!0,immediate:!0}}}),Mx={class:"_fc-qrcode",ref:"qr"};function Lx(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",Mx,null,512)}const dh=Ne(Px,[["render",Lx]]),KL="",YL="",ch={date:"YYYY-MM-DD",month:"YYYY-MM",week:"YYYY-wo",quarter:"YYYY-qQ",year:"YYYY"};function jx(e){return e/20+"em"}const uh=function(e,t,i){return t.forEach(r=>{e.indexOf(r[i||"id"])>-1&&e.splice(e.indexOf(r[i||"id"]),1,r.label||r.text),at.trueArray(r.children)&&uh(e,r.children,i)}),e},zx=function(e,t){return t.forEach(i=>{e.indexOf(i.value)>-1&&(e[e.indexOf(i.value)]=i.label||i.text)}),e};function fc(e){if(e){if(!Array.isArray(e))return[e]}else return[];return e}function fh(e){Object.keys(ko).forEach(t=>{e.setFormula(t,ko[t])}),_d(e),e.register("behavior",Qf),e.register("easySlots",br),e.setDriver("antd",{defaultPreview(t,i){let r=t.rule.value;const o=t.$render.vNode.h,s=t.type,d=t.$handle.subForm[t.id],c=t.prop.readMode;if(c===!1||c==="custom"||!t.input||t.rule.subForm||(Array.isArray(d)?d.length:d)||["fcGroup","fcSubForm","tableForm","stepForm","nestedTableForm","infiniteTableForm","upload"].indexOf(t.trueType)>-1)return t.parser.render(i,t);if(["radio","select","checkbox"].indexOf(s)>-1)r=zx([...fc(r)],t.prop.props.options||t.prop.props.formCreateInject.options||[]).join(", ");else if(["timePicker","datePicker","slider"].indexOf(s)>-1)r=Array.isArray(r)?r.join(" - "):r;else if(s==="cascader")r=[...fc(r)],Array.isArray(r[0])||(r=[r]),r=r.map(u=>uh(u,t.prop.props.options||t.prop.props.formCreateInject.options||[],"value").join("/")).join(", ");else{if(s==="fcEditor"||c==="html")return o("div",{innerHTML:r});if(s==="uploader"||c==="image")return r=fc(r),o("div",{class:"_fc-upload"},r.map(function(u){return o("div",{class:"_fc-upload-preview"},[o("van-image",{src:u,fit:"cover"})])}));if(s==="signaturePad"&&r)return o("van-image",{src:r,fit:"cover",style:{height:"90px"}});(typeof r=="boolean"||s==="switch")&&(r=r?"\u662F":"\u5426")}return o("span",{class:"_fc-read-view"},[""+(r==null?"":r)])},updateWrap(t){var r,o;let i=(o=(r=t.prop)==null?void 0:r.wrap)==null?void 0:o.style;t.prop.col&&t.prop.col.span&&(t.prop.col.span=24),i&&(i=Array.isArray(i)?i:[i],i.forEach(s=>{delete s.marginBottom}))},updateOptions(t){var r,o,s,d,c;const i=(s=(o=(r=t==null?void 0:t.form)==null?void 0:r.labelCol)==null?void 0:o.style)==null?void 0:s.width;i&&i.indexOf("px")>-1&&(t.form.labelWidth=jx(parseInt(i))),((d=t.form)==null?void 0:d.layout)==="vertical"&&(t.form.labelAlign="top"),(c=t.form)!=null&&c.hideRequiredAsterisk&&(t.form.colon=t.form.hideRequiredAsterisk,delete t.form.hideRequiredAsterisk),delete t.form.labelCol,delete t.form.layout},parsers:{inputNumber:{mergeProp(t){t.prop.component="vanStepper";const i=t.prop.props;i.decimalLength=i.precision,i.integer=i.precision===0,delete i.precision}},radio:{mergeProp(t){t.prop.options&&(t.prop.props.options=t.prop.options)}},checkbox:{mergeProp(t){t.prop.options&&(t.prop.props.options=t.prop.options)}},select:{mergeProp(t){if(["tags","multiple"].indexOf(t.prop.props.mode)>-1){t.prop.component="aSelect";const i=t.prop.props;i.bordered=!1,In(i,"options")||(i.options=t.prop.options||[])}else t.prop.options&&(t.prop.props.options=t.prop.options),t.prop.props.options=(t.prop.props.options||[]).map(i=>({text:i.label,value:i.value}))}},switch:{mergeProp(t){const i=t.prop.props;i.activeValue=i.checkedValue,i.inactiveValue=i.unCheckedValue,delete i.checkedValue,delete i.unCheckedValue}},timePicker:{mergeProp(t){const i=t.prop.props;t.prop.component=i.range?"aTimeRangePicker":"aTimePicker",i.bordered=!1,i.valueFormat||(i.valueFormat="HH:mm:ss")}},rate:{mergeProp(t){t.prop.props.clearable=t.prop.props.allowClear,delete t.prop.props.allowClear}},datePicker:{mergeProp(t){t.prop.component="aDatePicker";const i=t.prop.props;i.bordered=!1,i.valueFormat||(i.valueFormat=ch[i.type]||ch.date)}},cascader:{mergeProp(t){t.prop.component="aCascader",t.prop.props.bordered=!1}},aDivider:{mergeProp(t){t.prop.component="vanDivider"}},upload:{mergeProp(t){t.prop.component=Yb}},tree:{modelField:"checkedKeys",mergeProp(t){t.prop.component="a-tree";const i=t.prop.props;i.fieldNames?i.fieldNames.key||(i.fieldNames.key="id"):i.fieldNames={key:"id"},i.checkedKeys=t.rule.value,i.checkable=!0}},aTreeSelect:{mergeProp(t){t.prop.props.bordered=!1}},row:{mergeProp(t){t.prop.component="vanRow"}},col:{mergeProp(t){t.prop.component="vanCol",t.prop.props.xxs&&(t.prop.props={...t.prop.props,...t.prop.props.xxs})}},fcDialog:{mergeProp(t){t.prop.component="FcPopup"}},fcDrawer:{mergeProp(t){t.prop.component="FcPopup"}}}})}fh(At.default),At.default.component("FcSlot",cp),At.default.component("FcJson",up),At.default.component("StepForm",Zb),At.default.component("FcPopup",iC),At.default.component("FcTable",ip),At.default.component("FcCell",sp),At.default.component("FcInlineForm",fp),At.default.component("TableForm",rp),At.default.component("NestedTableForm",lp),At.default.component("InfiniteTableForm",ap),At.default.component("DataTable",op),At.default.component("FcValue",dp),At.default.component("AudioBox",bp),At.default.component("VideoBox",lh),At.default.component("BarCodeBox",ah),At.default.component("IframeBox",Cp),At.default.component("QrCodeBox",dh),At.default.component("SignaturePad",RC),At.default.component("FcEcharts",mp),At.default.component("FcTitle",yp),At.default.component("FcId",vp),At.default.loadjs=Mn;const QL="",Hx=n.defineComponent({name:"StepFormView",props:{stepsProps:Object,formCreateInject:Object},provide(){return{stepForm:this}},inject:["designer"],data(){return{active:void 0,activeId:void 0,stepItemRef:[],activeRef:void 0}},watch:{"stepItemRef.length"(){(!this.active||this.formCreateInject.children.indexOf(this.activeRef)===-1)&&(this.active=this.formCreateInject.children.length>0?0:-1)},active(e){this.activeRef=this.formCreateInject.children[e],this.activeId=this.activeRef?this.activeRef._fc_id:null}},methods:{onPrev(){this.active--,this.triggerActive()},onNext(){this.active++,this.triggerActive()},change(e){this.active=e,this.triggerActive()},triggerActive(){this.$nextTick(()=>{this.designer.setupState.triggerActive(this.activeRef)})}},created(){this.$watch(()=>[...this.formCreateInject.children],()=>{this.activeRef&&(this.active=this.formCreateInject.children.indexOf(this.activeRef))})}}),Ux={class:"_fd-step-form"};function Wx(e,t,i,r,o,s){const d=n.resolveComponent("van-step"),c=n.resolveComponent("van-steps"),u=n.resolveComponent("van-button"),g=n.resolveComponent("van-col"),y=n.resolveComponent("van-row");return n.openBlock(),n.createElementBlock("div",Ux,[n.createVNode(c,n.mergeProps({active:e.active},e.stepsProps),{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.stepItemRef,(C,w)=>(n.openBlock(),n.createBlock(d,{key:C.id,onClick:n.withModifiers(A=>e.change(w),["stop"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(C.title),1)]),_:2},1032,["onClick"]))),128))]),_:1},16,["active"]),n.renderSlot(e.$slots,"default"),n.createVNode(y,null,{default:n.withCtx(()=>[n.createVNode(g,{span:24,style:{display:"flex","justify-content":"flex-end",padding:"15px"}},{default:n.withCtx(()=>[e.active>0?(n.openBlock(),n.createBlock(u,{key:0,block:"",size:"small",onClick:n.withModifiers(e.onPrev,["stop"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("prevStep")||"\u4E0A\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.active<e.stepItemRef.length-1?(n.openBlock(),n.createBlock(u,{key:1,block:"",size:"small",type:"primary",onClick:n.withModifiers(e.onNext,["stop"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("nextStep")||"\u4E0B\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0)]),_:1})]),_:1})])}const ph=Ne(Hx,[["render",Wx]]),XL="",Gx=n.defineComponent({name:"StepFormItemView",props:{title:String,description:String,formCreateInject:Object},inject:["stepForm"],data(){return{}},created(){const e=this.stepForm.formCreateInject.children.indexOf(this.formCreateInject.rule);this.stepForm.stepItemRef.splice(e,0,this)},unmounted(){this.stepForm.stepItemRef.splice(this.stepForm.stepItemRef.indexOf(this),1)},methods:{}}),Kx={class:"_fd-step-form-item"};function Yx(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",Kx,[n.withDirectives(n.createElementVNode("div",null,[n.renderSlot(e.$slots,"default")],512),[[n.vShow,e.stepForm.activeId===e.formCreateInject.rule._fc_id]])])}const hh=Ne(Gx,[["render",Yx]]),JL="",Qx=n.defineComponent({name:"FcPopup",inject:["designer"],inheritAttrs:!1,props:{title:String,footer:{type:Boolean,default:!0}},computed:{dragConHeight(){return this.designer.setupState.dragConHeight},t(){return this.designer.setupState.t}}}),Xx={class:"_fd-popup-title"},Jx={class:"_fd-popup-content"},Zx={class:"_fd-popup-footer"};function qx(e,t,i,r,o,s){const d=n.resolveComponent("van-button");return n.openBlock(),n.createElementBlock("div",{class:"van-popup van-popup--bottom _fd-popup",style:n.normalizeStyle(`--fc-dialog-height:${e.dragConHeight-23}px;`)},[t[0]||(t[0]=n.createElementVNode("i",{class:"van-badge__wrapper van-icon van-icon-cross van-popup__close-icon van-popup__close-icon--top-right van-haptics-feedback"},null,-1)),n.createElementVNode("div",Xx,n.toDisplayString(e.title),1),n.createElementVNode("div",Jx,[n.renderSlot(e.$slots,"default")]),n.createElementVNode("div",Zx,[e.footer!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(d,{block:"",size:"small",type:"primary",class:"fc-clock"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1}),n.createVNode(d,{block:"",size:"small",class:"fc-clock",style:{"margin-top":"10px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.close")),1)]),_:1})],64)):n.createCommentVNode("",!0)])],4)}const pc=Ne(Qx,[["render",qx]]),ek=At.default,Oi=At.default.factory();fh(Oi),Oi.setDriver("antd",{parsers:{stepForm:{mergeProp(e){e.prop.component=ph}},stepFormItem:{mergeProp(e){e.prop.component=hh}},fcDialog:{mergeProp(e){e.prop.component=pc}},fcDrawer:{mergeProp(e){e.prop.component=pc}}}}),Oi.component("MStepForm",ph),Oi.component("MStepFormItemView",hh),Oi.component("PopupView",pc);let mh=null,el=n.ref(null);function tl(...e){return mh(...e)}const gh=e=>{el.value=e||zu;const t=is(el);return mh=t.t,t};gh();const ZL="",qL="";var hc={exports:{}},vh;function Di(){return vh||(vh=1,function(e,t){(function(i,r){e.exports=r()})(Ed,function(){var i=navigator.userAgent,r=navigator.platform,o=/gecko\/\d/i.test(i),s=/MSIE \d/.test(i),d=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),c=/Edge\/(\d+)/.exec(i),u=s||d||c,g=u&&(s?document.documentMode||6:+(c||d)[1]),y=!c&&/WebKit\//.test(i),C=y&&/Qt\/\d+\.\d+/.test(i),w=!c&&/Chrome\/(\d+)/.exec(i),A=w&&+w[1],E=/Opera\//.test(i),_=/Apple Computer/.test(navigator.vendor),v=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),m=/PhantomJS/.test(i),b=_&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),S=/Android/.test(i),x=b||S||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),O=b||/Mac/.test(r),D=/\bCrOS\b/.test(i),R=/win/i.test(r),I=E&&i.match(/Version\/(\d*\.\d*)/);I&&(I=Number(I[1])),I&&I>=15&&(E=!1,y=!0);var z=O&&(C||E&&(I==null||I<12.11)),T=o||u&&g>=9;function B(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var L=function(a,l){var p=a.className,f=B(l).exec(p);if(f){var h=p.slice(f.index+f[0].length);a.className=p.slice(0,f.index)+(h?f[1]+h:"")}};function U(a){for(var l=a.childNodes.length;l>0;--l)a.removeChild(a.firstChild);return a}function W(a,l){return U(a).appendChild(l)}function V(a,l,p,f){var h=document.createElement(a);if(p&&(h.className=p),f&&(h.style.cssText=f),typeof l=="string")h.appendChild(document.createTextNode(l));else if(l)for(var N=0;N<l.length;++N)h.appendChild(l[N]);return h}function k(a,l,p,f){var h=V(a,l,p,f);return h.setAttribute("role","presentation"),h}var M;document.createRange?M=function(a,l,p,f){var h=document.createRange();return h.setEnd(f||a,p),h.setStart(a,l),h}:M=function(a,l,p){var f=document.body.createTextRange();try{f.moveToElementText(a.parentNode)}catch{return f}return f.collapse(!0),f.moveEnd("character",p),f.moveStart("character",l),f};function j(a,l){if(l.nodeType==3&&(l=l.parentNode),a.contains)return a.contains(l);do if(l.nodeType==11&&(l=l.host),l==a)return!0;while(l=l.parentNode)}function Z(a){var l;try{l=a.activeElement}catch{l=a.body||null}for(;l&&l.shadowRoot&&l.shadowRoot.activeElement;)l=l.shadowRoot.activeElement;return l}function J(a,l){var p=a.className;B(l).test(p)||(a.className+=(p?" ":"")+l)}function F(a,l){for(var p=a.split(" "),f=0;f<p.length;f++)p[f]&&!B(p[f]).test(l)&&(l+=" "+p[f]);return l}var ie=function(a){a.select()};b?ie=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:u&&(ie=function(a){try{a.select()}catch{}});function pe(a){return a.display.wrapper.ownerDocument}function se(a){return pe(a).defaultView}function ye(a){var l=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,l)}}function fe(a,l,p){l||(l={});for(var f in a)a.hasOwnProperty(f)&&(p!==!1||!l.hasOwnProperty(f))&&(l[f]=a[f]);return l}function ue(a,l,p,f,h){l==null&&(l=a.search(/[^\s\u00a0]/),l==-1&&(l=a.length));for(var N=f||0,P=h||0;;){var H=a.indexOf(" ",N);if(H<0||H>=l)return P+(l-N);P+=H-N,P+=p-P%p,N=H+1}}var he=function(){this.id=null,this.f=null,this.time=0,this.handler=ye(this.onTimeout,this)};he.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},he.prototype.set=function(a,l){this.f=l;var p=+new Date+a;(!this.id||p<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=p)};function $(a,l){for(var p=0;p<a.length;++p)if(a[p]==l)return p;return-1}var Y=50,Q={toString:function(){return"CodeMirror.Pass"}},K={scroll:!1},te={origin:"*mouse"},q={origin:"+move"};function oe(a,l,p){for(var f=0,h=0;;){var N=a.indexOf(" ",f);N==-1&&(N=a.length);var P=N-f;if(N==a.length||h+P>=l)return f+Math.min(P,l-h);if(h+=N-f,h+=p-h%p,f=N+1,h>=l)return f}}var de=[""];function Ee(a){for(;de.length<=a;)de.push(Se(de)+" ");return de[a]}function Se(a){return a[a.length-1]}function ke(a,l){for(var p=[],f=0;f<a.length;f++)p[f]=l(a[f],f);return p}function qe(a,l,p){for(var f=0,h=p(l);f<a.length&&p(a[f])<=h;)f++;a.splice(f,0,l)}function Re(){}function ge(a,l){var p;return Object.create?p=Object.create(a):(Re.prototype=a,p=new Re),l&&fe(l,p),p}var Ae=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function le(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||Ae.test(a))}function we(a,l){return l?l.source.indexOf("\\w")>-1&&le(a)?!0:l.test(a):le(a)}function Ie(a){for(var l in a)if(a.hasOwnProperty(l)&&a[l])return!1;return!0}var je=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ct(a){return a.charCodeAt(0)>=768&&je.test(a)}function rt(a,l,p){for(;(p<0?l>0:l<a.length)&&ct(a.charAt(l));)l+=p;return l}function Fe(a,l,p){for(var f=l>p?-1:1;;){if(l==p)return l;var h=(l+p)/2,N=f<0?Math.ceil(h):Math.floor(h);if(N==l)return a(N)?l:p;a(N)?p=N:l=N+f}}function Ct(a,l,p,f){if(!a)return f(l,p,"ltr",0);for(var h=!1,N=0;N<a.length;++N){var P=a[N];(P.from<p&&P.to>l||l==p&&P.to==l)&&(f(Math.max(P.from,l),Math.min(P.to,p),P.level==1?"rtl":"ltr",N),h=!0)}h||f(l,p,"ltr")}var Ze=null;function Oe(a,l,p){var f;Ze=null;for(var h=0;h<a.length;++h){var N=a[h];if(N.from<l&&N.to>l)return h;N.to==l&&(N.from!=N.to&&p=="before"?f=h:Ze=h),N.from==l&&(N.from!=N.to&&p!="before"?f=h:Ze=h)}return f!=null?f:Ze}var Ve=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",l="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function p(X){return X<=247?a.charAt(X):1424<=X&&X<=1524?"R":1536<=X&&X<=1785?l.charAt(X-1536):1774<=X&&X<=2220?"r":8192<=X&&X<=8203?"w":X==8204?"b":"L"}var f=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,h=/[stwN]/,N=/[LRr]/,P=/[Lb1n]/,H=/[1n]/;function G(X,ne,re){this.level=X,this.from=ne,this.to=re}return function(X,ne){var re=ne=="ltr"?"L":"R";if(X.length==0||ne=="ltr"&&!f.test(X))return!1;for(var ve=X.length,me=[],_e=0;_e<ve;++_e)me.push(p(X.charCodeAt(_e)));for(var xe=0,Te=re;xe<ve;++xe){var Be=me[xe];Be=="m"?me[xe]=Te:Te=Be}for(var Le=0,$e=re;Le<ve;++Le){var He=me[Le];He=="1"&&$e=="r"?me[Le]="n":N.test(He)&&($e=He,He=="r"&&(me[Le]="R"))}for(var Je=1,Qe=me[0];Je<ve-1;++Je){var ut=me[Je];ut=="+"&&Qe=="1"&&me[Je+1]=="1"?me[Je]="1":ut==","&&Qe==me[Je+1]&&(Qe=="1"||Qe=="n")&&(me[Je]=Qe),Qe=ut}for(var _t=0;_t<ve;++_t){var Kt=me[_t];if(Kt==",")me[_t]="N";else if(Kt=="%"){var Ot=void 0;for(Ot=_t+1;Ot<ve&&me[Ot]=="%";++Ot);for(var yn=_t&&me[_t-1]=="!"||Ot<ve&&me[Ot]=="1"?"1":"N",dn=_t;dn<Ot;++dn)me[dn]=yn;_t=Ot-1}}for(var Ft=0,cn=re;Ft<ve;++Ft){var Qt=me[Ft];cn=="L"&&Qt=="1"?me[Ft]="L":N.test(Qt)&&(cn=Qt)}for(var jt=0;jt<ve;++jt)if(h.test(me[jt])){var Pt=void 0;for(Pt=jt+1;Pt<ve&&h.test(me[Pt]);++Pt);for(var $t=(jt?me[jt-1]:re)=="L",un=(Pt<ve?me[Pt]:re)=="L",ir=$t==un?$t?"L":"R":re,Uo=jt;Uo<Pt;++Uo)me[Uo]=ir;jt=Pt-1}for(var Zt=[],ro,Yt=0;Yt<ve;)if(P.test(me[Yt])){var Iu=Yt;for(++Yt;Yt<ve&&P.test(me[Yt]);++Yt);Zt.push(new G(0,Iu,Yt))}else{var wo=Yt,si=Zt.length,di=ne=="rtl"?1:0;for(++Yt;Yt<ve&&me[Yt]!="L";++Yt);for(var nn=wo;nn<Yt;)if(H.test(me[nn])){wo<nn&&(Zt.splice(si,0,new G(1,wo,nn)),si+=di);var rr=nn;for(++nn;nn<Yt&&H.test(me[nn]);++nn);Zt.splice(si,0,new G(2,rr,nn)),si+=di,wo=nn}else++nn;wo<Yt&&Zt.splice(si,0,new G(1,wo,Yt))}return ne=="ltr"&&(Zt[0].level==1&&(ro=X.match(/^\s+/))&&(Zt[0].from=ro[0].length,Zt.unshift(new G(0,0,ro[0].length))),Se(Zt).level==1&&(ro=X.match(/\s+$/))&&(Se(Zt).to-=ro[0].length,Zt.push(new G(0,ve-ro[0].length,ve)))),ne=="rtl"?Zt.reverse():Zt}}();function Xe(a,l){var p=a.order;return p==null&&(p=a.order=Ve(a.text,l)),p}var De=[],be=function(a,l,p){if(a.addEventListener)a.addEventListener(l,p,!1);else if(a.attachEvent)a.attachEvent("on"+l,p);else{var f=a._handlers||(a._handlers={});f[l]=(f[l]||De).concat(p)}};function Ke(a,l){return a._handlers&&a._handlers[l]||De}function Ue(a,l,p){if(a.removeEventListener)a.removeEventListener(l,p,!1);else if(a.detachEvent)a.detachEvent("on"+l,p);else{var f=a._handlers,h=f&&f[l];if(h){var N=$(h,p);N>-1&&(f[l]=h.slice(0,N).concat(h.slice(N+1)))}}}function We(a,l){var p=Ke(a,l);if(!!p.length)for(var f=Array.prototype.slice.call(arguments,2),h=0;h<p.length;++h)p[h].apply(null,f)}function lt(a,l,p){return typeof l=="string"&&(l={type:l,preventDefault:function(){this.defaultPrevented=!0}}),We(a,p||l.type,a,l),Do(l)||l.codemirrorIgnore}function rn(a){var l=a._handlers&&a._handlers.cursorActivity;if(!!l)for(var p=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),f=0;f<l.length;++f)$(p,l[f])==-1&&p.push(l[f])}function Tt(a,l){return Ke(a,l).length>0}function wt(a){a.prototype.on=function(l,p){be(this,l,p)},a.prototype.off=function(l,p){Ue(this,l,p)}}function mt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function $n(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Do(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Ln(a){mt(a),$n(a)}function an(a){return a.target||a.srcElement}function Rr(a){var l=a.which;return l==null&&(a.button&1?l=1:a.button&2?l=3:a.button&4&&(l=2)),O&&a.ctrlKey&&l==1&&(l=3),l}var Uc=function(){if(u&&g<9)return!1;var a=V("div");return"draggable"in a||"dragDrop"in a}(),Vn;function Wc(a){if(Vn==null){var l=V("span","\u200B");W(a,V("span",[l,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Vn=l.offsetWidth<=1&&l.offsetHeight>2&&!(u&&g<8))}var p=Vn?V("span","\u200B"):V("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return p.setAttribute("cm-text",""),p}var Pi;function vl(a){if(Pi!=null)return Pi;var l=W(a,document.createTextNode("A\u062EA")),p=M(l,0,1).getBoundingClientRect(),f=M(l,1,2).getBoundingClientRect();return U(a),!p||p.left==p.right?!1:Pi=f.right-p.right<3}var Ir=`
b`.split(/\n/).length!=3?function(a){for(var l=0,p=[],f=a.length;l<=f;){var h=a.indexOf(`
`,l);h==-1&&(h=a.length);var N=a.slice(l,a.charAt(h-1)=="\r"?h-1:h),P=N.indexOf("\r");P!=-1?(p.push(N.slice(0,P)),l+=P+1):(p.push(N),l=h+1)}return p}:function(a){return a.split(/\r\n?|\n/)},Bo=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch{return!1}}:function(a){var l;try{l=a.ownerDocument.selection.createRange()}catch{}return!l||l.parentElement()!=a?!1:l.compareEndPoints("StartToEnd",l)!=0},qn=function(){var a=V("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),eo=null;function yl(a){if(eo!=null)return eo;var l=W(a,V("span","x")),p=l.getBoundingClientRect(),f=M(l,0,1).getBoundingClientRect();return eo=Math.abs(p.left-f.left)>1}var jn={},$o={};function bl(a,l){arguments.length>2&&(l.dependencies=Array.prototype.slice.call(arguments,2)),jn[a]=l}function Mi(a,l){$o[a]=l}function gn(a){if(typeof a=="string"&&$o.hasOwnProperty(a))a=$o[a];else if(a&&typeof a.name=="string"&&$o.hasOwnProperty(a.name)){var l=$o[a.name];typeof l=="string"&&(l={name:l}),a=ge(l,a),a.name=l.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return gn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return gn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function ho(a,l){l=gn(l);var p=jn[l.name];if(!p)return ho(a,"text/plain");var f=p(a,l);if(Vo.hasOwnProperty(l.name)){var h=Vo[l.name];for(var N in h)!h.hasOwnProperty(N)||(f.hasOwnProperty(N)&&(f["_"+N]=f[N]),f[N]=h[N])}if(f.name=l.name,l.helperType&&(f.helperType=l.helperType),l.modeProps)for(var P in l.modeProps)f[P]=l.modeProps[P];return f}var Vo={};function Cl(a,l){var p=Vo.hasOwnProperty(a)?Vo[a]:Vo[a]={};fe(l,p)}function mo(a,l){if(l===!0)return l;if(a.copyState)return a.copyState(l);var p={};for(var f in l){var h=l[f];h instanceof Array&&(h=h.concat([])),p[f]=h}return p}function Ro(a,l){for(var p;a.innerMode&&(p=a.innerMode(l),!(!p||p.mode==a));)l=p.state,a=p.mode;return p||{mode:a,state:l}}function Fr(a,l,p){return a.startState?a.startState(l,p):!0}var Bt=function(a,l,p){this.pos=this.start=0,this.string=a,this.tabSize=l||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=p};Bt.prototype.eol=function(){return this.pos>=this.string.length},Bt.prototype.sol=function(){return this.pos==this.lineStart},Bt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Bt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Bt.prototype.eat=function(a){var l=this.string.charAt(this.pos),p;if(typeof a=="string"?p=l==a:p=l&&(a.test?a.test(l):a(l)),p)return++this.pos,l},Bt.prototype.eatWhile=function(a){for(var l=this.pos;this.eat(a););return this.pos>l},Bt.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Bt.prototype.skipToEnd=function(){this.pos=this.string.length},Bt.prototype.skipTo=function(a){var l=this.string.indexOf(a,this.pos);if(l>-1)return this.pos=l,!0},Bt.prototype.backUp=function(a){this.pos-=a},Bt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ue(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ue(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.indentation=function(){return ue(this.string,null,this.tabSize)-(this.lineStart?ue(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.match=function(a,l,p){if(typeof a=="string"){var f=function(P){return p?P.toLowerCase():P},h=this.string.substr(this.pos,a.length);if(f(h)==f(a))return l!==!1&&(this.pos+=a.length),!0}else{var N=this.string.slice(this.pos).match(a);return N&&N.index>0?null:(N&&l!==!1&&(this.pos+=N[0].length),N)}},Bt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Bt.prototype.hideFirstChars=function(a,l){this.lineStart+=a;try{return l()}finally{this.lineStart-=a}},Bt.prototype.lookAhead=function(a){var l=this.lineOracle;return l&&l.lookAhead(a)},Bt.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Ge(a,l){if(l-=a.first,l<0||l>=a.size)throw new Error("There is no line "+(l+a.first)+" in the document.");for(var p=a;!p.lines;)for(var f=0;;++f){var h=p.children[f],N=h.chunkSize();if(l<N){p=h;break}l-=N}return p.lines[l]}function go(a,l,p){var f=[],h=l.line;return a.iter(l.line,p.line+1,function(N){var P=N.text;h==p.line&&(P=P.slice(0,p.ch)),h==l.line&&(P=P.slice(l.ch)),f.push(P),++h}),f}function Li(a,l,p){var f=[];return a.iter(l,p,function(h){f.push(h.text)}),f}function Rn(a,l){var p=l-a.height;if(p)for(var f=a;f;f=f.parent)f.height+=p}function gt(a){if(a.parent==null)return null;for(var l=a.parent,p=$(l.lines,a),f=l.parent;f;l=f,f=f.parent)for(var h=0;f.children[h]!=l;++h)p+=f.children[h].chunkSize();return p+l.first}function to(a,l){var p=a.first;e:do{for(var f=0;f<a.children.length;++f){var h=a.children[f],N=h.height;if(l<N){a=h;continue e}l-=N,p+=h.chunkSize()}return p}while(!a.lines);for(var P=0;P<a.lines.length;++P){var H=a.lines[P],G=H.height;if(l<G)break;l-=G}return p+P}function ee(a,l){return l>=a.first&&l<a.first+a.size}function ae(a,l){return String(a.lineNumberFormatter(l+a.firstLineNumber))}function ce(a,l,p){if(p===void 0&&(p=null),!(this instanceof ce))return new ce(a,l,p);this.line=a,this.ch=l,this.sticky=p}function Ce(a,l){return a.line-l.line||a.ch-l.ch}function tt(a,l){return a.sticky==l.sticky&&Ce(a,l)==0}function ft(a){return ce(a.line,a.ch)}function ht(a,l){return Ce(a,l)<0?l:a}function Lt(a,l){return Ce(a,l)<0?a:l}function kn(a,l){return Math.max(a.first,Math.min(l,a.first+a.size-1))}function nt(a,l){if(l.line<a.first)return ce(a.first,0);var p=a.first+a.size-1;return l.line>p?ce(p,Ge(a,p).text.length):FF(l,Ge(a,l.line).text.length)}function FF(a,l){var p=a.ch;return p==null||p>l?ce(a.line,l):p<0?ce(a.line,0):a}function Wm(a,l){for(var p=[],f=0;f<l.length;f++)p[f]=nt(a,l[f]);return p}var _l=function(a,l){this.state=a,this.lookAhead=l},no=function(a,l,p,f){this.state=l,this.doc=a,this.line=p,this.maxLookAhead=f||0,this.baseTokens=null,this.baseTokenPos=1};no.prototype.lookAhead=function(a){var l=this.doc.getLine(this.line+a);return l!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),l},no.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var l=this.baseTokens[this.baseTokenPos+1];return{type:l&&l.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},no.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},no.fromSaved=function(a,l,p){return l instanceof _l?new no(a,mo(a.mode,l.state),p,l.lookAhead):new no(a,mo(a.mode,l),p)},no.prototype.save=function(a){var l=a!==!1?mo(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _l(l,this.maxLookAhead):l};function Gm(a,l,p,f){var h=[a.state.modeGen],N={};Zm(a,l.text,a.doc.mode,p,function(X,ne){return h.push(X,ne)},N,f);for(var P=p.state,H=function(X){p.baseTokens=h;var ne=a.state.overlays[X],re=1,ve=0;p.state=!0,Zm(a,l.text,ne.mode,p,function(me,_e){for(var xe=re;ve<me;){var Te=h[re];Te>me&&h.splice(re,1,me,h[re+1],Te),re+=2,ve=Math.min(me,Te)}if(!!_e)if(ne.opaque)h.splice(xe,re-xe,me,"overlay "+_e),re=xe+2;else for(;xe<re;xe+=2){var Be=h[xe+1];h[xe+1]=(Be?Be+" ":"")+"overlay "+_e}},N),p.state=P,p.baseTokens=null,p.baseTokenPos=1},G=0;G<a.state.overlays.length;++G)H(G);return{styles:h,classes:N.bgClass||N.textClass?N:null}}function Km(a,l,p){if(!l.styles||l.styles[0]!=a.state.modeGen){var f=Pr(a,gt(l)),h=l.text.length>a.options.maxHighlightLength&&mo(a.doc.mode,f.state),N=Gm(a,l,f);h&&(f.state=h),l.stateAfter=f.save(!h),l.styles=N.styles,N.classes?l.styleClasses=N.classes:l.styleClasses&&(l.styleClasses=null),p===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return l.styles}function Pr(a,l,p){var f=a.doc,h=a.display;if(!f.mode.startState)return new no(f,!0,l);var N=PF(a,l,p),P=N>f.first&&Ge(f,N-1).stateAfter,H=P?no.fromSaved(f,P,N):new no(f,Fr(f.mode),N);return f.iter(N,l,function(G){Gc(a,G.text,H);var X=H.line;G.stateAfter=X==l-1||X%5==0||X>=h.viewFrom&&X<h.viewTo?H.save():null,H.nextLine()}),p&&(f.modeFrontier=H.line),H}function Gc(a,l,p,f){var h=a.doc.mode,N=new Bt(l,a.options.tabSize,p);for(N.start=N.pos=f||0,l==""&&Ym(h,p.state);!N.eol();)Kc(h,N,p.state),N.start=N.pos}function Ym(a,l){if(a.blankLine)return a.blankLine(l);if(!!a.innerMode){var p=Ro(a,l);if(p.mode.blankLine)return p.mode.blankLine(p.state)}}function Kc(a,l,p,f){for(var h=0;h<10;h++){f&&(f[0]=Ro(a,p).mode);var N=a.token(l,p);if(l.pos>l.start)return N}throw new Error("Mode "+a.name+" failed to advance stream.")}var Qm=function(a,l,p){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=l||null,this.state=p};function Xm(a,l,p,f){var h=a.doc,N=h.mode,P;l=nt(h,l);var H=Ge(h,l.line),G=Pr(a,l.line,p),X=new Bt(H.text,a.options.tabSize,G),ne;for(f&&(ne=[]);(f||X.pos<l.ch)&&!X.eol();)X.start=X.pos,P=Kc(N,X,G.state),f&&ne.push(new Qm(X,P,mo(h.mode,G.state)));return f?ne:new Qm(X,P,G.state)}function Jm(a,l){if(a)for(;;){var p=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!p)break;a=a.slice(0,p.index)+a.slice(p.index+p[0].length);var f=p[1]?"bgClass":"textClass";l[f]==null?l[f]=p[2]:new RegExp("(?:^|\\s)"+p[2]+"(?:$|\\s)").test(l[f])||(l[f]+=" "+p[2])}return a}function Zm(a,l,p,f,h,N,P){var H=p.flattenSpans;H==null&&(H=a.options.flattenSpans);var G=0,X=null,ne=new Bt(l,a.options.tabSize,f),re,ve=a.options.addModeClass&&[null];for(l==""&&Jm(Ym(p,f.state),N);!ne.eol();){if(ne.pos>a.options.maxHighlightLength?(H=!1,P&&Gc(a,l,f,ne.pos),ne.pos=l.length,re=null):re=Jm(Kc(p,ne,f.state,ve),N),ve){var me=ve[0].name;me&&(re="m-"+(re?me+" "+re:me))}if(!H||X!=re){for(;G<ne.start;)G=Math.min(ne.start,G+5e3),h(G,X);X=re}ne.start=ne.pos}for(;G<ne.pos;){var _e=Math.min(ne.pos,G+5e3);h(_e,X),G=_e}}function PF(a,l,p){for(var f,h,N=a.doc,P=p?-1:l-(a.doc.mode.innerMode?1e3:100),H=l;H>P;--H){if(H<=N.first)return N.first;var G=Ge(N,H-1),X=G.stateAfter;if(X&&(!p||H+(X instanceof _l?X.lookAhead:0)<=N.modeFrontier))return H;var ne=ue(G.text,null,a.options.tabSize);(h==null||f>ne)&&(h=H-1,f=ne)}return h}function MF(a,l){if(a.modeFrontier=Math.min(a.modeFrontier,l),!(a.highlightFrontier<l-10)){for(var p=a.first,f=l-1;f>p;f--){var h=Ge(a,f).stateAfter;if(h&&(!(h instanceof _l)||f+h.lookAhead<l)){p=f+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,p)}}var qm=!1,vo=!1;function LF(){qm=!0}function jF(){vo=!0}function wl(a,l,p){this.marker=a,this.from=l,this.to=p}function Mr(a,l){if(a)for(var p=0;p<a.length;++p){var f=a[p];if(f.marker==l)return f}}function zF(a,l){for(var p,f=0;f<a.length;++f)a[f]!=l&&(p||(p=[])).push(a[f]);return p}function HF(a,l,p){var f=p&&window.WeakSet&&(p.markedSpans||(p.markedSpans=new WeakSet));f&&a.markedSpans&&f.has(a.markedSpans)?a.markedSpans.push(l):(a.markedSpans=a.markedSpans?a.markedSpans.concat([l]):[l],f&&f.add(a.markedSpans)),l.marker.attachLine(a)}function UF(a,l,p){var f;if(a)for(var h=0;h<a.length;++h){var N=a[h],P=N.marker,H=N.from==null||(P.inclusiveLeft?N.from<=l:N.from<l);if(H||N.from==l&&P.type=="bookmark"&&(!p||!N.marker.insertLeft)){var G=N.to==null||(P.inclusiveRight?N.to>=l:N.to>l);(f||(f=[])).push(new wl(P,N.from,G?null:N.to))}}return f}function WF(a,l,p){var f;if(a)for(var h=0;h<a.length;++h){var N=a[h],P=N.marker,H=N.to==null||(P.inclusiveRight?N.to>=l:N.to>l);if(H||N.from==l&&P.type=="bookmark"&&(!p||N.marker.insertLeft)){var G=N.from==null||(P.inclusiveLeft?N.from<=l:N.from<l);(f||(f=[])).push(new wl(P,G?null:N.from-l,N.to==null?null:N.to-l))}}return f}function Yc(a,l){if(l.full)return null;var p=ee(a,l.from.line)&&Ge(a,l.from.line).markedSpans,f=ee(a,l.to.line)&&Ge(a,l.to.line).markedSpans;if(!p&&!f)return null;var h=l.from.ch,N=l.to.ch,P=Ce(l.from,l.to)==0,H=UF(p,h,P),G=WF(f,N,P),X=l.text.length==1,ne=Se(l.text).length+(X?h:0);if(H)for(var re=0;re<H.length;++re){var ve=H[re];if(ve.to==null){var me=Mr(G,ve.marker);me?X&&(ve.to=me.to==null?null:me.to+ne):ve.to=h}}if(G)for(var _e=0;_e<G.length;++_e){var xe=G[_e];if(xe.to!=null&&(xe.to+=ne),xe.from==null){var Te=Mr(H,xe.marker);Te||(xe.from=ne,X&&(H||(H=[])).push(xe))}else xe.from+=ne,X&&(H||(H=[])).push(xe)}H&&(H=eg(H)),G&&G!=H&&(G=eg(G));var Be=[H];if(!X){var Le=l.text.length-2,$e;if(Le>0&&H)for(var He=0;He<H.length;++He)H[He].to==null&&($e||($e=[])).push(new wl(H[He].marker,null,null));for(var Je=0;Je<Le;++Je)Be.push($e);Be.push(G)}return Be}function eg(a){for(var l=0;l<a.length;++l){var p=a[l];p.from!=null&&p.from==p.to&&p.marker.clearWhenEmpty!==!1&&a.splice(l--,1)}return a.length?a:null}function GF(a,l,p){var f=null;if(a.iter(l.line,p.line+1,function(me){if(me.markedSpans)for(var _e=0;_e<me.markedSpans.length;++_e){var xe=me.markedSpans[_e].marker;xe.readOnly&&(!f||$(f,xe)==-1)&&(f||(f=[])).push(xe)}}),!f)return null;for(var h=[{from:l,to:p}],N=0;N<f.length;++N)for(var P=f[N],H=P.find(0),G=0;G<h.length;++G){var X=h[G];if(!(Ce(X.to,H.from)<0||Ce(X.from,H.to)>0)){var ne=[G,1],re=Ce(X.from,H.from),ve=Ce(X.to,H.to);(re<0||!P.inclusiveLeft&&!re)&&ne.push({from:X.from,to:H.from}),(ve>0||!P.inclusiveRight&&!ve)&&ne.push({from:H.to,to:X.to}),h.splice.apply(h,ne),G+=ne.length-3}}return h}function tg(a){var l=a.markedSpans;if(!!l){for(var p=0;p<l.length;++p)l[p].marker.detachLine(a);a.markedSpans=null}}function ng(a,l){if(!!l){for(var p=0;p<l.length;++p)l[p].marker.attachLine(a);a.markedSpans=l}}function El(a){return a.inclusiveLeft?-1:0}function Al(a){return a.inclusiveRight?1:0}function Qc(a,l){var p=a.lines.length-l.lines.length;if(p!=0)return p;var f=a.find(),h=l.find(),N=Ce(f.from,h.from)||El(a)-El(l);if(N)return-N;var P=Ce(f.to,h.to)||Al(a)-Al(l);return P||l.id-a.id}function og(a,l){var p=vo&&a.markedSpans,f;if(p)for(var h=void 0,N=0;N<p.length;++N)h=p[N],h.marker.collapsed&&(l?h.from:h.to)==null&&(!f||Qc(f,h.marker)<0)&&(f=h.marker);return f}function ig(a){return og(a,!0)}function Sl(a){return og(a,!1)}function KF(a,l){var p=vo&&a.markedSpans,f;if(p)for(var h=0;h<p.length;++h){var N=p[h];N.marker.collapsed&&(N.from==null||N.from<l)&&(N.to==null||N.to>l)&&(!f||Qc(f,N.marker)<0)&&(f=N.marker)}return f}function rg(a,l,p,f,h){var N=Ge(a,l),P=vo&&N.markedSpans;if(P)for(var H=0;H<P.length;++H){var G=P[H];if(!!G.marker.collapsed){var X=G.marker.find(0),ne=Ce(X.from,p)||El(G.marker)-El(h),re=Ce(X.to,f)||Al(G.marker)-Al(h);if(!(ne>=0&&re<=0||ne<=0&&re>=0)&&(ne<=0&&(G.marker.inclusiveRight&&h.inclusiveLeft?Ce(X.to,p)>=0:Ce(X.to,p)>0)||ne>=0&&(G.marker.inclusiveRight&&h.inclusiveLeft?Ce(X.from,f)<=0:Ce(X.from,f)<0)))return!0}}}function zn(a){for(var l;l=ig(a);)a=l.find(-1,!0).line;return a}function YF(a){for(var l;l=Sl(a);)a=l.find(1,!0).line;return a}function QF(a){for(var l,p;l=Sl(a);)a=l.find(1,!0).line,(p||(p=[])).push(a);return p}function Xc(a,l){var p=Ge(a,l),f=zn(p);return p==f?l:gt(f)}function ag(a,l){if(l>a.lastLine())return l;var p=Ge(a,l),f;if(!Io(a,p))return l;for(;f=Sl(p);)p=f.find(1,!0).line;return gt(p)+1}function Io(a,l){var p=vo&&l.markedSpans;if(p){for(var f=void 0,h=0;h<p.length;++h)if(f=p[h],!!f.marker.collapsed){if(f.from==null)return!0;if(!f.marker.widgetNode&&f.from==0&&f.marker.inclusiveLeft&&Jc(a,l,f))return!0}}}function Jc(a,l,p){if(p.to==null){var f=p.marker.find(1,!0);return Jc(a,f.line,Mr(f.line.markedSpans,p.marker))}if(p.marker.inclusiveRight&&p.to==l.text.length)return!0;for(var h=void 0,N=0;N<l.markedSpans.length;++N)if(h=l.markedSpans[N],h.marker.collapsed&&!h.marker.widgetNode&&h.from==p.to&&(h.to==null||h.to!=p.from)&&(h.marker.inclusiveLeft||p.marker.inclusiveRight)&&Jc(a,l,h))return!0}function yo(a){a=zn(a);for(var l=0,p=a.parent,f=0;f<p.lines.length;++f){var h=p.lines[f];if(h==a)break;l+=h.height}for(var N=p.parent;N;p=N,N=p.parent)for(var P=0;P<N.children.length;++P){var H=N.children[P];if(H==p)break;l+=H.height}return l}function xl(a){if(a.height==0)return 0;for(var l=a.text.length,p,f=a;p=ig(f);){var h=p.find(0,!0);f=h.from.line,l+=h.from.ch-h.to.ch}for(f=a;p=Sl(f);){var N=p.find(0,!0);l-=f.text.length-N.from.ch,f=N.to.line,l+=f.text.length-N.to.ch}return l}function Zc(a){var l=a.display,p=a.doc;l.maxLine=Ge(p,p.first),l.maxLineLength=xl(l.maxLine),l.maxLineChanged=!0,p.iter(function(f){var h=xl(f);h>l.maxLineLength&&(l.maxLineLength=h,l.maxLine=f)})}var ji=function(a,l,p){this.text=a,ng(this,l),this.height=p?p(this):1};ji.prototype.lineNo=function(){return gt(this)},wt(ji);function XF(a,l,p,f){a.text=l,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),tg(a),ng(a,p);var h=f?f(a):1;h!=a.height&&Rn(a,h)}function JF(a){a.parent=null,tg(a)}var ZF={},qF={};function lg(a,l){if(!a||/^\s*$/.test(a))return null;var p=l.addModeClass?qF:ZF;return p[a]||(p[a]=a.replace(/\S+/g,"cm-$&"))}function sg(a,l){var p=k("span",null,null,y?"padding-right: .1px":null),f={pre:k("pre",[p],"CodeMirror-line"),content:p,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};l.measure={};for(var h=0;h<=(l.rest?l.rest.length:0);h++){var N=h?l.rest[h-1]:l.line,P=void 0;f.pos=0,f.addToken=tP,vl(a.display.measure)&&(P=Xe(N,a.doc.direction))&&(f.addToken=oP(f.addToken,P)),f.map=[];var H=l!=a.display.externalMeasured&&gt(N);iP(N,f,Km(a,N,H)),N.styleClasses&&(N.styleClasses.bgClass&&(f.bgClass=F(N.styleClasses.bgClass,f.bgClass||"")),N.styleClasses.textClass&&(f.textClass=F(N.styleClasses.textClass,f.textClass||""))),f.map.length==0&&f.map.push(0,0,f.content.appendChild(Wc(a.display.measure))),h==0?(l.measure.map=f.map,l.measure.cache={}):((l.measure.maps||(l.measure.maps=[])).push(f.map),(l.measure.caches||(l.measure.caches=[])).push({}))}if(y){var G=f.content.lastChild;(/\bcm-tab\b/.test(G.className)||G.querySelector&&G.querySelector(".cm-tab"))&&(f.content.className="cm-tab-wrap-hack")}return We(a,"renderLine",a,l.line,f.pre),f.pre.className&&(f.textClass=F(f.pre.className,f.textClass||"")),f}function eP(a){var l=V("span","\u2022","cm-invalidchar");return l.title="\\u"+a.charCodeAt(0).toString(16),l.setAttribute("aria-label",l.title),l}function tP(a,l,p,f,h,N,P){if(!!l){var H=a.splitSpaces?nP(l,a.trailingSpace):l,G=a.cm.state.specialChars,X=!1,ne;if(!G.test(l))a.col+=l.length,ne=document.createTextNode(H),a.map.push(a.pos,a.pos+l.length,ne),u&&g<9&&(X=!0),a.pos+=l.length;else{ne=document.createDocumentFragment();for(var re=0;;){G.lastIndex=re;var ve=G.exec(l),me=ve?ve.index-re:l.length-re;if(me){var _e=document.createTextNode(H.slice(re,re+me));u&&g<9?ne.appendChild(V("span",[_e])):ne.appendChild(_e),a.map.push(a.pos,a.pos+me,_e),a.col+=me,a.pos+=me}if(!ve)break;re+=me+1;var xe=void 0;if(ve[0]==" "){var Te=a.cm.options.tabSize,Be=Te-a.col%Te;xe=ne.appendChild(V("span",Ee(Be),"cm-tab")),xe.setAttribute("role","presentation"),xe.setAttribute("cm-text"," "),a.col+=Be}else ve[0]=="\r"||ve[0]==`
`?(xe=ne.appendChild(V("span",ve[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),xe.setAttribute("cm-text",ve[0]),a.col+=1):(xe=a.cm.options.specialCharPlaceholder(ve[0]),xe.setAttribute("cm-text",ve[0]),u&&g<9?ne.appendChild(V("span",[xe])):ne.appendChild(xe),a.col+=1);a.map.push(a.pos,a.pos+1,xe),a.pos++}}if(a.trailingSpace=H.charCodeAt(l.length-1)==32,p||f||h||X||N||P){var Le=p||"";f&&(Le+=f),h&&(Le+=h);var $e=V("span",[ne],Le,N);if(P)for(var He in P)P.hasOwnProperty(He)&&He!="style"&&He!="class"&&$e.setAttribute(He,P[He]);return a.content.appendChild($e)}a.content.appendChild(ne)}}function nP(a,l){if(a.length>1&&!/ /.test(a))return a;for(var p=l,f="",h=0;h<a.length;h++){var N=a.charAt(h);N==" "&&p&&(h==a.length-1||a.charCodeAt(h+1)==32)&&(N="\xA0"),f+=N,p=N==" "}return f}function oP(a,l){return function(p,f,h,N,P,H,G){h=h?h+" cm-force-border":"cm-force-border";for(var X=p.pos,ne=X+f.length;;){for(var re=void 0,ve=0;ve<l.length&&(re=l[ve],!(re.to>X&&re.from<=X));ve++);if(re.to>=ne)return a(p,f,h,N,P,H,G);a(p,f.slice(0,re.to-X),h,N,null,H,G),N=null,f=f.slice(re.to-X),X=re.to}}}function dg(a,l,p,f){var h=!f&&p.widgetNode;h&&a.map.push(a.pos,a.pos+l,h),!f&&a.cm.display.input.needsContentAttribute&&(h||(h=a.content.appendChild(document.createElement("span"))),h.setAttribute("cm-marker",p.id)),h&&(a.cm.display.input.setUneditable(h),a.content.appendChild(h)),a.pos+=l,a.trailingSpace=!1}function iP(a,l,p){var f=a.markedSpans,h=a.text,N=0;if(!f){for(var P=1;P<p.length;P+=2)l.addToken(l,h.slice(N,N=p[P]),lg(p[P+1],l.cm.options));return}for(var H=h.length,G=0,X=1,ne="",re,ve,me=0,_e,xe,Te,Be,Le;;){if(me==G){_e=xe=Te=ve="",Le=null,Be=null,me=1/0;for(var $e=[],He=void 0,Je=0;Je<f.length;++Je){var Qe=f[Je],ut=Qe.marker;if(ut.type=="bookmark"&&Qe.from==G&&ut.widgetNode)$e.push(ut);else if(Qe.from<=G&&(Qe.to==null||Qe.to>G||ut.collapsed&&Qe.to==G&&Qe.from==G)){if(Qe.to!=null&&Qe.to!=G&&me>Qe.to&&(me=Qe.to,xe=""),ut.className&&(_e+=" "+ut.className),ut.css&&(ve=(ve?ve+";":"")+ut.css),ut.startStyle&&Qe.from==G&&(Te+=" "+ut.startStyle),ut.endStyle&&Qe.to==me&&(He||(He=[])).push(ut.endStyle,Qe.to),ut.title&&((Le||(Le={})).title=ut.title),ut.attributes)for(var _t in ut.attributes)(Le||(Le={}))[_t]=ut.attributes[_t];ut.collapsed&&(!Be||Qc(Be.marker,ut)<0)&&(Be=Qe)}else Qe.from>G&&me>Qe.from&&(me=Qe.from)}if(He)for(var Kt=0;Kt<He.length;Kt+=2)He[Kt+1]==me&&(xe+=" "+He[Kt]);if(!Be||Be.from==G)for(var Ot=0;Ot<$e.length;++Ot)dg(l,0,$e[Ot]);if(Be&&(Be.from||0)==G){if(dg(l,(Be.to==null?H+1:Be.to)-G,Be.marker,Be.from==null),Be.to==null)return;Be.to==G&&(Be=!1)}}if(G>=H)break;for(var yn=Math.min(H,me);;){if(ne){var dn=G+ne.length;if(!Be){var Ft=dn>yn?ne.slice(0,yn-G):ne;l.addToken(l,Ft,re?re+_e:_e,Te,G+Ft.length==me?xe:"",ve,Le)}if(dn>=yn){ne=ne.slice(yn-G),G=yn;break}G=dn,Te=""}ne=h.slice(N,N=p[X++]),re=lg(p[X++],l.cm.options)}}}function cg(a,l,p){this.line=l,this.rest=QF(l),this.size=this.rest?gt(Se(this.rest))-p+1:1,this.node=this.text=null,this.hidden=Io(a,l)}function kl(a,l,p){for(var f=[],h,N=l;N<p;N=h){var P=new cg(a.doc,Ge(a.doc,N),N);h=N+P.size,f.push(P)}return f}var zi=null;function rP(a){zi?zi.ops.push(a):a.ownsGroup=zi={ops:[a],delayedCallbacks:[]}}function aP(a){var l=a.delayedCallbacks,p=0;do{for(;p<l.length;p++)l[p].call(null);for(var f=0;f<a.ops.length;f++){var h=a.ops[f];if(h.cursorActivityHandlers)for(;h.cursorActivityCalled<h.cursorActivityHandlers.length;)h.cursorActivityHandlers[h.cursorActivityCalled++].call(null,h.cm)}}while(p<l.length)}function lP(a,l){var p=a.ownsGroup;if(!!p)try{aP(p)}finally{zi=null,l(p)}}var Lr=null;function Ut(a,l){var p=Ke(a,l);if(!!p.length){var f=Array.prototype.slice.call(arguments,2),h;zi?h=zi.delayedCallbacks:Lr?h=Lr:(h=Lr=[],setTimeout(sP,0));for(var N=function(H){h.push(function(){return p[H].apply(null,f)})},P=0;P<p.length;++P)N(P)}}function sP(){var a=Lr;Lr=null;for(var l=0;l<a.length;++l)a[l]()}function ug(a,l,p,f){for(var h=0;h<l.changes.length;h++){var N=l.changes[h];N=="text"?cP(a,l):N=="gutter"?pg(a,l,p,f):N=="class"?qc(a,l):N=="widget"&&uP(a,l,f)}l.changes=null}function jr(a){return a.node==a.text&&(a.node=V("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),u&&g<8&&(a.node.style.zIndex=2)),a.node}function dP(a,l){var p=l.bgClass?l.bgClass+" "+(l.line.bgClass||""):l.line.bgClass;if(p&&(p+=" CodeMirror-linebackground"),l.background)p?l.background.className=p:(l.background.parentNode.removeChild(l.background),l.background=null);else if(p){var f=jr(l);l.background=f.insertBefore(V("div",null,p),f.firstChild),a.display.input.setUneditable(l.background)}}function fg(a,l){var p=a.display.externalMeasured;return p&&p.line==l.line?(a.display.externalMeasured=null,l.measure=p.measure,p.built):sg(a,l)}function cP(a,l){var p=l.text.className,f=fg(a,l);l.text==l.node&&(l.node=f.pre),l.text.parentNode.replaceChild(f.pre,l.text),l.text=f.pre,f.bgClass!=l.bgClass||f.textClass!=l.textClass?(l.bgClass=f.bgClass,l.textClass=f.textClass,qc(a,l)):p&&(l.text.className=p)}function qc(a,l){dP(a,l),l.line.wrapClass?jr(l).className=l.line.wrapClass:l.node!=l.text&&(l.node.className="");var p=l.textClass?l.textClass+" "+(l.line.textClass||""):l.line.textClass;l.text.className=p||""}function pg(a,l,p,f){if(l.gutter&&(l.node.removeChild(l.gutter),l.gutter=null),l.gutterBackground&&(l.node.removeChild(l.gutterBackground),l.gutterBackground=null),l.line.gutterClass){var h=jr(l);l.gutterBackground=V("div",null,"CodeMirror-gutter-background "+l.line.gutterClass,"left: "+(a.options.fixedGutter?f.fixedPos:-f.gutterTotalWidth)+"px; width: "+f.gutterTotalWidth+"px"),a.display.input.setUneditable(l.gutterBackground),h.insertBefore(l.gutterBackground,l.text)}var N=l.line.gutterMarkers;if(a.options.lineNumbers||N){var P=jr(l),H=l.gutter=V("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?f.fixedPos:-f.gutterTotalWidth)+"px");if(H.setAttribute("aria-hidden","true"),a.display.input.setUneditable(H),P.insertBefore(H,l.text),l.line.gutterClass&&(H.className+=" "+l.line.gutterClass),a.options.lineNumbers&&(!N||!N["CodeMirror-linenumbers"])&&(l.lineNumber=H.appendChild(V("div",ae(a.options,p),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+f.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),N)for(var G=0;G<a.display.gutterSpecs.length;++G){var X=a.display.gutterSpecs[G].className,ne=N.hasOwnProperty(X)&&N[X];ne&&H.appendChild(V("div",[ne],"CodeMirror-gutter-elt","left: "+f.gutterLeft[X]+"px; width: "+f.gutterWidth[X]+"px"))}}}function uP(a,l,p){l.alignable&&(l.alignable=null);for(var f=B("CodeMirror-linewidget"),h=l.node.firstChild,N=void 0;h;h=N)N=h.nextSibling,f.test(h.className)&&l.node.removeChild(h);hg(a,l,p)}function fP(a,l,p,f){var h=fg(a,l);return l.text=l.node=h.pre,h.bgClass&&(l.bgClass=h.bgClass),h.textClass&&(l.textClass=h.textClass),qc(a,l),pg(a,l,p,f),hg(a,l,f),l.node}function hg(a,l,p){if(mg(a,l.line,l,p,!0),l.rest)for(var f=0;f<l.rest.length;f++)mg(a,l.rest[f],l,p,!1)}function mg(a,l,p,f,h){if(!!l.widgets)for(var N=jr(p),P=0,H=l.widgets;P<H.length;++P){var G=H[P],X=V("div",[G.node],"CodeMirror-linewidget"+(G.className?" "+G.className:""));G.handleMouseEvents||X.setAttribute("cm-ignore-events","true"),pP(G,X,p,f),a.display.input.setUneditable(X),h&&G.above?N.insertBefore(X,p.gutter||p.text):N.appendChild(X),Ut(G,"redraw")}}function pP(a,l,p,f){if(a.noHScroll){(p.alignable||(p.alignable=[])).push(l);var h=f.wrapperWidth;l.style.left=f.fixedPos+"px",a.coverGutter||(h-=f.gutterTotalWidth,l.style.paddingLeft=f.gutterTotalWidth+"px"),l.style.width=h+"px"}a.coverGutter&&(l.style.zIndex=5,l.style.position="relative",a.noHScroll||(l.style.marginLeft=-f.gutterTotalWidth+"px"))}function zr(a){if(a.height!=null)return a.height;var l=a.doc.cm;if(!l)return 0;if(!j(document.body,a.node)){var p="position: relative;";a.coverGutter&&(p+="margin-left: -"+l.display.gutters.offsetWidth+"px;"),a.noHScroll&&(p+="width: "+l.display.wrapper.clientWidth+"px;"),W(l.display.measure,V("div",[a.node],null,p))}return a.height=a.node.parentNode.offsetHeight}function bo(a,l){for(var p=an(l);p!=a.wrapper;p=p.parentNode)if(!p||p.nodeType==1&&p.getAttribute("cm-ignore-events")=="true"||p.parentNode==a.sizer&&p!=a.mover)return!0}function Nl(a){return a.lineSpace.offsetTop}function eu(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function gg(a){if(a.cachedPaddingH)return a.cachedPaddingH;var l=W(a.measure,V("pre","x","CodeMirror-line-like")),p=window.getComputedStyle?window.getComputedStyle(l):l.currentStyle,f={left:parseInt(p.paddingLeft),right:parseInt(p.paddingRight)};return!isNaN(f.left)&&!isNaN(f.right)&&(a.cachedPaddingH=f),f}function oo(a){return Y-a.display.nativeBarWidth}function ei(a){return a.display.scroller.clientWidth-oo(a)-a.display.barWidth}function tu(a){return a.display.scroller.clientHeight-oo(a)-a.display.barHeight}function hP(a,l,p){var f=a.options.lineWrapping,h=f&&ei(a);if(!l.measure.heights||f&&l.measure.width!=h){var N=l.measure.heights=[];if(f){l.measure.width=h;for(var P=l.text.firstChild.getClientRects(),H=0;H<P.length-1;H++){var G=P[H],X=P[H+1];Math.abs(G.bottom-X.bottom)>2&&N.push((G.bottom+X.top)/2-p.top)}}N.push(p.bottom-p.top)}}function vg(a,l,p){if(a.line==l)return{map:a.measure.map,cache:a.measure.cache};if(a.rest){for(var f=0;f<a.rest.length;f++)if(a.rest[f]==l)return{map:a.measure.maps[f],cache:a.measure.caches[f]};for(var h=0;h<a.rest.length;h++)if(gt(a.rest[h])>p)return{map:a.measure.maps[h],cache:a.measure.caches[h],before:!0}}}function mP(a,l){l=zn(l);var p=gt(l),f=a.display.externalMeasured=new cg(a.doc,l,p);f.lineN=p;var h=f.built=sg(a,f);return f.text=h.pre,W(a.display.lineMeasure,h.pre),f}function yg(a,l,p,f){return io(a,Hi(a,l),p,f)}function nu(a,l){if(l>=a.display.viewFrom&&l<a.display.viewTo)return a.display.view[oi(a,l)];var p=a.display.externalMeasured;if(p&&l>=p.lineN&&l<p.lineN+p.size)return p}function Hi(a,l){var p=gt(l),f=nu(a,p);f&&!f.text?f=null:f&&f.changes&&(ug(a,f,p,lu(a)),a.curOp.forceUpdate=!0),f||(f=mP(a,l));var h=vg(f,l,p);return{line:l,view:f,rect:null,map:h.map,cache:h.cache,before:h.before,hasHeights:!1}}function io(a,l,p,f,h){l.before&&(p=-1);var N=p+(f||""),P;return l.cache.hasOwnProperty(N)?P=l.cache[N]:(l.rect||(l.rect=l.view.text.getBoundingClientRect()),l.hasHeights||(hP(a,l.view,l.rect),l.hasHeights=!0),P=vP(a,l,p,f),P.bogus||(l.cache[N]=P)),{left:P.left,right:P.right,top:h?P.rtop:P.top,bottom:h?P.rbottom:P.bottom}}var bg={left:0,right:0,top:0,bottom:0};function Cg(a,l,p){for(var f,h,N,P,H,G,X=0;X<a.length;X+=3)if(H=a[X],G=a[X+1],l<H?(h=0,N=1,P="left"):l<G?(h=l-H,N=h+1):(X==a.length-3||l==G&&a[X+3]>l)&&(N=G-H,h=N-1,l>=G&&(P="right")),h!=null){if(f=a[X+2],H==G&&p==(f.insertLeft?"left":"right")&&(P=p),p=="left"&&h==0)for(;X&&a[X-2]==a[X-3]&&a[X-1].insertLeft;)f=a[(X-=3)+2],P="left";if(p=="right"&&h==G-H)for(;X<a.length-3&&a[X+3]==a[X+4]&&!a[X+5].insertLeft;)f=a[(X+=3)+2],P="right";break}return{node:f,start:h,end:N,collapse:P,coverStart:H,coverEnd:G}}function gP(a,l){var p=bg;if(l=="left")for(var f=0;f<a.length&&(p=a[f]).left==p.right;f++);else for(var h=a.length-1;h>=0&&(p=a[h]).left==p.right;h--);return p}function vP(a,l,p,f){var h=Cg(l.map,p,f),N=h.node,P=h.start,H=h.end,G=h.collapse,X;if(N.nodeType==3){for(var ne=0;ne<4;ne++){for(;P&&ct(l.line.text.charAt(h.coverStart+P));)--P;for(;h.coverStart+H<h.coverEnd&&ct(l.line.text.charAt(h.coverStart+H));)++H;if(u&&g<9&&P==0&&H==h.coverEnd-h.coverStart?X=N.parentNode.getBoundingClientRect():X=gP(M(N,P,H).getClientRects(),f),X.left||X.right||P==0)break;H=P,P=P-1,G="right"}u&&g<11&&(X=yP(a.display.measure,X))}else{P>0&&(G=f="right");var re;a.options.lineWrapping&&(re=N.getClientRects()).length>1?X=re[f=="right"?re.length-1:0]:X=N.getBoundingClientRect()}if(u&&g<9&&!P&&(!X||!X.left&&!X.right)){var ve=N.parentNode.getClientRects()[0];ve?X={left:ve.left,right:ve.left+Wi(a.display),top:ve.top,bottom:ve.bottom}:X=bg}for(var me=X.top-l.rect.top,_e=X.bottom-l.rect.top,xe=(me+_e)/2,Te=l.view.measure.heights,Be=0;Be<Te.length-1&&!(xe<Te[Be]);Be++);var Le=Be?Te[Be-1]:0,$e=Te[Be],He={left:(G=="right"?X.right:X.left)-l.rect.left,right:(G=="left"?X.left:X.right)-l.rect.left,top:Le,bottom:$e};return!X.left&&!X.right&&(He.bogus=!0),a.options.singleCursorHeightPerLine||(He.rtop=me,He.rbottom=_e),He}function yP(a,l){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!yl(a))return l;var p=screen.logicalXDPI/screen.deviceXDPI,f=screen.logicalYDPI/screen.deviceYDPI;return{left:l.left*p,right:l.right*p,top:l.top*f,bottom:l.bottom*f}}function _g(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var l=0;l<a.rest.length;l++)a.measure.caches[l]={}}function wg(a){a.display.externalMeasure=null,U(a.display.lineMeasure);for(var l=0;l<a.display.view.length;l++)_g(a.display.view[l])}function Hr(a){wg(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Eg(a){return w&&S?-(a.body.getBoundingClientRect().left-parseInt(getComputedStyle(a.body).marginLeft)):a.defaultView.pageXOffset||(a.documentElement||a.body).scrollLeft}function Ag(a){return w&&S?-(a.body.getBoundingClientRect().top-parseInt(getComputedStyle(a.body).marginTop)):a.defaultView.pageYOffset||(a.documentElement||a.body).scrollTop}function ou(a){var l=zn(a),p=l.widgets,f=0;if(p)for(var h=0;h<p.length;++h)p[h].above&&(f+=zr(p[h]));return f}function Tl(a,l,p,f,h){if(!h){var N=ou(l);p.top+=N,p.bottom+=N}if(f=="line")return p;f||(f="local");var P=yo(l);if(f=="local"?P+=Nl(a.display):P-=a.display.viewOffset,f=="page"||f=="window"){var H=a.display.lineSpace.getBoundingClientRect();P+=H.top+(f=="window"?0:Ag(pe(a)));var G=H.left+(f=="window"?0:Eg(pe(a)));p.left+=G,p.right+=G}return p.top+=P,p.bottom+=P,p}function Sg(a,l,p){if(p=="div")return l;var f=l.left,h=l.top;if(p=="page")f-=Eg(pe(a)),h-=Ag(pe(a));else if(p=="local"||!p){var N=a.display.sizer.getBoundingClientRect();f+=N.left,h+=N.top}var P=a.display.lineSpace.getBoundingClientRect();return{left:f-P.left,top:h-P.top}}function Ol(a,l,p,f,h){return f||(f=Ge(a.doc,l.line)),Tl(a,f,yg(a,f,l.ch,h),p)}function Hn(a,l,p,f,h,N){f=f||Ge(a.doc,l.line),h||(h=Hi(a,f));function P(_e,xe){var Te=io(a,h,_e,xe?"right":"left",N);return xe?Te.left=Te.right:Te.right=Te.left,Tl(a,f,Te,p)}var H=Xe(f,a.doc.direction),G=l.ch,X=l.sticky;if(G>=f.text.length?(G=f.text.length,X="before"):G<=0&&(G=0,X="after"),!H)return P(X=="before"?G-1:G,X=="before");function ne(_e,xe,Te){var Be=H[xe],Le=Be.level==1;return P(Te?_e-1:_e,Le!=Te)}var re=Oe(H,G,X),ve=Ze,me=ne(G,re,X=="before");return ve!=null&&(me.other=ne(G,ve,X!="before")),me}function xg(a,l){var p=0;l=nt(a.doc,l),a.options.lineWrapping||(p=Wi(a.display)*l.ch);var f=Ge(a.doc,l.line),h=yo(f)+Nl(a.display);return{left:p,right:p,top:h,bottom:h+f.height}}function iu(a,l,p,f,h){var N=ce(a,l,p);return N.xRel=h,f&&(N.outside=f),N}function ru(a,l,p){var f=a.doc;if(p+=a.display.viewOffset,p<0)return iu(f.first,0,null,-1,-1);var h=to(f,p),N=f.first+f.size-1;if(h>N)return iu(f.first+f.size-1,Ge(f,N).text.length,null,1,1);l<0&&(l=0);for(var P=Ge(f,h);;){var H=bP(a,P,h,l,p),G=KF(P,H.ch+(H.xRel>0||H.outside>0?1:0));if(!G)return H;var X=G.find(1);if(X.line==h)return X;P=Ge(f,h=X.line)}}function kg(a,l,p,f){f-=ou(l);var h=l.text.length,N=Fe(function(P){return io(a,p,P-1).bottom<=f},h,0);return h=Fe(function(P){return io(a,p,P).top>f},N,h),{begin:N,end:h}}function Ng(a,l,p,f){p||(p=Hi(a,l));var h=Tl(a,l,io(a,p,f),"line").top;return kg(a,l,p,h)}function au(a,l,p,f){return a.bottom<=p?!1:a.top>p?!0:(f?a.left:a.right)>l}function bP(a,l,p,f,h){h-=yo(l);var N=Hi(a,l),P=ou(l),H=0,G=l.text.length,X=!0,ne=Xe(l,a.doc.direction);if(ne){var re=(a.options.lineWrapping?_P:CP)(a,l,p,N,ne,f,h);X=re.level!=1,H=X?re.from:re.to-1,G=X?re.to:re.from-1}var ve=null,me=null,_e=Fe(function(Je){var Qe=io(a,N,Je);return Qe.top+=P,Qe.bottom+=P,au(Qe,f,h,!1)?(Qe.top<=h&&Qe.left<=f&&(ve=Je,me=Qe),!0):!1},H,G),xe,Te,Be=!1;if(me){var Le=f-me.left<me.right-f,$e=Le==X;_e=ve+($e?0:1),Te=$e?"after":"before",xe=Le?me.left:me.right}else{!X&&(_e==G||_e==H)&&_e++,Te=_e==0?"after":_e==l.text.length?"before":io(a,N,_e-(X?1:0)).bottom+P<=h==X?"after":"before";var He=Hn(a,ce(p,_e,Te),"line",l,N);xe=He.left,Be=h<He.top?-1:h>=He.bottom?1:0}return _e=rt(l.text,_e,1),iu(p,_e,Te,Be,f-xe)}function CP(a,l,p,f,h,N,P){var H=Fe(function(re){var ve=h[re],me=ve.level!=1;return au(Hn(a,ce(p,me?ve.to:ve.from,me?"before":"after"),"line",l,f),N,P,!0)},0,h.length-1),G=h[H];if(H>0){var X=G.level!=1,ne=Hn(a,ce(p,X?G.from:G.to,X?"after":"before"),"line",l,f);au(ne,N,P,!0)&&ne.top>P&&(G=h[H-1])}return G}function _P(a,l,p,f,h,N,P){var H=kg(a,l,f,P),G=H.begin,X=H.end;/\s/.test(l.text.charAt(X-1))&&X--;for(var ne=null,re=null,ve=0;ve<h.length;ve++){var me=h[ve];if(!(me.from>=X||me.to<=G)){var _e=me.level!=1,xe=io(a,f,_e?Math.min(X,me.to)-1:Math.max(G,me.from)).right,Te=xe<N?N-xe+1e9:xe-N;(!ne||re>Te)&&(ne=me,re=Te)}}return ne||(ne=h[h.length-1]),ne.from<G&&(ne={from:G,to:ne.to,level:ne.level}),ne.to>X&&(ne={from:ne.from,to:X,level:ne.level}),ne}var ti;function Ui(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(ti==null){ti=V("pre",null,"CodeMirror-line-like");for(var l=0;l<49;++l)ti.appendChild(document.createTextNode("x")),ti.appendChild(V("br"));ti.appendChild(document.createTextNode("x"))}W(a.measure,ti);var p=ti.offsetHeight/50;return p>3&&(a.cachedTextHeight=p),U(a.measure),p||1}function Wi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var l=V("span","xxxxxxxxxx"),p=V("pre",[l],"CodeMirror-line-like");W(a.measure,p);var f=l.getBoundingClientRect(),h=(f.right-f.left)/10;return h>2&&(a.cachedCharWidth=h),h||10}function lu(a){for(var l=a.display,p={},f={},h=l.gutters.clientLeft,N=l.gutters.firstChild,P=0;N;N=N.nextSibling,++P){var H=a.display.gutterSpecs[P].className;p[H]=N.offsetLeft+N.clientLeft+h,f[H]=N.clientWidth}return{fixedPos:su(l),gutterTotalWidth:l.gutters.offsetWidth,gutterLeft:p,gutterWidth:f,wrapperWidth:l.wrapper.clientWidth}}function su(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Tg(a){var l=Ui(a.display),p=a.options.lineWrapping,f=p&&Math.max(5,a.display.scroller.clientWidth/Wi(a.display)-3);return function(h){if(Io(a.doc,h))return 0;var N=0;if(h.widgets)for(var P=0;P<h.widgets.length;P++)h.widgets[P].height&&(N+=h.widgets[P].height);return p?N+(Math.ceil(h.text.length/f)||1)*l:N+l}}function du(a){var l=a.doc,p=Tg(a);l.iter(function(f){var h=p(f);h!=f.height&&Rn(f,h)})}function ni(a,l,p,f){var h=a.display;if(!p&&an(l).getAttribute("cm-not-content")=="true")return null;var N,P,H=h.lineSpace.getBoundingClientRect();try{N=l.clientX-H.left,P=l.clientY-H.top}catch{return null}var G=ru(a,N,P),X;if(f&&G.xRel>0&&(X=Ge(a.doc,G.line).text).length==G.ch){var ne=ue(X,X.length,a.options.tabSize)-X.length;G=ce(G.line,Math.max(0,Math.round((N-gg(a.display).left)/Wi(a.display))-ne))}return G}function oi(a,l){if(l>=a.display.viewTo||(l-=a.display.viewFrom,l<0))return null;for(var p=a.display.view,f=0;f<p.length;f++)if(l-=p[f].size,l<0)return f}function ln(a,l,p,f){l==null&&(l=a.doc.first),p==null&&(p=a.doc.first+a.doc.size),f||(f=0);var h=a.display;if(f&&p<h.viewTo&&(h.updateLineNumbers==null||h.updateLineNumbers>l)&&(h.updateLineNumbers=l),a.curOp.viewChanged=!0,l>=h.viewTo)vo&&Xc(a.doc,l)<h.viewTo&&Po(a);else if(p<=h.viewFrom)vo&&ag(a.doc,p+f)>h.viewFrom?Po(a):(h.viewFrom+=f,h.viewTo+=f);else if(l<=h.viewFrom&&p>=h.viewTo)Po(a);else if(l<=h.viewFrom){var N=Dl(a,p,p+f,1);N?(h.view=h.view.slice(N.index),h.viewFrom=N.lineN,h.viewTo+=f):Po(a)}else if(p>=h.viewTo){var P=Dl(a,l,l,-1);P?(h.view=h.view.slice(0,P.index),h.viewTo=P.lineN):Po(a)}else{var H=Dl(a,l,l,-1),G=Dl(a,p,p+f,1);H&&G?(h.view=h.view.slice(0,H.index).concat(kl(a,H.lineN,G.lineN)).concat(h.view.slice(G.index)),h.viewTo+=f):Po(a)}var X=h.externalMeasured;X&&(p<X.lineN?X.lineN+=f:l<X.lineN+X.size&&(h.externalMeasured=null))}function Fo(a,l,p){a.curOp.viewChanged=!0;var f=a.display,h=a.display.externalMeasured;if(h&&l>=h.lineN&&l<h.lineN+h.size&&(f.externalMeasured=null),!(l<f.viewFrom||l>=f.viewTo)){var N=f.view[oi(a,l)];if(N.node!=null){var P=N.changes||(N.changes=[]);$(P,p)==-1&&P.push(p)}}}function Po(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Dl(a,l,p,f){var h=oi(a,l),N,P=a.display.view;if(!vo||p==a.doc.first+a.doc.size)return{index:h,lineN:p};for(var H=a.display.viewFrom,G=0;G<h;G++)H+=P[G].size;if(H!=l){if(f>0){if(h==P.length-1)return null;N=H+P[h].size-l,h++}else N=H-l;l+=N,p+=N}for(;Xc(a.doc,p)!=p;){if(h==(f<0?0:P.length-1))return null;p+=f*P[h-(f<0?1:0)].size,h+=f}return{index:h,lineN:p}}function wP(a,l,p){var f=a.display,h=f.view;h.length==0||l>=f.viewTo||p<=f.viewFrom?(f.view=kl(a,l,p),f.viewFrom=l):(f.viewFrom>l?f.view=kl(a,l,f.viewFrom).concat(f.view):f.viewFrom<l&&(f.view=f.view.slice(oi(a,l))),f.viewFrom=l,f.viewTo<p?f.view=f.view.concat(kl(a,f.viewTo,p)):f.viewTo>p&&(f.view=f.view.slice(0,oi(a,p)))),f.viewTo=p}function Og(a){for(var l=a.display.view,p=0,f=0;f<l.length;f++){var h=l[f];!h.hidden&&(!h.node||h.changes)&&++p}return p}function Ur(a){a.display.input.showSelection(a.display.input.prepareSelection())}function Dg(a,l){l===void 0&&(l=!0);var p=a.doc,f={},h=f.cursors=document.createDocumentFragment(),N=f.selection=document.createDocumentFragment(),P=a.options.$customCursor;P&&(l=!0);for(var H=0;H<p.sel.ranges.length;H++)if(!(!l&&H==p.sel.primIndex)){var G=p.sel.ranges[H];if(!(G.from().line>=a.display.viewTo||G.to().line<a.display.viewFrom)){var X=G.empty();if(P){var ne=P(a,G);ne&&cu(a,ne,h)}else(X||a.options.showCursorWhenSelecting)&&cu(a,G.head,h);X||EP(a,G,N)}}return f}function cu(a,l,p){var f=Hn(a,l,"div",null,null,!a.options.singleCursorHeightPerLine),h=p.appendChild(V("div","\xA0","CodeMirror-cursor"));if(h.style.left=f.left+"px",h.style.top=f.top+"px",h.style.height=Math.max(0,f.bottom-f.top)*a.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(a.getWrapperElement().className)){var N=Ol(a,l,"div",null,null),P=N.right-N.left;h.style.width=(P>0?P:a.defaultCharWidth())+"px"}if(f.other){var H=p.appendChild(V("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));H.style.display="",H.style.left=f.other.left+"px",H.style.top=f.other.top+"px",H.style.height=(f.other.bottom-f.other.top)*.85+"px"}}function Bl(a,l){return a.top-l.top||a.left-l.left}function EP(a,l,p){var f=a.display,h=a.doc,N=document.createDocumentFragment(),P=gg(a.display),H=P.left,G=Math.max(f.sizerWidth,ei(a)-f.sizer.offsetLeft)-P.right,X=h.direction=="ltr";function ne($e,He,Je,Qe){He<0&&(He=0),He=Math.round(He),Qe=Math.round(Qe),N.appendChild(V("div",null,"CodeMirror-selected","position: absolute; left: "+$e+`px;
top: `+He+"px; width: "+(Je==null?G-$e:Je)+`px;
height: `+(Qe-He)+"px"))}function re($e,He,Je){var Qe=Ge(h,$e),ut=Qe.text.length,_t,Kt;function Ot(Ft,cn){return Ol(a,ce($e,Ft),"div",Qe,cn)}function yn(Ft,cn,Qt){var jt=Ng(a,Qe,null,Ft),Pt=cn=="ltr"==(Qt=="after")?"left":"right",$t=Qt=="after"?jt.begin:jt.end-(/\s/.test(Qe.text.charAt(jt.end-1))?2:1);return Ot($t,Pt)[Pt]}var dn=Xe(Qe,h.direction);return Ct(dn,He||0,Je==null?ut:Je,function(Ft,cn,Qt,jt){var Pt=Qt=="ltr",$t=Ot(Ft,Pt?"left":"right"),un=Ot(cn-1,Pt?"right":"left"),ir=He==null&&Ft==0,Uo=Je==null&&cn==ut,Zt=jt==0,ro=!dn||jt==dn.length-1;if(un.top-$t.top<=3){var Yt=(X?ir:Uo)&&Zt,Iu=(X?Uo:ir)&&ro,wo=Yt?H:(Pt?$t:un).left,si=Iu?G:(Pt?un:$t).right;ne(wo,$t.top,si-wo,$t.bottom)}else{var di,nn,rr,Fu;Pt?(di=X&&ir&&Zt?H:$t.left,nn=X?G:yn(Ft,Qt,"before"),rr=X?H:yn(cn,Qt,"after"),Fu=X&&Uo&&ro?G:un.right):(di=X?yn(Ft,Qt,"before"):H,nn=!X&&ir&&Zt?G:$t.right,rr=!X&&Uo&&ro?H:un.left,Fu=X?yn(cn,Qt,"after"):G),ne(di,$t.top,nn-di,$t.bottom),$t.bottom<un.top&&ne(H,$t.bottom,null,un.top),ne(rr,un.top,Fu-rr,un.bottom)}(!_t||Bl($t,_t)<0)&&(_t=$t),Bl(un,_t)<0&&(_t=un),(!Kt||Bl($t,Kt)<0)&&(Kt=$t),Bl(un,Kt)<0&&(Kt=un)}),{start:_t,end:Kt}}var ve=l.from(),me=l.to();if(ve.line==me.line)re(ve.line,ve.ch,me.ch);else{var _e=Ge(h,ve.line),xe=Ge(h,me.line),Te=zn(_e)==zn(xe),Be=re(ve.line,ve.ch,Te?_e.text.length+1:null).end,Le=re(me.line,Te?0:null,me.ch).start;Te&&(Be.top<Le.top-2?(ne(Be.right,Be.top,null,Be.bottom),ne(H,Le.top,Le.left,Le.bottom)):ne(Be.right,Be.top,Le.left-Be.right,Be.bottom)),Be.bottom<Le.top&&ne(H,Be.bottom,null,Le.top)}p.appendChild(N)}function uu(a){if(!!a.state.focused){var l=a.display;clearInterval(l.blinker);var p=!0;l.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?l.blinker=setInterval(function(){a.hasFocus()||Gi(a),l.cursorDiv.style.visibility=(p=!p)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(l.cursorDiv.style.visibility="hidden")}}function Bg(a){a.hasFocus()||(a.display.input.focus(),a.state.focused||pu(a))}function fu(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,a.state.focused&&Gi(a))},100)}function pu(a,l){a.state.delayingBlurEvent&&!a.state.draggingText&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(We(a,"focus",a,l),a.state.focused=!0,J(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),y&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),uu(a))}function Gi(a,l){a.state.delayingBlurEvent||(a.state.focused&&(We(a,"blur",a,l),a.state.focused=!1,L(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function $l(a){for(var l=a.display,p=l.lineDiv.offsetTop,f=Math.max(0,l.scroller.getBoundingClientRect().top),h=l.lineDiv.getBoundingClientRect().top,N=0,P=0;P<l.view.length;P++){var H=l.view[P],G=a.options.lineWrapping,X=void 0,ne=0;if(!H.hidden){if(h+=H.line.height,u&&g<8){var re=H.node.offsetTop+H.node.offsetHeight;X=re-p,p=re}else{var ve=H.node.getBoundingClientRect();X=ve.bottom-ve.top,!G&&H.text.firstChild&&(ne=H.text.firstChild.getBoundingClientRect().right-ve.left-1)}var me=H.line.height-X;if((me>.005||me<-.005)&&(h<f&&(N-=me),Rn(H.line,X),$g(H.line),H.rest))for(var _e=0;_e<H.rest.length;_e++)$g(H.rest[_e]);if(ne>a.display.sizerWidth){var xe=Math.ceil(ne/Wi(a.display));xe>a.display.maxLineLength&&(a.display.maxLineLength=xe,a.display.maxLine=H.line,a.display.maxLineChanged=!0)}}}Math.abs(N)>2&&(l.scroller.scrollTop+=N)}function $g(a){if(a.widgets)for(var l=0;l<a.widgets.length;++l){var p=a.widgets[l],f=p.node.parentNode;f&&(p.height=f.offsetHeight)}}function Vl(a,l,p){var f=p&&p.top!=null?Math.max(0,p.top):a.scroller.scrollTop;f=Math.floor(f-Nl(a));var h=p&&p.bottom!=null?p.bottom:f+a.wrapper.clientHeight,N=to(l,f),P=to(l,h);if(p&&p.ensure){var H=p.ensure.from.line,G=p.ensure.to.line;H<N?(N=H,P=to(l,yo(Ge(l,H))+a.wrapper.clientHeight)):Math.min(G,l.lastLine())>=P&&(N=to(l,yo(Ge(l,G))-a.wrapper.clientHeight),P=G)}return{from:N,to:Math.max(P,N+1)}}function AP(a,l){if(!lt(a,"scrollCursorIntoView")){var p=a.display,f=p.sizer.getBoundingClientRect(),h=null,N=p.wrapper.ownerDocument;if(l.top+f.top<0?h=!0:l.bottom+f.top>(N.defaultView.innerHeight||N.documentElement.clientHeight)&&(h=!1),h!=null&&!m){var P=V("div","\u200B",null,`position: absolute;
top: `+(l.top-p.viewOffset-Nl(a.display))+`px;
height: `+(l.bottom-l.top+oo(a)+p.barHeight)+`px;
left: `+l.left+"px; width: "+Math.max(2,l.right-l.left)+"px;");a.display.lineSpace.appendChild(P),P.scrollIntoView(h),a.display.lineSpace.removeChild(P)}}}function SP(a,l,p,f){f==null&&(f=0);var h;!a.options.lineWrapping&&l==p&&(p=l.sticky=="before"?ce(l.line,l.ch+1,"before"):l,l=l.ch?ce(l.line,l.sticky=="before"?l.ch-1:l.ch,"after"):l);for(var N=0;N<5;N++){var P=!1,H=Hn(a,l),G=!p||p==l?H:Hn(a,p);h={left:Math.min(H.left,G.left),top:Math.min(H.top,G.top)-f,right:Math.max(H.left,G.left),bottom:Math.max(H.bottom,G.bottom)+f};var X=hu(a,h),ne=a.doc.scrollTop,re=a.doc.scrollLeft;if(X.scrollTop!=null&&(Gr(a,X.scrollTop),Math.abs(a.doc.scrollTop-ne)>1&&(P=!0)),X.scrollLeft!=null&&(ii(a,X.scrollLeft),Math.abs(a.doc.scrollLeft-re)>1&&(P=!0)),!P)break}return h}function xP(a,l){var p=hu(a,l);p.scrollTop!=null&&Gr(a,p.scrollTop),p.scrollLeft!=null&&ii(a,p.scrollLeft)}function hu(a,l){var p=a.display,f=Ui(a.display);l.top<0&&(l.top=0);var h=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:p.scroller.scrollTop,N=tu(a),P={};l.bottom-l.top>N&&(l.bottom=l.top+N);var H=a.doc.height+eu(p),G=l.top<f,X=l.bottom>H-f;if(l.top<h)P.scrollTop=G?0:l.top;else if(l.bottom>h+N){var ne=Math.min(l.top,(X?H:l.bottom)-N);ne!=h&&(P.scrollTop=ne)}var re=a.options.fixedGutter?0:p.gutters.offsetWidth,ve=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:p.scroller.scrollLeft-re,me=ei(a)-p.gutters.offsetWidth,_e=l.right-l.left>me;return _e&&(l.right=l.left+me),l.left<10?P.scrollLeft=0:l.left<ve?P.scrollLeft=Math.max(0,l.left+re-(_e?0:10)):l.right>me+ve-3&&(P.scrollLeft=l.right+(_e?0:10)-me),P}function mu(a,l){l!=null&&(Rl(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+l)}function Ki(a){Rl(a);var l=a.getCursor();a.curOp.scrollToPos={from:l,to:l,margin:a.options.cursorScrollMargin}}function Wr(a,l,p){(l!=null||p!=null)&&Rl(a),l!=null&&(a.curOp.scrollLeft=l),p!=null&&(a.curOp.scrollTop=p)}function kP(a,l){Rl(a),a.curOp.scrollToPos=l}function Rl(a){var l=a.curOp.scrollToPos;if(l){a.curOp.scrollToPos=null;var p=xg(a,l.from),f=xg(a,l.to);Vg(a,p,f,l.margin)}}function Vg(a,l,p,f){var h=hu(a,{left:Math.min(l.left,p.left),top:Math.min(l.top,p.top)-f,right:Math.max(l.right,p.right),bottom:Math.max(l.bottom,p.bottom)+f});Wr(a,h.scrollLeft,h.scrollTop)}function Gr(a,l){Math.abs(a.doc.scrollTop-l)<2||(o||vu(a,{top:l}),Rg(a,l,!0),o&&vu(a),Qr(a,100))}function Rg(a,l,p){l=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,l)),!(a.display.scroller.scrollTop==l&&!p)&&(a.doc.scrollTop=l,a.display.scrollbars.setScrollTop(l),a.display.scroller.scrollTop!=l&&(a.display.scroller.scrollTop=l))}function ii(a,l,p,f){l=Math.max(0,Math.min(l,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((p?l==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-l)<2)&&!f)&&(a.doc.scrollLeft=l,Lg(a),a.display.scroller.scrollLeft!=l&&(a.display.scroller.scrollLeft=l),a.display.scrollbars.setScrollLeft(l))}function Kr(a){var l=a.display,p=l.gutters.offsetWidth,f=Math.round(a.doc.height+eu(a.display));return{clientHeight:l.scroller.clientHeight,viewHeight:l.wrapper.clientHeight,scrollWidth:l.scroller.scrollWidth,clientWidth:l.scroller.clientWidth,viewWidth:l.wrapper.clientWidth,barLeft:a.options.fixedGutter?p:0,docHeight:f,scrollHeight:f+oo(a)+l.barHeight,nativeBarWidth:l.nativeBarWidth,gutterWidth:p}}var ri=function(a,l,p){this.cm=p;var f=this.vert=V("div",[V("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),h=this.horiz=V("div",[V("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");f.tabIndex=h.tabIndex=-1,a(f),a(h),be(f,"scroll",function(){f.clientHeight&&l(f.scrollTop,"vertical")}),be(h,"scroll",function(){h.clientWidth&&l(h.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,u&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ri.prototype.update=function(a){var l=a.scrollWidth>a.clientWidth+1,p=a.scrollHeight>a.clientHeight+1,f=a.nativeBarWidth;if(p){this.vert.style.display="block",this.vert.style.bottom=l?f+"px":"0";var h=a.viewHeight-(l?f:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+h)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(l){this.horiz.style.display="block",this.horiz.style.right=p?f+"px":"0",this.horiz.style.left=a.barLeft+"px";var N=a.viewWidth-a.barLeft-(p?f:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+N)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(f==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:p?f:0,bottom:l?f:0}},ri.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ri.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ri.prototype.zeroWidthHack=function(){var a=O&&!v?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new he,this.disableVert=new he},ri.prototype.enableZeroWidthBar=function(a,l,p){a.style.visibility="";function f(){var h=a.getBoundingClientRect(),N=p=="vert"?document.elementFromPoint(h.right-1,(h.top+h.bottom)/2):document.elementFromPoint((h.right+h.left)/2,h.bottom-1);N!=a?a.style.visibility="hidden":l.set(1e3,f)}l.set(1e3,f)},ri.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Yr=function(){};Yr.prototype.update=function(){return{bottom:0,right:0}},Yr.prototype.setScrollLeft=function(){},Yr.prototype.setScrollTop=function(){},Yr.prototype.clear=function(){};function Yi(a,l){l||(l=Kr(a));var p=a.display.barWidth,f=a.display.barHeight;Ig(a,l);for(var h=0;h<4&&p!=a.display.barWidth||f!=a.display.barHeight;h++)p!=a.display.barWidth&&a.options.lineWrapping&&$l(a),Ig(a,Kr(a)),p=a.display.barWidth,f=a.display.barHeight}function Ig(a,l){var p=a.display,f=p.scrollbars.update(l);p.sizer.style.paddingRight=(p.barWidth=f.right)+"px",p.sizer.style.paddingBottom=(p.barHeight=f.bottom)+"px",p.heightForcer.style.borderBottom=f.bottom+"px solid transparent",f.right&&f.bottom?(p.scrollbarFiller.style.display="block",p.scrollbarFiller.style.height=f.bottom+"px",p.scrollbarFiller.style.width=f.right+"px"):p.scrollbarFiller.style.display="",f.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(p.gutterFiller.style.display="block",p.gutterFiller.style.height=f.bottom+"px",p.gutterFiller.style.width=l.gutterWidth+"px"):p.gutterFiller.style.display=""}var Fg={native:ri,null:Yr};function Pg(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&L(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Fg[a.options.scrollbarStyle](function(l){a.display.wrapper.insertBefore(l,a.display.scrollbarFiller),be(l,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),l.setAttribute("cm-not-content","true")},function(l,p){p=="horizontal"?ii(a,l):Gr(a,l)},a),a.display.scrollbars.addClass&&J(a.display.wrapper,a.display.scrollbars.addClass)}var NP=0;function ai(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++NP,markArrays:null},rP(a.curOp)}function li(a){var l=a.curOp;l&&lP(l,function(p){for(var f=0;f<p.ops.length;f++)p.ops[f].cm.curOp=null;TP(p)})}function TP(a){for(var l=a.ops,p=0;p<l.length;p++)OP(l[p]);for(var f=0;f<l.length;f++)DP(l[f]);for(var h=0;h<l.length;h++)BP(l[h]);for(var N=0;N<l.length;N++)$P(l[N]);for(var P=0;P<l.length;P++)VP(l[P])}function OP(a){var l=a.cm,p=l.display;IP(l),a.updateMaxLine&&Zc(l),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<p.viewFrom||a.scrollToPos.to.line>=p.viewTo)||p.maxLineChanged&&l.options.lineWrapping,a.update=a.mustUpdate&&new Il(l,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function DP(a){a.updatedDisplay=a.mustUpdate&&gu(a.cm,a.update)}function BP(a){var l=a.cm,p=l.display;a.updatedDisplay&&$l(l),a.barMeasure=Kr(l),p.maxLineChanged&&!l.options.lineWrapping&&(a.adjustWidthTo=yg(l,p.maxLine,p.maxLine.text.length).left+3,l.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(p.scroller.clientWidth,p.sizer.offsetLeft+a.adjustWidthTo+oo(l)+l.display.barWidth),a.maxScrollLeft=Math.max(0,p.sizer.offsetLeft+a.adjustWidthTo-ei(l))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=p.input.prepareSelection())}function $P(a){var l=a.cm;a.adjustWidthTo!=null&&(l.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<l.doc.scrollLeft&&ii(l,Math.min(l.display.scroller.scrollLeft,a.maxScrollLeft),!0),l.display.maxLineChanged=!1);var p=a.focus&&a.focus==Z(pe(l));a.preparedSelection&&l.display.input.showSelection(a.preparedSelection,p),(a.updatedDisplay||a.startHeight!=l.doc.height)&&Yi(l,a.barMeasure),a.updatedDisplay&&bu(l,a.barMeasure),a.selectionChanged&&uu(l),l.state.focused&&a.updateInput&&l.display.input.reset(a.typing),p&&Bg(a.cm)}function VP(a){var l=a.cm,p=l.display,f=l.doc;if(a.updatedDisplay&&Mg(l,a.update),p.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(p.wheelStartX=p.wheelStartY=null),a.scrollTop!=null&&Rg(l,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&ii(l,a.scrollLeft,!0,!0),a.scrollToPos){var h=SP(l,nt(f,a.scrollToPos.from),nt(f,a.scrollToPos.to),a.scrollToPos.margin);AP(l,h)}var N=a.maybeHiddenMarkers,P=a.maybeUnhiddenMarkers;if(N)for(var H=0;H<N.length;++H)N[H].lines.length||We(N[H],"hide");if(P)for(var G=0;G<P.length;++G)P[G].lines.length&&We(P[G],"unhide");p.wrapper.offsetHeight&&(f.scrollTop=l.display.scroller.scrollTop),a.changeObjs&&We(l,"changes",l,a.changeObjs),a.update&&a.update.finish()}function vn(a,l){if(a.curOp)return l();ai(a);try{return l()}finally{li(a)}}function Wt(a,l){return function(){if(a.curOp)return l.apply(a,arguments);ai(a);try{return l.apply(a,arguments)}finally{li(a)}}}function tn(a){return function(){if(this.curOp)return a.apply(this,arguments);ai(this);try{return a.apply(this,arguments)}finally{li(this)}}}function Gt(a){return function(){var l=this.cm;if(!l||l.curOp)return a.apply(this,arguments);ai(l);try{return a.apply(this,arguments)}finally{li(l)}}}function Qr(a,l){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(l,ye(RP,a))}function RP(a){var l=a.doc;if(!(l.highlightFrontier>=a.display.viewTo)){var p=+new Date+a.options.workTime,f=Pr(a,l.highlightFrontier),h=[];l.iter(f.line,Math.min(l.first+l.size,a.display.viewTo+500),function(N){if(f.line>=a.display.viewFrom){var P=N.styles,H=N.text.length>a.options.maxHighlightLength?mo(l.mode,f.state):null,G=Gm(a,N,f,!0);H&&(f.state=H),N.styles=G.styles;var X=N.styleClasses,ne=G.classes;ne?N.styleClasses=ne:X&&(N.styleClasses=null);for(var re=!P||P.length!=N.styles.length||X!=ne&&(!X||!ne||X.bgClass!=ne.bgClass||X.textClass!=ne.textClass),ve=0;!re&&ve<P.length;++ve)re=P[ve]!=N.styles[ve];re&&h.push(f.line),N.stateAfter=f.save(),f.nextLine()}else N.text.length<=a.options.maxHighlightLength&&Gc(a,N.text,f),N.stateAfter=f.line%5==0?f.save():null,f.nextLine();if(+new Date>p)return Qr(a,a.options.workDelay),!0}),l.highlightFrontier=f.line,l.modeFrontier=Math.max(l.modeFrontier,f.line),h.length&&vn(a,function(){for(var N=0;N<h.length;N++)Fo(a,h[N],"text")})}}var Il=function(a,l,p){var f=a.display;this.viewport=l,this.visible=Vl(f,a.doc,l),this.editorIsHidden=!f.wrapper.offsetWidth,this.wrapperHeight=f.wrapper.clientHeight,this.wrapperWidth=f.wrapper.clientWidth,this.oldDisplayWidth=ei(a),this.force=p,this.dims=lu(a),this.events=[]};Il.prototype.signal=function(a,l){Tt(a,l)&&this.events.push(arguments)},Il.prototype.finish=function(){for(var a=0;a<this.events.length;a++)We.apply(null,this.events[a])};function IP(a){var l=a.display;!l.scrollbarsClipped&&l.scroller.offsetWidth&&(l.nativeBarWidth=l.scroller.offsetWidth-l.scroller.clientWidth,l.heightForcer.style.height=oo(a)+"px",l.sizer.style.marginBottom=-l.nativeBarWidth+"px",l.sizer.style.borderRightWidth=oo(a)+"px",l.scrollbarsClipped=!0)}function FP(a){if(a.hasFocus())return null;var l=Z(pe(a));if(!l||!j(a.display.lineDiv,l))return null;var p={activeElt:l};if(window.getSelection){var f=se(a).getSelection();f.anchorNode&&f.extend&&j(a.display.lineDiv,f.anchorNode)&&(p.anchorNode=f.anchorNode,p.anchorOffset=f.anchorOffset,p.focusNode=f.focusNode,p.focusOffset=f.focusOffset)}return p}function PP(a){if(!(!a||!a.activeElt||a.activeElt==Z(a.activeElt.ownerDocument))&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&j(document.body,a.anchorNode)&&j(document.body,a.focusNode))){var l=a.activeElt.ownerDocument,p=l.defaultView.getSelection(),f=l.createRange();f.setEnd(a.anchorNode,a.anchorOffset),f.collapse(!1),p.removeAllRanges(),p.addRange(f),p.extend(a.focusNode,a.focusOffset)}}function gu(a,l){var p=a.display,f=a.doc;if(l.editorIsHidden)return Po(a),!1;if(!l.force&&l.visible.from>=p.viewFrom&&l.visible.to<=p.viewTo&&(p.updateLineNumbers==null||p.updateLineNumbers>=p.viewTo)&&p.renderedView==p.view&&Og(a)==0)return!1;jg(a)&&(Po(a),l.dims=lu(a));var h=f.first+f.size,N=Math.max(l.visible.from-a.options.viewportMargin,f.first),P=Math.min(h,l.visible.to+a.options.viewportMargin);p.viewFrom<N&&N-p.viewFrom<20&&(N=Math.max(f.first,p.viewFrom)),p.viewTo>P&&p.viewTo-P<20&&(P=Math.min(h,p.viewTo)),vo&&(N=Xc(a.doc,N),P=ag(a.doc,P));var H=N!=p.viewFrom||P!=p.viewTo||p.lastWrapHeight!=l.wrapperHeight||p.lastWrapWidth!=l.wrapperWidth;wP(a,N,P),p.viewOffset=yo(Ge(a.doc,p.viewFrom)),a.display.mover.style.top=p.viewOffset+"px";var G=Og(a);if(!H&&G==0&&!l.force&&p.renderedView==p.view&&(p.updateLineNumbers==null||p.updateLineNumbers>=p.viewTo))return!1;var X=FP(a);return G>4&&(p.lineDiv.style.display="none"),MP(a,p.updateLineNumbers,l.dims),G>4&&(p.lineDiv.style.display=""),p.renderedView=p.view,PP(X),U(p.cursorDiv),U(p.selectionDiv),p.gutters.style.height=p.sizer.style.minHeight=0,H&&(p.lastWrapHeight=l.wrapperHeight,p.lastWrapWidth=l.wrapperWidth,Qr(a,400)),p.updateLineNumbers=null,!0}function Mg(a,l){for(var p=l.viewport,f=!0;;f=!1){if(!f||!a.options.lineWrapping||l.oldDisplayWidth==ei(a)){if(p&&p.top!=null&&(p={top:Math.min(a.doc.height+eu(a.display)-tu(a),p.top)}),l.visible=Vl(a.display,a.doc,p),l.visible.from>=a.display.viewFrom&&l.visible.to<=a.display.viewTo)break}else f&&(l.visible=Vl(a.display,a.doc,p));if(!gu(a,l))break;$l(a);var h=Kr(a);Ur(a),Yi(a,h),bu(a,h),l.force=!1}l.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(l.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function vu(a,l){var p=new Il(a,l);if(gu(a,p)){$l(a),Mg(a,p);var f=Kr(a);Ur(a),Yi(a,f),bu(a,f),p.finish()}}function MP(a,l,p){var f=a.display,h=a.options.lineNumbers,N=f.lineDiv,P=N.firstChild;function H(_e){var xe=_e.nextSibling;return y&&O&&a.display.currentWheelTarget==_e?_e.style.display="none":_e.parentNode.removeChild(_e),xe}for(var G=f.view,X=f.viewFrom,ne=0;ne<G.length;ne++){var re=G[ne];if(!re.hidden)if(!re.node||re.node.parentNode!=N){var ve=fP(a,re,X,p);N.insertBefore(ve,P)}else{for(;P!=re.node;)P=H(P);var me=h&&l!=null&&l<=X&&re.lineNumber;re.changes&&($(re.changes,"gutter")>-1&&(me=!1),ug(a,re,X,p)),me&&(U(re.lineNumber),re.lineNumber.appendChild(document.createTextNode(ae(a.options,X)))),P=re.node.nextSibling}X+=re.size}for(;P;)P=H(P)}function yu(a){var l=a.gutters.offsetWidth;a.sizer.style.marginLeft=l+"px",Ut(a,"gutterChanged",a)}function bu(a,l){a.display.sizer.style.minHeight=l.docHeight+"px",a.display.heightForcer.style.top=l.docHeight+"px",a.display.gutters.style.height=l.docHeight+a.display.barHeight+oo(a)+"px"}function Lg(a){var l=a.display,p=l.view;if(!(!l.alignWidgets&&(!l.gutters.firstChild||!a.options.fixedGutter))){for(var f=su(l)-l.scroller.scrollLeft+a.doc.scrollLeft,h=l.gutters.offsetWidth,N=f+"px",P=0;P<p.length;P++)if(!p[P].hidden){a.options.fixedGutter&&(p[P].gutter&&(p[P].gutter.style.left=N),p[P].gutterBackground&&(p[P].gutterBackground.style.left=N));var H=p[P].alignable;if(H)for(var G=0;G<H.length;G++)H[G].style.left=N}a.options.fixedGutter&&(l.gutters.style.left=f+h+"px")}}function jg(a){if(!a.options.lineNumbers)return!1;var l=a.doc,p=ae(a.options,l.first+l.size-1),f=a.display;if(p.length!=f.lineNumChars){var h=f.measure.appendChild(V("div",[V("div",p)],"CodeMirror-linenumber CodeMirror-gutter-elt")),N=h.firstChild.offsetWidth,P=h.offsetWidth-N;return f.lineGutter.style.width="",f.lineNumInnerWidth=Math.max(N,f.lineGutter.offsetWidth-P)+1,f.lineNumWidth=f.lineNumInnerWidth+P,f.lineNumChars=f.lineNumInnerWidth?p.length:-1,f.lineGutter.style.width=f.lineNumWidth+"px",yu(a.display),!0}return!1}function Cu(a,l){for(var p=[],f=!1,h=0;h<a.length;h++){var N=a[h],P=null;if(typeof N!="string"&&(P=N.style,N=N.className),N=="CodeMirror-linenumbers")if(l)f=!0;else continue;p.push({className:N,style:P})}return l&&!f&&p.push({className:"CodeMirror-linenumbers",style:null}),p}function zg(a){var l=a.gutters,p=a.gutterSpecs;U(l),a.lineGutter=null;for(var f=0;f<p.length;++f){var h=p[f],N=h.className,P=h.style,H=l.appendChild(V("div",null,"CodeMirror-gutter "+N));P&&(H.style.cssText=P),N=="CodeMirror-linenumbers"&&(a.lineGutter=H,H.style.width=(a.lineNumWidth||1)+"px")}l.style.display=p.length?"":"none",yu(a)}function Xr(a){zg(a.display),ln(a),Lg(a)}function LP(a,l,p,f){var h=this;this.input=p,h.scrollbarFiller=V("div",null,"CodeMirror-scrollbar-filler"),h.scrollbarFiller.setAttribute("cm-not-content","true"),h.gutterFiller=V("div",null,"CodeMirror-gutter-filler"),h.gutterFiller.setAttribute("cm-not-content","true"),h.lineDiv=k("div",null,"CodeMirror-code"),h.selectionDiv=V("div",null,null,"position: relative; z-index: 1"),h.cursorDiv=V("div",null,"CodeMirror-cursors"),h.measure=V("div",null,"CodeMirror-measure"),h.lineMeasure=V("div",null,"CodeMirror-measure"),h.lineSpace=k("div",[h.measure,h.lineMeasure,h.selectionDiv,h.cursorDiv,h.lineDiv],null,"position: relative; outline: none");var N=k("div",[h.lineSpace],"CodeMirror-lines");h.mover=V("div",[N],null,"position: relative"),h.sizer=V("div",[h.mover],"CodeMirror-sizer"),h.sizerWidth=null,h.heightForcer=V("div",null,null,"position: absolute; height: "+Y+"px; width: 1px;"),h.gutters=V("div",null,"CodeMirror-gutters"),h.lineGutter=null,h.scroller=V("div",[h.sizer,h.heightForcer,h.gutters],"CodeMirror-scroll"),h.scroller.setAttribute("tabIndex","-1"),h.wrapper=V("div",[h.scrollbarFiller,h.gutterFiller,h.scroller],"CodeMirror"),h.wrapper.setAttribute("translate","no"),u&&g<8&&(h.gutters.style.zIndex=-1,h.scroller.style.paddingRight=0),!y&&!(o&&x)&&(h.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(h.wrapper):a(h.wrapper)),h.viewFrom=h.viewTo=l.first,h.reportedViewFrom=h.reportedViewTo=l.first,h.view=[],h.renderedView=null,h.externalMeasured=null,h.viewOffset=0,h.lastWrapHeight=h.lastWrapWidth=0,h.updateLineNumbers=null,h.nativeBarWidth=h.barHeight=h.barWidth=0,h.scrollbarsClipped=!1,h.lineNumWidth=h.lineNumInnerWidth=h.lineNumChars=null,h.alignWidgets=!1,h.cachedCharWidth=h.cachedTextHeight=h.cachedPaddingH=null,h.maxLine=null,h.maxLineLength=0,h.maxLineChanged=!1,h.wheelDX=h.wheelDY=h.wheelStartX=h.wheelStartY=null,h.shift=!1,h.selForContextMenu=null,h.activeTouch=null,h.gutterSpecs=Cu(f.gutters,f.lineNumbers),zg(h),p.init(h)}var Fl=0,Co=null;u?Co=-.53:o?Co=15:w?Co=-.7:_&&(Co=-1/3);function Hg(a){var l=a.wheelDeltaX,p=a.wheelDeltaY;return l==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(l=a.detail),p==null&&a.detail&&a.axis==a.VERTICAL_AXIS?p=a.detail:p==null&&(p=a.wheelDelta),{x:l,y:p}}function jP(a){var l=Hg(a);return l.x*=Co,l.y*=Co,l}function Ug(a,l){w&&A==102&&(a.display.chromeScrollHack==null?a.display.sizer.style.pointerEvents="none":clearTimeout(a.display.chromeScrollHack),a.display.chromeScrollHack=setTimeout(function(){a.display.chromeScrollHack=null,a.display.sizer.style.pointerEvents=""},100));var p=Hg(l),f=p.x,h=p.y,N=Co;l.deltaMode===0&&(f=l.deltaX,h=l.deltaY,N=1);var P=a.display,H=P.scroller,G=H.scrollWidth>H.clientWidth,X=H.scrollHeight>H.clientHeight;if(!!(f&&G||h&&X)){if(h&&O&&y){e:for(var ne=l.target,re=P.view;ne!=H;ne=ne.parentNode)for(var ve=0;ve<re.length;ve++)if(re[ve].node==ne){a.display.currentWheelTarget=ne;break e}}if(f&&!o&&!E&&N!=null){h&&X&&Gr(a,Math.max(0,H.scrollTop+h*N)),ii(a,Math.max(0,H.scrollLeft+f*N)),(!h||h&&X)&&mt(l),P.wheelStartX=null;return}if(h&&N!=null){var me=h*N,_e=a.doc.scrollTop,xe=_e+P.wrapper.clientHeight;me<0?_e=Math.max(0,_e+me-50):xe=Math.min(a.doc.height,xe+me+50),vu(a,{top:_e,bottom:xe})}Fl<20&&l.deltaMode!==0&&(P.wheelStartX==null?(P.wheelStartX=H.scrollLeft,P.wheelStartY=H.scrollTop,P.wheelDX=f,P.wheelDY=h,setTimeout(function(){if(P.wheelStartX!=null){var Te=H.scrollLeft-P.wheelStartX,Be=H.scrollTop-P.wheelStartY,Le=Be&&P.wheelDY&&Be/P.wheelDY||Te&&P.wheelDX&&Te/P.wheelDX;P.wheelStartX=P.wheelStartY=null,Le&&(Co=(Co*Fl+Le)/(Fl+1),++Fl)}},200)):(P.wheelDX+=f,P.wheelDY+=h))}}var Nn=function(a,l){this.ranges=a,this.primIndex=l};Nn.prototype.primary=function(){return this.ranges[this.primIndex]},Nn.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var l=0;l<this.ranges.length;l++){var p=this.ranges[l],f=a.ranges[l];if(!tt(p.anchor,f.anchor)||!tt(p.head,f.head))return!1}return!0},Nn.prototype.deepCopy=function(){for(var a=[],l=0;l<this.ranges.length;l++)a[l]=new vt(ft(this.ranges[l].anchor),ft(this.ranges[l].head));return new Nn(a,this.primIndex)},Nn.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Nn.prototype.contains=function(a,l){l||(l=a);for(var p=0;p<this.ranges.length;p++){var f=this.ranges[p];if(Ce(l,f.from())>=0&&Ce(a,f.to())<=0)return p}return-1};var vt=function(a,l){this.anchor=a,this.head=l};vt.prototype.from=function(){return Lt(this.anchor,this.head)},vt.prototype.to=function(){return ht(this.anchor,this.head)},vt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Un(a,l,p){var f=a&&a.options.selectionsMayTouch,h=l[p];l.sort(function(ve,me){return Ce(ve.from(),me.from())}),p=$(l,h);for(var N=1;N<l.length;N++){var P=l[N],H=l[N-1],G=Ce(H.to(),P.from());if(f&&!P.empty()?G>0:G>=0){var X=Lt(H.from(),P.from()),ne=ht(H.to(),P.to()),re=H.empty()?P.from()==P.head:H.from()==H.head;N<=p&&--p,l.splice(--N,2,new vt(re?ne:X,re?X:ne))}}return new Nn(l,p)}function Mo(a,l){return new Nn([new vt(a,l||a)],0)}function Lo(a){return a.text?ce(a.from.line+a.text.length-1,Se(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Wg(a,l){if(Ce(a,l.from)<0)return a;if(Ce(a,l.to)<=0)return Lo(l);var p=a.line+l.text.length-(l.to.line-l.from.line)-1,f=a.ch;return a.line==l.to.line&&(f+=Lo(l).ch-l.to.ch),ce(p,f)}function _u(a,l){for(var p=[],f=0;f<a.sel.ranges.length;f++){var h=a.sel.ranges[f];p.push(new vt(Wg(h.anchor,l),Wg(h.head,l)))}return Un(a.cm,p,a.sel.primIndex)}function Gg(a,l,p){return a.line==l.line?ce(p.line,a.ch-l.ch+p.ch):ce(p.line+(a.line-l.line),a.ch)}function zP(a,l,p){for(var f=[],h=ce(a.first,0),N=h,P=0;P<l.length;P++){var H=l[P],G=Gg(H.from,h,N),X=Gg(Lo(H),h,N);if(h=H.to,N=X,p=="around"){var ne=a.sel.ranges[P],re=Ce(ne.head,ne.anchor)<0;f[P]=new vt(re?X:G,re?G:X)}else f[P]=new vt(G,G)}return new Nn(f,a.sel.primIndex)}function wu(a){a.doc.mode=ho(a.options,a.doc.modeOption),Jr(a)}function Jr(a){a.doc.iter(function(l){l.stateAfter&&(l.stateAfter=null),l.styles&&(l.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,Qr(a,100),a.state.modeGen++,a.curOp&&ln(a)}function Kg(a,l){return l.from.ch==0&&l.to.ch==0&&Se(l.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Eu(a,l,p,f){function h(Le){return p?p[Le]:null}function N(Le,$e,He){XF(Le,$e,He,f),Ut(Le,"change",Le,l)}function P(Le,$e){for(var He=[],Je=Le;Je<$e;++Je)He.push(new ji(X[Je],h(Je),f));return He}var H=l.from,G=l.to,X=l.text,ne=Ge(a,H.line),re=Ge(a,G.line),ve=Se(X),me=h(X.length-1),_e=G.line-H.line;if(l.full)a.insert(0,P(0,X.length)),a.remove(X.length,a.size-X.length);else if(Kg(a,l)){var xe=P(0,X.length-1);N(re,re.text,me),_e&&a.remove(H.line,_e),xe.length&&a.insert(H.line,xe)}else if(ne==re)if(X.length==1)N(ne,ne.text.slice(0,H.ch)+ve+ne.text.slice(G.ch),me);else{var Te=P(1,X.length-1);Te.push(new ji(ve+ne.text.slice(G.ch),me,f)),N(ne,ne.text.slice(0,H.ch)+X[0],h(0)),a.insert(H.line+1,Te)}else if(X.length==1)N(ne,ne.text.slice(0,H.ch)+X[0]+re.text.slice(G.ch),h(0)),a.remove(H.line+1,_e);else{N(ne,ne.text.slice(0,H.ch)+X[0],h(0)),N(re,ve+re.text.slice(G.ch),me);var Be=P(1,X.length-1);_e>1&&a.remove(H.line+1,_e-1),a.insert(H.line+1,Be)}Ut(a,"change",a,l)}function jo(a,l,p){function f(h,N,P){if(h.linked)for(var H=0;H<h.linked.length;++H){var G=h.linked[H];if(G.doc!=N){var X=P&&G.sharedHist;p&&!X||(l(G.doc,X),f(G.doc,h,X))}}}f(a,null,!0)}function Yg(a,l){if(l.cm)throw new Error("This document is already in use.");a.doc=l,l.cm=a,du(a),wu(a),Qg(a),a.options.direction=l.direction,a.options.lineWrapping||Zc(a),a.options.mode=l.modeOption,ln(a)}function Qg(a){(a.doc.direction=="rtl"?J:L)(a.display.lineDiv,"CodeMirror-rtl")}function HP(a){vn(a,function(){Qg(a),ln(a)})}function Pl(a){this.done=[],this.undone=[],this.undoDepth=a?a.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a?a.maxGeneration:1}function Au(a,l){var p={from:ft(l.from),to:Lo(l),text:go(a,l.from,l.to)};return Zg(a,p,l.from.line,l.to.line+1),jo(a,function(f){return Zg(f,p,l.from.line,l.to.line+1)},!0),p}function Xg(a){for(;a.length;){var l=Se(a);if(l.ranges)a.pop();else break}}function UP(a,l){if(l)return Xg(a.done),Se(a.done);if(a.done.length&&!Se(a.done).ranges)return Se(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Se(a.done)}function Jg(a,l,p,f){var h=a.history;h.undone.length=0;var N=+new Date,P,H;if((h.lastOp==f||h.lastOrigin==l.origin&&l.origin&&(l.origin.charAt(0)=="+"&&h.lastModTime>N-(a.cm?a.cm.options.historyEventDelay:500)||l.origin.charAt(0)=="*"))&&(P=UP(h,h.lastOp==f)))H=Se(P.changes),Ce(l.from,l.to)==0&&Ce(l.from,H.to)==0?H.to=Lo(l):P.changes.push(Au(a,l));else{var G=Se(h.done);for((!G||!G.ranges)&&Ml(a.sel,h.done),P={changes:[Au(a,l)],generation:h.generation},h.done.push(P);h.done.length>h.undoDepth;)h.done.shift(),h.done[0].ranges||h.done.shift()}h.done.push(p),h.generation=++h.maxGeneration,h.lastModTime=h.lastSelTime=N,h.lastOp=h.lastSelOp=f,h.lastOrigin=h.lastSelOrigin=l.origin,H||We(a,"historyAdded")}function WP(a,l,p,f){var h=l.charAt(0);return h=="*"||h=="+"&&p.ranges.length==f.ranges.length&&p.somethingSelected()==f.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function GP(a,l,p,f){var h=a.history,N=f&&f.origin;p==h.lastSelOp||N&&h.lastSelOrigin==N&&(h.lastModTime==h.lastSelTime&&h.lastOrigin==N||WP(a,N,Se(h.done),l))?h.done[h.done.length-1]=l:Ml(l,h.done),h.lastSelTime=+new Date,h.lastSelOrigin=N,h.lastSelOp=p,f&&f.clearRedo!==!1&&Xg(h.undone)}function Ml(a,l){var p=Se(l);p&&p.ranges&&p.equals(a)||l.push(a)}function Zg(a,l,p,f){var h=l["spans_"+a.id],N=0;a.iter(Math.max(a.first,p),Math.min(a.first+a.size,f),function(P){P.markedSpans&&((h||(h=l["spans_"+a.id]={}))[N]=P.markedSpans),++N})}function KP(a){if(!a)return null;for(var l,p=0;p<a.length;++p)a[p].marker.explicitlyCleared?l||(l=a.slice(0,p)):l&&l.push(a[p]);return l?l.length?l:null:a}function YP(a,l){var p=l["spans_"+a.id];if(!p)return null;for(var f=[],h=0;h<l.text.length;++h)f.push(KP(p[h]));return f}function qg(a,l){var p=YP(a,l),f=Yc(a,l);if(!p)return f;if(!f)return p;for(var h=0;h<p.length;++h){var N=p[h],P=f[h];if(N&&P){e:for(var H=0;H<P.length;++H){for(var G=P[H],X=0;X<N.length;++X)if(N[X].marker==G.marker)continue e;N.push(G)}}else P&&(p[h]=P)}return p}function Qi(a,l,p){for(var f=[],h=0;h<a.length;++h){var N=a[h];if(N.ranges){f.push(p?Nn.prototype.deepCopy.call(N):N);continue}var P=N.changes,H=[];f.push({changes:H});for(var G=0;G<P.length;++G){var X=P[G],ne=void 0;if(H.push({from:X.from,to:X.to,text:X.text}),l)for(var re in X)(ne=re.match(/^spans_(\d+)$/))&&$(l,Number(ne[1]))>-1&&(Se(H)[re]=X[re],delete X[re])}}return f}function Su(a,l,p,f){if(f){var h=a.anchor;if(p){var N=Ce(l,h)<0;N!=Ce(p,h)<0?(h=l,l=p):N!=Ce(l,p)<0&&(l=p)}return new vt(h,l)}else return new vt(p||l,l)}function Ll(a,l,p,f,h){h==null&&(h=a.cm&&(a.cm.display.shift||a.extend)),Jt(a,new Nn([Su(a.sel.primary(),l,p,h)],0),f)}function ev(a,l,p){for(var f=[],h=a.cm&&(a.cm.display.shift||a.extend),N=0;N<a.sel.ranges.length;N++)f[N]=Su(a.sel.ranges[N],l[N],null,h);var P=Un(a.cm,f,a.sel.primIndex);Jt(a,P,p)}function xu(a,l,p,f){var h=a.sel.ranges.slice(0);h[l]=p,Jt(a,Un(a.cm,h,a.sel.primIndex),f)}function tv(a,l,p,f){Jt(a,Mo(l,p),f)}function QP(a,l,p){var f={ranges:l.ranges,update:function(h){this.ranges=[];for(var N=0;N<h.length;N++)this.ranges[N]=new vt(nt(a,h[N].anchor),nt(a,h[N].head))},origin:p&&p.origin};return We(a,"beforeSelectionChange",a,f),a.cm&&We(a.cm,"beforeSelectionChange",a.cm,f),f.ranges!=l.ranges?Un(a.cm,f.ranges,f.ranges.length-1):l}function nv(a,l,p){var f=a.history.done,h=Se(f);h&&h.ranges?(f[f.length-1]=l,jl(a,l,p)):Jt(a,l,p)}function Jt(a,l,p){jl(a,l,p),GP(a,a.sel,a.cm?a.cm.curOp.id:NaN,p)}function jl(a,l,p){(Tt(a,"beforeSelectionChange")||a.cm&&Tt(a.cm,"beforeSelectionChange"))&&(l=QP(a,l,p));var f=p&&p.bias||(Ce(l.primary().head,a.sel.primary().head)<0?-1:1);ov(a,rv(a,l,f,!0)),!(p&&p.scroll===!1)&&a.cm&&a.cm.getOption("readOnly")!="nocursor"&&Ki(a.cm)}function ov(a,l){l.equals(a.sel)||(a.sel=l,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,rn(a.cm)),Ut(a,"cursorActivity",a))}function iv(a){ov(a,rv(a,a.sel,null,!1))}function rv(a,l,p,f){for(var h,N=0;N<l.ranges.length;N++){var P=l.ranges[N],H=l.ranges.length==a.sel.ranges.length&&a.sel.ranges[N],G=zl(a,P.anchor,H&&H.anchor,p,f),X=P.head==P.anchor?G:zl(a,P.head,H&&H.head,p,f);(h||G!=P.anchor||X!=P.head)&&(h||(h=l.ranges.slice(0,N)),h[N]=new vt(G,X))}return h?Un(a.cm,h,l.primIndex):l}function Xi(a,l,p,f,h){var N=Ge(a,l.line);if(N.markedSpans)for(var P=0;P<N.markedSpans.length;++P){var H=N.markedSpans[P],G=H.marker,X="selectLeft"in G?!G.selectLeft:G.inclusiveLeft,ne="selectRight"in G?!G.selectRight:G.inclusiveRight;if((H.from==null||(X?H.from<=l.ch:H.from<l.ch))&&(H.to==null||(ne?H.to>=l.ch:H.to>l.ch))){if(h&&(We(G,"beforeCursorEnter"),G.explicitlyCleared))if(N.markedSpans){--P;continue}else break;if(!G.atomic)continue;if(p){var re=G.find(f<0?1:-1),ve=void 0;if((f<0?ne:X)&&(re=av(a,re,-f,re&&re.line==l.line?N:null)),re&&re.line==l.line&&(ve=Ce(re,p))&&(f<0?ve<0:ve>0))return Xi(a,re,l,f,h)}var me=G.find(f<0?-1:1);return(f<0?X:ne)&&(me=av(a,me,f,me.line==l.line?N:null)),me?Xi(a,me,l,f,h):null}}return l}function zl(a,l,p,f,h){var N=f||1,P=Xi(a,l,p,N,h)||!h&&Xi(a,l,p,N,!0)||Xi(a,l,p,-N,h)||!h&&Xi(a,l,p,-N,!0);return P||(a.cantEdit=!0,ce(a.first,0))}function av(a,l,p,f){return p<0&&l.ch==0?l.line>a.first?nt(a,ce(l.line-1)):null:p>0&&l.ch==(f||Ge(a,l.line)).text.length?l.line<a.first+a.size-1?ce(l.line+1,0):null:new ce(l.line,l.ch+p)}function lv(a){a.setSelection(ce(a.firstLine(),0),ce(a.lastLine()),K)}function sv(a,l,p){var f={canceled:!1,from:l.from,to:l.to,text:l.text,origin:l.origin,cancel:function(){return f.canceled=!0}};return p&&(f.update=function(h,N,P,H){h&&(f.from=nt(a,h)),N&&(f.to=nt(a,N)),P&&(f.text=P),H!==void 0&&(f.origin=H)}),We(a,"beforeChange",a,f),a.cm&&We(a.cm,"beforeChange",a.cm,f),f.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:f.from,to:f.to,text:f.text,origin:f.origin}}function Ji(a,l,p){if(a.cm){if(!a.cm.curOp)return Wt(a.cm,Ji)(a,l,p);if(a.cm.state.suppressEdits)return}if(!((Tt(a,"beforeChange")||a.cm&&Tt(a.cm,"beforeChange"))&&(l=sv(a,l,!0),!l))){var f=qm&&!p&&GF(a,l.from,l.to);if(f)for(var h=f.length-1;h>=0;--h)dv(a,{from:f[h].from,to:f[h].to,text:h?[""]:l.text,origin:l.origin});else dv(a,l)}}function dv(a,l){if(!(l.text.length==1&&l.text[0]==""&&Ce(l.from,l.to)==0)){var p=_u(a,l);Jg(a,l,p,a.cm?a.cm.curOp.id:NaN),Zr(a,l,p,Yc(a,l));var f=[];jo(a,function(h,N){!N&&$(f,h.history)==-1&&(pv(h.history,l),f.push(h.history)),Zr(h,l,null,Yc(h,l))})}}function Hl(a,l,p){var f=a.cm&&a.cm.state.suppressEdits;if(!(f&&!p)){for(var h=a.history,N,P=a.sel,H=l=="undo"?h.done:h.undone,G=l=="undo"?h.undone:h.done,X=0;X<H.length&&(N=H[X],!(p?N.ranges&&!N.equals(a.sel):!N.ranges));X++);if(X!=H.length){for(h.lastOrigin=h.lastSelOrigin=null;;)if(N=H.pop(),N.ranges){if(Ml(N,G),p&&!N.equals(a.sel)){Jt(a,N,{clearRedo:!1});return}P=N}else if(f){H.push(N);return}else break;var ne=[];Ml(P,G),G.push({changes:ne,generation:h.generation}),h.generation=N.generation||++h.maxGeneration;for(var re=Tt(a,"beforeChange")||a.cm&&Tt(a.cm,"beforeChange"),ve=function(xe){var Te=N.changes[xe];if(Te.origin=l,re&&!sv(a,Te,!1))return H.length=0,{};ne.push(Au(a,Te));var Be=xe?_u(a,Te):Se(H);Zr(a,Te,Be,qg(a,Te)),!xe&&a.cm&&a.cm.scrollIntoView({from:Te.from,to:Lo(Te)});var Le=[];jo(a,function($e,He){!He&&$(Le,$e.history)==-1&&(pv($e.history,Te),Le.push($e.history)),Zr($e,Te,null,qg($e,Te))})},me=N.changes.length-1;me>=0;--me){var _e=ve(me);if(_e)return _e.v}}}}function cv(a,l){if(l!=0&&(a.first+=l,a.sel=new Nn(ke(a.sel.ranges,function(h){return new vt(ce(h.anchor.line+l,h.anchor.ch),ce(h.head.line+l,h.head.ch))}),a.sel.primIndex),a.cm)){ln(a.cm,a.first,a.first-l,l);for(var p=a.cm.display,f=p.viewFrom;f<p.viewTo;f++)Fo(a.cm,f,"gutter")}}function Zr(a,l,p,f){if(a.cm&&!a.cm.curOp)return Wt(a.cm,Zr)(a,l,p,f);if(l.to.line<a.first){cv(a,l.text.length-1-(l.to.line-l.from.line));return}if(!(l.from.line>a.lastLine())){if(l.from.line<a.first){var h=l.text.length-1-(a.first-l.from.line);cv(a,h),l={from:ce(a.first,0),to:ce(l.to.line+h,l.to.ch),text:[Se(l.text)],origin:l.origin}}var N=a.lastLine();l.to.line>N&&(l={from:l.from,to:ce(N,Ge(a,N).text.length),text:[l.text[0]],origin:l.origin}),l.removed=go(a,l.from,l.to),p||(p=_u(a,l)),a.cm?XP(a.cm,l,f):Eu(a,l,f),jl(a,p,K),a.cantEdit&&zl(a,ce(a.firstLine(),0))&&(a.cantEdit=!1)}}function XP(a,l,p){var f=a.doc,h=a.display,N=l.from,P=l.to,H=!1,G=N.line;a.options.lineWrapping||(G=gt(zn(Ge(f,N.line))),f.iter(G,P.line+1,function(me){if(me==h.maxLine)return H=!0,!0})),f.sel.contains(l.from,l.to)>-1&&rn(a),Eu(f,l,p,Tg(a)),a.options.lineWrapping||(f.iter(G,N.line+l.text.length,function(me){var _e=xl(me);_e>h.maxLineLength&&(h.maxLine=me,h.maxLineLength=_e,h.maxLineChanged=!0,H=!1)}),H&&(a.curOp.updateMaxLine=!0)),MF(f,N.line),Qr(a,400);var X=l.text.length-(P.line-N.line)-1;l.full?ln(a):N.line==P.line&&l.text.length==1&&!Kg(a.doc,l)?Fo(a,N.line,"text"):ln(a,N.line,P.line+1,X);var ne=Tt(a,"changes"),re=Tt(a,"change");if(re||ne){var ve={from:N,to:P,text:l.text,removed:l.removed,origin:l.origin};re&&Ut(a,"change",a,ve),ne&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(ve)}a.display.selForContextMenu=null}function Zi(a,l,p,f,h){var N;f||(f=p),Ce(f,p)<0&&(N=[f,p],p=N[0],f=N[1]),typeof l=="string"&&(l=a.splitLines(l)),Ji(a,{from:p,to:f,text:l,origin:h})}function uv(a,l,p,f){p<a.line?a.line+=f:l<a.line&&(a.line=l,a.ch=0)}function fv(a,l,p,f){for(var h=0;h<a.length;++h){var N=a[h],P=!0;if(N.ranges){N.copied||(N=a[h]=N.deepCopy(),N.copied=!0);for(var H=0;H<N.ranges.length;H++)uv(N.ranges[H].anchor,l,p,f),uv(N.ranges[H].head,l,p,f);continue}for(var G=0;G<N.changes.length;++G){var X=N.changes[G];if(p<X.from.line)X.from=ce(X.from.line+f,X.from.ch),X.to=ce(X.to.line+f,X.to.ch);else if(l<=X.to.line){P=!1;break}}P||(a.splice(0,h+1),h=0)}}function pv(a,l){var p=l.from.line,f=l.to.line,h=l.text.length-(f-p)-1;fv(a.done,p,f,h),fv(a.undone,p,f,h)}function qr(a,l,p,f){var h=l,N=l;return typeof l=="number"?N=Ge(a,kn(a,l)):h=gt(l),h==null?null:(f(N,h)&&a.cm&&Fo(a.cm,h,p),N)}function ea(a){this.lines=a,this.parent=null;for(var l=0,p=0;p<a.length;++p)a[p].parent=this,l+=a[p].height;this.height=l}ea.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,l){for(var p=a,f=a+l;p<f;++p){var h=this.lines[p];this.height-=h.height,JF(h),Ut(h,"delete")}this.lines.splice(a,l)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,l,p){this.height+=p,this.lines=this.lines.slice(0,a).concat(l).concat(this.lines.slice(a));for(var f=0;f<l.length;++f)l[f].parent=this},iterN:function(a,l,p){for(var f=a+l;a<f;++a)if(p(this.lines[a]))return!0}};function ta(a){this.children=a;for(var l=0,p=0,f=0;f<a.length;++f){var h=a[f];l+=h.chunkSize(),p+=h.height,h.parent=this}this.size=l,this.height=p,this.parent=null}ta.prototype={chunkSize:function(){return this.size},removeInner:function(a,l){this.size-=l;for(var p=0;p<this.children.length;++p){var f=this.children[p],h=f.chunkSize();if(a<h){var N=Math.min(l,h-a),P=f.height;if(f.removeInner(a,N),this.height-=P-f.height,h==N&&(this.children.splice(p--,1),f.parent=null),(l-=N)==0)break;a=0}else a-=h}if(this.size-l<25&&(this.children.length>1||!(this.children[0]instanceof ea))){var H=[];this.collapse(H),this.children=[new ea(H)],this.children[0].parent=this}},collapse:function(a){for(var l=0;l<this.children.length;++l)this.children[l].collapse(a)},insertInner:function(a,l,p){this.size+=l.length,this.height+=p;for(var f=0;f<this.children.length;++f){var h=this.children[f],N=h.chunkSize();if(a<=N){if(h.insertInner(a,l,p),h.lines&&h.lines.length>50){for(var P=h.lines.length%25+25,H=P;H<h.lines.length;){var G=new ea(h.lines.slice(H,H+=25));h.height-=G.height,this.children.splice(++f,0,G),G.parent=this}h.lines=h.lines.slice(0,P),this.maybeSpill()}break}a-=N}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var l=a.children.splice(a.children.length-5,5),p=new ta(l);if(a.parent){a.size-=p.size,a.height-=p.height;var h=$(a.parent.children,a);a.parent.children.splice(h+1,0,p)}else{var f=new ta(a.children);f.parent=a,a.children=[f,p],a=f}p.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,l,p){for(var f=0;f<this.children.length;++f){var h=this.children[f],N=h.chunkSize();if(a<N){var P=Math.min(l,N-a);if(h.iterN(a,P,p))return!0;if((l-=P)==0)break;a=0}else a-=N}}};var na=function(a,l,p){if(p)for(var f in p)p.hasOwnProperty(f)&&(this[f]=p[f]);this.doc=a,this.node=l};na.prototype.clear=function(){var a=this.doc.cm,l=this.line.widgets,p=this.line,f=gt(p);if(!(f==null||!l)){for(var h=0;h<l.length;++h)l[h]==this&&l.splice(h--,1);l.length||(p.widgets=null);var N=zr(this);Rn(p,Math.max(0,p.height-N)),a&&(vn(a,function(){hv(a,p,-N),Fo(a,f,"widget")}),Ut(a,"lineWidgetCleared",a,this,f))}},na.prototype.changed=function(){var a=this,l=this.height,p=this.doc.cm,f=this.line;this.height=null;var h=zr(this)-l;!h||(Io(this.doc,f)||Rn(f,f.height+h),p&&vn(p,function(){p.curOp.forceUpdate=!0,hv(p,f,h),Ut(p,"lineWidgetChanged",p,a,gt(f))}))},wt(na);function hv(a,l,p){yo(l)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&mu(a,p)}function JP(a,l,p,f){var h=new na(a,p,f),N=a.cm;return N&&h.noHScroll&&(N.display.alignWidgets=!0),qr(a,l,"widget",function(P){var H=P.widgets||(P.widgets=[]);if(h.insertAt==null?H.push(h):H.splice(Math.min(H.length,Math.max(0,h.insertAt)),0,h),h.line=P,N&&!Io(a,P)){var G=yo(P)<a.scrollTop;Rn(P,P.height+zr(h)),G&&mu(N,h.height),N.curOp.forceUpdate=!0}return!0}),N&&Ut(N,"lineWidgetAdded",N,h,typeof l=="number"?l:gt(l)),h}var mv=0,zo=function(a,l){this.lines=[],this.type=l,this.doc=a,this.id=++mv};zo.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,l=a&&!a.curOp;if(l&&ai(a),Tt(this,"clear")){var p=this.find();p&&Ut(this,"clear",p.from,p.to)}for(var f=null,h=null,N=0;N<this.lines.length;++N){var P=this.lines[N],H=Mr(P.markedSpans,this);a&&!this.collapsed?Fo(a,gt(P),"text"):a&&(H.to!=null&&(h=gt(P)),H.from!=null&&(f=gt(P))),P.markedSpans=zF(P.markedSpans,H),H.from==null&&this.collapsed&&!Io(this.doc,P)&&a&&Rn(P,Ui(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var G=0;G<this.lines.length;++G){var X=zn(this.lines[G]),ne=xl(X);ne>a.display.maxLineLength&&(a.display.maxLine=X,a.display.maxLineLength=ne,a.display.maxLineChanged=!0)}f!=null&&a&&this.collapsed&&ln(a,f,h+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&iv(a.doc)),a&&Ut(a,"markerCleared",a,this,f,h),l&&li(a),this.parent&&this.parent.clear()}},zo.prototype.find=function(a,l){a==null&&this.type=="bookmark"&&(a=1);for(var p,f,h=0;h<this.lines.length;++h){var N=this.lines[h],P=Mr(N.markedSpans,this);if(P.from!=null&&(p=ce(l?N:gt(N),P.from),a==-1))return p;if(P.to!=null&&(f=ce(l?N:gt(N),P.to),a==1))return f}return p&&{from:p,to:f}},zo.prototype.changed=function(){var a=this,l=this.find(-1,!0),p=this,f=this.doc.cm;!l||!f||vn(f,function(){var h=l.line,N=gt(l.line),P=nu(f,N);if(P&&(_g(P),f.curOp.selectionChanged=f.curOp.forceUpdate=!0),f.curOp.updateMaxLine=!0,!Io(p.doc,h)&&p.height!=null){var H=p.height;p.height=null;var G=zr(p)-H;G&&Rn(h,h.height+G)}Ut(f,"markerChanged",f,a)})},zo.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var l=this.doc.cm.curOp;(!l.maybeHiddenMarkers||$(l.maybeHiddenMarkers,this)==-1)&&(l.maybeUnhiddenMarkers||(l.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},zo.prototype.detachLine=function(a){if(this.lines.splice($(this.lines,a),1),!this.lines.length&&this.doc.cm){var l=this.doc.cm.curOp;(l.maybeHiddenMarkers||(l.maybeHiddenMarkers=[])).push(this)}},wt(zo);function qi(a,l,p,f,h){if(f&&f.shared)return ZP(a,l,p,f,h);if(a.cm&&!a.cm.curOp)return Wt(a.cm,qi)(a,l,p,f,h);var N=new zo(a,h),P=Ce(l,p);if(f&&fe(f,N,!1),P>0||P==0&&N.clearWhenEmpty!==!1)return N;if(N.replacedWith&&(N.collapsed=!0,N.widgetNode=k("span",[N.replacedWith],"CodeMirror-widget"),f.handleMouseEvents||N.widgetNode.setAttribute("cm-ignore-events","true"),f.insertLeft&&(N.widgetNode.insertLeft=!0)),N.collapsed){if(rg(a,l.line,l,p,N)||l.line!=p.line&&rg(a,p.line,l,p,N))throw new Error("Inserting collapsed marker partially overlapping an existing one");jF()}N.addToHistory&&Jg(a,{from:l,to:p,origin:"markText"},a.sel,NaN);var H=l.line,G=a.cm,X;if(a.iter(H,p.line+1,function(re){G&&N.collapsed&&!G.options.lineWrapping&&zn(re)==G.display.maxLine&&(X=!0),N.collapsed&&H!=l.line&&Rn(re,0),HF(re,new wl(N,H==l.line?l.ch:null,H==p.line?p.ch:null),a.cm&&a.cm.curOp),++H}),N.collapsed&&a.iter(l.line,p.line+1,function(re){Io(a,re)&&Rn(re,0)}),N.clearOnEnter&&be(N,"beforeCursorEnter",function(){return N.clear()}),N.readOnly&&(LF(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),N.collapsed&&(N.id=++mv,N.atomic=!0),G){if(X&&(G.curOp.updateMaxLine=!0),N.collapsed)ln(G,l.line,p.line+1);else if(N.className||N.startStyle||N.endStyle||N.css||N.attributes||N.title)for(var ne=l.line;ne<=p.line;ne++)Fo(G,ne,"text");N.atomic&&iv(G.doc),Ut(G,"markerAdded",G,N)}return N}var oa=function(a,l){this.markers=a,this.primary=l;for(var p=0;p<a.length;++p)a[p].parent=this};oa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Ut(this,"clear")}},oa.prototype.find=function(a,l){return this.primary.find(a,l)},wt(oa);function ZP(a,l,p,f,h){f=fe(f),f.shared=!1;var N=[qi(a,l,p,f,h)],P=N[0],H=f.widgetNode;return jo(a,function(G){H&&(f.widgetNode=H.cloneNode(!0)),N.push(qi(G,nt(G,l),nt(G,p),f,h));for(var X=0;X<G.linked.length;++X)if(G.linked[X].isParent)return;P=Se(N)}),new oa(N,P)}function gv(a){return a.findMarks(ce(a.first,0),a.clipPos(ce(a.lastLine())),function(l){return l.parent})}function qP(a,l){for(var p=0;p<l.length;p++){var f=l[p],h=f.find(),N=a.clipPos(h.from),P=a.clipPos(h.to);if(Ce(N,P)){var H=qi(a,N,P,f.primary,f.primary.type);f.markers.push(H),H.parent=f}}}function eM(a){for(var l=function(f){var h=a[f],N=[h.primary.doc];jo(h.primary.doc,function(G){return N.push(G)});for(var P=0;P<h.markers.length;P++){var H=h.markers[P];$(N,H.doc)==-1&&(H.parent=null,h.markers.splice(P--,1))}},p=0;p<a.length;p++)l(p)}var tM=0,sn=function(a,l,p,f,h){if(!(this instanceof sn))return new sn(a,l,p,f,h);p==null&&(p=0),ta.call(this,[new ea([new ji("",null)])]),this.first=p,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=p;var N=ce(p,0);this.sel=Mo(N),this.history=new Pl(null),this.id=++tM,this.modeOption=l,this.lineSep=f,this.direction=h=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),Eu(this,{from:N,to:N,text:a}),Jt(this,Mo(N),K)};sn.prototype=ge(ta.prototype,{constructor:sn,iter:function(a,l,p){p?this.iterN(a-this.first,l-a,p):this.iterN(this.first,this.first+this.size,a)},insert:function(a,l){for(var p=0,f=0;f<l.length;++f)p+=l[f].height;this.insertInner(a-this.first,l,p)},remove:function(a,l){this.removeInner(a-this.first,l)},getValue:function(a){var l=Li(this,this.first,this.first+this.size);return a===!1?l:l.join(a||this.lineSeparator())},setValue:Gt(function(a){var l=ce(this.first,0),p=this.first+this.size-1;Ji(this,{from:l,to:ce(p,Ge(this,p).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Wr(this.cm,0,0),Jt(this,Mo(l),K)}),replaceRange:function(a,l,p,f){l=nt(this,l),p=p?nt(this,p):l,Zi(this,a,l,p,f)},getRange:function(a,l,p){var f=go(this,nt(this,a),nt(this,l));return p===!1?f:p===""?f.join(""):f.join(p||this.lineSeparator())},getLine:function(a){var l=this.getLineHandle(a);return l&&l.text},getLineHandle:function(a){if(ee(this,a))return Ge(this,a)},getLineNumber:function(a){return gt(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Ge(this,a)),zn(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return nt(this,a)},getCursor:function(a){var l=this.sel.primary(),p;return a==null||a=="head"?p=l.head:a=="anchor"?p=l.anchor:a=="end"||a=="to"||a===!1?p=l.to():p=l.from(),p},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Gt(function(a,l,p){tv(this,nt(this,typeof a=="number"?ce(a,l||0):a),null,p)}),setSelection:Gt(function(a,l,p){tv(this,nt(this,a),nt(this,l||a),p)}),extendSelection:Gt(function(a,l,p){Ll(this,nt(this,a),l&&nt(this,l),p)}),extendSelections:Gt(function(a,l){ev(this,Wm(this,a),l)}),extendSelectionsBy:Gt(function(a,l){var p=ke(this.sel.ranges,a);ev(this,Wm(this,p),l)}),setSelections:Gt(function(a,l,p){if(!!a.length){for(var f=[],h=0;h<a.length;h++)f[h]=new vt(nt(this,a[h].anchor),nt(this,a[h].head||a[h].anchor));l==null&&(l=Math.min(a.length-1,this.sel.primIndex)),Jt(this,Un(this.cm,f,l),p)}}),addSelection:Gt(function(a,l,p){var f=this.sel.ranges.slice(0);f.push(new vt(nt(this,a),nt(this,l||a))),Jt(this,Un(this.cm,f,f.length-1),p)}),getSelection:function(a){for(var l=this.sel.ranges,p,f=0;f<l.length;f++){var h=go(this,l[f].from(),l[f].to());p=p?p.concat(h):h}return a===!1?p:p.join(a||this.lineSeparator())},getSelections:function(a){for(var l=[],p=this.sel.ranges,f=0;f<p.length;f++){var h=go(this,p[f].from(),p[f].to());a!==!1&&(h=h.join(a||this.lineSeparator())),l[f]=h}return l},replaceSelection:function(a,l,p){for(var f=[],h=0;h<this.sel.ranges.length;h++)f[h]=a;this.replaceSelections(f,l,p||"+input")},replaceSelections:Gt(function(a,l,p){for(var f=[],h=this.sel,N=0;N<h.ranges.length;N++){var P=h.ranges[N];f[N]={from:P.from(),to:P.to(),text:this.splitLines(a[N]),origin:p}}for(var H=l&&l!="end"&&zP(this,f,l),G=f.length-1;G>=0;G--)Ji(this,f[G]);H?nv(this,H):this.cm&&Ki(this.cm)}),undo:Gt(function(){Hl(this,"undo")}),redo:Gt(function(){Hl(this,"redo")}),undoSelection:Gt(function(){Hl(this,"undo",!0)}),redoSelection:Gt(function(){Hl(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,l=0,p=0,f=0;f<a.done.length;f++)a.done[f].ranges||++l;for(var h=0;h<a.undone.length;h++)a.undone[h].ranges||++p;return{undo:l,redo:p}},clearHistory:function(){var a=this;this.history=new Pl(this.history),jo(this,function(l){return l.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:Qi(this.history.done),undone:Qi(this.history.undone)}},setHistory:function(a){var l=this.history=new Pl(this.history);l.done=Qi(a.done.slice(0),null,!0),l.undone=Qi(a.undone.slice(0),null,!0)},setGutterMarker:Gt(function(a,l,p){return qr(this,a,"gutter",function(f){var h=f.gutterMarkers||(f.gutterMarkers={});return h[l]=p,!p&&Ie(h)&&(f.gutterMarkers=null),!0})}),clearGutter:Gt(function(a){var l=this;this.iter(function(p){p.gutterMarkers&&p.gutterMarkers[a]&&qr(l,p,"gutter",function(){return p.gutterMarkers[a]=null,Ie(p.gutterMarkers)&&(p.gutterMarkers=null),!0})})}),lineInfo:function(a){var l;if(typeof a=="number"){if(!ee(this,a)||(l=a,a=Ge(this,a),!a))return null}else if(l=gt(a),l==null)return null;return{line:l,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Gt(function(a,l,p){return qr(this,a,l=="gutter"?"gutter":"class",function(f){var h=l=="text"?"textClass":l=="background"?"bgClass":l=="gutter"?"gutterClass":"wrapClass";if(!f[h])f[h]=p;else{if(B(p).test(f[h]))return!1;f[h]+=" "+p}return!0})}),removeLineClass:Gt(function(a,l,p){return qr(this,a,l=="gutter"?"gutter":"class",function(f){var h=l=="text"?"textClass":l=="background"?"bgClass":l=="gutter"?"gutterClass":"wrapClass",N=f[h];if(N)if(p==null)f[h]=null;else{var P=N.match(B(p));if(!P)return!1;var H=P.index+P[0].length;f[h]=N.slice(0,P.index)+(!P.index||H==N.length?"":" ")+N.slice(H)||null}else return!1;return!0})}),addLineWidget:Gt(function(a,l,p){return JP(this,a,l,p)}),removeLineWidget:function(a){a.clear()},markText:function(a,l,p){return qi(this,nt(this,a),nt(this,l),p,p&&p.type||"range")},setBookmark:function(a,l){var p={replacedWith:l&&(l.nodeType==null?l.widget:l),insertLeft:l&&l.insertLeft,clearWhenEmpty:!1,shared:l&&l.shared,handleMouseEvents:l&&l.handleMouseEvents};return a=nt(this,a),qi(this,a,a,p,"bookmark")},findMarksAt:function(a){a=nt(this,a);var l=[],p=Ge(this,a.line).markedSpans;if(p)for(var f=0;f<p.length;++f){var h=p[f];(h.from==null||h.from<=a.ch)&&(h.to==null||h.to>=a.ch)&&l.push(h.marker.parent||h.marker)}return l},findMarks:function(a,l,p){a=nt(this,a),l=nt(this,l);var f=[],h=a.line;return this.iter(a.line,l.line+1,function(N){var P=N.markedSpans;if(P)for(var H=0;H<P.length;H++){var G=P[H];!(G.to!=null&&h==a.line&&a.ch>=G.to||G.from==null&&h!=a.line||G.from!=null&&h==l.line&&G.from>=l.ch)&&(!p||p(G.marker))&&f.push(G.marker.parent||G.marker)}++h}),f},getAllMarks:function(){var a=[];return this.iter(function(l){var p=l.markedSpans;if(p)for(var f=0;f<p.length;++f)p[f].from!=null&&a.push(p[f].marker)}),a},posFromIndex:function(a){var l,p=this.first,f=this.lineSeparator().length;return this.iter(function(h){var N=h.text.length+f;if(N>a)return l=a,!0;a-=N,++p}),nt(this,ce(p,l))},indexFromPos:function(a){a=nt(this,a);var l=a.ch;if(a.line<this.first||a.ch<0)return 0;var p=this.lineSeparator().length;return this.iter(this.first,a.line,function(f){l+=f.text.length+p}),l},copy:function(a){var l=new sn(Li(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return l.scrollTop=this.scrollTop,l.scrollLeft=this.scrollLeft,l.sel=this.sel,l.extend=!1,a&&(l.history.undoDepth=this.history.undoDepth,l.setHistory(this.getHistory())),l},linkedDoc:function(a){a||(a={});var l=this.first,p=this.first+this.size;a.from!=null&&a.from>l&&(l=a.from),a.to!=null&&a.to<p&&(p=a.to);var f=new sn(Li(this,l,p),a.mode||this.modeOption,l,this.lineSep,this.direction);return a.sharedHist&&(f.history=this.history),(this.linked||(this.linked=[])).push({doc:f,sharedHist:a.sharedHist}),f.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],qP(f,gv(this)),f},unlinkDoc:function(a){if(a instanceof xt&&(a=a.doc),this.linked)for(var l=0;l<this.linked.length;++l){var p=this.linked[l];if(p.doc==a){this.linked.splice(l,1),a.unlinkDoc(this),eM(gv(this));break}}if(a.history==this.history){var f=[a.id];jo(a,function(h){return f.push(h.id)},!0),a.history=new Pl(null),a.history.done=Qi(this.history.done,f),a.history.undone=Qi(this.history.undone,f)}},iterLinkedDocs:function(a){jo(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):Ir(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Gt(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(l){return l.order=null}),this.cm&&HP(this.cm))})}),sn.prototype.eachLine=sn.prototype.iter;var vv=0;function nM(a){var l=this;if(yv(l),!(lt(l,a)||bo(l.display,a))){mt(a),u&&(vv=+new Date);var p=ni(l,a,!0),f=a.dataTransfer.files;if(!(!p||l.isReadOnly()))if(f&&f.length&&window.FileReader&&window.File)for(var h=f.length,N=Array(h),P=0,H=function(){++P==h&&Wt(l,function(){p=nt(l.doc,p);var me={from:p,to:p,text:l.doc.splitLines(N.filter(function(_e){return _e!=null}).join(l.doc.lineSeparator())),origin:"paste"};Ji(l.doc,me),nv(l.doc,Mo(nt(l.doc,p),nt(l.doc,Lo(me))))})()},G=function(me,_e){if(l.options.allowDropFileTypes&&$(l.options.allowDropFileTypes,me.type)==-1){H();return}var xe=new FileReader;xe.onerror=function(){return H()},xe.onload=function(){var Te=xe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Te)){H();return}N[_e]=Te,H()},xe.readAsText(me)},X=0;X<f.length;X++)G(f[X],X);else{if(l.state.draggingText&&l.doc.sel.contains(p)>-1){l.state.draggingText(a),setTimeout(function(){return l.display.input.focus()},20);return}try{var ne=a.dataTransfer.getData("Text");if(ne){var re;if(l.state.draggingText&&!l.state.draggingText.copy&&(re=l.listSelections()),jl(l.doc,Mo(p,p)),re)for(var ve=0;ve<re.length;++ve)Zi(l.doc,"",re[ve].anchor,re[ve].head,"drag");l.replaceSelection(ne,"around","paste"),l.display.input.focus()}}catch{}}}}function oM(a,l){if(u&&(!a.state.draggingText||+new Date-vv<100)){Ln(l);return}if(!(lt(a,l)||bo(a.display,l))&&(l.dataTransfer.setData("Text",a.getSelection()),l.dataTransfer.effectAllowed="copyMove",l.dataTransfer.setDragImage&&!_)){var p=V("img",null,null,"position: fixed; left: 0; top: 0;");p.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(p.width=p.height=1,a.display.wrapper.appendChild(p),p._top=p.offsetTop),l.dataTransfer.setDragImage(p,0,0),E&&p.parentNode.removeChild(p)}}function iM(a,l){var p=ni(a,l);if(!!p){var f=document.createDocumentFragment();cu(a,p,f),a.display.dragCursor||(a.display.dragCursor=V("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),W(a.display.dragCursor,f)}}function yv(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function bv(a){if(!!document.getElementsByClassName){for(var l=document.getElementsByClassName("CodeMirror"),p=[],f=0;f<l.length;f++){var h=l[f].CodeMirror;h&&p.push(h)}p.length&&p[0].operation(function(){for(var N=0;N<p.length;N++)a(p[N])})}}var Cv=!1;function rM(){Cv||(aM(),Cv=!0)}function aM(){var a;be(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,bv(lM)},100))}),be(window,"blur",function(){return bv(Gi)})}function lM(a){var l=a.display;l.cachedCharWidth=l.cachedTextHeight=l.cachedPaddingH=null,l.scrollbarsClipped=!1,a.setSize()}for(var Ho={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"},ia=0;ia<10;ia++)Ho[ia+48]=Ho[ia+96]=String(ia);for(var Ul=65;Ul<=90;Ul++)Ho[Ul]=String.fromCharCode(Ul);for(var ra=1;ra<=12;ra++)Ho[ra+111]=Ho[ra+63235]="F"+ra;var _o={};_o.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"},_o.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"},_o.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"},_o.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"]},_o.default=O?_o.macDefault:_o.pcDefault;function sM(a){var l=a.split(/-(?!$)/);a=l[l.length-1];for(var p,f,h,N,P=0;P<l.length-1;P++){var H=l[P];if(/^(cmd|meta|m)$/i.test(H))N=!0;else if(/^a(lt)?$/i.test(H))p=!0;else if(/^(c|ctrl|control)$/i.test(H))f=!0;else if(/^s(hift)?$/i.test(H))h=!0;else throw new Error("Unrecognized modifier name: "+H)}return p&&(a="Alt-"+a),f&&(a="Ctrl-"+a),N&&(a="Cmd-"+a),h&&(a="Shift-"+a),a}function dM(a){var l={};for(var p in a)if(a.hasOwnProperty(p)){var f=a[p];if(/^(name|fallthrough|(de|at)tach)$/.test(p))continue;if(f=="..."){delete a[p];continue}for(var h=ke(p.split(" "),sM),N=0;N<h.length;N++){var P=void 0,H=void 0;N==h.length-1?(H=h.join(" "),P=f):(H=h.slice(0,N+1).join(" "),P="...");var G=l[H];if(!G)l[H]=P;else if(G!=P)throw new Error("Inconsistent bindings for "+H)}delete a[p]}for(var X in l)a[X]=l[X];return a}function er(a,l,p,f){l=Wl(l);var h=l.call?l.call(a,f):l[a];if(h===!1)return"nothing";if(h==="...")return"multi";if(h!=null&&p(h))return"handled";if(l.fallthrough){if(Object.prototype.toString.call(l.fallthrough)!="[object Array]")return er(a,l.fallthrough,p,f);for(var N=0;N<l.fallthrough.length;N++){var P=er(a,l.fallthrough[N],p,f);if(P)return P}}}function _v(a){var l=typeof a=="string"?a:Ho[a.keyCode];return l=="Ctrl"||l=="Alt"||l=="Shift"||l=="Mod"}function wv(a,l,p){var f=a;return l.altKey&&f!="Alt"&&(a="Alt-"+a),(z?l.metaKey:l.ctrlKey)&&f!="Ctrl"&&(a="Ctrl-"+a),(z?l.ctrlKey:l.metaKey)&&f!="Mod"&&(a="Cmd-"+a),!p&&l.shiftKey&&f!="Shift"&&(a="Shift-"+a),a}function Ev(a,l){if(E&&a.keyCode==34&&a.char)return!1;var p=Ho[a.keyCode];return p==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(p=a.code),wv(p,a,l))}function Wl(a){return typeof a=="string"?_o[a]:a}function tr(a,l){for(var p=a.doc.sel.ranges,f=[],h=0;h<p.length;h++){for(var N=l(p[h]);f.length&&Ce(N.from,Se(f).to)<=0;){var P=f.pop();if(Ce(P.from,N.from)<0){N.from=P.from;break}}f.push(N)}vn(a,function(){for(var H=f.length-1;H>=0;H--)Zi(a.doc,"",f[H].from,f[H].to,"+delete");Ki(a)})}function ku(a,l,p){var f=rt(a.text,l+p,p);return f<0||f>a.text.length?null:f}function Nu(a,l,p){var f=ku(a,l.ch,p);return f==null?null:new ce(l.line,f,p<0?"after":"before")}function Tu(a,l,p,f,h){if(a){l.doc.direction=="rtl"&&(h=-h);var N=Xe(p,l.doc.direction);if(N){var P=h<0?Se(N):N[0],H=h<0==(P.level==1),G=H?"after":"before",X;if(P.level>0||l.doc.direction=="rtl"){var ne=Hi(l,p);X=h<0?p.text.length-1:0;var re=io(l,ne,X).top;X=Fe(function(ve){return io(l,ne,ve).top==re},h<0==(P.level==1)?P.from:P.to-1,X),G=="before"&&(X=ku(p,X,1))}else X=h<0?P.to:P.from;return new ce(f,X,G)}}return new ce(f,h<0?p.text.length:0,h<0?"before":"after")}function cM(a,l,p,f){var h=Xe(l,a.doc.direction);if(!h)return Nu(l,p,f);p.ch>=l.text.length?(p.ch=l.text.length,p.sticky="before"):p.ch<=0&&(p.ch=0,p.sticky="after");var N=Oe(h,p.ch,p.sticky),P=h[N];if(a.doc.direction=="ltr"&&P.level%2==0&&(f>0?P.to>p.ch:P.from<p.ch))return Nu(l,p,f);var H=function(Be,Le){return ku(l,Be instanceof ce?Be.ch:Be,Le)},G,X=function(Be){return a.options.lineWrapping?(G=G||Hi(a,l),Ng(a,l,G,Be)):{begin:0,end:l.text.length}},ne=X(p.sticky=="before"?H(p,-1):p.ch);if(a.doc.direction=="rtl"||P.level==1){var re=P.level==1==f<0,ve=H(p,re?1:-1);if(ve!=null&&(re?ve<=P.to&&ve<=ne.end:ve>=P.from&&ve>=ne.begin)){var me=re?"before":"after";return new ce(p.line,ve,me)}}var _e=function(Be,Le,$e){for(var He=function(_t,Kt){return Kt?new ce(p.line,H(_t,1),"before"):new ce(p.line,_t,"after")};Be>=0&&Be<h.length;Be+=Le){var Je=h[Be],Qe=Le>0==(Je.level!=1),ut=Qe?$e.begin:H($e.end,-1);if(Je.from<=ut&&ut<Je.to||(ut=Qe?Je.from:H(Je.to,-1),$e.begin<=ut&&ut<$e.end))return He(ut,Qe)}},xe=_e(N+f,f,ne);if(xe)return xe;var Te=f>0?ne.end:H(ne.begin,-1);return Te!=null&&!(f>0&&Te==l.text.length)&&(xe=_e(f>0?0:h.length-1,f,X(Te)),xe)?xe:null}var aa={selectAll:lv,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),K)},killLine:function(a){return tr(a,function(l){if(l.empty()){var p=Ge(a.doc,l.head.line).text.length;return l.head.ch==p&&l.head.line<a.lastLine()?{from:l.head,to:ce(l.head.line+1,0)}:{from:l.head,to:ce(l.head.line,p)}}else return{from:l.from(),to:l.to()}})},deleteLine:function(a){return tr(a,function(l){return{from:ce(l.from().line,0),to:nt(a.doc,ce(l.to().line+1,0))}})},delLineLeft:function(a){return tr(a,function(l){return{from:ce(l.from().line,0),to:l.from()}})},delWrappedLineLeft:function(a){return tr(a,function(l){var p=a.charCoords(l.head,"div").top+5,f=a.coordsChar({left:0,top:p},"div");return{from:f,to:l.from()}})},delWrappedLineRight:function(a){return tr(a,function(l){var p=a.charCoords(l.head,"div").top+5,f=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:p},"div");return{from:l.from(),to:f}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(ce(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(ce(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(l){return Av(a,l.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(l){return Sv(a,l.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(l){return uM(a,l.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(l){var p=a.cursorCoords(l.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:p},"div")},q)},goLineLeft:function(a){return a.extendSelectionsBy(function(l){var p=a.cursorCoords(l.head,"div").top+5;return a.coordsChar({left:0,top:p},"div")},q)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(l){var p=a.cursorCoords(l.head,"div").top+5,f=a.coordsChar({left:0,top:p},"div");return f.ch<a.getLine(f.line).search(/\S/)?Sv(a,l.head):f},q)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var l=[],p=a.listSelections(),f=a.options.tabSize,h=0;h<p.length;h++){var N=p[h].from(),P=ue(a.getLine(N.line),N.ch,f);l.push(Ee(f-P%f))}a.replaceSelections(l)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return vn(a,function(){for(var l=a.listSelections(),p=[],f=0;f<l.length;f++)if(!!l[f].empty()){var h=l[f].head,N=Ge(a.doc,h.line).text;if(N){if(h.ch==N.length&&(h=new ce(h.line,h.ch-1)),h.ch>0)h=new ce(h.line,h.ch+1),a.replaceRange(N.charAt(h.ch-1)+N.charAt(h.ch-2),ce(h.line,h.ch-2),h,"+transpose");else if(h.line>a.doc.first){var P=Ge(a.doc,h.line-1).text;P&&(h=new ce(h.line,1),a.replaceRange(N.charAt(0)+a.doc.lineSeparator()+P.charAt(P.length-1),ce(h.line-1,P.length-1),h,"+transpose"))}}p.push(new vt(h,h))}a.setSelections(p)})},newlineAndIndent:function(a){return vn(a,function(){for(var l=a.listSelections(),p=l.length-1;p>=0;p--)a.replaceRange(a.doc.lineSeparator(),l[p].anchor,l[p].head,"+input");l=a.listSelections();for(var f=0;f<l.length;f++)a.indentLine(l[f].from().line,null,!0);Ki(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Av(a,l){var p=Ge(a.doc,l),f=zn(p);return f!=p&&(l=gt(f)),Tu(!0,a,f,l,1)}function uM(a,l){var p=Ge(a.doc,l),f=YF(p);return f!=p&&(l=gt(f)),Tu(!0,a,p,l,-1)}function Sv(a,l){var p=Av(a,l.line),f=Ge(a.doc,p.line),h=Xe(f,a.doc.direction);if(!h||h[0].level==0){var N=Math.max(p.ch,f.text.search(/\S/)),P=l.line==p.line&&l.ch<=N&&l.ch;return ce(p.line,P?0:N,p.sticky)}return p}function Gl(a,l,p){if(typeof l=="string"&&(l=aa[l],!l))return!1;a.display.input.ensurePolled();var f=a.display.shift,h=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),p&&(a.display.shift=!1),h=l(a)!=Q}finally{a.display.shift=f,a.state.suppressEdits=!1}return h}function fM(a,l,p){for(var f=0;f<a.state.keyMaps.length;f++){var h=er(l,a.state.keyMaps[f],p,a);if(h)return h}return a.options.extraKeys&&er(l,a.options.extraKeys,p,a)||er(l,a.options.keyMap,p,a)}var pM=new he;function la(a,l,p,f){var h=a.state.keySeq;if(h){if(_v(l))return"handled";if(/\'$/.test(l)?a.state.keySeq=null:pM.set(50,function(){a.state.keySeq==h&&(a.state.keySeq=null,a.display.input.reset())}),xv(a,h+" "+l,p,f))return!0}return xv(a,l,p,f)}function xv(a,l,p,f){var h=fM(a,l,f);return h=="multi"&&(a.state.keySeq=l),h=="handled"&&Ut(a,"keyHandled",a,l,p),(h=="handled"||h=="multi")&&(mt(p),uu(a)),!!h}function kv(a,l){var p=Ev(l,!0);return p?l.shiftKey&&!a.state.keySeq?la(a,"Shift-"+p,l,function(f){return Gl(a,f,!0)})||la(a,p,l,function(f){if(typeof f=="string"?/^go[A-Z]/.test(f):f.motion)return Gl(a,f)}):la(a,p,l,function(f){return Gl(a,f)}):!1}function hM(a,l,p){return la(a,"'"+p+"'",l,function(f){return Gl(a,f,!0)})}var Ou=null;function Nv(a){var l=this;if(!(a.target&&a.target!=l.display.input.getField())&&(l.curOp.focus=Z(pe(l)),!lt(l,a))){u&&g<11&&a.keyCode==27&&(a.returnValue=!1);var p=a.keyCode;l.display.shift=p==16||a.shiftKey;var f=kv(l,a);E&&(Ou=f?p:null,!f&&p==88&&!qn&&(O?a.metaKey:a.ctrlKey)&&l.replaceSelection("",null,"cut")),o&&!O&&!f&&p==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),p==18&&!/\bCodeMirror-crosshair\b/.test(l.display.lineDiv.className)&&mM(l)}}function mM(a){var l=a.display.lineDiv;J(l,"CodeMirror-crosshair");function p(f){(f.keyCode==18||!f.altKey)&&(L(l,"CodeMirror-crosshair"),Ue(document,"keyup",p),Ue(document,"mouseover",p))}be(document,"keyup",p),be(document,"mouseover",p)}function Tv(a){a.keyCode==16&&(this.doc.sel.shift=!1),lt(this,a)}function Ov(a){var l=this;if(!(a.target&&a.target!=l.display.input.getField())&&!(bo(l.display,a)||lt(l,a)||a.ctrlKey&&!a.altKey||O&&a.metaKey)){var p=a.keyCode,f=a.charCode;if(E&&p==Ou){Ou=null,mt(a);return}if(!(E&&(!a.which||a.which<10)&&kv(l,a))){var h=String.fromCharCode(f==null?p:f);h!="\b"&&(hM(l,a,h)||l.display.input.onKeyPress(a))}}}var gM=400,Du=function(a,l,p){this.time=a,this.pos=l,this.button=p};Du.prototype.compare=function(a,l,p){return this.time+gM>a&&Ce(l,this.pos)==0&&p==this.button};var sa,da;function vM(a,l){var p=+new Date;return da&&da.compare(p,a,l)?(sa=da=null,"triple"):sa&&sa.compare(p,a,l)?(da=new Du(p,a,l),sa=null,"double"):(sa=new Du(p,a,l),da=null,"single")}function Dv(a){var l=this,p=l.display;if(!(lt(l,a)||p.activeTouch&&p.input.supportsTouch())){if(p.input.ensurePolled(),p.shift=a.shiftKey,bo(p,a)){y||(p.scroller.draggable=!1,setTimeout(function(){return p.scroller.draggable=!0},100));return}if(!Bu(l,a)){var f=ni(l,a),h=Rr(a),N=f?vM(f,h):"single";se(l).focus(),h==1&&l.state.selectingText&&l.state.selectingText(a),!(f&&yM(l,h,f,N,a))&&(h==1?f?CM(l,f,N,a):an(a)==p.scroller&&mt(a):h==2?(f&&Ll(l.doc,f),setTimeout(function(){return p.input.focus()},20)):h==3&&(T?l.display.input.onContextMenu(a):fu(l)))}}}function yM(a,l,p,f,h){var N="Click";return f=="double"?N="Double"+N:f=="triple"&&(N="Triple"+N),N=(l==1?"Left":l==2?"Middle":"Right")+N,la(a,wv(N,h),h,function(P){if(typeof P=="string"&&(P=aa[P]),!P)return!1;var H=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),H=P(a,p)!=Q}finally{a.state.suppressEdits=!1}return H})}function bM(a,l,p){var f=a.getOption("configureMouse"),h=f?f(a,l,p):{};if(h.unit==null){var N=D?p.shiftKey&&p.metaKey:p.altKey;h.unit=N?"rectangle":l=="single"?"char":l=="double"?"word":"line"}return(h.extend==null||a.doc.extend)&&(h.extend=a.doc.extend||p.shiftKey),h.addNew==null&&(h.addNew=O?p.metaKey:p.ctrlKey),h.moveOnDrag==null&&(h.moveOnDrag=!(O?p.altKey:p.ctrlKey)),h}function CM(a,l,p,f){u?setTimeout(ye(Bg,a),0):a.curOp.focus=Z(pe(a));var h=bM(a,p,f),N=a.doc.sel,P;a.options.dragDrop&&Uc&&!a.isReadOnly()&&p=="single"&&(P=N.contains(l))>-1&&(Ce((P=N.ranges[P]).from(),l)<0||l.xRel>0)&&(Ce(P.to(),l)>0||l.xRel<0)?_M(a,f,l,h):wM(a,f,l,h)}function _M(a,l,p,f){var h=a.display,N=!1,P=Wt(a,function(X){y&&(h.scroller.draggable=!1),a.state.draggingText=!1,a.state.delayingBlurEvent&&(a.hasFocus()?a.state.delayingBlurEvent=!1:fu(a)),Ue(h.wrapper.ownerDocument,"mouseup",P),Ue(h.wrapper.ownerDocument,"mousemove",H),Ue(h.scroller,"dragstart",G),Ue(h.scroller,"drop",P),N||(mt(X),f.addNew||Ll(a.doc,p,null,null,f.extend),y&&!_||u&&g==9?setTimeout(function(){h.wrapper.ownerDocument.body.focus({preventScroll:!0}),h.input.focus()},20):h.input.focus())}),H=function(X){N=N||Math.abs(l.clientX-X.clientX)+Math.abs(l.clientY-X.clientY)>=10},G=function(){return N=!0};y&&(h.scroller.draggable=!0),a.state.draggingText=P,P.copy=!f.moveOnDrag,be(h.wrapper.ownerDocument,"mouseup",P),be(h.wrapper.ownerDocument,"mousemove",H),be(h.scroller,"dragstart",G),be(h.scroller,"drop",P),a.state.delayingBlurEvent=!0,setTimeout(function(){return h.input.focus()},20),h.scroller.dragDrop&&h.scroller.dragDrop()}function Bv(a,l,p){if(p=="char")return new vt(l,l);if(p=="word")return a.findWordAt(l);if(p=="line")return new vt(ce(l.line,0),nt(a.doc,ce(l.line+1,0)));var f=p(a,l);return new vt(f.from,f.to)}function wM(a,l,p,f){u&&fu(a);var h=a.display,N=a.doc;mt(l);var P,H,G=N.sel,X=G.ranges;if(f.addNew&&!f.extend?(H=N.sel.contains(p),H>-1?P=X[H]:P=new vt(p,p)):(P=N.sel.primary(),H=N.sel.primIndex),f.unit=="rectangle")f.addNew||(P=new vt(p,p)),p=ni(a,l,!0,!0),H=-1;else{var ne=Bv(a,p,f.unit);f.extend?P=Su(P,ne.anchor,ne.head,f.extend):P=ne}f.addNew?H==-1?(H=X.length,Jt(N,Un(a,X.concat([P]),H),{scroll:!1,origin:"*mouse"})):X.length>1&&X[H].empty()&&f.unit=="char"&&!f.extend?(Jt(N,Un(a,X.slice(0,H).concat(X.slice(H+1)),0),{scroll:!1,origin:"*mouse"}),G=N.sel):xu(N,H,P,te):(H=0,Jt(N,new Nn([P],0),te),G=N.sel);var re=p;function ve($e){if(Ce(re,$e)!=0)if(re=$e,f.unit=="rectangle"){for(var He=[],Je=a.options.tabSize,Qe=ue(Ge(N,p.line).text,p.ch,Je),ut=ue(Ge(N,$e.line).text,$e.ch,Je),_t=Math.min(Qe,ut),Kt=Math.max(Qe,ut),Ot=Math.min(p.line,$e.line),yn=Math.min(a.lastLine(),Math.max(p.line,$e.line));Ot<=yn;Ot++){var dn=Ge(N,Ot).text,Ft=oe(dn,_t,Je);_t==Kt?He.push(new vt(ce(Ot,Ft),ce(Ot,Ft))):dn.length>Ft&&He.push(new vt(ce(Ot,Ft),ce(Ot,oe(dn,Kt,Je))))}He.length||He.push(new vt(p,p)),Jt(N,Un(a,G.ranges.slice(0,H).concat(He),H),{origin:"*mouse",scroll:!1}),a.scrollIntoView($e)}else{var cn=P,Qt=Bv(a,$e,f.unit),jt=cn.anchor,Pt;Ce(Qt.anchor,jt)>0?(Pt=Qt.head,jt=Lt(cn.from(),Qt.anchor)):(Pt=Qt.anchor,jt=ht(cn.to(),Qt.head));var $t=G.ranges.slice(0);$t[H]=EM(a,new vt(nt(N,jt),Pt)),Jt(N,Un(a,$t,H),te)}}var me=h.wrapper.getBoundingClientRect(),_e=0;function xe($e){var He=++_e,Je=ni(a,$e,!0,f.unit=="rectangle");if(!!Je)if(Ce(Je,re)!=0){a.curOp.focus=Z(pe(a)),ve(Je);var Qe=Vl(h,N);(Je.line>=Qe.to||Je.line<Qe.from)&&setTimeout(Wt(a,function(){_e==He&&xe($e)}),150)}else{var ut=$e.clientY<me.top?-20:$e.clientY>me.bottom?20:0;ut&&setTimeout(Wt(a,function(){_e==He&&(h.scroller.scrollTop+=ut,xe($e))}),50)}}function Te($e){a.state.selectingText=!1,_e=1/0,$e&&(mt($e),h.input.focus()),Ue(h.wrapper.ownerDocument,"mousemove",Be),Ue(h.wrapper.ownerDocument,"mouseup",Le),N.history.lastSelOrigin=null}var Be=Wt(a,function($e){$e.buttons===0||!Rr($e)?Te($e):xe($e)}),Le=Wt(a,Te);a.state.selectingText=Le,be(h.wrapper.ownerDocument,"mousemove",Be),be(h.wrapper.ownerDocument,"mouseup",Le)}function EM(a,l){var p=l.anchor,f=l.head,h=Ge(a.doc,p.line);if(Ce(p,f)==0&&p.sticky==f.sticky)return l;var N=Xe(h);if(!N)return l;var P=Oe(N,p.ch,p.sticky),H=N[P];if(H.from!=p.ch&&H.to!=p.ch)return l;var G=P+(H.from==p.ch==(H.level!=1)?0:1);if(G==0||G==N.length)return l;var X;if(f.line!=p.line)X=(f.line-p.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var ne=Oe(N,f.ch,f.sticky),re=ne-P||(f.ch-p.ch)*(H.level==1?-1:1);ne==G-1||ne==G?X=re<0:X=re>0}var ve=N[G+(X?-1:0)],me=X==(ve.level==1),_e=me?ve.from:ve.to,xe=me?"after":"before";return p.ch==_e&&p.sticky==xe?l:new vt(new ce(p.line,_e,xe),f)}function $v(a,l,p,f){var h,N;if(l.touches)h=l.touches[0].clientX,N=l.touches[0].clientY;else try{h=l.clientX,N=l.clientY}catch{return!1}if(h>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;f&&mt(l);var P=a.display,H=P.lineDiv.getBoundingClientRect();if(N>H.bottom||!Tt(a,p))return Do(l);N-=H.top-P.viewOffset;for(var G=0;G<a.display.gutterSpecs.length;++G){var X=P.gutters.childNodes[G];if(X&&X.getBoundingClientRect().right>=h){var ne=to(a.doc,N),re=a.display.gutterSpecs[G];return We(a,p,a,ne,re.className,l),Do(l)}}}function Bu(a,l){return $v(a,l,"gutterClick",!0)}function Vv(a,l){bo(a.display,l)||AM(a,l)||lt(a,l,"contextmenu")||T||a.display.input.onContextMenu(l)}function AM(a,l){return Tt(a,"gutterContextMenu")?$v(a,l,"gutterContextMenu",!1):!1}function Rv(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Hr(a)}var nr={toString:function(){return"CodeMirror.Init"}},Iv={},Kl={};function SM(a){var l=a.optionHandlers;function p(f,h,N,P){a.defaults[f]=h,N&&(l[f]=P?function(H,G,X){X!=nr&&N(H,G,X)}:N)}a.defineOption=p,a.Init=nr,p("value","",function(f,h){return f.setValue(h)},!0),p("mode",null,function(f,h){f.doc.modeOption=h,wu(f)},!0),p("indentUnit",2,wu,!0),p("indentWithTabs",!1),p("smartIndent",!0),p("tabSize",4,function(f){Jr(f),Hr(f),ln(f)},!0),p("lineSeparator",null,function(f,h){if(f.doc.lineSep=h,!!h){var N=[],P=f.doc.first;f.doc.iter(function(G){for(var X=0;;){var ne=G.text.indexOf(h,X);if(ne==-1)break;X=ne+h.length,N.push(ce(P,ne))}P++});for(var H=N.length-1;H>=0;H--)Zi(f.doc,h,N[H],ce(N[H].line,N[H].ch+h.length))}}),p("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(f,h,N){f.state.specialChars=new RegExp(h.source+(h.test(" ")?"":"| "),"g"),N!=nr&&f.refresh()}),p("specialCharPlaceholder",eP,function(f){return f.refresh()},!0),p("electricChars",!0),p("inputStyle",x?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),p("spellcheck",!1,function(f,h){return f.getInputField().spellcheck=h},!0),p("autocorrect",!1,function(f,h){return f.getInputField().autocorrect=h},!0),p("autocapitalize",!1,function(f,h){return f.getInputField().autocapitalize=h},!0),p("rtlMoveVisually",!R),p("wholeLineUpdateBefore",!0),p("theme","default",function(f){Rv(f),Xr(f)},!0),p("keyMap","default",function(f,h,N){var P=Wl(h),H=N!=nr&&Wl(N);H&&H.detach&&H.detach(f,P),P.attach&&P.attach(f,H||null)}),p("extraKeys",null),p("configureMouse",null),p("lineWrapping",!1,kM,!0),p("gutters",[],function(f,h){f.display.gutterSpecs=Cu(h,f.options.lineNumbers),Xr(f)},!0),p("fixedGutter",!0,function(f,h){f.display.gutters.style.left=h?su(f.display)+"px":"0",f.refresh()},!0),p("coverGutterNextToScrollbar",!1,function(f){return Yi(f)},!0),p("scrollbarStyle","native",function(f){Pg(f),Yi(f),f.display.scrollbars.setScrollTop(f.doc.scrollTop),f.display.scrollbars.setScrollLeft(f.doc.scrollLeft)},!0),p("lineNumbers",!1,function(f,h){f.display.gutterSpecs=Cu(f.options.gutters,h),Xr(f)},!0),p("firstLineNumber",1,Xr,!0),p("lineNumberFormatter",function(f){return f},Xr,!0),p("showCursorWhenSelecting",!1,Ur,!0),p("resetSelectionOnContextMenu",!0),p("lineWiseCopyCut",!0),p("pasteLinesPerSelection",!0),p("selectionsMayTouch",!1),p("readOnly",!1,function(f,h){h=="nocursor"&&(Gi(f),f.display.input.blur()),f.display.input.readOnlyChanged(h)}),p("screenReaderLabel",null,function(f,h){h=h===""?null:h,f.display.input.screenReaderLabelChanged(h)}),p("disableInput",!1,function(f,h){h||f.display.input.reset()},!0),p("dragDrop",!0,xM),p("allowDropFileTypes",null),p("cursorBlinkRate",530),p("cursorScrollMargin",0),p("cursorHeight",1,Ur,!0),p("singleCursorHeightPerLine",!0,Ur,!0),p("workTime",100),p("workDelay",100),p("flattenSpans",!0,Jr,!0),p("addModeClass",!1,Jr,!0),p("pollInterval",100),p("undoDepth",200,function(f,h){return f.doc.history.undoDepth=h}),p("historyEventDelay",1250),p("viewportMargin",10,function(f){return f.refresh()},!0),p("maxHighlightLength",1e4,Jr,!0),p("moveInputWithCursor",!0,function(f,h){h||f.display.input.resetPosition()}),p("tabindex",null,function(f,h){return f.display.input.getField().tabIndex=h||""}),p("autofocus",null),p("direction","ltr",function(f,h){return f.doc.setDirection(h)},!0),p("phrases",null)}function xM(a,l,p){var f=p&&p!=nr;if(!l!=!f){var h=a.display.dragFunctions,N=l?be:Ue;N(a.display.scroller,"dragstart",h.start),N(a.display.scroller,"dragenter",h.enter),N(a.display.scroller,"dragover",h.over),N(a.display.scroller,"dragleave",h.leave),N(a.display.scroller,"drop",h.drop)}}function kM(a){a.options.lineWrapping?(J(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(L(a.display.wrapper,"CodeMirror-wrap"),Zc(a)),du(a),ln(a),Hr(a),setTimeout(function(){return Yi(a)},100)}function xt(a,l){var p=this;if(!(this instanceof xt))return new xt(a,l);this.options=l=l?fe(l):{},fe(Iv,l,!1);var f=l.value;typeof f=="string"?f=new sn(f,l.mode,null,l.lineSeparator,l.direction):l.mode&&(f.modeOption=l.mode),this.doc=f;var h=new xt.inputStyles[l.inputStyle](this),N=this.display=new LP(a,f,h,l);N.wrapper.CodeMirror=this,Rv(this),l.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Pg(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new he,keySeq:null,specialChars:null},l.autofocus&&!x&&N.input.focus(),u&&g<11&&setTimeout(function(){return p.display.input.reset(!0)},20),NM(this),rM(),ai(this),this.curOp.forceUpdate=!0,Yg(this,f),l.autofocus&&!x||this.hasFocus()?setTimeout(function(){p.hasFocus()&&!p.state.focused&&pu(p)},20):Gi(this);for(var P in Kl)Kl.hasOwnProperty(P)&&Kl[P](this,l[P],nr);jg(this),l.finishInit&&l.finishInit(this);for(var H=0;H<$u.length;++H)$u[H](this);li(this),y&&l.lineWrapping&&getComputedStyle(N.lineDiv).textRendering=="optimizelegibility"&&(N.lineDiv.style.textRendering="auto")}xt.defaults=Iv,xt.optionHandlers=Kl;function NM(a){var l=a.display;be(l.scroller,"mousedown",Wt(a,Dv)),u&&g<11?be(l.scroller,"dblclick",Wt(a,function(G){if(!lt(a,G)){var X=ni(a,G);if(!(!X||Bu(a,G)||bo(a.display,G))){mt(G);var ne=a.findWordAt(X);Ll(a.doc,ne.anchor,ne.head)}}})):be(l.scroller,"dblclick",function(G){return lt(a,G)||mt(G)}),be(l.scroller,"contextmenu",function(G){return Vv(a,G)}),be(l.input.getField(),"contextmenu",function(G){l.scroller.contains(G.target)||Vv(a,G)});var p,f={end:0};function h(){l.activeTouch&&(p=setTimeout(function(){return l.activeTouch=null},1e3),f=l.activeTouch,f.end=+new Date)}function N(G){if(G.touches.length!=1)return!1;var X=G.touches[0];return X.radiusX<=1&&X.radiusY<=1}function P(G,X){if(X.left==null)return!0;var ne=X.left-G.left,re=X.top-G.top;return ne*ne+re*re>20*20}be(l.scroller,"touchstart",function(G){if(!lt(a,G)&&!N(G)&&!Bu(a,G)){l.input.ensurePolled(),clearTimeout(p);var X=+new Date;l.activeTouch={start:X,moved:!1,prev:X-f.end<=300?f:null},G.touches.length==1&&(l.activeTouch.left=G.touches[0].pageX,l.activeTouch.top=G.touches[0].pageY)}}),be(l.scroller,"touchmove",function(){l.activeTouch&&(l.activeTouch.moved=!0)}),be(l.scroller,"touchend",function(G){var X=l.activeTouch;if(X&&!bo(l,G)&&X.left!=null&&!X.moved&&new Date-X.start<300){var ne=a.coordsChar(l.activeTouch,"page"),re;!X.prev||P(X,X.prev)?re=new vt(ne,ne):!X.prev.prev||P(X,X.prev.prev)?re=a.findWordAt(ne):re=new vt(ce(ne.line,0),nt(a.doc,ce(ne.line+1,0))),a.setSelection(re.anchor,re.head),a.focus(),mt(G)}h()}),be(l.scroller,"touchcancel",h),be(l.scroller,"scroll",function(){l.scroller.clientHeight&&(Gr(a,l.scroller.scrollTop),ii(a,l.scroller.scrollLeft,!0),We(a,"scroll",a))}),be(l.scroller,"mousewheel",function(G){return Ug(a,G)}),be(l.scroller,"DOMMouseScroll",function(G){return Ug(a,G)}),be(l.wrapper,"scroll",function(){return l.wrapper.scrollTop=l.wrapper.scrollLeft=0}),l.dragFunctions={enter:function(G){lt(a,G)||Ln(G)},over:function(G){lt(a,G)||(iM(a,G),Ln(G))},start:function(G){return oM(a,G)},drop:Wt(a,nM),leave:function(G){lt(a,G)||yv(a)}};var H=l.input.getField();be(H,"keyup",function(G){return Tv.call(a,G)}),be(H,"keydown",Wt(a,Nv)),be(H,"keypress",Wt(a,Ov)),be(H,"focus",function(G){return pu(a,G)}),be(H,"blur",function(G){return Gi(a,G)})}var $u=[];xt.defineInitHook=function(a){return $u.push(a)};function ca(a,l,p,f){var h=a.doc,N;p==null&&(p="add"),p=="smart"&&(h.mode.indent?N=Pr(a,l).state:p="prev");var P=a.options.tabSize,H=Ge(h,l),G=ue(H.text,null,P);H.stateAfter&&(H.stateAfter=null);var X=H.text.match(/^\s*/)[0],ne;if(!f&&!/\S/.test(H.text))ne=0,p="not";else if(p=="smart"&&(ne=h.mode.indent(N,H.text.slice(X.length),H.text),ne==Q||ne>150)){if(!f)return;p="prev"}p=="prev"?l>h.first?ne=ue(Ge(h,l-1).text,null,P):ne=0:p=="add"?ne=G+a.options.indentUnit:p=="subtract"?ne=G-a.options.indentUnit:typeof p=="number"&&(ne=G+p),ne=Math.max(0,ne);var re="",ve=0;if(a.options.indentWithTabs)for(var me=Math.floor(ne/P);me;--me)ve+=P,re+=" ";if(ve<ne&&(re+=Ee(ne-ve)),re!=X)return Zi(h,re,ce(l,0),ce(l,X.length),"+input"),H.stateAfter=null,!0;for(var _e=0;_e<h.sel.ranges.length;_e++){var xe=h.sel.ranges[_e];if(xe.head.line==l&&xe.head.ch<X.length){var Te=ce(l,X.length);xu(h,_e,new vt(Te,Te));break}}}var Wn=null;function Yl(a){Wn=a}function Vu(a,l,p,f,h){var N=a.doc;a.display.shift=!1,f||(f=N.sel);var P=+new Date-200,H=h=="paste"||a.state.pasteIncoming>P,G=Ir(l),X=null;if(H&&f.ranges.length>1)if(Wn&&Wn.text.join(`
`)==l){if(f.ranges.length%Wn.text.length==0){X=[];for(var ne=0;ne<Wn.text.length;ne++)X.push(N.splitLines(Wn.text[ne]))}}else G.length==f.ranges.length&&a.options.pasteLinesPerSelection&&(X=ke(G,function(Be){return[Be]}));for(var re=a.curOp.updateInput,ve=f.ranges.length-1;ve>=0;ve--){var me=f.ranges[ve],_e=me.from(),xe=me.to();me.empty()&&(p&&p>0?_e=ce(_e.line,_e.ch-p):a.state.overwrite&&!H?xe=ce(xe.line,Math.min(Ge(N,xe.line).text.length,xe.ch+Se(G).length)):H&&Wn&&Wn.lineWise&&Wn.text.join(`
`)==G.join(`
`)&&(_e=xe=ce(_e.line,0)));var Te={from:_e,to:xe,text:X?X[ve%X.length]:G,origin:h||(H?"paste":a.state.cutIncoming>P?"cut":"+input")};Ji(a.doc,Te),Ut(a,"inputRead",a,Te)}l&&!H&&Pv(a,l),Ki(a),a.curOp.updateInput<2&&(a.curOp.updateInput=re),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Fv(a,l){var p=a.clipboardData&&a.clipboardData.getData("Text");if(p)return a.preventDefault(),!l.isReadOnly()&&!l.options.disableInput&&l.hasFocus()&&vn(l,function(){return Vu(l,p,0,null,"paste")}),!0}function Pv(a,l){if(!(!a.options.electricChars||!a.options.smartIndent))for(var p=a.doc.sel,f=p.ranges.length-1;f>=0;f--){var h=p.ranges[f];if(!(h.head.ch>100||f&&p.ranges[f-1].head.line==h.head.line)){var N=a.getModeAt(h.head),P=!1;if(N.electricChars){for(var H=0;H<N.electricChars.length;H++)if(l.indexOf(N.electricChars.charAt(H))>-1){P=ca(a,h.head.line,"smart");break}}else N.electricInput&&N.electricInput.test(Ge(a.doc,h.head.line).text.slice(0,h.head.ch))&&(P=ca(a,h.head.line,"smart"));P&&Ut(a,"electricInput",a,h.head.line)}}}function Mv(a){for(var l=[],p=[],f=0;f<a.doc.sel.ranges.length;f++){var h=a.doc.sel.ranges[f].head.line,N={anchor:ce(h,0),head:ce(h+1,0)};p.push(N),l.push(a.getRange(N.anchor,N.head))}return{text:l,ranges:p}}function Lv(a,l,p,f){a.setAttribute("autocorrect",p?"":"off"),a.setAttribute("autocapitalize",f?"":"off"),a.setAttribute("spellcheck",!!l)}function jv(){var a=V("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),l=V("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return y?a.style.width="1000px":a.setAttribute("wrap","off"),b&&(a.style.border="1px solid black"),Lv(a),l}function TM(a){var l=a.optionHandlers,p=a.helpers={};a.prototype={constructor:a,focus:function(){se(this).focus(),this.display.input.focus()},setOption:function(f,h){var N=this.options,P=N[f];N[f]==h&&f!="mode"||(N[f]=h,l.hasOwnProperty(f)&&Wt(this,l[f])(this,h,P),We(this,"optionChange",this,f))},getOption:function(f){return this.options[f]},getDoc:function(){return this.doc},addKeyMap:function(f,h){this.state.keyMaps[h?"push":"unshift"](Wl(f))},removeKeyMap:function(f){for(var h=this.state.keyMaps,N=0;N<h.length;++N)if(h[N]==f||h[N].name==f)return h.splice(N,1),!0},addOverlay:tn(function(f,h){var N=f.token?f:a.getMode(this.options,f);if(N.startState)throw new Error("Overlays may not be stateful.");qe(this.state.overlays,{mode:N,modeSpec:f,opaque:h&&h.opaque,priority:h&&h.priority||0},function(P){return P.priority}),this.state.modeGen++,ln(this)}),removeOverlay:tn(function(f){for(var h=this.state.overlays,N=0;N<h.length;++N){var P=h[N].modeSpec;if(P==f||typeof f=="string"&&P.name==f){h.splice(N,1),this.state.modeGen++,ln(this);return}}}),indentLine:tn(function(f,h,N){typeof h!="string"&&typeof h!="number"&&(h==null?h=this.options.smartIndent?"smart":"prev":h=h?"add":"subtract"),ee(this.doc,f)&&ca(this,f,h,N)}),indentSelection:tn(function(f){for(var h=this.doc.sel.ranges,N=-1,P=0;P<h.length;P++){var H=h[P];if(H.empty())H.head.line>N&&(ca(this,H.head.line,f,!0),N=H.head.line,P==this.doc.sel.primIndex&&Ki(this));else{var G=H.from(),X=H.to(),ne=Math.max(N,G.line);N=Math.min(this.lastLine(),X.line-(X.ch?0:1))+1;for(var re=ne;re<N;++re)ca(this,re,f);var ve=this.doc.sel.ranges;G.ch==0&&h.length==ve.length&&ve[P].from().ch>0&&xu(this.doc,P,new vt(G,ve[P].to()),K)}}}),getTokenAt:function(f,h){return Xm(this,f,h)},getLineTokens:function(f,h){return Xm(this,ce(f),h,!0)},getTokenTypeAt:function(f){f=nt(this.doc,f);var h=Km(this,Ge(this.doc,f.line)),N=0,P=(h.length-1)/2,H=f.ch,G;if(H==0)G=h[2];else for(;;){var X=N+P>>1;if((X?h[X*2-1]:0)>=H)P=X;else if(h[X*2+1]<H)N=X+1;else{G=h[X*2+2];break}}var ne=G?G.indexOf("overlay "):-1;return ne<0?G:ne==0?null:G.slice(0,ne-1)},getModeAt:function(f){var h=this.doc.mode;return h.innerMode?a.innerMode(h,this.getTokenAt(f).state).mode:h},getHelper:function(f,h){return this.getHelpers(f,h)[0]},getHelpers:function(f,h){var N=[];if(!p.hasOwnProperty(h))return N;var P=p[h],H=this.getModeAt(f);if(typeof H[h]=="string")P[H[h]]&&N.push(P[H[h]]);else if(H[h])for(var G=0;G<H[h].length;G++){var X=P[H[h][G]];X&&N.push(X)}else H.helperType&&P[H.helperType]?N.push(P[H.helperType]):P[H.name]&&N.push(P[H.name]);for(var ne=0;ne<P._global.length;ne++){var re=P._global[ne];re.pred(H,this)&&$(N,re.val)==-1&&N.push(re.val)}return N},getStateAfter:function(f,h){var N=this.doc;return f=kn(N,f==null?N.first+N.size-1:f),Pr(this,f+1,h).state},cursorCoords:function(f,h){var N,P=this.doc.sel.primary();return f==null?N=P.head:typeof f=="object"?N=nt(this.doc,f):N=f?P.from():P.to(),Hn(this,N,h||"page")},charCoords:function(f,h){return Ol(this,nt(this.doc,f),h||"page")},coordsChar:function(f,h){return f=Sg(this,f,h||"page"),ru(this,f.left,f.top)},lineAtHeight:function(f,h){return f=Sg(this,{top:f,left:0},h||"page").top,to(this.doc,f+this.display.viewOffset)},heightAtLine:function(f,h,N){var P=!1,H;if(typeof f=="number"){var G=this.doc.first+this.doc.size-1;f<this.doc.first?f=this.doc.first:f>G&&(f=G,P=!0),H=Ge(this.doc,f)}else H=f;return Tl(this,H,{top:0,left:0},h||"page",N||P).top+(P?this.doc.height-yo(H):0)},defaultTextHeight:function(){return Ui(this.display)},defaultCharWidth:function(){return Wi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(f,h,N,P,H){var G=this.display;f=Hn(this,nt(this.doc,f));var X=f.bottom,ne=f.left;if(h.style.position="absolute",h.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(h),G.sizer.appendChild(h),P=="over")X=f.top;else if(P=="above"||P=="near"){var re=Math.max(G.wrapper.clientHeight,this.doc.height),ve=Math.max(G.sizer.clientWidth,G.lineSpace.clientWidth);(P=="above"||f.bottom+h.offsetHeight>re)&&f.top>h.offsetHeight?X=f.top-h.offsetHeight:f.bottom+h.offsetHeight<=re&&(X=f.bottom),ne+h.offsetWidth>ve&&(ne=ve-h.offsetWidth)}h.style.top=X+"px",h.style.left=h.style.right="",H=="right"?(ne=G.sizer.clientWidth-h.offsetWidth,h.style.right="0px"):(H=="left"?ne=0:H=="middle"&&(ne=(G.sizer.clientWidth-h.offsetWidth)/2),h.style.left=ne+"px"),N&&xP(this,{left:ne,top:X,right:ne+h.offsetWidth,bottom:X+h.offsetHeight})},triggerOnKeyDown:tn(Nv),triggerOnKeyPress:tn(Ov),triggerOnKeyUp:Tv,triggerOnMouseDown:tn(Dv),execCommand:function(f){if(aa.hasOwnProperty(f))return aa[f].call(null,this)},triggerElectric:tn(function(f){Pv(this,f)}),findPosH:function(f,h,N,P){var H=1;h<0&&(H=-1,h=-h);for(var G=nt(this.doc,f),X=0;X<h&&(G=Ru(this.doc,G,H,N,P),!G.hitSide);++X);return G},moveH:tn(function(f,h){var N=this;this.extendSelectionsBy(function(P){return N.display.shift||N.doc.extend||P.empty()?Ru(N.doc,P.head,f,h,N.options.rtlMoveVisually):f<0?P.from():P.to()},q)}),deleteH:tn(function(f,h){var N=this.doc.sel,P=this.doc;N.somethingSelected()?P.replaceSelection("",null,"+delete"):tr(this,function(H){var G=Ru(P,H.head,f,h,!1);return f<0?{from:G,to:H.head}:{from:H.head,to:G}})}),findPosV:function(f,h,N,P){var H=1,G=P;h<0&&(H=-1,h=-h);for(var X=nt(this.doc,f),ne=0;ne<h;++ne){var re=Hn(this,X,"div");if(G==null?G=re.left:re.left=G,X=zv(this,re,H,N),X.hitSide)break}return X},moveV:tn(function(f,h){var N=this,P=this.doc,H=[],G=!this.display.shift&&!P.extend&&P.sel.somethingSelected();if(P.extendSelectionsBy(function(ne){if(G)return f<0?ne.from():ne.to();var re=Hn(N,ne.head,"div");ne.goalColumn!=null&&(re.left=ne.goalColumn),H.push(re.left);var ve=zv(N,re,f,h);return h=="page"&&ne==P.sel.primary()&&mu(N,Ol(N,ve,"div").top-re.top),ve},q),H.length)for(var X=0;X<P.sel.ranges.length;X++)P.sel.ranges[X].goalColumn=H[X]}),findWordAt:function(f){var h=this.doc,N=Ge(h,f.line).text,P=f.ch,H=f.ch;if(N){var G=this.getHelper(f,"wordChars");(f.sticky=="before"||H==N.length)&&P?--P:++H;for(var X=N.charAt(P),ne=we(X,G)?function(re){return we(re,G)}:/\s/.test(X)?function(re){return/\s/.test(re)}:function(re){return!/\s/.test(re)&&!we(re)};P>0&&ne(N.charAt(P-1));)--P;for(;H<N.length&&ne(N.charAt(H));)++H}return new vt(ce(f.line,P),ce(f.line,H))},toggleOverwrite:function(f){f!=null&&f==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?J(this.display.cursorDiv,"CodeMirror-overwrite"):L(this.display.cursorDiv,"CodeMirror-overwrite"),We(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Z(pe(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:tn(function(f,h){Wr(this,f,h)}),getScrollInfo:function(){var f=this.display.scroller;return{left:f.scrollLeft,top:f.scrollTop,height:f.scrollHeight-oo(this)-this.display.barHeight,width:f.scrollWidth-oo(this)-this.display.barWidth,clientHeight:tu(this),clientWidth:ei(this)}},scrollIntoView:tn(function(f,h){f==null?(f={from:this.doc.sel.primary().head,to:null},h==null&&(h=this.options.cursorScrollMargin)):typeof f=="number"?f={from:ce(f,0),to:null}:f.from==null&&(f={from:f,to:null}),f.to||(f.to=f.from),f.margin=h||0,f.from.line!=null?kP(this,f):Vg(this,f.from,f.to,f.margin)}),setSize:tn(function(f,h){var N=this,P=function(G){return typeof G=="number"||/^\d+$/.test(String(G))?G+"px":G};f!=null&&(this.display.wrapper.style.width=P(f)),h!=null&&(this.display.wrapper.style.height=P(h)),this.options.lineWrapping&&wg(this);var H=this.display.viewFrom;this.doc.iter(H,this.display.viewTo,function(G){if(G.widgets){for(var X=0;X<G.widgets.length;X++)if(G.widgets[X].noHScroll){Fo(N,H,"widget");break}}++H}),this.curOp.forceUpdate=!0,We(this,"refresh",this)}),operation:function(f){return vn(this,f)},startOperation:function(){return ai(this)},endOperation:function(){return li(this)},refresh:tn(function(){var f=this.display.cachedTextHeight;ln(this),this.curOp.forceUpdate=!0,Hr(this),Wr(this,this.doc.scrollLeft,this.doc.scrollTop),yu(this.display),(f==null||Math.abs(f-Ui(this.display))>.5||this.options.lineWrapping)&&du(this),We(this,"refresh",this)}),swapDoc:tn(function(f){var h=this.doc;return h.cm=null,this.state.selectingText&&this.state.selectingText(),Yg(this,f),Hr(this),this.display.input.reset(),Wr(this,f.scrollLeft,f.scrollTop),this.curOp.forceScroll=!0,Ut(this,"swapDoc",this,h),h}),phrase:function(f){var h=this.options.phrases;return h&&Object.prototype.hasOwnProperty.call(h,f)?h[f]:f},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},wt(a),a.registerHelper=function(f,h,N){p.hasOwnProperty(f)||(p[f]=a[f]={_global:[]}),p[f][h]=N},a.registerGlobalHelper=function(f,h,N,P){a.registerHelper(f,h,P),p[f]._global.push({pred:N,val:P})}}function Ru(a,l,p,f,h){var N=l,P=p,H=Ge(a,l.line),G=h&&a.direction=="rtl"?-p:p;function X(){var Le=l.line+G;return Le<a.first||Le>=a.first+a.size?!1:(l=new ce(Le,l.ch,l.sticky),H=Ge(a,Le))}function ne(Le){var $e;if(f=="codepoint"){var He=H.text.charCodeAt(l.ch+(p>0?0:-1));if(isNaN(He))$e=null;else{var Je=p>0?He>=55296&&He<56320:He>=56320&&He<57343;$e=new ce(l.line,Math.max(0,Math.min(H.text.length,l.ch+p*(Je?2:1))),-p)}}else h?$e=cM(a.cm,H,l,p):$e=Nu(H,l,p);if($e==null)if(!Le&&X())l=Tu(h,a.cm,H,l.line,G);else return!1;else l=$e;return!0}if(f=="char"||f=="codepoint")ne();else if(f=="column")ne(!0);else if(f=="word"||f=="group")for(var re=null,ve=f=="group",me=a.cm&&a.cm.getHelper(l,"wordChars"),_e=!0;!(p<0&&!ne(!_e));_e=!1){var xe=H.text.charAt(l.ch)||`
`,Te=we(xe,me)?"w":ve&&xe==`
`?"n":!ve||/\s/.test(xe)?null:"p";if(ve&&!_e&&!Te&&(Te="s"),re&&re!=Te){p<0&&(p=1,ne(),l.sticky="after");break}if(Te&&(re=Te),p>0&&!ne(!_e))break}var Be=zl(a,l,N,P,!0);return tt(N,Be)&&(Be.hitSide=!0),Be}function zv(a,l,p,f){var h=a.doc,N=l.left,P;if(f=="page"){var H=Math.min(a.display.wrapper.clientHeight,se(a).innerHeight||h(a).documentElement.clientHeight),G=Math.max(H-.5*Ui(a.display),3);P=(p>0?l.bottom:l.top)+p*G}else f=="line"&&(P=p>0?l.bottom+3:l.top-3);for(var X;X=ru(a,N,P),!!X.outside;){if(p<0?P<=0:P>=h.height){X.hitSide=!0;break}P+=p*5}return X}var bt=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new he,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};bt.prototype.init=function(a){var l=this,p=this,f=p.cm,h=p.div=a.lineDiv;h.contentEditable=!0,Lv(h,f.options.spellcheck,f.options.autocorrect,f.options.autocapitalize);function N(H){for(var G=H.target;G;G=G.parentNode){if(G==h)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(G.className))break}return!1}be(h,"paste",function(H){!N(H)||lt(f,H)||Fv(H,f)||g<=11&&setTimeout(Wt(f,function(){return l.updateFromDOM()}),20)}),be(h,"compositionstart",function(H){l.composing={data:H.data,done:!1}}),be(h,"compositionupdate",function(H){l.composing||(l.composing={data:H.data,done:!1})}),be(h,"compositionend",function(H){l.composing&&(H.data!=l.composing.data&&l.readFromDOMSoon(),l.composing.done=!0)}),be(h,"touchstart",function(){return p.forceCompositionEnd()}),be(h,"input",function(){l.composing||l.readFromDOMSoon()});function P(H){if(!(!N(H)||lt(f,H))){if(f.somethingSelected())Yl({lineWise:!1,text:f.getSelections()}),H.type=="cut"&&f.replaceSelection("",null,"cut");else if(f.options.lineWiseCopyCut){var G=Mv(f);Yl({lineWise:!0,text:G.text}),H.type=="cut"&&f.operation(function(){f.setSelections(G.ranges,0,K),f.replaceSelection("",null,"cut")})}else return;if(H.clipboardData){H.clipboardData.clearData();var X=Wn.text.join(`
`);if(H.clipboardData.setData("Text",X),H.clipboardData.getData("Text")==X){H.preventDefault();return}}var ne=jv(),re=ne.firstChild;f.display.lineSpace.insertBefore(ne,f.display.lineSpace.firstChild),re.value=Wn.text.join(`
`);var ve=Z(h.ownerDocument);ie(re),setTimeout(function(){f.display.lineSpace.removeChild(ne),ve.focus(),ve==h&&p.showPrimarySelection()},50)}}be(h,"copy",P),be(h,"cut",P)},bt.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},bt.prototype.prepareSelection=function(){var a=Dg(this.cm,!1);return a.focus=Z(this.div.ownerDocument)==this.div,a},bt.prototype.showSelection=function(a,l){!a||!this.cm.display.view.length||((a.focus||l)&&this.showPrimarySelection(),this.showMultipleSelections(a))},bt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},bt.prototype.showPrimarySelection=function(){var a=this.getSelection(),l=this.cm,p=l.doc.sel.primary(),f=p.from(),h=p.to();if(l.display.viewTo==l.display.viewFrom||f.line>=l.display.viewTo||h.line<l.display.viewFrom){a.removeAllRanges();return}var N=Ql(l,a.anchorNode,a.anchorOffset),P=Ql(l,a.focusNode,a.focusOffset);if(!(N&&!N.bad&&P&&!P.bad&&Ce(Lt(N,P),f)==0&&Ce(ht(N,P),h)==0)){var H=l.display.view,G=f.line>=l.display.viewFrom&&Hv(l,f)||{node:H[0].measure.map[2],offset:0},X=h.line<l.display.viewTo&&Hv(l,h);if(!X){var ne=H[H.length-1].measure,re=ne.maps?ne.maps[ne.maps.length-1]:ne.map;X={node:re[re.length-1],offset:re[re.length-2]-re[re.length-3]}}if(!G||!X){a.removeAllRanges();return}var ve=a.rangeCount&&a.getRangeAt(0),me;try{me=M(G.node,G.offset,X.offset,X.node)}catch{}me&&(!o&&l.state.focused?(a.collapse(G.node,G.offset),me.collapsed||(a.removeAllRanges(),a.addRange(me))):(a.removeAllRanges(),a.addRange(me)),ve&&a.anchorNode==null?a.addRange(ve):o&&this.startGracePeriod()),this.rememberSelection()}},bt.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},bt.prototype.showMultipleSelections=function(a){W(this.cm.display.cursorDiv,a.cursors),W(this.cm.display.selectionDiv,a.selection)},bt.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},bt.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var l=a.getRangeAt(0).commonAncestorContainer;return j(this.div,l)},bt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Z(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},bt.prototype.blur=function(){this.div.blur()},bt.prototype.getField=function(){return this.div},bt.prototype.supportsTouch=function(){return!0},bt.prototype.receivedFocus=function(){var a=this,l=this;this.selectionInEditor()?setTimeout(function(){return a.pollSelection()},20):vn(this.cm,function(){return l.cm.curOp.selectionChanged=!0});function p(){l.cm.state.focused&&(l.pollSelection(),l.polling.set(l.cm.options.pollInterval,p))}this.polling.set(this.cm.options.pollInterval,p)},bt.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},bt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),l=this.cm;if(S&&w&&this.cm.display.gutterSpecs.length&&OM(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var p=Ql(l,a.anchorNode,a.anchorOffset),f=Ql(l,a.focusNode,a.focusOffset);p&&f&&vn(l,function(){Jt(l.doc,Mo(p,f),K),(p.bad||f.bad)&&(l.curOp.selectionChanged=!0)})}}},bt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,l=a.display,p=a.doc.sel.primary(),f=p.from(),h=p.to();if(f.ch==0&&f.line>a.firstLine()&&(f=ce(f.line-1,Ge(a.doc,f.line-1).length)),h.ch==Ge(a.doc,h.line).text.length&&h.line<a.lastLine()&&(h=ce(h.line+1,0)),f.line<l.viewFrom||h.line>l.viewTo-1)return!1;var N,P,H;f.line==l.viewFrom||(N=oi(a,f.line))==0?(P=gt(l.view[0].line),H=l.view[0].node):(P=gt(l.view[N].line),H=l.view[N-1].node.nextSibling);var G=oi(a,h.line),X,ne;if(G==l.view.length-1?(X=l.viewTo-1,ne=l.lineDiv.lastChild):(X=gt(l.view[G+1].line)-1,ne=l.view[G+1].node.previousSibling),!H)return!1;for(var re=a.doc.splitLines(DM(a,H,ne,P,X)),ve=go(a.doc,ce(P,0),ce(X,Ge(a.doc,X).text.length));re.length>1&&ve.length>1;)if(Se(re)==Se(ve))re.pop(),ve.pop(),X--;else if(re[0]==ve[0])re.shift(),ve.shift(),P++;else break;for(var me=0,_e=0,xe=re[0],Te=ve[0],Be=Math.min(xe.length,Te.length);me<Be&&xe.charCodeAt(me)==Te.charCodeAt(me);)++me;for(var Le=Se(re),$e=Se(ve),He=Math.min(Le.length-(re.length==1?me:0),$e.length-(ve.length==1?me:0));_e<He&&Le.charCodeAt(Le.length-_e-1)==$e.charCodeAt($e.length-_e-1);)++_e;if(re.length==1&&ve.length==1&&P==f.line)for(;me&&me>f.ch&&Le.charCodeAt(Le.length-_e-1)==$e.charCodeAt($e.length-_e-1);)me--,_e++;re[re.length-1]=Le.slice(0,Le.length-_e).replace(/^\u200b+/,""),re[0]=re[0].slice(me).replace(/\u200b+$/,"");var Je=ce(P,me),Qe=ce(X,ve.length?Se(ve).length-_e:0);if(re.length>1||re[0]||Ce(Je,Qe))return Zi(a.doc,re,Je,Qe,"+input"),!0},bt.prototype.ensurePolled=function(){this.forceCompositionEnd()},bt.prototype.reset=function(){this.forceCompositionEnd()},bt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},bt.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},bt.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&vn(this.cm,function(){return ln(a.cm)})},bt.prototype.setUneditable=function(a){a.contentEditable="false"},bt.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Wt(this.cm,Vu)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},bt.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},bt.prototype.onContextMenu=function(){},bt.prototype.resetPosition=function(){},bt.prototype.needsContentAttribute=!0;function Hv(a,l){var p=nu(a,l.line);if(!p||p.hidden)return null;var f=Ge(a.doc,l.line),h=vg(p,f,l.line),N=Xe(f,a.doc.direction),P="left";if(N){var H=Oe(N,l.ch);P=H%2?"right":"left"}var G=Cg(h.map,l.ch,P);return G.offset=G.collapse=="right"?G.end:G.start,G}function OM(a){for(var l=a;l;l=l.parentNode)if(/CodeMirror-gutter-wrapper/.test(l.className))return!0;return!1}function or(a,l){return l&&(a.bad=!0),a}function DM(a,l,p,f,h){var N="",P=!1,H=a.doc.lineSeparator(),G=!1;function X(me){return function(_e){return _e.id==me}}function ne(){P&&(N+=H,G&&(N+=H),P=G=!1)}function re(me){me&&(ne(),N+=me)}function ve(me){if(me.nodeType==1){var _e=me.getAttribute("cm-text");if(_e){re(_e);return}var xe=me.getAttribute("cm-marker"),Te;if(xe){var Be=a.findMarks(ce(f,0),ce(h+1,0),X(+xe));Be.length&&(Te=Be[0].find(0))&&re(go(a.doc,Te.from,Te.to).join(H));return}if(me.getAttribute("contenteditable")=="false")return;var Le=/^(pre|div|p|li|table|br)$/i.test(me.nodeName);if(!/^br$/i.test(me.nodeName)&&me.textContent.length==0)return;Le&&ne();for(var $e=0;$e<me.childNodes.length;$e++)ve(me.childNodes[$e]);/^(pre|p)$/i.test(me.nodeName)&&(G=!0),Le&&(P=!0)}else me.nodeType==3&&re(me.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ve(l),l!=p;)l=l.nextSibling,G=!1;return N}function Ql(a,l,p){var f;if(l==a.display.lineDiv){if(f=a.display.lineDiv.childNodes[p],!f)return or(a.clipPos(ce(a.display.viewTo-1)),!0);l=null,p=0}else for(f=l;;f=f.parentNode){if(!f||f==a.display.lineDiv)return null;if(f.parentNode&&f.parentNode==a.display.lineDiv)break}for(var h=0;h<a.display.view.length;h++){var N=a.display.view[h];if(N.node==f)return BM(N,l,p)}}function BM(a,l,p){var f=a.text.firstChild,h=!1;if(!l||!j(f,l))return or(ce(gt(a.line),0),!0);if(l==f&&(h=!0,l=f.childNodes[p],p=0,!l)){var N=a.rest?Se(a.rest):a.line;return or(ce(gt(N),N.text.length),h)}var P=l.nodeType==3?l:null,H=l;for(!P&&l.childNodes.length==1&&l.firstChild.nodeType==3&&(P=l.firstChild,p&&(p=P.nodeValue.length));H.parentNode!=f;)H=H.parentNode;var G=a.measure,X=G.maps;function ne(Te,Be,Le){for(var $e=-1;$e<(X?X.length:0);$e++)for(var He=$e<0?G.map:X[$e],Je=0;Je<He.length;Je+=3){var Qe=He[Je+2];if(Qe==Te||Qe==Be){var ut=gt($e<0?a.line:a.rest[$e]),_t=He[Je]+Le;return(Le<0||Qe!=Te)&&(_t=He[Je+(Le?1:0)]),ce(ut,_t)}}}var re=ne(P,H,p);if(re)return or(re,h);for(var ve=H.nextSibling,me=P?P.nodeValue.length-p:0;ve;ve=ve.nextSibling){if(re=ne(ve,ve.firstChild,0),re)return or(ce(re.line,re.ch-me),h);me+=ve.textContent.length}for(var _e=H.previousSibling,xe=p;_e;_e=_e.previousSibling){if(re=ne(_e,_e.firstChild,-1),re)return or(ce(re.line,re.ch+xe),h);xe+=_e.textContent.length}}var It=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new he,this.hasSelection=!1,this.composing=null};It.prototype.init=function(a){var l=this,p=this,f=this.cm;this.createField(a);var h=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),b&&(h.style.width="0px"),be(h,"input",function(){u&&g>=9&&l.hasSelection&&(l.hasSelection=null),p.poll()}),be(h,"paste",function(P){lt(f,P)||Fv(P,f)||(f.state.pasteIncoming=+new Date,p.fastPoll())});function N(P){if(!lt(f,P)){if(f.somethingSelected())Yl({lineWise:!1,text:f.getSelections()});else if(f.options.lineWiseCopyCut){var H=Mv(f);Yl({lineWise:!0,text:H.text}),P.type=="cut"?f.setSelections(H.ranges,null,K):(p.prevInput="",h.value=H.text.join(`
`),ie(h))}else return;P.type=="cut"&&(f.state.cutIncoming=+new Date)}}be(h,"cut",N),be(h,"copy",N),be(a.scroller,"paste",function(P){if(!(bo(a,P)||lt(f,P))){if(!h.dispatchEvent){f.state.pasteIncoming=+new Date,p.focus();return}var H=new Event("paste");H.clipboardData=P.clipboardData,h.dispatchEvent(H)}}),be(a.lineSpace,"selectstart",function(P){bo(a,P)||mt(P)}),be(h,"compositionstart",function(){var P=f.getCursor("from");p.composing&&p.composing.range.clear(),p.composing={start:P,range:f.markText(P,f.getCursor("to"),{className:"CodeMirror-composing"})}}),be(h,"compositionend",function(){p.composing&&(p.poll(),p.composing.range.clear(),p.composing=null)})},It.prototype.createField=function(a){this.wrapper=jv(),this.textarea=this.wrapper.firstChild},It.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},It.prototype.prepareSelection=function(){var a=this.cm,l=a.display,p=a.doc,f=Dg(a);if(a.options.moveInputWithCursor){var h=Hn(a,p.sel.primary().head,"div"),N=l.wrapper.getBoundingClientRect(),P=l.lineDiv.getBoundingClientRect();f.teTop=Math.max(0,Math.min(l.wrapper.clientHeight-10,h.top+P.top-N.top)),f.teLeft=Math.max(0,Math.min(l.wrapper.clientWidth-10,h.left+P.left-N.left))}return f},It.prototype.showSelection=function(a){var l=this.cm,p=l.display;W(p.cursorDiv,a.cursors),W(p.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},It.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var l=this.cm;if(l.somethingSelected()){this.prevInput="";var p=l.getSelection();this.textarea.value=p,l.state.focused&&ie(this.textarea),u&&g>=9&&(this.hasSelection=p)}else a||(this.prevInput=this.textarea.value="",u&&g>=9&&(this.hasSelection=null))}},It.prototype.getField=function(){return this.textarea},It.prototype.supportsTouch=function(){return!1},It.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!x||Z(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},It.prototype.blur=function(){this.textarea.blur()},It.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},It.prototype.receivedFocus=function(){this.slowPoll()},It.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},It.prototype.fastPoll=function(){var a=!1,l=this;l.pollingFast=!0;function p(){var f=l.poll();!f&&!a?(a=!0,l.polling.set(60,p)):(l.pollingFast=!1,l.slowPoll())}l.polling.set(20,p)},It.prototype.poll=function(){var a=this,l=this.cm,p=this.textarea,f=this.prevInput;if(this.contextMenuPending||!l.state.focused||Bo(p)&&!f&&!this.composing||l.isReadOnly()||l.options.disableInput||l.state.keySeq)return!1;var h=p.value;if(h==f&&!l.somethingSelected())return!1;if(u&&g>=9&&this.hasSelection===h||O&&/[\uf700-\uf7ff]/.test(h))return l.display.input.reset(),!1;if(l.doc.sel==l.display.selForContextMenu){var N=h.charCodeAt(0);if(N==8203&&!f&&(f="\u200B"),N==8666)return this.reset(),this.cm.execCommand("undo")}for(var P=0,H=Math.min(f.length,h.length);P<H&&f.charCodeAt(P)==h.charCodeAt(P);)++P;return vn(l,function(){Vu(l,h.slice(P),f.length-P,null,a.composing?"*compose":null),h.length>1e3||h.indexOf(`
`)>-1?p.value=a.prevInput="":a.prevInput=h,a.composing&&(a.composing.range.clear(),a.composing.range=l.markText(a.composing.start,l.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},It.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},It.prototype.onKeyPress=function(){u&&g>=9&&(this.hasSelection=null),this.fastPoll()},It.prototype.onContextMenu=function(a){var l=this,p=l.cm,f=p.display,h=l.textarea;l.contextMenuPending&&l.contextMenuPending();var N=ni(p,a),P=f.scroller.scrollTop;if(!N||E)return;var H=p.options.resetSelectionOnContextMenu;H&&p.doc.sel.contains(N)==-1&&Wt(p,Jt)(p.doc,Mo(N),K);var G=h.style.cssText,X=l.wrapper.style.cssText,ne=l.wrapper.offsetParent.getBoundingClientRect();l.wrapper.style.cssText="position: static",h.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-ne.top-5)+"px; left: "+(a.clientX-ne.left-5)+`px;
z-index: 1000; background: `+(u?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var re;y&&(re=h.ownerDocument.defaultView.scrollY),f.input.focus(),y&&h.ownerDocument.defaultView.scrollTo(null,re),f.input.reset(),p.somethingSelected()||(h.value=l.prevInput=" "),l.contextMenuPending=me,f.selForContextMenu=p.doc.sel,clearTimeout(f.detectingSelectAll);function ve(){if(h.selectionStart!=null){var xe=p.somethingSelected(),Te="\u200B"+(xe?h.value:"");h.value="\u21DA",h.value=Te,l.prevInput=xe?"":"\u200B",h.selectionStart=1,h.selectionEnd=Te.length,f.selForContextMenu=p.doc.sel}}function me(){if(l.contextMenuPending==me&&(l.contextMenuPending=!1,l.wrapper.style.cssText=X,h.style.cssText=G,u&&g<9&&f.scrollbars.setScrollTop(f.scroller.scrollTop=P),h.selectionStart!=null)){(!u||u&&g<9)&&ve();var xe=0,Te=function(){f.selForContextMenu==p.doc.sel&&h.selectionStart==0&&h.selectionEnd>0&&l.prevInput=="\u200B"?Wt(p,lv)(p):xe++<10?f.detectingSelectAll=setTimeout(Te,500):(f.selForContextMenu=null,f.input.reset())};f.detectingSelectAll=setTimeout(Te,200)}}if(u&&g>=9&&ve(),T){Ln(a);var _e=function(){Ue(window,"mouseup",_e),setTimeout(me,20)};be(window,"mouseup",_e)}else setTimeout(me,50)},It.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},It.prototype.setUneditable=function(){},It.prototype.needsContentAttribute=!1;function $M(a,l){if(l=l?fe(l):{},l.value=a.value,!l.tabindex&&a.tabIndex&&(l.tabindex=a.tabIndex),!l.placeholder&&a.placeholder&&(l.placeholder=a.placeholder),l.autofocus==null){var p=Z(a.ownerDocument);l.autofocus=p==a||a.getAttribute("autofocus")!=null&&p==document.body}function f(){a.value=H.getValue()}var h;if(a.form&&(be(a.form,"submit",f),!l.leaveSubmitMethodAlone)){var N=a.form;h=N.submit;try{var P=N.submit=function(){f(),N.submit=h,N.submit(),N.submit=P}}catch{}}l.finishInit=function(G){G.save=f,G.getTextArea=function(){return a},G.toTextArea=function(){G.toTextArea=isNaN,f(),a.parentNode.removeChild(G.getWrapperElement()),a.style.display="",a.form&&(Ue(a.form,"submit",f),!l.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=h))}},a.style.display="none";var H=xt(function(G){return a.parentNode.insertBefore(G,a.nextSibling)},l);return H}function VM(a){a.off=Ue,a.on=be,a.wheelEventPixels=jP,a.Doc=sn,a.splitLines=Ir,a.countColumn=ue,a.findColumn=oe,a.isWordChar=le,a.Pass=Q,a.signal=We,a.Line=ji,a.changeEnd=Lo,a.scrollbarModel=Fg,a.Pos=ce,a.cmpPos=Ce,a.modes=jn,a.mimeModes=$o,a.resolveMode=gn,a.getMode=ho,a.modeExtensions=Vo,a.extendMode=Cl,a.copyState=mo,a.startState=Fr,a.innerMode=Ro,a.commands=aa,a.keyMap=_o,a.keyName=Ev,a.isModifierKey=_v,a.lookupKey=er,a.normalizeKeyMap=dM,a.StringStream=Bt,a.SharedTextMarker=oa,a.TextMarker=zo,a.LineWidget=na,a.e_preventDefault=mt,a.e_stopPropagation=$n,a.e_stop=Ln,a.addClass=J,a.contains=j,a.rmClass=L,a.keyNames=Ho}SM(xt),TM(xt);var RM="iter insert remove copy getEditor constructor".split(" ");for(var Xl in sn.prototype)sn.prototype.hasOwnProperty(Xl)&&$(RM,Xl)<0&&(xt.prototype[Xl]=function(a){return function(){return a.apply(this.doc,arguments)}}(sn.prototype[Xl]));return wt(sn),xt.inputStyles={textarea:It,contenteditable:bt},xt.defineMode=function(a){!xt.defaults.mode&&a!="null"&&(xt.defaults.mode=a),bl.apply(this,arguments)},xt.defineMIME=Mi,xt.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),xt.defineMIME("text/plain","null"),xt.defineExtension=function(a,l){xt.prototype[a]=l},xt.defineDocExtension=function(a,l){sn.prototype[a]=l},xt.fromTextArea=$M,VM(xt),xt.version="6.65.7",xt})}(hc)),hc.exports}var fo=Di();(function(e,t){(function(i){i(Di())})(function(i){i.defineMode("javascript",function(r,o){var s=r.indentUnit,d=o.statementIndent,c=o.jsonld,u=o.json||c,g=o.trackScope!==!1,y=o.typescript,C=o.wordCharacters||/[\w$\xa1-\uffff]/,w=function(){function ee(Lt){return{type:Lt,style:"keyword"}}var ae=ee("keyword a"),ce=ee("keyword b"),Ce=ee("keyword c"),tt=ee("keyword d"),ft=ee("operator"),ht={type:"atom",style:"atom"};return{if:ee("if"),while:ae,with:ae,else:ce,do:ce,try:ce,finally:ce,return:tt,break:tt,continue:tt,new:ee("new"),delete:Ce,void:Ce,throw:Ce,debugger:ee("debugger"),var:ee("var"),const:ee("var"),let:ee("var"),function:ee("function"),catch:ee("catch"),for:ee("for"),switch:ee("switch"),case:ee("case"),default:ee("default"),in:ft,typeof:ft,instanceof:ft,true:ht,false:ht,null:ht,undefined:ht,NaN:ht,Infinity:ht,this:ee("this"),class:ee("class"),super:ee("atom"),yield:Ce,export:ee("export"),import:ee("import"),extends:Ce,await:Ce}}(),A=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function _(ee){for(var ae=!1,ce,Ce=!1;(ce=ee.next())!=null;){if(!ae){if(ce=="/"&&!Ce)return;ce=="["?Ce=!0:Ce&&ce=="]"&&(Ce=!1)}ae=!ae&&ce=="\\"}}var v,m;function b(ee,ae,ce){return v=ee,m=ce,ae}function S(ee,ae){var ce=ee.next();if(ce=='"'||ce=="'")return ae.tokenize=x(ce),ae.tokenize(ee,ae);if(ce=="."&&ee.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return b("number","number");if(ce=="."&&ee.match(".."))return b("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ce))return b(ce);if(ce=="="&&ee.eat(">"))return b("=>","operator");if(ce=="0"&&ee.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return b("number","number");if(/\d/.test(ce))return ee.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),b("number","number");if(ce=="/")return ee.eat("*")?(ae.tokenize=O,O(ee,ae)):ee.eat("/")?(ee.skipToEnd(),b("comment","comment")):to(ee,ae,1)?(_(ee),ee.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),b("regexp","string-2")):(ee.eat("="),b("operator","operator",ee.current()));if(ce=="`")return ae.tokenize=D,D(ee,ae);if(ce=="#"&&ee.peek()=="!")return ee.skipToEnd(),b("meta","meta");if(ce=="#"&&ee.eatWhile(C))return b("variable","property");if(ce=="<"&&ee.match("!--")||ce=="-"&&ee.match("->")&&!/\S/.test(ee.string.slice(0,ee.start)))return ee.skipToEnd(),b("comment","comment");if(A.test(ce))return(ce!=">"||!ae.lexical||ae.lexical.type!=">")&&(ee.eat("=")?(ce=="!"||ce=="=")&&ee.eat("="):/[<>*+\-|&?]/.test(ce)&&(ee.eat(ce),ce==">"&&ee.eat(ce))),ce=="?"&&ee.eat(".")?b("."):b("operator","operator",ee.current());if(C.test(ce)){ee.eatWhile(C);var Ce=ee.current();if(ae.lastType!="."){if(w.propertyIsEnumerable(Ce)){var tt=w[Ce];return b(tt.type,tt.style,Ce)}if(Ce=="async"&&ee.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return b("async","keyword",Ce)}return b("variable","variable",Ce)}}function x(ee){return function(ae,ce){var Ce=!1,tt;if(c&&ae.peek()=="@"&&ae.match(E))return ce.tokenize=S,b("jsonld-keyword","meta");for(;(tt=ae.next())!=null&&!(tt==ee&&!Ce);)Ce=!Ce&&tt=="\\";return Ce||(ce.tokenize=S),b("string","string")}}function O(ee,ae){for(var ce=!1,Ce;Ce=ee.next();){if(Ce=="/"&&ce){ae.tokenize=S;break}ce=Ce=="*"}return b("comment","comment")}function D(ee,ae){for(var ce=!1,Ce;(Ce=ee.next())!=null;){if(!ce&&(Ce=="`"||Ce=="$"&&ee.eat("{"))){ae.tokenize=S;break}ce=!ce&&Ce=="\\"}return b("quasi","string-2",ee.current())}var R="([{}])";function I(ee,ae){ae.fatArrowAt&&(ae.fatArrowAt=null);var ce=ee.string.indexOf("=>",ee.start);if(!(ce<0)){if(y){var Ce=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(ee.string.slice(ee.start,ce));Ce&&(ce=Ce.index)}for(var tt=0,ft=!1,ht=ce-1;ht>=0;--ht){var Lt=ee.string.charAt(ht),kn=R.indexOf(Lt);if(kn>=0&&kn<3){if(!tt){++ht;break}if(--tt==0){Lt=="("&&(ft=!0);break}}else if(kn>=3&&kn<6)++tt;else if(C.test(Lt))ft=!0;else if(/["'\/`]/.test(Lt))for(;;--ht){if(ht==0)return;var nt=ee.string.charAt(ht-1);if(nt==Lt&&ee.string.charAt(ht-2)!="\\"){ht--;break}}else if(ft&&!tt){++ht;break}}ft&&!tt&&(ae.fatArrowAt=ht)}}var z={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function T(ee,ae,ce,Ce,tt,ft){this.indented=ee,this.column=ae,this.type=ce,this.prev=tt,this.info=ft,Ce!=null&&(this.align=Ce)}function B(ee,ae){if(!g)return!1;for(var ce=ee.localVars;ce;ce=ce.next)if(ce.name==ae)return!0;for(var Ce=ee.context;Ce;Ce=Ce.prev)for(var ce=Ce.vars;ce;ce=ce.next)if(ce.name==ae)return!0}function L(ee,ae,ce,Ce,tt){var ft=ee.cc;for(U.state=ee,U.stream=tt,U.marked=null,U.cc=ft,U.style=ae,ee.lexical.hasOwnProperty("align")||(ee.lexical.align=!0);;){var ht=ft.length?ft.pop():u?Q:$;if(ht(ce,Ce)){for(;ft.length&&ft[ft.length-1].lex;)ft.pop()();return U.marked?U.marked:ce=="variable"&&B(ee,Ce)?"variable-2":ae}}}var U={state:null,column:null,marked:null,cc:null};function W(){for(var ee=arguments.length-1;ee>=0;ee--)U.cc.push(arguments[ee])}function V(){return W.apply(null,arguments),!0}function k(ee,ae){for(var ce=ae;ce;ce=ce.next)if(ce.name==ee)return!0;return!1}function M(ee){var ae=U.state;if(U.marked="def",!!g){if(ae.context){if(ae.lexical.info=="var"&&ae.context&&ae.context.block){var ce=j(ee,ae.context);if(ce!=null){ae.context=ce;return}}else if(!k(ee,ae.localVars)){ae.localVars=new F(ee,ae.localVars);return}}o.globalVars&&!k(ee,ae.globalVars)&&(ae.globalVars=new F(ee,ae.globalVars))}}function j(ee,ae){if(ae)if(ae.block){var ce=j(ee,ae.prev);return ce?ce==ae.prev?ae:new J(ce,ae.vars,!0):null}else return k(ee,ae.vars)?ae:new J(ae.prev,new F(ee,ae.vars),!1);else return null}function Z(ee){return ee=="public"||ee=="private"||ee=="protected"||ee=="abstract"||ee=="readonly"}function J(ee,ae,ce){this.prev=ee,this.vars=ae,this.block=ce}function F(ee,ae){this.name=ee,this.next=ae}var ie=new F("this",new F("arguments",null));function pe(){U.state.context=new J(U.state.context,U.state.localVars,!1),U.state.localVars=ie}function se(){U.state.context=new J(U.state.context,U.state.localVars,!0),U.state.localVars=null}pe.lex=se.lex=!0;function ye(){U.state.localVars=U.state.context.vars,U.state.context=U.state.context.prev}ye.lex=!0;function fe(ee,ae){var ce=function(){var Ce=U.state,tt=Ce.indented;if(Ce.lexical.type=="stat")tt=Ce.lexical.indented;else for(var ft=Ce.lexical;ft&&ft.type==")"&&ft.align;ft=ft.prev)tt=ft.indented;Ce.lexical=new T(tt,U.stream.column(),ee,null,Ce.lexical,ae)};return ce.lex=!0,ce}function ue(){var ee=U.state;ee.lexical.prev&&(ee.lexical.type==")"&&(ee.indented=ee.lexical.indented),ee.lexical=ee.lexical.prev)}ue.lex=!0;function he(ee){function ae(ce){return ce==ee?V():ee==";"||ce=="}"||ce==")"||ce=="]"?W():V(ae)}return ae}function $(ee,ae){return ee=="var"?V(fe("vardef",ae),Ln,he(";"),ue):ee=="keyword a"?V(fe("form"),te,$,ue):ee=="keyword b"?V(fe("form"),$,ue):ee=="keyword d"?U.stream.match(/^\s*$/,!1)?V():V(fe("stat"),oe,he(";"),ue):ee=="debugger"?V(he(";")):ee=="{"?V(fe("}"),se,Ze,ue,ye):ee==";"?V():ee=="if"?(U.state.lexical.info=="else"&&U.state.cc[U.state.cc.length-1]==ue&&U.state.cc.pop()(),V(fe("form"),te,$,ue,Pi)):ee=="function"?V(qn):ee=="for"?V(fe("form"),se,vl,$,ye,ue):ee=="class"||y&&ae=="interface"?(U.marked="keyword",V(fe("form",ee=="class"?ee:ae),bl,ue)):ee=="variable"?y&&ae=="declare"?(U.marked="keyword",V($)):y&&(ae=="module"||ae=="enum"||ae=="type")&&U.stream.match(/^\s*\w/,!1)?(U.marked="keyword",ae=="enum"?V(Li):ae=="type"?V(yl,he("operator"),be,he(";")):V(fe("form"),an,he("{"),fe("}"),Ze,ue,ue)):y&&ae=="namespace"?(U.marked="keyword",V(fe("form"),Q,$,ue)):y&&ae=="abstract"?(U.marked="keyword",V($)):V(fe("stat"),we):ee=="switch"?V(fe("form"),te,he("{"),fe("}","switch"),se,Ze,ue,ue,ye):ee=="case"?V(Q,he(":")):ee=="default"?V(he(":")):ee=="catch"?V(fe("form"),pe,Y,$,ue,ye):ee=="export"?V(fe("stat"),Vo,ue):ee=="import"?V(fe("stat"),mo,ue):ee=="async"?V($):ae=="@"?V(Q,$):W(fe("stat"),Q,he(";"),ue)}function Y(ee){if(ee=="(")return V(jn,he(")"))}function Q(ee,ae){return q(ee,ae,!1)}function K(ee,ae){return q(ee,ae,!0)}function te(ee){return ee!="("?W():V(fe(")"),oe,he(")"),ue)}function q(ee,ae,ce){if(U.state.fatArrowAt==U.stream.start){var Ce=ce?Re:qe;if(ee=="(")return V(pe,fe(")"),Fe(jn,")"),ue,he("=>"),Ce,ye);if(ee=="variable")return W(pe,an,he("=>"),Ce,ye)}var tt=ce?Ee:de;return z.hasOwnProperty(ee)?V(tt):ee=="function"?V(qn,tt):ee=="class"||y&&ae=="interface"?(U.marked="keyword",V(fe("form"),$o,ue)):ee=="keyword c"||ee=="async"?V(ce?K:Q):ee=="("?V(fe(")"),oe,he(")"),ue,tt):ee=="operator"||ee=="spread"?V(ce?K:Q):ee=="["?V(fe("]"),go,ue,tt):ee=="{"?Ct(je,"}",null,tt):ee=="quasi"?W(Se,tt):ee=="new"?V(ge(ce)):V()}function oe(ee){return ee.match(/[;\}\)\],]/)?W():W(Q)}function de(ee,ae){return ee==","?V(oe):Ee(ee,ae,!1)}function Ee(ee,ae,ce){var Ce=ce==!1?de:Ee,tt=ce==!1?Q:K;if(ee=="=>")return V(pe,ce?Re:qe,ye);if(ee=="operator")return/\+\+|--/.test(ae)||y&&ae=="!"?V(Ce):y&&ae=="<"&&U.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?V(fe(">"),Fe(be,">"),ue,Ce):ae=="?"?V(Q,he(":"),tt):V(tt);if(ee=="quasi")return W(Se,Ce);if(ee!=";"){if(ee=="(")return Ct(K,")","call",Ce);if(ee==".")return V(Ie,Ce);if(ee=="[")return V(fe("]"),oe,he("]"),ue,Ce);if(y&&ae=="as")return U.marked="keyword",V(be,Ce);if(ee=="regexp")return U.state.lastType=U.marked="operator",U.stream.backUp(U.stream.pos-U.stream.start-1),V(tt)}}function Se(ee,ae){return ee!="quasi"?W():ae.slice(ae.length-2)!="${"?V(Se):V(oe,ke)}function ke(ee){if(ee=="}")return U.marked="string-2",U.state.tokenize=D,V(Se)}function qe(ee){return I(U.stream,U.state),W(ee=="{"?$:Q)}function Re(ee){return I(U.stream,U.state),W(ee=="{"?$:K)}function ge(ee){return function(ae){return ae=="."?V(ee?le:Ae):ae=="variable"&&y?V(mt,ee?Ee:de):W(ee?K:Q)}}function Ae(ee,ae){if(ae=="target")return U.marked="keyword",V(de)}function le(ee,ae){if(ae=="target")return U.marked="keyword",V(Ee)}function we(ee){return ee==":"?V(ue,$):W(de,he(";"),ue)}function Ie(ee){if(ee=="variable")return U.marked="property",V()}function je(ee,ae){if(ee=="async")return U.marked="property",V(je);if(ee=="variable"||U.style=="keyword"){if(U.marked="property",ae=="get"||ae=="set")return V(ct);var ce;return y&&U.state.fatArrowAt==U.stream.start&&(ce=U.stream.match(/^\s*:\s*/,!1))&&(U.state.fatArrowAt=U.stream.pos+ce[0].length),V(rt)}else{if(ee=="number"||ee=="string")return U.marked=c?"property":U.style+" property",V(rt);if(ee=="jsonld-keyword")return V(rt);if(y&&Z(ae))return U.marked="keyword",V(je);if(ee=="[")return V(Q,Oe,he("]"),rt);if(ee=="spread")return V(K,rt);if(ae=="*")return U.marked="keyword",V(je);if(ee==":")return W(rt)}}function ct(ee){return ee!="variable"?W(rt):(U.marked="property",V(qn))}function rt(ee){if(ee==":")return V(K);if(ee=="(")return W(qn)}function Fe(ee,ae,ce){function Ce(tt,ft){if(ce?ce.indexOf(tt)>-1:tt==","){var ht=U.state.lexical;return ht.info=="call"&&(ht.pos=(ht.pos||0)+1),V(function(Lt,kn){return Lt==ae||kn==ae?W():W(ee)},Ce)}return tt==ae||ft==ae?V():ce&&ce.indexOf(";")>-1?W(ee):V(he(ae))}return function(tt,ft){return tt==ae||ft==ae?V():W(ee,Ce)}}function Ct(ee,ae,ce){for(var Ce=3;Ce<arguments.length;Ce++)U.cc.push(arguments[Ce]);return V(fe(ae,ce),Fe(ee,ae),ue)}function Ze(ee){return ee=="}"?V():W($,Ze)}function Oe(ee,ae){if(y){if(ee==":")return V(be);if(ae=="?")return V(Oe)}}function Ve(ee,ae){if(y&&(ee==":"||ae=="in"))return V(be)}function Xe(ee){if(y&&ee==":")return U.stream.match(/^\s*\w+\s+is\b/,!1)?V(Q,De,be):V(be)}function De(ee,ae){if(ae=="is")return U.marked="keyword",V()}function be(ee,ae){if(ae=="keyof"||ae=="typeof"||ae=="infer"||ae=="readonly")return U.marked="keyword",V(ae=="typeof"?K:be);if(ee=="variable"||ae=="void")return U.marked="type",V(wt);if(ae=="|"||ae=="&")return V(be);if(ee=="string"||ee=="number"||ee=="atom")return V(wt);if(ee=="[")return V(fe("]"),Fe(be,"]",","),ue,wt);if(ee=="{")return V(fe("}"),Ue,ue,wt);if(ee=="(")return V(Fe(Tt,")"),Ke,wt);if(ee=="<")return V(Fe(be,">"),be);if(ee=="quasi")return W(lt,wt)}function Ke(ee){if(ee=="=>")return V(be)}function Ue(ee){return ee.match(/[\}\)\]]/)?V():ee==","||ee==";"?V(Ue):W(We,Ue)}function We(ee,ae){if(ee=="variable"||U.style=="keyword")return U.marked="property",V(We);if(ae=="?"||ee=="number"||ee=="string")return V(We);if(ee==":")return V(be);if(ee=="[")return V(he("variable"),Ve,he("]"),We);if(ee=="(")return W(eo,We);if(!ee.match(/[;\}\)\],]/))return V()}function lt(ee,ae){return ee!="quasi"?W():ae.slice(ae.length-2)!="${"?V(lt):V(be,rn)}function rn(ee){if(ee=="}")return U.marked="string-2",U.state.tokenize=D,V(lt)}function Tt(ee,ae){return ee=="variable"&&U.stream.match(/^\s*[?:]/,!1)||ae=="?"?V(Tt):ee==":"?V(be):ee=="spread"?V(Tt):W(be)}function wt(ee,ae){if(ae=="<")return V(fe(">"),Fe(be,">"),ue,wt);if(ae=="|"||ee=="."||ae=="&")return V(be);if(ee=="[")return V(be,he("]"),wt);if(ae=="extends"||ae=="implements")return U.marked="keyword",V(be);if(ae=="?")return V(be,he(":"),be)}function mt(ee,ae){if(ae=="<")return V(fe(">"),Fe(be,">"),ue,wt)}function $n(){return W(be,Do)}function Do(ee,ae){if(ae=="=")return V(be)}function Ln(ee,ae){return ae=="enum"?(U.marked="keyword",V(Li)):W(an,Oe,Vn,Wc)}function an(ee,ae){if(y&&Z(ae))return U.marked="keyword",V(an);if(ee=="variable")return M(ae),V();if(ee=="spread")return V(an);if(ee=="[")return Ct(Uc,"]");if(ee=="{")return Ct(Rr,"}")}function Rr(ee,ae){return ee=="variable"&&!U.stream.match(/^\s*:/,!1)?(M(ae),V(Vn)):(ee=="variable"&&(U.marked="property"),ee=="spread"?V(an):ee=="}"?W():ee=="["?V(Q,he("]"),he(":"),Rr):V(he(":"),an,Vn))}function Uc(){return W(an,Vn)}function Vn(ee,ae){if(ae=="=")return V(K)}function Wc(ee){if(ee==",")return V(Ln)}function Pi(ee,ae){if(ee=="keyword b"&&ae=="else")return V(fe("form","else"),$,ue)}function vl(ee,ae){if(ae=="await")return V(vl);if(ee=="(")return V(fe(")"),Ir,ue)}function Ir(ee){return ee=="var"?V(Ln,Bo):ee=="variable"?V(Bo):W(Bo)}function Bo(ee,ae){return ee==")"?V():ee==";"?V(Bo):ae=="in"||ae=="of"?(U.marked="keyword",V(Q,Bo)):W(Q,Bo)}function qn(ee,ae){if(ae=="*")return U.marked="keyword",V(qn);if(ee=="variable")return M(ae),V(qn);if(ee=="(")return V(pe,fe(")"),Fe(jn,")"),ue,Xe,$,ye);if(y&&ae=="<")return V(fe(">"),Fe($n,">"),ue,qn)}function eo(ee,ae){if(ae=="*")return U.marked="keyword",V(eo);if(ee=="variable")return M(ae),V(eo);if(ee=="(")return V(pe,fe(")"),Fe(jn,")"),ue,Xe,ye);if(y&&ae=="<")return V(fe(">"),Fe($n,">"),ue,eo)}function yl(ee,ae){if(ee=="keyword"||ee=="variable")return U.marked="type",V(yl);if(ae=="<")return V(fe(">"),Fe($n,">"),ue)}function jn(ee,ae){return ae=="@"&&V(Q,jn),ee=="spread"?V(jn):y&&Z(ae)?(U.marked="keyword",V(jn)):y&&ee=="this"?V(Oe,Vn):W(an,Oe,Vn)}function $o(ee,ae){return ee=="variable"?bl(ee,ae):Mi(ee,ae)}function bl(ee,ae){if(ee=="variable")return M(ae),V(Mi)}function Mi(ee,ae){if(ae=="<")return V(fe(">"),Fe($n,">"),ue,Mi);if(ae=="extends"||ae=="implements"||y&&ee==",")return ae=="implements"&&(U.marked="keyword"),V(y?be:Q,Mi);if(ee=="{")return V(fe("}"),gn,ue)}function gn(ee,ae){if(ee=="async"||ee=="variable"&&(ae=="static"||ae=="get"||ae=="set"||y&&Z(ae))&&U.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return U.marked="keyword",V(gn);if(ee=="variable"||U.style=="keyword")return U.marked="property",V(ho,gn);if(ee=="number"||ee=="string")return V(ho,gn);if(ee=="[")return V(Q,Oe,he("]"),ho,gn);if(ae=="*")return U.marked="keyword",V(gn);if(y&&ee=="(")return W(eo,gn);if(ee==";"||ee==",")return V(gn);if(ee=="}")return V();if(ae=="@")return V(Q,gn)}function ho(ee,ae){if(ae=="!"||ae=="?")return V(ho);if(ee==":")return V(be,Vn);if(ae=="=")return V(K);var ce=U.state.lexical.prev,Ce=ce&&ce.info=="interface";return W(Ce?eo:qn)}function Vo(ee,ae){return ae=="*"?(U.marked="keyword",V(Ge,he(";"))):ae=="default"?(U.marked="keyword",V(Q,he(";"))):ee=="{"?V(Fe(Cl,"}"),Ge,he(";")):W($)}function Cl(ee,ae){if(ae=="as")return U.marked="keyword",V(he("variable"));if(ee=="variable")return W(K,Cl)}function mo(ee){return ee=="string"?V():ee=="("?W(Q):ee=="."?W(de):W(Ro,Fr,Ge)}function Ro(ee,ae){return ee=="{"?Ct(Ro,"}"):(ee=="variable"&&M(ae),ae=="*"&&(U.marked="keyword"),V(Bt))}function Fr(ee){if(ee==",")return V(Ro,Fr)}function Bt(ee,ae){if(ae=="as")return U.marked="keyword",V(Ro)}function Ge(ee,ae){if(ae=="from")return U.marked="keyword",V(Q)}function go(ee){return ee=="]"?V():W(Fe(K,"]"))}function Li(){return W(fe("form"),an,he("{"),fe("}"),Fe(Rn,"}"),ue,ue)}function Rn(){return W(an,Vn)}function gt(ee,ae){return ee.lastType=="operator"||ee.lastType==","||A.test(ae.charAt(0))||/[,.]/.test(ae.charAt(0))}function to(ee,ae,ce){return ae.tokenize==S&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(ae.lastType)||ae.lastType=="quasi"&&/\{\s*$/.test(ee.string.slice(0,ee.pos-(ce||0)))}return{startState:function(ee){var ae={tokenize:S,lastType:"sof",cc:[],lexical:new T((ee||0)-s,0,"block",!1),localVars:o.localVars,context:o.localVars&&new J(null,null,!1),indented:ee||0};return o.globalVars&&typeof o.globalVars=="object"&&(ae.globalVars=o.globalVars),ae},token:function(ee,ae){if(ee.sol()&&(ae.lexical.hasOwnProperty("align")||(ae.lexical.align=!1),ae.indented=ee.indentation(),I(ee,ae)),ae.tokenize!=O&&ee.eatSpace())return null;var ce=ae.tokenize(ee,ae);return v=="comment"?ce:(ae.lastType=v=="operator"&&(m=="++"||m=="--")?"incdec":v,L(ae,ce,v,m,ee))},indent:function(ee,ae){if(ee.tokenize==O||ee.tokenize==D)return i.Pass;if(ee.tokenize!=S)return 0;var ce=ae&&ae.charAt(0),Ce=ee.lexical,tt;if(!/^\s*else\b/.test(ae))for(var ft=ee.cc.length-1;ft>=0;--ft){var ht=ee.cc[ft];if(ht==ue)Ce=Ce.prev;else if(ht!=Pi&&ht!=ye)break}for(;(Ce.type=="stat"||Ce.type=="form")&&(ce=="}"||(tt=ee.cc[ee.cc.length-1])&&(tt==de||tt==Ee)&&!/^[,\.=+\-*:?[\(]/.test(ae));)Ce=Ce.prev;d&&Ce.type==")"&&Ce.prev.type=="stat"&&(Ce=Ce.prev);var Lt=Ce.type,kn=ce==Lt;return Lt=="vardef"?Ce.indented+(ee.lastType=="operator"||ee.lastType==","?Ce.info.length+1:0):Lt=="form"&&ce=="{"?Ce.indented:Lt=="form"?Ce.indented+s:Lt=="stat"?Ce.indented+(gt(ee,ae)?d||s:0):Ce.info=="switch"&&!kn&&o.doubleIndentSwitch!=!1?Ce.indented+(/^(?:case|default)\b/.test(ae)?s:2*s):Ce.align?Ce.column+(kn?0:1):Ce.indented+(kn?0:s)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:c,jsonMode:u,expressionAllowed:to,skipExpression:function(ee){L(ee,"atom","atom","true",new i.StringStream("",2,null))}}}),i.registerHelper("wordChars","javascript",/[\w$]/),i.defineMIME("text/javascript","javascript"),i.defineMIME("text/ecmascript","javascript"),i.defineMIME("application/javascript","javascript"),i.defineMIME("application/x-javascript","javascript"),i.defineMIME("application/ecmascript","javascript"),i.defineMIME("application/json",{name:"javascript",json:!0}),i.defineMIME("application/x-json",{name:"javascript",json:!0}),i.defineMIME("application/manifest+json",{name:"javascript",json:!0}),i.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),i.defineMIME("text/typescript",{name:"javascript",typescript:!0}),i.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})(),function(e,t){(function(i){i(Di())})(function(i){var r="CodeMirror-hint",o="CodeMirror-hint-active";i.showHint=function(m,b,S){if(!b)return m.showHint(S);S&&S.async&&(b.async=!0);var x={hint:b};if(S)for(var O in S)x[O]=S[O];return m.showHint(x)},i.defineExtension("showHint",function(m){m=u(this,this.getCursor("start"),m);var b=this.listSelections();if(!(b.length>1)){if(this.somethingSelected()){if(!m.hint.supportsSelection)return;for(var S=0;S<b.length;S++)if(b[S].head.line!=b[S].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var x=this.state.completionActive=new s(this,m);!x.options.hint||(i.signal(this,"startCompletion",this),x.update(!0))}}),i.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function s(m,b){if(this.cm=m,this.options=b,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var S=this;m.on("cursorActivity",this.activityFunc=function(){S.cursorActivity()})}}var d=window.requestAnimationFrame||function(m){return setTimeout(m,1e3/60)},c=window.cancelAnimationFrame||clearTimeout;s.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&i.signal(this.data,"close"),this.widget&&this.widget.close(),i.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(m,b){var S=m.list[b],x=this;this.cm.operation(function(){S.hint?S.hint(x.cm,m,S):x.cm.replaceRange(g(S),S.from||m.from,S.to||m.to,"complete"),i.signal(m,"pick",S),x.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(c(this.debounce),this.debounce=0);var m=this.startPos;this.data&&(m=this.data.from);var b=this.cm.getCursor(),S=this.cm.getLine(b.line);if(b.line!=this.startPos.line||S.length-b.ch!=this.startLen-this.startPos.ch||b.ch<m.ch||this.cm.somethingSelected()||!b.ch||this.options.closeCharacters.test(S.charAt(b.ch-1)))this.close();else{var x=this;this.debounce=d(function(){x.update()}),this.widget&&this.widget.disable()}},update:function(m){if(this.tick!=null){var b=this,S=++this.tick;E(this.options.hint,this.cm,this.options,function(x){b.tick==S&&b.finishUpdate(x,m)})}},finishUpdate:function(m,b){this.data&&i.signal(this.data,"update");var S=this.widget&&this.widget.picked||b&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=m,m&&m.list.length&&(S&&m.list.length==1?this.pick(m,0):(this.widget=new w(this,m),i.signal(m,"shown")))}};function u(m,b,S){var x=m.options.hintOptions,O={};for(var D in v)O[D]=v[D];if(x)for(var D in x)x[D]!==void 0&&(O[D]=x[D]);if(S)for(var D in S)S[D]!==void 0&&(O[D]=S[D]);return O.hint.resolve&&(O.hint=O.hint.resolve(m,b)),O}function g(m){return typeof m=="string"?m:m.text}function y(m,b){var S={Up:function(){b.moveFocus(-1)},Down:function(){b.moveFocus(1)},PageUp:function(){b.moveFocus(-b.menuSize()+1,!0)},PageDown:function(){b.moveFocus(b.menuSize()-1,!0)},Home:function(){b.setFocus(0)},End:function(){b.setFocus(b.length-1)},Enter:b.pick,Tab:b.pick,Esc:b.close},x=/Mac/.test(navigator.platform);x&&(S["Ctrl-P"]=function(){b.moveFocus(-1)},S["Ctrl-N"]=function(){b.moveFocus(1)});var O=m.options.customKeys,D=O?{}:S;function R(T,B){var L;typeof B!="string"?L=function(U){return B(U,b)}:S.hasOwnProperty(B)?L=S[B]:L=B,D[T]=L}if(O)for(var I in O)O.hasOwnProperty(I)&&R(I,O[I]);var z=m.options.extraKeys;if(z)for(var I in z)z.hasOwnProperty(I)&&R(I,z[I]);return D}function C(m,b){for(;b&&b!=m;){if(b.nodeName.toUpperCase()==="LI"&&b.parentNode==m)return b;b=b.parentNode}}function w(m,b){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=m,this.data=b,this.picked=!1;var S=this,x=m.cm,O=x.getInputField().ownerDocument,D=O.defaultView||O.parentWindow,R=this.hints=O.createElement("ul");R.setAttribute("role","listbox"),R.setAttribute("aria-expanded","true"),R.id=this.id;var I=m.cm.options.theme;R.className="CodeMirror-hints "+I,this.selectedHint=b.selectedHint||0;for(var z=b.list,T=0;T<z.length;++T){var B=R.appendChild(O.createElement("li")),L=z[T],U=r+(T!=this.selectedHint?"":" "+o);L.className!=null&&(U=L.className+" "+U),B.className=U,T==this.selectedHint&&B.setAttribute("aria-selected","true"),B.id=this.id+"-"+T,B.setAttribute("role","option"),L.render?L.render(B,b,L):B.appendChild(O.createTextNode(L.displayText||g(L))),B.hintId=T}var W=m.options.container||O.body,V=x.cursorCoords(m.options.alignWithWord?b.from:null),k=V.left,M=V.bottom,j=!0,Z=0,J=0;if(W!==O.body){var F=["absolute","relative","fixed"].indexOf(D.getComputedStyle(W).position)!==-1,ie=F?W:W.offsetParent,pe=ie.getBoundingClientRect(),se=O.body.getBoundingClientRect();Z=pe.left-se.left-ie.scrollLeft,J=pe.top-se.top-ie.scrollTop}R.style.left=k-Z+"px",R.style.top=M-J+"px";var ye=D.innerWidth||Math.max(O.body.offsetWidth,O.documentElement.offsetWidth),fe=D.innerHeight||Math.max(O.body.offsetHeight,O.documentElement.offsetHeight);W.appendChild(R),x.getInputField().setAttribute("aria-autocomplete","list"),x.getInputField().setAttribute("aria-owns",this.id),x.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var ue=m.options.moveOnOverlap?R.getBoundingClientRect():new DOMRect,he=m.options.paddingForScrollbar?R.scrollHeight>R.clientHeight+1:!1,$;setTimeout(function(){$=x.getScrollInfo()});var Y=ue.bottom-fe;if(Y>0){var Q=ue.bottom-ue.top,K=V.top-(V.bottom-ue.top);if(K-Q>0)R.style.top=(M=V.top-Q-J)+"px",j=!1;else if(Q>fe){R.style.height=fe-5+"px",R.style.top=(M=V.bottom-ue.top-J)+"px";var te=x.getCursor();b.from.ch!=te.ch&&(V=x.cursorCoords(te),R.style.left=(k=V.left-Z)+"px",ue=R.getBoundingClientRect())}}var q=ue.right-ye;if(he&&(q+=x.display.nativeBarWidth),q>0&&(ue.right-ue.left>ye&&(R.style.width=ye-5+"px",q-=ue.right-ue.left-ye),R.style.left=(k=Math.max(V.left-q-Z,0))+"px"),he)for(var oe=R.firstChild;oe;oe=oe.nextSibling)oe.style.paddingRight=x.display.nativeBarWidth+"px";if(x.addKeyMap(this.keyMap=y(m,{moveFocus:function(Se,ke){S.changeActive(S.selectedHint+Se,ke)},setFocus:function(Se){S.changeActive(Se)},menuSize:function(){return S.screenAmount()},length:z.length,close:function(){m.close()},pick:function(){S.pick()},data:b})),m.options.closeOnUnfocus){var de;x.on("blur",this.onBlur=function(){de=setTimeout(function(){m.close()},100)}),x.on("focus",this.onFocus=function(){clearTimeout(de)})}x.on("scroll",this.onScroll=function(){var Se=x.getScrollInfo(),ke=x.getWrapperElement().getBoundingClientRect();$||($=x.getScrollInfo());var qe=M+$.top-Se.top,Re=qe-(D.pageYOffset||(O.documentElement||O.body).scrollTop);if(j||(Re+=R.offsetHeight),Re<=ke.top||Re>=ke.bottom)return m.close();R.style.top=qe+"px",R.style.left=k+$.left-Se.left+"px"}),i.on(R,"dblclick",function(Se){var ke=C(R,Se.target||Se.srcElement);ke&&ke.hintId!=null&&(S.changeActive(ke.hintId),S.pick())}),i.on(R,"click",function(Se){var ke=C(R,Se.target||Se.srcElement);ke&&ke.hintId!=null&&(S.changeActive(ke.hintId),m.options.completeOnSingleClick&&S.pick())}),i.on(R,"mousedown",function(){setTimeout(function(){x.focus()},20)});var Ee=this.getSelectedHintRange();return(Ee.from!==0||Ee.to!==0)&&this.scrollToActive(),i.signal(b,"select",z[this.selectedHint],R.childNodes[this.selectedHint]),!0}w.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var m=this.completion.cm.getInputField();m.removeAttribute("aria-activedescendant"),m.removeAttribute("aria-owns");var b=this.completion.cm;this.completion.options.closeOnUnfocus&&(b.off("blur",this.onBlur),b.off("focus",this.onFocus)),b.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var m=this;this.keyMap={Enter:function(){m.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(m,b){if(m>=this.data.list.length?m=b?this.data.list.length-1:0:m<0&&(m=b?0:this.data.list.length-1),this.selectedHint!=m){var S=this.hints.childNodes[this.selectedHint];S&&(S.className=S.className.replace(" "+o,""),S.removeAttribute("aria-selected")),S=this.hints.childNodes[this.selectedHint=m],S.className+=" "+o,S.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",S.id),this.scrollToActive(),i.signal(this.data,"select",this.data.list[this.selectedHint],S)}},scrollToActive:function(){var m=this.getSelectedHintRange(),b=this.hints.childNodes[m.from],S=this.hints.childNodes[m.to],x=this.hints.firstChild;b.offsetTop<this.hints.scrollTop?this.hints.scrollTop=b.offsetTop-x.offsetTop:S.offsetTop+S.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=S.offsetTop+S.offsetHeight-this.hints.clientHeight+x.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var m=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-m),to:Math.min(this.data.list.length-1,this.selectedHint+m)}}};function A(m,b){if(!m.somethingSelected())return b;for(var S=[],x=0;x<b.length;x++)b[x].supportsSelection&&S.push(b[x]);return S}function E(m,b,S,x){if(m.async)m(b,x,S);else{var O=m(b,S);O&&O.then?O.then(x):x(O)}}function _(m,b){var S=m.getHelpers(b,"hint"),x;if(S.length){var O=function(D,R,I){var z=A(D,S);function T(B){if(B==z.length)return R(null);E(z[B],D,I,function(L){L&&L.list.length>0?R(L):T(B+1)})}T(0)};return O.async=!0,O.supportsSelection=!0,O}else return(x=m.getHelper(m.getCursor(),"hintWords"))?function(D){return i.hint.fromList(D,{words:x})}:i.hint.anyword?function(D,R){return i.hint.anyword(D,R)}:function(){}}i.registerHelper("hint","auto",{resolve:_}),i.registerHelper("hint","fromList",function(m,b){var S=m.getCursor(),x=m.getTokenAt(S),O,D=i.Pos(S.line,x.start),R=S;x.start<S.ch&&/\w/.test(x.string.charAt(S.ch-x.start-1))?O=x.string.substr(0,S.ch-x.start):(O="",D=S);for(var I=[],z=0;z<b.words.length;z++){var T=b.words[z];T.slice(0,O.length)==O&&I.push(T)}if(I.length)return{list:I,from:D,to:R}}),i.commands.autocomplete=i.showHint;var v={hint:i.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};i.defineOption("hintOptions",null)})}(),function(e,t){(function(i){i(Di())})(function(i){var r=i.Pos;function o(m,b){for(var S=0,x=m.length;S<x;++S)b(m[S])}function s(m,b){if(!Array.prototype.indexOf){for(var S=m.length;S--;)if(m[S]===b)return!0;return!1}return m.indexOf(b)!=-1}function d(m,b,S,x){var O=m.getCursor(),D=S(m,O);if(!/\b(?:string|comment)\b/.test(D.type)){var R=i.innerMode(m.getMode(),D.state);if(R.mode.helperType!=="json"){D.state=R.state,/^[\w$_]*$/.test(D.string)?D.end>O.ch&&(D.end=O.ch,D.string=D.string.slice(0,O.ch-D.start)):D={start:O.ch,end:O.ch,string:"",state:D.state,type:D.string=="."?"property":null};for(var I=D;I.type=="property";){if(I=S(m,r(O.line,I.start)),I.string!=".")return;if(I=S(m,r(O.line,I.start)),!z)var z=[];z.push(I)}return{list:v(D,z,b,x),from:r(O.line,D.start),to:r(O.line,D.end)}}}}function c(m,b){return d(m,A,function(S,x){return S.getTokenAt(x)},b)}i.registerHelper("hint","javascript",c);function u(m,b){var S=m.getTokenAt(b);return b.ch==S.start+1&&S.string.charAt(0)=="."?(S.end=S.start,S.string=".",S.type="property"):/^\.[\w$_]*$/.test(S.string)&&(S.type="property",S.start++,S.string=S.string.replace(/\./,"")),S}function g(m,b){return d(m,E,u,b)}i.registerHelper("hint","coffeescript",g);var y="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),C="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),w="prototype apply call bind".split(" "),A="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),E="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function _(m,b){if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)for(var S in m)b(S);else for(var x=m;x;x=Object.getPrototypeOf(x))Object.getOwnPropertyNames(x).forEach(b)}function v(m,b,S,x){var O=[],D=m.string,R=x&&x.globalScope||window;function I(V){V.lastIndexOf(D,0)==0&&!s(O,V)&&O.push(V)}function z(V){typeof V=="string"?o(y,I):V instanceof Array?o(C,I):V instanceof Function&&o(w,I),_(V,I)}if(b&&b.length){var T=b.pop(),B;for(T.type&&T.type.indexOf("variable")===0?(x&&x.additionalContext&&(B=x.additionalContext[T.string]),(!x||x.useGlobalScope!==!1)&&(B=B||R[T.string])):T.type=="string"?B="":T.type=="atom"?B=1:T.type=="function"&&(R.jQuery!=null&&(T.string=="$"||T.string=="jQuery")&&typeof R.jQuery=="function"?B=R.jQuery():R._!=null&&T.string=="_"&&typeof R._=="function"&&(B=R._()));B!=null&&b.length;)B=B[b.pop().string];B!=null&&z(B)}else{for(var L=m.state.localVars;L;L=L.next)I(L.name);for(var U=m.state.context;U;U=U.prev)for(var L=U.vars;L;L=L.next)I(L.name);for(var L=m.state.globalVars;L;L=L.next)I(L.name);if(x&&x.additionalContext!=null)for(var W in x.additionalContext)I(W);(!x||x.useGlobalScope!==!1)&&z(R),o(S,I)}return O}})}();const e3="",tk="[[FORM-CREATE-PREFIX-",nk="-FORM-CREATE-SUFFIX]]",ok=n.defineComponent({name:"FnEditor",emits:["update:modelValue","change"],props:{modelValue:[String,Function],name:String,args:Array,body:Boolean,button:Boolean,fnx:Boolean},inject:["designer"],data(){return{editor:null,fn:"",visible:!1,value:""}},watch:{modelValue(e){e!=this.value&&(!e||!e.__json||e.__json&&e.__json!=this.value)&&this.editor&&this.editor.setValue(this.tidyValue())}},computed:{t(){return this.designer.setupState.t},columns(){return[{title:this.t("props.field"),dataIndex:"label",width:"120px"},{title:this.t("event.info"),dataIndex:"info"},{title:this.t("event.type"),dataIndex:"type",width:"80px"}]},argStr(){return(this.args||[]).map(e=>typeof e=="string"?e:e.name).join(", ")},argList(){return this.args.map(e=>typeof e=="string"?{name:e,type:"string"}:e)}},mounted(){this.$nextTick(()=>{this.load()})},methods:{save(){const e=this.editor.getValue()||"";if(e.trim()==="")this.fn="";else{let t;try{t=new Function("return function "+this.name+"("+this.argStr+"){"+e+"}")()}catch(i){return console.error(i),qt(this.t("struct.errorMsg")),!1}this.body?this.fn=(this.fnx?"$FNX:":"")+e:this.fn=tk+t+nk}return this.submit(),!0},submit(){this.$emit("update:modelValue",this.fn),this.$emit("change",this.fn),this.value=this.fn,this.visible=!1},trimString(e){const t=e.indexOf("{"),i=e.lastIndexOf("}");return t===-1||i===-1||t>=i?e:e.slice(t+1,i).replace(/^\n+|\n+$/g,"")},tidyValue(){let e=this.modelValue||"";return e.__json&&(e=e.__json),this.fnx&&typeof e=="string"&&e.indexOf("$FNX:")===0&&(e=e.slice(5)),typeof e=="function"?e=this.trimString(fn(e)).trim():this.body||(e=this.trimString(e).trim()),this.value=e,e},load(){this.$nextTick(()=>{let e=this.tidyValue();this.editor=n.markRaw(fo(this.$refs.editor,{lineNumbers:!0,mode:{name:"javascript",globalVars:!0},extraKeys:{"Ctrl-Space":"autocomplete"},line:!0,tabSize:2,lineWrapping:!0,value:e})),this.editor.on("inputRead",(t,i)=>{i.keyCode===32&&i.ctrlKey&&fo.showHint(t,fo.hint.javascript)}),this.editor.on("change",()=>{this.visible=!0}),this.editor})}}}),ik={class:"_fd-fn"},rk={class:"_fd-fn-tip"},ak={class:"cm-keyword"},lk={key:0},sk={class:"_fd-fn-arg"},dk={ref:"editor",class:"_fd-fn-editor"};function ck(e,t,i,r,o,s){const d=n.resolveComponent("a-table"),c=n.resolveComponent("a-popover"),u=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",ik,[n.createElementVNode("div",rk,[t[2]||(t[2]=n.createElementVNode("div",{class:"_fd-fn-ind"},null,-1)),n.createElementVNode("div",ak,[n.createElementVNode("span",null,[n.createTextVNode("function "+n.toDisplayString(e.name)+"(",1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.argList,(g,y)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:y},[n.createTextVNode(n.toDisplayString(y>0?", ":""),1),g.type==="string"?(n.openBlock(),n.createElementBlock("span",lk,n.toDisplayString(g.name),1)):(n.openBlock(),n.createBlock(c,{key:1,trigger:"click",title:g.name,content:g.info||void 0},n.createSlots({default:n.withCtx(()=>[n.createElementVNode("span",sk,[n.createTextVNode(n.toDisplayString(g.name),1),t[0]||(t[0]=n.createElementVNode("i",{class:"fc-icon icon-question"},null,-1))])]),_:2},[g.columns?{name:"content",fn:n.withCtx(()=>[n.createVNode(d,{"data-source":g.columns,columns:e.columns,size:"small",bordered:"",pagination:!1,style:{width:"400px"}},{bodyCell:n.withCtx(C=>[n.createTextVNode(n.toDisplayString(C.record[C.column.dataIndex]),1)]),_:2},1032,["data-source","columns"])]),key:"0"}:void 0]),1032,["title","content"]))],64))),128)),t[1]||(t[1]=n.createTextVNode(") {"))])])]),n.createElementVNode("div",dk,null,512),t[3]||(t[3]=n.createElementVNode("div",{class:"_fd-fn-tip"},[n.createElementVNode("div",{class:"_fd-fn-ind"}),n.createElementVNode("div",{class:"cm-keyword"},"}")],-1)),e.visible&&e.button?(n.openBlock(),n.createBlock(u,{key:0,type:"primary",size:"small",onClick:e.save},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0)])}const po=Ne(ok,[["render",ck]]),t3="",uk=n.defineComponent({name:"ConditionInput",inject:["designer"],emits:["update:modelValue","change"],props:{type:String,options:Array,props:Object,modelValue:[String,Number,Array,Object,Boolean]},watch:{modelValue(){this.value=this.modelValue||void 0}},data(){return{value:this.modelValue||void 0}},methods:{onInput(){this.$emit("update:modelValue",this.value),this.$emit("change",this.value)}},created(){}}),fk={class:"_fd-cdi-input"};function pk(e,t,i,r,o,s){const d=n.resolveComponent("a-tree-select"),c=n.resolveComponent("a-input-number"),u=n.resolveComponent("a-select-option"),g=n.resolveComponent("a-select"),y=n.resolveComponent("a-switch"),C=n.resolveComponent("a-input");return n.openBlock(),n.createElementBlock("div",fk,[e.type==="cascader"?(n.openBlock(),n.createBlock(d,n.mergeProps({key:0,size:"default"},e.props||{},{"tree-data":e.options,value:e.value,"onUpdate:value":t[0]||(t[0]=w=>e.value=w),onChange:e.onInput}),null,16,["tree-data","value","onChange"])):e.type==="number"?(n.openBlock(),n.createBlock(c,n.mergeProps({key:1,size:"default"},e.props||{},{value:e.value,"onUpdate:value":t[1]||(t[1]=w=>e.value=w),onChange:e.onInput}),null,16,["value","onChange"])):e.type==="select"?(n.openBlock(),n.createBlock(g,n.mergeProps({key:2,size:"default"},e.props||{},{value:e.value,"onUpdate:value":t[2]||(t[2]=w=>e.value=w),onChange:e.onInput}),{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,w=>(n.openBlock(),n.createBlock(u,{value:w.value,key:w.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(w.label),1)]),_:2},1032,["value"]))),128))]),_:1},16,["value","onChange"])):e.type==="switch"?(n.openBlock(),n.createBlock(y,n.mergeProps({key:3,size:"default"},e.props||{},{checked:e.value,"onUpdate:checked":t[3]||(t[3]=w=>e.value=w),onChange:e.onInput}),null,16,["checked","onChange"])):(n.openBlock(),n.createBlock(C,n.mergeProps({key:4,size:"default"},e.props||{},{value:e.value,"onUpdate:value":t[4]||(t[4]=w=>e.value=w),onBlur:e.onInput}),null,16,["value","onBlur"]))])}const hk=Ne(uk,[["render",pk]]),n3="",mk=n.defineComponent({name:"PatternInput",emits:["update:modelValue","change"],props:{size:String,modelValue:String},data(){return{value:this.modelValue||"",options:[{label:"\u90AE\u7BB1",value:"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$"},{label:"\u57DF\u540D",value:"^((http:\\/\\/)|(https:\\/\\/))?([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}(\\/)$"},{label:"\u624B\u673A\u53F7",value:"^(?:(?:\\+|00)86)?1[3-9]\\d{9}$"},{label:"\u5EA7\u673A\u7535\u8BDD",value:"^(?:(?:\\d{3}-)?\\d{8}|^(?:\\d{4}-)?\\d{7,8})(?:-\\d+)?$"},{label:"\u8EAB\u4EFD\u8BC1\u53F7",value:"^[1-9]\\d{5}(?:18|19|20)\\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[1-2]\\d|30|31)\\d{3}[\\dXx]$"},{label:"\u94F6\u884C\u5361\u53F7",value:"^[1-9]\\d{9,29}$"},{label:"\u8F66\u724C\u53F7",value:"^[\u4EAC\u6D25\u6CAA\u6E1D\u5180\u8C6B\u4E91\u8FBD\u9ED1\u6E58\u7696\u9C81\u65B0\u82CF\u6D59\u8D63\u9102\u6842\u7518\u664B\u8499\u9655\u5409\u95FD\u8D35\u7CA4\u9752\u85CF\u5DDD\u5B81\u743C\u4F7F\u9886][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9\u6302\u5B66\u8B66\u6E2F\u6FB3]$"},{label:"\u4E2D\u6587",value:"^(?:[\\u3400-\\u4DB5\\u4E00-\\u9FEA\\uFA0E\\uFA0F\\uFA11\\uFA13\\uFA14\\uFA1F\\uFA21\\uFA23\\uFA24\\uFA27-\\uFA29]|[\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879][\\uDC00-\\uDFFF]|\\uD869[\\uDC00-\\uDED6\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF34\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0])+$"},{label:"\u6570\u5B57",value:"^\\d+$"},{label:"\u6574\u6570",value:"^(?:0|(?:-?[1-9]\\d*))$"},{label:"\u6B63\u6574\u6570",value:"^\\+?[1-9]\\d*$"},{label:"\u8D1F\u6574\u6570",value:"^-[1-9]\\d*$"},{label:"\u6D6E\u70B9\u6570",value:"^(-?[1-9]\\d*\\.\\d+|-?0\\.\\d*[1-9])$"},{label:"\u6B63\u6D6E\u70B9\u6570",value:"^([1-9]\\d*\\.\\d+|-?0\\.\\d*[1-9])$"},{label:"\u8D1F\u6D6E\u70B9\u6570",value:"^-([1-9]\\d*\\.\\d+|-?0\\.\\d*[1-9])$"},{label:"\u82F1\u6587\u5B57\u6BCD",value:"^[a-zA-Z]+$"},{label:"\u6570\u5B57\u548C\u5B57\u6BCD",value:"^[A-Za-z0-9]+$"}]}},methods:{setValue(e){this.value=e,this.onInput()},onInput(){this.$emit("update:modelValue",this.value),this.$emit("change",this.value)}}}),gk={class:"_fd-pattern-input"};function vk(e,t,i,r,o,s){const d=n.resolveComponent("a-menu-item"),c=n.resolveComponent("a-menu"),u=n.resolveComponent("a-dropdown"),g=n.resolveComponent("a-input");return n.openBlock(),n.createElementBlock("div",gk,[n.createVNode(g,{size:e.size,value:e.value,"onUpdate:value":t[0]||(t[0]=y=>e.value=y),onBlur:e.onInput,allowClear:""},{addonAfter:n.withCtx(()=>[n.createVNode(u,{trigger:"click",size:"default"},{overlay:n.withCtx(()=>[n.createVNode(c,{class:"_fd-pattern-popper"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,y=>(n.openBlock(),n.createBlock(d,{key:y.value,onClick:C=>e.setValue(y.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(y.label),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:1})]),_:1},8,["size","value","onBlur"])])}const mc=Ne(mk,[["render",vk]]),o3="",yk=n.defineComponent({name:"RuleSelect",inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:[String,Number,Array],onlyField:Boolean,valueType:String,size:String,multiple:Boolean},computed:{activeRule(){return this.designer.setupState.activeRule},t(){return this.designer.setupState.t},tree(){var i,r;const e=this.getFields(this.designer.setupState.treeInfo);let t=this.activeRule.__fc__.parent;for(;t;)if(t.rule._menu&&["array","object"].indexOf(t.rule._menu.subForm)>-1){const o=this.getFields(this.designer.setupState.findTree(t.rule.field));o.length&&e.unshift({value:"___subform",disabled:!0,label:((r=(i=t.refRule)==null?void 0:i.__$title)==null?void 0:r.value)||t.rule.title||t.rule._menu.label,children:o}),t=void 0}else t=t.parent;return e}},methods:{getFields(e,t=[]){const i=[];return e.forEach(({rule:r,children:o})=>{var c,u,g;const s=[...t];r.field&&s.push(r);const d=r._menu.subForm==="array"?[]:this.getFields(o||[],s);if(!this.onlyField||this.onlyField&&r.field){const y={value:t.length?t.map(C=>C[this.valueType||"_fc_id"]).join(".")+"."+r[this.valueType||"_fc_id"]:r[this.valueType||"_fc_id"],label:(((g=(u=(c=r==null?void 0:r.__fc__)==null?void 0:c.refRule)==null?void 0:u.__$title)==null?void 0:g.value)||r.title||"").trim()||r.props&&r.props.label||this.t("com."+(r._menu&&r._menu.name)+".name")||r._menu&&r._menu.label||r.type,rule:r,parent:t};d.length&&(y.children=d),i.push(y)}else i.push(...d)}),i},input(e){this.$emit("update:modelValue",e),this.$emit("change",e)}}});function bk(e,t,i,r,o,s){const d=n.resolveComponent("a-tree-select");return n.openBlock(),n.createBlock(d,{class:"_fd-rule-select",treeCheckable:e.multiple,treeData:e.tree,value:e.modelValue,"onUpdate:value":e.input,size:e.size},null,8,["treeCheckable","treeData","value","onUpdate:value","size"])}const gc=Ne(yk,[["render",bk]]),i3="",Ck=n.defineComponent({name:"ValueInput",emits:["update:modelValue","change","change-type","blur"],inject:["designer"],props:{modelValue:[String,Number,Boolean],size:String},data(){return{type:"1",value:""}},computed:{t(){return this.designer.setupState.t}},watch:{modelValue:{handler:function(e){typeof e=="number"?this.type="2":typeof e=="boolean"?this.type="3":this.type="1",this.value=e==null?"":""+e},immediate:!0},type(){this.updateValue(this.value),this.$emit("change-type",this.type)}},methods:{onBlur(...e){this.value!==this.toValue(this.modelValue)&&this.updateValue(this.value),this.$emit("blur",...e)},updateValue(e){const t=this.toValue(e);this.$emit("update:modelValue",t),this.$emit("change",t)},toValue(e){return this.type==="1"?""+e:this.type==="2"?parseFloat(e)||0:e==="true"}}});function _k(e,t,i,r,o,s){const d=n.resolveComponent("a-select-option"),c=n.resolveComponent("a-select"),u=n.resolveComponent("a-input");return n.openBlock(),n.createBlock(u,n.mergeProps({class:"_fd-value-input",size:e.size,value:e.value,"onUpdate:value":t[1]||(t[1]=g=>e.value=g),onBlur:e.onBlur},e.$attrs),n.createSlots({addonBefore:n.withCtx(()=>[n.createVNode(c,{value:e.type,"onUpdate:value":t[0]||(t[0]=g=>e.type=g),size:e.size,style:{width:"100%"}},{default:n.withCtx(()=>[n.createVNode(d,{style:{"font-size":"13px",padding:"3px 0","text-align":"center"},value:"1"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("validate.types.string")),1)]),_:1}),n.createVNode(d,{style:{"font-size":"13px",padding:"5px 0","text-align":"center"},value:"2"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("validate.types.number")),1)]),_:1}),n.createVNode(d,{style:{"font-size":"13px",padding:"5px 0","text-align":"center"},value:"3"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("validate.types.boolean")),1)]),_:1})]),_:1},8,["value","size"])]),_:2},[e.$slots.addonAfter?{name:"addonAfter",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"addonAfter")]),key:"0"}:void 0]),1040,["size","value","onBlur"])}const nl=Ne(Ck,[["render",_k]]),r3="",wk=n.defineComponent({name:"Warning",props:{tooltip:String},data(){return{}}}),Ek=["innerHTML"],Ak={key:0,class:"_fd-warning-text"},Sk={key:1,class:"fc-icon icon-question"};function xk(e,t,i,r,o,s){const d=n.resolveComponent("a-tooltip");return n.openBlock(),n.createBlock(d,{placement:"topLeft",trigger:"hover",overlayClassName:"_fd-warning-pop"},{title:n.withCtx(()=>[n.createElementVNode("span",{innerHTML:e.tooltip},null,8,Ek)]),default:n.withCtx(()=>[e.$slots.default?(n.openBlock(),n.createElementBlock("span",Ak,[n.renderSlot(e.$slots,"default")])):(n.openBlock(),n.createElementBlock("i",Sk))]),_:3})}const Zn=Ne(wk,[["render",xk]]),a3="",kk=n.defineComponent({name:"VariableConfig",components:{Warning:Zn},emits:["submit","confirm"],props:{popover:Boolean},inject:["designer"],data(){return{visible:!1,popVisible:!1,activeIdx:0,variable:"",value:{},fields:[],expandedKeys:["$topForm","$cookie","$localStorage","$sessionStorage","$globalData","$var"]}},computed:{t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},eventNum(){return((this.activeRule||{})._loadData||[]).length},treeInfo(){var i,r,o;const e=this.toObject(this.designer.setupState.varList||[]),t=[{id:"$topForm",label:this.t("computed.form"),driver:!0,children:this.getFormTree(this.designer.setupState.treeInfo)},{id:"$cookie",label:"cookie"},{id:"$localStorage",label:"localStorage"},{id:"$sessionStorage",label:"sessionStorage"},{id:"$globalData",label:this.t("props.globalData"),driver:!0,children:Object.keys(this.designer.setupState.formOptions.globalData||{}).map(s=>({label:this.designer.setupState.formOptions.globalData[s].label,id:s}))},{id:"$var",label:this.t("computed.variable.title"),driver:!0,children:Object.keys(this.designer.setupState.formOptions.globalVariable||{}).map(s=>({label:this.designer.setupState.formOptions.globalVariable[s].label,id:s}))}];if(this.designer.setupState.getConfig("showLanguage")!==!1){let s=((i=this.designer.setupState.formOptions)==null?void 0:i.language)||{},d=s[((o=(r=this.designer.props)==null?void 0:r.locale)==null?void 0:o.name)||"zh-cn"]||s[Object.keys(s)[0]]||{};t.push({id:"$t",label:this.t("language.name"),driver:!0,children:Object.keys(d).map(c=>({label:d[c],id:c}))})}return e.$cookie&&(t[1]={...t[1],...e.$cookie}),e.$localStorage&&(t[2]={...t[2],...e.$localStorage}),e.$sessionStorage&&(t[3]={...t[3],...e.$sessionStorage}),e.$globalData&&e.$globalData.children&&(t[4].children=Object.values({...this.toObject(t[4].children),...this.toObject(e.$globalData.children||[])})),e.$var&&e.$var.children&&(t[5].children=Object.values({...this.toObject(t[5].children),...this.toObject(e.$var.children||[])})),delete e.$cookie,delete e.$localStorage,delete e.$sessionStorage,delete e.$globalData,delete e.$var,t.push(...Object.values(e)),ls(t)}},watch:{visible(e){e&&(this.updateFields(),this.activeIdx=0)}},methods:{openVariableConfig(){this.designer.setupState.openGlobalVariableDialog()},toObject(e){const t={};return e&&e.forEach(i=>{t[i.id]=i}),t},nodeClick(e,t){if(e.stopPropagation(),(this.popover||this.fields[this.activeIdx])&&!t.driver){let i=t.id,r=t.$parent;for(;r;)i=r.id+"."+i,r=r.$parent;this.popover?this.variable=i:this.fields[this.activeIdx].value=i}},getTitle(e){var t,i,r;return(((r=(i=(t=e==null?void 0:e.__fc__)==null?void 0:t.refRule)==null?void 0:i.__$title)==null?void 0:r.value)||e.title||"").trim()||e._menu&&e._menu.label||e.field||e._fc_id},getFormTree(e){const t=[];return e.forEach(({rule:i,children:r})=>{var s,d,c;const o=i.field?[]:this.getFormTree(r||[]);if(i.field){const u={id:i.field,label:((c=(d=(s=i==null?void 0:i.__fc__)==null?void 0:s.refRule)==null?void 0:d.__$title)==null?void 0:c.value)||i.title,rule:i};o.length&&(u.children=o),t.push(u)}else t.push(...o)}),t},tranField(e){return e.indexOf("formCreate")===0?e=fa(e.replace("formCreate","")):e="props."+e,e.replaceAll(">",".")},updateFields(){const e=this.designer.setupState,t=[],i={};(e.activeRule._loadData||[]).forEach(s=>{i[s.to]=s.attr});const r=[];e.activeRule.field&&r.push({label:this.t("computed.value.name"),attach:!0,modify:!0,field:"value"});const o=e.propsForm.api.model();Object.keys(o).forEach(s=>{if(s&&(s[0]!=="_"||o[s]._fc_important_prop)&&o[s].title&&o[s]._fc_important_prop!==!1&&!o[s].hidden&&o[s].display!==!1){const d=typeof o[s]._fc_important_prop=="string"?o[s]._fc_important_prop:s;(o[s]._fc_important_prop===!0?r:t).push({label:o[s].title,modify:d==="formCreateChild",field:this.tranField(d)})}}),t.unshift(...r),t.forEach(s=>{s.value=i[s.field]||""}),this.fields=t},open(){this.visible=!0},active(e){this.activeIdx!==e&&(this.activeIdx=e)},submit(){const e=[];this.fields.forEach(t=>{let i=(t.value||"").trim();if(i){const r={attr:i,to:t.field};t.modify&&(r.modify=!0),e.push(r)}}),this.designer.setupState.activeRule._loadData=e,this.visible=!1},confirm(){const e=(this.variable||"").trim();e&&(this.$emit("confirm",`{{${e}}}`),this.popVisible=!1,this.variable="")}}}),Nk={class:"_fd-variable"},Tk=["onClick"],Ok={style:{width:"230px"}},Dk={class:"_fd-variable-item-label"},Bk={class:"_fd-variable-info"},$k=["onClick"];function Vk(e,t,i,r,o,s){const d=n.resolveComponent("a-input"),c=n.resolveComponent("a-layout-header"),u=n.resolveComponent("a-directory-tree"),g=n.resolveComponent("a-layout-content"),y=n.resolveComponent("a-layout"),C=n.resolveComponent("a-popover"),w=n.resolveComponent("a-badge"),A=n.resolveComponent("Warning"),E=n.resolveComponent("a-layout-sider"),_=n.resolveComponent("a-button"),v=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",Nk,[e.popover?(n.openBlock(),n.createBlock(C,{key:0,open:e.popVisible,"onUpdate:open":t[4]||(t[4]=m=>e.popVisible=m),ref:"pop",trigger:"click",placement:"bottomRight",overlayClassName:"_fd-variable-pop"},{content:n.withCtx(()=>[n.createVNode(y,null,{default:n.withCtx(()=>[n.createVNode(c,{style:{height:"55px"},class:"_fd-variable-pop-header"},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",value:e.variable,"onUpdate:value":t[1]||(t[1]=m=>e.variable=m),status:"default"},{prefix:n.withCtx(()=>t[10]||(t[10]=[n.createElementVNode("span",null,"{{",-1)])),suffix:n.withCtx(()=>t[11]||(t[11]=[n.createTextVNode(" }} ")])),addonAfter:n.withCtx(()=>[n.createElementVNode("div",{onClick:t[0]||(t[0]=(...m)=>e.confirm&&e.confirm(...m))},n.toDisplayString(e.t("props.append")),1)]),_:1},8,["value"]),n.createElementVNode("i",{class:"fc-icon icon-setting",onClick:t[2]||(t[2]=(...m)=>e.openVariableConfig&&e.openVariableConfig(...m))})]),_:1}),n.createVNode(g,null,{default:n.withCtx(()=>[n.createVNode(u,{ref:"treeRef","tree-data":e.treeInfo,fieldNames:{key:"id"},expandedKeys:e.expandedKeys,"onUpdate:expandedKeys":t[3]||(t[3]=m=>e.expandedKeys=m),selectable:!1,showIcon:!1},{title:n.withCtx(({data:m})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-variable-pop-node",{disabled:m.disabled}]),onClick:b=>e.nodeClick(b,m)},[n.createElementVNode("div",null,[n.createElementVNode("span",null,n.toDisplayString((m.label||"").trim()||(m.rule?e.getTitle(m.rule):m.id)),1)]),n.createElementVNode("span",null,n.toDisplayString(m.id),1)],10,Tk)]),_:1},8,["tree-data","expandedKeys"])]),_:1})]),_:1})]),default:n.withCtx(()=>[t[12]||(t[12]=n.createElementVNode("i",{class:"fc-icon icon-variable",style:{cursor:"pointer"}},null,-1))]),_:1},8,["open"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createVNode(w,{color:"orange",count:e.eventNum},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-variable-btn",onClick:t[5]||(t[5]=(...m)=>e.open&&e.open(...m))},[t[13]||(t[13]=n.createElementVNode("i",{class:"fc-icon icon-variable"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("computed.variable.bind")),1)])]),_:1},8,["count"]),n.createVNode(v,{class:"_fd-variable-dialog _fd-config-dialog",open:e.visible,"onUpdate:open":t[9]||(t[9]=m=>e.visible=m),centered:"",maskClosable:!1,destroyOnClose:!0,width:"980px"},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.variable.bind"))+" ",1),n.createVNode(A,{tooltip:e.t("warning.variable")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(_,{onClick:t[8]||(t[8]=m=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(_,{type:"primary",onClick:e.submit,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(y,{class:"_fd-variable-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[n.createVNode(y,{class:"_fd-variable-l"},{default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createElementVNode("div",Ok,n.toDisplayString(e.t("computed.variable.attr")),1),n.createElementVNode("div",null,n.toDisplayString(e.t("computed.variable.bind")),1)]),_:1}),n.createVNode(g,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.fields,(m,b)=>(n.openBlock(),n.createElementBlock("div",{key:m.label,class:n.normalizeClass(["_fd-variable-item",{active:b===e.activeIdx,"_fd-variable-top":m.attach===!0}])},[n.createElementVNode("div",Dk,n.toDisplayString(m.label),1),t[16]||(t[16]=n.createElementVNode("div",null,"=",-1)),n.createVNode(d,{value:m.value,"onUpdate:value":S=>m.value=S,placeholder:"_",onFocus:S=>e.activeIdx=b,clearable:""},{prefix:n.withCtx(()=>t[14]||(t[14]=[n.createElementVNode("span",null,"{{",-1)])),suffix:n.withCtx(()=>t[15]||(t[15]=[n.createTextVNode(" }} ")])),_:2},1032,["value","onUpdate:value","onFocus"])],2))),128))]),_:1})]),_:1})]),_:1}),n.createVNode(E,{width:"328px"},{default:n.withCtx(()=>[n.createVNode(y,{class:"_fd-variable-r"},{default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.variable.list"))+" ",1),n.createElementVNode("i",{class:"fc-icon icon-setting",onClick:t[6]||(t[6]=(...m)=>e.openVariableConfig&&e.openVariableConfig(...m))})]),_:1}),n.createVNode(g,null,{default:n.withCtx(()=>[n.createElementVNode("div",Bk,n.toDisplayString(e.t("warning.variableInfo")),1),n.createVNode(u,{ref:"treeRef","tree-data":e.treeInfo,selectable:!1,fieldNames:{key:"id"},expandedKeys:e.expandedKeys,"onUpdate:expandedKeys":t[7]||(t[7]=m=>e.expandedKeys=m),showIcon:!1},{title:n.withCtx(({data:m})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-variable-node",{disabled:m.disabled}]),onClick:b=>e.nodeClick(b,m)},[n.createElementVNode("div",null,[n.createElementVNode("span",null,n.toDisplayString((m.label||"").trim()||(m.rule?e.getTitle(m.rule):m.id)),1)]),n.createElementVNode("span",null,n.toDisplayString(m.id),1)],10,$k)]),_:1},8,["tree-data","expandedKeys"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])],64))])}const Tr=Ne(kk,[["render",Vk]]),l3="",Bi={input:["==","!=","on","notOn","empty","notEmpty","pattern"],select:["==","!=","on","notOn","empty","notEmpty"],switch:["==","!="],number:["==","!=",">",">=","<","<=","empty","notEmpty"]};Bi.cascader=Bi.select;const yh=n.defineComponent({name:"ConditionGroup",components:{VariableConfig:Tr,ValueInput:nl,RuleSelect:gc,PatternInput:mc,ConditionInput:hk},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:[Object,Array]},computed:{formulaLabel(){return["==","!=","on","notOn","empty","notEmpty","pattern",">",">=","<","<="].reduce((e,t)=>(e[t]=this.t("computed.formulas."+t),e),{})},activeRule(){return this.designer.setupState.activeRule},rules(){let e=this.activeRule.__fc__.parent,t=[];for(;e;)if(e.rule._menu&&e.rule._menu.subForm){t=this.getFields(this.designer.setupState.findTree(e.rule.field));break}else e=e.parent;return[...t,...this.getFields(this.designer.setupState.treeInfo)]},t(){return this.designer.setupState.t}},data(){return{mode:"AND",list:[],ConditionGroup:n.markRaw(yh)}},methods:{selectVar(e,t){e.field=t.slice(2,-2),this.changeField(e)},addItem(){this.list.push({type:"field"})},addItemGroup(){this.list.push({mode:"AND"})},removeItem(e){this.list.length!==1&&(this.list.splice(e,1),this.onInput())},changeType(e){e.field="",e.input=null,e.formula=null},changeField(e){e.field?(e.condition="==",e.type==="field"?this.tidyItem(e):(e.input=!0,e.formula=Bi.select.map(t=>({label:this.formulaLabel[t],value:t})))):(e.input=null,e.formula=null),this.onInput()},getFields(e,t=[]){const i=[];return e.forEach(({rule:r,children:o})=>{const s=[...t];r.field&&s.push(r);const d=this.getFields(o||[],s);if(r.field){const c={value:t.length?t.map(u=>u.field).join(".")+"."+r.field:r.field,label:r.title,rule:r};i.push(c,...d)}else i.push(...d)}),i},tidyValue(){let e=this.modelValue;e&&(Array.isArray(e)&&(e={mode:"AND",group:e}),this.mode=e.mode==="OR"?"OR":"AND",this.list=(e.group||[]).map(t=>t.mode!=null?t:this.tidyItem({...t}))),this.list.length||this.list.push({type:"field"},{type:"field"})},tidyItem(e){return this.rules.forEach(t=>{if(t.value===e.field){e.type="field";const i=t.rule._menu.condition,r=i?at.Function(i)?i(t.rule):at.String(i)?{type:i}:{...i}:{type:"input"};r.options&&(r.options=at.String(r.options)?pi(t.rule.__fc__.prop,r.options):r.options),e.formula=(Bi[r.type]||Bi.input).map(o=>({label:this.formulaLabel[o],value:o})),e.var=!!e.compare,e.input=r}else e.variable&&(e.input=!0,e.field=e.variable,e.formula=Bi.select.map(i=>({label:this.formulaLabel[i],value:i})),e.type="variable")}),e},onInput(){let e=[];this.list.forEach(t=>{if(t.field&&t.condition&&(t.compare||["empty","notEmpty"].indexOf(t.condition)>-1||t.value!=null&&t.value!=="")){const i={[t.type]:t.field,condition:t.condition};t.compare?i.compare=t.compare:i.value=t.value,e.push(i)}else t.group&&e.push(t)}),e.length===1&&e[0].mode!=null?e=e[0]:e=e.length>0?{mode:this.mode,group:e}:void 0,!(!e&&(!this.modelValue||!this.modelValue.group))&&(this.$emit("update:modelValue",e),this.$emit("change",e))}},created(){this.tidyValue()}}),Rk=yh,Ik={class:"_fd-cdg-input"},Fk={class:"_fd-cdg-item"},Pk={class:"_fd-cdg-and"},Mk={class:"_fd-cdg-options"},Lk=["onClick"],jk={key:3,class:"_fd-cfg-value"},zk=["onClick"],Hk={class:"_fd-cdg-btns"};function Uk(e,t,i,r,o,s){const d=n.resolveComponent("a-select-option"),c=n.resolveComponent("a-select"),u=n.resolveComponent("ConditionGroup",!0),g=n.resolveComponent("VariableConfig"),y=n.resolveComponent("a-input"),C=n.resolveComponent("RuleSelect"),w=n.resolveComponent("ValueInput"),A=n.resolveComponent("PatternInput"),E=n.resolveComponent("ConditionInput"),_=n.resolveComponent("a-checkbox"),v=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",Ik,[n.createElementVNode("div",Fk,[n.createElementVNode("div",Pk,[n.createVNode(c,{size:"default",value:e.mode,"onUpdate:value":t[0]||(t[0]=m=>e.mode=m),onChange:e.onInput},{default:n.withCtx(()=>[n.createVNode(d,{value:"AND"},{default:n.withCtx(()=>t[1]||(t[1]=[n.createTextVNode("AND")])),_:1}),n.createVNode(d,{value:"OR"},{default:n.withCtx(()=>t[2]||(t[2]=[n.createTextVNode("OR")])),_:1})]),_:1},8,["value","onChange"])]),n.createElementVNode("div",Mk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.list,(m,b)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[m.mode!=null?(n.openBlock(),n.createElementBlock("div",{class:"_fd-cdg-option is-group",key:m.field+"a"+b},[n.createVNode(u,{modelValue:e.list[b],"onUpdate:modelValue":S=>e.list[b]=S,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"]),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-add-circle",{disabled:e.list.length===1}]),onClick:S=>e.removeItem(b)},null,10,Lk)])):(n.openBlock(),n.createElementBlock("div",{class:"_fd-cdg-option",key:b},[n.createVNode(c,{style:{width:"85px"},size:"default",value:m.type,"onUpdate:value":S=>m.type=S,onChange:S=>e.changeType(m)},{default:n.withCtx(()=>[n.createVNode(d,{value:"field"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.field")),1)]),_:1}),n.createVNode(d,{value:"variable"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.variable")),1)]),_:1})]),_:2},1032,["value","onUpdate:value","onChange"]),m.type==="variable"?(n.openBlock(),n.createBlock(y,{class:"_fd-cdg-variable",size:"default",value:m.field,"onUpdate:value":S=>m.field=S,clearable:"",onChange:S=>e.changeField(m),key:"variable"},{suffix:n.withCtx(()=>[n.createVNode(g,{popover:"",onConfirm:S=>e.selectVar(m,S)},null,8,["onConfirm"])]),_:2},1032,["value","onUpdate:value","onChange"])):(n.openBlock(),n.createBlock(C,{key:1,class:"_fd-cdg-field",size:"middle",onlyField:"",valueType:"field",modelValue:m.field,"onUpdate:modelValue":S=>m.field=S,clearable:"",multiple:!1,onChange:S=>e.changeField(m)},null,8,["modelValue","onUpdate:modelValue","onChange"])),m.formula?(n.openBlock(),n.createBlock(c,{key:2,class:"_fd-cdg-term",size:"default",value:m.condition,"onUpdate:value":S=>m.condition=S,onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(m.formula,S=>(n.openBlock(),n.createBlock(d,{key:S.value,value:S.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(S.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value","onChange"])):n.createCommentVNode("",!0),m.input&&["empty","notEmpty"].indexOf(m.condition)===-1?(n.openBlock(),n.createElementBlock("div",jk,[m.var?(n.openBlock(),n.createBlock(C,{key:0,class:"_fd-cdg-field",size:"default",onlyField:"",valueType:"field",modelValue:m.compare,"onUpdate:modelValue":S=>m.compare=S,clearable:"",multiple:!1,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):m.type==="variable"?(n.openBlock(),n.createBlock(w,{key:1,size:"default",modelValue:m.value,"onUpdate:modelValue":S=>m.value=S,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):m.condition==="pattern"?(n.openBlock(),n.createBlock(A,{size:"default",key:m.field,modelValue:m.value,"onUpdate:modelValue":S=>m.value=S,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):(n.openBlock(),n.createBlock(E,n.mergeProps({key:3,ref_for:!0},m.input,{key:m.field,modelValue:m.value,"onUpdate:modelValue":S=>m.value=S,onChange:e.onInput}),null,16,["modelValue","onUpdate:modelValue","onChange"])),n.createVNode(_,{checked:m.var,"onUpdate:checked":S=>m.var=S,size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.field")),1)]),_:2},1032,["checked","onUpdate:checked"])])):n.createCommentVNode("",!0),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-delete",{disabled:e.list.length===1}]),onClick:S=>e.removeItem(b)},null,10,zk)]))],64))),256))])]),n.createElementVNode("div",Hk,[n.createVNode(v,{type:"link",onClick:e.addItem},{default:n.withCtx(()=>[t[3]||(t[3]=n.createElementVNode("i",{class:"fc-icon icon-add-circle"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("computed.addCondition")),1)]),_:1},8,["onClick"]),n.createVNode(v,{type:"link",onClick:e.addItemGroup},{default:n.withCtx(()=>[t[4]||(t[4]=n.createElementVNode("i",{class:"fc-icon icon-add-circle"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("computed.addGroup")),1)]),_:1},8,["onClick"])])])}const Wk=Ne(Rk,[["render",Uk]]),s3="",Gk=n.defineComponent({name:"ComputedConfig",components:{Warning:Zn,RuleSelect:gc,ConditionGroup:Wk},props:{modelValue:[String,Object,Array],type:String,title:String,name:String,btn:String,validLabel:String,invertLabel:String},inject:["designer"],data(){const e=(t,i,r,o=[])=>{const s=[];return t.forEach(({rule:d,children:c})=>{var C,w,A;const u=[...o];let g=r;d.field&&(u.push(d),g||(g=d.field===i&&this.type==="value"));const y=e(c||[],i,g,u);if(d.field){const E={id:d._fc_id,value:d.field,label:((A=(w=(C=d==null?void 0:d.__fc__)==null?void 0:C.refRule)==null?void 0:w.__$title)==null?void 0:A.value)||d.title,rule:d,parent:o,formula:!0};y.length&&(E.children=y),s.push(E)}else s.push(...y)}),s};return{editor:null,visible:!1,expandedKeys:["_form","_formula","_subform"],err:"",status:"computed",value:"",condition:void 0,formulaInfo:"",formulaExample:"",oldValue:"",invert:!1,linkage:"",getFields:e}},computed:{t(){return this.designer.setupState.t},configured(){return!!this.modelValue},activeRule(){return this.designer.setupState.activeRule},treeInfo(){var i,r;let e=this.activeRule.__fc__.parent;const t=[{id:"_form",label:this.t("computed.form"),children:this.getFields(this.designer.setupState.treeInfo,this.activeRule.field)},{id:"_formula",label:this.t("computed.formula"),children:Gf.map(o=>({id:o.key,label:this.t("formula."+o.key),children:o.children.map(s=>({label:s,info:this.t("formula."+s),example:yd[s]||"",formula:!0}))}))}];for(;e;)if(e.rule._menu&&["array","object"].indexOf(e.rule._menu.subForm)>-1){const o=this.getFields(this.designer.setupState.findTree(e.rule.field),this.activeRule.field);o.length&&t.unshift({id:"_subform",label:((r=(i=e==null?void 0:e.refRule)==null?void 0:i.__$title)==null?void 0:r.value)||e.rule.title||e.rule._menu.label,children:o}),e=void 0}else e=e.parent;return t}},watch:{visible(e){e&&this.update()},status(e){e==="computed"&&this.load()}},beforeUnmount(){document.querySelector("._fd-comp-script")&&document.querySelector("._fd-comp-script").removeEventListener("mouseover",this.spanOver)},methods:{update(){this.linkage="",this.type==="value"||this.modelValue&&at.String(this.modelValue)?(this.status="computed",this.load(),this.condition=void 0):(this.status="condition",this.condition=this.modelValue?et(this.modelValue):void 0,this.condition&&(this.invert=this.condition.invert===!0,this.linkage=this.condition.linkage||""))},getTitle(e){var t,i,r;return(((r=(i=(t=e==null?void 0:e.__fc__)==null?void 0:t.refRule)==null?void 0:i.__$title)==null?void 0:r.value)||e.title||"").trim()||e._menu&&e._menu.label||e.field||e._fc_id},setField(e){e.disabled!==!0&&this.markRule(`"${e.rule.field}"`,this.getTitle(e.rule),"id")},spanOver(e){if(e.target.classList.contains("cm-keyword")){const t=e.target.innerText.trim();this.formulaInfo=this.t("formula."+t)||"",this.formulaExample=yd[t]||""}},nodeOver(e){this.formulaInfo=e.info||"",this.formulaExample=e.example||""},markRule(e,t,i){const r=this.editor.getValue();if(r){const d=this.editor.getCursor().ch;[" ","(",",",")","{","}","[","]"].indexOf(r.substr(d-1,1))===-1&&this.editor.replaceRange(" ",this.editor.getCursor())}this.editor.replaceRange(e,this.editor.getCursor());const o=this.editor.getCursor(),s=document.createElement("span");s.innerText=t,s.classList.add("cm-fc-"+i),this.editor.markText({line:o.line,ch:o.ch-e.length},o,{replacedWith:s})},nodeClick(e,t){["_form","_formula","_subform"].indexOf(t.id)>-1||(e.stopPropagation(),this.makeNode(t))},makeNode(e){if(!(!e.formula||e.disabled===!0)){if(e.rule){const t=[],i=[];let r=!1;if(e.parent.forEach(o=>{o._menu&&o._menu.subForm==="array"&&(r=!0),t.push(o.field),i.push(this.getTitle(o))}),r)return this.setColumn(e);t.push(e.rule.field),i.push(this.getTitle(e.rule)),this.markRule(t.join("."),i.join("."),"field")}else this.editor.replaceRange(e.label+"()",this.editor.getCursor()),this.editor.moveH(-1,"char");this.editor.focus()}},setColumn(e){let t=!1;const i=[],r=[],o=[];e.parent.forEach(s=>{!t&&s._menu&&s._menu.subForm==="array"?(t=!0,i.push(s.field),r.push(this.getTitle(s))):o.push(s)}),o.push(e.rule),o.reverse().forEach(s=>{this.makeNode({label:"COLUMN",formula:!0}),this.editor.replaceRange(",",this.editor.getCursor()),this.setField({rule:s}),this.editor.moveH(-1-s.field.length-2,"char")}),this.markRule(i.join("."),r.join("."),"field")},submit(){if(this.status==="computed"){const e=this.editor.getValue().trim();(this.oldValue!==e||!at.String(this.modelValue))&&(this.oldValue=e,this.$emit("update:modelValue",e))}else{let e=this.condition?{...this.condition}:this.condition;e&&(this.type==="linkage"?this.linkage?e.linkage=this.linkage:e="":this.invert?e.invert=!0:delete e.invert),this.$emit("update:modelValue",e||"")}this.visible=!1},setValue(e){const t=this.designer.setupState.fields().map(Ku);e=e.replace(new RegExp(`["'](${t.join("|")})(\\.(${t.join("|")}))*(?![a-zA-Z0-9_$])["']`,"g"),i=>"__var___"+i+"__var__"),e=e.replace(new RegExp(`(?<!__var___")(${t.join("|")})(\\.(${t.join("|")}))*(?![a-zA-Z0-9_$])`,"g"),i=>"__var___"+i+"__var__"),e.split("__var__").forEach(i=>{let r;if(i.indexOf("_")===0){i=i.slice(1);const o=["'",'"'].indexOf(i[0])>-1;o&&(i=i.slice(1).slice(0,-1));let s=0;if(i.indexOf(".")>-1){const d=i.split(".");i=d.pop(),s=d.length}if(r=this.designer.setupState.dragForm.api.all().filter(d=>d&&d.field===i)[0],r){if(o)this.setField({rule:r});else{const d=[r.field],c=[this.getTitle(r)];let u=r.__fc__.parent;for(;u&&s>0;)u.input&&(s--,d.unshift(u.rule.field),c.unshift(this.getTitle(u.rule))),u=u.parent;this.markRule(d.join("."),c.join("."),"field")}return}}this.editor.replaceRange(i,this.editor.getCursor())})},load(){this.value=at.String(this.modelValue)?this.modelValue:"",this.oldValue=this.value,this.err=this.formulaInfo="",this.$nextTick(()=>{document.querySelector("._fd-comp-script").addEventListener("mouseover",this.spanOver),this.editor=n.markRaw(fo(this.$refs.editor,{lineNumbers:!0,mode:"fcComputedMode",line:!0,tabSize:2,lineWrapping:!0,value:"",extraKeys:{Enter:function(){return!1}}})),this.setValue(this.value||""),this.editor.on("beforeChange",(e,t)=>{if(t.origin==="paste"){const i=t.text[0]||"";i&&this.setValue(i),t.cancel()}}),this.editor})}}}),Kk={class:"_fd-computed"},Yk={class:"_fd-comp-title"},Qk={class:"_fd-comp-title",style:{"margin-top":"30px"}},Xk={class:"_fd-comp-linkage"},Jk={class:"_fd-comp-title",style:{"margin-top":"30px"}},Zk=["onMouseover","onClick"],qk={key:0,class:"_group"},eN={key:1,class:"_subform"},tN=["onClick"],nN={key:0,ref:"editor",class:"_fd-comp-script"},oN={key:0,class:"_fd-comp-info"},iN={key:0},rN={key:1},aN={key:2,style:{color:"#f56c6c"}};function lN(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),u=n.resolveComponent("Warning"),g=n.resolveComponent("a-tab-pane"),y=n.resolveComponent("a-tabs"),C=n.resolveComponent("ConditionGroup"),w=n.resolveComponent("RuleSelect"),A=n.resolveComponent("a-radio"),E=n.resolveComponent("a-radio-group"),_=n.resolveComponent("a-layout-content"),v=n.resolveComponent("a-layout"),m=n.resolveComponent("a-directory-tree"),b=n.resolveComponent("a-layout-sider"),S=n.resolveComponent("a-layout-header"),x=n.resolveComponent("a-form-item-rest"),O=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",Kk,[n.createVNode(c,{color:"orange",dot:e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:t[0]||(t[0]=D=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.btn||e.title),1)]),_:1})]),_:1},8,["dot"]),n.createVNode(O,{class:"_fd-comp-dialog _fd-config-dialog",title:e.title,open:e.visible,"onUpdate:open":t[7]||(t[7]=D=>e.visible=D),centered:"",maskClosable:!1,destroyOnClose:!0,width:"980px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[6]||(t[6]=D=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.submit,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(x,null,{default:n.withCtx(()=>[e.type!=="value"?(n.openBlock(),n.createBlock(y,{key:0,class:"_fd-preview-tabs _fc-tabs",activeKey:e.status,"onUpdate:activeKey":t[1]||(t[1]=D=>e.status=D)},{default:n.withCtx(()=>[n.createVNode(g,{key:"condition"},{tab:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.type==="linkage"?e.t("computed.value.title"):e.t("computed.condition"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.computedCondition")},null,8,["tooltip"])]),_:1}),n.createVNode(g,{key:"computed"},{tab:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.name"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.computedFormula")},null,8,["tooltip"])]),_:1})]),_:1},8,["activeKey"])):n.createCommentVNode("",!0),e.status==="condition"?(n.openBlock(),n.createBlock(v,{key:1,class:"_fd-comp-condition"},{default:n.withCtx(()=>[n.createVNode(_,null,{default:n.withCtx(()=>[n.createElementVNode("div",Yk,n.toDisplayString(e.t("computed.setting")),1),e.visible?(n.openBlock(),n.createBlock(C,{key:0,modelValue:e.condition,"onUpdate:modelValue":t[2]||(t[2]=D=>e.condition=D),ref:"condition"},null,8,["modelValue"])):n.createCommentVNode("",!0),e.type==="linkage"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createElementVNode("div",Qk,n.toDisplayString(e.t("computed.linkage.trigger")),1),n.createElementVNode("div",Xk,[n.createTextVNode(n.toDisplayString(e.t("computed.linkage.info.0"))+" ",1),n.createVNode(w,{modelValue:e.linkage,"onUpdate:modelValue":t[3]||(t[3]=D=>e.linkage=D),size:"small",onlyField:"",valueType:"field",clearable:""},null,8,["modelValue"]),n.createTextVNode(" "+n.toDisplayString(e.t("computed.linkage.info.1")),1)])],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createElementVNode("div",Jk,n.toDisplayString(e.t("computed.invert")),1),n.createVNode(E,{value:e.invert,"onUpdate:value":t[4]||(t[4]=D=>e.invert=D)},{default:n.withCtx(()=>[n.createVNode(A,{value:!0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.invertLabel),1)]),_:1}),n.createVNode(A,{value:!1},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.validLabel),1)]),_:1})]),_:1},8,["value"])],64))]),_:1})]),_:1})):(n.openBlock(),n.createBlock(v,{key:2,class:"_fd-comp-con"},{default:n.withCtx(()=>[n.createVNode(b,{width:"300px"},{default:n.withCtx(()=>[n.createVNode(m,{ref:"treeRef",class:"fc-comp-tree","tree-data":e.treeInfo,selectable:!1,showIcon:!1,fieldNames:{key:"id"},expandedKeys:e.expandedKeys,"onUpdate:expandedKeys":t[5]||(t[5]=D=>e.expandedKeys=D)},{title:n.withCtx(({data:D})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-comp-node",{disabled:D.disabled,"is-formula":D.id==="_formula"}]),onMouseover:R=>e.nodeOver(D),onClick:R=>e.nodeClick(R,D)},[n.createElementVNode("div",null,[D.rule?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[D.rule._menu.subForm==="object"?(n.openBlock(),n.createElementBlock("span",qk,"{ "+n.toDisplayString(e.t("props.group"))+" }",1)):n.createCommentVNode("",!0),D.rule._menu.subForm==="array"?(n.openBlock(),n.createElementBlock("span",eN,"[ "+n.toDisplayString(e.t("props.collection"))+" ]",1)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),n.createElementVNode("span",null,n.toDisplayString((D.label||"").trim()||e.getTitle(D.rule)),1)]),D.rule?(n.openBlock(),n.createElementBlock("span",{key:0,class:"_fd-comp-id",onClick:n.withModifiers(R=>e.setField(D),["stop"])}," ID ",8,tN)):n.createCommentVNode("",!0)],42,Zk)]),_:1},8,["tree-data","expandedKeys"])]),_:1}),n.createVNode(_,null,{default:n.withCtx(()=>[n.createVNode(v,{class:"_fd-comp-r"},{default:n.withCtx(()=>[n.createVNode(S,{class:"_fd-comp-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.name||e.title),1)]),_:1}),n.createVNode(_,null,{default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createElementBlock("div",nN,null,512)):n.createCommentVNode("",!0)]),_:1}),e.formulaInfo||e.err?(n.openBlock(),n.createElementBlock("div",oN,[e.formulaInfo?(n.openBlock(),n.createElementBlock("div",iN,n.toDisplayString(e.t("computed.formulaInfo"))+": "+n.toDisplayString(e.formulaInfo),1)):n.createCommentVNode("",!0),e.formulaExample?(n.openBlock(),n.createElementBlock("div",rN,n.toDisplayString(e.t("computed.formulaExample"))+": "+n.toDisplayString(e.formulaExample),1)):n.createCommentVNode("",!0),e.err?(n.openBlock(),n.createElementBlock("div",aN,n.toDisplayString(e.t("validate.message"))+": "+n.toDisplayString(e.err),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1}))]),_:1})]),_:1},8,["title","open"])])}const bh=Ne(Gk,[["render",lN]]),d3="",ol="$FNX:",Ch=e=>at.String(e)&&e.indexOf(ol)===0,sN=n.defineComponent({name:"EventConfig",emits:["update:modelValue"],props:{modelValue:[Object,void 0,null],componentName:"",hook:{type:Boolean,default:!0},eventName:{type:Array,default:()=>[]}},inject:["designer"],components:{Warning:Zn,ComputedConfig:bh,FnEditor:po,fcDraggable:Ci,DragForm:ze.$form()},data(){return{visible:!1,activeData:null,activeBehavior:null,val:null,defActive:"no",hookList:["hook_load","hook_mounted","hook_deleted","hook_watch","hook_value","hook_hidden"],event:[],cus:!1,cusValue:"",eventType:"fn",eventKey:"",eventStr:"",eventNum:0,id:0,form:{rule:[],options:{form:{layout:"horizontal",labelAlign:"right",labelWrap:!0,size:"small",labelCol:{span:5}},appendValue:!1,submitBtn:!1},api:{},formData:{}}}},computed:{useEventKeys(){const e={};return this.event.forEach(t=>{e[t.name]=!0}),Object.keys(e)},behaviorMenu(){const e=[];return Kf.forEach(t=>{e.push({label:t.key,children:t.children.map(i=>({label:i,value:i}))})}),e},t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},eventInfo(){const e={};return this.eventName.forEach(t=>{e[t]=this.t("com."+this.componentName+".event."+t)||this.t("eventInfo."+t)||""}),this.hookList.forEach(t=>{e[t]=this.t("eventInfo."+t)||""}),e},globalEvent(){return this.designer.setupState.formOptions.globalEvent||{}},options(){return Object.keys(this.globalEvent).map(e=>({label:this.globalEvent[e].label,value:"$GLOBAL:"+e}))},fnArgs(){return[bn(this.t)]}},watch:{visible(e){e?this.init():(this.destroy(),this.closeCus())}},methods:{openConfig(){this.designer.setupState.openGlobalEventDialog()},addCus(){const e=this.cusValue&&this.cusValue.trim();e&&(this.closeCus(),this.add(e))},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(){this.cus=!0},loadFnStr(e){if(Ch(e))return e.replace(ol,"");if(at.Function(e)&&Ch(e.__json))return e.__json.replace(ol,"");if(e&&e.indexOf("$GLOBAL:")===0)return e},parseBehavior(e){if(e.id=this.id++,e.method==="callback"){const t=this.loadFnStr(e.callback);t&&(e.callback=t)}return e},init(){const e=this.activeRule?et(this.activeRule.$behavior||{}):{},t=this.activeRule?{...this.activeRule.hook||{}}:{},i={...et(this.modelValue||{})};Object.keys(t).forEach(o=>{i["hook_"+o]=t[o]});const r=[];Object.keys(i).forEach(o=>{(Array.isArray(i[o])?i[o]:[i[o]]).forEach(d=>{const c={name:o,id:this.id++},u=this.loadFnStr(d);u&&(c.handle=u),c.behaviors=(e[o]||[]).map(this.parseBehavior),delete e[o],r.push(c)})}),Object.keys(e).forEach(o=>{r.push({name:o,id:this.id++,handle:"",behaviors:(e[o]||[]).map(this.parseBehavior)})}),this.event=r,this.eventNum=r.length},getValue(){const e={},t={},i={};let r=0;return this.event.forEach(o=>{let s=!1;if(o.handle){s=!0;let d=e;const c=o.handle.indexOf("$GLOBAL:")!==0?ol+o.handle:o.handle;o.name.indexOf("hook_")>-1?i[o.name.replace("hook_","")]=c:(d[o.name]||(d[o.name]=[]),d[o.name].push(c))}o.behaviors&&o.behaviors.length&&(s=!0,t[o.name]=o.behaviors.map(d=>(delete d.id,d))),s&&r++}),Object.keys(e).forEach(o=>{e[o]=e[o].length===1?e[o][0]:e[o]}),{on:e,behaviors:t,hooks:i,num:r}},add(e){this.event.push({name:e,id:this.id++,behaviors:[]}),this.activeData||this.edit(this.event.length-1)},edit(e){this.defActive!==this.event[e].id&&(this.destroy(),this.activeData=this.event[e],this.val=this.activeData.handle||"",this.eventType=this.val.indexOf("$GLOBAL:")===0?"event":"fn",this.eventType==="event"?(this.eventKey=this.val,this.eventStr=""):(this.eventStr=this.val,this.eventKey=""),this.defActive=this.activeData.id)},rm(e){this.event.splice(e,1),(this.activeData&&this.defActive===this.activeData.id||this.activeBehavior&&e===this.activeBehavior.pid)&&this.destroy()},save(){return new Promise(e=>{if(this.activeData){let t=this.eventKey;if(this.eventType!=="event"){if(!this.$refs.fn.save())return!1;t=this.eventStr}this.activeData.handle=t,this.destroy(),e()}else if(this.activeBehavior){const t=i=>{this.activeBehavior.config={...i||{}};const r={...this.activeBehavior},o=r.pid;Object.keys(r.config).length||delete r.config,delete r.pid,this.event[o].behaviors.forEach((s,d)=>{s.id===r.id&&(this.event[o].behaviors[d]=r)})};this.form.rule&&this.form.rule.length?this.form.api.validate().then(()=>{t(this.form.formData),this.destroy(),e()}).catch(()=>{}):(t(),this.destroy(),e())}else e()})},addBehavior(e){this.event[e].behaviors.push({method:"openModel",id:this.id++,ignoreError:!1,stopPropagation:"",expression:""}),!this.activeData&&!this.activeBehavior&&this.editBehavior(e,this.event[e].behaviors.length-1)},editBehavior(e,t){this.destroy(),this.activeBehavior=et(this.event[e].behaviors[t]),this.activeBehavior.pid=e,this.defActive=this.activeBehavior.id,this.updateBehaviorForm()},updateBehaviorForm(){let e=Yf[this.activeBehavior.method];at.Function(e)&&(e=e(this.designer.setupState));const t=i=>{i.field&&!i.title&&(i.title=this.t("behavior."+this.activeBehavior.method+".props."+i.field)||this.t("behavior.props."+i.field)||this.t("props."+i.field),i.warning=this.t("behavior."+this.activeBehavior.method+".warning."+i.field))};e?(this.form.rule=e.map(i=>(t(i),i.control&&i.control.forEach(r=>{r.rule&&r.rule.forEach(o=>{t(o)})}),i)),this.$nextTick(()=>{this.form.formData=this.activeBehavior.config||{}})):this.clearBehaviorForm()},clearBehaviorForm(){this.form.rule=[],this.form.formData={}},rmBehavior(e,t){this.event[e].behaviors.splice(t,1),this.activeBehavior&&this.defActive===this.activeBehavior.id&&this.destroy()},handleSelect(e){this.activeBehavior.method!==e&&(this.activeBehavior.method=e,this.updateBehaviorForm())},destroy(){this.activeBehavior=null,this.activeData=null,this.val=null,this.defActive=null,this.clearBehaviorForm()},close(){this.destroy()},submit(){this.save().then(()=>{const{on:e,behaviors:t,num:i,hooks:r}=this.getValue();this.$emit("update:modelValue",e),this.activeRule.$behavior=t,this.activeRule.hook=r,this.visible=!1,this.eventNum=i})}},beforeCreate(){window.$inject={$f:{},rule:[],self:{},option:{},inject:{},args:[]}},created(){this.init()}}),dN={class:"_fd-event"},cN={class:"_fd-event-item"},uN={key:0,class:"_fd-label"},fN={class:"_fd-event-item"},pN={class:"_fd-label"},hN={class:"_fd-menu"},mN=["onClick"],gN={class:"_fd-event-method"},vN={key:0,class:"_fd-label"},yN=["onClick"],bN=["onClick"],CN={class:"_fd-event-behaviors"},_N=["onClick"],wN={class:"_fd-event-behavior-label"},EN=["onClick"],AN={class:"_fd-event-behavior-info"},SN={key:0,class:"_fd-menu-item",style:{"padding-left":"10px"}},xN={class:"_fd-event-title"},kN={class:"_fd-event-select"},NN={class:"_fd-event-behavior-title"},TN={class:"_fd-event-behavior-title"},ON={key:0,class:"_fd-event-behavior-title"},DN={class:"_fd-event-behavior-title"},BN={class:"_fd-form-item-warning"},$N={class:"_fd-form-item-warning"},VN={class:"_fd-form-item-warning"};function RN(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),u=n.resolveComponent("a-menu-item"),g=n.resolveComponent("a-menu-divider"),y=n.resolveComponent("a-menu"),C=n.resolveComponent("a-dropdown"),w=n.resolveComponent("a-layout-header"),A=n.resolveComponent("a-tooltip"),E=n.resolveComponent("fcDraggable"),_=n.resolveComponent("a-input"),v=n.resolveComponent("a-layout-content"),m=n.resolveComponent("a-layout"),b=n.resolveComponent("a-layout-sider"),S=n.resolveComponent("FnEditor"),x=n.resolveComponent("a-tab-pane"),O=n.resolveComponent("a-select-option"),D=n.resolveComponent("a-select"),R=n.resolveComponent("a-tabs"),I=n.resolveComponent("a-sub-menu"),z=n.resolveComponent("Warning"),T=n.resolveComponent("DragForm"),B=n.resolveComponent("a-radio-button"),L=n.resolveComponent("a-radio-group"),U=n.resolveComponent("a-form-item"),W=n.resolveComponent("ComputedConfig"),V=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",dN,[n.createVNode(c,{color:"orange",count:e.eventNum},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:t[0]||(t[0]=k=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.title")),1)]),_:1})]),_:1},8,["count"]),n.createVNode(V,{class:"_fd-event-dialog _fd-config-dialog",title:e.t("event.title"),open:e.visible,"onUpdate:open":t[14]||(t[14]=k=>e.visible=k),centered:"",maskClosable:!1,destroyOnClose:!0,width:"1080px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[13]||(t[13]=k=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.submit,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(m,{class:"_fd-event-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(b,{width:"300px"},{default:n.withCtx(()=>[n.createVNode(m,{class:"_fd-event-l"},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-event-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(C,{trigger:"click",size:"default"},{overlay:n.withCtx(()=>[n.createVNode(y,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.eventName,k=>(n.openBlock(),n.createBlock(u,{key:k,onClick:M=>e.add(k),disabled:e.useEventKeys.indexOf(k)>-1},{default:n.withCtx(()=>[n.createElementVNode("div",cN,[n.createElementVNode("span",null,n.toDisplayString(k),1),e.eventInfo[k]?(n.openBlock(),n.createElementBlock("span",uN,n.toDisplayString(e.eventInfo[k]),1)):n.createCommentVNode("",!0)])]),_:2},1032,["onClick","disabled"]))),128)),e.eventName.length>0&&e.hook?(n.openBlock(),n.createBlock(g,{key:0})):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.hookList,k=>(n.openBlock(),n.createBlock(u,{onClick:M=>e.add(k),disabled:e.useEventKeys.indexOf(k)>-1},{default:n.withCtx(()=>[n.createElementVNode("div",fN,[n.createElementVNode("span",null,n.toDisplayString(k),1),n.createElementVNode("span",pN,n.toDisplayString(e.eventInfo[k]),1)])]),_:2},1032,["onClick","disabled"]))),256)),e.eventName.length>0||e.hook?(n.openBlock(),n.createBlock(g,{key:1})):n.createCommentVNode("",!0),n.createVNode(u,{onClick:e.cusEvent},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(e.t("props.custom")),1)]),_:1},8,["onClick"])]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{type:"link",size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.create")),1),t[15]||(t[15]=n.createElementVNode("i",{class:"fc-icon icon-down",style:{"font-size":"14px"}},null,-1))]),_:1})]),_:1})]),_:1}),n.createVNode(v,null,{default:n.withCtx(()=>[n.createElementVNode("div",hN,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.event,(k,M)=>(n.openBlock(),n.createElementBlock("div",{key:k.id,class:n.normalizeClass(["_fd-menu-item",{"is-active":k.id===e.defActive}])},[n.createElementVNode("div",{class:"_fd-event-title",onClick:n.withModifiers(j=>e.edit(M),["stop"])},[n.createElementVNode("div",gN,[n.createElementVNode("span",null,[t[16]||(t[16]=n.createTextVNode("function")),n.createElementVNode("span",null,n.toDisplayString(k.name),1)]),e.eventInfo[k.name]?(n.openBlock(),n.createElementBlock("span",vN,n.toDisplayString(e.eventInfo[k.name]),1)):n.createCommentVNode("",!0)]),k.name!=="hook_load"?(n.openBlock(),n.createBlock(A,{key:0,title:e.t("behavior.add"),placement:"top"},{default:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-task-add",onClick:n.withModifiers(j=>e.addBehavior(M),["stop"])},null,8,yN)]),_:2},1032,["title"])):n.createCommentVNode("",!0),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:n.withModifiers(j=>e.rm(M),["stop"])},null,8,bN)],8,mN),n.createElementVNode("div",CN,[n.createVNode(E,{group:{name:"behavior",put:!1},sort:!0,handle:".icon-drag",direction:"vertical",animation:0,itemKey:"_fc_id",list:k.behaviors},{item:n.withCtx(({element:j,index:Z})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-event-behavior",{"is-active":j.id===e.defActive}]),onClick:n.withModifiers(J=>e.editBehavior(M,Z),["stop"])},[n.createElementVNode("div",wN,[n.createElementVNode("div",null,[t[17]||(t[17]=n.createElementVNode("i",{class:"fc-icon icon-drag"},null,-1)),n.createElementVNode("span",null,n.toDisplayString(e.t("behavior."+j.method+".name")),1)]),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:n.withModifiers(J=>e.rmBehavior(M,Z),["stop"])},null,8,EN)]),n.createElementVNode("div",AN,n.toDisplayString(e.t("behavior."+j.method+".info")||e.t("behavior."+j.method+".name")),1)],10,_N)]),_:2},1032,["list"])])],2))),128)),e.cus?(n.openBlock(),n.createElementBlock("div",SN,[n.createElementVNode("div",xN,[n.createVNode(_,{type:"text",value:e.cusValue,"onUpdate:value":t[1]||(t[1]=k=>e.cusValue=k),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("event.placeholder")},null,8,["value","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[2]||(t[2]=n.withModifiers((...k)=>e.addCus&&e.addCus(...k),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[3]||(t[3]=n.withModifiers((...k)=>e.closeCus&&e.closeCus(...k),["stop"]))})])])])):n.createCommentVNode("",!0)])]),_:1})]),_:1})]),_:1}),n.createVNode(v,null,{default:n.withCtx(()=>[n.createVNode(m,{class:"_fd-event-r"},{default:n.withCtx(()=>[e.activeData||e.activeBehavior?(n.openBlock(),n.createBlock(w,{key:0,class:"_fd-event-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save,style:{"margin-left":"8px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeData?(n.openBlock(),n.createBlock(v,{key:1},{default:n.withCtx(()=>[n.createVNode(R,{class:"_fc-tabs",activeKey:e.eventType,"onUpdate:activeKey":t[7]||(t[7]=k=>e.eventType=k)},{default:n.withCtx(()=>[n.createVNode(x,{tab:e.t("props.custom"),key:"fn",lazy:""},{default:n.withCtx(()=>[n.createVNode(S,{ref:"fn",modelValue:e.eventStr,"onUpdate:modelValue":t[4]||(t[4]=k=>e.eventStr=k),body:"",name:e.activeData.name,args:e.fnArgs,style:{height:"519px"}},null,8,["modelValue","name","args"])]),_:1},8,["tab"]),n.createVNode(x,{tab:e.t("form.globalEvent"),key:"event"},{default:n.withCtx(()=>[n.createElementVNode("div",kN,[n.createVNode(D,{value:e.eventKey,"onUpdate:value":t[5]||(t[5]=k=>e.eventKey=k),clearable:"",style:{width:"240px","margin-left":"15px"}},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,k=>(n.openBlock(),n.createBlock(O,{key:k.value,value:k.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(k.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"]),n.createElementVNode("span",{class:"_fc-manage-text",onClick:t[6]||(t[6]=(...k)=>e.openConfig&&e.openConfig(...k))},t[18]||(t[18]=[n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1)]))])]),_:1},8,["tab"])]),_:1},8,["activeKey"])]),_:1})):n.createCommentVNode("",!0),e.activeBehavior?(n.openBlock(),n.createBlock(v,{key:2,class:"is-behavior"},{default:n.withCtx(()=>[n.createVNode(b,{width:"220px",class:"_fd-event-behavior-list"},{default:n.withCtx(()=>[n.createElementVNode("div",NN,n.toDisplayString(e.t("behavior.props.execute")),1),n.createVNode(y,{inlineIndent:20,selectedKeys:[e.activeBehavior.method],mode:"inline"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.behaviorMenu,k=>(n.openBlock(),n.createBlock(I,{key:k.label,id:k.label},{title:n.withCtx(()=>[n.createElementVNode("span",null,n.toDisplayString(e.t("props."+k.label)),1)]),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(k.children,M=>(n.openBlock(),n.createBlock(u,{key:M.value,id:M.value,onClick:j=>e.handleSelect(M.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("behavior."+M.value+".name")),1)]),_:2},1032,["id","onClick"]))),128))]),_:2},1032,["id"]))),128))]),_:1},8,["selectedKeys"])]),_:1}),n.createVNode(v,{class:"_fd-event-behavior-con"},{default:n.withCtx(()=>[n.createElementVNode("div",TN,[n.createTextVNode(n.toDisplayString(e.t("behavior.props.info"))+" ",1),n.createElementVNode("div",null,n.toDisplayString(e.t("behavior."+e.activeBehavior.method+".info")||e.t("behavior."+e.activeBehavior.method+".name")),1)]),e.form.rule&&e.form.rule.length?(n.openBlock(),n.createElementBlock("div",ON,n.toDisplayString(e.t("designer.rule")),1)):n.createCommentVNode("",!0),e.form.rule&&e.form.rule.length?(n.openBlock(),n.createBlock(T,{key:1,rule:e.form.rule,option:e.form.options,modelValue:e.form.formData,"onUpdate:modelValue":t[8]||(t[8]=k=>e.form.formData=k),api:e.form.api,"onUpdate:api":t[9]||(t[9]=k=>e.form.api=k)},{title:n.withCtx(k=>[k.rule.warning?(n.openBlock(),n.createBlock(z,{key:0,tooltip:k.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(k.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(k.rule.title),1)],64))]),_:1},8,["rule","option","modelValue","api"])):n.createCommentVNode("",!0),n.createElementVNode("div",DN,n.toDisplayString(e.t("designer.advanced")),1),n.createVNode(U,{label:e.t("behavior.props.ignoreError")},{default:n.withCtx(()=>[n.createVNode(L,{size:"small",value:e.activeBehavior.ignoreError,"onUpdate:value":t[10]||(t[10]=k=>e.activeBehavior.ignoreError=k)},{default:n.withCtx(()=>[n.createVNode(B,{value:!0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("behavior.props.continue")),1)]),_:1}),n.createVNode(B,{value:!1},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("behavior.props.stop")),1)]),_:1})]),_:1},8,["value"]),n.createElementVNode("div",BN,n.toDisplayString(e.t("warning.behaviorIgnoreError")),1)]),_:1},8,["label"]),n.createVNode(U,{label:e.t("behavior.props.expression")},{default:n.withCtx(()=>[n.createVNode(W,{modelValue:e.activeBehavior.expression,"onUpdate:modelValue":t[11]||(t[11]=k=>e.activeBehavior.expression=k),title:e.t("behavior.props.setFormula"),invertLabel:e.t("behavior.props.break"),validLabel:e.t("behavior.props.continue")},null,8,["modelValue","title","invertLabel","validLabel"]),n.createElementVNode("div",$N,n.toDisplayString(e.t("warning.behaviorExpression")),1)]),_:1},8,["label"]),n.createVNode(U,{label:e.t("behavior.props.stopPropagation")},{default:n.withCtx(()=>[n.createVNode(W,{modelValue:e.activeBehavior.stopPropagation,"onUpdate:modelValue":t[12]||(t[12]=k=>e.activeBehavior.stopPropagation=k),title:e.t("behavior.props.setFormula"),invertLabel:e.t("behavior.props.continue"),validLabel:e.t("behavior.props.stop")},null,8,["modelValue","title","invertLabel","validLabel"]),n.createElementVNode("div",VN,n.toDisplayString(e.t("warning.behaviorStopPropagation")),1)]),_:1},8,["label"])]),_:1})]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["title","open"])])}const _h=Ne(sN,[["render",RN]]),wh=n.defineComponent({name:"VNode",props:{fn:Function},render(){const e=this.fn();return Array.isArray(e)?n.h(n.Fragment,{},e):e}});/*!
Highlight.js v11.9.0 (git: b7ec4bfafc)
(c) 2006-2024 undefined and other contributors
License: BSD-3-Clause
*/function Eh(e){return e instanceof Map?e.clear=e.delete=e.set=()=>{throw Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=()=>{throw Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const i=e[t],r=typeof i;r!=="object"&&r!=="function"||Object.isFrozen(i)||Eh(i)}),e}class Ah{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Sh(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Oo(e,...t){const i=Object.create(null);for(const r in e)i[r]=e[r];return t.forEach(r=>{for(const o in r)i[o]=r[o]}),i}const xh=e=>!!e.scope;class IN{constructor(t,i){this.buffer="",this.classPrefix=i.classPrefix,t.walk(this)}addText(t){this.buffer+=Sh(t)}openNode(t){if(!xh(t))return;const i=((r,{prefix:o})=>{if(r.startsWith("language:"))return r.replace("language:","language-");if(r.includes(".")){const s=r.split(".");return[`${o}${s.shift()}`,...s.map((d,c)=>`${d}${"_".repeat(c+1)}`)].join(" ")}return`${o}${r}`})(t.scope,{prefix:this.classPrefix});this.span(i)}closeNode(t){xh(t)&&(this.buffer+="</span>")}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const kh=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class vc{constructor(){this.rootNode=kh(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const i=kh({scope:t});this.add(i),this.stack.push(i)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,i){return typeof i=="string"?t.addText(i):i.children&&(t.openNode(i),i.children.forEach(r=>this._walk(t,r)),t.closeNode(i)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(i=>typeof i=="string")?t.children=[t.children.join("")]:t.children.forEach(i=>{vc._collapse(i)}))}}class FN extends vc{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,i){const r=t.root;i&&(r.scope="language:"+i),this.add(r)}toHTML(){return new IN(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Or(e){return e?typeof e=="string"?e:e.source:null}function Nh(e){return Zo("(?=",e,")")}function PN(e){return Zo("(?:",e,")*")}function MN(e){return Zo("(?:",e,")?")}function Zo(...e){return e.map(t=>Or(t)).join("")}function yc(...e){return"("+((i=>{const r=i[i.length-1];return typeof r=="object"&&r.constructor===Object?(i.splice(i.length-1,1),r):{}})(e).capture?"":"?:")+e.map(i=>Or(i)).join("|")+")"}function Th(e){return RegExp(e.toString()+"|").exec("").length-1}const LN=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function bc(e,{joinWith:t}){let i=0;return e.map(r=>{i+=1;const o=i;let s=Or(r),d="";for(;s.length>0;){const c=LN.exec(s);if(!c){d+=s;break}d+=s.substring(0,c.index),s=s.substring(c.index+c[0].length),c[0][0]==="\\"&&c[1]?d+="\\"+(Number(c[1])+o):(d+=c[0],c[0]==="("&&i++)}return d}).map(r=>`(${r})`).join(t)}const Oh="[a-zA-Z]\\w*",Cc="[a-zA-Z_]\\w*",Dh="\\b\\d+(\\.\\d+)?",Bh="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",$h="\\b(0b[01]+)",Dr={begin:"\\\\[\\s\\S]",relevance:0},jN={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Dr]},zN={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Dr]},il=(e,t,i={})=>{const r=Oo({scope:"comment",begin:e,end:t,contains:[]},i);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const o=yc("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Zo(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},HN=il("//","$"),UN=il("/\\*","\\*/"),WN=il("#","$");var rl=Object.freeze({__proto__:null,APOS_STRING_MODE:jN,BACKSLASH_ESCAPE:Dr,BINARY_NUMBER_MODE:{scope:"number",begin:$h,relevance:0},BINARY_NUMBER_RE:$h,COMMENT:il,C_BLOCK_COMMENT_MODE:UN,C_LINE_COMMENT_MODE:HN,C_NUMBER_MODE:{scope:"number",begin:Bh,relevance:0},C_NUMBER_RE:Bh,END_SAME_AS_BEGIN:e=>Object.assign(e,{"on:begin":(t,i)=>{i.data._beginMatch=t[1]},"on:end":(t,i)=>{i.data._beginMatch!==t[1]&&i.ignoreMatch()}}),HASH_COMMENT_MODE:WN,IDENT_RE:Oh,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+Cc,relevance:0},NUMBER_MODE:{scope:"number",begin:Dh,relevance:0},NUMBER_RE:Dh,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:zN,REGEXP_MODE:{scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Dr,{begin:/\[/,end:/\]/,relevance:0,contains:[Dr]}]},RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Zo(t,/.*\b/,e.binary,/\b.*/)),Oo({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(i,r)=>{i.index!==0&&r.ignoreMatch()}},e)},TITLE_MODE:{scope:"title",begin:Oh,relevance:0},UNDERSCORE_IDENT_RE:Cc,UNDERSCORE_TITLE_MODE:{scope:"title",begin:Cc,relevance:0}});function GN(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function KN(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function YN(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=GN,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function QN(e,t){Array.isArray(e.illegal)&&(e.illegal=yc(...e.illegal))}function XN(e,t){if(e.match){if(e.begin||e.end)throw Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function JN(e,t){e.relevance===void 0&&(e.relevance=1)}const ZN=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error("beforeMatch cannot be used with starts");const i=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=i.keywords,e.begin=Zo(i.beforeMatch,Nh(i.begin)),e.starts={relevance:0,contains:[Object.assign(i,{endsParent:!0})]},e.relevance=0,delete i.beforeMatch},qN=["of","and","for","in","not","or","if","then","parent","list","value"],eT="keyword";function Vh(e,t,i=eT){const r=Object.create(null);return typeof e=="string"?o(i,e.split(" ")):Array.isArray(e)?o(i,e):Object.keys(e).forEach(s=>{Object.assign(r,Vh(e[s],t,s))}),r;function o(s,d){t&&(d=d.map(c=>c.toLowerCase())),d.forEach(c=>{const u=c.split("|");r[u[0]]=[s,tT(u[0],u[1])]})}}function tT(e,t){return t?Number(t):(i=>qN.includes(i.toLowerCase()))(e)?0:1}const Rh={},qo=e=>{console.error(e)},Ih=(e,...t)=>{console.log("WARN: "+e,...t)},$i=(e,t)=>{Rh[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Rh[`${e}/${t}`]=!0)},al=Error();function Fh(e,t,{key:i}){let r=0;const o=e[i],s={},d={};for(let c=1;c<=t.length;c++)d[c+r]=o[c],s[c+r]=!0,r+=Th(t[c-1]);e[i]=d,e[i]._emit=s,e[i]._multi=!0}function nT(e){(t=>{t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)})(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),(t=>{if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw qo("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),al;if(typeof t.beginScope!="object"||t.beginScope===null)throw qo("beginScope must be object"),al;Fh(t,t.begin,{key:"beginScope"}),t.begin=bc(t.begin,{joinWith:""})}})(e),(t=>{if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw qo("skip, excludeEnd, returnEnd not compatible with endScope: {}"),al;if(typeof t.endScope!="object"||t.endScope===null)throw qo("endScope must be object"),al;Fh(t,t.end,{key:"endScope"}),t.end=bc(t.end,{joinWith:""})}})(e)}function oT(e){function t(o,s){return RegExp(Or(o),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,d){d.position=this.position++,this.matchIndexes[this.matchAt]=d,this.regexes.push([d,s]),this.matchAt+=Th(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(d=>d[1]);this.matcherRe=t(bc(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const d=this.matcherRe.exec(s);if(!d)return null;const c=d.findIndex((g,y)=>y>0&&g!==void 0),u=this.matchIndexes[c];return d.splice(0,c),Object.assign(d,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const d=new i;return this.rules.slice(s).forEach(([c,u])=>d.addRule(c,u)),d.compile(),this.multiRegexes[s]=d,d}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,d){this.rules.push([s,d]),d.type==="begin"&&this.count++}exec(s){const d=this.getMatcher(this.regexIndex);d.lastIndex=this.lastIndex;let c=d.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Oo(e.classNameAliases||{}),function o(s,d){const c=s;if(s.isCompiled)return c;[KN,XN,nT,ZN].forEach(g=>g(s,d)),e.compilerExtensions.forEach(g=>g(s,d)),s.__beforeBegin=null,[YN,QN,JN].forEach(g=>g(s,d)),s.isCompiled=!0;let u=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),u=s.keywords.$pattern,delete s.keywords.$pattern),u=u||/\w+/,s.keywords&&(s.keywords=Vh(s.keywords,e.case_insensitive)),c.keywordPatternRe=t(u,!0),d&&(s.begin||(s.begin=/\B|\b/),c.beginRe=t(c.begin),s.end||s.endsWithParent||(s.end=/\B|\b/),s.end&&(c.endRe=t(c.end)),c.terminatorEnd=Or(c.end)||"",s.endsWithParent&&d.terminatorEnd&&(c.terminatorEnd+=(s.end?"|":"")+d.terminatorEnd)),s.illegal&&(c.illegalRe=t(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(g=>(y=>(y.variants&&!y.cachedVariants&&(y.cachedVariants=y.variants.map(C=>Oo(y,{variants:null},C))),y.cachedVariants?y.cachedVariants:Ph(y)?Oo(y,{starts:y.starts?Oo(y.starts):null}):Object.isFrozen(y)?Oo(y):y))(g==="self"?s:g))),s.contains.forEach(g=>{o(g,c)}),s.starts&&o(s.starts,d),c.matcher=(g=>{const y=new r;return g.contains.forEach(C=>y.addRule(C.begin,{rule:C,type:"begin"})),g.terminatorEnd&&y.addRule(g.terminatorEnd,{type:"end"}),g.illegal&&y.addRule(g.illegal,{type:"illegal"}),y})(c),c}(e)}function Ph(e){return!!e&&(e.endsWithParent||Ph(e.starts))}class iT extends Error{constructor(t,i){super(t),this.name="HTMLInjectionError",this.html=i}}const _c=Sh,Mh=Oo,Lh=Symbol("nomatch"),jh=e=>{const t=Object.create(null),i=Object.create(null),r=[];let o=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",d={disableAutodetect:!0,name:"Plain text",contains:[]};let c={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:FN};function u(S){return c.noHighlightRe.test(S)}function g(S,x,O){let D="",R="";typeof x=="object"?(D=S,O=x.ignoreIllegals,R=x.language):($i("10.7.0","highlight(lang, code, ...args) has been deprecated."),$i("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),R=S,D=x),O===void 0&&(O=!0);const I={code:D,language:R};b("before:highlight",I);const z=I.result?I.result:y(I.language,I.code,O);return z.code=I.code,b("after:highlight",z),z}function y(S,x,O,D){const R=Object.create(null);function I(){if(!F.keywords)return pe.addText(se);let $=0;F.keywordPatternRe.lastIndex=0;let Y=F.keywordPatternRe.exec(se),Q="";for(;Y;){Q+=se.substring($,Y.index);const te=j.case_insensitive?Y[0].toLowerCase():Y[0],q=(K=te,F.keywords[K]);if(q){const[oe,de]=q;if(pe.addText(Q),Q="",R[te]=(R[te]||0)+1,R[te]<=7&&(ye+=de),oe.startsWith("_"))Q+=Y[0];else{const Ee=j.classNameAliases[oe]||oe;T(Y[0],Ee)}}else Q+=Y[0];$=F.keywordPatternRe.lastIndex,Y=F.keywordPatternRe.exec(se)}var K;Q+=se.substring($),pe.addText(Q)}function z(){F.subLanguage!=null?(()=>{if(se==="")return;let $=null;if(typeof F.subLanguage=="string"){if(!t[F.subLanguage])return pe.addText(se);$=y(F.subLanguage,se,!0,ie[F.subLanguage]),ie[F.subLanguage]=$._top}else $=C(se,F.subLanguage.length?F.subLanguage:null);F.relevance>0&&(ye+=$.relevance),pe.__addSublanguage($._emitter,$.language)})():I(),se=""}function T($,Y){$!==""&&(pe.startScope(Y),pe.addText($),pe.endScope())}function B($,Y){let Q=1;const K=Y.length-1;for(;Q<=K;){if(!$._emit[Q]){Q++;continue}const te=j.classNameAliases[$[Q]]||$[Q],q=Y[Q];te?T(q,te):(se=q,I(),se=""),Q++}}function L($,Y){return $.scope&&typeof $.scope=="string"&&pe.openNode(j.classNameAliases[$.scope]||$.scope),$.beginScope&&($.beginScope._wrap?(T(se,j.classNameAliases[$.beginScope._wrap]||$.beginScope._wrap),se=""):$.beginScope._multi&&(B($.beginScope,Y),se="")),F=Object.create($,{parent:{value:F}}),F}function U($,Y,Q){let K=((te,q)=>{const oe=te&&te.exec(q);return oe&&oe.index===0})($.endRe,Q);if(K){if($["on:end"]){const te=new Ah($);$["on:end"](Y,te),te.isMatchIgnored&&(K=!1)}if(K){for(;$.endsParent&&$.parent;)$=$.parent;return $}}if($.endsWithParent)return U($.parent,Y,Q)}function W($){return F.matcher.regexIndex===0?(se+=$[0],1):(he=!0,0)}function V($){const Y=$[0],Q=x.substring($.index),K=U(F,$,Q);if(!K)return Lh;const te=F;F.endScope&&F.endScope._wrap?(z(),T(Y,F.endScope._wrap)):F.endScope&&F.endScope._multi?(z(),B(F.endScope,$)):te.skip?se+=Y:(te.returnEnd||te.excludeEnd||(se+=Y),z(),te.excludeEnd&&(se=Y));do F.scope&&pe.closeNode(),F.skip||F.subLanguage||(ye+=F.relevance),F=F.parent;while(F!==K.parent);return K.starts&&L(K.starts,$),te.returnEnd?0:Y.length}let k={};function M($,Y){const Q=Y&&Y[0];if(se+=$,Q==null)return z(),0;if(k.type==="begin"&&Y.type==="end"&&k.index===Y.index&&Q===""){if(se+=x.slice(Y.index,Y.index+1),!o){const K=Error(`0 width match regex (${S})`);throw K.languageName=S,K.badRule=k.rule,K}return 1}if(k=Y,Y.type==="begin")return(K=>{const te=K[0],q=K.rule,oe=new Ah(q),de=[q.__beforeBegin,q["on:begin"]];for(const Ee of de)if(Ee&&(Ee(K,oe),oe.isMatchIgnored))return W(te);return q.skip?se+=te:(q.excludeBegin&&(se+=te),z(),q.returnBegin||q.excludeBegin||(se=te)),L(q,K),q.returnBegin?0:te.length})(Y);if(Y.type==="illegal"&&!O){const K=Error('Illegal lexeme "'+Q+'" for mode "'+(F.scope||"<unnamed>")+'"');throw K.mode=F,K}if(Y.type==="end"){const K=V(Y);if(K!==Lh)return K}if(Y.type==="illegal"&&Q==="")return 1;if(ue>1e5&&ue>3*Y.index)throw Error("potential infinite loop, way more iterations than matches");return se+=Q,Q.length}const j=_(S);if(!j)throw qo(s.replace("{}",S)),Error('Unknown language: "'+S+'"');const Z=oT(j);let J="",F=D||Z;const ie={},pe=new c.__emitter(c);(()=>{const $=[];for(let Y=F;Y!==j;Y=Y.parent)Y.scope&&$.unshift(Y.scope);$.forEach(Y=>pe.openNode(Y))})();let se="",ye=0,fe=0,ue=0,he=!1;try{if(j.__emitTokens)j.__emitTokens(x,pe);else{for(F.matcher.considerAll();;){ue++,he?he=!1:F.matcher.considerAll(),F.matcher.lastIndex=fe;const $=F.matcher.exec(x);if(!$)break;const Y=M(x.substring(fe,$.index),$);fe=$.index+Y}M(x.substring(fe))}return pe.finalize(),J=pe.toHTML(),{language:S,value:J,relevance:ye,illegal:!1,_emitter:pe,_top:F}}catch($){if($.message&&$.message.includes("Illegal"))return{language:S,value:_c(x),illegal:!0,relevance:0,_illegalBy:{message:$.message,index:fe,context:x.slice(fe-100,fe+100),mode:$.mode,resultSoFar:J},_emitter:pe};if(o)return{language:S,value:_c(x),illegal:!1,relevance:0,errorRaised:$,_emitter:pe,_top:F};throw $}}function C(S,x){x=x||c.languages||Object.keys(t);const O=(B=>{const L={value:_c(B),illegal:!1,relevance:0,_top:d,_emitter:new c.__emitter(c)};return L._emitter.addText(B),L})(S),D=x.filter(_).filter(m).map(B=>y(B,S,!1));D.unshift(O);const R=D.sort((B,L)=>{if(B.relevance!==L.relevance)return L.relevance-B.relevance;if(B.language&&L.language){if(_(B.language).supersetOf===L.language)return 1;if(_(L.language).supersetOf===B.language)return-1}return 0}),[I,z]=R,T=I;return T.secondBest=z,T}function w(S){let x=null;const O=(I=>{let z=I.className+" ";z+=I.parentNode?I.parentNode.className:"";const T=c.languageDetectRe.exec(z);if(T){const B=_(T[1]);return B||(Ih(s.replace("{}",T[1])),Ih("Falling back to no-highlight mode for this block.",I)),B?T[1]:"no-highlight"}return z.split(/\s+/).find(B=>u(B)||_(B))})(S);if(u(O))return;if(b("before:highlightElement",{el:S,language:O}),S.dataset.highlighted)return console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",S);if(S.children.length>0&&(c.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(S)),c.throwUnescapedHTML))throw new iT("One of your code blocks includes unescaped HTML.",S.innerHTML);x=S;const D=x.textContent,R=O?g(D,{language:O,ignoreIllegals:!0}):C(D);S.innerHTML=R.value,S.dataset.highlighted="yes",((I,z,T)=>{const B=z&&i[z]||T;I.classList.add("hljs"),I.classList.add("language-"+B)})(S,O,R.language),S.result={language:R.language,re:R.relevance,relevance:R.relevance},R.secondBest&&(S.secondBest={language:R.secondBest.language,relevance:R.secondBest.relevance}),b("after:highlightElement",{el:S,result:R,text:D})}let A=!1;function E(){document.readyState!=="loading"?document.querySelectorAll(c.cssSelector).forEach(w):A=!0}function _(S){return S=(S||"").toLowerCase(),t[S]||t[i[S]]}function v(S,{languageName:x}){typeof S=="string"&&(S=[S]),S.forEach(O=>{i[O.toLowerCase()]=x})}function m(S){const x=_(S);return x&&!x.disableAutodetect}function b(S,x){const O=S;r.forEach(D=>{D[O]&&D[O](x)})}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",()=>{A&&E()},!1),Object.assign(e,{highlight:g,highlightAuto:C,highlightAll:E,highlightElement:w,highlightBlock:S=>($i("10.7.0","highlightBlock will be removed entirely in v12.0"),$i("10.7.0","Please use highlightElement now."),w(S)),configure:S=>{c=Mh(c,S)},initHighlighting:()=>{E(),$i("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:()=>{E(),$i("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:(S,x)=>{let O=null;try{O=x(e)}catch(D){if(qo("Language definition for '{}' could not be registered.".replace("{}",S)),!o)throw D;qo(D),O=d}O.name||(O.name=S),t[S]=O,O.rawDefinition=x.bind(null,e),O.aliases&&v(O.aliases,{languageName:S})},unregisterLanguage:S=>{delete t[S];for(const x of Object.keys(i))i[x]===S&&delete i[x]},listLanguages:()=>Object.keys(t),getLanguage:_,registerAliases:v,autoDetection:m,inherit:Mh,addPlugin:S=>{(x=>{x["before:highlightBlock"]&&!x["before:highlightElement"]&&(x["before:highlightElement"]=O=>{x["before:highlightBlock"](Object.assign({block:O.el},O))}),x["after:highlightBlock"]&&!x["after:highlightElement"]&&(x["after:highlightElement"]=O=>{x["after:highlightBlock"](Object.assign({block:O.el},O))})})(S),r.push(S)},removePlugin:S=>{const x=r.indexOf(S);x!==-1&&r.splice(x,1)}}),e.debugMode=()=>{o=!1},e.safeMode=()=>{o=!0},e.versionString="11.9.0",e.regex={concat:Zo,lookahead:Nh,either:yc,optional:MN,anyNumberOfTimes:PN};for(const S in rl)typeof rl[S]=="object"&&Eh(rl[S]);return Object.assign(e,rl),e},Vi=jh({});Vi.newInstance=()=>jh({});/*! `xml` grammar compiled for Highlight.js 11.9.0 */var rT=(()=>e=>{const t=e.regex,i=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=e.inherit(o,{begin:/\(/,end:/\)/}),d=e.inherit(e.APOS_STRING_MODE,{className:"string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,c,d,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,s,c,d]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(i,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:u}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}})();/*! `javascript` grammar compiled for Highlight.js 11.9.0 */var aT=(()=>{const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],i=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],o=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],d=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],c=[].concat(s,r,o);return u=>{const g=u.regex,y=e,C={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(J,F)=>{const ie=J[0].length+J.index,pe=J.input[ie];if(pe==="<"||pe===",")return void F.ignoreMatch();let se;pe===">"&&(((fe,{after:ue})=>{const he="</"+fe[0].slice(1);return fe.input.indexOf(he,ue)!==-1})(J,{after:ie})||F.ignoreMatch());const ye=J.input.substring(ie);((se=ye.match(/^\s*=/))||(se=ye.match(/^\s+extends\s+/))&&se.index===0)&&F.ignoreMatch()}},w={$pattern:e,keyword:t,literal:i,built_in:c,"variable.language":d},A="[0-9](_?[0-9])*",E=`\\.(${A})`,_="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",v={className:"number",variants:[{begin:`(\\b(${_})((${E})|\\.)?|(${E}))[eE][+-]?(${A})\\b`},{begin:`\\b(${_})\\b((${E})\\b|\\.)?|(${E})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},m={className:"subst",begin:"\\$\\{",end:"\\}",keywords:w,contains:[]},b={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,m],subLanguage:"xml"}},S={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,m],subLanguage:"css"}},x={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,m],subLanguage:"graphql"}},O={className:"string",begin:"`",end:"`",contains:[u.BACKSLASH_ESCAPE,m]},D={className:"comment",variants:[u.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:y+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),u.C_BLOCK_COMMENT_MODE,u.C_LINE_COMMENT_MODE]},R=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,b,S,x,O,{match:/\$\d+/},v];m.contains=R.concat({begin:/\{/,end:/\}/,keywords:w,contains:["self"].concat(R)});const I=[].concat(D,m.contains),z=I.concat([{begin:/\(/,end:/\)/,keywords:w,contains:["self"].concat(I)}]),T={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:z},B={variants:[{match:[/class/,/\s+/,y,/\s+/,/extends/,/\s+/,g.concat(y,"(",g.concat(/\./,y),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,y],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:g.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...r,...o]}},U={variants:[{match:[/function/,/\s+/,y,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[T],illegal:/%/},W={match:g.concat(/\b/,(V=[...s,"super","import"],g.concat("(?!",V.join("|"),")")),y,g.lookahead(/\(/)),className:"title.function",relevance:0};var V;const k={begin:g.concat(/\./,g.lookahead(g.concat(y,/(?![0-9A-Za-z$_(])/))),end:y,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},M={match:[/get|set/,/\s+/,y,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},T]},j="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+u.UNDERSCORE_IDENT_RE+")\\s*=>",Z={match:[/const|var|let/,/\s+/,y,/\s*/,/=\s*/,/(async\s*)?/,g.lookahead(j)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[T]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:w,exports:{PARAMS_CONTAINS:z,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[u.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,b,S,x,O,D,{match:/\$\d+/},v,L,{className:"attr",begin:y+g.lookahead(":"),relevance:0},Z,{begin:"("+u.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[D,u.REGEXP_MODE,{className:"function",begin:j,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:u.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:z}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:"<>",end:"</>"},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:C.begin,"on:begin":C.isTrulyOpeningTag,end:C.end}],subLanguage:"xml",contains:[{begin:C.begin,end:C.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+u.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[T,u.inherit(u.TITLE_MODE,{begin:y,className:"title.function"})]},{match:/\.\.\./,relevance:0},k,{match:"\\$"+y,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[T]},W,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},B,M,{match:/\$[(.]/}]}}})();const c3="",lT=n.defineComponent({name:"ConfigItem",components:{Warning:Zn},props:{label:String,info:String,warning:String,appendBackground:String,arrow:{type:Boolean,default:!0},showAppend:Boolean},data(){return{visit:!1}}}),sT={class:"_fd-config-item"},dT={class:"_fd-ci-head"},cT={key:0,class:"_fd-ci-con"},uT={key:1,class:"_fd-ci-info"};function fT(e,t,i,r,o,s){const d=n.resolveComponent("Warning");return n.openBlock(),n.createElementBlock("div",sT,[n.createElementVNode("div",dT,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-ci-label",e.$slots.append&&e.arrow!==!1?"is-arrow":""]),onClick:t[0]||(t[0]=c=>e.visit=e.$slots.append&&e.arrow!==!1&&!e.visit)},[e.warning?(n.openBlock(),n.createBlock(d,{key:0,tooltip:e.warning},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"label",{},()=>[n.createElementVNode("span",null,n.toDisplayString(e.label),1)])]),_:3},8,["tooltip"])):n.renderSlot(e.$slots,"label",{key:1},()=>[n.createElementVNode("span",null,n.toDisplayString(e.label),1)]),e.$slots.append&&e.arrow!==!1?(n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(["fc-icon icon-down",e.showAppend||e.visit?"down":""])},null,2)):n.createCommentVNode("",!0)],2),e.$slots.default||e.info?(n.openBlock(),n.createElementBlock("div",cT,[e.$slots.default?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("span",uT,n.toDisplayString(e.info),1))])):n.createCommentVNode("",!0)]),e.showAppend||e.visit?(n.openBlock(),n.createElementBlock("div",{key:0,class:"_fd-ci-append",style:n.normalizeStyle("background:"+e.appendBackground)},[n.renderSlot(e.$slots,"append")],4)):n.createCommentVNode("",!0)])}const Sn=Ne(lT,[["render",fT]]),u3="",pT=n.defineComponent({name:"PageInput",inject:["designer"],emits:["add","delete","change"],computed:{activePage(){return this.designer.setupState.activePage},pageData(){return this.designer.setupState.pageData},t(){return this.designer.setupState.t},containerList(){const e=this.designer.setupState.dragRuleList;return Object.keys(e).map(t=>{if(e[t].container)return e[t]}).filter(t=>!!t)}},methods:{copy(e){Kn(e)},getPageName(e){return this.t("com."+e.name+".name")||e.label},getPageLabel(e){return e.default?this.t("designer.main"):pi(e.main,e.config.labelField,"")||this.getPageName(e.main._menu)}}}),hT={class:"_fd-page-input"},mT=["onClick"],gT={class:"_fd-page-label"},vT={key:0,class:"fc-icon icon-yes"},yT={key:0,class:"_fd-page-id"},bT=["onClick"],CT={key:0,class:"_fd-page-btns"},_T=["onClick"],wT=["onClick"];function ET(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-menu-item"),u=n.resolveComponent("a-menu"),g=n.resolveComponent("a-dropdown");return n.openBlock(),n.createElementBlock("div",hT,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.pageData,(y,C)=>(n.openBlock(),n.createElementBlock("div",{key:y.main?y.main.name:"",class:n.normalizeClass(["_fd-page-item",{active:y===e.activePage}]),onClick:w=>e.$emit("change",C)},[n.createElementVNode("div",null,[n.createElementVNode("div",gT,[n.createElementVNode("span",null,n.toDisplayString(e.getPageLabel(y)),1),y===e.activePage?(n.openBlock(),n.createElementBlock("i",vT)):n.createCommentVNode("",!0)]),y.main?(n.openBlock(),n.createElementBlock("div",yT,[n.createTextVNode(" ID\uFF1A"+n.toDisplayString(y.main.name)+" ",1),n.createElementVNode("i",{onClick:n.withModifiers(w=>e.copy(y.main.name),["stop"]),class:"fc-icon icon-group"},null,8,bT)])):n.createCommentVNode("",!0)]),y.default?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",CT,[n.createElementVNode("div",{class:"_fd-page-copy",onClick:n.withModifiers(w=>e.$emit("copy",C),["stop"])},t[0]||(t[0]=[n.createElementVNode("i",{class:"fc-icon icon-copy"},null,-1)]),8,_T),n.createElementVNode("div",{class:"_fd-page-del",onClick:n.withModifiers(w=>e.$emit("delete",C),["stop"])},t[1]||(t[1]=[n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)]),8,wT)]))],10,mT))),128)),n.createVNode(g,{size:"default",trigger:"click"},{overlay:n.withCtx(()=>[n.createVNode(u,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.containerList,y=>(n.openBlock(),n.createBlock(c,{key:y.name,onClick:C=>e.$emit("add",y.name)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.getPageName(y)),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{type:"link",size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.addPage")),1),t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-down"},null,-1))]),_:1})]),_:1})])}const AT=Ne(pT,[["render",ET]]);function zh(e){return Array.isArray(e)?e:[null,void 0,""].indexOf(e)>-1?[]:[e]}function ll(e){let t=e.replace(/([A-Z])/g,"-$1").toLocaleLowerCase();return t.indexOf("-")===0&&(t=t.substr(1)),t}function Hh(e,t,i){let r=e,o;return(t||"").split(".").forEach(s=>{o&&((!r[o]||typeof r[o]!="object")&&(r[o]={}),r=r[o]),o=s}),r[o]=i,r}var Uh={exports:{}},Br={},sl={exports:{}},wc={},Ec={},Wh;function Ac(){if(Wh)return Ec;Wh=1;function e(r){this.__parent=r,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}e.prototype.clone_empty=function(){var r=new e(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},e.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},e.prototype.has_match=function(r){for(var o=this.__items.length-1;o>=0;o--)if(this.__items[o].match(r))return!0;return!1},e.prototype.set_indent=function(r,o){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=o||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return this.__items.length===0},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(r){this.__items.push(r);var o=r.lastIndexOf(`
`);o!==-1?this.__character_count=r.length-o:this.__character_count+=r.length},e.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function t(r,o){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),o=o||"",r.indent_level>0&&(o=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=o,this.__base_string_length=o.length}t.prototype.get_indent_size=function(r,o){var s=this.__base_string_length;return o=o||0,r<0&&(s=0),s+=r*this.__indent_size,s+=o,s},t.prototype.get_indent_string=function(r,o){var s=this.__base_string;return o=o||0,r<0&&(r=0,s=""),o+=r*this.__indent_size,this.__ensure_cache(o),s+=this.__cache[o],s},t.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},t.prototype.__add_column=function(){var r=this.__cache.length,o=0,s="";this.__indent_size&&r>=this.__indent_size&&(o=Math.floor(r/this.__indent_size),r-=o*this.__indent_size,s=new Array(o+1).join(this.__indent_string)),r&&(s+=new Array(r+1).join(" ")),this.__cache.push(s)};function i(r,o){this.__indent_cache=new t(r,o),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(r,o){return this.__indent_cache.get_indent_string(r,o)},i.prototype.get_indent_size=function(r,o){return this.__indent_cache.get_indent_size(r,o)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(r){this.trim(!0);var o=this.current_line.pop();o&&(o[o.length-1]===`
`&&(o=o.replace(/\n+$/g,"")),this.current_line.push(o)),this._end_with_newline&&this.__add_outputline();var s=this.__lines.join(`
`);return r!==`
`&&(s=s.replace(/[\n]/g,r)),s},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(r,o){return r=r||0,o=o||0,this.next_line.set_indent(r,o),this.__lines.length>1?(this.current_line.set_indent(r,o),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(r){for(var o=0;o<r.newlines;o++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.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(" "))},i.prototype.remove_indent=function(r){for(var o=this.__lines.length;r<o;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(r,o){for(var s=this.__lines.length-2;s>=0;){var d=this.__lines[s];if(d.is_empty())break;if(d.item(0).indexOf(r)!==0&&d.item(-1)!==o){this.__lines.splice(s+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}s--}},Ec.Output=i,Ec}var Sc={},Gh;function Kh(){if(Gh)return Sc;Gh=1;function e(t,i,r,o){this.type=t,this.text=i,this.comments_before=null,this.newlines=r||0,this.whitespace_before=o||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return Sc.Token=e,Sc}var xc={},Yh;function Qh(){return Yh||(Yh=1,function(e){var t="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",i="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",o="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",s="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",d="(?:"+s+"|["+t+r+"])",c="(?:"+s+"|["+i+r+o+"])*";e.identifier=new RegExp(d+c,"g"),e.identifierStart=new RegExp(d),e.identifierMatch=new RegExp("(?:"+s+"|["+i+r+o+"])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp(`\r
|`+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")}(xc)),xc}var kc={},$r={},Xh;function Nc(){if(Xh)return $r;Xh=1;function e(r,o){this.raw_options=t(r,o),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}e.prototype._get_array=function(r,o){var s=this.raw_options[r],d=o||[];return typeof s=="object"?s!==null&&typeof s.concat=="function"&&(d=s.concat()):typeof s=="string"&&(d=s.split(/[^a-zA-Z0-9_\/\-]+/)),d},e.prototype._get_boolean=function(r,o){var s=this.raw_options[r],d=s===void 0?!!o:!!s;return d},e.prototype._get_characters=function(r,o){var s=this.raw_options[r],d=o||"";return typeof s=="string"&&(d=s.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),d},e.prototype._get_number=function(r,o){var s=this.raw_options[r];o=parseInt(o,10),isNaN(o)&&(o=0);var d=parseInt(s,10);return isNaN(d)&&(d=o),d},e.prototype._get_selection=function(r,o,s){var d=this._get_selection_list(r,o,s);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
`+o+`
You passed in: '`+this.raw_options[r]+"'");return d[0]},e.prototype._get_selection_list=function(r,o,s){if(!o||o.length===0)throw new Error("Selection list cannot be empty.");if(s=s||[o[0]],!this._is_valid_selection(s,o))throw new Error("Invalid Default Value!");var d=this._get_array(r,s);if(!this._is_valid_selection(d,o))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
`+o+`
You passed in: '`+this.raw_options[r]+"'");return d},e.prototype._is_valid_selection=function(r,o){return r.length&&o.length&&!r.some(function(s){return o.indexOf(s)===-1})};function t(r,o){var s={};r=i(r);var d;for(d in r)d!==o&&(s[d]=r[d]);if(o&&r[o])for(d in r[o])s[d]=r[o][d];return s}function i(r){var o={},s;for(s in r){var d=s.replace(/-/g,"_");o[d]=r[s]}return o}return $r.Options=e,$r.normalizeOpts=i,$r.mergeOpts=t,$r}var Jh;function Zh(){if(Jh)return kc;Jh=1;var e=Nc().Options,t=["before-newline","after-newline","preserve-newline"];function i(r){e.call(this,r,"js");var o=this.raw_options.brace_style||null;o==="expand-strict"?this.raw_options.brace_style="expand":o==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var s=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var d=0;d<s.length;d++)s[d]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=s[d];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",t),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return i.prototype=new e,kc.Options=i,kc}var Ri={},Tc={},qh;function Oc(){if(qh)return Tc;qh=1;var e=RegExp.prototype.hasOwnProperty("sticky");function t(i){this.__input=i||"",this.__input_length=this.__input.length,this.__position=0}return t.prototype.restart=function(){this.__position=0},t.prototype.back=function(){this.__position>0&&(this.__position-=1)},t.prototype.hasNext=function(){return this.__position<this.__input_length},t.prototype.next=function(){var i=null;return this.hasNext()&&(i=this.__input.charAt(this.__position),this.__position+=1),i},t.prototype.peek=function(i){var r=null;return i=i||0,i+=this.__position,i>=0&&i<this.__input_length&&(r=this.__input.charAt(i)),r},t.prototype.__match=function(i,r){i.lastIndex=r;var o=i.exec(this.__input);return o&&!(e&&i.sticky)&&o.index!==r&&(o=null),o},t.prototype.test=function(i,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(i,r):!1},t.prototype.testChar=function(i,r){var o=this.peek(r);return i.lastIndex=0,o!==null&&i.test(o)},t.prototype.match=function(i){var r=this.__match(i,this.__position);return r?this.__position+=r[0].length:r=null,r},t.prototype.read=function(i,r,o){var s="",d;return i&&(d=this.match(i),d&&(s+=d[0])),r&&(d||!i)&&(s+=this.readUntil(r,o)),s},t.prototype.readUntil=function(i,r){var o="",s=this.__position;i.lastIndex=this.__position;var d=i.exec(this.__input);return d?(s=d.index,r&&(s+=d[0].length)):s=this.__input_length,o=this.__input.substring(this.__position,s),this.__position=s,o},t.prototype.readUntilAfter=function(i){return this.readUntil(i,!0)},t.prototype.get_regexp=function(i,r){var o=null,s="g";return r&&e&&(s="y"),typeof i=="string"&&i!==""?o=new RegExp(i,s):i&&(o=new RegExp(i.source,s)),o},t.prototype.get_literal_regexp=function(i){return RegExp(i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(i){var r=this.__position,o=this.readUntilAfter(i);return this.__position=r,o},t.prototype.lookBack=function(i){var r=this.__position-1;return r>=i.length&&this.__input.substring(r-i.length,r).toLowerCase()===i},Tc.InputScanner=t,Tc}var dl={},Dc={},em;function ST(){if(em)return Dc;em=1;function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}return e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return this.__tokens_length===0},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__tokens[this.__position],this.__position+=1),t},e.prototype.peek=function(t){var i=null;return t=t||0,t+=this.__position,t>=0&&t<this.__tokens_length&&(i=this.__tokens[t]),i},e.prototype.add=function(t){this.__parent_token&&(t.parent=this.__parent_token),this.__tokens.push(t),this.__tokens_length+=1},Dc.TokenStream=e,Dc}var Bc={},$c={},tm;function cl(){if(tm)return $c;tm=1;function e(t,i){this._input=t,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,i&&(this._starting_pattern=this._input.get_regexp(i._starting_pattern,!0),this._match_pattern=this._input.get_regexp(i._match_pattern,!0),this._until_pattern=this._input.get_regexp(i._until_pattern),this._until_after=i._until_after)}return e.prototype.read=function(){var t=this._input.read(this._starting_pattern);return(!this._starting_pattern||t)&&(t+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),t},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(t){var i=this._create();return i._until_after=!0,i._until_pattern=this._input.get_regexp(t),i._update(),i},e.prototype.until=function(t){var i=this._create();return i._until_after=!1,i._until_pattern=this._input.get_regexp(t),i._update(),i},e.prototype.starting_with=function(t){var i=this._create();return i._starting_pattern=this._input.get_regexp(t,!0),i._update(),i},e.prototype.matching=function(t){var i=this._create();return i._match_pattern=this._input.get_regexp(t,!0),i._update(),i},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},$c.Pattern=e,$c}var nm;function xT(){if(nm)return Bc;nm=1;var e=cl().Pattern;function t(i,r){e.call(this,i,r),r?this._line_regexp=this._input.get_regexp(r._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return t.prototype=new e,t.prototype.__set_whitespace_patterns=function(i,r){i+="\\t ",r+="\\n\\r",this._match_pattern=this._input.get_regexp("["+i+r+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+r+"]")},t.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var i=this._input.read(this._match_pattern);if(i===" ")this.whitespace_before_token=" ";else if(i){var r=this.__split(this._newline_regexp,i);this.newline_count=r.length-1,this.whitespace_before_token=r[this.newline_count]}return i},t.prototype.matching=function(i,r){var o=this._create();return o.__set_whitespace_patterns(i,r),o._update(),o},t.prototype._create=function(){return new t(this._input,this)},t.prototype.__split=function(i,r){i.lastIndex=0;for(var o=0,s=[],d=i.exec(r);d;)s.push(r.substring(o,d.index)),o=d.index+d[0].length,d=i.exec(r);return o<r.length?s.push(r.substring(o,r.length)):s.push(""),s},Bc.WhitespacePattern=t,Bc}var om;function ul(){if(om)return dl;om=1;var e=Oc().InputScanner,t=Kh().Token,i=ST().TokenStream,r=xT().WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},s=function(d,c){this._input=new e(d),this._options=c||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};return s.prototype.tokenize=function(){this._input.restart(),this.__tokens=new i,this._reset();for(var d,c=new t(o.START,""),u=null,g=[],y=new i;c.type!==o.EOF;){for(d=this._get_next_token(c,u);this._is_comment(d);)y.add(d),d=this._get_next_token(c,u);y.isEmpty()||(d.comments_before=y,y=new i),d.parent=u,this._is_opening(d)?(g.push(u),u=d):u&&this._is_closing(d,u)&&(d.opened=u,u.closed=d,u=g.pop(),d.parent=u),d.previous=c,c.next=d,this.__tokens.add(d),c=d}return this.__tokens},s.prototype._is_first_token=function(){return this.__tokens.isEmpty()},s.prototype._reset=function(){},s.prototype._get_next_token=function(d,c){this._readWhitespace();var u=this._input.read(/.+/g);return u?this._create_token(o.RAW,u):this._create_token(o.EOF,"")},s.prototype._is_comment=function(d){return!1},s.prototype._is_opening=function(d){return!1},s.prototype._is_closing=function(d,c){return!1},s.prototype._create_token=function(d,c){var u=new t(d,c,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return u},s.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},dl.Tokenizer=s,dl.TOKEN=o,dl}var Vc={},im;function Rc(){if(im)return Vc;im=1;function e(t,i){t=typeof t=="string"?t:t.source,i=typeof i=="string"?i:i.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+i,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+i,"g")}return e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var i={};this.__directive_pattern.lastIndex=0;for(var r=this.__directive_pattern.exec(t);r;)i[r[1]]=r[2],r=this.__directive_pattern.exec(t);return i},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},Vc.Directives=e,Vc}var Ic={},rm;function am(){if(rm)return Ic;rm=1;var e=cl().Pattern,t={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function i(r,o){e.call(this,r,o),this.__template_pattern=null,this._disabled=Object.assign({},t),this._excluded=Object.assign({},t),o&&(this.__template_pattern=this._input.get_regexp(o.__template_pattern),this._excluded=Object.assign(this._excluded,o._excluded),this._disabled=Object.assign(this._disabled,o._disabled));var s=new e(r);this.__patterns={handlebars_comment:s.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:s.starting_with(/{{{/).until_after(/}}}/),handlebars:s.starting_with(/{{/).until_after(/}}/),php:s.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:s.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:s.starting_with(/{%/).until_after(/%}/),django_value:s.starting_with(/{{/).until_after(/}}/),django_comment:s.starting_with(/{#/).until_after(/#}/),smarty:s.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:s.starting_with(/{\*/).until_after(/\*}/),smarty_literal:s.starting_with(/{literal}/).until_after(/{\/literal}/)}}return i.prototype=new e,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(r){var o=this._create();return o._disabled[r]=!0,o._update(),o},i.prototype.read_options=function(r){var o=this._create();for(var s in t)o._disabled[s]=r.templating.indexOf(s)===-1;return o._update(),o},i.prototype.exclude=function(r){var o=this._create();return o._excluded[r]=!0,o._update(),o},i.prototype.read=function(){var r="";this._match_pattern?r=this._input.read(this._starting_pattern):r=this._input.read(this._starting_pattern,this.__template_pattern);for(var o=this._read_template();o;)this._match_pattern?o+=this._input.read(this._match_pattern):o+=this._input.readUntil(this.__template_pattern),r+=o,o=this._read_template();return this._until_after&&(r+=this._input.readUntilAfter(this._until_pattern)),r},i.prototype.__set_templated_pattern=function(){var r=[];this._disabled.php||r.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||r.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(r.push(this.__patterns.django._starting_pattern.source),r.push(this.__patterns.django_value._starting_pattern.source),r.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||r.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&r.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+r.join("|")+")")},i.prototype._read_template=function(){var r="",o=this._input.peek();if(o==="<"){var s=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&s==="?"&&(r=r||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&s==="%"&&(r=r||this.__patterns.erb.read())}else o==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(r=r||this.__patterns.handlebars_comment.read(),r=r||this.__patterns.handlebars_unescaped.read(),r=r||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(r=r||this.__patterns.django_value.read()),this._excluded.django||(r=r||this.__patterns.django_comment.read(),r=r||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(r=r||this.__patterns.smarty_comment.read(),r=r||this.__patterns.smarty_literal.read(),r=r||this.__patterns.smarty.read()));return r},Ic.TemplatablePattern=i,Ic}var lm;function fl(){if(lm)return Ri;lm=1;var e=Oc().InputScanner,t=ul().Tokenizer,i=ul().TOKEN,r=Rc().Directives,o=Qh(),s=cl().Pattern,d=am().TemplatablePattern;function c(D,R){return R.indexOf(D)!==-1}var u={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:i.START,RAW:i.RAW,EOF:i.EOF},g=new r(/\/\*/,/\*\//),y=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,C=/[0-9]/,w=/[^\d\.]/,A=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),E=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";E=E.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),E="\\?\\.(?!\\d) "+E,E=E.replace(/ /g,"|");var _=new RegExp(E),v="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),m=v.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),b=new RegExp("^(?:"+m.join("|")+")$"),S,x=function(D,R){t.call(this,D,R),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var I=new s(this._input),z=new d(this._input).read_options(this._options);this.__patterns={template:z,identifier:z.starting_with(o.identifier).matching(o.identifierMatch),number:I.matching(y),punct:I.matching(_),comment:I.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:I.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:I.matching(/<!--/),html_comment_end:I.matching(/-->/),include:I.starting_with(/#include/).until_after(o.lineBreak),shebang:I.starting_with(/#!/).until_after(o.lineBreak),xml:I.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:z.until(/['\\\n\r\u2028\u2029]/),double_quote:z.until(/["\\\n\r\u2028\u2029]/),template_text:z.until(/[`\\$]/),template_expression:z.until(/[`}\\]/)}};x.prototype=new t,x.prototype._is_comment=function(D){return D.type===u.COMMENT||D.type===u.BLOCK_COMMENT||D.type===u.UNKNOWN},x.prototype._is_opening=function(D){return D.type===u.START_BLOCK||D.type===u.START_EXPR},x.prototype._is_closing=function(D,R){return(D.type===u.END_BLOCK||D.type===u.END_EXPR)&&R&&(D.text==="]"&&R.text==="["||D.text===")"&&R.text==="("||D.text==="}"&&R.text==="{")},x.prototype._reset=function(){S=!1},x.prototype._get_next_token=function(D,R){var I=null;this._readWhitespace();var z=this._input.peek();return z===null?this._create_token(u.EOF,""):(I=I||this._read_non_javascript(z),I=I||this._read_string(z),I=I||this._read_pair(z,this._input.peek(1)),I=I||this._read_word(D),I=I||this._read_singles(z),I=I||this._read_comment(z),I=I||this._read_regexp(z,D),I=I||this._read_xml(z,D),I=I||this._read_punctuation(),I=I||this._create_token(u.UNKNOWN,this._input.next()),I)},x.prototype._read_word=function(D){var R;if(R=this.__patterns.identifier.read(),R!=="")return R=R.replace(o.allLineBreaks,`
`),!(D.type===u.DOT||D.type===u.RESERVED&&(D.text==="set"||D.text==="get"))&&b.test(R)?(R==="in"||R==="of")&&(D.type===u.WORD||D.type===u.STRING)?this._create_token(u.OPERATOR,R):this._create_token(u.RESERVED,R):this._create_token(u.WORD,R);if(R=this.__patterns.number.read(),R!=="")return this._create_token(u.WORD,R)},x.prototype._read_singles=function(D){var R=null;return D==="("||D==="["?R=this._create_token(u.START_EXPR,D):D===")"||D==="]"?R=this._create_token(u.END_EXPR,D):D==="{"?R=this._create_token(u.START_BLOCK,D):D==="}"?R=this._create_token(u.END_BLOCK,D):D===";"?R=this._create_token(u.SEMICOLON,D):D==="."&&w.test(this._input.peek(1))?R=this._create_token(u.DOT,D):D===","&&(R=this._create_token(u.COMMA,D)),R&&this._input.next(),R},x.prototype._read_pair=function(D,R){var I=null;return D==="#"&&R==="{"&&(I=this._create_token(u.START_BLOCK,D+R)),I&&(this._input.next(),this._input.next()),I},x.prototype._read_punctuation=function(){var D=this.__patterns.punct.read();if(D!=="")return D==="="?this._create_token(u.EQUALS,D):D==="?."?this._create_token(u.DOT,D):this._create_token(u.OPERATOR,D)},x.prototype._read_non_javascript=function(D){var R="";if(D==="#"){if(this._is_first_token()&&(R=this.__patterns.shebang.read(),R))return this._create_token(u.UNKNOWN,R.trim()+`
`);if(R=this.__patterns.include.read(),R)return this._create_token(u.UNKNOWN,R.trim()+`
`);D=this._input.next();var I="#";if(this._input.hasNext()&&this._input.testChar(C)){do D=this._input.next(),I+=D;while(this._input.hasNext()&&D!=="#"&&D!=="=");return D==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(I+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(I+="{}",this._input.next(),this._input.next())),this._create_token(u.WORD,I)}this._input.back()}else if(D==="<"&&this._is_first_token()){if(R=this.__patterns.html_comment_start.read(),R){for(;this._input.hasNext()&&!this._input.testChar(o.newline);)R+=this._input.next();return S=!0,this._create_token(u.COMMENT,R)}}else if(S&&D==="-"&&(R=this.__patterns.html_comment_end.read(),R))return S=!1,this._create_token(u.COMMENT,R);return null},x.prototype._read_comment=function(D){var R=null;if(D==="/"){var I="";if(this._input.peek(1)==="*"){I=this.__patterns.block_comment.read();var z=g.get_directives(I);z&&z.ignore==="start"&&(I+=g.readIgnored(this._input)),I=I.replace(o.allLineBreaks,`
`),R=this._create_token(u.BLOCK_COMMENT,I),R.directives=z}else this._input.peek(1)==="/"&&(I=this.__patterns.comment.read(),R=this._create_token(u.COMMENT,I))}return R},x.prototype._read_string=function(D){if(D==="`"||D==="'"||D==='"'){var R=this._input.next();return this.has_char_escapes=!1,D==="`"?R+=this._read_string_recursive("`",!0,"${"):R+=this._read_string_recursive(D),this.has_char_escapes&&this._options.unescape_strings&&(R=O(R)),this._input.peek()===D&&(R+=this._input.next()),R=R.replace(o.allLineBreaks,`
`),this._create_token(u.STRING,R)}return null},x.prototype._allow_regexp_or_xml=function(D){return D.type===u.RESERVED&&c(D.text,["return","case","throw","else","do","typeof","yield"])||D.type===u.END_EXPR&&D.text===")"&&D.opened.previous.type===u.RESERVED&&c(D.opened.previous.text,["if","while","for"])||c(D.type,[u.COMMENT,u.START_EXPR,u.START_BLOCK,u.START,u.END_BLOCK,u.OPERATOR,u.EQUALS,u.EOF,u.SEMICOLON,u.COMMA])},x.prototype._read_regexp=function(D,R){if(D==="/"&&this._allow_regexp_or_xml(R)){for(var I=this._input.next(),z=!1,T=!1;this._input.hasNext()&&(z||T||this._input.peek()!==D)&&!this._input.testChar(o.newline);)I+=this._input.peek(),z?z=!1:(z=this._input.peek()==="\\",this._input.peek()==="["?T=!0:this._input.peek()==="]"&&(T=!1)),this._input.next();return this._input.peek()===D&&(I+=this._input.next(),I+=this._input.read(o.identifier)),this._create_token(u.STRING,I)}return null},x.prototype._read_xml=function(D,R){if(this._options.e4x&&D==="<"&&this._allow_regexp_or_xml(R)){var I="",z=this.__patterns.xml.read_match();if(z){for(var T=z[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),B=T.indexOf("{")===0,L=0;z;){var U=!!z[1],W=z[2],V=!!z[z.length-1]||W.slice(0,8)==="![CDATA[";if(!V&&(W===T||B&&W.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(U?--L:++L),I+=z[0],L<=0)break;z=this.__patterns.xml.read_match()}return z||(I+=this._input.match(/[\s\S]*/g)[0]),I=I.replace(o.allLineBreaks,`
`),this._create_token(u.STRING,I)}}return null};function O(D){for(var R="",I=0,z=new e(D),T=null;z.hasNext();)if(T=z.match(/([\s]|[^\\]|\\\\)+/g),T&&(R+=T[0]),z.peek()==="\\"){if(z.next(),z.peek()==="x")T=z.match(/x([0-9A-Fa-f]{2})/g);else if(z.peek()==="u")T=z.match(/u([0-9A-Fa-f]{4})/g),T||(T=z.match(/u\{([0-9A-Fa-f]+)\}/g));else{R+="\\",z.hasNext()&&(R+=z.next());continue}if(!T||(I=parseInt(T[1],16),I>126&&I<=255&&T[0].indexOf("x")===0))return D;I>=0&&I<32||I>1114111?R+="\\"+T[0]:I===34||I===39||I===92?R+="\\"+String.fromCharCode(I):R+=String.fromCharCode(I)}return R}return x.prototype._read_string_recursive=function(D,R,I){var z,T;D==="'"?T=this.__patterns.single_quote:D==='"'?T=this.__patterns.double_quote:D==="`"?T=this.__patterns.template_text:D==="}"&&(T=this.__patterns.template_expression);for(var B=T.read(),L="";this._input.hasNext();){if(L=this._input.next(),L===D||!R&&o.newline.test(L)){this._input.back();break}else L==="\\"&&this._input.hasNext()?(z=this._input.peek(),z==="x"||z==="u"?this.has_char_escapes=!0:z==="\r"&&this._input.peek(1)===`
`&&this._input.next(),L+=this._input.next()):I&&(I==="${"&&L==="$"&&this._input.peek()==="{"&&(L+=this._input.next()),I===L&&(D==="`"?L+=this._read_string_recursive("}",R,"`"):L+=this._read_string_recursive("`",R,"${"),this._input.hasNext()&&(L+=this._input.next())));L+=T.read(),B+=L}return B},Ri.Tokenizer=x,Ri.TOKEN=u,Ri.positionable_operators=A.slice(),Ri.line_starters=v.slice(),Ri}var sm;function kT(){if(sm)return wc;sm=1;var e=Ac().Output,t=Kh().Token,i=Qh(),r=Zh().Options,o=fl().Tokenizer,s=fl().line_starters,d=fl().positionable_operators,c=fl().TOKEN;function u(T,B){return B.indexOf(T)!==-1}function g(T){return T.replace(/^\s+/g,"")}function y(T){for(var B={},L=0;L<T.length;L++)B[T[L].replace(/-/g,"_")]=T[L];return B}function C(T,B){return T&&T.type===c.RESERVED&&T.text===B}function w(T,B){return T&&T.type===c.RESERVED&&u(T.text,B)}var A=["case","return","do","if","throw","else","await","break","continue","async"],E=["before-newline","after-newline","preserve-newline"],_=y(E),v=[_.before_newline,_.preserve_newline],m={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function b(T,B){B.multiline_frame||B.mode===m.ForInitializer||B.mode===m.Conditional||T.remove_indent(B.start_line_index)}function S(T){T=T.replace(i.allLineBreaks,`
`);for(var B=[],L=T.indexOf(`
`);L!==-1;)B.push(T.substring(0,L)),T=T.substring(L+1),L=T.indexOf(`
`);return T.length&&B.push(T),B}function x(T){return T===m.ArrayLiteral}function O(T){return u(T,[m.Expression,m.ForInitializer,m.Conditional])}function D(T,B){for(var L=0;L<T.length;L++){var U=T[L].trim();if(U.charAt(0)!==B)return!1}return!0}function R(T,B){for(var L=0,U=T.length,W;L<U;L++)if(W=T[L],W&&W.indexOf(B)!==0)return!1;return!0}function I(T,B){B=B||{},this._source_text=T||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new r(B)}I.prototype.create_flags=function(T,B){var L=0;T&&(L=T.indentation_level,!this._output.just_added_newline()&&T.line_indent_level>L&&(L=T.line_indent_level));var U={mode:B,parent:T,last_token:T?T.last_token:new t(c.START_BLOCK,""),last_word:T?T.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:L,alignment:0,line_indent_level:T?T.line_indent_level:L,start_line_index:this._output.get_line_number(),ternary_depth:0};return U},I.prototype._reset=function(T){var B=T.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,B),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(m.BlockStatement);var L=new o(T,this._options);return this._tokens=L.tokenize(),T},I.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var T,B=this._reset(this._source_text),L=this._options.eol;this._options.eol==="auto"&&(L=`
`,B&&i.lineBreak.test(B||"")&&(L=B.match(i.lineBreak)[0]));for(var U=this._tokens.next();U;)this.handle_token(U),this._last_last_text=this._flags.last_token.text,this._flags.last_token=U,U=this._tokens.next();return T=this._output.get_code(L),T},I.prototype.handle_token=function(T,B){T.type===c.START_EXPR?this.handle_start_expr(T):T.type===c.END_EXPR?this.handle_end_expr(T):T.type===c.START_BLOCK?this.handle_start_block(T):T.type===c.END_BLOCK?this.handle_end_block(T):T.type===c.WORD?this.handle_word(T):T.type===c.RESERVED?this.handle_word(T):T.type===c.SEMICOLON?this.handle_semicolon(T):T.type===c.STRING?this.handle_string(T):T.type===c.EQUALS?this.handle_equals(T):T.type===c.OPERATOR?this.handle_operator(T):T.type===c.COMMA?this.handle_comma(T):T.type===c.BLOCK_COMMENT?this.handle_block_comment(T,B):T.type===c.COMMENT?this.handle_comment(T,B):T.type===c.DOT?this.handle_dot(T):T.type===c.EOF?this.handle_eof(T):T.type===c.UNKNOWN?this.handle_unknown(T,B):this.handle_unknown(T,B)},I.prototype.handle_whitespace_and_comments=function(T,B){var L=T.newlines,U=this._options.keep_array_indentation&&x(this._flags.mode);if(T.comments_before)for(var W=T.comments_before.next();W;)this.handle_whitespace_and_comments(W,B),this.handle_token(W,B),W=T.comments_before.next();if(U)for(var V=0;V<L;V+=1)this.print_newline(V>0,B);else if(this._options.max_preserve_newlines&&L>this._options.max_preserve_newlines&&(L=this._options.max_preserve_newlines),this._options.preserve_newlines&&L>1){this.print_newline(!1,B);for(var k=1;k<L;k+=1)this.print_newline(!0,B)}};var z=["async","break","continue","return","throw","yield"];return I.prototype.allow_wrap_or_preserved_newline=function(T,B){if(B=B===void 0?!1:B,!this._output.just_added_newline()){var L=this._options.preserve_newlines&&T.newlines||B,U=u(this._flags.last_token.text,d)||u(T.text,d);if(U){var W=u(this._flags.last_token.text,d)&&u(this._options.operator_position,v)||u(T.text,d);L=L&&W}if(L)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(w(this._flags.last_token,z))return;this._output.set_wrap_point()}}},I.prototype.print_newline=function(T,B){if(!B&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==c.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var L=this._tokens.peek();this._flags.mode===m.Statement&&!(this._flags.if_block&&C(L,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(T)&&(this._flags.multiline_frame=!0)},I.prototype.print_token_line_indentation=function(T){this._output.just_added_newline()&&(this._options.keep_array_indentation&&T.newlines&&(T.text==="["||x(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(T.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},I.prototype.print_token=function(T){if(this._output.raw){this._output.add_raw_token(T);return}if(this._options.comma_first&&T.previous&&T.previous.type===c.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var B=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(B),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(T),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(T),this._output.non_breaking_space=!0,this._output.add_token(T.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},I.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},I.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},I.prototype.set_mode=function(T){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,T),this._flags=this.create_flags(this._previous_flags,T),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},I.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===m.Statement&&b(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},I.prototype.start_of_object_property=function(){return this._flags.parent.mode===m.ObjectLiteral&&this._flags.mode===m.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||w(this._flags.last_token,["get","set"]))},I.prototype.start_of_statement=function(T){var B=!1;return B=B||w(this._flags.last_token,["var","let","const"])&&T.type===c.WORD,B=B||C(this._flags.last_token,"do"),B=B||!(this._flags.parent.mode===m.ObjectLiteral&&this._flags.mode===m.Statement)&&w(this._flags.last_token,z)&&!T.newlines,B=B||C(this._flags.last_token,"else")&&!(C(T,"if")&&!T.comments_before),B=B||this._flags.last_token.type===c.END_EXPR&&(this._previous_flags.mode===m.ForInitializer||this._previous_flags.mode===m.Conditional),B=B||this._flags.last_token.type===c.WORD&&this._flags.mode===m.BlockStatement&&!this._flags.in_case&&!(T.text==="--"||T.text==="++")&&this._last_last_text!=="function"&&T.type!==c.WORD&&T.type!==c.RESERVED,B=B||this._flags.mode===m.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||w(this._flags.last_token,["get","set"])),B?(this.set_mode(m.Statement),this.indent(),this.handle_whitespace_and_comments(T,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(T,w(T,["do","for","if","while"])),!0):!1},I.prototype.handle_start_expr=function(T){this.start_of_statement(T)||this.handle_whitespace_and_comments(T);var B=m.Expression;if(T.text==="["){if(this._flags.last_token.type===c.WORD||this._flags.last_token.text===")"){w(this._flags.last_token,s)&&(this._output.space_before_token=!0),this.print_token(T),this.set_mode(B),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}B=m.ArrayLiteral,x(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),u(this._flags.last_token.type,[c.START_EXPR,c.END_EXPR,c.WORD,c.OPERATOR,c.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===c.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,B=m.ForInitializer):u(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,B=m.Conditional):u(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&T.whitespace_before===""?this._output.space_before_token=!1:(u(this._flags.last_token.text,s)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(T);else if(this._flags.last_token.type===c.WORD){this._output.space_before_token=!1;var L=this._tokens.peek(-3);if(this._options.space_after_named_function&&L){var U=this._tokens.peek(-4);w(L,["async","function"])||L.text==="*"&&w(U,["async","function"])?this._output.space_before_token=!0:this._flags.mode===m.ObjectLiteral?(L.text==="{"||L.text===","||L.text==="*"&&(U.text==="{"||U.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(T);(this._flags.last_token.type===c.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(u(this._last_last_text,["function","yield"])||this._flags.mode===m.ObjectLiteral&&u(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===c.START_BLOCK?this.print_newline():(this._flags.last_token.type===c.END_EXPR||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===c.COMMA)&&this.allow_wrap_or_preserved_newline(T,T.newlines),this.print_token(T),this.set_mode(B),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},I.prototype.handle_end_expr=function(T){for(;this._flags.mode===m.Statement;)this.restore_mode();this.handle_whitespace_and_comments(T),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(T,T.text==="]"&&x(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===c.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(T),this.restore_mode(),b(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===m.Conditional&&(this._previous_flags.mode=m.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},I.prototype.handle_start_block=function(T){this.handle_whitespace_and_comments(T);var B=this._tokens.peek(),L=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===c.END_EXPR?(this.set_mode(m.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(m.BlockStatement):L&&(u(L.text,[":",","])&&u(B.type,[c.STRING,c.WORD,c.RESERVED])||u(B.text,["get","set","..."])&&u(L.type,[c.WORD,c.RESERVED]))?u(this._last_last_text,["class","interface"])&&!u(L.text,[":",","])?this.set_mode(m.BlockStatement):this.set_mode(m.ObjectLiteral):this._flags.last_token.type===c.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(m.BlockStatement):u(this._flags.last_token.type,[c.EQUALS,c.START_EXPR,c.COMMA,c.OPERATOR])||w(this._flags.last_token,["return","throw","import","default"])?this.set_mode(m.ObjectLiteral):this.set_mode(m.BlockStatement),this._flags.last_token&&w(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var U=!B.comments_before&&B.text==="}",W=U&&this._flags.last_word==="function"&&this._flags.last_token.type===c.END_EXPR;if(this._options.brace_preserve_inline){var V=0,k=null;this._flags.inline_frame=!0;do if(V+=1,k=this._tokens.peek(V-1),k.newlines){this._flags.inline_frame=!1;break}while(k.type!==c.EOF&&!(k.type===c.END_BLOCK&&k.opened===T))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&T.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==c.OPERATOR&&(W||this._flags.last_token.type===c.EQUALS||w(this._flags.last_token,A)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(x(this._previous_flags.mode)&&(this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.COMMA)&&((this._flags.last_token.type===c.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(T),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==c.OPERATOR&&this._flags.last_token.type!==c.START_EXPR&&(u(this._flags.last_token.type,[c.START_BLOCK,c.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(T),this.indent(),!U&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},I.prototype.handle_end_block=function(T){for(this.handle_whitespace_and_comments(T);this._flags.mode===m.Statement;)this.restore_mode();var B=this._flags.last_token.type===c.START_BLOCK;this._flags.inline_frame&&!B?this._output.space_before_token=!0:this._options.brace_style==="expand"?B||this.print_newline():B||(x(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(T)},I.prototype.handle_word=function(T){if(T.type===c.RESERVED){if(u(T.text,["set","get"])&&this._flags.mode!==m.ObjectLiteral)T.type=c.WORD;else if(T.text==="import"&&u(this._tokens.peek().text,["(","."]))T.type=c.WORD;else if(u(T.text,["as","from"])&&!this._flags.import_block)T.type=c.WORD;else if(this._flags.mode===m.ObjectLiteral){var B=this._tokens.peek();B.text===":"&&(T.type=c.WORD)}}if(this.start_of_statement(T)?w(this._flags.last_token,["var","let","const"])&&T.type===c.WORD&&(this._flags.declaration_statement=!0):T.newlines&&!O(this._flags.mode)&&(this._flags.last_token.type!==c.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==c.EQUALS&&(this._options.preserve_newlines||!w(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(T),this.print_newline()):this.handle_whitespace_and_comments(T),this._flags.do_block&&!this._flags.do_while)if(C(T,"while")){this._output.space_before_token=!0,this.print_token(T),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&C(T,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===m.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&w(T,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(T),this._flags.in_case=!0;return}if((this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR)&&!this.start_of_object_property()&&!(u(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===m.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(T),C(T,"function")){(u(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(u(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===c.OPERATOR))&&!this._output.just_added_blankline()&&!T.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD?w(this._flags.last_token,["get","set","new","export"])||w(this._flags.last_token,z)?this._output.space_before_token=!0:C(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===c.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(O(this._flags.mode)||x(this._flags.mode))||this.print_newline(),this.print_token(T),this._flags.last_word=T.text;return}var L="NONE";if(this._flags.last_token.type===c.END_BLOCK?this._previous_flags.inline_frame?L="SPACE":w(T,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&T.newlines?L="NEWLINE":(L="SPACE",this._output.space_before_token=!0):L="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&this._flags.mode===m.BlockStatement?L="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&O(this._flags.mode)?L="SPACE":this._flags.last_token.type===c.STRING?L="NEWLINE":this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.last_token.text==="*"&&(u(this._last_last_text,["function","yield"])||this._flags.mode===m.ObjectLiteral&&u(this._last_last_text,["{",","]))?L="SPACE":this._flags.last_token.type===c.START_BLOCK?this._flags.inline_frame?L="SPACE":L="NEWLINE":this._flags.last_token.type===c.END_EXPR&&(this._output.space_before_token=!0,L="NEWLINE"),w(T,s)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?L="SPACE":L="NEWLINE"),w(T,["else","catch","finally"]))if((!(this._flags.last_token.type===c.END_BLOCK&&this._previous_flags.mode===m.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&T.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var U=this._output.current_line;U.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else L==="NEWLINE"?w(this._flags.last_token,A)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&w(T,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==c.END_EXPR?(this._flags.last_token.type!==c.START_EXPR||!w(T,["var","let","const"]))&&this._flags.last_token.text!==":"&&(C(T,"if")&&C(T.previous,"else")?this._output.space_before_token=!0:this.print_newline()):w(T,s)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&x(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():L==="SPACE"&&(this._output.space_before_token=!0);T.previous&&(T.previous.type===c.WORD||T.previous.type===c.RESERVED)&&(this._output.space_before_token=!0),this.print_token(T),this._flags.last_word=T.text,T.type===c.RESERVED&&(T.text==="do"?this._flags.do_block=!0:T.text==="if"?this._flags.if_block=!0:T.text==="import"?this._flags.import_block=!0:this._flags.import_block&&C(T,"from")&&(this._flags.import_block=!1))},I.prototype.handle_semicolon=function(T){this.start_of_statement(T)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(T);for(var B=this._tokens.peek();this._flags.mode===m.Statement&&!(this._flags.if_block&&C(B,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(T)},I.prototype.handle_string=function(T){T.text.startsWith("`")&&T.newlines===0&&T.whitespace_before===""&&(T.previous.text===")"||this._flags.last_token.type===c.WORD)||(this.start_of_statement(T)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(T),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(T):T.text.startsWith("`")&&this._flags.last_token.type===c.END_EXPR&&(T.previous.text==="]"||T.previous.text===")")&&T.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(T)},I.prototype.handle_equals=function(T){this.start_of_statement(T)||this.handle_whitespace_and_comments(T),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(T),this._output.space_before_token=!0},I.prototype.handle_comma=function(T){this.handle_whitespace_and_comments(T,!0),this.print_token(T),this._output.space_before_token=!0,this._flags.declaration_statement?(O(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(T)):this._flags.mode===m.ObjectLiteral||this._flags.mode===m.Statement&&this._flags.parent.mode===m.ObjectLiteral?(this._flags.mode===m.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(T)},I.prototype.handle_operator=function(T){var B=T.text==="*"&&(w(this._flags.last_token,["function","yield"])||u(this._flags.last_token.type,[c.START_BLOCK,c.COMMA,c.END_BLOCK,c.SEMICOLON])),L=u(T.text,["-","+"])&&(u(this._flags.last_token.type,[c.START_BLOCK,c.START_EXPR,c.EQUALS,c.OPERATOR])||u(this._flags.last_token.text,s)||this._flags.last_token.text===",");if(!this.start_of_statement(T)){var U=!B;this.handle_whitespace_and_comments(T,U)}if(T.text==="*"&&this._flags.last_token.type===c.DOT){this.print_token(T);return}if(T.text==="::"){this.print_token(T);return}if(u(T.text,["-","+"])&&this.start_of_object_property()){this.print_token(T);return}if(this._flags.last_token.type===c.OPERATOR&&u(this._options.operator_position,v)&&this.allow_wrap_or_preserved_newline(T),T.text===":"&&this._flags.in_case){this.print_token(T),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==c.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var W=!0,V=!0,k=!1;if(T.text===":"?this._flags.ternary_depth===0?W=!1:(this._flags.ternary_depth-=1,k=!0):T.text==="?"&&(this._flags.ternary_depth+=1),!L&&!B&&this._options.preserve_newlines&&u(T.text,d)){var M=T.text===":",j=M&&k,Z=M&&!k;switch(this._options.operator_position){case _.before_newline:this._output.space_before_token=!Z,this.print_token(T),(!M||j)&&this.allow_wrap_or_preserved_newline(T),this._output.space_before_token=!0;return;case _.after_newline:this._output.space_before_token=!0,!M||j?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(T):this._output.space_before_token=!1,this.print_token(T),this._output.space_before_token=!0;return;case _.preserve_newline:Z||this.allow_wrap_or_preserved_newline(T),W=!(this._output.just_added_newline()||Z),this._output.space_before_token=W,this.print_token(T),this._output.space_before_token=!0;return}}if(B){this.allow_wrap_or_preserved_newline(T),W=!1;var J=this._tokens.peek();V=J&&u(J.type,[c.WORD,c.RESERVED])}else if(T.text==="...")this.allow_wrap_or_preserved_newline(T),W=this._flags.last_token.type===c.START_BLOCK,V=!1;else if(u(T.text,["--","++","!","~"])||L){if((this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR)&&this.allow_wrap_or_preserved_newline(T),W=!1,V=!1,T.newlines&&(T.text==="--"||T.text==="++"||T.text==="~")){var F=w(this._flags.last_token,A)&&T.newlines;F&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(F,!0)}this._flags.last_token.text===";"&&O(this._flags.mode)&&(W=!0),this._flags.last_token.type===c.RESERVED?W=!0:this._flags.last_token.type===c.END_EXPR?W=!(this._flags.last_token.text==="]"&&(T.text==="--"||T.text==="++")):this._flags.last_token.type===c.OPERATOR&&(W=u(T.text,["--","-","++","+"])&&u(this._flags.last_token.text,["--","-","++","+"]),u(T.text,["+","-"])&&u(this._flags.last_token.text,["--","++"])&&(V=!0)),(this._flags.mode===m.BlockStatement&&!this._flags.inline_frame||this._flags.mode===m.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||W,this.print_token(T),this._output.space_before_token=V},I.prototype.handle_block_comment=function(T,B){if(this._output.raw){this._output.add_raw_token(T),T.directives&&T.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(T.directives){this.print_newline(!1,B),this.print_token(T),T.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!i.newline.test(T.text)&&!T.newlines){this._output.space_before_token=!0,this.print_token(T),this._output.space_before_token=!0;return}else this.print_block_commment(T,B)},I.prototype.print_block_commment=function(T,B){var L=S(T.text),U,W=!1,V=!1,k=T.whitespace_before,M=k.length;if(this.print_newline(!1,B),this.print_token_line_indentation(T),this._output.add_token(L[0]),this.print_newline(!1,B),L.length>1){for(L=L.slice(1),W=D(L,"*"),V=R(L,k),W&&(this._flags.alignment=1),U=0;U<L.length;U++)W?(this.print_token_line_indentation(T),this._output.add_token(g(L[U]))):V&&L[U]?(this.print_token_line_indentation(T),this._output.add_token(L[U].substring(M))):(this._output.current_line.set_indent(-1),this._output.add_token(L[U])),this.print_newline(!1,B);this._flags.alignment=0}},I.prototype.handle_comment=function(T,B){T.newlines?this.print_newline(!1,B):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(T),this.print_newline(!1,B)},I.prototype.handle_dot=function(T){this.start_of_statement(T)||this.handle_whitespace_and_comments(T,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),w(this._flags.last_token,A)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(T,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(T)},I.prototype.handle_unknown=function(T,B){this.print_token(T),T.text[T.text.length-1]===`
`&&this.print_newline(!1,B)},I.prototype.handle_eof=function(T){for(;this._flags.mode===m.Statement;)this.restore_mode();this.handle_whitespace_and_comments(T)},wc.Beautifier=I,wc}var dm;function NT(){if(dm)return sl.exports;dm=1;var e=kT().Beautifier,t=Zh().Options;function i(r,o){var s=new e(r,o);return s.beautify()}return sl.exports=i,sl.exports.defaultOptions=function(){return new t},sl.exports}var pl={exports:{}},Fc={},Pc={},cm;function um(){if(cm)return Pc;cm=1;var e=Nc().Options;function t(i){e.call(this,i,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var r=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||r;var o=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var s=0;s<o.length;s++)o[s]!=="expand"?this.brace_style="collapse":this.brace_style=o[s]}return t.prototype=new e,Pc.Options=t,Pc}var fm;function TT(){if(fm)return Fc;fm=1;var e=um().Options,t=Ac().Output,i=Oc().InputScanner,r=Rc().Directives,o=new r(/\/\*/,/\*\//),s=/\r\n|[\r\n]/,d=/\r\n|[\r\n]/g,c=/\s/,u=/(?:\s|\n)+/g,g=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,y=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function C(w,A){this._source_text=w||"",this._options=new e(A),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return C.prototype.eatString=function(w){var A="";for(this._ch=this._input.next();this._ch;){if(A+=this._ch,this._ch==="\\")A+=this._input.next();else if(w.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return A},C.prototype.eatWhitespace=function(w){for(var A=c.test(this._input.peek()),E=0;c.test(this._input.peek());)this._ch=this._input.next(),w&&this._ch===`
`&&(E===0||E<this._options.max_preserve_newlines)&&(E++,this._output.add_new_line(!0));return A},C.prototype.foundNestedPseudoClass=function(){for(var w=0,A=1,E=this._input.peek(A);E;){if(E==="{")return!0;if(E==="(")w+=1;else if(E===")"){if(w===0)return!1;w-=1}else if(E===";"||E==="}")return!1;A++,E=this._input.peek(A)}return!1},C.prototype.print_string=function(w){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(w)},C.prototype.preserveSingleSpace=function(w){w&&(this._output.space_before_token=!0)},C.prototype.indent=function(){this._indentLevel++},C.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},C.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var w=this._source_text,A=this._options.eol;A==="auto"&&(A=`
`,w&&s.test(w||"")&&(A=w.match(s)[0])),w=w.replace(d,`
`);var E=w.match(/^[\t ]*/)[0];this._output=new t(this._options,E),this._input=new i(w),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var _=0,v=!1,m=!1,b=!1,S=!1,x=!1,O=this._ch,D=!1,R,I,z;R=this._input.read(u),I=R!=="",z=O,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),O=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var T=this._input.read(g),B=o.get_directives(T);B&&B.ignore==="start"&&(T+=o.readIgnored(this._input)),this.print_string(T),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(y)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(I),this.print_string(this._ch);var L=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);L.match(/[ :]$/)&&(L=this.eatString(": ").replace(/\s+$/,""),this.print_string(L),this._output.space_before_token=!0),_===0&&L.indexOf(":")!==-1&&(m=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(I),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var U=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);U.match(/[ :]$/)&&(U=this.eatString(": ").replace(/\s+$/,""),this.print_string(U),this._output.space_before_token=!0),_===0&&U.indexOf(":")!==-1?(m=!0,this.indent()):U in this.NESTED_AT_RULE?(this._nestedLevel+=1,U in this.CONDITIONAL_GROUP_RULE&&(b=!0)):_===0&&!m&&(S=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(I),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")m&&(m=!1,this.outdent()),S=!1,b?(b=!1,v=this._indentLevel>=this._nestedLevel):v=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&v&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(z==="("?this._output.space_before_token=!1:z!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),z==="{"&&this._output.trim(!0),m&&(this.outdent(),m=!1),this.print_string(this._ch),v=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var W=0;W<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;W++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[W])){D=!0;break}(v||b)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!S&&_===0?(this.print_string(":"),m||(m=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var V=z==='"'||z==="'";this.preserveSingleSpace(V||I),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")D=!1,_===0?(m&&(this.outdent(),m=!1),S=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),_++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),_&&(_--,this.outdent()));else{var k=!1;this._input.lookBack("with")&&(k=!0),this.preserveSingleSpace(I||k),this.print_string(this._ch),m&&z==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),x=!0):(this.eatWhitespace(),_++,this.indent())}else if(this._ch===")")_&&(_--,this.outdent()),x&&this._input.peek()===";"&&this._options.selector_separator_newline&&(x=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!m||x)&&_===0&&!S?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!m&&_===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&c.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(I),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),c.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var M=z==='"'||z==="'";this.preserveSingleSpace(M||I),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&D&&this._output.add_new_line()}var j=this._output.get_code(A);return j},Fc.Beautifier=C,Fc}var pm;function OT(){if(pm)return pl.exports;pm=1;var e=TT().Beautifier,t=um().Options;function i(r,o){var s=new e(r,o);return s.beautify()}return pl.exports=i,pl.exports.defaultOptions=function(){return new t},pl.exports}var hl={exports:{}},Mc={},Lc={},hm;function mm(){if(hm)return Lc;hm=1;var e=Nc().Options;function t(i){e.call(this,i,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return t.prototype=new e,Lc.Options=t,Lc}var ml={},gm;function vm(){if(gm)return ml;gm=1;var e=ul().Tokenizer,t=ul().TOKEN,i=Rc().Directives,r=am().TemplatablePattern,o=cl().Pattern,s={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:t.START,RAW:t.RAW,EOF:t.EOF},d=new i(/<\!--/,/-->/),c=function(u,g){e.call(this,u,g),this._current_tag_name="";var y=new r(this._input).read_options(this._options),C=new o(this._input);if(this.__patterns={word:y.until(/[\n\r\t <]/),word_control_flow_close_excluded:y.until(/[\n\r\t <}]/),single_quote:y.until_after(/'/),double_quote:y.until_after(/"/),attribute:y.until(/[\n\r\t =>]|\/>/),element_name:y.until(/[\n\r\t >\/]/),angular_control_flow_start:C.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:C.starting_with(/{{!--/).until_after(/--}}/),handlebars:C.starting_with(/{{/).until_after(/}}/),handlebars_open:C.until(/[\n\r\t }]/),handlebars_raw_close:C.until(/}}/),comment:C.starting_with(/<!--/).until_after(/-->/),cdata:C.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:C.starting_with(/<!\[/).until_after(/]>/),processing:C.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var w=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=C.matching(w).until_after(w)}};return c.prototype=new e,c.prototype._is_comment=function(u){return!1},c.prototype._is_opening=function(u){return u.type===s.TAG_OPEN||u.type===s.CONTROL_FLOW_OPEN},c.prototype._is_closing=function(u,g){return u.type===s.TAG_CLOSE&&g&&((u.text===">"||u.text==="/>")&&g.text[0]==="<"||u.text==="}}"&&g.text[0]==="{"&&g.text[1]==="{")||u.type===s.CONTROL_FLOW_CLOSE&&u.text==="}"&&g.text.endsWith("{")},c.prototype._reset=function(){this._current_tag_name=""},c.prototype._get_next_token=function(u,g){var y=null;this._readWhitespace();var C=this._input.peek();return C===null?this._create_token(s.EOF,""):(y=y||this._read_open_handlebars(C,g),y=y||this._read_attribute(C,u,g),y=y||this._read_close(C,g),y=y||this._read_control_flows(C,g),y=y||this._read_raw_content(C,u,g),y=y||this._read_content_word(C,g),y=y||this._read_comment_or_cdata(C),y=y||this._read_processing(C),y=y||this._read_open(C,g),y=y||this._create_token(s.UNKNOWN,this._input.next()),y)},c.prototype._read_comment_or_cdata=function(u){var g=null,y=null,C=null;if(u==="<"){var w=this._input.peek(1);w==="!"&&(y=this.__patterns.comment.read(),y?(C=d.get_directives(y),C&&C.ignore==="start"&&(y+=d.readIgnored(this._input))):y=this.__patterns.cdata.read()),y&&(g=this._create_token(s.COMMENT,y),g.directives=C)}return g},c.prototype._read_processing=function(u){var g=null,y=null,C=null;if(u==="<"){var w=this._input.peek(1);(w==="!"||w==="?")&&(y=this.__patterns.conditional_comment.read(),y=y||this.__patterns.processing.read()),y&&(g=this._create_token(s.COMMENT,y),g.directives=C)}return g},c.prototype._read_open=function(u,g){var y=null,C=null;return(!g||g.type===s.CONTROL_FLOW_OPEN)&&u==="<"&&(y=this._input.next(),this._input.peek()==="/"&&(y+=this._input.next()),y+=this.__patterns.element_name.read(),C=this._create_token(s.TAG_OPEN,y)),C},c.prototype._read_open_handlebars=function(u,g){var y=null,C=null;return(!g||g.type===s.CONTROL_FLOW_OPEN)&&this._options.indent_handlebars&&u==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(y=this.__patterns.handlebars_comment.read(),y=y||this.__patterns.handlebars.read(),C=this._create_token(s.COMMENT,y)):(y=this.__patterns.handlebars_open.read(),C=this._create_token(s.TAG_OPEN,y))),C},c.prototype._read_control_flows=function(u,g){var y="",C=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return C;if(u==="@"){if(y=this.__patterns.angular_control_flow_start.read(),y==="")return C;for(var w=y.endsWith("(")?1:0,A=0;!(y.endsWith("{")&&w===A);){var E=this._input.next();if(E===null)break;E==="("?w++:E===")"&&A++,y+=E}C=this._create_token(s.CONTROL_FLOW_OPEN,y)}else u==="}"&&g&&g.type===s.CONTROL_FLOW_OPEN&&(y=this._input.next(),C=this._create_token(s.CONTROL_FLOW_CLOSE,y));return C},c.prototype._read_close=function(u,g){var y=null,C=null;return g&&g.type===s.TAG_OPEN&&(g.text[0]==="<"&&(u===">"||u==="/"&&this._input.peek(1)===">")?(y=this._input.next(),u==="/"&&(y+=this._input.next()),C=this._create_token(s.TAG_CLOSE,y)):g.text[0]==="{"&&u==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),C=this._create_token(s.TAG_CLOSE,"}}"))),C},c.prototype._read_attribute=function(u,g,y){var C=null,w="";if(y&&y.text[0]==="<")if(u==="=")C=this._create_token(s.EQUALS,this._input.next());else if(u==='"'||u==="'"){var A=this._input.next();u==='"'?A+=this.__patterns.double_quote.read():A+=this.__patterns.single_quote.read(),C=this._create_token(s.VALUE,A)}else w=this.__patterns.attribute.read(),w&&(g.type===s.EQUALS?C=this._create_token(s.VALUE,w):C=this._create_token(s.ATTRIBUTE,w));return C},c.prototype._is_content_unformatted=function(u){return this._options.void_elements.indexOf(u)===-1&&(this._options.content_unformatted.indexOf(u)!==-1||this._options.unformatted.indexOf(u)!==-1)},c.prototype._read_raw_content=function(u,g,y){var C="";if(y&&y.text[0]==="{")C=this.__patterns.handlebars_raw_close.read();else if(g.type===s.TAG_CLOSE&&g.opened.text[0]==="<"&&g.text[0]!=="/"){var w=g.opened.text.substr(1).toLowerCase();if(w==="script"||w==="style"){var A=this._read_comment_or_cdata(u);if(A)return A.type=s.TEXT,A;C=this._input.readUntil(new RegExp("</"+w+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(w)&&(C=this._input.readUntil(new RegExp("</"+w+"[\\n\\r\\t ]*?>","ig")))}return C?this._create_token(s.TEXT,C):null},c.prototype._read_content_word=function(u,g){var y="";if(this._options.unformatted_content_delimiter&&u===this._options.unformatted_content_delimiter[0]&&(y=this.__patterns.unformatted_content_delimiter.read()),y||(y=g&&g.type===s.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),y)return this._create_token(s.TEXT,y)},ml.Tokenizer=c,ml.TOKEN=s,ml}var ym;function DT(){if(ym)return Mc;ym=1;var e=mm().Options,t=Ac().Output,i=vm().Tokenizer,r=vm().TOKEN,o=/\r\n|[\r\n]/,s=/\r\n|[\r\n]/g,d=function(v,m){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=v.max_preserve_newlines,this.preserve_newlines=v.preserve_newlines,this._output=new t(v,m)};d.prototype.current_line_has_match=function(v){return this._output.current_line.has_match(v)},d.prototype.set_space_before_token=function(v,m){this._output.space_before_token=v,this._output.non_breaking_space=m},d.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},d.prototype.add_raw_token=function(v){this._output.add_raw_token(v)},d.prototype.print_preserved_newlines=function(v){var m=0;v.type!==r.TEXT&&v.previous.type!==r.TEXT&&(m=v.newlines?1:0),this.preserve_newlines&&(m=v.newlines<this.max_preserve_newlines+1?v.newlines:this.max_preserve_newlines+1);for(var b=0;b<m;b++)this.print_newline(b>0);return m!==0},d.prototype.traverse_whitespace=function(v){return v.whitespace_before||v.newlines?(this.print_preserved_newlines(v)||(this._output.space_before_token=!0),!0):!1},d.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},d.prototype.print_newline=function(v){this._output.add_new_line(v)},d.prototype.print_token=function(v){v.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(v.text))},d.prototype.indent=function(){this.indent_level++},d.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},d.prototype.get_full_indent=function(v){return v=this.indent_level+(v||0),v<1?"":this._output.get_indent_string(v)};var c=function(v){for(var m=null,b=v.next;b.type!==r.EOF&&v.closed!==b;){if(b.type===r.ATTRIBUTE&&b.text==="type"){b.next&&b.next.type===r.EQUALS&&b.next.next&&b.next.next.type===r.VALUE&&(m=b.next.next.text);break}b=b.next}return m},u=function(v,m){var b=null,S=null;return m.closed?(v==="script"?b="text/javascript":v==="style"&&(b="text/css"),b=c(m)||b,b.search("text/css")>-1?S="css":b.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?S="javascript":b.search(/(text|application|dojo)\/(x-)?(html)/)>-1?S="html":b.search(/test\/null/)>-1&&(S="null"),S):null};function g(v,m){return m.indexOf(v)!==-1}function y(v,m,b){this.parent=v||null,this.tag=m?m.tag_name:"",this.indent_level=b||0,this.parser_token=m||null}function C(v){this._printer=v,this._current_frame=null}C.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},C.prototype.record_tag=function(v){var m=new y(this._current_frame,v,this._printer.indent_level);this._current_frame=m},C.prototype._try_pop_frame=function(v){var m=null;return v&&(m=v.parser_token,this._printer.indent_level=v.indent_level,this._current_frame=v.parent),m},C.prototype._get_frame=function(v,m){for(var b=this._current_frame;b&&v.indexOf(b.tag)===-1;){if(m&&m.indexOf(b.tag)!==-1){b=null;break}b=b.parent}return b},C.prototype.try_pop=function(v,m){var b=this._get_frame([v],m);return this._try_pop_frame(b)},C.prototype.indent_to_tag=function(v){var m=this._get_frame(v);m&&(this._printer.indent_level=m.indent_level)};function w(v,m,b,S){this._source_text=v||"",m=m||{},this._js_beautify=b,this._css_beautify=S,this._tag_stack=null;var x=new e(m,"html");this._options=x,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}w.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var v=this._source_text,m=this._options.eol;this._options.eol==="auto"&&(m=`
`,v&&o.test(v)&&(m=v.match(o)[0])),v=v.replace(s,`
`);var b=v.match(/^[\t ]*/)[0],S={text:"",type:""},x=new A,O=new d(this._options,b),D=new i(v,this._options).tokenize();this._tag_stack=new C(O);for(var R=null,I=D.next();I.type!==r.EOF;)I.type===r.TAG_OPEN||I.type===r.COMMENT?(R=this._handle_tag_open(O,I,x,S,D),x=R):I.type===r.ATTRIBUTE||I.type===r.EQUALS||I.type===r.VALUE||I.type===r.TEXT&&!x.tag_complete?R=this._handle_inside_tag(O,I,x,S):I.type===r.TAG_CLOSE?R=this._handle_tag_close(O,I,x):I.type===r.TEXT?R=this._handle_text(O,I,x):I.type===r.CONTROL_FLOW_OPEN?R=this._handle_control_flow_open(O,I):I.type===r.CONTROL_FLOW_CLOSE?R=this._handle_control_flow_close(O,I):O.add_raw_token(I),S=R,I=D.next();var z=O._output.get_code(m);return z},w.prototype._handle_control_flow_open=function(v,m){var b={text:m.text,type:m.type};return v.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),m.newlines?v.print_preserved_newlines(m):v.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),v.print_token(m),v.indent(),b},w.prototype._handle_control_flow_close=function(v,m){var b={text:m.text,type:m.type};return v.deindent(),m.newlines?v.print_preserved_newlines(m):v.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),v.print_token(m),b},w.prototype._handle_tag_close=function(v,m,b){var S={text:m.text,type:m.type};return v.alignment_size=0,b.tag_complete=!0,v.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),b.is_unformatted?v.add_raw_token(m):(b.tag_start_char==="<"&&(v.set_space_before_token(m.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&b.has_wrapped_attrs&&v.print_newline(!1)),v.print_token(m)),b.indent_content&&!(b.is_unformatted||b.is_content_unformatted)&&(v.indent(),b.indent_content=!1),!b.is_inline_element&&!(b.is_unformatted||b.is_content_unformatted)&&v.set_wrap_point(),S},w.prototype._handle_inside_tag=function(v,m,b,S){var x=b.has_wrapped_attrs,O={text:m.text,type:m.type};return v.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),b.is_unformatted?v.add_raw_token(m):b.tag_start_char==="{"&&m.type===r.TEXT?v.print_preserved_newlines(m)?(m.newlines=0,v.add_raw_token(m)):v.print_token(m):(m.type===r.ATTRIBUTE?v.set_space_before_token(!0):(m.type===r.EQUALS||m.type===r.VALUE&&m.previous.type===r.EQUALS)&&v.set_space_before_token(!1),m.type===r.ATTRIBUTE&&b.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(v.traverse_whitespace(m),x=x||m.newlines!==0),this._is_wrap_attributes_force&&b.attr_count>=this._options.wrap_attributes_min_attrs&&(S.type!==r.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(v.print_newline(!1),x=!0)),v.print_token(m),x=x||v.previous_token_wrapped(),b.has_wrapped_attrs=x),O},w.prototype._handle_text=function(v,m,b){var S={text:m.text,type:"TK_CONTENT"};return b.custom_beautifier_name?this._print_custom_beatifier_text(v,m,b):b.is_unformatted||b.is_content_unformatted?v.add_raw_token(m):(v.traverse_whitespace(m),v.print_token(m)),S},w.prototype._print_custom_beatifier_text=function(v,m,b){var S=this;if(m.text!==""){var x=m.text,O,D=1,R="",I="";b.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?O=this._js_beautify:b.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?O=this._css_beautify:b.custom_beautifier_name==="html"&&(O=function(W,V){var k=new w(W,V,S._js_beautify,S._css_beautify);return k.beautify()}),this._options.indent_scripts==="keep"?D=0:this._options.indent_scripts==="separate"&&(D=-v.indent_level);var z=v.get_full_indent(D);if(x=x.replace(/\n[ \t]*$/,""),b.custom_beautifier_name!=="html"&&x[0]==="<"&&x.match(/^(<!--|<!\[CDATA\[)/)){var T=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(x);if(!T){v.add_raw_token(m);return}R=z+T[1]+`
`,x=T[4],T[5]&&(I=z+T[5]),x=x.replace(/\n[ \t]*$/,""),(T[2]||T[3].indexOf(`
`)!==-1)&&(T=T[3].match(/[ \t]+$/),T&&(m.whitespace_before=T[0]))}if(x)if(O){var B=function(){this.eol=`
`};B.prototype=this._options.raw_options;var L=new B;x=O(z+x,L)}else{var U=m.whitespace_before;U&&(x=x.replace(new RegExp(`
(`+U+")?","g"),`
`)),x=z+x.replace(/\n/g,`
`+z)}R&&(x?x=R+x+`
`+I:x=R+I),v.print_newline(!1),x&&(m.text=x,m.whitespace_before="",m.newlines=0,v.add_raw_token(m),v.print_newline(!0))}},w.prototype._handle_tag_open=function(v,m,b,S,x){var O=this._get_tag_open_token(m);if((b.is_unformatted||b.is_content_unformatted)&&!b.is_empty_element&&m.type===r.TAG_OPEN&&!O.is_start_tag?(v.add_raw_token(m),O.start_tag_token=this._tag_stack.try_pop(O.tag_name)):(v.traverse_whitespace(m),this._set_tag_position(v,m,O,b,S),O.is_inline_element||v.set_wrap_point(),v.print_token(m)),O.is_start_tag&&this._is_wrap_attributes_force){var D=0,R;do R=x.peek(D),R.type===r.ATTRIBUTE&&(O.attr_count+=1),D+=1;while(R.type!==r.EOF&&R.type!==r.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(O.alignment_size=m.text.length+1),!O.tag_complete&&!O.is_unformatted&&(v.alignment_size=O.alignment_size),O};var A=function(v,m){if(this.parent=v||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!m)this.tag_complete=!0;else{var b;this.tag_start_char=m.text[0],this.text=m.text,this.tag_start_char==="<"?(b=m.text.match(/^<([^\s>]*)/),this.tag_check=b?b[1]:""):(b=m.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=b?b[1]:"",(m.text.startsWith("{{#>")||m.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&m.next!==null?this.tag_check=m.next.text.split(" ")[0]:this.tag_check=m.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),m.type===r.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||m.closed&&m.closed.text==="/>";var S=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(S=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(S)))}};w.prototype._get_tag_open_token=function(v){var m=new A(this._tag_stack.get_parser_token(),v);return m.alignment_size=this._options.wrap_attributes_indent_size,m.is_end_tag=m.is_end_tag||g(m.tag_check,this._options.void_elements),m.is_empty_element=m.tag_complete||m.is_start_tag&&m.is_end_tag,m.is_unformatted=!m.tag_complete&&g(m.tag_check,this._options.unformatted),m.is_content_unformatted=!m.is_empty_element&&g(m.tag_check,this._options.content_unformatted),m.is_inline_element=g(m.tag_name,this._options.inline)||this._options.inline_custom_elements&&m.tag_name.includes("-")||m.tag_start_char==="{",m},w.prototype._set_tag_position=function(v,m,b,S,x){if(b.is_empty_element||(b.is_end_tag?b.start_tag_token=this._tag_stack.try_pop(b.tag_name):(this._do_optional_end_element(b)&&(b.is_inline_element||v.print_newline(!1)),this._tag_stack.record_tag(b),(b.tag_name==="script"||b.tag_name==="style")&&!(b.is_unformatted||b.is_content_unformatted)&&(b.custom_beautifier_name=u(b.tag_check,m)))),g(b.tag_check,this._options.extra_liners)&&(v.print_newline(!1),v._output.just_added_blankline()||v.print_newline(!0)),b.is_empty_element){if(b.tag_start_char==="{"&&b.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),b.indent_content=!0;var O=v.current_line_has_match(/{{#if/);O||v.print_newline(!1)}b.tag_name==="!--"&&x.type===r.TAG_CLOSE&&S.is_end_tag&&b.text.indexOf(`
`)===-1||(b.is_inline_element||b.is_unformatted||v.print_newline(!1),this._calcluate_parent_multiline(v,b))}else if(b.is_end_tag){var D=!1;D=b.start_tag_token&&b.start_tag_token.multiline_content,D=D||!b.is_inline_element&&!(S.is_inline_element||S.is_unformatted)&&!(x.type===r.TAG_CLOSE&&b.start_tag_token===S)&&x.type!=="TK_CONTENT",(b.is_content_unformatted||b.is_unformatted)&&(D=!1),D&&v.print_newline(!1)}else b.indent_content=!b.custom_beautifier_name,b.tag_start_char==="<"&&(b.tag_name==="html"?b.indent_content=this._options.indent_inner_html:b.tag_name==="head"?b.indent_content=this._options.indent_head_inner_html:b.tag_name==="body"&&(b.indent_content=this._options.indent_body_inner_html)),!(b.is_inline_element||b.is_unformatted)&&(x.type!=="TK_CONTENT"||b.is_content_unformatted)&&v.print_newline(!1),this._calcluate_parent_multiline(v,b)},w.prototype._calcluate_parent_multiline=function(v,m){m.parent&&v._output.just_added_newline()&&!((m.is_inline_element||m.is_unformatted)&&m.parent.is_inline_element)&&(m.parent.multiline_content=!0)};var E=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],_=["a","audio","del","ins","map","noscript","video"];return w.prototype._do_optional_end_element=function(v){var m=null;if(!(v.is_empty_element||!v.is_start_tag||!v.parent)){if(v.tag_name==="body")m=m||this._tag_stack.try_pop("head");else if(v.tag_name==="li")m=m||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(v.tag_name==="dd"||v.tag_name==="dt")m=m||this._tag_stack.try_pop("dt",["dl"]),m=m||this._tag_stack.try_pop("dd",["dl"]);else if(v.parent.tag_name==="p"&&E.indexOf(v.tag_name)!==-1){var b=v.parent.parent;(!b||_.indexOf(b.tag_name)===-1)&&(m=m||this._tag_stack.try_pop("p"))}else v.tag_name==="rp"||v.tag_name==="rt"?(m=m||this._tag_stack.try_pop("rt",["ruby","rtc"]),m=m||this._tag_stack.try_pop("rp",["ruby","rtc"])):v.tag_name==="optgroup"?m=m||this._tag_stack.try_pop("optgroup",["select"]):v.tag_name==="option"?m=m||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):v.tag_name==="colgroup"?m=m||this._tag_stack.try_pop("caption",["table"]):v.tag_name==="thead"?(m=m||this._tag_stack.try_pop("caption",["table"]),m=m||this._tag_stack.try_pop("colgroup",["table"])):v.tag_name==="tbody"||v.tag_name==="tfoot"?(m=m||this._tag_stack.try_pop("caption",["table"]),m=m||this._tag_stack.try_pop("colgroup",["table"]),m=m||this._tag_stack.try_pop("thead",["table"]),m=m||this._tag_stack.try_pop("tbody",["table"])):v.tag_name==="tr"?(m=m||this._tag_stack.try_pop("caption",["table"]),m=m||this._tag_stack.try_pop("colgroup",["table"]),m=m||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(v.tag_name==="th"||v.tag_name==="td")&&(m=m||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),m=m||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return v.parent=this._tag_stack.get_parser_token(),m}},Mc.Beautifier=w,Mc}var bm;function BT(){if(bm)return hl.exports;bm=1;var e=DT().Beautifier,t=mm().Options;function i(r,o,s,d){var c=new e(r,o,s,d);return c.beautify()}return hl.exports=i,hl.exports.defaultOptions=function(){return new t},hl.exports}var Cm;function $T(){if(Cm)return Br;Cm=1;var e=NT(),t=OT(),i=BT();function r(o,s,d,c){return d=d||e,c=c||t,i(o,s,d,c)}return r.defaultOptions=i.defaultOptions,Br.js=e,Br.css=t,Br.html=r,Br}(function(e){function t(i,r,o){var s=function(d,c){return i.js_beautify(d,c)};return s.js=i.js_beautify,s.css=r.css_beautify,s.html=o.html_beautify,s.js_beautify=i.js_beautify,s.css_beautify=r.css_beautify,s.html_beautify=o.html_beautify,s}(function(i){var r=$T();r.js_beautify=r.js,r.css_beautify=r.css,r.html_beautify=r.html,i.exports=t(r,r,r)})(e)})(Uh);const Ii=Uh.exports;function VT(e){const t={};return Object.values(e.import).forEach(i=>{t[i.name]=i.path}),` import { defineComponent } from "vue";
${Object.keys(t).map(i=>`import ${i} from '${t[i]}';`).join(`
`)}
export default defineComponent({
name: "FcTemplate",
components: {
${Object.keys(t).join(",")}
},
props: {},
data() {
return ${fn(e.data)}
},
methods: ${fn(e.methods)}
});
`}function RT(e){const t={};return Object.values(e.import).forEach(i=>{t[i.name]=i.path}),` import { ref } from "vue";
${Object.keys(t).map(i=>`import ${i} from '${t[i]}';`).join(`
`)}
${Object.keys(e.data).map(i=>`const ${i} = ref(${fn(e.data[i])})`).join(`
`)}
${Object.keys(e.methods).map(i=>fn(e.methods[i])).join(`
`)}
`}function jc(e,t){const i=[];return e&&e.forEach(r=>{if(!(r&&r._menu&&r._menu.sfc===!1))if(typeof r=="string")i.push(r);else if(r._fc_drag_tag){const o={...r,children:jc(r.children),_sfc:{}};t&&(o.slot=t),o.children.length?typeof o.children[0]=="string"&&(o._sfc.content=o.children[0],delete o.children):delete o.children,i.push(o)}else i.push(...jc(r.children,["DragBox","DragTool"].indexOf(r.type)>-1?r.slot||t:""))}),i}function IT(e,t,i,r){const o=e[0]?e[0].__fc__.vNode.aliasMap:void 0,s={style:{},import:{},data:{formData:{}},methods:{submit(){this.$refs.form.validate().then(()=>{})},reset(){this.$refs.form.resetFields()}}},d=[];function c(){let v=d.join(".");return v&&(v+="."),v}function u(v,m){return m?`<${v.type}${g(v)}>${m}</${v.type}>`:`<${v.type}${g(v)}/>`}function g(v){const m=v.props||{},b=v._sfc||{};let S=[];if(v.class&&S.push(`class="${Array.isArray(v.class)?v.class.join(" "):v.class}"`),v.slot&&v.slot!=="default"&&S.push("#"+v.slot),Object.keys(m).forEach(O=>{const D=m[O];if(D&&typeof D=="object"){const R=v._fc_id?v._fc_id+"_"+O:O;s.data[R]=D,S.push(`:${O}="${R}"`)}else if(D!=null&&D!==""&&typeof D!="function"){let R=typeof D=="string"?"":":";R+=`${O}="${D}"`,S.push(R)}}),v.field){let O=v.value;const D={array:[],string:"",number:0};if(v.value==null){const R=i[v._fc_drag_tag];R&&Array.isArray(R.validate)&&In(D,R.validate[0])&&(O=D[R.validate[0]])}s.data.formData[v.field]=O,b.vModel!==!1&&S.push(`v-model${b.modelField?":"+b.modelField:""}="formData.${c()}${v.field}"`)}if(v.style){const O=FT(v.style||"");O&&S.push(`style="${O}"`)}b.attr&&Object.keys(b.attr).forEach(O=>{S.push(`${O}="${b.attr[O]}"`)}),b.prop&&Object.keys(b.prop).forEach(O=>{const D=v._fc_id+"_"+O;s.data[D]=b.prop[O],S.push(`:${O}="${D}"`)}),b.flag&&b.flag.forEach(O=>{S.push(O)});let x=S.join(" ");return x&&(x=" "+x.trim()),x}function y(v){return v?v.map(m=>{var R,I,z;let b="";const S=m._menu;let x=et(m),O;if(S&&S.sfc){let T;if(typeof S.sfc=="object"?(T=S.sfc.handle,S.sfc.style&&(s.style[S.name]=S.sfc.style),S.sfc.import&&(s.import[S.name]=S.sfc.import)):T=S.sfc,T){const B=T(x,{transition:y,scope:s,getParentFieldStr:c})||x;typeof B=="string"?O=B:x=B}}const D=x.native!==!1&&(x.field||x.title);return O||(x._sfc&&x._sfc.parentField&&d.push(x.parentField),x._sfc&&x._sfc.content?b=`${x._sfc.content}`:x.children&&(b=`
`+y(x.children)+`
`),o&&o[x.type]&&(x.type=ju(o[x.type])),O=u(x,b),x._sfc&&x._sfc.parentField&&d.pop()),D&&((R=x==null?void 0:x.wrap)==null?void 0:R.show)!==!1&&(O=u({type:"aFormItem",props:{...x.wrap||{},name:c()+x.field,label:x.title,required:x.$required===!0?!0:void 0},style:(I=x==null?void 0:x.wrap)==null?void 0:I.style,class:(z=x==null?void 0:x.wrap)==null?void 0:z.class},`
`+O+`
`)),O}).join(`
`):""}e=jc(e);const C=[];t.submitBtn.show&&C.push({type:"aButton",props:{type:"primary"},_sfc:{attr:{"@click":"submit"},content:t.submitBtn.innerText||"\u63D0\u4EA4"}}),t.resetBtn.show&&C.push({type:"aButton",_sfc:{attr:{"@click":"reset"},content:t.resetBtn.innerText||"\u91CD\u7F6E"}}),C.length&&e.push({type:"aFormItem",children:C});const w=y([{type:"template",children:[{type:"aForm",props:t.form||{},children:e,_sfc:{attr:{ref:"form",":model":"formData"},flag:["@submit.prevent"]}}]}]);t.formData&&Cd(s.data.formData,t.formData);const A=Ii.html(w,{indent_size:2,indent_char:" ",indent_scripts:"separate",jslint_happy:!1}),E=Ii.js(r?VT(s):RT(s),{indent_size:2,indent_char:" ",indent_scripts:"separate"}),_=Ii.css(Object.values(s.style).join(`
`),{indent_size:2,indent_char:" ",indent_scripts:"separate"});return`${A}
<script${r?"":" setup"}>
${E}
<\/script>
<style>
${_}
</style>
`}function FT(e){return!e||typeof e=="string"?e||"":Object.keys(e).reduce((t,i)=>(e[i]!=null&&e[i]!==""&&t.push(ll(i)+":"+e[i]+";"),t),[]).join("")}const f3="",PT=n.defineComponent({name:"SubList",components:{fcDraggable:Ci,VNode:wh,ConfigItem:Sn},inject:["designer"],computed:{t(){return this.designer.setupState.t},activeRuleChildren(){return this.designer.setupState.activeRuleChildren},activeRule(){return this.designer.setupState.activeRule}},methods:{toolHandle(...e){this.designer.setupState.toolHandle(...e)},subRender(...e){return this.designer.setupState.subRender(...e)},end({oldIndex:e,newIndex:t}){if(e===t)return;const i=this.activeRule.children.splice(e,1);this.activeRule.children.splice(t,0,i[0]),this.activeRule.key=Ye()}}}),MT={class:"_fc-sublist"},LT={class:"_fc-r-title"},jT=["onClick"],zT=["onClick"];function HT(e,t,i,r,o,s){const d=n.resolveComponent("VNode"),c=n.resolveComponent("ConfigItem"),u=n.resolveComponent("fcDraggable");return n.openBlock(),n.createElementBlock("div",MT,[n.createElementVNode("p",LT,[n.createElementVNode("span",null,n.toDisplayString(e.t("designer.sublist")),1),n.createElementVNode("i",{class:"fc-icon icon-add-circle",onClick:t[0]||(t[0]=g=>e.toolHandle(e.activeRule,"addChild"))})]),n.createVNode(u,{group:{name:"sub",pull:"clone",put:!1},sort:!0,handle:".icon-drag",direction:"vertical",animation:0,itemKey:"_fc_id",onEnd:e.end,list:e.activeRuleChildren},{item:n.withCtx(({element:g,index:y})=>[n.createVNode(c,null,n.createSlots({label:n.withCtx(()=>[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-drag"},null,-1)),n.createElementVNode("span",null,n.toDisplayString((e.t("com."+g._menu.name+".name")||e.activeRule._menu.label)+" "+(y+1)),1)]),default:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-copy",onClick:C=>e.toolHandle(g,"copy")},null,8,jT),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:C=>e.toolHandle(g,"delete")},null,8,zT)]),_:2},[e.activeRule._menu.subRender?{name:"append",fn:n.withCtx(()=>[n.createVNode(d,{fn:()=>e.subRender(e.activeRule._menu.subRender,e.activeRule,g)},null,8,["fn"])]),key:"0"}:void 0]),1024)]),_:1},8,["onEnd","list"])])}const UT=Ne(PT,[["render",HT]]),p3="",WT=n.defineComponent({name:"ToolsBar",inject:["designer"],computed:{t(){return this.designer.setupState.t},tools(){const e=this.designer.setupState,t=[];return!e.activeRule&&!e.customForm.config||(e.baseForm.isShow&&t.push({label:this.t("designer.rule"),icon:"base"}),(e.propsForm.isShow||e.customForm.isShow&&e.customForm.propsShow)&&t.push({label:this.t("designer.props"),icon:"props"}),e.advancedForm.isShow&&t.push({label:this.t("designer.advanced"),icon:"advanced"}),e.styleForm.isShow&&t.push({label:this.t("designer.style"),icon:"style"}),e.eventShow&&t.push({label:this.t("designer.event"),icon:"event"}),e.validateForm.isShow&&t.push({label:this.t("designer.validate"),icon:"validate"})),t}},methods:{onClick(e){document.querySelector(`#_fd-config-${e}`).scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})},clearActiveRule(){this.designer.setupState.clearActiveRule()}}}),GT={key:0,class:"_fc-r-tools-bar"},KT={class:"_fc-r-tools"},YT=["onClick"];function QT(e,t,i,r,o,s){const d=n.resolveComponent("a-tooltip");return e.tools.length>2?(n.openBlock(),n.createElementBlock("div",GT,[n.createElementVNode("div",KT,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tools,c=>(n.openBlock(),n.createBlock(d,{key:c.icon,title:c.label,placement:"bottom"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fc-r-tool",onClick:u=>e.onClick(c.icon)},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",`icon-config-${c.icon}`])},null,2)],8,YT)]),_:2},1032,["title"]))),128)),n.createElementVNode("div",{class:"_fc-r-tools-close _fc-r-tool",onClick:t[0]||(t[0]=(...c)=>e.clearActiveRule&&e.clearActiveRule(...c))},t[1]||(t[1]=[n.createElementVNode("i",{class:"fc-icon icon-add2"},null,-1)]))])])):n.createCommentVNode("",!0)}const XT=Ne(WT,[["render",QT]]),h3="",JT=n.defineComponent({name:"ConfigTitle"}),ZT={ref:"cell",class:"_fd-config-title"};function qT(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",ZT,[n.renderSlot(e.$slots,"default")],512)}const _m=Ne(JT,[["render",qT]]),e2={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875"};function gl(){return gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},gl.apply(null,arguments)}const t2={locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},wm={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},Em={lang:gl({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},t2),timePickerLocale:gl({},wm)};Em.lang.ok="\u786E\u5B9A";const Am=Em,xn="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",n2={locale:"zh-cn",Pagination:e2,DatePicker:Am,TimePicker:wm,Calendar:Am,global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7ED3\u675F\u5BFC\u89C8"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00"},PageHeader:{back:"\u8FD4\u56DE"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:xn,method:xn,array:xn,object:xn,number:xn,date:xn,boolean:xn,integer:xn,float:xn,regexp:xn,email:xn,url:xn,hex:xn},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9884\u89C8"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u5DF2\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0",scanned:"\u5DF2\u626B\u63CF"}},y3="",o2=n.defineComponent({name:"TypeSelect",inject:["designer"],computed:{t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},customForm(){return this.designer.setupState.customForm},menus(){let e=[];const t=this.designer.setupState;if(this.activeRule){const i=this.activeRule._menu.name,r=t.getConfig("switchType",[]);if(r===!1)return e;let o=[];r.forEach(s=>{s.indexOf(i)>-1&&o.push(...s)}),o=o.filter((s,d)=>s!==i&&o.indexOf(s)===d),o.length?t.menuList.forEach(s=>{s.list.forEach(d=>{o.indexOf(d.name)>-1&&e.push(d)})}):t.menuList.forEach(s=>{s.name===this.activeRule._menu.menu&&s.list.forEach(d=>{d.name!==i&&e.push(d)})})}return e.filter(i=>this.designer.setupState.hiddenItem.indexOf(i.name)===-1)}},methods:{handleCommand(e){var d;let t=this.activeRule,i=this.activeRule;i._menu.inside||(i=i.__fc__.parent.rule);const r=i.__fc__.parent.rule.children,o=this.designer.setupState.makeRule(e);let s=o;o.type==="DragTool"&&(s=o.children[0]),s.field&&t.field?["title","info","field","validate","computed","control","$required","style"].forEach(c=>{s[c]=t[c]}):(d=t==null?void 0:t.computed)!=null&&d.hidden&&(s.computed={hidden:t.computed.hidden}),t.name&&(s.name=t.name),["name","wrap","class","id","control","on"].forEach(c=>{t[c]&&(s[c]=t[c])}),r.splice(r.indexOf(i),1,o),this.$nextTick(()=>{this.designer.setupState.triggerActive(s)})}}}),i2={key:0,class:"fc-icon icon-down"};function r2(e,t,i,r,o,s){const d=n.resolveComponent("a-tag"),c=n.resolveComponent("a-menu-item"),u=n.resolveComponent("a-menu"),g=n.resolveComponent("a-dropdown");return n.openBlock(),n.createBlock(g,{class:"_fd-type-select",trigger:"click",size:"default",disabled:!e.menus.length},{overlay:n.withCtx(()=>[n.createVNode(u,{class:"_fd-type-select-pop"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.menus,y=>(n.openBlock(),n.createBlock(c,{key:y.name,onClick:C=>e.handleCommand(y)},{default:n.withCtx(()=>[n.createElementVNode("div",null,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",y.icon||"icon-input"])},null,2),n.createTextVNode(n.toDisplayString(e.t("com."+y.name+".name")||y.label),1)])]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{color:"success"},{default:n.withCtx(()=>[e.activeRule?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.t("com."+e.activeRule._menu.name+".name")||e.activeRule._menu.label)+" ",1),e.menus.length?(n.openBlock(),n.createElementBlock("i",i2)):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(e.t("com."+e.customForm.config.name+".name")||e.customForm.config.label||e.customForm.config.name),1)],64))]),_:1})]),_:1},8,["disabled"])}const a2=Ne(o2,[["render",r2]]),b3="",l2=n.defineComponent({name:"FieldList",inject:["designer"],props:{field:Array},components:{fcDraggable:Ci},methods:{nodeClick(e){if(e.rule||e.item){const t={...e};this.designer.setupState.clickField(t)}}}}),s2=["onClick"],d2={class:"_fc-field-node-label"},c2={key:0,class:"fc-icon icon-input"},u2={key:1,class:"fc-icon icon-folder"},f2=["onClick"],p2={class:"_fc-field-node-label"},h2={key:0,class:"fc-icon icon-input"},m2={key:1,class:"fc-icon icon-folder"};function g2(e,t,i,r,o,s){const d=n.resolveComponent("fcDraggable"),c=n.resolveComponent("a-directory-tree");return n.openBlock(),n.createBlock(c,{ref:"treeRef",class:"_fc-field-tree","tree-data":e.field,selectable:!1,showIcon:!1},{title:n.withCtx(u=>[u.data.rule||u.data.item?(n.openBlock(),n.createBlock(d,{key:0,group:{name:"default",pull:"clone",put:!1},sort:!1,list:[{...u.data,_field:!0}],itemKey:"label",class:"_fc-field-drag"},{item:n.withCtx(()=>[n.createElementVNode("div",{class:"_fc-field-node",onClick:g=>e.nodeClick(u.data)},[n.createElementVNode("div",d2,[u.isLeaf?(n.openBlock(),n.createElementBlock("i",c2)):(n.openBlock(),n.createElementBlock("i",u2)),n.createElementVNode("span",null,n.toDisplayString(u.data.label),1)])],8,s2)]),_:2},1032,["list"])):(n.openBlock(),n.createElementBlock("div",{key:1,class:"_fc-field-node",onClick:g=>e.nodeClick(u.data)},[n.createElementVNode("div",p2,[u.isLeaf?(n.openBlock(),n.createElementBlock("i",h2)):(n.openBlock(),n.createElementBlock("i",m2)),n.createElementVNode("span",null,n.toDisplayString(u.data.label),1)])],8,f2))]),_:1},8,["tree-data"])}const v2=Ne(l2,[["render",g2]]),y2=["props"],b2=["class","style","directives"],C2=["on","hook"],Sm=(e,t={},i={})=>{const r=[...y2,...i.normal||[]],o=[...b2,...i.array||[]],s=[...C2,...i.functional||[]],d=i.props||[];return e.reduce((c,u)=>{for(const g in u)if(c[g])if(d.indexOf(g)>-1)c[g]=Sm([u[g]],c[g]);else if(r.indexOf(g)>-1)c[g]={...c[g],...u[g]};else if(o.indexOf(g)>-1){const y=c[g]instanceof Array?c[g]:[c[g]],C=u[g]instanceof Array?u[g]:[u[g]];c[g]=[...y,...C]}else if(s.indexOf(g)>-1)for(const y in u[g])if(c[g][y]){const C=c[g][y]instanceof Array?c[g][y]:[c[g][y]],w=u[g][y]instanceof Array?u[g][y]:[u[g][y]];c[g][y]=[...C,...w]}else c[g][y]=u[g][y];else if(g==="hook")for(let y in u[g])c[g][y]?c[g][y]=_2(c[g][y],u[g][y]):c[g][y]=u[g][y];else c[g]=u[g];else r.indexOf(g)>-1||s.indexOf(g)>-1||d.indexOf(g)>-1?c[g]={...u[g]}:o.indexOf(g)>-1?c[g]=u[g]instanceof Array?[...u[g]]:typeof u[g]=="object"?{...u[g]}:u[g]:c[g]=u[g];return c},t)},_2=(e,t)=>function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)},C3="",w2=n.defineComponent({name:"FormList",inject:["designer"],props:{list:Array},data(){return{loading:!1,timerId:void 0}},methods:{loadConfig(e,t){this.designer.setupState.openInputData(!1),this.designer.setupState.pageData=[],this.designer.setupState.setOptions(e.options),this.designer.setupState.setRule(e.rule),this.designer.emit("switchForm",t)},starLoad(){this.loading||(this.designer.setupState.dragLoading=!0,this.loading=!0,this.timerId=setTimeout(()=>{this.endLoad()},5e3))},endLoad(){this.loading=!1,this.designer.setupState.dragLoading=!1,this.timerId&&clearTimeout(this.timerId),this.timerId=void 0},nodeClick(e){if(this.loading)return;let t={rule:e.rule||[],options:e.options||{}};if(e.load){const i=e.load(e);if(i&&i.then){this.starLoad(),i.then(r=>{r.rule&&(t.rule=r.rule),r.options&&(t.options=r.options),this.loadConfig(t,e),this.endLoad()}).catch(r=>{this.endLoad()});return}else i&&(i.rule&&(t.rule=i.rule),i.options&&(t.options=i.options))}this.loadConfig(t,e)}}}),E2={class:"_fc-form-node"},A2={class:"_fc-form-node-label"},S2={key:0,class:"fc-icon icon-form"},x2={key:1,class:"fc-icon icon-folder"},k2={key:0,class:"_fc-form-node-info"},N2=["onClick"];function T2(e,t,i,r,o,s){const d=n.resolveComponent("a-directory-tree");return n.openBlock(),n.createBlock(d,{ref:"treeRef",class:"_fc-form-tree","tree-data":e.list,selectable:!1,showIcon:!1},{title:n.withCtx(c=>[n.createElementVNode("div",E2,[n.createElementVNode("div",A2,[c.isLeaf?(n.openBlock(),n.createElementBlock("i",S2)):(n.openBlock(),n.createElementBlock("i",x2)),n.createElementVNode("div",null,[n.createElementVNode("div",null,n.toDisplayString(c.label),1),c.info?(n.openBlock(),n.createElementBlock("span",k2,n.toDisplayString(c.info),1)):n.createCommentVNode("",!0)])]),c.isLeaf&&!c.disabled?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-edit",onClick:n.withModifiers(u=>e.nodeClick(c.data),["stop"])},null,8,N2)):n.createCommentVNode("",!0)])]),_:1},8,["tree-data"])}const O2=Ne(w2,[["render",T2]]),_3="",D2=n.defineComponent({name:"GlobalEventConfig",emits:["update:modelValue"],props:{modelValue:Object,eventName:Array},components:{Warning:Zn,FnEditor:po},inject:["designer"],data(){return{visible:!1,activeIdx:"",event:{},cus:!1,cusValue:"",handle:""}},computed:{t(){return this.designer.setupState.t},eventNum(){return Object.keys(this.modelValue||{}).length},fnArgs(){return[bn(this.t)]}},watch:{visible(e){e&&(this.activeIdx="",this.event=et(this.modelValue||{}))}},methods:{open(){this.visible=!0},active(e){this.activeIdx!==e&&(this.handle=this.event[e].handle||"",this.activeIdx=e)},addCus(){const e=this.cusValue&&this.cusValue.trim();if(e){const t="event_"+Ye();this.event[t]={label:e,handle:""},this.active(t),this.closeCus()}},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(){this.cus=!0},save(){return this.$refs.data.save()?(this.event[this.activeIdx].handle=this.handle,this.activeIdx="",!0):!1},rm(e){delete this.event[e],e===this.activeIdx&&(this.activeIdx="")},close(){this.activeIdx=""},submit(){this.activeIdx&&!this.save()||(this.$emit("update:modelValue",{...this.event}),this.visible=!1)}},beforeCreate(){window.$inject={$f:{},rule:[],self:{},option:{},inject:{},args:[]}}}),B2={class:"_fd-gec"},$2={class:"_fd-menu"},V2=["onClick"],R2={class:"_fd-gec-title"},I2={class:"_fd-gec-method"},F2={key:0,class:"_fd-label"},P2=["onClick"],M2={key:0,class:"_fd-menu-item",style:{"padding-left":"0"}},L2={class:"_fd-gec-title"};function j2(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),u=n.resolveComponent("Warning"),g=n.resolveComponent("a-layout-header"),y=n.resolveComponent("a-input"),C=n.resolveComponent("a-layout-content"),w=n.resolveComponent("a-layout"),A=n.resolveComponent("a-layout-sider"),E=n.resolveComponent("FnEditor"),_=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",B2,[n.createVNode(c,{color:"orange",count:e.eventNum},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:e.open},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.title")),1)]),_:1},8,["onClick"])]),_:1},8,["count"]),n.createVNode(_,{class:"_fd-gec-dialog _fd-config-dialog",open:e.visible,"onUpdate:open":t[5]||(t[5]=v=>e.visible=v),centered:"",maskClosable:!1,destroyOnClose:!0,width:"980px"},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.globalEvent")),1),n.createVNode(u,{tooltip:e.t("warning.globalEvent")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[4]||(t[4]=v=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.submit,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gec-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(A,{width:"300px"},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gec-l"},{default:n.withCtx(()=>[n.createVNode(g,{class:"_fd-gec-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{type:"link",size:"middle",onClick:e.cusEvent},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.create")),1)]),_:1},8,["onClick"])]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createElementVNode("div",$2,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.event,(v,m)=>(n.openBlock(),n.createElementBlock("div",{key:m,class:n.normalizeClass(["_fd-menu-item",{"is-active":m===e.activeIdx}]),onClick:n.withModifiers(b=>e.active(m),["stop"])},[n.createElementVNode("div",R2,[n.createElementVNode("div",I2,[n.createElementVNode("span",null,n.toDisplayString(m),1),v.label?(n.openBlock(),n.createElementBlock("span",F2,n.toDisplayString(v.label),1)):n.createCommentVNode("",!0)]),v.deletable!==!1?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-delete",onClick:n.withModifiers(b=>e.rm(m),["stop"])},null,8,P2)):n.createCommentVNode("",!0)])],10,V2))),128)),e.cus?(n.openBlock(),n.createElementBlock("div",M2,[n.createElementVNode("div",L2,[n.createVNode(y,{type:"text",value:e.cusValue,"onUpdate:value":t[0]||(t[0]=v=>e.cusValue=v),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("event.placeholder")},null,8,["value","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[1]||(t[1]=n.withModifiers((...v)=>e.addCus&&e.addCus(...v),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[2]||(t[2]=n.withModifiers((...v)=>e.closeCus&&e.closeCus(...v),["stop"]))})])])])):n.createCommentVNode("",!0)])]),_:1})]),_:1})]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gec-r"},{default:n.withCtx(()=>[e.activeIdx?(n.openBlock(),n.createBlock(g,{key:0,class:"_fd-gec-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save,style:{"margin-left":"8px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeIdx?(n.openBlock(),n.createBlock(C,{key:e.activeIdx},{default:n.withCtx(()=>[n.createVNode(E,{modelValue:e.handle,"onUpdate:modelValue":t[3]||(t[3]=v=>e.handle=v),name:"handle",args:e.fnArgs,ref:"data"},null,8,["modelValue","args"])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])])}const xm=Ne(D2,[["render",j2]]),w3="",z2=n.defineComponent({name:"StructEditor",props:{modelValue:[Object,Array,Function],format:Boolean,defaultValue:{require:!1}},emits:["blur","focus","update:modelValue"],inject:["designer"],data(){return{editor:null,visible:!1,err:!1,oldVal:null}},computed:{t(){return this.designer.setupState.t}},watch:{modelValue(e){if(this.editor){const t=e?this.toJson(e):"";this.oldVal=t;const r=this.editor.getScrollInfo().top;this.editor.setValue(t),this.editor.scrollTo(0,r)}}},mounted(){this.$nextTick(()=>{this.load()})},methods:{toJson(e){return this.format?ze.toJson(e,2):fn(e)},load(){const e=this.modelValue?this.toJson(this.modelValue):"";this.oldVal=e,this.$nextTick(()=>{this.editor=n.markRaw(fo(this.$refs.editor,{lineNumbers:!0,mode:"javascript",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:e?Ii.js(e,{indent_size:"2",indent_char:" ",max_preserve_newlines:"5",indent_scripts:"separate"}):""})),this.editor.on("blur",()=>{this.$emit("blur")}),this.editor.on("focus",()=>{this.$emit("focus")})})},save(){const e=(this.editor.getValue()||"").trim();let t;try{t=new Function("return "+e)()}catch(i){return console.error(i),qt(this.t("struct.errorMsg")),!1}return this.validate&&this.validate(t)===!1?(this.err=!0,!1):(this.visible=!1,this.toJson(t)!==this.oldVal&&this.$emit("update:modelValue",t),!0)}}}),H2={class:"_fd-struct-editor"},U2={ref:"editor"};function W2(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",H2,[n.createElementVNode("div",U2,null,512)])}const zc=Ne(z2,[["render",W2]]),E3="",G2=e=>[{type:"input",field:"action",title:e("fetch.action"),value:"",validate:[{required:!0,message:e("fetch.actionRequired"),trigger:"blur"}],inject:!0,on:{blur({self:t},i){t._start=i.target.selectionStart}},children:[{type:"VariableConfig",slot:"suffix",props:{popover:!0},inject:!0,on:{confirm({api:t},i){const r=t.getRule("action");r.value=r.value.substring(0,r._start)+i+r.value.substring(r._start)}}}]},{type:"radio",field:"method",title:e("fetch.method"),value:"GET",options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"}],$required:!0},{type:"radio",field:"dataType",title:e("fetch.dataType"),warning:e("warning.fetchDataType"),value:"json",options:[{label:"JSON",value:"json"},{label:"FormData",value:"formData"}],$required:!0},{type:"FetchTable",field:"headers",title:e("fetch.headers"),value:{}},{type:"FetchTable",field:"query",title:e("fetch.query"),warning:e("warning.fetchQuery"),value:{}},{type:"FetchTable",field:"data",title:e("fetch.data"),warning:e("warning.fetchData"),value:{}}],K2=n.defineComponent({name:"GlobalFetchConfig",emits:["update:modelValue"],props:{modelValue:Object},components:{Warning:Zn,VariableConfig:Tr,DragForm:ze.$form(),FnEditor:po,StructEditor:zc},inject:["designer"],data(){return{visible:!1,activeIdx:"",list:{},cus:!1,cusValue:"",form:{api:{},formData:{},rule:[],options:{form:{labelWidth:"90px",size:"small"},submitBtn:!1,resetBtn:!1}}}},computed:{t(){return this.designer.setupState.t},types(){return{fetch:this.t("fetch.remote"),static:this.t("fetch.static")}},dataNum(){return Object.keys(this.modelValue||{}).length}},watch:{visible(e){e&&(this.list=et(this.modelValue||{}),this.activeIdx="")}},methods:{open(){this.visible=!0},active(e){if(this.activeIdx!==e){const t=this.list[e];this.form.rule=t.type==="static"?[]:G2(this.t),this.form.formData={...t},this.form.label=t.label,this.form.type=t.type,this.form.data=t.data,this.form.dataType=t.dataType,this.form.parse=t.parse||"",this.form.onError=t.onError||"",this.activeIdx=e}},addCus(){const e=this.cusValue&&this.cusValue.trim();if(e){const t="data_"+Ye();this.list[t]={label:e,type:this.cus,data:[]},this.active(t),this.closeCus()}},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(e){this.cus=e},saveData(){!this.$refs.data.save()||(this.list[this.activeIdx].data=this.form.data||[],this.activeIdx="")},save(){if(this.list[this.activeIdx].type==="static")return this.saveData();this.form.api.validate().then(()=>{const e={...this.form.formData};this.$refs.parse&&!this.$refs.parse.save()||this.$refs.error&&!this.$refs.error.save()||(e.parse=this.form.parse,e.onError=this.form.onError,e.label=this.form.label,e.type=this.form.type,this.list[this.activeIdx]=e,this.activeIdx="")}).catch(e=>{console.error(e),qt(e.errorFields[0].errors[0])})},rm(e){delete this.list[e],e===this.activeIdx&&(this.activeIdx="")},close(){this.activeIdx=""},submit(){if(this.activeIdx)return qt(this.t("event.saveMsg"));this.$emit("update:modelValue",{...this.list}),this.visible=!1}}}),Y2={class:"_fd-gfc"},Q2={class:"_fd-menu"},X2=["onClick"],J2={class:"_fd-gfc-title"},Z2={class:"_fd-gfc-method"},q2={key:0,class:"_fd-label"},eO=["onClick"],tO={key:0,class:"_fd-menu-item",style:{"padding-left":"0"}},nO={class:"_fd-gfc-title"},oO={class:"_fd-gfc-info"};function iO(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),u=n.resolveComponent("Warning"),g=n.resolveComponent("a-menu-item"),y=n.resolveComponent("a-menu"),C=n.resolveComponent("a-dropdown"),w=n.resolveComponent("a-layout-header"),A=n.resolveComponent("a-input"),E=n.resolveComponent("a-layout-content"),_=n.resolveComponent("a-layout"),v=n.resolveComponent("a-layout-sider"),m=n.resolveComponent("DragForm"),b=n.resolveComponent("a-tab-pane"),S=n.resolveComponent("FnEditor"),x=n.resolveComponent("a-tabs"),O=n.resolveComponent("StructEditor"),D=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",Y2,[n.createVNode(c,{color:"orange",count:e.dataNum},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:e.open},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.title")),1)]),_:1},8,["onClick"])]),_:1},8,["count"]),n.createVNode(D,{class:"_fd-gfc-dialog _fd-config-dialog",open:e.visible,"onUpdate:open":t[9]||(t[9]=R=>e.visible=R),centered:"",maskClosable:!1,destroyOnClose:!0,width:"980px"},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.globalFetch"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.globalFetch")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[8]||(t[8]=R=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.submit,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(_,{class:"_fd-gfc-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(v,{width:"300px"},{default:n.withCtx(()=>[n.createVNode(_,{class:"_fd-gfc-l"},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gfc-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(C,{trigger:"click",size:"default"},{overlay:n.withCtx(()=>[n.createVNode(y,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.types,(R,I)=>(n.openBlock(),n.createBlock(g,{key:I,onClick:z=>e.cusEvent(I)},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(R),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{type:"link",size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.create")),1),t[10]||(t[10]=n.createElementVNode("i",{class:"fc-icon icon-down",style:{"font-size":"14px"}},null,-1))]),_:1})]),_:1})]),_:1}),n.createVNode(E,null,{default:n.withCtx(()=>[n.createElementVNode("div",Q2,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.list,(R,I)=>(n.openBlock(),n.createElementBlock("div",{key:I,class:n.normalizeClass(["_fd-menu-item",{"is-active":I===e.activeIdx}]),onClick:n.withModifiers(z=>e.active(I),["stop"])},[n.createElementVNode("div",J2,[n.createElementVNode("div",Z2,[n.createElementVNode("span",null,n.toDisplayString(I),1),R.label?(n.openBlock(),n.createElementBlock("span",q2,n.toDisplayString(R.label),1)):n.createCommentVNode("",!0)]),R.deletable!==!1?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-delete",onClick:n.withModifiers(z=>e.rm(I),["stop"])},null,8,eO)):n.createCommentVNode("",!0)])],10,X2))),128)),e.cus?(n.openBlock(),n.createElementBlock("div",tO,[n.createElementVNode("div",nO,[n.createVNode(A,{type:"text",value:e.cusValue,"onUpdate:value":t[0]||(t[0]=R=>e.cusValue=R),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("fetch.placeholder")},null,8,["value","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[1]||(t[1]=n.withModifiers((...R)=>e.addCus&&e.addCus(...R),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[2]||(t[2]=n.withModifiers((...R)=>e.closeCus&&e.closeCus(...R),["stop"]))})])])])):n.createCommentVNode("",!0)])]),_:1})]),_:1})]),_:1}),n.createVNode(E,null,{default:n.withCtx(()=>[n.createVNode(_,{class:"_fd-gfc-r"},{default:n.withCtx(()=>[e.activeIdx?(n.openBlock(),n.createBlock(w,{key:0,class:"_fd-gfc-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save,style:{"margin-left":"8px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeIdx?(n.openBlock(),n.createBlock(E,{key:e.activeIdx},{default:n.withCtx(()=>[e.list[e.activeIdx].type==="fetch"?(n.openBlock(),n.createBlock(x,{key:0,class:"_fc-tabs"},{default:n.withCtx(()=>[n.createVNode(b,{tab:e.t("fetch.config"),key:"first",style:{"padding-right":"15px"}},{default:n.withCtx(()=>[n.createElementVNode("div",oO,n.toDisplayString(e.t("fetch.info")),1),n.createVNode(m,{api:e.form.api,"onUpdate:api":t[3]||(t[3]=R=>e.form.api=R),modelValue:e.form.formData,"onUpdate:modelValue":t[4]||(t[4]=R=>e.form.formData=R),rule:e.form.rule,option:e.form.options},{title:n.withCtx(R=>[R.rule.warning?(n.openBlock(),n.createBlock(u,{key:0,tooltip:R.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(R.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(R.rule.title),1)],64))]),_:1},8,["api","modelValue","rule","option"])]),_:1},8,["tab"]),n.createVNode(b,{lazy:"",key:"second"},{tab:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.parse"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.fetchParse")},null,8,["tooltip"])]),default:n.withCtx(()=>[n.createVNode(S,{style:{height:"100%"},modelValue:e.form.parse,"onUpdate:modelValue":t[5]||(t[5]=R=>e.form.parse=R),name:"parse",args:[{name:"res",info:e.t("fetch.response")},"rule","api"],ref:"parse"},null,8,["modelValue","args"])]),_:1}),n.createVNode(b,{lazy:"",tab:e.t("fetch.onError"),key:"third"},{default:n.withCtx(()=>[n.createVNode(S,{style:{height:"100%"},modelValue:e.form.onError,"onUpdate:modelValue":t[6]||(t[6]=R=>e.form.onError=R),name:"onError",args:["e"],ref:"error"},null,8,["modelValue"])]),_:1},8,["tab"])]),_:1})):(n.openBlock(),n.createBlock(O,{key:1,modelValue:e.form.data,"onUpdate:modelValue":t[7]||(t[7]=R=>e.form.data=R),ref:"data"},null,8,["modelValue"]))]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])])}const km=Ne(K2,[["render",iO]]),A3="",rO=n.defineComponent({name:"SizeInput",inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String,size:String,unit:{type:Array,default:()=>["auto","px","%","vh","vw","em","rem"]},defaultUnit:{type:String,default:"px"}},watch:{modelValue(){this.parseValue()}},data(){return{idx:1,num:0,oldValue:this.modelValue||""}},methods:{parseValue(){this.modelValue!=="auto"?(this.idx=Math.max(this.unit.indexOf(this.defaultUnit),0),this.unit.forEach((e,t)=>{(this.modelValue||"").indexOf(e)>-1&&(this.idx=t)}),this.num=Gn(this.modelValue)?null:parseFloat(this.modelValue||0)):(this.idx=0,this.num=0)},submit(){this.oldValue=Gn(this.num)?"":""+this.num+this.unit[this.idx],this.$emit("update:modelValue",this.oldValue),this.$emit("change",this.oldValue)},changeType(e){if(e!==void 0){if(this.idx===e)return;this.idx=e}else this.idx++,this.idx>4&&(this.idx=0);this.unit[this.idx]==="auto"?(this.oldValue="auto",this.$emit("update:modelValue","auto"),this.$emit("change","auto")):this.submit()}},created(){this.parseValue()}}),aO={class:"_fd-size-input"};function lO(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-inputNumber"),u=n.resolveComponent("a-menu-item"),g=n.resolveComponent("a-menu"),y=n.resolveComponent("a-dropdown");return n.openBlock(),n.createElementBlock("div",aO,[e.unit[e.idx]==="auto"?(n.openBlock(),n.createBlock(d,{key:0,size:e.size,style:{width:"150px"},onClick:t[0]||(t[0]=C=>e.changeType())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.unit[e.idx]),1)]),_:1},8,["size"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createVNode(c,{size:e.size,value:e.num,"onUpdate:value":t[1]||(t[1]=C=>e.num=C),onChange:e.submit},null,8,["size","value","onChange"]),n.createVNode(y,{trigger:"click",size:"small"},{overlay:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.unit,(C,w)=>(n.openBlock(),n.createBlock(u,{key:C,onClick:A=>e.changeType(w)},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(C),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{size:e.size},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.unit[e.idx]),1)]),_:1},8,["size"])]),_:1})],64))])}const Vr=Ne(rO,[["render",lO]]),S3="",sO=n.defineComponent({name:"BoxSizeInput",components:{SizeInput:Vr,ConfigItem:Sn},props:{modelValue:{type:Object,default:()=>({})}},inject:["designer"],emits:["update:modelValue","change"],data(){return{overflow:[{value:"visible",icon:"icon-eye"},{value:"hidden",icon:"icon-eye-close"},{value:"scroll",icon:"icon-scroll"},{value:"auto",text:"Auto"}],keys:["width","height","minWidth","minHeight","maxWidth","maxHeight"],boxStyle:{width:"",minWidth:"",maxWidth:"",height:"",minHeight:"",maxHeight:"",overflow:""}}},watch:{modelValue(){this.tidyValue()}},computed:{t(){return this.designer.setupState.t}},methods:{tidyValue(){this.boxStyle={width:"",minWidth:"",maxWidth:"",height:"",minHeight:"",maxHeight:"",overflow:""},this.modelValue&&Object.keys(this.boxStyle).forEach(e=>{this.modelValue[e]&&(this.boxStyle[e]=this.modelValue[e])})},onInput(){const e=Object.keys(this.boxStyle).reduce((t,i)=>(this.boxStyle[i]!==""&&(t[i]=this.boxStyle[i]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)},changeOverflow(e){this.boxStyle.overflow=this.boxStyle.overflow===e?"":e,this.onInput()},change(e,t){this.boxStyle[e]=t.target.value}},created(){this.tidyValue()}}),dO={class:"_fd-box-size-input"},cO={key:0,style:{"font-size":"12px","line-height":"16px"}};function uO(e,t,i,r,o,s){const d=n.resolveComponent("SizeInput"),c=n.resolveComponent("a-form-item"),u=n.resolveComponent("a-radio-button"),g=n.resolveComponent("a-tooltip"),y=n.resolveComponent("a-radio-group"),C=n.resolveComponent("a-form"),w=n.resolveComponent("a-form-item-rest"),A=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",dO,[n.createVNode(A,{label:e.t("props.size"),info:Object.keys(e.modelValue).length>0?e.t("struct.configured"):""},{append:n.withCtx(()=>[n.createVNode(w,null,{default:n.withCtx(()=>[n.createVNode(C,{layout:"vertical",size:"small"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.keys,E=>(n.openBlock(),n.createBlock(c,{label:e.t("style."+E),key:E},{default:n.withCtx(()=>[n.createVNode(d,{modelValue:e.boxStyle[E],"onUpdate:modelValue":_=>e.boxStyle[E]=_,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["label"]))),128)),n.createVNode(c,{label:e.t("style.overflow.name"),style:{"grid-column":"span 2"}},{default:n.withCtx(()=>[n.createVNode(y,{value:e.boxStyle.overflow},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.overflow,E=>(n.openBlock(),n.createBlock(g,{title:e.t("style.overflow."+E.value),placement:"top",key:E.value},{default:n.withCtx(()=>[n.createVNode(u,{label:E.value,value:E.value,onClick:_=>e.changeOverflow(E.value)},{default:n.withCtx(()=>[E.text?(n.openBlock(),n.createElementBlock("span",cO,"Auto ")):(n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(["fc-icon",E.icon])},null,2))]),_:2},1032,["label","value","onClick"])]),_:2},1032,["title"]))),128))]),_:1},8,["value"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["label","info"])])}const fO=Ne(sO,[["render",uO]]),x3="",pO=n.defineComponent({name:"ColorInput",inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String},watch:{modelValue(){this.value=this.modelValue||""},value(e){this.$emit("update:modelValue",e),this.$emit("change",e)}},data(){return{value:this.modelValue||""}},methods:{},created(){}}),hO={class:"_fd-color-input"};function mO(e,t,i,r,o,s){const d=n.resolveComponent("a-input");return n.openBlock(),n.createElementBlock("div",hO,[n.createVNode(d,{type:"text",allowClear:"",value:e.value,"onUpdate:value":t[1]||(t[1]=c=>e.value=c)},{addonAfter:n.withCtx(()=>[n.createVNode(d,{type:"color",value:e.value,"onUpdate:value":t[0]||(t[0]=c=>e.value=c)},null,8,["value"])]),_:1},8,["value"])])}const Fi=Ne(pO,[["render",mO]]),k3="",gO=n.defineComponent({name:"BorderInput",components:{ColorInput:Fi,SizeInput:Vr,ConfigItem:Sn},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{type:Object,default:()=>({})}},watch:{modelValue(){this.tidyValue(),this.initCur()},active(){this.initCur()}},computed:{borderStyleStr(){let e="";return Object.keys(this.borderStyle).forEach(t=>{this.borderStyle[t]!==""&&(e+=ll(t)+": "+this.borderStyle[t]+";")},{}),e}},data(){const e=this.designer.setupState.t;return{t:e,active:"",borderStyle:{},curStyle:"",curColor:"",curWidth:"",lineType:["solid","dashed","dotted","double"].map(t=>({value:t,label:e("style."+t)})),position:["Top","Left","Bottom","Right"],type:["Style","Color","Width"],unwatch:null}},methods:{tidyValue(){const e=[];this.borderStyle={},["",...this.position].forEach(t=>{this.type.forEach(i=>{e.push("border"+t+i)})}),e.forEach(t=>{this.borderStyle[t]=this.modelValue[t]||""})},onInput(){const e=Object.keys(this.borderStyle).reduce((t,i)=>(this.borderStyle[i]!==""&&(t[i]=this.borderStyle[i]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)},pushCur(){this.borderStyle["border"+this.active+"Style"]=this.curStyle||"",this.borderStyle["border"+this.active+"Color"]=this.curColor||"",this.borderStyle["border"+this.active+"Width"]=this.curWidth||"",this.onInput()},initCur(){this.unwatch&&this.unwatch(),this.curStyle=this.borderStyle["border"+this.active+"Style"]||"",this.curColor=this.borderStyle["border"+this.active+"Color"]||"",this.curWidth=this.borderStyle["border"+this.active+"Width"]||"",this.unwatch=this.$watch(()=>[this.curStyle,this.curColor,this.curWidth],()=>{this.pushCur()})}},created(){this.tidyValue(),this.initCur()}}),vO={class:"_fd-border-input"},yO={class:"_fd-bi-left"},bO={class:"_fd-bil-row"},CO={class:"_fd-bil-row"},_O={class:"_fd-bil-row"},wO={class:"_fd-bi-right"},EO={class:"_fd-bi-opt"};function AO(e,t,i,r,o,s){const d=n.resolveComponent("a-select-option"),c=n.resolveComponent("a-select"),u=n.resolveComponent("SizeInput"),g=n.resolveComponent("ColorInput"),y=n.resolveComponent("ConfigItem");return n.openBlock(),n.createBlock(y,{label:e.t("style.border")},{append:n.withCtx(()=>[n.createElementVNode("div",vO,[n.createElementVNode("div",yO,[n.createElementVNode("div",bO,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active==="Top"?"active":""]),onClick:t[0]||(t[0]=C=>e.active="Top")},"\u2533 ",2)]),n.createElementVNode("div",CO,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active==="Left"?"active":""]),onClick:t[1]||(t[1]=C=>e.active="Left")},"\u2523 ",2),n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active===""?"active":""]),onClick:t[2]||(t[2]=C=>e.active="")},"\u254B",2),n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active==="Right"?"active":""]),onClick:t[3]||(t[3]=C=>e.active="Right")}," \u252B ",2)]),n.createElementVNode("div",_O,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active==="Bottom"?"active":""]),onClick:t[4]||(t[4]=C=>e.active="Bottom")},"\u253B ",2)])]),n.createElementVNode("div",wO,[n.createVNode(c,{value:e.curStyle,"onUpdate:value":t[5]||(t[5]=C=>e.curStyle=C),allowClear:""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.lineType,C=>(n.openBlock(),n.createBlock(d,{key:C.value,value:C.value},{default:n.withCtx(()=>[n.createElementVNode("div",EO,[n.createElementVNode("div",{class:n.normalizeClass(["_line",C.value])},null,2)])]),_:2},1032,["value"]))),128))]),_:1},8,["value"]),n.createVNode(u,{modelValue:e.curWidth,"onUpdate:modelValue":t[6]||(t[6]=C=>e.curWidth=C)},null,8,["modelValue"]),n.createVNode(g,{modelValue:e.curColor,"onUpdate:modelValue":t[7]||(t[7]=C=>e.curColor=C)},null,8,["modelValue"])])])]),default:n.withCtx(()=>[n.createElementVNode("div",{class:"line-box",style:n.normalizeStyle(e.borderStyleStr)},t[8]||(t[8]=[n.createElementVNode("div",{class:"line-box-con"},null,-1)]),4)]),_:1},8,["label"])}const SO=Ne(gO,[["render",AO]]),N3="",xO=n.defineComponent({name:"RadiusInput",components:{ConfigItem:Sn,ColorInput:Fi,SizeInput:Vr},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String},watch:{modelValue(e){e!==this.oldValue&&this.tidyValue()}},computed:{t(){return this.designer.setupState.t}},data(){return{visit:!1,active:"",style:{com:"",left:"",right:"",top:"",bottom:""},unit:["px","%"],oldValue:""}},methods:{batch(){this.style.left=this.style.com,this.style.right=this.style.com,this.style.top=this.style.com,this.style.bottom=this.style.com,this.onInput()},tidyValue(){if(this.style={com:"",left:"",right:"",top:"",bottom:""},!this.modelValue)return;let e=(this.modelValue||"").split(" ").filter(t=>t!=="");e.length===1?e=[e[0],e[0],e[0],e[0]]:e.length===2?e=[e[0],e[1],e[0],e[1]]:e.length===3&&(e=[e[0],e[1],e[2],e[1]]),this.style.left=e[0],this.style.top=e[1],this.style.right=e[2],this.style.bottom=e[3],this.updateCom()},updateCom(){let e=`${this.style.left||"0px"} ${this.style.top||"0px"} ${this.style.right||"0px"} ${this.style.bottom||"0px"}`;this.style.com=e.replaceAll(this.style.left,"").trim()===""?this.style.left:""},onInput(){let e=`${this.style.left||"0px"} ${this.style.top||"0px"} ${this.style.right||"0px"} ${this.style.bottom||"0px"}`;`${this.style.left}${this.style.top}${this.style.right}${this.style.bottom}`.trim()===""?e="":this.updateCom(),this.oldValue=e,this.$emit("update:modelValue",e),this.$emit("change",e)}},created(){this.tidyValue()}}),kO={class:"_fd-radius-input"},NO={class:"_fd-radius-con"},TO={class:"_fd-radius-item"},OO={class:"_fd-radius-item"},DO={class:"_fd-radius-item"},BO={class:"_fd-radius-item"};function $O(e,t,i,r,o,s){const d=n.resolveComponent("SizeInput"),c=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",kO,[n.createVNode(c,{label:e.t("style.borderRadius")},{append:n.withCtx(()=>[n.createElementVNode("div",NO,[n.createElementVNode("div",TO,[t[5]||(t[5]=n.createElementVNode("div",{class:"_fd-radius-icon",style:{transform:"rotate(180deg)"}},[n.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),n.createVNode(d,{unit:e.unit,modelValue:e.style.left,"onUpdate:modelValue":t[1]||(t[1]=u=>e.style.left=u),onChange:e.onInput},null,8,["unit","modelValue","onChange"])]),n.createElementVNode("div",OO,[t[6]||(t[6]=n.createElementVNode("div",{class:"_fd-radius-icon",style:{transform:"rotate(-90deg)"}},[n.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),n.createVNode(d,{unit:e.unit,modelValue:e.style.top,"onUpdate:modelValue":t[2]||(t[2]=u=>e.style.top=u),onChange:e.onInput},null,8,["unit","modelValue","onChange"])]),n.createElementVNode("div",DO,[t[7]||(t[7]=n.createElementVNode("div",{class:"_fd-radius-icon",style:{transform:"rotate(90deg)"}},[n.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),n.createVNode(d,{unit:e.unit,modelValue:e.style.bottom,"onUpdate:modelValue":t[3]||(t[3]=u=>e.style.bottom=u),onChange:e.onInput},null,8,["unit","modelValue","onChange"])]),n.createElementVNode("div",BO,[t[8]||(t[8]=n.createElementVNode("div",{class:"_fd-radius-icon"},[n.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),n.createVNode(d,{unit:e.unit,modelValue:e.style.right,"onUpdate:modelValue":t[4]||(t[4]=u=>e.style.right=u),onChange:e.onInput},null,8,["unit","modelValue","onChange"])])])]),default:n.withCtx(()=>[n.createVNode(d,{unit:e.unit,modelValue:e.style.com,"onUpdate:modelValue":t[0]||(t[0]=u=>e.style.com=u),onChange:e.batch},null,8,["unit","modelValue","onChange"])]),_:1},8,["label"])])}const VO=Ne(xO,[["render",$O]]),T3="",RO=n.defineComponent({name:"BorderInput",components:{ColorInput:Fi,SizeInput:Vr,ConfigItem:Sn},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{type:Object,default:()=>({})}},watch:{modelValue(){this.tidyValue()}},computed:{borderStyleStr(){let e="";return Object.keys(this.borderStyle).forEach(t=>{this.borderStyle[t]!==""&&(e+=ll(t)+": "+this.borderStyle[t]+";")},{}),e},alignType(){return["left","center","right"].map(e=>({label:this.t("props."+e),value:e}))},decorationType(){return["underline","line-through","overline"].map(e=>({label:this.t("style.decoration."+e),value:e}))},weightType(){return[300,400,500,700].map(e=>({label:this.t("style.weight."+e),value:e}))}},data(){return{t:this.designer.setupState.t,fontStyle:{fontSize:"",fontWeight:"",fontStyle:"",textDecoration:"",textAlign:"",lineHeight:"",letterSpacing:""}}},methods:{tidyValue(){Object.keys(this.fontStyle).forEach(e=>{this.fontStyle[e]=this.modelValue[e]||""})},onInput(){const e=Object.keys(this.fontStyle).reduce((t,i)=>(this.fontStyle[i]!==""&&(t[i]=this.fontStyle[i]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)}},created(){this.tidyValue()}}),IO={class:"_fd-font-input"};function FO(e,t,i,r,o,s){const d=n.resolveComponent("SizeInput"),c=n.resolveComponent("a-form-item"),u=n.resolveComponent("a-select-option"),g=n.resolveComponent("a-select"),y=n.resolveComponent("a-form"),C=n.resolveComponent("ConfigItem");return n.openBlock(),n.createBlock(C,{label:e.t("style.font.name")},{append:n.withCtx(()=>[n.createElementVNode("div",IO,[n.createVNode(y,{size:"small",layout:"vertical"},{default:n.withCtx(()=>[n.createVNode(c,{label:e.t("style.font.size")},{default:n.withCtx(()=>[n.createVNode(d,{modelValue:e.fontStyle.fontSize,"onUpdate:modelValue":t[0]||(t[0]=w=>e.fontStyle.fontSize=w),size:"small",onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.weight.name")},{default:n.withCtx(()=>[n.createVNode(g,{value:e.fontStyle.fontWeight,"onUpdate:value":t[1]||(t[1]=w=>e.fontStyle.fontWeight=w),clearable:"",onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.weightType,w=>(n.openBlock(),n.createBlock(u,{key:w.value,value:w.value},{default:n.withCtx(()=>[n.createElementVNode("span",{style:n.normalizeStyle({fontWeight:w.value})},n.toDisplayString(w.label),5)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.decoration.name")},{default:n.withCtx(()=>[n.createVNode(g,{valuel:e.fontStyle.textDecoration,"onUpdate:valuel":t[2]||(t[2]=w=>e.fontStyle.textDecoration=w),clearable:"",onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.decorationType,w=>(n.openBlock(),n.createBlock(u,{key:w.value,value:w.value},{default:n.withCtx(()=>[n.createElementVNode("span",{style:n.normalizeStyle({textDecoration:w.value})},n.toDisplayString(w.label),5)]),_:2},1032,["value"]))),128))]),_:1},8,["valuel","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.font.align")},{default:n.withCtx(()=>[n.createVNode(g,{value:e.fontStyle.textAlign,"onUpdate:value":t[3]||(t[3]=w=>e.fontStyle.textAlign=w),clearable:"",onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.alignType,w=>(n.openBlock(),n.createBlock(u,{key:w.value,value:w.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(w.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.font.height")},{default:n.withCtx(()=>[n.createVNode(d,{modelValue:e.fontStyle.lineHeight,"onUpdate:modelValue":t[4]||(t[4]=w=>e.fontStyle.lineHeight=w),size:"small",onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.font.spacing")},{default:n.withCtx(()=>[n.createVNode(d,{modelValue:e.fontStyle.letterSpacing,"onUpdate:modelValue":t[5]||(t[5]=w=>e.fontStyle.letterSpacing=w),size:"small",onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"])]),_:1})])]),default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-fi-box",style:n.normalizeStyle(e.fontStyle)},n.toDisplayString(e.t("style.font.preview")),5)]),_:1},8,["label"])}const PO=Ne(RO,[["render",FO]]),O3="",MO=n.defineComponent({name:"DisplayInput",components:{ConfigItem:Sn},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:Object},watch:{modelValue(){this.tidyValue()}},computed:{t(){return this.designer.setupState.t}},data(){return{style:{},displayOptions:[{value:"block",icon:"block"},{value:"inline-block",icon:"inlineblock"},{value:"inline",icon:"inline"},{value:"flex",icon:"flex"}],options:[{key:"flexDirection",items:[{value:"row",icon:"direction-row"},{value:"column",icon:"direction-column"},{value:"row-reverse",icon:"direction-rowreverse"},{value:"column-reverse",icon:"direction-columnreverse"}]},{key:"flexWrap",items:[{value:"nowrap",icon:"flex-nowrap",row:!0},{value:"wrap",icon:"flex-wrap",row:!0}]},{key:"alignContent",items:[{value:"center",icon:"align-center",row:!0},{value:"flex-start",icon:"align-flexstart",row:!0},{value:"flex-end",icon:"align-flexend",row:!0},{value:"space-around",icon:"align-spacearound",row:!0},{value:"space-between",icon:"align-spacebetween",row:!0},{value:"stretch",icon:"align-stretch",row:!0}]},{key:"justifyContent",items:[{value:"center",icon:"justify-center",row:!0},{value:"flex-start",icon:"justify-flexstart",row:!0},{value:"flex-end",icon:"justify-flexend",row:!0},{value:"space-between",icon:"justify-spacebetween",row:!0},{value:"space-around",icon:"justify-spacearound",row:!0},{value:"space-evenly",icon:"justify-stretch",row:!0}]},{key:"alignItems",items:[{value:"center",icon:"alignitems-center",row:!0},{value:"flex-start",icon:"alignitems-flexstart",row:!0},{value:"flex-end",icon:"alignitems-flexend",row:!0},{value:"stretch",icon:"alignitems-stretch",row:!0},{value:"baseline",icon:"alignitems-baseline"}]}]}},methods:{tidyValue(){this.style={display:"",flexDirection:"",flexWrap:"",alignContent:"",justifyContent:"",alignItems:""},this.modelValue&&Object.keys(this.style).forEach(e=>{this.modelValue[e]&&(this.style[e]=this.modelValue[e])})},onInput(){const e=Object.keys(this.style).reduce((t,i)=>(this.style[i]!==""&&(t[i]=this.style[i]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)},radioClick(e,t){const i=this.style[e];this.style[e]===t.value?this.style[e]="":e==="display"&&t.value!=="flex"?this.style={display:t.value,flexDirection:"",flexWrap:"",alignContent:"",justifyContent:"",alignItems:""}:this.style[e]=t.value,this.style[e]!==i&&this.onInput()}},created(){this.tidyValue()}}),LO={class:"_fd-display-input"},jO={class:"_fd-display-raw"},zO={class:"_label"};function HO(e,t,i,r,o,s){const d=n.resolveComponent("a-radio-button"),c=n.resolveComponent("a-tooltip"),u=n.resolveComponent("a-radio-group"),g=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",LO,[n.createVNode(g,{label:e.t("style.display.name"),arrow:!1,showAppend:e.style.display==="flex"},{append:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-display-con",[e.style.flexDirection,["column","column-reverse"].indexOf(e.style.flexDirection)>-1?"rotate-flag":""]])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,y=>(n.openBlock(),n.createElementBlock("div",jO,[n.createElementVNode("div",zO,n.toDisplayString(e.t("style."+y.key+".name"))+": ",1),n.createVNode(u,{value:e.style[y.key],size:"small"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(y.items,C=>(n.openBlock(),n.createBlock(c,{title:e.t("style."+y.key+"."+C.value),placement:"top",trigger:"hover",key:C.value},{default:n.withCtx(()=>[n.createVNode(d,{value:C.value,onClick:w=>e.radioClick(y.key,C)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(C.row?"rotate":"")},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon","icon-"+C.icon])},null,2)],2)]),_:2},1032,["value","onClick"])]),_:2},1032,["title"]))),128))]),_:2},1032,["value"])]))),256))],2)]),default:n.withCtx(()=>[n.createVNode(u,{value:e.style.display,size:"small",style:{width:"150px"}},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.displayOptions,y=>(n.openBlock(),n.createBlock(c,{title:e.t("style.display."+y.value),placement:"top",trigger:"hover",key:y.value},{default:n.withCtx(()=>[n.createVNode(d,{value:y.value,onClick:C=>e.radioClick("display",y)},{default:n.withCtx(()=>[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon","icon-display-"+y.icon])},null,2)]),_:2},1032,["value","onClick"])]),_:2},1032,["title"]))),128))]),_:1},8,["value"])]),_:1},8,["label","showAppend"])])}const UO=Ne(MO,[["render",HO]]),D3="",WO=n.defineComponent({name:"ShadowContent",components:{ColorInput:Fi},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{default:"0px 0px 0px rgba(0, 0, 0, 0)",type:String}},data(){return{max:24,boxSize:250,options:[{key:"external",icon:"shadow"},{key:"inset",icon:"shadow-inset"}],form:{color:"",type:"external",x:0,y:0,vague:0,extend:0,x_unit:"px",y_unit:"px",vague_unit:"px",extend_unit:"px"},units:["px","%","rem","em","vw","vh"],down:!1,position:{left:0,top:0}}},computed:{spotStyle(){return{left:this.position.left+"px",top:this.position.top+"px"}},t(){return this.designer.setupState.t}},watch:{position(e){this.form.x=parseInt(String((e.left-this.boxSize/2)/this.boxSize*this.max)),this.form.y=parseInt(String((e.top-this.boxSize/2)/this.boxSize*this.max));const t=this.max/2;this.form.x=this.form.x<0?Math.max(this.form.x,t*-1):Math.min(this.form.x,t),this.form.y=this.form.y<0?Math.max(this.form.y,t*-1):Math.min(this.form.y,t)},modelValue(e){this.initStyle(e)}},methods:{getMouseXY(e,t){if(this.down||t){const i=this.$refs.box.getBoundingClientRect();this.position={left:parseInt(String(e.clientX-i.x)),top:parseInt(String(e.clientY-i.y))}}},onMouseup(){this.down=!1,this.onInput()},onMousedown(e){this.getMouseXY(e,!0),this.down=!0},onInput(){const e=this.form;let t=`${e.x}${e.x_unit} ${e.y}${e.y_unit} ${e.vague}${e.vague_unit} ${e.extend}${e.extend_unit} ${e.color}`;`${e.x}${e.y}${e.vague}${e.extend}`.replaceAll("0","")===""?t="":e.type==="inset"&&(t+=" inset"),this.$emit("update:modelValue",t),this.$emit("change",t)},initStyle(e){(this.modelValue||"").indexOf(" inset")>-1&&(this.form.type="inset",e=e.replace(" inset",""));const t=e.split("rgba");let i,r;t.length>1?(i="rgba"+t[1].trim(),r=t[0].trim().split(" ")):(r=t[0].trim().split(" "),i=r.pop()),this.form.color=i||"#000",this.form.x=parseInt(r[0])||0,this.form.y=parseInt(r[1])||0,this.form.vague=parseInt(r[2])||0,this.form.extend=parseInt(r[3])||0;const o=s=>(s==null?void 0:s.replace(/[-\d.]/g,""))||"px";this.form.x_unit=o(r[0]),this.form.y_unit=o(r[1]),this.form.vague_unit=o(r[2]),this.form.extend_unit=o(r[3]),this.position.left=this.boxSize/2+this.form.x/this.max*this.boxSize||0,this.position.top=this.boxSize/2+this.form.y/this.max*this.boxSize||0}},mounted(){this.initStyle(this.modelValue)}}),GO={class:"_fd-shadow-content"},KO={class:"_fd-sc-right"};function YO(e,t,i,r,o,s){const d=n.resolveComponent("a-radio-button"),c=n.resolveComponent("a-tooltip"),u=n.resolveComponent("a-radio-group"),g=n.resolveComponent("a-form-item"),y=n.resolveComponent("ColorInput"),C=n.resolveComponent("a-select-option"),w=n.resolveComponent("a-select"),A=n.resolveComponent("a-input"),E=n.resolveComponent("a-form");return n.openBlock(),n.createElementBlock("div",GO,[n.createVNode(E,{size:"small",layout:"vertical",class:"_fd-sc-form"},{default:n.withCtx(()=>[n.createVNode(g,{label:e.t("style.shadow.mode")},{default:n.withCtx(()=>[n.createVNode(u,{value:e.form.type,"onUpdate:value":t[0]||(t[0]=_=>e.form.type=_),onChange:e.onInput,size:"small",class:"_fd-sc-radio"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,_=>(n.openBlock(),n.createBlock(c,{key:_.key,title:e.t("style.shadow."+_.key),placement:"top"},{default:n.withCtx(()=>[n.createVNode(d,{label:_.key,value:_.key},{default:n.withCtx(()=>[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon","icon-"+_.icon])},null,2)]),_:2},1032,["label","value"])]),_:2},1032,["title"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["label"]),n.createVNode(g,{label:e.t("style.color")},{default:n.withCtx(()=>[n.createVNode(y,{modelValue:e.form.color,"onUpdate:modelValue":t[1]||(t[1]=_=>e.form.color=_),onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(g,{label:e.t("style.shadow.x")},{default:n.withCtx(()=>[n.createVNode(A,{value:e.form.x,"onUpdate:value":t[3]||(t[3]=_=>e.form.x=_),type:"number",onChange:e.onInput},{addonAfter:n.withCtx(()=>[n.createVNode(w,{value:e.form.x_unit,"onUpdate:value":t[2]||(t[2]=_=>e.form.x_unit=_),onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.units,_=>(n.openBlock(),n.createBlock(C,{key:_,value:_},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(_),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["value","onChange"])]),_:1},8,["label"]),n.createVNode(g,{label:e.t("style.shadow.y")},{default:n.withCtx(()=>[n.createVNode(A,{value:e.form.y,"onUpdate:value":t[5]||(t[5]=_=>e.form.y=_),type:"number",onChange:e.onInput},{addonAfter:n.withCtx(()=>[n.createVNode(w,{value:e.form.y_unit,"onUpdate:value":t[4]||(t[4]=_=>e.form.y_unit=_),onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.units,_=>(n.openBlock(),n.createBlock(C,{key:_,value:_},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(_),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["value","onChange"])]),_:1},8,["label"]),n.createVNode(g,{label:e.t("style.shadow.vague")},{default:n.withCtx(()=>[n.createVNode(A,{value:e.form.vague,"onUpdate:value":t[7]||(t[7]=_=>e.form.vague=_),type:"number",onChange:e.onInput},{addonAfter:n.withCtx(()=>[n.createVNode(w,{value:e.form.vague_unit,"onUpdate:value":t[6]||(t[6]=_=>e.form.vague_unit=_),onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.units,_=>(n.openBlock(),n.createBlock(C,{key:_,value:_},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(_),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["value","onChange"])]),_:1},8,["label"]),n.createVNode(g,{label:e.t("style.shadow.extend")},{default:n.withCtx(()=>[n.createVNode(A,{value:e.form.extend,"onUpdate:value":t[9]||(t[9]=_=>e.form.extend=_),type:"number",onChange:e.onInput},{addonAfter:n.withCtx(()=>[n.createVNode(w,{value:e.form.extend_unit,"onUpdate:value":t[8]||(t[8]=_=>e.form.extend_unit=_),onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.units,_=>(n.openBlock(),n.createBlock(C,{key:_,value:_},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(_),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["value","onChange"])]),_:1},8,["label"])]),_:1}),n.createElementVNode("div",KO,[n.createElementVNode("div",{ref:"box",class:n.normalizeClass(["_fd-sc-box",e.down?"down":""]),onClick:t[10]||(t[10]=_=>e.getMouseXY(_,1)),onMousedown:t[11]||(t[11]=(..._)=>e.onMousedown&&e.onMousedown(..._)),onMouseup:t[12]||(t[12]=(..._)=>e.onMouseup&&e.onMouseup(..._)),onMousemove:t[13]||(t[13]=_=>e.getMouseXY(_,0))},[n.createElementVNode("span",{class:"spot",style:n.normalizeStyle(e.spotStyle)},t[14]||(t[14]=[n.createElementVNode("i",{class:"spot-id"},null,-1)]),4),t[15]||(t[15]=n.createElementVNode("span",{class:"center-spot"},null,-1)),t[16]||(t[16]=n.createElementVNode("div",{class:"x-hr"},null,-1)),t[17]||(t[17]=n.createElementVNode("div",{class:"y-hr"},null,-1))],34)])])}const QO=Ne(WO,[["render",YO]]),B3="",XO=n.defineComponent({name:"ShadowInput",emits:["update:modelValue","change"],components:{ConfigItem:Sn,ShadowContent:QO},inject:["designer"],props:{modelValue:String},watch:{modelValue(){this.value=this.modelValue||""},value(e){this.$emit("update:modelValue",e),this.$emit("change",e)}},data(){const e=this.designer.setupState.t;return{t:e,options:[{label:e("style.shadow.classic"),value:"3px 5px 7px 2px #CBCBCBFF"},{label:e("style.shadow.flat"),value:"4px 4px 3px -2px #E7E5E5FF"},{label:e("style.shadow.solid"),value:"1px 2px 4px 2px #979797FF"}],value:this.modelValue||""}},methods:{changeValue(e){this.value=e}},created(){}}),JO={class:"_fd-shadow-input"};function ZO(e,t,i,r,o,s){const d=n.resolveComponent("a-menu-item"),c=n.resolveComponent("a-menu"),u=n.resolveComponent("a-dropdown"),g=n.resolveComponent("a-input"),y=n.resolveComponent("ShadowContent"),C=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",JO,[n.createVNode(C,{label:e.t("style.shadow.name")},{append:n.withCtx(()=>[n.createVNode(y,{modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=w=>e.value=w)},null,8,["modelValue"])]),default:n.withCtx(()=>[n.createVNode(g,{allowClear:"",value:e.value,"onUpdate:value":t[0]||(t[0]=w=>e.value=w),class:"_fd-si-input"},{addonAfter:n.withCtx(()=>[n.createVNode(u,null,{overlay:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,w=>(n.openBlock(),n.createBlock(d,{onClick:A=>e.changeValue(w.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(w.label),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:1})]),_:1},8,["value"])]),_:1},8,["label"])])}const qO=Ne(XO,[["render",ZO]]),$3="",eD=n.defineComponent({name:"TableOptions",components:{ValueInput:nl},emits:["update:modelValue","change"],props:{modelValue:[Array,Object],column:{type:Array,default:()=>[{label:"label",key:"label"},{label:"value",key:"value"}]},valueType:String,keyValue:String,max:Number,size:String},inject:["designer"],watch:{modelValue(){this.value=this.tidyModelValue()}},computed:{t(){return this.designer.setupState.t},columns(){const e=this.overColumn.map(t=>({...t,title:t.label}));return e.push({title:"",width:"40px",dataIndex:"handle"}),e},overColumn(){let e=this.column;if(this.checked){for(let t=0;t<e.length;t++)if(e[t].key===this.keyValue)return[e[t]]}return e}},data(){return{value:this.tidyModelValue(),checked:!1}},created(){this.keyValue&&(this.checked=this.isChecked(),this.$watch("checked",e=>{e&&this.input()}))},methods:{isChecked(){for(let e=0;e<this.value.length;e++){const t=this.value[e],i=Object.keys(t),r=t[this.keyValue];for(let o=0;o<i.length;o++)if(r!==t[i[o]])return!1}return!0},tidyModelValue(){const e=this.modelValue;return this.valueType==="string"?(e||[]).map(t=>({value:""+t})):this.valueType==="object"?Object.keys(e||{}).map(t=>({label:t,value:e[t]})):[...e||[]].map(t=>Rb(t))},tidyValue(){if(this.valueType==="object"){const e={};return this.value.forEach(t=>{t.label&&t.value&&(e[t.label]=t.value)}),e}else return this.value.map(e=>{if(this.valueType==="string")return e.value;if(this.checked){const t=e[this.keyValue];return this.column.reduce((i,r)=>(i[r.key]=t,i),{})}else return{...e}})},onInput(e){if(this.column.length===1&&e[this.column[0].key]==="")return;this.column.every(i=>i.required===!1?!0:["object","string"].indexOf(this.valueType)>-1?e[i.key]!==void 0&&e[i.key]!==""&&e[i.key]!==null:e[i.key]!==void 0)&&this.input()},input(){const e=this.tidyValue();this.$emit("update:modelValue",e),this.$emit("change",e)},add(){this.value.push(this.column.reduce((e,t)=>(e[t.key]="",e),{}))},del(e){this.value.splice(e,1),this.input()}}}),tD={class:"_td-table-opt"},nD=["onClick"],oD={class:"_td-table-opt-handle"};function iD(e,t,i,r,o,s){const d=n.resolveComponent("ValueInput"),c=n.resolveComponent("a-input"),u=n.resolveComponent("a-table"),g=n.resolveComponent("a-button"),y=n.resolveComponent("a-checkbox"),C=n.resolveComponent("a-form-item-rest");return n.openBlock(),n.createElementBlock("div",tD,[n.createVNode(C,null,{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(u,{"data-source":e.value,columns:e.columns,key:e.checked?"2":"1",size:e.size||"small",rowKey:"index",bordered:"",pagination:!1,style:{width:"100%"}},{bodyCell:n.withCtx(w=>[w.column.dataIndex!=="handle"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[w.column.value?(n.openBlock(),n.createBlock(d,{key:0,size:e.size||"small",modelValue:w.record[w.column.key],"onUpdate:modelValue":A=>w.record[w.column.key]=A,onBlur:A=>e.onInput(w.record),onChangeType:A=>e.onInput(w.record)},null,8,["size","modelValue","onUpdate:modelValue","onBlur","onChangeType"])):(n.openBlock(),n.createBlock(c,{key:1,size:e.size||"small",value:w.record[w.column.key],"onUpdate:value":A=>w.record[w.column.key]=A,onBlur:A=>e.onInput(w.record)},null,8,["size","value","onUpdate:value","onBlur"]))],64)):(n.openBlock(),n.createElementBlock("i",{key:1,class:"fc-icon icon-delete",onClick:A=>e.del(w.index)},null,8,nD))]),_:1},8,["data-source","columns","size"])),n.createElementVNode("div",oD,[!e.max||e.max>e.value.length?(n.openBlock(),n.createBlock(g,{key:0,type:"link",onClick:e.add,size:"small"},{default:n.withCtx(()=>[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("tableOptions.add")),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.keyValue?(n.openBlock(),n.createBlock(y,{key:1,checked:e.checked,"onUpdate:checked":t[0]||(t[0]=w=>e.checked=w)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.keyValue")),1)]),_:1},8,["checked"])):n.createCommentVNode("",!0)])]),_:1})])}const Nm=Ne(eD,[["render",iD]]),V3="",rD=n.defineComponent({name:"BoxSpaceInput",components:{ConfigItem:Sn},props:{modelValue:{type:Object,default:()=>({})}},inject:["designer"],emits:["update:modelValue","change"],data(){return{position:["Top","Right","Bottom","Left"],boxStyle:{margin:"",padding:"",marginLeft:"",marginRight:"",marginTop:"",marginBottom:"",paddingLeft:"",paddingRight:"",paddingTop:"",paddingBottom:""},marginLock:!1,paddingLock:!1}},watch:{modelValue(){this.tidyValue()}},computed:{t(){return this.designer.setupState.t}},methods:{tidyValue(){this.boxStyle={},["margin","padding"].forEach(e=>{this.boxStyle[e]=this.modelValue[e]||"",this.position.forEach(t=>{this.boxStyle[e+t]=this.tidySize(this.modelValue[e+t]||this.modelValue[e]||"")})})},onInput(){const e=Object.keys(this.boxStyle).reduce((t,i)=>(this.boxStyle[i]!==""&&(t[i]=this.boxStyle[i]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)},tidySize(e){if(!/^(\d*\.?\d+)(px|rem|%|vh|vw|em)$/.test(e)){if(e==="auto")return e;const i=parseInt(e);return isNaN(i)?"":i+"px"}return e},setValue(e,t,i){const r=this.tidySize(i.target.value);e?this[e+"Lock"]?this.position.forEach(o=>{this.boxStyle[e+o]=r}):this.boxStyle[e+t]=r:this.boxStyle[t]=r,this.onInput()},change(e,t){this.boxStyle[e]=t.target.value},clear(e){this.position.forEach(t=>{this.boxStyle[e+t]=""}),this.onInput()},lock(e){const t=e+"Lock";this[t]=!this[t]}},created(){this.tidyValue()}}),aD={class:"_fd-box-space-input"},lD={class:"_padding"},sD={class:"_padding-title"},dD=["value"],cD=["value"],uD=["value"],fD=["value"],pD={class:"_fd-help"},hD={class:"_margin"},mD={class:"_margin-title"},gD={class:"_fd-help"},vD=["value"],yD=["value"],bD=["value"],CD=["value"];function _D(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",aD,[n.createElementVNode("div",lD,[n.createElementVNode("span",sD,n.toDisplayString(e.t("style.margin")),1),n.createElementVNode("input",{class:"_fd-input _fd-top",placeholder:" ",value:e.boxStyle.marginTop,type:"text",onBlur:t[0]||(t[0]=d=>e.setValue("margin","Top",d)),onInput:t[1]||(t[1]=d=>e.change("marginTop",d))},null,40,dD),n.createElementVNode("input",{class:"_fd-input _fd-right",placeholder:" ",value:e.boxStyle.marginRight,type:"text",onBlur:t[2]||(t[2]=d=>e.setValue("margin","Right",d)),onInput:t[3]||(t[3]=d=>e.change("marginRight",d))},null,40,cD),n.createElementVNode("input",{class:"_fd-input _fd-bottom",placeholder:" ",value:e.boxStyle.marginBottom,type:"text",onBlur:t[4]||(t[4]=d=>e.setValue("margin","Bottom",d)),onInput:t[5]||(t[5]=d=>e.change("marginBottom",d))},null,40,uD),n.createElementVNode("input",{class:"_fd-input _fd-left",placeholder:" ",value:e.boxStyle.marginLeft,type:"text",onBlur:t[6]||(t[6]=d=>e.setValue("margin","Left",d)),onInput:t[7]||(t[7]=d=>e.change("marginLeft",d))},null,40,fD),n.createElementVNode("div",pD,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-link2",e.marginLock?"active":""]),title:"lock",onClick:t[8]||(t[8]=d=>e.lock("margin"))},null,2),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",title:"clear",onClick:t[9]||(t[9]=d=>e.clear("margin"))})]),n.createElementVNode("div",hD,[n.createElementVNode("span",mD,n.toDisplayString(e.t("style.padding")),1),n.createElementVNode("div",gD,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-link2",e.paddingLock?"active":""]),title:"lock",onClick:t[10]||(t[10]=d=>e.lock("padding"))},null,2),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",title:"clear",onClick:t[11]||(t[11]=d=>e.clear("padding"))})]),n.createElementVNode("input",{class:"_fd-input _fd-top",placeholder:" ",value:e.boxStyle.paddingTop,type:"text",onBlur:t[12]||(t[12]=d=>e.setValue("padding","Top",d)),onInput:t[13]||(t[13]=d=>e.change("paddingTop",d))},null,40,vD),n.createElementVNode("input",{class:"_fd-input _fd-right",placeholder:" ",value:e.boxStyle.paddingRight,type:"text",onBlur:t[14]||(t[14]=d=>e.setValue("padding","Right",d)),onInput:t[15]||(t[15]=d=>e.change("paddingRight",d))},null,40,yD),n.createElementVNode("input",{class:"_fd-input _fd-bottom",placeholder:" ",value:e.boxStyle.paddingBottom,type:"text",onBlur:t[16]||(t[16]=d=>e.setValue("padding","Bottom",d)),onInput:t[17]||(t[17]=d=>e.change("paddingBottom",d))},null,40,bD),n.createElementVNode("input",{class:"_fd-input _fd-left",placeholder:" ",value:e.boxStyle.paddingLeft,type:"text",onBlur:t[18]||(t[18]=d=>e.setValue("padding","Left",d)),onInput:t[19]||(t[19]=d=>e.change("paddingLeft",d))},null,40,CD),t[20]||(t[20]=n.createElementVNode("div",{class:"_box"},null,-1))])])])}const wD=Ne(rD,[["render",_D]]),R3="",Tm=["display","flexDirection","flexWrap","alignContent","justifyContent","alignItems"],Om=["fontSize","fontWeight","fontStyle","textDecoration","textAlign","lineHeight","letterSpacing"],Dm=["height","width","minWidth","minHeight","maxWidth","maxHeight","overflow"],Bm=["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",...Tm,...Om,...Dm],ED=n.defineComponent({name:"StyleConfig",inject:["designer"],emits:["update:modelValue"],components:{BoxSpaceInput:wD,TableOptions:Nm,ColorInput:Fi,ConfigItem:Sn,DisplayInput:UO,RadiusInput:VO,BoxSizeInput:fO,BorderInput:SO,ShadowInput:qO,FontInput:PO},props:{modelValue:{type:Object,default:()=>({})}},watch:{modelValue:{handler(){this.tidyStyle()},deep:!0}},data(){return{t:this.designer.setupState.t,formData:{},space:{},size:{},border:{},display:{},font:{},radius:"",backgroundColor:"",color:"",boxShadow:"",opacity:100,scale:100}},methods:{tidyStyle(){const e={...this.modelValue||{}},t={};Object.keys(e).forEach(u=>{(["margin","padding"].indexOf(u)>-1||u.indexOf("margin")>-1||u.indexOf("padding")>-1)&&(t[u]=e[u])});const i={};Dm.forEach(u=>{e[u]&&(i[u]=e[u])}),this.radius=e.borderRadius||"",delete e.borderRadius;const r={};Object.keys(e).forEach(u=>{u.indexOf("border")===0&&(r[u]=e[u])});let o=Gn(e.opacity)?100:parseFloat(e.opacity)||0;o&&o<1&&(o=o*100);let s=e.scale;Gn(e.scale)?s=100:isNaN(Number(s))?s=parseFloat(s)||100:s=s>0?s*100:0;const d={};Tm.forEach(u=>{e[u]&&(d[u]=e[u])});const c={};Om.forEach(u=>{e[u]&&(c[u]=e[u])}),this.opacity=o,this.scale=s,this.size=i,this.space=t,this.border=r,this.display=d,this.font=c,this.boxShadow=e.boxShadow||"",this.color=e.color||"",this.backgroundColor=e.backgroundColor||"",Bm.forEach(u=>{delete e[u]}),this.formData=e},onInput(){let e={...this.formData};Bm.forEach(i=>{delete e[i]});const t={...e,color:this.color||"",backgroundColor:this.backgroundColor||"",opacity:this.opacity>=0&&this.opacity<100?this.opacity+"%":"",borderRadius:this.radius||"",boxShadow:this.boxShadow||"",scale:this.scale>=0&&this.scale!==100?this.scale+"%":"",...this.space,...this.size,...this.border,...this.display,...this.font};Object.keys(t).forEach(i=>{Gn(t[i])&&delete t[i]}),this.$emit("update:modelValue",t)}},created(){this.tidyStyle()}}),AD={class:"_fd-style-config"};function SD(e,t,i,r,o,s){const d=n.resolveComponent("BoxSpaceInput"),c=n.resolveComponent("BoxSizeInput"),u=n.resolveComponent("DisplayInput"),g=n.resolveComponent("ColorInput"),y=n.resolveComponent("ConfigItem"),C=n.resolveComponent("BorderInput"),w=n.resolveComponent("RadiusInput"),A=n.resolveComponent("FontInput"),E=n.resolveComponent("ShadowInput"),_=n.resolveComponent("a-slider"),v=n.resolveComponent("TableOptions"),m=n.resolveComponent("a-form-item-rest");return n.openBlock(),n.createElementBlock("div",AD,[n.createVNode(m,null,{default:n.withCtx(()=>[n.createVNode(d,{modelValue:e.space,"onUpdate:modelValue":t[0]||(t[0]=b=>e.space=b),onChange:e.onInput,style:{"margin-bottom":"10px"}},null,8,["modelValue","onChange"]),n.createVNode(c,{modelValue:e.size,"onUpdate:modelValue":t[1]||(t[1]=b=>e.size=b),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(u,{modelValue:e.display,"onUpdate:modelValue":t[2]||(t[2]=b=>e.display=b),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(y,{label:e.t("style.color")},{default:n.withCtx(()=>[n.createVNode(g,{modelValue:e.color,"onUpdate:modelValue":t[3]||(t[3]=b=>e.color=b),onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(y,{label:e.t("style.backgroundColor")},{default:n.withCtx(()=>[n.createVNode(g,{modelValue:e.backgroundColor,"onUpdate:modelValue":t[4]||(t[4]=b=>e.backgroundColor=b),onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(C,{modelValue:e.border,"onUpdate:modelValue":t[5]||(t[5]=b=>e.border=b),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(w,{modelValue:e.radius,"onUpdate:modelValue":t[6]||(t[6]=b=>e.radius=b),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(A,{modelValue:e.font,"onUpdate:modelValue":t[7]||(t[7]=b=>e.font=b),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(E,{modelValue:e.boxShadow,"onUpdate:modelValue":t[8]||(t[8]=b=>e.boxShadow=b),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(y,{label:e.t("style.opacity"),class:"_fd-opacity-input"},{default:n.withCtx(()=>[n.createVNode(_,{value:e.opacity,"onUpdate:value":t[9]||(t[9]=b=>e.opacity=b),onChange:e.onInput},null,8,["value","onChange"]),n.createElementVNode("span",null,n.toDisplayString(e.opacity)+"%",1)]),_:1},8,["label"]),n.createVNode(y,{label:e.t("style.scale"),class:"_fd-opacity-input"},{default:n.withCtx(()=>[n.createVNode(_,{min:80,max:120,value:e.scale,"onUpdate:value":t[10]||(t[10]=b=>e.scale=b),onChange:e.onInput},null,8,["value","onChange"]),n.createElementVNode("span",null,n.toDisplayString(e.scale)+"%",1)]),_:1},8,["label"]),n.createVNode(y,{label:e.t("props.custom"),info:Object.keys(e.formData).length>0?e.t("struct.configured"):""},{append:n.withCtx(()=>[n.createVNode(v,n.mergeProps({modelValue:e.formData,"onUpdate:modelValue":t[11]||(t[11]=b=>e.formData=b),onChange:e.onInput},{column:[{label:e.t("props.key"),key:"label"},{label:e.t("props.value"),key:"value"}],valueType:"object"}),null,16,["modelValue","onChange"])]),_:1},8,["label","info"])]),_:1})])}const $m=Ne(ED,[["render",SD]]);(function(e,t){(function(i){i(Di())})(function(i){i.defineMode("css",function(T,B){var L=B.inline;B.propertyKeywords||(B=i.resolveMode("text/css"));var U=T.indentUnit,W=B.tokenHooks,V=B.documentTypes||{},k=B.mediaTypes||{},M=B.mediaFeatures||{},j=B.mediaValueKeywords||{},Z=B.propertyKeywords||{},J=B.nonStandardPropertyKeywords||{},F=B.fontProperties||{},ie=B.counterDescriptors||{},pe=B.colorKeywords||{},se=B.valueKeywords||{},ye=B.allowNested,fe=B.lineComment,ue=B.supportsAtComponent===!0,he=T.highlightNonStandardPropertyKeywords!==!1,$,Y;function Q(ge,Ae){return $=Ae,ge}function K(ge,Ae){var le=ge.next();if(W[le]){var we=W[le](ge,Ae);if(we!==!1)return we}if(le=="@")return ge.eatWhile(/[\w\\\-]/),Q("def",ge.current());if(le=="="||(le=="~"||le=="|")&&ge.eat("="))return Q(null,"compare");if(le=='"'||le=="'")return Ae.tokenize=te(le),Ae.tokenize(ge,Ae);if(le=="#")return ge.eatWhile(/[\w\\\-]/),Q("atom","hash");if(le=="!")return ge.match(/^\s*\w*/),Q("keyword","important");if(/\d/.test(le)||le=="."&&ge.eat(/\d/))return ge.eatWhile(/[\w.%]/),Q("number","unit");if(le==="-"){if(/[\d.]/.test(ge.peek()))return ge.eatWhile(/[\w.%]/),Q("number","unit");if(ge.match(/^-[\w\\\-]*/))return ge.eatWhile(/[\w\\\-]/),ge.match(/^\s*:/,!1)?Q("variable-2","variable-definition"):Q("variable-2","variable");if(ge.match(/^\w+-/))return Q("meta","meta")}else return/[,+>*\/]/.test(le)?Q(null,"select-op"):le=="."&&ge.match(/^-?[_a-z][_a-z0-9-]*/i)?Q("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(le)?Q(null,le):ge.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(ge.current())&&(Ae.tokenize=q),Q("variable callee","variable")):/[\w\\\-]/.test(le)?(ge.eatWhile(/[\w\\\-]/),Q("property","word")):Q(null,null)}function te(ge){return function(Ae,le){for(var we=!1,Ie;(Ie=Ae.next())!=null;){if(Ie==ge&&!we){ge==")"&&Ae.backUp(1);break}we=!we&&Ie=="\\"}return(Ie==ge||!we&&ge!=")")&&(le.tokenize=null),Q("string","string")}}function q(ge,Ae){return ge.next(),ge.match(/^\s*[\"\')]/,!1)?Ae.tokenize=null:Ae.tokenize=te(")"),Q(null,"(")}function oe(ge,Ae,le){this.type=ge,this.indent=Ae,this.prev=le}function de(ge,Ae,le,we){return ge.context=new oe(le,Ae.indentation()+(we===!1?0:U),ge.context),le}function Ee(ge){return ge.context.prev&&(ge.context=ge.context.prev),ge.context.type}function Se(ge,Ae,le){return Re[le.context.type](ge,Ae,le)}function ke(ge,Ae,le,we){for(var Ie=we||1;Ie>0;Ie--)le.context=le.context.prev;return Se(ge,Ae,le)}function qe(ge){var Ae=ge.current().toLowerCase();se.hasOwnProperty(Ae)?Y="atom":pe.hasOwnProperty(Ae)?Y="keyword":Y="variable"}var Re={};return Re.top=function(ge,Ae,le){if(ge=="{")return de(le,Ae,"block");if(ge=="}"&&le.context.prev)return Ee(le);if(ue&&/@component/i.test(ge))return de(le,Ae,"atComponentBlock");if(/^@(-moz-)?document$/i.test(ge))return de(le,Ae,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(ge))return de(le,Ae,"atBlock");if(/^@(font-face|counter-style)/i.test(ge))return le.stateArg=ge,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(ge))return"keyframes";if(ge&&ge.charAt(0)=="@")return de(le,Ae,"at");if(ge=="hash")Y="builtin";else if(ge=="word")Y="tag";else{if(ge=="variable-definition")return"maybeprop";if(ge=="interpolation")return de(le,Ae,"interpolation");if(ge==":")return"pseudo";if(ye&&ge=="(")return de(le,Ae,"parens")}return le.context.type},Re.block=function(ge,Ae,le){if(ge=="word"){var we=Ae.current().toLowerCase();return Z.hasOwnProperty(we)?(Y="property","maybeprop"):J.hasOwnProperty(we)?(Y=he?"string-2":"property","maybeprop"):ye?(Y=Ae.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Y+=" error","maybeprop")}else return ge=="meta"?"block":!ye&&(ge=="hash"||ge=="qualifier")?(Y="error","block"):Re.top(ge,Ae,le)},Re.maybeprop=function(ge,Ae,le){return ge==":"?de(le,Ae,"prop"):Se(ge,Ae,le)},Re.prop=function(ge,Ae,le){if(ge==";")return Ee(le);if(ge=="{"&&ye)return de(le,Ae,"propBlock");if(ge=="}"||ge=="{")return ke(ge,Ae,le);if(ge=="(")return de(le,Ae,"parens");if(ge=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(Ae.current()))Y+=" error";else if(ge=="word")qe(Ae);else if(ge=="interpolation")return de(le,Ae,"interpolation");return"prop"},Re.propBlock=function(ge,Ae,le){return ge=="}"?Ee(le):ge=="word"?(Y="property","maybeprop"):le.context.type},Re.parens=function(ge,Ae,le){return ge=="{"||ge=="}"?ke(ge,Ae,le):ge==")"?Ee(le):ge=="("?de(le,Ae,"parens"):ge=="interpolation"?de(le,Ae,"interpolation"):(ge=="word"&&qe(Ae),"parens")},Re.pseudo=function(ge,Ae,le){return ge=="meta"?"pseudo":ge=="word"?(Y="variable-3",le.context.type):Se(ge,Ae,le)},Re.documentTypes=function(ge,Ae,le){return ge=="word"&&V.hasOwnProperty(Ae.current())?(Y="tag",le.context.type):Re.atBlock(ge,Ae,le)},Re.atBlock=function(ge,Ae,le){if(ge=="(")return de(le,Ae,"atBlock_parens");if(ge=="}"||ge==";")return ke(ge,Ae,le);if(ge=="{")return Ee(le)&&de(le,Ae,ye?"block":"top");if(ge=="interpolation")return de(le,Ae,"interpolation");if(ge=="word"){var we=Ae.current().toLowerCase();we=="only"||we=="not"||we=="and"||we=="or"?Y="keyword":k.hasOwnProperty(we)?Y="attribute":M.hasOwnProperty(we)?Y="property":j.hasOwnProperty(we)?Y="keyword":Z.hasOwnProperty(we)?Y="property":J.hasOwnProperty(we)?Y=he?"string-2":"property":se.hasOwnProperty(we)?Y="atom":pe.hasOwnProperty(we)?Y="keyword":Y="error"}return le.context.type},Re.atComponentBlock=function(ge,Ae,le){return ge=="}"?ke(ge,Ae,le):ge=="{"?Ee(le)&&de(le,Ae,ye?"block":"top",!1):(ge=="word"&&(Y="error"),le.context.type)},Re.atBlock_parens=function(ge,Ae,le){return ge==")"?Ee(le):ge=="{"||ge=="}"?ke(ge,Ae,le,2):Re.atBlock(ge,Ae,le)},Re.restricted_atBlock_before=function(ge,Ae,le){return ge=="{"?de(le,Ae,"restricted_atBlock"):ge=="word"&&le.stateArg=="@counter-style"?(Y="variable","restricted_atBlock_before"):Se(ge,Ae,le)},Re.restricted_atBlock=function(ge,Ae,le){return ge=="}"?(le.stateArg=null,Ee(le)):ge=="word"?(le.stateArg=="@font-face"&&!F.hasOwnProperty(Ae.current().toLowerCase())||le.stateArg=="@counter-style"&&!ie.hasOwnProperty(Ae.current().toLowerCase())?Y="error":Y="property","maybeprop"):"restricted_atBlock"},Re.keyframes=function(ge,Ae,le){return ge=="word"?(Y="variable","keyframes"):ge=="{"?de(le,Ae,"top"):Se(ge,Ae,le)},Re.at=function(ge,Ae,le){return ge==";"?Ee(le):ge=="{"||ge=="}"?ke(ge,Ae,le):(ge=="word"?Y="tag":ge=="hash"&&(Y="builtin"),"at")},Re.interpolation=function(ge,Ae,le){return ge=="}"?Ee(le):ge=="{"||ge==";"?ke(ge,Ae,le):(ge=="word"?Y="variable":ge!="variable"&&ge!="("&&ge!=")"&&(Y="error"),"interpolation")},{startState:function(ge){return{tokenize:null,state:L?"block":"top",stateArg:null,context:new oe(L?"block":"top",ge||0,null)}},token:function(ge,Ae){if(!Ae.tokenize&&ge.eatSpace())return null;var le=(Ae.tokenize||K)(ge,Ae);return le&&typeof le=="object"&&($=le[1],le=le[0]),Y=le,$!="comment"&&(Ae.state=Re[Ae.state]($,ge,Ae)),Y},indent:function(ge,Ae){var le=ge.context,we=Ae&&Ae.charAt(0),Ie=le.indent;return le.type=="prop"&&(we=="}"||we==")")&&(le=le.prev),le.prev&&(we=="}"&&(le.type=="block"||le.type=="top"||le.type=="interpolation"||le.type=="restricted_atBlock")?(le=le.prev,Ie=le.indent):(we==")"&&(le.type=="parens"||le.type=="atBlock_parens")||we=="{"&&(le.type=="at"||le.type=="atBlock"))&&(Ie=Math.max(0,le.indent-U))),Ie},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:fe,fold:"brace"}});function r(T){for(var B={},L=0;L<T.length;++L)B[T[L].toLowerCase()]=!0;return B}var o=["domain","regexp","url","url-prefix"],s=r(o),d=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],c=r(d),u=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],g=r(u),y=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],C=r(y),w=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],A=r(w),E=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],_=r(E),v=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],m=r(v),b=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],S=r(b),x=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],O=r(x),D=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],R=r(D),I=o.concat(d).concat(u).concat(y).concat(w).concat(E).concat(x).concat(D);i.registerHelper("hintWords","css",I);function z(T,B){for(var L=!1,U;(U=T.next())!=null;){if(L&&U=="/"){B.tokenize=null;break}L=U=="*"}return["comment","comment"]}i.defineMIME("text/css",{documentTypes:s,mediaTypes:c,mediaFeatures:g,mediaValueKeywords:C,propertyKeywords:A,nonStandardPropertyKeywords:_,fontProperties:m,counterDescriptors:S,colorKeywords:O,valueKeywords:R,tokenHooks:{"/":function(T,B){return T.eat("*")?(B.tokenize=z,z(T,B)):!1}},name:"css"}),i.defineMIME("text/x-scss",{mediaTypes:c,mediaFeatures:g,mediaValueKeywords:C,propertyKeywords:A,nonStandardPropertyKeywords:_,colorKeywords:O,valueKeywords:R,fontProperties:m,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(T,B){return T.eat("/")?(T.skipToEnd(),["comment","comment"]):T.eat("*")?(B.tokenize=z,z(T,B)):["operator","operator"]},":":function(T){return T.match(/^\s*\{/,!1)?[null,null]:!1},$:function(T){return T.match(/^[\w-]+/),T.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(T){return T.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),i.defineMIME("text/x-less",{mediaTypes:c,mediaFeatures:g,mediaValueKeywords:C,propertyKeywords:A,nonStandardPropertyKeywords:_,colorKeywords:O,valueKeywords:R,fontProperties:m,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(T,B){return T.eat("/")?(T.skipToEnd(),["comment","comment"]):T.eat("*")?(B.tokenize=z,z(T,B)):["operator","operator"]},"@":function(T){return T.eat("{")?[null,"interpolation"]:T.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(T.eatWhile(/[\w\\\-]/),T.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),i.defineMIME("text/x-gss",{documentTypes:s,mediaTypes:c,mediaFeatures:g,propertyKeywords:A,nonStandardPropertyKeywords:_,fontProperties:m,counterDescriptors:S,colorKeywords:O,valueKeywords:R,supportsAtComponent:!0,tokenHooks:{"/":function(T,B){return T.eat("*")?(B.tokenize=z,z(T,B)):!1}},name:"css",helperType:"gss"})})})();const I3="",xD=n.defineComponent({name:"StyleEditor",props:{modelValue:String},data(){return{editor:null,oldVal:null}},mounted(){this.$nextTick(()=>{this.load()})},methods:{load(){const e=this.modelValue;this.oldVal=e,this.$nextTick(()=>{this.editor=n.markRaw(fo(this.$refs.editor,{lineNumbers:!0,mode:"css",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:e?Ii.css(e,{indent_size:2,indent_char:" ",indent_scripts:"separate"}):""}))})},save(){const e=this.editor.getValue();return e!==this.oldVal&&this.$emit("update:modelValue",e),!0}}}),kD={class:"_fd-style-editor"},ND={ref:"editor"};function TD(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",kD,[n.createElementVNode("div",ND,null,512)])}const OD=Ne(xD,[["render",TD]]),F3="",DD=n.defineComponent({name:"GlobalClassConfig",emits:["update:modelValue"],props:{modelValue:Object},components:{Warning:Zn,StyleEditor:OD,StyleConfig:$m},inject:["designer"],data(){return{visible:!1,activeIdx:"",value:{},cus:!1,cusValue:"",handle:"",styleEl:null,content:"",activeStyle:!1}},computed:{t(){return this.designer.setupState.t},eventNum(){return Object.keys(this.modelValue||{}).length},fnArgs(){return[bn(this.t)]}},watch:{visible(e){e&&(this.activeIdx="",this.value=et(this.modelValue||{}))},modelValue(){this.updateGlobalStyle()}},methods:{open(){this.visible=!0},changeStyle(){this.content=this.designer.setupState.formOptions.style||`#_demo1{
display:flex;
}
._demo2{
display:flex;
}`,this.activeStyle=!0,this.activeIdx=""},active(e){this.activeStyle=!1,this.activeIdx!==e&&(this.handle=this.value[e].style||"",this.activeIdx=e)},addCus(){const e=this.cusValue&&this.cusValue.trim();if(e){const t="cls_"+Ye();this.value[t]={label:e,style:{}},this.active(t),this.closeCus()}},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(){this.cus=!0},save(){this.activeStyle?(this.$refs.editor.save(),this.designer.setupState.formOptions.style=this.content,this.activeStyle=!1):(this.value[this.activeIdx].style=this.handle,this.activeIdx="")},rm(e){delete this.value[e],e===this.activeIdx&&(this.activeIdx="")},close(){this.activeIdx=""},submit(){(this.activeIdx||this.activeStyle)&&this.save(),this.$emit("update:modelValue",{...this.value}),this.visible=!1},updateGlobalStyle(){let e="";const t=this.modelValue||{};Object.keys(t).forEach(i=>{let r="";t[i].style&&Object.keys(t[i].style).forEach(o=>{r+=ll(o)+":"+t[i].style[o]+";"}),t[i].content&&(r+=t[i].content+";"),r&&(e+=`.${i}{${r}}`)}),e&&(this.styleEl.innerHTML=e)}},created(){this.styleEl=n.markRaw(document.createElement("style")),this.styleEl.type="text/css",document.head.appendChild(this.styleEl),this.updateGlobalStyle()},unmounted(){document.head.removeChild(this.styleEl)}}),BD={class:"_fd-gcc"},$D={class:"_fd-menu"},VD={class:"_fd-gcc-title"},RD={class:"_fd-gcc-method"},ID={class:"_fd-label"},FD=["onClick"],PD={class:"_fd-gcc-title"},MD={class:"_fd-gcc-method"},LD={key:0,class:"_fd-label"},jD=["onClick"],zD={key:0,class:"_fd-menu-item",style:{"padding-left":"0"}},HD={class:"_fd-gcc-title"};function UD(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),u=n.resolveComponent("Warning"),g=n.resolveComponent("a-layout-header"),y=n.resolveComponent("a-input"),C=n.resolveComponent("a-layout-content"),w=n.resolveComponent("a-layout"),A=n.resolveComponent("a-layout-sider"),E=n.resolveComponent("StyleEditor"),_=n.resolveComponent("StyleConfig"),v=n.resolveComponent("a-form"),m=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",BD,[n.createVNode(c,{color:"orange",count:e.eventNum},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:e.open},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("class.title")),1)]),_:1},8,["onClick"])]),_:1},8,["count"]),n.createVNode(m,{class:"_fd-gec-dialog _fd-config-dialog",open:e.visible,"onUpdate:open":t[7]||(t[7]=b=>e.visible=b),centered:"",maskClosable:!1,destroyOnClose:!0,width:"700px"},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.globalClass"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.globalClass")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[6]||(t[6]=b=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.submit,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gcc-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(A,{width:"255px"},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gcc-l"},{default:n.withCtx(()=>[n.createVNode(g,{class:"_fd-gcc-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{type:"link",size:"middle",onClick:e.cusEvent},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("class.create")),1)]),_:1},8,["onClick"])]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createElementVNode("div",$D,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-menu-item",{"is-active":e.activeStyle,"_fd-gcc-default":!0}]),onClick:t[0]||(t[0]=(...b)=>e.changeStyle&&e.changeStyle(...b))},[n.createElementVNode("div",VD,[n.createElementVNode("div",RD,[n.createElementVNode("span",ID,n.toDisplayString(e.t("form.globalClass")),1)])])],2),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.value,(b,S)=>(n.openBlock(),n.createElementBlock("div",{key:S,class:n.normalizeClass(["_fd-menu-item",{"is-active":S===e.activeIdx}]),onClick:x=>e.active(S)},[n.createElementVNode("div",PD,[n.createElementVNode("div",MD,[n.createElementVNode("span",null,"."+n.toDisplayString(S),1),b.label?(n.openBlock(),n.createElementBlock("span",LD,n.toDisplayString(b.label),1)):n.createCommentVNode("",!0)]),b.deletable!==!1?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-delete",onClick:n.withModifiers(x=>e.rm(S),["stop"])},null,8,jD)):n.createCommentVNode("",!0)])],10,FD))),128)),e.cus?(n.openBlock(),n.createElementBlock("div",zD,[n.createElementVNode("div",HD,[n.createVNode(y,{type:"text",value:e.cusValue,"onUpdate:value":t[1]||(t[1]=b=>e.cusValue=b),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("class.placeholder")},null,8,["value","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[2]||(t[2]=n.withModifiers((...b)=>e.addCus&&e.addCus(...b),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[3]||(t[3]=n.withModifiers((...b)=>e.closeCus&&e.closeCus(...b),["stop"]))})])])])):n.createCommentVNode("",!0)])]),_:1})]),_:1})]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gcc-r"},{default:n.withCtx(()=>[e.activeIdx||e.activeStyle?(n.openBlock(),n.createBlock(g,{key:0,class:"_fd-gcc-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save,style:{"margin-left":"8px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeIdx||e.activeStyle?(n.openBlock(),n.createBlock(C,{key:e.activeIdx,class:n.normalizeClass(e.activeStyle?"_fd-gcc-style":"")},{default:n.withCtx(()=>[e.activeStyle?(n.openBlock(),n.createBlock(E,{key:0,ref:"editor",modelValue:e.content,"onUpdate:modelValue":t[4]||(t[4]=b=>e.content=b)},null,8,["modelValue"])):(n.openBlock(),n.createBlock(v,{key:1,size:"small"},{default:n.withCtx(()=>[n.createVNode(_,{modelValue:e.handle,"onUpdate:modelValue":t[5]||(t[5]=b=>e.handle=b)},null,8,["modelValue"])]),_:1}))]),_:1},8,["class"])):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])])}const Vm=Ne(DD,[["render",UD]]),P3="",WD=n.defineComponent({name:"GlobalVariableConfig",emits:["update:modelValue"],props:{modelValue:Object},components:{Warning:Zn,FnEditor:po},inject:["designer"],data(){return{visible:!1,activeIdx:"",value:{},cus:!1,cusValue:"",handle:""}},computed:{t(){return this.designer.setupState.t},eventNum(){return Object.keys(this.modelValue||{}).length}},watch:{visible(e){e&&(this.activeIdx="",this.value=et(this.modelValue||{}))}},methods:{open(){this.visible=!0},active(e){this.activeIdx!==e&&(this.handle=this.value[e].handle||"",this.activeIdx=e)},addCus(){const e=this.cusValue&&this.cusValue.trim();if(e){const t="var_"+Ye();this.value[t]={label:e,handle:""},this.active(t),this.closeCus()}},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(){this.cus=!0},save(){if(!this.$refs.editor.save())return!1;this.value[this.activeIdx].handle=this.handle,this.activeIdx=""},rm(e){delete this.value[e],e===this.activeIdx&&(this.activeIdx="")},close(){this.activeIdx=""},submit(){this.activeIdx&&!this.save()||(this.$emit("update:modelValue",{...this.value}),this.visible=!1)}}}),GD={class:"_fd-gvc"},KD={class:"_fd-menu"},YD=["onClick"],QD={class:"_fd-event-title"},XD={class:"_fd-event-method"},JD={key:0,class:"_fd-label"},ZD=["onClick"],qD={key:0,class:"_fd-menu-item",style:{"padding-left":"0"}},eB={class:"_fd-gvc-title"};function tB(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),u=n.resolveComponent("Warning"),g=n.resolveComponent("a-layout-header"),y=n.resolveComponent("a-input"),C=n.resolveComponent("a-layout-content"),w=n.resolveComponent("a-layout"),A=n.resolveComponent("a-layout-sider"),E=n.resolveComponent("FnEditor"),_=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",GD,[n.createVNode(c,{color:"orange",count:e.eventNum},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:e.open},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.variable.btn")),1)]),_:1},8,["onClick"])]),_:1},8,["count"]),n.createVNode(_,{class:"_fd-gvc-dialog _fd-config-dialog",open:e.visible,"onUpdate:open":t[5]||(t[5]=v=>e.visible=v),centered:"",maskClosable:!1,destroyOnClose:!0,width:"980px"},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.variable.title"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.globalVariable")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[4]||(t[4]=v=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.submit,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gvc-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(A,{width:"255px"},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gvc-l"},{default:n.withCtx(()=>[n.createVNode(g,{class:"_fd-gvc-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{type:"link",size:"middle",onClick:e.cusEvent},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.variable.create")),1)]),_:1},8,["onClick"])]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createElementVNode("div",KD,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.value,(v,m)=>(n.openBlock(),n.createElementBlock("div",{key:m,class:n.normalizeClass(["_fd-menu-item",{"is-active":m===e.activeIdx}]),onClick:n.withModifiers(b=>e.active(m),["stop"])},[n.createElementVNode("div",QD,[n.createElementVNode("div",XD,[n.createElementVNode("span",null,n.toDisplayString(m),1),v.label?(n.openBlock(),n.createElementBlock("span",JD,n.toDisplayString(v.label),1)):n.createCommentVNode("",!0)]),v.deletable!==!1?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-delete",onClick:n.withModifiers(b=>e.rm(m),["stop"])},null,8,ZD)):n.createCommentVNode("",!0)])],10,YD))),128)),e.cus?(n.openBlock(),n.createElementBlock("div",qD,[n.createElementVNode("div",eB,[n.createVNode(y,{type:"text",value:e.cusValue,"onUpdate:value":t[0]||(t[0]=v=>e.cusValue=v),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("computed.variable.placeholder")},null,8,["value","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[1]||(t[1]=n.withModifiers((...v)=>e.addCus&&e.addCus(...v),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[2]||(t[2]=n.withModifiers((...v)=>e.closeCus&&e.closeCus(...v),["stop"]))})])])])):n.createCommentVNode("",!0)])]),_:1})]),_:1})]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gvc-r"},{default:n.withCtx(()=>[e.activeIdx?(n.openBlock(),n.createBlock(g,{key:0,class:"_fd-gvc-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save,style:{"margin-left":"8px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeIdx?(n.openBlock(),n.createBlock(C,{key:e.activeIdx},{default:n.withCtx(()=>[n.createVNode(E,{ref:"editor",modelValue:e.handle,"onUpdate:modelValue":t[3]||(t[3]=v=>e.handle=v),name:"handle",args:["get","api"]},null,8,["modelValue"])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])])}const Rm=Ne(WD,[["render",tB]]),M3="",nB=n.defineComponent({name:"JsonPreview",components:{StructEditor:zc},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=ze.toJson(this.value)},handleBlur(){this.$refs.editor.save()&&ze.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 oB(e,t,i,r,o,s){const d=n.resolveComponent("a-layout-header"),c=n.resolveComponent("StructEditor"),u=n.resolveComponent("a-layout-content"),g=n.resolveComponent("a-layout");return n.openBlock(),n.createBlock(g,{class:"_fc-json-preview"},{default:n.withCtx(()=>[n.createVNode(d,{style:{height:"40px"},class:"_fc-l-tabs"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-tab",{active:e.active==="rule"}]),onClick:t[0]||(t[0]=y=>e.active="rule")},n.toDisplayString(e.t("designer.json")),3),n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-tab",{active:e.active==="options"}]),onClick:t[1]||(t[1]=y=>e.active="options")},n.toDisplayString(e.t("designer.form")),3)]),_:1}),n.createVNode(u,{style:{padding:"8px"}},{default:n.withCtx(()=>[n.createVNode(c,{ref:"editor",modelValue:e.value,"onUpdate:modelValue":t[2]||(t[2]=y=>e.value=y),onBlur:e.handleBlur,onFocus:e.handleFocus,format:"",style:{height:"100%"}},null,8,["modelValue","onBlur","onFocus"])]),_:1})]),_:1})}const iB=Ne(nB,[["render",oB]]),L3="",rB=n.defineComponent({name:"Struct",emits:["update:modelValue"],props:{modelValue:[Object,Array,Function],title:String,defaultValue:{require:!1},validate:Function},inject:["designer"],computed:{t(){return this.designer.setupState.t},configured(){return!at.empty(this.modelValue)&&Object.keys(this.modelValue).length>0}},data(){return{editor:null,visible:!1,oldVal:null}},watch:{modelValue(){this.load()},visible(e){e&&this.load()}},methods:{load(){const e=fn(Uu(this.modelValue?et(this.modelValue):this.defaultValue));this.oldVal=e,this.$nextTick(()=>{this.editor=n.markRaw(fo(this.$refs.editor,{lineNumbers:!0,mode:"javascript",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:e?Ii.js(e,{indent_size:"2",indent_char:" ",max_preserve_newlines:"5",indent_scripts:"separate"}):""}))})},onOk(){const e=(this.editor.getValue()||"").trim();let t;try{t=new Function("return "+e)()}catch(i){return console.error(i),qt(this.t("struct.errorMsg")),!1}return this.validate&&this.validate(t)===!1?(qt(this.t("struct.errorMsg")),!1):(this.visible=!1,fn(t)!==this.oldVal&&this.$emit("update:modelValue",t),!0)}}}),aB={class:"_fd-struct"},lB={key:0,ref:"editor"};function sB(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),u=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",aB,[n.createVNode(c,{color:"orange",dot:e.configured},{default:n.withCtx(()=>[n.createElementVNode("div",{onClick:t[1]||(t[1]=g=>e.visible=!0)},[n.renderSlot(e.$slots,"default",{},()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:t[0]||(t[0]=g=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title||e.t("struct.title")),1)]),_:1})])])]),_:3},8,["dot"]),n.createVNode(u,{class:"_fd-struct-dialog _fd-config-dialog",open:e.visible,"onUpdate:open":t[3]||(t[3]=g=>e.visible=g),title:e.title||e.t("struct.title"),width:"800px",centered:"",maskClosable:!1,destroyOnClose:!0},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[2]||(t[2]=g=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.onOk,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createElementBlock("div",lB,null,512)):n.createCommentVNode("",!0)]),_:1},8,["open","title"])])}const Im=Ne(rB,[["render",sB]]),j3="",dB=n.defineComponent({name:"PropsInput",components:{Struct:Im},inject:["designer"],data(){return{}},computed:{t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},props(){var i;const e=((i=this.activeRule._fc_store)==null?void 0:i.props_keys)||[],t={};return e.forEach(r=>{this.activeRule.props&&this.activeRule.props[r]&&(t[r]=this.activeRule.props[r])}),t}},methods:{onInput(e){this.activeRule.props||(this.activeRule.props={}),this.activeRule._fc_store||(this.activeRule._fc_store={}),Object.keys(this.props).forEach(i=>{(e||{})[i]==null&&delete this.activeRule.props[i]}),Cd(this.activeRule.props,e||{});const t=Object.keys(e||{});t.length?this.activeRule._fc_store.props_keys=t:delete this.activeRule._fc_store.props_keys}}});function cB(e,t,i,r,o,s){const d=n.resolveComponent("a-tooltip"),c=n.resolveComponent("Struct");return n.openBlock(),n.createBlock(c,{class:"_fd-props-input",modelValue:e.props,"onUpdate:modelValue":e.onInput,title:e.t("designer.customProps")},{default:n.withCtx(()=>[n.createVNode(d,{title:e.t("designer.customProps"),placement:"topRight"},{default:n.withCtx(()=>t[0]||(t[0]=[n.createElementVNode("i",{class:"fc-icon icon-edit"},null,-1)])),_:1},8,["title"])]),_:1},8,["modelValue","onUpdate:modelValue","title"])}const uB=Ne(dB,[["render",cB]]),z3="",fB=n.defineComponent({name:"LanguageConfig",inject:["designer"],computed:{localeOptions(){return this.designer.setupState.getConfig("localeOptions",[{value:"zh-cn",label:"\u7B80\u4F53\u4E2D\u6587"},{value:"en",label:"English"}])},t(){return this.designer.setupState.t},tableColumns(){const e=[{title:"Key",width:"90px",dataIndex:"key"}];return this.localeOptions.forEach(t=>{e.push({minWidth:"100px",title:t.label,dataIndex:t.value})}),e.push({title:this.t("tableOptions.handle"),width:"75px",dataIndex:"handle"}),e}},data(){return{column:[],uni:0,selected:[]}},methods:{copy(e){Kn(e)},addColumn(){this.column.unshift({key:this.randomString(),input:!0})},saveColumn(e,t){e.input=t||!1;const i=this.designer.setupState.formOptions.language;this.localeOptions.forEach(r=>{i[r.value]||(i[r.value]={}),i[r.value][e.key]=e[r.value]})},rmColumn(e){const t=this.column[e];this.column.splice(e,1);const i=this.designer.setupState.formOptions.language;this.localeOptions.forEach(r=>{i[r.value]&&delete i[r.value][t.key]})},batchRmColumn(){this.selected.forEach(e=>{this.rmColumn(this.column.indexOf(e))}),this.selected=[]},selectionChange(e,t){this.selected=t},randomString(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let t="";const i=e.length;for(let r=0;r<7;r++)t+=e.charAt(Math.floor(Math.random()*i));return e.charAt(this.uni++%26)+t}},mounted(){const e=this.designer.setupState.formOptions.language||{},t={};Object.keys(e).forEach(i=>{Object.keys(e[i]).forEach(r=>{t[r]||(t[r]={key:r}),t[r][i]=e[i][r]})}),this.column=Object.values(t)}}),pB={class:"_fd-language-config"},hB={class:"_fc-l-label"},mB={class:"_fc-l-info"},gB={class:"_fd-lc-header"},vB={class:"_fd-lc-body"},yB={key:1,class:"_fd-lc-handle"},bB=["onClick"],CB=["onClick"],_B=["onClick"],wB=["onClick"];function EB(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-input"),u=n.resolveComponent("a-table");return n.openBlock(),n.createElementBlock("div",pB,[n.createElementVNode("div",hB,n.toDisplayString(e.t("language.name")),1),n.createElementVNode("div",mB,n.toDisplayString(e.t("warning.language")),1),n.createElementVNode("div",gB,[n.createVNode(d,{size:"small",onClick:e.addColumn},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("language.add")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",danger:"",plain:"",disabled:!e.selected.length,onClick:e.batchRmColumn},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("language.batchRemove")),1)]),_:1},8,["disabled","onClick"])]),n.createElementVNode("div",vB,[n.createVNode(u,{"data-source":e.column,columns:e.tableColumns,"row-selection":{onChange:e.selectionChange},size:"small",ref:"table",pagination:!1,"row-key":"key"},{bodyCell:n.withCtx(g=>[g.column.dataIndex==="key"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(g.record.key),1)],64)):g.column.dataIndex==="handle"?(n.openBlock(),n.createElementBlock("div",yB,[g.record.input?(n.openBlock(),n.createElementBlock("i",{key:1,class:"fc-icon icon-check",onClick:y=>e.saveColumn(g.record)},null,8,CB)):(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-edit",onClick:y=>g.record.input=!0},null,8,bB)),n.createElementVNode("i",{class:"fc-icon icon-group",onClick:y=>e.copy(g.record.key)},null,8,_B),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:y=>e.rmColumn(g.index)},null,8,wB)])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[g.record.input?(n.openBlock(),n.createBlock(c,{key:0,size:"small",value:g.record[g.column.dataIndex],"onUpdate:value":y=>g.record[g.column.dataIndex]=y,onBlur:y=>e.saveColumn(g.record,!0)},null,8,["value","onUpdate:value","onBlur"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(g.record[g.column.dataIndex]||"-"),1)],64))],64))]),_:1},8,["data-source","columns","row-selection"])])])}const AB=Ne(fB,[["render",EB]]),H3="",SB=n.defineComponent({name:"SlotsConfig",inject:["designer"],components:{ConfigItem:Sn},data(){return{type:["icon","text"],easySlots:{}}},computed:{t(){return this.designer.setupState.t},slots(){var i,r;const e=((r=(i=this.designer.setupState)==null?void 0:i.activeRule)==null?void 0:r._menu)||{};return(e.easySlots||[]).map(o=>{if(typeof o=="string")return{value:o,label:this.t("com."+e.name+".slots."+o)||this.t("slots."+o)||this.t("props."+o)||o};{const s={...o};return s.label||(s.label=this.t("com."+e.name+".slots."+o.value)||this.t("slots."+o.value)||this.t("props."+o.value)||o.value),s}})},modelValue(){var e,t;return((t=(e=this.designer.setupState)==null?void 0:e.activeRule)==null?void 0:t.$easySlots)||{}},icons(){return as([...this.designer.setupState.getConfig("icons",[]),"icon-layout","icon-column1","icon-column2","icon-column3","icon-column4","icon-tab","icon-config-event","icon-step-form","icon-slider","icon-dialog","icon-justify-spacearound","icon-upload","icon-copy","icon-time-range","icon-task-add","icon-justify-spacebetween","icon-import","icon-config-base","icon-alignitems-stretch","icon-alignitems-flexend","icon-check","icon-auto","icon-calendar","icon-config-style","icon-config-advanced","icon-config-props","icon-delete-circle2","icon-delete-circle","icon-delete","icon-direction-rowreverse","icon-display-flex","icon-drag","icon-display-block","icon-data","icon-edit2","icon-edit","icon-add-col","icon-display-inlineblock","icon-config-validate","icon-down","icon-display-inline","icon-eye","icon-eye-close","icon-preview","icon-flex-nowrap","icon-folder","icon-form-circle","icon-flex-wrap","icon-form","icon-form-item","icon-icon","icon-image","icon-justify-flexstart","icon-justify-center","icon-justify-stretch","icon-link2","icon-minus","icon-menu2","icon-more","icon-menu","icon-language","icon-pad","icon-mobile","icon-page-max","icon-move","icon-page-min","icon-pre-step","icon-pc","icon-page","icon-refresh","icon-radius","icon-save-filled","icon-question","icon-scroll","icon-script","icon-setting","icon-save","icon-shadow","icon-variable","icon-yes","icon-shadow-inset","icon-date","icon-date-range","icon-collapse","icon-switch","icon-subform","icon-tree-select","icon-value","icon-alert","icon-card","icon-checkbox","icon-cascader","icon-button","icon-data-table","icon-group","icon-divider","icon-flex","icon-descriptions","icon-html","icon-editor","icon-input","icon-link","icon-password","icon-radio","icon-row","icon-inline","icon-rate","icon-color","icon-select","icon-json","icon-number","icon-space","icon-table-form","icon-table-form2","icon-time","icon-span","icon-textarea","icon-tooltip","icon-slot","icon-transfer","icon-tag","icon-watermark","icon-tree","icon-table","icon-add-child","icon-add2","icon-add","icon-alignitems-baseline","icon-add-circle","icon-alignitems-center"])}},watch:{modelValue:{handler:function(e){const t={};this.slots.forEach(({value:i,label:r,type:o})=>{e[i]?t[i]={...e[i]}:this.easySlots[i]?t[i]={type:this.easySlots[i].type}:t[i]={type:o||"icon",value:""},t[i].only=o,t[i].label=r,t[i].popVisible=!1}),this.easySlots=t},immediate:!0}},methods:{changeIcon(e,t){e.value=t,this.onChange(),e.popVisible=!1},changeType(e){e.value&&(e.value="",this.onChange())},onChange(){var e;if((e=this.designer.setupState)!=null&&e.activeRule){const t={};Object.keys(this.easySlots).forEach(i=>{this.easySlots[i].value&&(t[i]={...this.easySlots[i]},delete t[i].label,delete t[i].only,delete t[i].popVisible)}),Object.keys(t).length===0?delete this.designer.setupState.activeRule.$easySlots:this.designer.setupState.activeRule.$easySlots=t,this.designer.setupState.activeRule.key=Ye()}}},mounted(){}}),xB={class:"_fd-slots-config"},kB={class:"_fd-slots-icons"},NB=["onClick"];function TB(e,t,i,r,o,s){const d=n.resolveComponent("a-select-option"),c=n.resolveComponent("a-select"),u=n.resolveComponent("a-popover"),g=n.resolveComponent("a-input"),y=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",xB,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.easySlots,(C,w)=>(n.openBlock(),n.createBlock(y,{label:C.label},{default:n.withCtx(()=>[n.createVNode(g,{size:"small",value:C.value,"onUpdate:value":A=>C.value=A,"allow-clear":"",onBlur:e.onChange},n.createSlots({_:2},[C.only?void 0:{name:"addonBefore",fn:n.withCtx(()=>[n.createVNode(c,{size:"small",value:C.type,"onUpdate:value":A=>C.type=A,onChange:A=>e.changeType(C)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.type,A=>(n.openBlock(),n.createBlock(d,{value:A},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props."+A)),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["value","onUpdate:value","onChange"])]),key:"0"},C.type==="icon"?{name:"addonAfter",fn:n.withCtx(()=>[n.createVNode(u,{open:C.popVisible,"onUpdate:open":A=>C.popVisible=A,ref_for:!0,ref:w,placement:"bottom",overlayClassName:"_fd-slots-config-pop",trigger:"click"},{content:n.withCtx(()=>[n.createElementVNode("div",kB,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.icons,A=>(n.openBlock(),n.createElementBlock("div",{class:"_fd-slots-icon",onClick:E=>e.changeIcon(C,A)},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon iconfont",A])},null,2)],8,NB))),256))])]),default:n.withCtx(()=>[t[0]||(t[0]=n.createElementVNode("i",{class:"fc-icon icon-menu"},null,-1))]),_:2},1032,["open","onUpdate:open"])]),key:"1"}:void 0]),1032,["value","onUpdate:value","onBlur"])]),_:2},1032,["label"]))),256))])}const OB=Ne(SB,[["render",TB]]),U3="",DB=n.defineComponent({name:"QuickLayout",inject:["designer"],data(){return{popVisible:!1}},computed:{t(){return this.designer.setupState.t},layout(){return[{span:24,label:this.t("designer.col1")},{span:12,label:this.t("designer.col2")},{span:8,label:this.t("designer.col3")},{span:6,label:this.t("designer.col4")}]}},methods:{check(e){var i,r,o,s,d;if((i=e==null?void 0:e._menu)!=null&&i.subForm)return!1;let t=e.__fc__.parent;for(;t;){if(((o=(r=t.rule)==null?void 0:r._menu)==null?void 0:o.menu)==="layout"||((d=(s=t.rule)==null?void 0:s._menu)==null?void 0:d.subForm))return!1;t=t.parent}return!0},change(e){const t=this.designer.setupState.dragForm.api.model(),i=this.layout[e].span;let r=!1;Object.keys(t).forEach(o=>{(Array.isArray(t[o])?t[o]:[t[o]]).forEach(d=>{this.check(d)&&(d.col||(d.col={}),r=r||d.col.span!==i,d.col.span=i)})}),this.popVisible=!1,r&&this.designer.setupState.addOperationRecord()}}}),BB={class:"_fd-quick-layout"},$B={class:"_fd-quick-layout-content"},VB=["onClick"];function RB(e,t,i,r,o,s){const d=n.resolveComponent("a-tooltip"),c=n.resolveComponent("a-popover");return n.openBlock(),n.createElementBlock("div",BB,[n.createVNode(c,{open:e.popVisible,"onUpdate:open":t[0]||(t[0]=u=>e.popVisible=u),ref:"pop",placement:"bottom",trigger:"click"},{content:n.withCtx(()=>[n.createElementVNode("div",$B,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.layout,(u,g)=>(n.openBlock(),n.createElementBlock("div",{onClick:y=>e.change(g)},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon","icon-column"+(g+1)])},null,2),n.createElementVNode("span",null,n.toDisplayString(u.label),1)],8,VB))),256))])]),default:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{effect:"dark",title:e.t("designer.layout"),placement:"top"},{default:n.withCtx(()=>t[1]||(t[1]=[n.createElementVNode("i",{class:"fc-icon icon-layout"},null,-1)])),_:1},8,["title"])])]),_:1},8,["open"])])}const IB=Ne(DB,[["render",RB]]),W3="",FB=n.defineComponent({name:"AiChat",inject:["designer"],data(){return{message:"",page:0,limit:3,pageData:[],question:["\u751F\u6210\u4E00\u4E2A\u5C31\u8BCA\u6EE1\u610F\u5EA6\u95EE\u5377\u8868\u5355","\u521B\u5EFA\u4E00\u4E2A\u5EFA\u8BAE\u6536\u96C6\u8868\u5355\uFF0C\u5305\u542B\u8054\u7CFB\u4EBA\u3001\u8054\u7CFB\u90AE\u7BB1\u3001\u5206\u7C7B\u548C\u5EFA\u8BAE\u5185\u5BB9","\u8FFD\u52A0\u4E00\u4E2A\u7528\u6237\u4FE1\u606F\u8868\u5355",'\u6DFB\u52A0\u4E00\u4E2A\u6807\u7B7E\u7EC4\u4EF6\uFF0C\u663E\u793A\u6587\u672C\u4E3A "Tag"',"\u5220\u9664\u5546\u54C1\u7B80\u4ECB\u5B57\u6BB5",'\u5F53\u5355\u9009\u6846\u9009\u62E9 "\u9009\u98791" \u65F6\uFF0C\u663E\u793A\u8F93\u5165\u6846\u7EC4\u4EF6',"\u8BBE\u7F6E\u8F93\u5165\u6846\u4E3A\u5FC5\u586B\uFF0C\u5E76\u9650\u5236\u957F\u5EA6\u5FC5\u987B\u5927\u4E8E13","\u5546\u54C1\u4EF7\u683C\u5B57\u6BB5\u4F7F\u7528\u6570\u5B57\u8F93\u5165\u6846\u7EC4\u4EF6","\u7ED9\u8F93\u5165\u7C7B\u7EC4\u4EF6\u8865\u5145\u5360\u4F4D\u63D0\u793A\u6587\u672C\uFF08placeholder\uFF09"],chat:null,history:[]}},computed:{t(){return this.designer.setupState.t},api(){var e,t;return((t=(e=this.designer.props.config)==null?void 0:e.ai)==null?void 0:t.api)||"https://api.form-create.com/ai/v1/chat/form"},token(){var e,t;return(t=(e=this.designer.props.config)==null?void 0:e.ai)==null?void 0:t.token}},methods:{refresh(){this.page*this.limit<this.question.length?this.page++:this.page=1;const e=(this.page-1)*this.limit,t=e+this.limit;this.pageData=this.question.slice(e,t)},send(){const e=(this.message||"").trim();!e||(this.chat={message:e,status:"loading"},this.history.push(this.chat),this.$nextTick(()=>{this.$refs.chat[this.$refs.chat.length-1].scrollIntoView({block:"end"})}),this.message="",this.fetch())},suspend(){this.chat.status="success",this.chat=null},fetch(){fetch(this.api,{method:"POST",headers:{Authorization:this.token,"Content-Type":"application/json"},body:JSON.stringify({ui:"ant-design-vue",message:this.chat.message,rule:this.designer.setupState.getJson()})}).then(e=>{e.json().then(t=>{this.chat&&(t.status===200?(this.chat.status="success",this.designer.setupState.setRule(t.data.rule)):(this.chat.status="fail",t.message&&ts(t.message)),this.chat=null)})}).catch(()=>{this.chat=null})},getHistory(){const e=localStorage.getItem("fc_ai_history");e&&(this.history=JSON.parse(e))},clear(){this.history=[],localStorage.removeItem("fc_ai_history")}},created(){this.getHistory(),this.refresh()},mounted(){this.$refs.chat&&this.$nextTick(()=>{this.$refs.chat[this.$refs.chat.length-1].scrollIntoView({block:"end"})})},unmounted(){localStorage.setItem("fc_ai_history",JSON.stringify(this.history))}}),PB={class:"_fd-ai-chat"},MB={class:"_fd-ai-chat-header"},LB={class:"_fc-l-label"},jB={class:"_fc-l-info"},zB={class:"_fd-ai-chat-prompt"},HB=["onClick"],UB={class:"_fd-ai-chat-history"},WB={class:"_fd-ai-chat-history-chat"},GB={key:0},KB={key:1},YB={key:2},QB={class:"_fd-ai-chat-input"},XB={class:"_fd-ai-chat-clear"},JB={class:"_fd-ai-chat-input-wrapper"};function ZB(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-textarea");return n.openBlock(),n.createElementBlock("div",PB,[n.createElementVNode("div",MB,[n.createElementVNode("div",LB,[t[4]||(t[4]=n.createElementVNode("i",{class:"fc-icon icon-ai bright"},null,-1)),n.createTextVNode(" FormCreate "+n.toDisplayString(e.t("ai.name")),1)]),n.createElementVNode("div",jB,n.toDisplayString(e.t("ai.info")),1),n.createElementVNode("div",zB,[n.createElementVNode("span",null,n.toDisplayString(e.t("ai.try")),1),n.createElementVNode("span",{class:"_fd-ai-chat-refresh",onClick:t[0]||(t[0]=(...u)=>e.refresh&&e.refresh(...u))},[t[5]||(t[5]=n.createElementVNode("i",{class:"fc-icon icon-refresh2"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("ai.change")),1)])]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.pageData,u=>(n.openBlock(),n.createElementBlock("div",{class:"_fd-ai-chat-question",onClick:g=>e.message=u},[n.createElementVNode("span",null,n.toDisplayString(u),1),t[6]||(t[6]=n.createElementVNode("i",{class:"fc-icon icon-down"},null,-1))],8,HB))),256))]),n.createElementVNode("div",UB,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.history,(u,g)=>(n.openBlock(),n.createElementBlock("div",{key:g,class:"_fd-ai-chat-history-item",ref_for:!0,ref:"chat"},[n.createElementVNode("div",WB,[n.createElementVNode("div",null,n.toDisplayString(u.message),1)]),n.createElementVNode("div",{class:n.normalizeClass(["_fd-ai-chat-history-status",u.status||"success"])},[n.createElementVNode("div",null,[u.status==="loading"?(n.openBlock(),n.createElementBlock("div",GB,n.toDisplayString(e.t("ai.loading")),1)):u.status==="fail"?(n.openBlock(),n.createElementBlock("div",KB,[t[7]||(t[7]=n.createElementVNode("i",{class:"fc-icon icon-warning"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("ai.fail")),1)])):(n.openBlock(),n.createElementBlock("div",YB,[t[8]||(t[8]=n.createElementVNode("i",{class:"fc-icon icon-yes"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("ai.success")),1)]))])],2)],512))),128))]),n.createElementVNode("div",QB,[n.createElementVNode("div",XB,[n.createVNode(d,{size:"small",type:"link",onClick:e.clear},{default:n.withCtx(()=>t[9]||(t[9]=[n.createElementVNode("i",{class:"fc-icon icon-delete2"},null,-1),n.createTextVNode(" \u6E05\u7A7A")])),_:1},8,["onClick"])]),n.createElementVNode("div",JB,[n.createVNode(c,{value:e.message,"onUpdate:value":t[1]||(t[1]=u=>e.message=u),placeholder:e.t("ai.placeholder"),resize:"none"},null,8,["value","placeholder"])]),e.chat&&e.chat.status==="loading"?(n.openBlock(),n.createElementBlock("div",{key:0,class:"fc-icon icon-suspend",onClick:t[2]||(t[2]=(...u)=>e.suspend&&e.suspend(...u))})):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["fc-icon icon-send",{disabled:!e.message||!e.message.trim()}]),onClick:t[3]||(t[3]=(...u)=>e.send&&e.send(...u))},null,2))])])}const qB=Ne(FB,[["render",ZB]]);Vi.registerLanguage("javascript",aT),Vi.registerLanguage("xml",rT);const e$=n.defineComponent({name:"FcDesigner",components:{AiChat:qB,SlotsConfig:OB,Warning:Zn,QuickLayout:IB,LanguageConfig:AB,PropsInput:uB,JsonPreview:iB,GlobalVariableConfig:Rm,GlobalClassConfig:Vm,GlobalEventConfig:xm,GlobalFetchConfig:km,FormList:O2,FieldList:v2,TypeSelect:a2,ConfigTitle:_m,VariableConfig:Tr,ToolsBar:XT,SubList:UT,PageInput:AT,fcDraggable:Ci,DragForm:ze.$form(),ViewForm:co.$form(),DragFormMobile:Oi.$form(),ViewFormMobile:ek.$form(),EventConfig:_h,ConfigItem:Sn,VNode:wh},props:{menu:Array,field:Array,list:Array,theme:String,height:[String,Number],config:{type:Object,default:()=>({})},mask:{type:Boolean,default:void 0},locale:Object,handle:Array},emits:["active","create","copy","delete","drag","inputData","inputPageData","save","clear","switchForm","copyRule","pasteRule","sortUp","sortDown","onChangeDevice"],setup(e){var pe,se,ye,fe,ue,he;let t;t=!1;const{menu:i,height:r,mask:o,locale:s,handle:d}=n.toRefs(e),c=n.getCurrentInstance(),u=n.reactive({active:null});n.provide("fcx",u),n.provide("designer",c);const g=n.toRef(e,"config",{}),y=n.toRef(e,"theme"),C=n.toRef(e,"field",[]),w=n.toRef(e,"list",[]),A=n.toRef(g.value,"baseRule",null),E=n.toRef(g.value,"componentRule",{}),_=n.toRef(g.value,"updateDefaultRule",{}),v=n.toRef(g.value,"validateRule",null),m=n.toRef(g.value,"formRule",null),b=n.computed(()=>{const $=r.value;return $?at.Number($)?`${$}px`:$:"100%"}),S=n.computed(()=>g.value.fieldReadonly!==!1),x=n.computed(()=>g.value.fieldList||[]),O=n.computed(()=>g.value.varList||[]),D=n.computed(()=>g.value.hiddenMenu||[]),R=n.computed(()=>g.value.hiddenItem||[]),I=n.computed(()=>g.value.hiddenDragMenu===!0),z=n.computed(()=>g.value.hiddenDragBtn===!0),T=n.computed(()=>c.refs.dragCon.clientHeight),B=n.computed(()=>{var $;return((($=s.value)==null?void 0:$.name)||"zh-cn")==="zh-cn"?n2:null}),L=n.computed(()=>{const $=["base","advanced","props","slots","style","event","validate"];let Y=g.value.configFormOrder?[...g.value.configFormOrder]:[],Q=[];return Y.length?[...Y,...$].forEach(K=>{Q.indexOf(K)===-1&&$.indexOf(K)>-1&&Q.push(K)}):Q=$,Q.map(K=>`"${K}"`).join(" ")});n.watch(y,($,Y)=>{Y&&document.body.classList.remove("fd-theme-"+Y),$&&document.body.classList.add("fd-theme-"+$),F.updateThemeColor()});let U=tl;s.value&&(U=is(s).t);const W=(...$)=>U(...$),V=($,Y,...Q)=>{if(Y){if(at.Function(Y))return Y(...Q);if(Y.rule){let K=Y.rule(...Q);return Y.prepend?K=[...K,...$(...Q)]:Y.append&&(K=[...$(...Q),...K]),K}}return $(...Q)},k=n.reactive({cacheProps:{},themeColor:{colorPrimary:"#2E73FF",colorInfo:"#2E73FF",colorSuccess:"#00C050",colorError:"#FF2E2E"},operation:{idx:-1,list:[]},pageData:[],moveRule:null,addRule:null,added:null,bus:ay(),device:((pe=g.value)==null?void 0:pe.device)||"pc",activeModule:"base",activeTab:"form",activeMenuTab:"menu",activePage:null,activeRule:null,children:n.ref([]),treeInfo:[],menuList:i.value||Db(),dragRuleList:{},eventShow:!1,unloadStatus:!1,dragLoading:!1,previewStatus:"form",previewDevice:"pc",t:W,preview:{state:!1,rule:[],option:{},api:{}},inputForm:{state:!1,rule:[],option:{},api:{},data:{},key:""},dragForm:n.ref({rule:[],api:{}}),formOptions:{},oldOptionsKeys:[],form:{rule:V(Yu,m.value,{t:W}),api:{},option:{global:{input:((se=g.value)==null?void 0:se.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{allowClear:!0}}},form:{layout:"vertical",labelAlign:"left",labelWrap:!0,size:"small"},submitBtn:!1},value:{form:{},submitBtn:!1}},baseForm:{isShow:!1,rule:V(lr,A.value,{t:W}),api:{},value:{},options:{global:{input:((ye=g.value)==null?void 0:ye.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{allowClear:!0}}},form:{layout:"vertical",labelAlign:"left",labelWrap:!0,size:"small"},submitBtn:!1,mounted:$=>{$.activeRule=k.activeRule,$.setValue($.options.formData||{})}}},advancedForm:{isShow:!1,rule:Xu({t:W}),api:{},value:{},options:{global:{input:((fe=g.value)==null?void 0:fe.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{allowClear:!0}}},form:{layout:"vertical",labelAlign:"left",labelWrap:!0,size:"small"},submitBtn:!1,mounted:$=>{$.activeRule=k.activeRule,$.setValue($.options.formData||{})}}},styleForm:{isShow:!1,rule:Qu({t:W}),api:{},value:{},options:{form:{layout:"vertical",labelAlign:"left",labelWrap:!0,size:"small"},submitBtn:!1,mounted:$=>{$.activeRule=k.activeRule,$.setValue($.options.formData||{})}}},validateForm:{isShow:!1,rule:V(Ju,v.value,{t:W}),api:{},value:[],options:{form:{layout:"vertical",labelAlign:"left",labelWrap:!0,size:"small"},submitBtn:!1,mounted:$=>{$.activeRule=k.activeRule,$.setValue($.options.formData||{})}}},propsForm:{isShow:!1,variable:!1,rule:[],api:{},value:{},options:{global:{input:((ue=g.value)==null?void 0:ue.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{allowClear:!0}}},form:{layout:"vertical",labelAlign:"left",labelWrap:!0,size:"small"},submitBtn:!1,mounted:$=>{$.activeRule=k.activeRule,$.setValue($.options.formData||{})}}},customForm:{isShow:!1,config:null,key:"",rule:[],api:{},options:{global:{input:((he=g.value)==null?void 0:he.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{allowClear:!0}}},form:{layout:"vertical",labelAlign:"left",size:"small"},submitBtn:!1}}}),M=n.computed(()=>{const $=k.activeRule;if(!$||!$._menu.children)return null;const Y=k.dragRuleList[$._fc_drag_tag],Q=k.dragRuleList[$._menu.children];let K=$.children;return Y.inside&&(K=K[0].children),Q.inside||(K=K.map(te=>te.children[0])),K.filter(te=>te._fc_drag_tag===Q.name)});n.watch(()=>k.preview.state,function($){$||n.nextTick(()=>{k.previewStatus="form",k.preview.rule=k.preview.option=null})}),n.watch(()=>k.previewStatus,$=>{k.preview.rule&&(k.preview.option.preview=$==="preview")});let j=null;const Z=($,Y)=>{if($[10]!==">"){if($=$.replace("formCreate",""),!$)return;$=fa($)}else $=$.replace("formCreate>","");const Q=$.split(">"),K=Q.pop();let te=k.activeRule;Q.forEach((q,oe)=>{oe||(q=fa(q)),te[q]||(te[q]={}),te=te[q]}),Y({source:te,field:K})},J=n.computed(()=>k.pageData.filter($=>!$.default).length);n.watch(()=>s.value,$=>{U=$?is(s).t:tl,F.clearActiveRule();const Y=k.form.api.formData&&k.form.api.formData(),Q=k.baseForm.api.formData&&k.baseForm.api.formData(),K=k.validateForm.api.formData&&k.validateForm.api.formData();k.validateForm.rule=V(Ju,v.value,{t:W}),k.baseForm.rule=V(lr,A.value,{t:W}),k.form.rule=V(Yu,m.value,{t:W}),k.styleForm.rule=Qu({t:W}),k.advancedForm.rule=Xu({t:W}),k.cacheProps={};const te=k.activeRule;let q=null;te&&(q=k.propsForm.api.formData&&k.propsForm.api.formData(),k.propsForm.rule=k.cacheProps[te._fc_id]=F.getPropsRule(te)),n.nextTick(()=>{Y&&k.form.api.setValue(Y),Q&&k.baseForm.api.setValue(Q),K&&k.validateForm.api.setValue(K),q&&k.propsForm.api.setValue(q)})});const F={setDevice($){k.device=$,c.emit("changeDevice",$)},updateThemeColor(){const $=window.getComputedStyle(c.refs.designer.$el);k.themeColor.colorPrimary=$.getPropertyValue("--fc-style-color-1"),k.themeColor.colorSuccess=$.getPropertyValue("--fc-style-color-2"),k.themeColor.colorError=$.getPropertyValue("--fc-style-color-3"),k.themeColor.colorInfo=k.themeColor.colorPrimary},initPage(){k.children=F.makeChildren([]),k.dragForm.rule=F.makeDragRule(k.children),k.operation=k.pageData[0]?k.pageData[0].operation:{idx:-1,list:[]},k.pageData=[{default:!0,rule:k.dragForm.rule,operation:k.operation}],k.activePage=k.pageData[0]},changePage($){const Y=k.pageData[$];if(k.activePage!==Y){if(k.activePage){const Q=k.activePage;Q.rule=k.dragForm.rule,Q.operation=k.operation}Y.operation||(Y.operation={idx:-1,list:[]}),k.dragForm.rule=Y.rule,Y.default?k.children=Y.rule[0].children:k.children=Y.rule[0].children[0].children[0].children,k.activePage=Y,k.operation=Y.operation,k.preview.state=!1,k.inputForm.state=!1,F.clearActiveRule(),F.updateTree()}},deletePage($){$&&(k.pageData[$]===k.activePage&&F.changePage(0),k.pageData.splice($,1))},copyPage($){if($){const Y=k.pageData[$],Q=et(k.pageData[$].rule)[0],K=Q.type==="DragTool"?Q.children[0]:Q;K.name="ref_"+Ye(),K._fc_id="id_"+Ye(),Hh(K,Y.config.labelField,pi(K,Y.config.labelField,"")+" Copy"),k.pageData.splice($+1,0,{config:Y.config,type:Y.type,main:K,rule:[Q]})}},addPage($){const Y=F.makeRule(k.dragRuleList[$]);F.appendPage($,Y)},appendPage($,Y){const Q=Y.type==="DragTool"?Y.children[0]:Y;k.pageData.push({config:k.dragRuleList[$].container,main:Q,type:$,rule:[Y]})},openGlobalFetchDialog(){const $=c.refs.globalFetch;$&&$.open()},openGlobalClassDialog(){const $=c.refs.globalClass;$&&$.open()},openGlobalEventDialog(){const $=c.refs.globalEvent;$&&$.open()},openGlobalVariableDialog(){const $=c.refs.globalVariable;$&&$.open()},unWatchActiveRule(){j&&j(),j=null},watchActiveRule(){F.unWatchActiveRule(),j=n.watch(()=>k.activeRule,function($){$&&F.updateRuleFormData()},{deep:!0,flush:"post"})},makeChildren($){return n.reactive({children:$}).children},addMenu($){if(!$.name||!$.list)return;let Y=!0;k.menuList.forEach((Q,K)=>{Q.name===$.name&&(k.menuList[K]=$,Y=!1)}),Y&&k.menuList.push($)},removeMenu($){[...k.menuList].forEach((Y,Q)=>{Y.name===$&&k.menuList.splice(Q,1)})},setMenuItem($,Y){k.menuList.forEach(Q=>{Q.name===$&&(Q.list=Y)})},appendMenuItem($,Y){k.menuList.forEach(Q=>{Q.name===$&&Q.list.push(...Array.isArray(Y)?Y:[Y])})},removeMenuItem($){k.menuList.forEach(Y=>{let Q;at.String($)?[...Y.list].forEach((K,te)=>{K.name===$&&Y.list.splice(te,1)}):(Q=Y.list.indexOf($))>-1&&Y.list.splice(Q,1)})},addComponent($){Array.isArray($)?$.forEach(Y=>{k.dragRuleList[Y.name]=Y,Y.menu&&F.appendMenuItem(Y.menu,Y)}):(k.dragRuleList[$.name]=$,$.menu&&F.appendMenuItem($.menu,$))},openInputData($){k.inputForm.state=$===void 0?!k.inputForm.state:!!$,k.inputForm.state&&(k.inputForm.option=ze.parseJson(F.getOptionsJson()),F.inputReset(),k.inputForm.option.appendValue=!1,k.inputForm.option.submitBtn.show=!1,k.inputForm.option.resetBtn.show=!1,F.clearActiveRule())},inputSave(){const $=k.inputForm.api.formData();Object.keys($).forEach(Q=>{Gn($[Q])&&delete $[Q]});const Y=JSON.stringify(F.getPreviewFormData())!==JSON.stringify($);k.activePage.default?(k.inputForm.data=$,c.emit("inputData",$)):(Hh(k.activePage.main,k.activePage.config.formDataField,$),c.emit("inputPageData",$)),k.inputForm.state=!1,Y&&F.addOperationRecord()},inputClear(){F.inputReset({})},inputReset($){k.inputForm.rule=ze.parseJson(F.getPreviewRule()),k.inputForm.option.formData=$||et(F.getPreviewFormData()),k.inputForm.key=Ye()},setFormData($){k.inputForm.data=$||{}},getFormData(){return k.inputForm.data},getParent($){let Y=$.__fc__.parent.rule;const Q=Y._menu;return Q&&Q.inside&&($=Y,Y=Y.__fc__.parent.rule),{root:Y,parent:$}},copyName(){Kn(k.activeRule.name)},updateName(){k.activeRule.name="ref_"+Ye()},makeDrag($,Y,Q,K,te){return{type:"DragBox",wrap:{show:!1},col:{show:!1},inject:!0,props:{rule:{props:{tag:"a-col",group:{name:$===!0?"default":$,put(...q){return F.dragPut(...q)}},swapThreshold:.65,ghostClass:"ghost",animation:150,handle:"._fd-drag-btn",emptyInsertThreshold:0,direction:"auto",itemKey:"type"}},tag:Y},children:Q,slot:te,on:K}},clearDragRule(){k.children.length=0,F.clearActiveRule(),F.addOperationRecord(),F.updateTree(),k.unloadStatus=!1,c.emit("clear")},makeDragRule($){return F.makeChildren([F.makeDrag(!0,"draggable",$,{add:(Y,Q)=>F.dragAdd($,Q),end:(Y,Q)=>F.dragEnd($,Q),start:(Y,Q)=>F.dragStart($,Q),unchoose:(Y,Q)=>F.dragUnchoose($,Q)})])},handleSave(){c.emit("save",{rule:F.getJson(),options:F.getOptionsJson()})},getPreviewFormData(){return k.activePage.default?k.inputForm.data:pi(k.activePage.main,k.activePage.config.formDataField,{})||{}},getPreviewRule(){return k.activePage.default?F.getJson():ze.toJson(F.parseRule(et(k.children)))},openPreview(){k.preview.state=!0,k.previewDevice=k.device==="mobile"?"mobile":"pc";const $=F.getPreviewRule(),Y=F.getOptionsJson(),Q=F.getConfig("useTemplate",!1);k.preview.option=ze.parseJson(Y),k.activePage.default||(k.preview.option.formData=et(F.getPreviewFormData())),k.preview.rule=ze.parseJson($),k.preview.html=Vi.highlight(Q?Xv($,Y):Jv($,Y),{language:"xml"}).value,k.preview.mobileHtml=Vi.highlight(Q?Zv($,Y):qv($,Y),{language:"xml"}).value,k.preview.sfc=Vi.highlight(IT(k.children,k.preview.option,k.dragRuleList,Q),{language:"xml"}).value},copyCode(){Kn(this.$refs.previewCode.innerText)},getPageRule(){return F.parseRule(et(k.children))},getPageJson(){return ze.toJson(F.getPageRule())},getRule(){let $;if(k.pageData.length>1){const Y=[];k.pageData.map(Q=>{Q.default?$=F.parseRule(et(Q.rule)):Y.push(F.parseRule(et(Q.rule))[0])}),$.push(...Y)}else $=F.getPageRule();return $},getJson(){return ze.toJson(F.getRule())},getOption(){var Q;const $=et(k.formOptions);["onReset","onSubmit","onCreated","onMounted","onReload","onChange","beforeFetch"].forEach(K=>{delete $[K]}),Object.keys($._event||{}).forEach(K=>{$._event[K]&&($[K]=$._event[K])}),$.style||delete $.style,delete $._event,$.submitBtn=$._submitBtn,$.resetBtn=$._resetBtn,$.resetBtn.innerText=W("props.reset"),$.submitBtn.innerText=W("props.submit");const Y=et(k.inputForm.data);return Object.keys(Y).length>0&&($.formData=Y),(Q=$==null?void 0:$.wrap)!=null&&Q.style&&($.wrap.style.marginBottom||delete $.wrap.style.marginBottom,Object.keys($.wrap.style).length||delete $.wrap.style,Object.keys($.wrap).length||delete $.wrap),Object.keys($).forEach(K=>{Object.keys($[K]).length||delete $[K]}),$.language&&Object.keys($.language).forEach(K=>{Object.keys($.language[K]).forEach(te=>{$.language[K][te]||delete $.language[K][te]}),Object.keys($.language[K]).length||delete $.language[K]}),delete $._submitBtn,delete $._resetBtn,$},subRender($,Y,Q){const K=$({h:n.h,resolveComponent:n.resolveComponent,rule:Y,subRule:Q,t:W});return Array.isArray(K)?K.map(te=>n.h(Sn,{label:te.label},()=>te.vnode)):K},getOptions(){return F.getOption()},getOptionsJson(){return ze.toJson([F.getOption()]).slice(1).slice(0,-1)},setRule($,Y){$||($=[]),!Y&&F.initPage();const Q=F.loadRule(at.String($)?ze.parseJson($):et($)),K=[];Q.forEach(te=>{te._fc_page_tag?Y||F.appendPage(te._fc_page_tag,te):K.push(te)}),k.children.length=0,k.children.push(...K),F.clearActiveRule(),Y||(F.addOperationRecord(),!K.length&&k.pageData.length>1&&F.changePage(1)),F.updateTree()},setBaseRuleConfig($,Y){A.value={rule:$,append:Y},k.baseForm.rule=V(lr,A.value,{t:W})},setComponentRuleConfig($,Y,Q){E.value[$]={rule:Y,append:Q},k.cacheProps={};const K=k.activeRule;if(K){const te=k.propsForm.api.formData&&k.propsForm.api.formData();k.propsForm.rule=k.cacheProps[K._fc_id]=V(K._menu.props,E.value&&E.value[K._menu.name],K,{t:W,api:k.dragForm.api}),n.nextTick(()=>{te&&k.propsForm.api.setValue(te)})}},setValidateRuleConfig($,Y){v.value={rule:$,append:Y},k.validateForm.rule=V(lr,v.value,{t:W})},setFormRuleConfig($,Y){m.value={rule:$,append:Y},k.form.rule=V(lr,m.value,{t:W})},clearActiveRule(){k.activeRule=null,k.customForm.config=null,k.activeTab="form",u.active=""},setOption($){const Y=et(F.getConfig("formOptions",{})),Q=Y.form||{};delete Y.form;let K={...Y,...at.String($)?JSON.parse($):et($||{})};K.form={layout:"horizontal",labelAlign:"right",size:"middle",colon:!1,labelCol:{style:{width:"125px"}},wrapperCol:{span:24},...Q,...K.form||{}},K._event={onReset:K.onReset||"",onSubmit:K.onSubmit||"",onCreated:K.onCreated||"",onMounted:K.onMounted||"",onReload:K.onReload||"",onChange:K.onChange||"",beforeFetch:K.beforeFetch||""},In(K,"globalEvent")||(K.globalEvent={}),In(K,"globalData")||(K.globalData={}),In(K,"language")||(K.language={}),K._resetBtn=typeof K.resetBtn=="object"?K.resetBtn:{show:K.resetBtn===!0},K._submitBtn=typeof K.submitBtn=="object"?K.submitBtn:{show:K.submitBtn!==!1},K.submitBtn=K.resetBtn=!1,k.inputForm.data=K.formData||{},k.oldOptionsKeys=Object.keys(k.form.value),delete K.formData,k.formOptions=K,F.updateOptionsValue()},setOptions($){F.setOption($)},mergeOptions($){if(["globalEvent","globalData","globalClass","globalVariable","form"].forEach(Y=>{$[Y]&&(k.formOptions[Y]={...k.formOptions[Y]||{},...$[Y]})}),$.style&&(!k.formOptions.style||k.formOptions.style.indexOf($.style)===-1)&&(k.formOptions.style=(k.formOptions.style||"")+`
`+$.style),k.formOptions.language||(k.formOptions.language={}),$.language&&Object.keys($.language).forEach(Y=>{k.formOptions.language[Y]={...k.formOptions.language[Y]||{},...$.language[Y]}}),$.languageKey){const Y=F.getConfig("localeOptions",[{value:"zh-cn",label:"\u7B80\u4F53\u4E2D\u6587"},{value:"en",label:"English"}]);$.languageKey.forEach(Q=>{Y.forEach(({value:K})=>{k.formOptions.language[K]||(k.formOptions.language[K]={}),k.formOptions.language[K][Q]||(k.formOptions.language[K][Q]="")})})}},updateOptionsValue(){var Q,K,te;const $={};k.oldOptionsKeys.forEach(q=>{$[q]=void 0});const Y={...$,...k.formOptions.form,">form>labelCol>style>width":(te=(K=(Q=k.formOptions.form)==null?void 0:Q.labelCol)==null?void 0:K.style)==null?void 0:te.width};Object.keys(k.formOptions).forEach(q=>{const oe=k.formOptions[q];Y[">"+q]=oe,typeof oe=="object"&&Object.keys(oe).forEach(de=>{Y[q+">"+de]=oe[de]})}),k.form.value=Y},setGlobalEvent($){k.formOptions.globalEvent={...k.formOptions.globalEvent||{},...$},F.updateOptionsValue()},setGlobalData($){k.formOptions.globalData={...k.formOptions.globalData||{},...$},F.updateOptionsValue()},setGlobalClass($){k.formOptions.globalClass={...k.formOptions.globalClass||{},...$},F.updateOptionsValue()},setGlobalVariable($){k.formOptions.globalVariable={...k.formOptions.globalVariable||{},...$},F.updateOptionsValue()},tidyRule($){var Q;["control","computed","on","hidden","display"].forEach(K=>{$[K]!=null&&($["_"+K]=$[K],delete $[K])}),(Q=$.effect)!=null&&Q.loadData&&($._loadData=$.effect.loadData,delete $.effect.loadData),$.$loadData&&($._loadData=$.$loadData,delete $.$loadData)},loadRule($,Y,Q){const K=[];return $.forEach(te=>{if(at.String(te))return K.push(te);if(te._fc_drag_skip)return;let q=k.dragRuleList[te._fc_drag_tag]||k.dragRuleList[te.type];if(q||(q=I1(te),te._fc_drag_tag="_"),Q&&(te._fc_template=Q),q&&q.loadRule&&q.loadRule(te),te.children=F.loadRule(te.children||[],q,Q),q){const oe=te.slot;let de;Y&&Y.slot&&oe&&oe!=="default"&&(de=F.getSlotConfig(Y,oe,q)),delete te.slot,te=F.makeRule(de||q,te),oe&&(te.slot=oe)}else F.tidyRule(te);K.push(te)}),K},parseRule($,Y){return[...$].reduce((Q,K)=>{let te=Y;if(at.String(K))return Q.push(K),Q;if(K.type==="DragBox")return Q.push(...F.parseRule(K.children,te||K.slot)),Q;if(K.type==="DragTool"){if(te=K.slot||Y,K=K.children[0],at.String(K))return Q.push(K),Q;if(K.type==="DragBox")return Q.push(...F.parseRule(K.children,te||K.slot)),Q}return!K||K._fc_drag_skip||(K={...K},te&&te!=="default"&&(K.slot=te),K.children&&K.children.length&&(K.children=F.parseRule(K.children)),delete K.key,delete K.component,delete K._fc_page_tag,K._menu&&(K._menu.parseRule&&K._menu.parseRule(K),delete K._menu),K._fc_drag_tag==="_"&&delete K._fc_drag_tag,["control","computed","on","hidden","display"].forEach(oe=>{K["_"+oe]!=null&&K["_"+oe]!==""&&(K[oe]=K["_"+oe]),delete K["_"+oe]}),K.slot||delete K.slot,K._loadData&&(K.$loadData=K._loadData,delete K._loadData),K.props&&Object.keys(K.props).forEach(oe=>{const de=K.props[oe];Gn(de)&&delete K.props[oe]}),K.props&&K.props.key&&(K.key=K.props.key),[K.wrap,K.title,K.info,K].forEach(oe=>{oe&&Object.keys(oe).filter(de=>de.indexOf("__")===0||oe[de]===""||Array.isArray(oe[de])&&oe[de].length===0||at.Object(oe[de])&&Object.keys(oe[de]).length===0).forEach(de=>{delete oe[de]})}),Q.push(K)),Q},[])},fields(){return k.dragForm.api.all().map($=>$.field).filter($=>!!$)},getTitle($){var Y,Q,K;return(((K=(Q=(Y=$==null?void 0:$.__fc__)==null?void 0:Y.refRule)==null?void 0:Q.__$title)==null?void 0:K.value)||$.title||"").trim()||$.props&&$.props.label||W("com."+($._menu&&$._menu.name)+".name")||$._menu&&$._menu.label||$.type},baseChange($,Y,Q,K){F.handleChange("",$,Y,Q,K)},formOptChange($,Y){k.form.value[$]=Y,$.indexOf(">")===-1&&($="form>"+$);let Q=k.formOptions;const K=$.split(">"),te=K.pop();K.forEach(q=>{q&&(Q[q]||(Q[q]={}),Q=Q[q])}),Q[te]=Y},propRemoveField($,Y,Q){var K,te,q;if(k.activeRule&&Q[k.activeRule._fc_id]===k.activeRule){F.unWatchActiveRule();const oe=$;k.dragForm.api.sync(k.activeRule),$.indexOf("__")!==0&&($==="formCreateChild"?delete k.activeRule.children[0]:$.indexOf("formCreate")===0||$.indexOf(">")>0?($.indexOf("formCreate")<0&&($="props>"+$),Z($,({source:de,field:Ee})=>{delete de[Ee]})):delete k.activeRule.props[$]),F.watchActiveRule(),(q=(te=(K=k.activeRule._menu)==null?void 0:K.watch)==null?void 0:te[oe])==null||q.call(te,{field:oe,value:void 0,api:Q,rule:k.activeRule,ctx:c})}},propChange($,Y,Q,K){F.handleChange("props",$,Y,Q,K)},computedChange($,Y,Q,K){F.handleChange("_computed",$,Y,Q,K)},styleChange($,Y,Q,K){if(k.customForm.config)return k.customForm.config.style.change($,Y);F.handleChange("",$,Y,Q,K)},handleChange($,Y,Q,K,te){var q,oe,de;if(k.activeRule&&te[k.activeRule._fc_id]===k.activeRule){F.unWatchActiveRule();const Ee=Y;Y.indexOf("__")!==0&&(Y==="formCreateChild"?k.activeRule.children[0]=Q:Y.indexOf("formCreate")===0||Y.indexOf(">")>0?(Y.indexOf("formCreate")<0&&(Y=($?$+">":"")+Y),Z(Y,({source:Se,field:ke})=>{Gn(Q)?delete Se[ke]:Se[ke]=Q})):$&&Gn(Q)?delete k.activeRule[$][Y]:($?k.activeRule[$]:k.activeRule)[Y]=Q),F.watchActiveRule(),(de=(oe=(q=k.activeRule._menu)==null?void 0:q.watch)==null?void 0:oe[Ee])==null||de.call(oe,{field:Ee,value:Q,api:te,rule:k.activeRule,ctx:c})}},validateChange($,Y,Q,K){!k.activeRule||k.validateForm.api[k.activeRule._fc_id]!==k.activeRule||(F.handleChange("",$,Y,Q,K),k.dragForm.api.refreshValidate(),k.dragForm.api.nextTick(()=>{k.dragForm.api.clearValidateState(k.activeRule.__fc__.id)}))},triggerActive($){let Y;if(at.String($)&&($=F.findRule($)),!!$&&($._menu.inside?Y=$.children[0]:Y=$.__fc__.parent.rule,Y&&Y.type==="DragTool")){const Q=k.dragForm.api.el(Y.__fc__.id);Q&&(u.active=Q.id,c.emit("active",$),F.toolActive($))}},customFormChange($,Y){k.customForm.config&&k.customForm.config.change($,Y)},customActive($){k.baseForm.isShow=!1,k.propsForm.isShow=!1,k.propsForm.variable=!1,k.advancedForm.isShow=!1,k.styleForm.isShow=!!$.style&&F.getConfig("showStyleForm")!==!1,k.eventShow=!1,k.validateForm.isShow=!1,k.activeRule=null,k.customForm.config=$,k.customForm.isShow=!0,k.customForm.propsShow=$.props&&F.getConfig("showPropsForm")!==!1,k.customForm.key=Ye(),k.customForm.rule=k.customForm.propsShow?$.props({t:W}):[],k.customForm.options.formData=$.formData,$.style&&(k.styleForm.value=$.style.formData||{}),n.nextTick(()=>{k.activeTab="props"})},getPropsRule($){let Y=V($._menu.props,E.value&&E.value[$._menu.name],$,{t:W,api:k.dragForm.api});if(E.value&&E.value.default){const Q=E.value.default;Y=V(()=>Y,at.Function(Q)?{rule:Q,append:!0}:Q,$,{t:W,api:k.dragForm.api})}return Y},findRule($){let Y;const Q=K=>{K.forEach(te=>{[te.rule.field,te.rule.name,te.rule._fc_id].indexOf($)>-1?Y=te.rule:te.children&&Q(te.children)})};return Q(k.treeInfo),Y},toolActive($){F.unWatchActiveRule(),k.customForm.isShow=!1,k.customForm.config=null,k.activeRule&&(delete k.propsForm.api[k.activeRule._fc_id],delete k.baseForm.api[k.activeRule._fc_id],delete k.validateForm.api[k.activeRule._fc_id],delete k.styleForm.api[k.activeRule._fc_id],delete k.advancedForm.api[k.activeRule._fc_id],delete k.dragForm.api.activeRule),k.activeRule=$,k.dragForm.api.activeRule=$,n.nextTick(()=>{k.activeTab="props",n.nextTick(()=>{k.propsForm.api[k.activeRule._fc_id]=k.activeRule,k.baseForm.api[k.activeRule._fc_id]=k.activeRule,k.validateForm.api[k.activeRule._fc_id]=k.activeRule,k.styleForm.api[k.activeRule._fc_id]=k.activeRule,k.advancedForm.api[k.activeRule._fc_id]=k.activeRule})}),k.cacheProps[$._fc_id]||(k.cacheProps[$._fc_id]=F.getPropsRule($));const Y=F.getConfig("hiddenItemConfig",{}),Q=F.getConfig("disabledItemConfig",{}),K=as([...(Y==null?void 0:Y.default)||[],...(Y==null?void 0:Y[$._menu.name])||[],...$._menu.hiddenBaseField||[]]),te=as([...(Q==null?void 0:Q.default)||[],...(Q==null?void 0:Q[$._menu.name])||[]]);k.baseForm.api.hidden(!1),k.baseForm.api.disabled(!1),K.length&&n.nextTick(()=>{k.baseForm.api.hidden(!0,K),k.propsForm.api.hidden(!0,K)}),te.length&&(k.baseForm.api.disabled(!0,te),n.nextTick(()=>{k.propsForm.api.disabled(!0,te)})),F.getConfig("showControl",!0)||k.baseForm.api.hidden(!0,"_control");const q=In($,"field");k.advancedForm.api.hidden(!q,["value","$required","props.disabled"]),k.baseForm.isShow=q&&$.input!==!1&&F.getConfig("showBaseForm")!==!1,k.propsForm.isShow=k.cacheProps[$._fc_id].length>0&&F.getConfig("showPropsForm")!==!1,k.propsForm.variable=$._menu.variable!==!1&&F.getConfig("showVariable")!==!1,k.styleForm.isShow=$._menu.style!==!1&&F.getConfig("showStyleForm")!==!1,k.advancedForm.isShow=$._menu.advanced!==!1&&F.getConfig("showAdvancedForm")!==!1,k.eventShow=$._menu.event&&$._menu.event.length>0&&F.getConfig("showEventForm")!==!1,k.validateForm.isShow=k.baseForm.isShow&&$._menu.validate!==!1&&F.getConfig("showValidateForm")!==!1,k.propsForm.rule=k.cacheProps[$._fc_id],F.updateRuleFormData(),F.watchActiveRule()},getConfig($,Y){return g.value&&In(g.value,$)?g.value[$]:Y},updateRuleFormData(){const $=k.activeRule;let Y={formCreateChild:""+($==null?void 0:$.children[0]),"formCreateWrap>title":!0,"formCreateWrap>labelCol>style>width":"","formCreateWrap>class":"","formCreateCol>span":"","formCreateWrap>style>marginBottom":""};const Q=g.value.appendConfigData;at.Function(Q)?Y={...Y,...Q($)}:Array.isArray(Q)&&Q.forEach(q=>{Y[q]=void 0}),Object.keys($).forEach(q=>{["effect","config","payload","id","type","_menu"].indexOf(q)<0&&(Y["formCreate"+fi(q)]=et($[q]))}),Object.keys($.props).forEach(q=>{const oe=$.props[q];Y[q]=et(oe),at.Object(oe)&&Object.keys(oe).forEach(de=>{Y[q+">"+de]=et(oe[de])})}),["props","effect","attrs","style","wrap","col"].forEach(q=>{$[q]&&typeof $[q]=="object"&&Object.keys($[q]).forEach(oe=>{Y["formCreate"+fi(q)+">"+oe]=et($[q][oe])})});const K={};["value","hidden","$required","props.disabled"].forEach(q=>{K[q]=$._computed&&$._computed[q]||""});const te=$._menu.attrs||{};Object.keys(te).forEach(q=>{Y["__"+q]=te[q]({rule:$})}),k.propsForm.value=Y,k.styleForm.value={style:$.style,class:$.class,id:$.id},k.advancedForm.value=K,k.baseForm.isShow&&(k.baseForm.value={field:$.field,title:$.title||"",info:$.info,ignore:$.ignore||!1,_control:$._control,...Y},k.validateForm.value={validate:$.validate?[...$.validate]:[],$required:Y.formCreate$required},k.dragForm.api.refreshValidate(),k.dragForm.api.nextTick(()=>{k.dragForm.api.clearValidateState($.__fc__.id)}))},dragStart($){k.moveRule=$,k.added=!1},dragUnchoose($,Y){k.addRule={children:$,oldIndex:Y.oldIndex}},clickMenu($){F.dragMenu({menu:$,children:k.children,index:k.children.length})},clickField($,Y,Q,K){const te={...$.update||{}};te.title||(te.title=$.label),$.field&&(te.field=$.field),$.rule?F.dragMenu({rule:$.rule,children:Y||k.children,index:Q==null?k.children.length:Q,slot:K,update:te}):$.item&&F.dragMenu({menu:k.dragRuleList[$.item],children:Y||k.children,index:Q==null?k.children.length:Q,slot:K,update:te})},checkOnly($){let Y=!1;return k.dragForm.api.all().forEach(Q=>{Y=Y||Q._fc_template===$.name||Q._menu&&Q._menu.name===$.name}),Y&&qt(k.t("struct.only",{label:W("com."+$.name+".name")||$.label})),Y},dragMenu({rule:$,menu:Y,children:Q,index:K,slot:te,update:q}){if(k.inputForm.state||Y&&Y.only&&F.checkOnly(Y))return;const oe=ke=>{const qe=[];return ke.forEach(Re=>{Re._fc_page_tag?F.appendPage(Re._fc_page_tag,Re):qe.push(Re)}),qe};F.handleAddBefore();const de=Y?k.dragRuleList[Y.name]:null;c.emit("drag",{item:Y,dragRule:de,rule:$});let Ee=[];if($)at.String($)?($=F.batchReplaceUni($),$=ze.parseJson($)):$=ze.parseJson(F.batchReplaceUni(ze.toJson($))),Array.isArray($)||($=[$]),Ee=oe(F.loadRule($));else if(de.template){let ke="";at.Function(de.template)?ke=ze.toJson(de.template({t:W})):Array.isArray(de.template)?ke=ze.toJson(de.template):ke=""+de.template,de.autoField&&(ke=F.replaceTemplateField(ke)),ke=F.batchReplaceUni(ke),Ee=oe(F.loadRule(ze.parseJson(ke),null,Y.name))}else Ee.push(F.makeRule(k.dragRuleList[de.name]));te&&Ee.forEach(ke=>{ke&&(ke.slot=te)});const Se=Ee[0]&&Ee[0].type==="DragTool"?Ee[0].children[0]:Ee[0];q&&F.mergeRule(Se,q),Q.splice(K,0,...Ee),de.formOptions&&F.mergeOptions(typeof de.formOptions=="string"?ze.parseJson(de.formOptions):de.formOptions),F.handleAddAfter(de&&de.template?{template:Ee}:{rule:Se}),Se&&F.getConfig("autoActive",!0)&&n.nextTick(()=>{F.triggerActive(Se)})},mergeRule($,Y){Object.keys(Y).forEach(Q=>{Q==="required"?$.$required=!!Y.required:Q==="disabled"?($.props||($.props={}),$.props.disabled=!!Y.disabled):Q==="props"?$.props={...$.props||{},...et(Y[Q])}:$[Q]=et(Y[Q])})},replaceField($){const Y=["array","object"].indexOf($._menu.subForm)>-1;let Q=F.parseRule(et([$]))[0];const K=F.getConfig("autoResetName")!==!1;return Y&&(Q.field=Ye(),K&&(Q.name="ref_"+Ye())),Q=ze.toJson(Q),Y?Q=F.batchReplaceUni(Q):(Q=F.batchReplaceField(Q),K&&(Q=F.batchReplaceName(Q))),F.loadRule([ze.parseJson(Q)])[0]},batchReplaceField($){const Y=/"field"\s*:\s*"(\w[\w\d]+)"/g,Q=[];return $=$.replace(Y,(K,te)=>{const q=Ye();return Q.push({old:te,key:q}),`"field":"${q}"`}).replace(/"computed"\s*:\s*(\{\s*(?:"[^"]*"\s*:\s*"(?:\\"|[^"])*"(?:,\s*)?)*\})/g,(K,te)=>{const q=JSON.parse(te);return Q.forEach(oe=>{Object.keys(q).forEach(de=>{q[de]=`${q[de]}`.replaceAll(oe.old,oe.key)})}),`"computed":${JSON.stringify(q)}`}),F.batchReplaceUni($)},replaceTemplateField($){const Y=/"field"\s*:\s*"(\w[\w\d]+)"/g;let Q;const K=[];for(;(Q=Y.exec($))!==null;)K.push({old:Q[1],key:Ye()});return K.forEach(te=>{$=$.replaceAll(te.old,te.key)}),$},batchReplaceUni($){const Y=/"_fc_id"\s*:\s*"(\w[\w\d]+)"/g;return $=$.replace(Y,()=>`"_fc_id":"id_${Ye()}"`),$},batchReplaceName($){const Y=/"name"\s*:\s*"ref_(\w[\w\d]+)"/g;return $=$.replace(Y,()=>`"name":"ref_${Ye()}"`),$},dragPut($,Y,Q){const K=$.el.__rule__&&($.el.__rule__._config||$.el.__rule__._menu);if(!K)return!0;const te=Q._fc_allow_drag||{};if(te[K.name]===void 0){const q=Q._underlying_vm_.__fc__?Q._underlying_vm_._config||Q._underlying_vm_._menu:Q._underlying_vm_;te[K.name]=!(q&&K&&!F.checkAllowDrag(q,K)),Q._fc_allow_drag=te}return Q._fc_allow_drag[K.name]},checkAllowDrag($,Y){function Q(q){return Array.isArray(q)&&(q={item:q}),zh(q.item).indexOf($.name)>-1?!0:zh(q.menu).indexOf($.menu)>-1}const K=F.getConfig("allowDrag",{})[Y.name],te=F.getConfig("denyDrag",{})[Y.name];return Y.allowDrag&&Q(Y.allowDrag)||K&&Q(K)?!0:Y.allowDrag||K||Y.denyDrag&&Q(Y.denyDrag)?!1:!(te&&Q(te))},dragAdd($,Y,Q){const K=Y.newIndex,te=Y.item._underlying_vm_||Y.item.__rule__;if(k.added=!0,!!te)if(te.__fc__){if(k.addRule){F.handleSortBefore();const q=k.addRule.children.splice(k.addRule.children.indexOf(te),1)[0];Q?q.slot=Q:delete q.slot,$.splice(K,0,q),F.handleSortAfter({rule:q})}}else te._field?F.clickField(te,$,K,Q):F.dragMenu({menu:te,children:$,index:K,slot:Q})},dragEnd($,{newIndex:Y,oldIndex:Q},K){if(!k.added&&!(k.moveRule===$&&Y===Q)){F.handleSortBefore();const te=k.moveRule.splice(Q,1);K&&(te[0].slot=K),$.splice(Y,0,te[0]),F.handleSortAfter({rule:te[0]})}k.moveRule=null,k.addRule=null,k.added=!1,k.bus.$emit("dragEnd")},getSlotConfig($,Y,Q){let K={};return($.slot||[]).forEach(te=>{te.name===Y&&(K=te.config||{})}),{...Q,dragBtn:!1,handleBtn:Q.children?["addChild"]:!1,...K}},makeRule($,Y){let Q=Y||$.rule({t:W});const K=_.value&&_.value[$.name];if(!Y&&K)if(typeof K=="function")try{K(Q)}catch(le){console.error(le)}else{let le=et(K);delete le.children,delete le.component,Q=Sm([Q,le])}Q._menu=n.markRaw($),Q._fc_id||(Q._fc_id="id_"+Ye()),!Q.name&&!$.aide&&(Q.name="ref_"+Ye()),$.component&&(Q.component=n.markRaw($.component)),Q._computed||(Q._computed={}),Q.effect||(Q.effect={}),$.input&&!Q.field&&(Q.field=Ye()),Q.$easySlots||(Q.$easySlots={}),$.languageKey&&F.mergeOptions({languageKey:$.languageKey}),F.tidyRule(Q),Q.display=!0,Q.hidden=!1,Q._fc_drag_tag=$.name,$.container&&(Q._fc_page_tag=$.name);let te=$.only===!0;if(!te&&Q._fc_template){const le=k.dragRuleList[Q._fc_template];te=le&&le.only===!0}const q=at.trueArray(Q.children),oe={},de=[];($.slot||[]).forEach(le=>{typeof le=="string"?de.push(le):(oe[le.name]=le,de.push(le.name))});const Ee={default:[]};de.map(le=>{Ee[le]=[]}),q&&Q.children.forEach(le=>{le.slot?(Ee[le.slot]||(Ee[le.slot]=[]),Ee[le.slot].push(le)):Ee.default.push(le)});const Se=(le,we,Ie,je)=>{const ct=F.makeDrag(le,we,Ie,{end:(rt,Fe)=>F.dragEnd(rt.self.children,Fe),add:(rt,Fe)=>F.dragAdd(rt.self.children,Fe),start:(rt,Fe)=>F.dragStart(rt.self.children,Fe),unchoose:(rt,Fe)=>F.dragUnchoose(rt.self.children,Fe)},je);return ct._config=Q._menu,ct};let ke;const qe=Q._menu?Q._menu.name:Q.type;if(Object.keys(Ee).forEach(le=>{const we=le==="default";if(!we||$.drag){let Ie;if(oe[le]&&!we){if(!Y){const je=k.dragRuleList[oe[le].type];Ie=F.makeRule({...je,dragBtn:!1,handleBtn:je.children?["addChild"]:!1,...oe[le].config||{}}),Ie.slot=le}}else Ie=Se(!0,qe+(we?"":"-slot-"+le),Y?Ee[le].map(je=>(delete je.slot,je)):F.loadRule(Ee[le]),le);Ie&&(Ee[le]=[Ie])}we&&$.drag&&(ke=Ee[le][0])}),$.children&&!Y&&!q)for(let le=0;le<($.childrenLen||1);le++){const we=F.makeRule(k.dragRuleList[$.children]);(ke?ke.children:Ee.default).push(we)}const Re=[];de.indexOf("default")===-1&&(Re.push(...Ee.default),delete Ee.default),de.forEach(le=>{Re.push(...Ee[le]),delete Ee[le]}),Object.keys(Ee).forEach(le=>{Re.push(...Ee[le])}),Q.children=Re;const ge=o.value!==void 0?o.value!==!1:$.mask!==!1;if($.tool===!1)return Q;const Ae={dragBtn:$.dragBtn!==!1,inline:$.inline===!0,actions:$.actions?$.actions.map(le=>le.label):[],children:$.children,mask:ge,inside:$.inside,hidden:Q._hidden===!0||Q._display===!1,handleBtn:$.handleBtn,only:te};return $.inside?(Q.children=F.makeChildren([{type:"DragTool",props:Ae,inject:!0,on:{action({self:le},we){const Ie=F.getParent(le).parent;$.actions[we].handler(Ie),k.activeRule===Ie&&F.updateRuleFormData()},delete:({self:le})=>{const we=F.getParent(le).parent;F.handleRemoveBefore({parent:we,rule:we})!==!1&&(we.__fc__.rm(),c.emit("delete",we),k.activeRule===we&&F.clearActiveRule(),F.handleRemoveAfter({rule:we}))},create:({self:le})=>{F.handleAddBefore();const we=F.getParent(le);c.emit("create",we.parent);const Ie=F.makeRule(we.parent._menu);we.parent.slot&&(Ie.slot=we.parent.slot),we.root.children.splice(we.root.children.indexOf(we.parent)+1,0,Ie),F.handleAddAfter({rule:we.parent})},addChild:({self:le})=>{F.handleAddBefore();const we=F.getParent(le),Ie=we.parent._menu,je=k.dragRuleList[Ie.children];if(!je)return;const ct=F.makeRule(je);(Ie.drag?we.parent.children[0]:we.parent).children[0].children.push(ct),F.handleAddAfter({rule:ct})},copy:({self:le})=>{F.handleCopyBefore();const we=F.getParent(le);c.emit("copy",we.parent);const Ie=F.replaceField(we.parent);we.root.children.splice(we.root.children.indexOf(we.parent)+1,0,Ie),F.handleCopyAfter({rule:we.parent})},active:({self:le})=>{const we=F.getParent(le);c.emit("active",we.parent),setTimeout(()=>{F.toolActive(we.parent)},10)}},_config:Q._menu,children:Q.children}]),Q):{type:"DragTool",props:Ae,_fc_page_tag:Q._fc_page_tag,inject:!0,display:!!Q.display,on:{action({self:le},we){$.actions[we].handler(le.children[0]),k.activeRule===le.children[0]&&F.updateRuleFormData()},delete:({self:le})=>{F.handleRemoveBefore({parent:le,rule:le.children[0]})!==!1&&(c.emit("delete",le.children[0]),le.__fc__.rm(),k.activeRule===le.children[0]&&F.clearActiveRule(),F.handleRemoveAfter({rule:le.children[0]}))},create:({self:le})=>{F.handleAddBefore(),c.emit("create",le.children[0]);const we=F.getParent(le),Ie=F.makeRule(le.children[0]._menu);we.parent.slot&&(Ie.slot=we.parent.slot),we.root.children.splice(we.root.children.indexOf(we.parent)+1,0,Ie),F.handleAddAfter({rule:Ie})},addChild:({self:le})=>{F.handleAddBefore();const we=le.children[0]._menu,Ie=k.dragRuleList[we.children];if(!Ie)return;const je=F.makeRule(Ie);(we.drag?le.children[0]:le).children[0].children.push(je),F.handleAddAfter({rule:je})},copy:({self:le})=>{F.handleCopyBefore(),c.emit("copy",le.children[0]);const we=F.getParent(le),Ie=F.replaceField(le.children[0]);le.slot&&(Ie.slot=le.slot),we.root.children.splice(we.root.children.indexOf(we.parent)+1,0,Ie),F.handleCopyAfter({rule:le.children[0]})},active:({self:le})=>{c.emit("active",le.children[0]),setTimeout(()=>{F.toolActive(le.children[0])},10)}},_config:Q._menu,children:F.makeChildren([Q])}},toolHidden($){const Y=!($._hidden!==void 0&&$._hidden);$._menu.inside?$.children[0].props.hidden=Y:$.__fc__.parent.rule.props.hidden=Y,$._hidden=Y,Y||($._display=!0)},toolHandle($,Y){if(!$._fc_drag_tag||$._menu.tool===!1){$.__fc__.rm();return}let Q;$._menu.inside?Q=$.children[0].__fc__.exportEl:Q=$.__fc__.parent.exportEl,Q.$emit(Y)},handleAddBefore(){},handleRemoveBefore({parent:$,rule:Y}){},handleCopyBefore(){},handleSortBefore(){},addOperationRecord(){const $=F.getPageJson(),Y=et(k.inputForm.data),Q=k.operation.list.slice(0,k.operation.idx+1);Q.push({rule:$,formData:Y}),k.operation.list=Q,k.operation.idx=Q.length-1,k.unloadStatus=Q.length!==1},prevOperationRecord(){if(!k.operation.list[k.operation.idx-1])return;const $=k.operation.list[--k.operation.idx];F.useOperationRecord($),F.clearActiveRule()},nextOperationRecord(){if(!k.operation.list[k.operation.idx+1])return;const $=k.operation.list[++k.operation.idx];F.useOperationRecord($),F.clearActiveRule()},useOperationRecord($){k.inputForm.data=$.formData,F.setRule($.rule,!0)},handleAddAfter(){F.addOperationRecord(),F.updateTree()},handleRemoveAfter(){F.addOperationRecord(),F.updateTree()},handleCopyAfter(){F.addOperationRecord(),F.updateTree()},handleSortAfter(){F.addOperationRecord(),F.updateTree()},treeChange($,Y){$.stopPropagation(),F.triggerActive(Y.rule)},getFormDescription(){return Wu(F.getDescription())},getDescription(){return Gu(k.dragForm.rule[0].children)},getSubFormDescription($){let Y=$.__fc__&&$.__fc__.parent;for(;Y;){if(Y.rule._menu&&["array","object"].indexOf(Y.rule._menu.subForm)>-1)return Wu(Gu(Y.rule.children));Y=Y.parent}return null},getSubFormChildren($){let Y=$.__fc__&&$.__fc__.parent;for(;Y;){if(Y.rule._menu&&["array","object"].indexOf(Y.rule._menu.subForm)>-1)return Y.rule.children||[];Y=Y.parent}return null},updateTree:hp(function(){n.nextTick(()=>{k.treeInfo=rs(k.dragForm.rule[0].children)})},300),findTree($){let Y;const Q=K=>{K.forEach(te=>{te.rule.field===$?Y=te.children:te.children&&Q(te.children)})};return Q(k.treeInfo),Y||[]},handleDragenter($){k.bus.$emit("dragenter",$)},handleDragleave($){k.bus.$emit("dragleave",$)},handleDrop($){k.bus.$emit("drop",$)},changeEvent($){k.activeRule._on=$},triggerHandle($){$.handle()},bindHotkey($){const Y=$.ctrlKey||$.metaKey;if(!getSelection().toString()&&Y&&$.target.tagName==="BODY"&&["ArrowUp","ArrowDown","c"].indexOf($.key)>-1&&k.activeRule){$.preventDefault();let Q=k.activeRule;if($.key==="c"){Kn("FormCreate:"+ze.toJson(F.parseRule([Q])[0])),c.emit("copyRule",{event:$,rule:Q});return}if(k.inputForm.state)return;Q._menu.inside||(Q=Q.__fc__.parent.rule);const K=Q.__fc__.parent.rule,te=K.children.indexOf(Q);if(K.children.length>1&&te>=0){const q=$.key==="ArrowUp"?-1:$.key==="ArrowDown"?1:0;q&&te+q>=0&&te+q<K.children.length&&(K.children.splice(te,1),K.children.splice(te+q,0,Q),c.emit("sort"+($.key==="ArrowUp"?"Up":"Down"),{event:$,rule:Q}))}}},bindPaste($){if(k.inputForm.state)return;let Y=$.clipboardData.getData("text/plain");if(Y&&Y.indexOf("FormCreate:")===0){let Q=k.children;Y=Y.slice(11,Y.length);const K=F.loadRule([ze.parseJson(Y)])[0];if(k.activeRule&&k.activeRule._menu.drag)k.activeRule._menu.inside?Q=k.activeRule.children[0].children[0].children:Q=k.activeRule.children[0].children;else if(k.customForm.config&&k.customForm.config.onPaste){k.customForm.config.onPaste(K);return}Q.push(K),c.emit("pasteRule",{event:$,copyRule:K})}}};F.initPage(),F.setOption({}),i.value?pf.forEach($=>{k.dragRuleList[$.name]=$}):F.addComponent(pf);const ie=n.computed(()=>Object.keys(F.getPreviewFormData()).length>0);return{...n.toRefs(k),...F,fieldRef:C,formListRef:w,dragHeight:b,onlyPC:t,t:W,handle:d,inputCheckStatus:ie,fieldReadonly:S,fieldList:x,varList:O,hiddenMenu:D,hiddenItem:R,hiddenDragMenu:I,hiddenDragBtn:z,activeRuleChildren:M,dragConHeight:T,pageCount:J,antLocale:B,antTheme:Jl.theme,configFormOrderStyle:L}},created(){document.body.ondrop=e=>{e.preventDefault(),e.stopPropagation()},window.onbeforeunload=e=>{this.unloadStatus&&(e.returnValue=this.t("designer.unload"))}},mounted(){var e;this.theme&&document.body.classList.add("fd-theme-"+this.theme),this.updateThemeColor(),((e=this.config)==null?void 0:e.hotKey)!==!1&&(document.addEventListener("keydown",this.bindHotkey),document.addEventListener("paste",this.bindPaste))},unmounted(){document.removeEventListener("keydown",this.bindHotkey),document.removeEventListener("paste",this.bindPaste)}}),t$={class:"_fc-l-label"},n$={class:"_fc-l-info"},o$={class:"_fc-l-global"},i$={class:"_fc-l-label"},r$={class:"_fc-l-label"},a$={class:"_fc-l-label"},l$={class:"_fc-l-label"},s$={class:"_fc-l-label"},d$={class:"_fc-l-info"},c$={class:"_fc-l-label"},u$={class:"_fc-l-info"},f$=["onClick"],p$=["onClick"],h$={class:"_fc-l-icon"},m$={class:"_fc-l-name"},g$={key:1,class:"_fc-l-name"},v$=["onClick"],y$={class:"_fc-tree-label"},b$=["onClick"],C$={class:"_fc-m-tools-l"},_$={class:"devices"},w$={class:"_fc-m-tools-r"},E$={class:"_fd-input-btn"},A$={key:0,class:"fc-icon icon-check"},S$={key:0,class:"_fc-m-input"},x$={key:0,class:"_fc-m-input-handle"},k$={class:"_fc-r-title"},N$={class:"_fc-r-title"},T$={style:{"grid-area":"base"}},O$={style:{"grid-area":"advanced"}},D$={style:{"grid-area":"props"}},B$={style:{"grid-area":"slots"}},$$={style:{"grid-area":"style"}},V$={style:{"grid-area":"event"}},R$={style:{"grid-area":"validate"}},I$={key:0,class:"_fd-preview-device"},F$={key:0,class:"_fd-preview-mobile"},P$={key:3,class:"_fd-preview-code",ref:"previewCode"},M$=["innerHTML"],L$={key:4,class:"_fd-preview-code",ref:"previewCode"},j$=["innerHTML"];function z$(e,t,i,r,o,s){const d=n.resolveComponent("a-tooltip"),c=n.resolveComponent("a-badge"),u=n.resolveComponent("a-layout-sider"),g=n.resolveComponent("AiChat"),y=n.resolveComponent("LanguageConfig"),C=n.resolveComponent("JsonPreview"),w=n.resolveComponent("GlobalEventConfig"),A=n.resolveComponent("GlobalFetchConfig"),E=n.resolveComponent("GlobalClassConfig"),_=n.resolveComponent("GlobalVariableConfig"),v=n.resolveComponent("a-layout-content"),m=n.resolveComponent("a-layout"),b=n.resolveComponent("FormList"),S=n.resolveComponent("PageInput"),x=n.resolveComponent("a-layout-header"),O=n.resolveComponent("fcDraggable"),D=n.resolveComponent("FieldList"),R=n.resolveComponent("a-menu-item"),I=n.resolveComponent("a-menu"),z=n.resolveComponent("a-dropdown"),T=n.resolveComponent("a-directory-tree"),B=n.resolveComponent("QuickLayout"),L=n.resolveComponent("a-button"),U=n.resolveComponent("a-popconfirm"),W=n.resolveComponent("a-switch"),V=n.resolveComponent("ViewForm"),k=n.resolveComponent("DragFormMobile"),M=n.resolveComponent("DragForm"),j=n.resolveComponent("a-spin"),Z=n.resolveComponent("ToolsBar"),J=n.resolveComponent("Warning"),F=n.resolveComponent("TypeSelect"),ie=n.resolveComponent("a-input"),pe=n.resolveComponent("SubList"),se=n.resolveComponent("ConfigTitle"),ye=n.resolveComponent("VariableConfig"),fe=n.resolveComponent("PropsInput"),ue=n.resolveComponent("SlotsConfig"),he=n.resolveComponent("EventConfig"),$=n.resolveComponent("a-tab-pane"),Y=n.resolveComponent("a-tabs"),Q=n.resolveComponent("ViewFormMobile"),K=n.resolveComponent("a-modal"),te=n.resolveComponent("a-config-provider");return n.openBlock(),n.createBlock(te,{theme:{token:{fontSize:14,fontSizeSM:12,...e.themeColor}},locale:e.antLocale},{default:n.withCtx(()=>[n.createVNode(m,{class:"_fc-designer",style:n.normalizeStyle(e.height?`height:${e.dragHeight};flex:initial;`:""),ref:"designer",onDragenter:e.handleDragenter,onDragleave:e.handleDragleave,onDrop:e.handleDrop},{default:n.withCtx(()=>[n.createVNode(v,null,{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(m,{style:{height:"100%"},key:e.locale&&e.locale.name},{default:n.withCtx(()=>[n.createVNode(u,{class:"_fc-l-menu",width:"40px"},{default:n.withCtx(()=>[e.formListRef&&e.formListRef.length?(n.openBlock(),n.createBlock(d,{key:0,title:e.t("designer.formList"),placement:"right"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item _fc-l-menu-form",{active:e.activeModule==="form"}]),onClick:t[0]||(t[0]=q=>e.activeModule="form")},t[44]||(t[44]=[n.createElementVNode("i",{class:"fc-icon icon-menu2"},null,-1)]),2)]),_:1},8,["title"])):n.createCommentVNode("",!0),n.createVNode(d,{title:e.t("designer.comList"),placement:"right"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="base"}]),onClick:t[1]||(t[1]=q=>e.activeModule="base")},t[45]||(t[45]=[n.createElementVNode("i",{class:"fc-icon icon-menu"},null,-1)]),2)]),_:1},8,["title"]),e.getConfig("showPageManage",!0)?(n.openBlock(),n.createBlock(d,{key:1,title:e.t("designer.pageManage"),placement:"right"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="page"}]),onClick:t[2]||(t[2]=q=>e.activeModule="page")},[n.createVNode(c,{count:e.pageCount},{default:n.withCtx(()=>t[46]||(t[46]=[n.createElementVNode("i",{class:"fc-icon icon-page"},null,-1)])),_:1},8,["count"])],2)]),_:1},8,["title"])):n.createCommentVNode("",!0),n.createVNode(d,{title:e.t("form.globalConfig"),placement:"right"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="global"}]),onClick:t[3]||(t[3]=q=>e.activeModule="global")},t[47]||(t[47]=[n.createElementVNode("i",{class:"fc-icon icon-data"},null,-1)]),2)]),_:1},8,["title"]),e.getConfig("showLanguage",!0)?(n.openBlock(),n.createBlock(d,{key:2,title:e.t("language.name"),placement:"right"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="language"}]),onClick:t[4]||(t[4]=q=>e.activeModule="language")},t[48]||(t[48]=[n.createElementVNode("i",{class:"fc-icon icon-language"},null,-1)]),2)]),_:1},8,["title"])):n.createCommentVNode("",!0),e.getConfig("showJsonPreview",!0)?(n.openBlock(),n.createBlock(d,{key:3,title:"JSON",placement:"right"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="json"}]),onClick:t[5]||(t[5]=q=>e.activeModule="json")},t[49]||(t[49]=[n.createElementVNode("i",{class:"fc-icon icon-script"},null,-1)]),2)]),_:1})):n.createCommentVNode("",!0),e.getConfig("showAi",!0)?(n.openBlock(),n.createBlock(d,{key:4,title:e.t("ai.name"),placement:"right"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="ai"}]),onClick:t[6]||(t[6]=q=>e.activeModule="ai")},t[50]||(t[50]=[n.createElementVNode("i",{class:"fc-icon icon-ai bright"},null,-1)]),2)]),_:1},8,["title"])):n.createCommentVNode("",!0)]),_:1}),n.createVNode(u,{class:"_fc-l",width:e.activeModule==="language"?"450px":"266px"},{default:n.withCtx(()=>[e.activeModule==="ai"?(n.openBlock(),n.createBlock(g,{key:0})):n.createCommentVNode("",!0),e.activeModule==="language"?(n.openBlock(),n.createBlock(y,{key:1})):n.createCommentVNode("",!0),e.activeModule==="json"?(n.openBlock(),n.createBlock(C,{key:2})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(m,null,{default:n.withCtx(()=>[n.createVNode(v,null,{default:n.withCtx(()=>[n.createElementVNode("div",t$,n.toDisplayString(e.t("form.globalConfig")),1),n.createElementVNode("div",n$,n.toDisplayString(e.t("warning.globalConfig")),1),n.createElementVNode("div",o$,[n.createElementVNode("div",i$,n.toDisplayString(e.t("form.globalEvent")),1),n.createVNode(w,{ref:"globalEvent",modelValue:e.formOptions.globalEvent,"onUpdate:modelValue":t[7]||(t[7]=q=>e.formOptions.globalEvent=q)},null,8,["modelValue"]),n.createElementVNode("div",r$,n.toDisplayString(e.t("form.globalFetch")),1),n.createVNode(A,{ref:"globalFetch",modelValue:e.formOptions.globalData,"onUpdate:modelValue":t[8]||(t[8]=q=>e.formOptions.globalData=q)},null,8,["modelValue"]),n.createElementVNode("div",a$,n.toDisplayString(e.t("form.globalClass")),1),n.createVNode(E,{ref:"globalClass",modelValue:e.formOptions.globalClass,"onUpdate:modelValue":t[9]||(t[9]=q=>e.formOptions.globalClass=q)},null,8,["modelValue"]),n.createElementVNode("div",l$,n.toDisplayString(e.t("computed.variable.title")),1),n.createVNode(_,{ref:"globalVariable",modelValue:e.formOptions.globalVariable,"onUpdate:modelValue":t[10]||(t[10]=q=>e.formOptions.globalVariable=q)},null,8,["modelValue"])])]),_:1})]),_:1},512),[[n.vShow,e.activeModule==="global"]]),e.formListRef&&e.formListRef.length?n.withDirectives((n.openBlock(),n.createBlock(m,{key:3},{default:n.withCtx(()=>[n.createVNode(v,null,{default:n.withCtx(()=>[n.createElementVNode("div",s$,n.toDisplayString(e.t("designer.formList")),1),n.createElementVNode("div",d$,n.toDisplayString(e.t("warning.formList")),1),n.renderSlot(e.$slots,"form-list",{},()=>[n.createVNode(b,{list:e.formListRef},null,8,["list"])])]),_:3})]),_:3},512)),[[n.vShow,e.activeModule==="form"]]):n.createCommentVNode("",!0),e.activeModule==="page"?(n.openBlock(),n.createBlock(m,{key:4},{default:n.withCtx(()=>[e.getConfig("showPageManage",!0)?(n.openBlock(),n.createBlock(v,{key:0},{default:n.withCtx(()=>[n.createElementVNode("div",c$,n.toDisplayString(e.t("designer.pageManage")),1),n.createElementVNode("div",u$,n.toDisplayString(e.t("warning.pageManage")),1),n.createVNode(S,{onDelete:e.deletePage,onCopy:e.copyPage,onAdd:e.addPage,onChange:e.changePage},null,8,["onDelete","onCopy","onAdd","onChange"])]),_:1})):n.createCommentVNode("",!0)]),_:1})):n.createCommentVNode("",!0),e.activeModule==="base"?(n.openBlock(),n.createBlock(m,{key:5},{default:n.withCtx(()=>[n.createVNode(x,{style:{height:"40px"},class:"_fc-l-tabs"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-tab",{active:e.activeMenuTab==="menu"}]),onClick:t[11]||(t[11]=q=>e.activeMenuTab="menu")},n.toDisplayString(e.t("menu.component")),3),e.field&&e.field.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["_fc-l-tab",{active:e.activeMenuTab==="field"}]),onClick:t[12]||(t[12]=q=>e.activeMenuTab="field")},n.toDisplayString(e.t("props.field")),3)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-tab",{active:e.activeMenuTab==="tree"}]),onClick:t[13]||(t[13]=q=>e.activeMenuTab="tree")},n.toDisplayString(e.t("menu.tree")),3)]),_:1}),n.withDirectives(n.createVNode(v,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.menuList,(q,oe)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:oe},[(q.name==="template"?e.config.showTemplate!==!1:!0)&&e.hiddenMenu.indexOf(q.name)===-1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["_fc-l-group",{"is-template":q.name==="template"}])},[n.createElementVNode("h4",{class:"_fc-l-title",onClick:de=>q.hidden=!q.hidden},[n.createTextVNode(n.toDisplayString(e.t("menu."+q.name)||q.title)+" ",1),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-arrow",{down:!q.hidden}])},null,2)],8,f$),n.withDirectives(n.createVNode(O,{group:{name:"default",pull:"clone",put:!1},sort:!1,itemKey:"name",class:"_fc-l-list",list:q.list},{item:n.withCtx(({element:de})=>[e.hiddenItem.indexOf(de.name)===-1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["_fc-l-item",{"is-inline":de.inline}]),onClick:Ee=>e.clickMenu(de)},[q.name!=="template"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",h$,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",de.icon||"icon-input"])},null,2)]),n.createElementVNode("span",m$,n.toDisplayString(e.t("com."+de.name+".name")||de.label),1)],64)):(n.openBlock(),n.createElementBlock("span",g$,n.toDisplayString(e.t("tmp."+de.name)||de.label),1))],10,p$)):n.createCommentVNode("",!0)]),_:2},1032,["list"]),[[n.vShow,!q.hidden]])],2)):n.createCommentVNode("",!0)],64))),128))]),_:1},512),[[n.vShow,e.activeMenuTab==="menu"]]),e.activeMenuTab==="field"?(n.openBlock(),n.createBlock(v,{key:0},{default:n.withCtx(()=>[n.createVNode(D,{field:e.fieldRef},null,8,["field"])]),_:1})):n.createCommentVNode("",!0),e.activeMenuTab==="tree"?(n.openBlock(),n.createBlock(v,{key:1},{default:n.withCtx(()=>[n.createVNode(T,{ref:"treeRef",class:"_fc-struct-tree","tree-data":e.treeInfo,selectable:!1,showIcon:!1,defaultExpandAll:""},{title:n.withCtx(({data:q})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-tree-node",{active:e.activeRule===q.rule}]),onClick:n.withModifiers(oe=>e.treeChange(oe,q),["stop"])},[n.createElementVNode("div",y$,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",q.rule._menu&&q.rule._menu.icon||"icon-cell"])},null,2),n.createElementVNode("span",null,n.toDisplayString(e.getTitle(q.rule)),1)]),!q.slot&&!q.rule._fc_page_tag?(n.openBlock(),n.createElementBlock("div",{key:0,class:"_fc-tree-more",onClick:t[14]||(t[14]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",q.rule._hidden===!0?"icon-eye-close":"icon-eye"]),onClick:oe=>e.toolHidden(q.rule),style:{"margin-right":"8px"}},null,10,b$),n.createVNode(z,{size:"default",trigger:"click"},{overlay:n.withCtx(()=>[n.createVNode(I,null,{default:n.withCtx(()=>[q.rule._fc_drag_tag!=="_"?(n.openBlock(),n.createBlock(R,{key:"1",onClick:oe=>e.toolHandle(q.rule,"copy")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.copy")),1)]),_:2},1032,["onClick"])):n.createCommentVNode("",!0),q.rule._menu&&q.rule._menu.children&&q.rule._fc_drag_tag!=="_"?(n.openBlock(),n.createBlock(R,{key:"2",onClick:oe=>e.toolHandle(q.rule,"addChild")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.appendChild")),1)]),_:2},1032,["onClick"])):n.createCommentVNode("",!0),n.createVNode(R,{key:"3",onClick:oe=>e.toolHandle(q.rule,"delete")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.delete")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),default:n.withCtx(()=>[t[51]||(t[51]=n.createElementVNode("i",{class:"fc-icon icon-more"},null,-1))]),_:2},1024)])):n.createCommentVNode("",!0)],10,v$)]),_:1},8,["tree-data"])]),_:1})):n.createCommentVNode("",!0)]),_:1})):n.createCommentVNode("",!0)]),_:3},8,["width"]),n.createVNode(m,{class:"_fc-m"},{default:n.withCtx(()=>[n.createVNode(x,{class:"_fc-m-tools",style:{height:"40px"}},{default:n.withCtx(()=>[n.createElementVNode("div",C$,[e.inputForm.state?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.getConfig("showDevice")!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",_$,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-pc",{active:e.device==="pc"}]),onClick:t[15]||(t[15]=q=>e.setDevice("pc"))},null,2),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-pad",{active:e.device==="pad"}]),onClick:t[16]||(t[16]=q=>e.setDevice("pad"))},null,2),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-mobile",{active:e.device==="mobile"}]),onClick:t[17]||(t[17]=q=>e.setDevice("mobile"))},null,2)]),t[52]||(t[52]=n.createElementVNode("div",{class:"line"},null,-1))],64)):n.createCommentVNode("",!0),e.getConfig("showQuickLayout")!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createVNode(B),t[53]||(t[53]=n.createElementVNode("div",{class:"line"},null,-1))],64)):n.createCommentVNode("",!0),n.createElementVNode("div",null,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-pre-step",{disabled:!e.operation.list[e.operation.idx-1]}]),onClick:t[18]||(t[18]=(...q)=>e.prevOperationRecord&&e.prevOperationRecord(...q))},null,2),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-next-step",{disabled:!e.operation.list[e.operation.idx+1]}]),onClick:t[19]||(t[19]=(...q)=>e.nextOperationRecord&&e.nextOperationRecord(...q))},null,2)])],64))]),n.createElementVNode("div",w$,[e.inputForm.state?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.renderSlot(e.$slots,"handle"),e.getConfig("showSaveBtn",!1)?(n.openBlock(),n.createBlock(L,{key:0,class:"_fd-btn-success",size:"small",onClick:e.handleSave},{default:n.withCtx(()=>[t[54]||(t[54]=n.createElementVNode("i",{class:"fc-icon icon-save"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),n.createVNode(L,{class:"_fd-btn-primary",size:"small",onClick:e.openPreview},{default:n.withCtx(()=>[t[55]||(t[55]=n.createElementVNode("i",{class:"fc-icon icon-preview"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.preview")),1)]),_:1},8,["onClick"]),n.createVNode(U,{title:e.t("designer.clearWarn"),"ok-text":e.t("props.clear"),"cancel-text":e.t("props.cancel"),onConfirm:e.clearDragRule},{default:n.withCtx(()=>[n.createVNode(L,{class:"_fd-btn-danger",size:"small"},{default:n.withCtx(()=>[t[56]||(t[56]=n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.clear")),1)]),_:1})]),_:1},8,["title","ok-text","cancel-text","onConfirm"]),e.handle&&e.handle.length?(n.openBlock(),n.createBlock(z,{key:1,trigger:"click",size:"default",placement:"bottom"},{overlay:n.withCtx(()=>[n.createVNode(I,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.handle,q=>(n.openBlock(),n.createBlock(R,{onClick:n.withModifiers(oe=>e.triggerHandle(q),["stop"])},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(q.label),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),default:n.withCtx(()=>[n.createVNode(L,{class:"_fd-m-extend",ghost:"",size:"small"},{default:n.withCtx(()=>t[57]||(t[57]=[n.createElementVNode("i",{class:"fc-icon icon-more"},null,-1)])),_:1})]),_:1})):n.createCommentVNode("",!0)],64)),e.getConfig("showInputData",!0)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[58]||(t[58]=n.createElementVNode("div",{class:"line"},null,-1)),n.createElementVNode("div",E$,[e.inputCheckStatus?(n.openBlock(),n.createElementBlock("i",A$)):n.createCommentVNode("",!0),n.createElementVNode("span",null,n.toDisplayString(e.t("props.inputData"))+"\uFF1A",1),n.createVNode(W,{size:"small",checked:e.inputForm.state,"onUpdate:checked":e.openInputData},null,8,["checked","onUpdate:checked"])])],64)):n.createCommentVNode("",!0)])]),_:3}),n.createVNode(v,{class:"_fc-m-con"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-m-drag",e.device]),ref:"dragCon",style:n.normalizeStyle({"--fc-drag-empty":`'${e.t("designer.dragEmpty")}'`,"--fc-child-empty":`'${e.t("designer.childEmpty")}'`})},[n.createVNode(j,{spinning:e.dragLoading},{default:n.withCtx(()=>[e.inputForm.state?(n.openBlock(),n.createElementBlock("div",S$,[(n.openBlock(),n.createBlock(V,{key:e.inputForm.key,rule:e.inputForm.rule,option:e.inputForm.option,api:e.inputForm.api,"onUpdate:api":t[20]||(t[20]=q=>e.inputForm.api=q),disabled:!1},n.createSlots({_:2},[n.renderList(e.$slots,(q,oe)=>({name:oe,fn:n.withCtx(de=>[n.renderSlot(e.$slots,oe,n.normalizeProps(n.guardReactiveProps(de!=null?de:{})))])}))]),1032,["rule","option","api"]))])):e.device==="mobile"&&!e.onlyPC?(n.openBlock(),n.createBlock(k,{key:1,driver:"antd",rule:e.dragForm.rule,option:e.formOptions,api:e.dragForm.api,"onUpdate:api":t[21]||(t[21]=q=>e.dragForm.api=q)},n.createSlots({_:2},[n.renderList(e.$slots,(q,oe)=>({name:oe,fn:n.withCtx(de=>[n.renderSlot(e.$slots,oe,n.normalizeProps(n.guardReactiveProps(de!=null?de:{})))])}))]),1032,["rule","option","api"])):(n.openBlock(),n.createBlock(M,{key:2,rule:e.dragForm.rule,option:e.formOptions,api:e.dragForm.api,"onUpdate:api":t[22]||(t[22]=q=>e.dragForm.api=q)},n.createSlots({_:2},[n.renderList(e.$slots,(q,oe)=>({name:oe,fn:n.withCtx(de=>[n.renderSlot(e.$slots,oe,n.normalizeProps(n.guardReactiveProps(de!=null?de:{})))])}))]),1032,["rule","option","api"]))]),_:3},8,["spinning"])],6),e.inputForm.state?(n.openBlock(),n.createElementBlock("div",x$,[n.createVNode(L,{onClick:t[23]||(t[23]=q=>e.inputClear())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.clear")),1)]),_:1}),n.createVNode(L,{onClick:t[24]||(t[24]=q=>e.inputReset())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.reset")),1)]),_:1}),n.createVNode(L,{type:"primary",onClick:t[25]||(t[25]=q=>e.inputSave())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1})])):n.createCommentVNode("",!0)]),_:3})]),_:3}),!e.config||e.config.showConfig!==!1?(n.openBlock(),n.createBlock(u,{key:0,class:"_fc-r",width:"320px"},{default:n.withCtx(()=>[n.createVNode(m,{style:{height:"100%"}},{default:n.withCtx(()=>[n.createVNode(x,{style:{height:"auto"},class:"_fc-r-tabs"},{default:n.withCtx(()=>[!!e.activeRule||e.customForm.isShow||e.config&&e.config.showFormConfig===!1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["_fc-r-tab",{active:e.activeTab==="props"}]),onClick:t[26]||(t[26]=q=>e.activeTab="props")},n.toDisplayString(e.t("designer.component")),3)):n.createCommentVNode("",!0),!e.config||e.config.showFormConfig!==!1?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["_fc-r-tab",{active:e.activeTab==="form"}]),onClick:t[27]||(t[27]=q=>e.activeTab="form")},n.toDisplayString(e.t("designer.form")),3)):n.createCommentVNode("",!0),e.activeTab==="props"?(n.openBlock(),n.createBlock(Z,{key:2})):n.createCommentVNode("",!0)]),_:1}),!e.config||e.config.showFormConfig!==!1?n.withDirectives((n.openBlock(),n.createBlock(v,{key:0,class:"_fc-r-tab-form"},{default:n.withCtx(()=>[n.createVNode(M,{rule:e.form.rule,option:e.form.option,modelValue:e.form.value,onChange:e.formOptChange,api:e.form.api,"onUpdate:api":t[28]||(t[28]=q=>e.form.api=q)},{title:n.withCtx(q=>[q.rule.warning?(n.openBlock(),n.createBlock(J,{key:0,tooltip:q.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(q.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(q.rule.title),1)],64))]),_:1},8,["rule","option","modelValue","onChange","api"])]),_:1},512)),[[n.vShow,e.activeTab==="form"]]):n.createCommentVNode("",!0),n.withDirectives((n.openBlock(),n.createBlock(v,{class:"_fc-r-tab-props",key:e.activeRule?e.activeRule._fc_id:e.customForm.config?e.customForm.key:""},{default:n.withCtx(()=>{var q;return[e.activeRule||e.customForm.config&&(e.customForm.config.name||e.customForm.config.label)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("p",k$,n.toDisplayString(e.t("designer.type")),1),n.createVNode(F),e.activeRule&&e.activeRule.name?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("p",N$,[n.createVNode(J,{tooltip:e.t("warning.name")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.name")),1)]),_:1},8,["tooltip"])]),n.createVNode(ie,{size:"small",class:"_fc-r-name-input",value:e.activeRule.name,readonly:""},{suffix:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-group",onClick:t[29]||(t[29]=(...oe)=>e.copyName&&e.copyName(...oe))})]),addonAfter:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-auto",onClick:t[30]||(t[30]=(...oe)=>e.updateName&&e.updateName(...oe))})]),_:1},8,["value"])],64)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),e.activeRuleChildren?(n.openBlock(),n.createBlock(pe,{key:1})):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"_fc-r-config",style:n.normalizeStyle({"grid-template-areas":e.configFormOrderStyle})},[n.createElementVNode("div",T$,[e.baseForm.isShow?(n.openBlock(),n.createBlock(se,{key:0,id:"_fd-config-base"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.rule")),1)]),_:1})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(M,{api:e.baseForm.api,"onUpdate:api":t[31]||(t[31]=oe=>e.baseForm.api=oe),rule:e.baseForm.rule,option:e.baseForm.options,modelValue:e.baseForm.value,onChange:e.baseChange},{title:n.withCtx(oe=>[oe.rule.warning?(n.openBlock(),n.createBlock(J,{key:0,tooltip:oe.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(oe.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(oe.rule.title),1)],64))]),_:1},8,["api","rule","option","modelValue","onChange"]),[[n.vShow,e.baseForm.isShow]])]),n.createElementVNode("div",O$,[e.advancedForm.isShow?(n.openBlock(),n.createBlock(se,{key:0,id:"_fd-config-advanced"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.advanced")),1)]),_:1})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(M,{api:e.advancedForm.api,"onUpdate:api":t[32]||(t[32]=oe=>e.advancedForm.api=oe),rule:e.advancedForm.rule,option:e.advancedForm.options,modelValue:e.advancedForm.value,onChange:e.computedChange},null,8,["api","rule","option","modelValue","onChange"]),[[n.vShow,e.advancedForm.isShow]])]),n.createElementVNode("div",D$,[e.propsForm.isShow?(n.openBlock(),n.createBlock(se,{key:0,id:"_fd-config-props"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.props"))+" ",1),e.propsForm.variable?(n.openBlock(),n.createBlock(ye,{key:0})):n.createCommentVNode("",!0),e.activeRule&&e.getConfig("showCustomProps",!0)?(n.openBlock(),n.createBlock(fe,{key:1})):n.createCommentVNode("",!0)]),_:1})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(M,{api:e.propsForm.api,"onUpdate:api":t[33]||(t[33]=oe=>e.propsForm.api=oe),rule:e.propsForm.rule,option:e.propsForm.options,modelValue:e.propsForm.value,onChange:e.propChange,onRemoveField:e.propRemoveField},{title:n.withCtx(oe=>[oe.rule.warning?(n.openBlock(),n.createBlock(J,{key:0,tooltip:oe.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(oe.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(oe.rule.title),1)],64))]),_:1},8,["api","rule","option","modelValue","onChange","onRemoveField"]),[[n.vShow,e.propsForm.isShow]]),e.customForm.isShow&&e.customForm.propsShow?(n.openBlock(),n.createBlock(se,{key:1,id:"_fd-config-props"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.props")),1)]),_:1})):n.createCommentVNode("",!0),e.customForm.isShow&&e.customForm.propsShow?(n.openBlock(),n.createBlock(M,{api:e.customForm.api,"onUpdate:api":t[34]||(t[34]=oe=>e.customForm.api=oe),rule:e.customForm.rule,option:e.customForm.options,key:e.customForm.key,onChange:e.customFormChange},null,8,["api","rule","option","onChange"])):n.createCommentVNode("",!0)]),n.createElementVNode("div",B$,[e.activeRule&&((q=e.config)==null?void 0:q.showSlotsConfig)!==!1&&e.activeRule._menu.easySlots&&e.activeRule._menu.easySlots.length?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(se,{id:"_fd-config-slots"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.slots")),1)]),_:1}),n.createVNode(ue)],64)):n.createCommentVNode("",!0)]),n.createElementVNode("div",$$,[e.styleForm.isShow?(n.openBlock(),n.createBlock(se,{key:0,id:"_fd-config-style"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.style")),1)]),_:1})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(M,{rule:e.styleForm.rule,option:e.styleForm.options,modelValue:e.styleForm.value,onChange:e.styleChange,api:e.styleForm.api,"onUpdate:api":t[35]||(t[35]=oe=>e.styleForm.api=oe)},null,8,["rule","option","modelValue","onChange","api"]),[[n.vShow,e.styleForm.isShow]])]),n.createElementVNode("div",V$,[e.eventShow?(n.openBlock(),n.createBlock(se,{key:0,id:"_fd-config-event"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.event")),1)]),_:1})):n.createCommentVNode("",!0),e.eventShow?(n.openBlock(),n.createBlock(he,{key:1,"event-name":e.activeRule&&e.activeRule._menu.event||[],"component-name":e.activeRule&&e.activeRule._menu.name||"","model-value":e.activeRule&&e.activeRule._on||{},"onUpdate:modelValue":e.changeEvent},null,8,["event-name","component-name","model-value","onUpdate:modelValue"])):n.createCommentVNode("",!0)]),n.createElementVNode("div",R$,[e.activeRule?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.validateForm.isShow?(n.openBlock(),n.createBlock(se,{key:0,id:"_fd-config-validate"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.validate")),1)]),_:1})):n.createCommentVNode("",!0),e.validateForm.isShow?(n.openBlock(),n.createBlock(M,{api:e.validateForm.api,"onUpdate:api":t[36]||(t[36]=oe=>e.validateForm.api=oe),rule:e.validateForm.rule,option:e.validateForm.options,modelValue:e.validateForm.value,onChange:e.validateChange,key:e.activeRule._fc_id},null,8,["api","rule","option","modelValue","onChange"])):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)])],4)]}),_:1})),[[n.vShow,e.activeTab==="props"]])]),_:1})]),_:1})):n.createCommentVNode("",!0),n.createVNode(K,{open:e.preview.state,"onUpdate:open":t[43]||(t[43]=q=>e.preview.state=q),width:"800px",class:"_fd-preview-dialog",centered:"",destroyOnClose:!0,footer:null},{default:n.withCtx(()=>[n.createVNode(Y,{class:"_fd-preview-tabs",activeKey:e.previewStatus,"onUpdate:activeKey":t[37]||(t[37]=q=>e.previewStatus=q)},{default:n.withCtx(()=>[n.createVNode($,{tab:e.t("form.formMode"),key:"form"},null,8,["tab"]),n.createVNode($,{tab:e.t("form.previewMode"),key:"preview"},null,8,["tab"]),n.createVNode($,{tab:e.t("form.componentMode"),key:"component"},null,8,["tab"]),e.previewDevice!=="mobile"?(n.openBlock(),n.createBlock($,{tab:e.t("form.sfcMode"),key:"sfc"},null,8,["tab"])):n.createCommentVNode("",!0)]),_:1},8,["activeKey"]),e.previewStatus!=="sfc"&&!e.onlyPC?(n.openBlock(),n.createElementBlock("div",I$,[n.createElementVNode("div",{class:n.normalizeClass({active:e.previewDevice==="pc"}),onClick:t[38]||(t[38]=q=>e.previewDevice="pc")},[t[59]||(t[59]=n.createElementVNode("i",{class:"fc-icon icon-pc2"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("props.pc")),1)],2),n.createElementVNode("div",{class:n.normalizeClass({active:e.previewDevice==="mobile"}),onClick:t[39]||(t[39]=q=>e.previewDevice="mobile")},[t[60]||(t[60]=n.createElementVNode("i",{class:"fc-icon icon-mobile2"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("props.mobile")),1)],2)])):n.createCommentVNode("",!0),["component","sfc"].indexOf(e.previewStatus)>-1?(n.openBlock(),n.createElementBlock("div",{key:1,class:"_fd-preview-copy",onClick:t[40]||(t[40]=(...q)=>e.copyCode&&e.copyCode(...q))},t[61]||(t[61]=[n.createElementVNode("i",{class:"fc-icon icon-copy"},null,-1)]))):n.createCommentVNode("",!0),e.previewStatus==="form"||e.previewStatus==="preview"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[e.previewDevice==="mobile"?(n.openBlock(),n.createElementBlock("div",F$,[n.createElementVNode("div",null,[e.preview.state?(n.openBlock(),n.createBlock(Q,{key:0,driver:"antd",rule:e.preview.rule,option:e.preview.option,api:e.preview.api,"onUpdate:api":t[41]||(t[41]=q=>e.preview.api=q)},n.createSlots({_:2},[n.renderList(e.$slots,(q,oe)=>({name:oe,fn:n.withCtx(de=>[n.renderSlot(e.$slots,oe,n.normalizeProps(n.guardReactiveProps(de!=null?de:{})))])}))]),1032,["rule","option","api"])):n.createCommentVNode("",!0)])])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.preview.state?(n.openBlock(),n.createBlock(V,{key:0,rule:e.preview.rule,option:e.preview.option,api:e.preview.api,"onUpdate:api":t[42]||(t[42]=q=>e.preview.api=q)},n.createSlots({_:2},[n.renderList(e.$slots,(q,oe)=>({name:oe,fn:n.withCtx(de=>[n.renderSlot(e.$slots,oe,n.normalizeProps(n.guardReactiveProps(de!=null?de:{})))])}))]),1032,["rule","option","api"])):n.createCommentVNode("",!0)],64))],64)):e.previewStatus==="component"?(n.openBlock(),n.createElementBlock("pre",P$,[n.createElementVNode("code",{innerHTML:e.previewDevice==="mobile"?e.preview.mobileHtml:e.preview.html},null,8,M$)],512)):(n.openBlock(),n.createElementBlock("pre",L$,[n.createElementVNode("code",{innerHTML:e.preview.sfc},null,8,j$)],512))]),_:3},8,["open"])]),_:3}))]),_:3})]),_:3},8,["style","onDragenter","onDragleave","onDrop"])]),_:3},8,["theme","locale"])}const Dt=Ne(e$,[["render",z$]]),G3="",H$=n.defineComponent({name:"DragTool",emits:["create","copy","addChild","delete","active","action","fc.el"],props:{dragBtn:Boolean,children:String,inside:Boolean,inline:Boolean,hidden:Boolean,mask:Boolean,actions:Array,handleBtn:[Boolean,Array],formCreateInject:Object,unique:String,only:Boolean},inject:{fcx:{default:null},designer:{default:null},dragTool:{default:null}},provide(){return{dragTool:this}},computed:{isCreate(){return this.dragTool?!!this.dragTool.children:!1},btns(){return Array.isArray(this.handleBtn)?this.handleBtn.length?this.handleBtn:!1:this.handleBtn!==!1},id(){return this.unique||this.formCreateInject.id},hiddenMenu(){return this.designer.setupState.hiddenDragMenu},t(){return this.designer.setupState.t},hiddenBtn(){return this.designer.setupState.hiddenDragBtn}},methods:{command(e){this.$emit("action",e)},active(){this.fcx.active!==this.id&&(this.fcx.active=this.id,this.$emit("active"))}},mounted(){this.$emit("fc.el",this)}}),U$={key:0,class:"_fd-drag-mask"},W$={key:1,class:"_fd-drag-hidden"},G$={key:0,class:"_fd-drag-btn",style:{cursor:"move"}},K$={key:3,class:"_fd-drag-r"};function Y$(e,t,i,r,o,s){const d=n.resolveComponent("a-menu-item"),c=n.resolveComponent("a-menu"),u=n.resolveComponent("a-dropdown");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fd-drag-tool",{active:e.fcx.active===e.id,"is-inside":e.inside,"is-inline":e.inline}]),onClick:t[10]||(t[10]=n.withModifiers((...g)=>e.active&&e.active(...g),["stop"]))},[e.mask?(n.openBlock(),n.createElementBlock("div",U$)):n.createCommentVNode("",!0),e.hidden?(n.openBlock(),n.createElementBlock("div",W$,[t[11]||(t[11]=n.createElementVNode("i",{class:"fc-icon icon-eye-close"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.hide")),1)])):n.createCommentVNode("",!0),e.hiddenBtn?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:2,class:"_fd-drag-l",onClick:t[0]||(t[0]=n.withModifiers(()=>{},["stop"]))},[e.dragBtn!==!1?n.withDirectives((n.openBlock(),n.createElementBlock("div",G$,t[12]||(t[12]=[n.createElementVNode("i",{class:"fc-icon icon-move"},null,-1)]),512)),[[n.vShow,e.fcx.active===e.id]]):n.createCommentVNode("",!0)])),e.btns!==!1&&!e.hiddenMenu?(n.openBlock(),n.createElementBlock("div",K$,[n.renderSlot(e.$slots,"handle",{},()=>[e.actions&&e.actions.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:"_fd-drag-btn",onClick:t[1]||(t[1]=n.withModifiers(()=>{},["stop"]))},[n.createVNode(u,{trigger:"click",size:"default"},{overlay:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.actions,(g,y)=>(n.openBlock(),n.createBlock(d,{onClick:C=>e.command(y)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t(g)||g),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),default:n.withCtx(()=>[t[13]||(t[13]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:1})])):n.createCommentVNode("",!0),e.isCreate&&(e.btns===!0||e.btns.indexOf("create")>-1)?(n.openBlock(),n.createElementBlock("div",{key:1,class:"_fd-drag-btn",onClick:[t[2]||(t[2]=n.withModifiers(()=>{},["stop"])),t[3]||(t[3]=g=>e.$emit("create"))]},t[14]||(t[14]=[n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)]))):n.createCommentVNode("",!0),!e.only&&(e.btns===!0||e.btns.indexOf("copy")>-1)?(n.openBlock(),n.createElementBlock("div",{key:2,class:"_fd-drag-btn",onClick:[t[4]||(t[4]=n.withModifiers(()=>{},["stop"])),t[5]||(t[5]=g=>e.$emit("copy"))]},t[15]||(t[15]=[n.createElementVNode("i",{class:"fc-icon icon-copy"},null,-1)]))):n.createCommentVNode("",!0),e.children&&(e.btns===!0||e.btns.indexOf("addChild")>-1)?(n.openBlock(),n.createElementBlock("div",{key:3,class:"_fd-drag-btn",onClick:[t[6]||(t[6]=n.withModifiers(()=>{},["stop"])),t[7]||(t[7]=g=>e.$emit("addChild"))]},t[16]||(t[16]=[n.createElementVNode("i",{class:"fc-icon icon-add-child"},null,-1)]))):n.createCommentVNode("",!0),e.btns===!0||e.btns.indexOf("delete")>-1?(n.openBlock(),n.createElementBlock("div",{key:4,class:"_fd-drag-btn _fd-drag-danger",onClick:[t[8]||(t[8]=n.withModifiers(()=>{},["stop"])),t[9]||(t[9]=g=>e.$emit("delete"))]},t[17]||(t[17]=[n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)]))):n.createCommentVNode("",!0)])])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"default")],2)}const Fm=Ne(H$,[["render",Y$]]),K3="",Q$=n.defineComponent({name:"HtmlEditor",emits:["update:modelValue"],props:{modelValue:String,title:String,defaultValue:{require:!1}},inject:["designer"],computed:{t(){return this.designer.setupState.t}},data(){return{editor:null,visible:!1,oldVal:null}},watch:{modelValue(){this.load()},visible(e){e&&this.load()}},methods:{validateXML(e){var o;const r=new DOMParser().parseFromString(e,"application/xml").getElementsByTagName("parsererror");return r.length>0&&(o=r[0].innerText.split(`
`)[0])!=null?o:""},load(){this.oldVal=this.modelValue,this.$nextTick(()=>{this.editor=n.markRaw(fo(this.$refs.editor,{lineNumbers:!0,mode:"xml",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:this.modelValue||""}))})},onOk(){const e=this.editor.getValue();return this.validateXML(e)?(qt(this.t("struct.errorMsg")),!1):(this.visible=!1,e!==this.oldVal&&this.$emit("update:modelValue",e),!0)}}}),X$={class:"_fd-html-editor"},J$={key:0,ref:"editor"};function Z$(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",X$,[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:t[0]||(t[0]=u=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title||e.t("struct.title")),1)]),_:1}),n.createVNode(c,{class:"_fd-html-editor-con",title:e.title||e.t("struct.title"),open:e.visible,"onUpdate:open":t[2]||(t[2]=u=>e.visible=u),centered:"",maskClosable:!1,destroyOnClose:!0,width:"800px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[1]||(t[1]=u=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.onOk,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createElementBlock("div",J$,null,512)):n.createCommentVNode("",!0)]),_:1},8,["title","open"])])}const q$=Ne(Q$,[["render",Z$]]),Y3="",eV=n.defineComponent({name:"FieldInput",inject:["designer"],emits:["update:modelValue"],props:{modelValue:String,disabled:Boolean},computed:{fieldList(){if(this.key)return this.getFieldList()},subformFieldList(){const e=this.designer.setupState.fieldList||[],t=this.fieldLeafSelectable?e:this.removeLeafNodes(et(e));return t.length?t:e},fieldReadonly(){return this.designer.setupState.fieldReadonly},isSubform(){return this.activeRule&&this.activeRule._menu.subForm},activeRule(){return this.designer.setupState.activeRule},relationField(){return this.designer.props.config.relationField},fieldLeafSelectable(){return this.designer.props.config.fieldLeafSelectable!==!1},t(){return this.designer.setupState.t}},data(){return{value:this.modelValue||"",oldValue:"",key:1,activeNode:null}},watch:{modelValue(e){this.value=e}},methods:{updateValue(e){this.fieldReadonly||this.disabled||(this.value=e.target.value,this.onInput(),e.target.blur())},getFieldList(){let e=this.designer.setupState.fieldList||[];if(this.relationField===!1)return e;if(this.isSubform)e=this.subformFieldList;else{const t=this.activeRule;let i=t&&t.__fc__&&t.__fc__.parent;for(;i;)if(i.rule._menu&&["array","object"].indexOf(i.rule._menu.subForm)>-1){const r=this.findChildrenById(e,i.rule.field)||e;r.length&&(e=r);break}else i=i.parent}return e},removeLeafNodes(e){if(!Array.isArray(e)||e.length===0)return e;function t(i){return i.filter(r=>r.children&&r.children.length>0?(r.children=t(r.children),!0):!1)}return t(e)},findChildrenById(e,t){if(!Array.isArray(e))return null;for(const i of e){if(i.value===t)return i.children||[];if(i.children){const r=this.findChildrenById(i.children,t);if(r!==null)return r}}return null},copy(){Kn(this.modelValue)},getSubChildren(){let e=this.designer.setupState.getSubFormChildren(this.activeRule)||[];return e=at.trueArray(e)?e:this.designer.setupState.children,e},getSubFieldChildren(){const e=this.getSubChildren(),t=[],i=r=>(r&&r.forEach(o=>{o&&o._fc_drag_tag&&o.field?t.push({...o,children:[]}):o&&o.children&&i(o.children)}),t);return i(e)},checkValue(){const e=this.oldValue;Ku(e);let t=(this.value||"").replace(/[\s\ ]/g,"");if(t)if(/^[a-zA-Z]/.test(t)){if(e!==t){const i=t.indexOf(".")>-1;if(i&&(t=t.replaceAll(".","_")),this.getSubFieldChildren().filter(r=>r.field===t).length>0)return qt(this.t("computed.fieldExist",{label:t})),e;if(i)return t}}else return qt(this.t("computed.fieldChar")),e;else return qt(this.t("computed.fieldEmpty")),e;return this.oldValue="",t},onFocus(){this.oldValue=this.value},makeField(){this.oldValue=this.value,this.value=Ye(),this.onInput()},updateRule(e){const t={...e.update||{}};t.title||(t.title=e.label),this.designer.setupState.mergeRule(this.activeRule,t),this.designer.setupState.updateRuleFormData()},onInput(){if(this.value!==this.modelValue&&(this.value=this.checkValue(),this.value!==this.modelValue)){const e=this.activeNode;this.activeNode=null,this.oldValue=this.value,this.$emit("update:modelValue",this.value),e&&this.updateRule(e)}},currentChange(e,t){this.activeNode=t,this.onInput()}},mounted(){const e=()=>{n.nextTick(()=>{++this.key})};this.designer.setupState.bus.$on("dragEnd",e),n.onUnmounted(()=>{this.designer.setupState.bus.$off("dragEnd",e)})}}),tV={class:"_fd-field-input"};function nV(e,t,i,r,o,s){const d=n.resolveComponent("a-input"),c=n.resolveComponent("a-tree-select");return n.openBlock(),n.createElementBlock("div",tV,[n.createElementVNode("i",{class:"fc-icon icon-group",onClick:t[0]||(t[0]=n.withModifiers((...u)=>e.copy&&e.copy(...u),["stop"]))}),e.fieldList.length?(n.openBlock(),n.createBlock(c,{key:1,value:e.value,"onUpdate:value":t[3]||(t[3]=u=>e.value=u),"show-search":"",disabled:e.disabled,"dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-default-expand-all":"","tree-data":e.fieldList,size:"small","tree-node-filter-prop":"label",onKeydown:n.withKeys(e.updateValue,["enter"]),onFocus:e.onFocus,onSelect:e.currentChange},null,8,["value","disabled","tree-data","onKeydown","onFocus","onSelect"])):(n.openBlock(),n.createBlock(d,{key:0,value:e.value,"onUpdate:value":t[2]||(t[2]=u=>e.value=u),readonly:e.fieldReadonly||e.disabled,disabled:e.fieldReadonly||e.disabled,size:"small",onFocus:e.onFocus,onBlur:e.onInput},n.createSlots({_:2},[e.fieldReadonly?void 0:{name:"addonAfter",fn:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-auto",onClick:t[1]||(t[1]=(...u)=>e.makeField&&e.makeField(...u))})]),key:"0"}]),1032,["value","readonly","disabled","onFocus","onBlur"]))])}const oV=Ne(eV,[["render",nV]]),Q3="",iV=n.defineComponent({name:"PromptInput",emits:["update:modelValue","change"],props:{size:String,modelValue:String,popperClass:String,options:Array},data(){return{value:this.modelValue||""}},methods:{setValue(e){this.value=e,this.onInput()},onInput(){this.$emit("update:modelValue",this.value),this.$emit("change",this.value)}}});function rV(e,t,i,r,o,s){const d=n.resolveComponent("a-menu-item"),c=n.resolveComponent("a-menu"),u=n.resolveComponent("a-dropdown"),g=n.resolveComponent("a-input");return n.openBlock(),n.createBlock(g,{size:e.size,value:e.value,"onUpdate:value":t[0]||(t[0]=y=>e.value=y),onBlur:e.onInput,allowClear:"",class:"_fd-list-input"},{addonAfter:n.withCtx(()=>[n.createVNode(u,{size:"default",trigger:"click",class:n.normalizeClass(e.popperClass)},{overlay:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,y=>(n.openBlock(),n.createBlock(d,{key:y.value,onClick:C=>e.setValue(y.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(y.label),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:1},8,["class"])]),_:1},8,["size","value","onBlur"])}const aV=Ne(iV,[["render",rV]]),X3="",lV=e=>[{type:"input",field:"action",title:e("fetch.action"),value:"",validate:[{required:!0,message:e("fetch.actionRequired"),trigger:"blur"}],inject:!0,on:{blur({self:t},i){t._start=i.target.selectionStart}},children:[{type:"VariableConfig",slot:"suffix",props:{popover:!0},inject:!0,on:{confirm({api:t},i){const r=t.getRule("action");r.value=r.value.substring(0,r._start)+i+r.value.substring(r._start)}}}]},{type:"radio",field:"method",title:e("fetch.method"),value:"GET",options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"}],$required:!0},{type:"radio",field:"dataType",title:e("fetch.dataType"),warning:e("warning.fetchDataType"),value:"json",options:[{label:"JSON",value:"json"},{label:"FormData",value:"formData"}],$required:!0},{type:"FetchTable",field:"headers",title:e("fetch.headers"),value:{}},{type:"FetchTable",field:"query",title:e("fetch.query"),warning:e("warning.fetchQuery"),value:{}},{type:"FetchTable",field:"data",title:e("fetch.data"),warning:e("warning.fetchData"),value:{}}],sV=n.defineComponent({name:"FetchConfig",emits:["update:modelValue"],props:{modelValue:[Object,String],to:String},components:{Warning:Zn,DragForm:ze.$form(),FnEditor:po,StructEditor:zc},inject:["designer"],data(){return{visible:!1,value:et(this.modelValue||{}),form:{api:{},formData:{},rule:[],options:{form:{labelWidth:"90px",size:"default"},submitBtn:!1,resetBtn:!1}}}},computed:{t(){return this.designer.setupState.t},configured(){return!at.empty(this.modelValue)}},watch:{visible(e){e&&(this.value=et(this.modelValue||{}),this.active())}},methods:{open(){this.visible=!0},active(){const e=this.value;this.form.rule=e.type==="static"?[]:lV(this.t),this.form.formData={...e},this.form.label=e.label,this.form.type=e.type,this.form.data=e.data,this.form.dataType=e.dataType,this.form.parse=e.parse||"",this.form.onError=e.onError||""},save(){this.form.api.validate().then(()=>{const e={...this.form.formData};this.$refs.parse&&!this.$refs.parse.save()||this.$refs.error&&!this.$refs.error.save()||(e.parse=this.form.parse,e.onError=this.form.onError,e.label=this.form.label,e.type=this.form.type,e.to=this.to||"options",this.$emit("update:modelValue",e),this.visible=!1)}).catch(e=>{console.error(e),qt(e.errorFields[0].errors[0])})}},created(){this.active()}}),dV={class:"_fd-fetch-config"},cV={class:"_fd-fetch-info"};function uV(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),u=n.resolveComponent("Warning"),g=n.resolveComponent("DragForm"),y=n.resolveComponent("a-tab-pane"),C=n.resolveComponent("FnEditor"),w=n.resolveComponent("a-tabs"),A=n.resolveComponent("a-layout"),E=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",dV,[n.createVNode(c,{color:"orange",dot:e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:t[0]||(t[0]=_=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("struct.title")),1)]),_:1})]),_:1},8,["dot"]),n.createVNode(E,{class:"_fd-fetch-dialog _fd-config-dialog",open:e.visible,"onUpdate:open":t[6]||(t[6]=_=>e.visible=_),centered:"",maskClosable:!1,destroyOnClose:!0,width:"980px"},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.optionsType.fetch"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.fetch")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[5]||(t[5]=_=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.save,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(A,{class:"_fd-fetch-con",style:{height:"450px"}},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fc-tabs"},{default:n.withCtx(()=>[n.createVNode(y,{tab:e.t("fetch.config"),key:"first",style:{"padding-right":"15px"}},{default:n.withCtx(()=>[n.createElementVNode("div",cV,n.toDisplayString(e.t("fetch.info")),1),n.createVNode(g,{api:e.form.api,"onUpdate:api":t[1]||(t[1]=_=>e.form.api=_),modelValue:e.form.formData,"onUpdate:modelValue":t[2]||(t[2]=_=>e.form.formData=_),rule:e.form.rule,option:e.form.options},{title:n.withCtx(_=>[_.rule.warning?(n.openBlock(),n.createBlock(u,{key:0,tooltip:_.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(_.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(_.rule.title),1)],64))]),_:1},8,["api","modelValue","rule","option"])]),_:1},8,["tab"]),n.createVNode(y,{lazy:"",key:"second"},{tab:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.parse"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.fetchParse")},null,8,["tooltip"])]),default:n.withCtx(()=>[n.createVNode(C,{style:{height:"100%"},modelValue:e.form.parse,"onUpdate:modelValue":t[3]||(t[3]=_=>e.form.parse=_),name:"parse",args:[{name:"res",info:e.t("fetch.response")},"rule","api"],ref:"parse"},null,8,["modelValue","args"])]),_:1}),n.createVNode(y,{lazy:"",tab:e.t("fetch.onError"),key:"third"},{default:n.withCtx(()=>[n.createVNode(C,{style:{height:"100%"},modelValue:e.form.onError,"onUpdate:modelValue":t[4]||(t[4]=_=>e.form.onError=_),name:"onError",args:["e"],ref:"error"},null,8,["modelValue"])]),_:1},8,["tab"])]),_:1})]),_:1})]),_:1},8,["open"])])}const fV=Ne(sV,[["render",uV]]),J3="",pV=n.defineComponent({name:"TableColumnConfig",components:{FnEditor:po},props:{modelValue:Array},inject:["designer"],data(){return{column:[],visible:!1,activeRow:null}},computed:{t(){return this.designer.setupState.t},tableColumns(){return[{title:this.t("com.dataTable.column.prop"),width:"100px",dataIndex:"prop"},{title:this.t("props.title"),width:"100px",dataIndex:"title"},{title:this.t("style.width"),width:"100px",dataIndex:"width"},{title:this.t("com.dataTable.filter"),width:"120px",dataIndex:"filter"},{title:"Class",width:"100px",dataIndex:"className"},{title:this.t("com.dataTable.column.sort"),width:"100px",dataIndex:"sorter"},{title:this.t("props.position"),width:"100px",dataIndex:"fixed"},{title:this.t("style.font.align"),width:"100px",dataIndex:"align"},{title:this.t("props.render"),width:"110px",dataIndex:"format"},{title:this.t("props.hide"),width:"50px",fixed:"right",dataIndex:"hidden"},{title:this.t("tableOptions.handle"),width:"70px",fixed:"right",dataIndex:"handle"}]},configured(){return!!this.modelValue},list(){var e;return((e=this.designer.setupState.activeRule)==null?void 0:e.__fc__.el.list)||[]},propColumns(){return Object.keys(this.list[0]||{})},format(){return["default","tag","image","custom"].map(e=>({label:this.t("com.dataTable.format."+e),value:e}))},align(){return["left","center","right"].map(e=>({label:this.t("props."+e),value:e}))},fixed(){return[!1,"left","right"].map(e=>({label:this.t("com.dataTable.fixed."+(e||"default")),value:e}))},sortable(){return[!1,!0,"custom"].map(e=>({label:this.t("com.dataTable.sortable."+(typeof e=="boolean"?e?"default":"disabled":"custom")),value:e}))}},watch:{visible(e){e?this.tidyValue():this.activeRow=null}},methods:{getColumnData(e){const t=[];return e&&(this.list||[]).forEach(i=>{In(i,e)&&t.indexOf(i[e])===-1&&t.push(i[e])}),t},add(e){const t={format:"default",filter:[]};e!=null?this.column.splice(e+1,0,t):this.column.push(t)},remove(e){this.column.splice(e,1)},editFn(e){this.activeRow=e},updateFn(){this.activeRow=null},tidyValue(){this.column=et(this.modelValue||[]),this.column.length||this.add()},close(){this.activeRow?this.activeRow=null:this.visible=!1},submit(){if(this.activeRow){this.$refs.fn.save()&&(this.activeRow=null);return}const e=[];for(let t=0;t<this.column.length;t++){const i=this.column[t];if(!i.label){qt(this.t("com.dataTable.requiredLabel"));return}const r={...i};if(r.label){if(r.format!=="custom")delete r.render;else if(!r.render){qt(this.t("com.dataTable.requiredRender"));return}e.push(r)}}this.$emit("update:modelValue",e),this.$emit("change",e),this.visible=!1}}}),hV={class:"_fd-table-column-config"},mV={key:8,class:"flex"},gV=["onClick"],vV=["onClick"],yV=["onClick"],bV=["onClick"];function CV(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),u=n.resolveComponent("FnEditor"),g=n.resolveComponent("a-select-option"),y=n.resolveComponent("a-select"),C=n.resolveComponent("a-input"),w=n.resolveComponent("a-switch"),A=n.resolveComponent("a-table"),E=n.resolveComponent("a-form-item-rest"),_=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",hV,[n.createVNode(c,{color:"orange",dot:e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:t[0]||(t[0]=v=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("com.dataTable.column.btn")),1)]),_:1})]),_:1},8,["dot"]),n.createVNode(_,{class:"_fd-tcc-dialog _fd-config-dialog",title:e.t("com.dataTable.column.title"),open:e.visible,"onUpdate:open":t[3]||(t[3]=v=>e.visible=v),centered:"",maskClosable:!1,destroyOnClose:!0,width:"980px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"middle",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{type:"primary",size:"middle",onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(E,null,{default:n.withCtx(()=>[e.activeRow?(n.openBlock(),n.createBlock(u,{key:0,ref:"fn",modelValue:e.activeRow.render,"onUpdate:modelValue":t[1]||(t[1]=v=>e.activeRow.render=v),args:["scope","h"," resolveComponent","api"],name:"render"},null,8,["modelValue"])):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(A,{"data-source":e.column,columns:e.tableColumns,size:"small",pagination:!1,scroll:{x:1200},style:{width:"100%"}},{bodyCell:n.withCtx(v=>[v.column.dataIndex==="prop"?(n.openBlock(),n.createBlock(y,{key:0,value:v.record.prop,"onUpdate:value":m=>v.record.prop=m,showSearch:"",onKeydown:n.withKeys(m=>v.record.prop=m.target.value,["enter"])},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.propColumns,m=>(n.openBlock(),n.createBlock(g,{value:m},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["value","onUpdate:value","onKeydown"])):v.column.dataIndex==="title"?(n.openBlock(),n.createBlock(C,{key:1,value:v.record.label,"onUpdate:value":m=>v.record.label=m},null,8,["value","onUpdate:value"])):v.column.dataIndex==="width"?(n.openBlock(),n.createBlock(C,{key:2,value:v.record.width,"onUpdate:value":m=>v.record.width=m},null,8,["value","onUpdate:value"])):v.column.dataIndex==="filter"?(n.openBlock(),n.createBlock(y,{key:3,value:v.record.filter,"onUpdate:value":m=>v.record.filter=m,mode:"tags"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.getColumnData(v.record.prop),m=>(n.openBlock(),n.createBlock(g,{value:m},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["value","onUpdate:value"])):v.column.dataIndex==="className"?(n.openBlock(),n.createBlock(C,{key:4,value:v.record.className,"onUpdate:value":m=>v.record.className=m},null,8,["value","onUpdate:value"])):v.column.dataIndex==="sorter"?(n.openBlock(),n.createBlock(y,{key:5,value:v.record.sorter,"onUpdate:value":m=>v.record.sorter=m},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.sortable,m=>(n.openBlock(),n.createBlock(g,{value:m.value,key:m.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value"])):v.column.dataIndex==="fixed"?(n.openBlock(),n.createBlock(y,{key:6,value:v.record.fixed,"onUpdate:value":m=>v.record.fixed=m},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.fixed,m=>(n.openBlock(),n.createBlock(g,{value:m.value,key:m.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value"])):v.column.dataIndex==="align"?(n.openBlock(),n.createBlock(y,{key:7,value:v.record.align,"onUpdate:value":m=>v.record.align=m},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.align,m=>(n.openBlock(),n.createBlock(g,{value:m.value,key:m.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value"])):v.column.dataIndex==="format"?(n.openBlock(),n.createElementBlock("div",mV,[n.createVNode(y,{value:v.record.format,"onUpdate:value":m=>v.record.format=m},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.format,m=>(n.openBlock(),n.createBlock(g,{value:m.value,key:m.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value"]),v.record.format==="custom"?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-edit",onClick:m=>e.editFn(v.record)},null,8,gV)):n.createCommentVNode("",!0)])):v.column.dataIndex==="hidden"?(n.openBlock(),n.createBlock(w,{key:9,checked:v.record.hidden,"onUpdate:checked":m=>v.record.hidden=m},null,8,["checked","onUpdate:checked"])):v.column.dataIndex==="handle"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:10},[n.createElementVNode("i",{class:"fc-icon icon-add-circle",onClick:m=>e.add(v.index)},null,8,vV),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:m=>e.remove(v.index)},null,8,yV)],64)):(n.openBlock(),n.createElementBlock("i",{key:11,class:"fc-icon icon-delete",onClick:m=>e.del(v.index)},null,8,bV))]),_:1},8,["data-source","columns"]),[[n.vShow,!e.activeRow]])]),_:1}),n.withDirectives(n.createVNode(d,{type:"link",onClick:t[2]||(t[2]=v=>e.add())},{default:n.withCtx(()=>[t[4]||(t[4]=n.createElementVNode("i",{class:"fc-icon icon-add-circle"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("tableOptions.add")),1)]),_:1},512),[[n.vShow,!e.activeRow]])]),_:1},8,["title","open"])])}const _V=Ne(pV,[["render",CV]]),Z3="",wV=n.defineComponent({name:"TableColumnConfig",props:{modelValue:Array},inject:["designer"],data(){return{column:[],visible:!1,activeRow:null,activeKey:"",activeArgs:[]}},computed:{t(){return this.designer.setupState.t},tableColumns(){return[{title:this.t("props.preview"),width:"100px",dataIndex:"preview"},{title:"ID",width:"100px",dataIndex:"key"},{title:this.t("props.name"),dataIndex:"name"},{title:this.t("event.type"),width:"120px",dataIndex:"type"},{title:this.t("style.font.size"),width:"120px",dataIndex:"size"},{title:this.t("props.hide"),width:"80px",dataIndex:"hidden"},{title:this.t("props.callback"),width:"80px",dataIndex:"callback"},{title:this.t("tableOptions.handle"),width:"80px",dataIndex:"handle"}]},configured(){return!!this.modelValue},size(){return["large","default","small"].map(e=>({label:this.t("props."+e),value:e}))},type(){return["default","primary","dashed","link","text"].map(e=>({label:this.t("props."+e),value:e}))}},watch:{visible(e){e?this.tidyValue():this.activeRow=null}},methods:{btnProps(e){return{type:e.type,size:e.size}},defaultData(){return{key:this.column.length+1,name:this.t("props.button")+(this.column.length+1)}},add(e){e!=null?this.column.splice(e+1,0,this.defaultData()):this.column.push(this.defaultData())},handle(e,t,i){this.activeKey=t,this.activeRow=e,this.activeArgs=i},remove(e){this.column.splice(e,1)},tidyValue(){this.column=et(this.modelValue||[]),this.column.length||this.add()},close(){this.activeRow?this.activeRow=null:this.visible=!1},submit(){if(this.activeRow){this.$refs.fn.save()&&(this.activeRow=null);return}const e=[];for(let t=0;t<this.column.length;t++){const i=this.column[t];if(!i.name){qt(this.t("com.dataTable.requiredName"));return}if(!i.key){qt(this.t("com.dataTable.requiredKey"));return}e.push({...i})}this.$emit("update:modelValue",e),this.$emit("change",e),this.visible=!1}}}),EV={class:"_fd-table-button-config"},AV=["onClick"],SV=["onClick"],xV=["onClick"],kV=["onClick"];function NV(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),u=n.resolveComponent("FnEditor"),g=n.resolveComponent("a-input"),y=n.resolveComponent("a-select-option"),C=n.resolveComponent("a-select"),w=n.resolveComponent("a-switch"),A=n.resolveComponent("a-table"),E=n.resolveComponent("a-form-item-rest"),_=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",EV,[n.createVNode(c,{color:"orange",dot:e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:t[0]||(t[0]=v=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("com.dataTable.button.btn")),1)]),_:1})]),_:1},8,["dot"]),n.createVNode(_,{class:"_fd-tcb-dialog _fd-config-dialog",title:e.t("com.dataTable.button.title"),open:e.visible,"onUpdate:open":t[3]||(t[3]=v=>e.visible=v),centered:"",maskClosable:!1,destroyOnClose:!0,width:"980px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"middle",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{type:"primary",size:"middle",onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[e.activeRow?(n.openBlock(),n.createBlock(u,{key:0,ref:"fn",modelValue:e.activeRow[e.activeKey],"onUpdate:modelValue":t[1]||(t[1]=v=>e.activeRow[e.activeKey]=v),args:e.activeArgs,name:e.activeKey},null,8,["modelValue","args","name"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createVNode(E,null,{default:n.withCtx(()=>[n.withDirectives(n.createVNode(A,{"data-source":e.column,columns:e.tableColumns,size:"small",rowKey:"index",pagination:!1,style:{width:"100%"}},{bodyCell:n.withCtx(v=>[v.column.dataIndex==="preview"?(n.openBlock(),n.createBlock(d,n.normalizeProps(n.mergeProps({key:0},e.btnProps(v.record))),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(v.record.name),1)]),_:2},1040)):v.column.dataIndex==="key"?(n.openBlock(),n.createBlock(g,{key:1,value:v.record.key,"onUpdate:value":m=>v.record.key=m},null,8,["value","onUpdate:value"])):v.column.dataIndex==="name"?(n.openBlock(),n.createBlock(g,{key:2,value:v.record.name,"onUpdate:value":m=>v.record.name=m},null,8,["value","onUpdate:value"])):v.column.dataIndex==="type"?(n.openBlock(),n.createBlock(C,{key:3,value:v.record.type,"onUpdate:value":m=>v.record.type=m},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.type,m=>(n.openBlock(),n.createBlock(y,{value:m.value,key:m.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value"])):v.column.dataIndex==="size"?(n.openBlock(),n.createBlock(C,{key:4,value:v.record.size,"onUpdate:value":m=>v.record.size=m},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.size,m=>(n.openBlock(),n.createBlock(y,{value:m.value,key:m.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value"])):v.column.dataIndex==="hidden"?(n.openBlock(),n.createBlock(w,{key:5,checked:v.record.hidden,"onUpdate:checked":m=>v.record.hidden=m},null,8,["checked","onUpdate:checked"])):v.column.dataIndex==="callback"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:6},[n.createElementVNode("div",{class:"_fd-tcb-btn",onClick:m=>e.handle(v.record,"handle",["props","scope","api"])},[n.createTextVNode(n.toDisplayString(e.t("com.dataTable.handle")),1),t[4]||(t[4]=n.createElementVNode("i",{class:"fc-icon icon-edit"},null,-1))],8,AV),n.createElementVNode("div",{class:"_fd-tcb-btn",onClick:m=>e.handle(v.record,"click",["scope","api"])},[n.createTextVNode(n.toDisplayString(e.t("com.dataTable.click")),1),t[5]||(t[5]=n.createElementVNode("i",{class:"fc-icon icon-edit"},null,-1))],8,SV)],64)):v.column.dataIndex==="handle"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:7},[n.createElementVNode("i",{class:"fc-icon icon-add-circle",onClick:m=>e.add(v.index)},null,8,xV),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:m=>e.remove(v.index)},null,8,kV)],64)):n.createCommentVNode("",!0)]),_:1},8,["data-source","columns"]),[[n.vShow,!e.activeRow]])]),_:1}),n.createVNode(d,{type:"link",onClick:t[2]||(t[2]=v=>e.add())},{default:n.withCtx(()=>[t[6]||(t[6]=n.createElementVNode("i",{class:"fc-icon icon-add-circle"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("tableOptions.add")),1)]),_:1})],64))]),_:1},8,["title","open"])])}const TV=Ne(wV,[["render",NV]]),q3="",OV="[[FORM-CREATE-PREFIX-",DV="-FORM-CREATE-SUFFIX]]",BV=n.defineComponent({name:"FnConfig",emits:["update:modelValue"],props:{modelValue:[Object,void 0,null],eventConfig:{type:Array,default:()=>[]}},inject:["designer"],components:{FnEditor:po},data(){return{visible:!1,activeData:null,defActive:"no",event:{},cus:!1,eventStr:""}},computed:{eventInfo(){const e={};return this.eventConfig.forEach(t=>{e[t.name]=t.info}),e},t(){return this.designer.setupState.t},eventNum(){let e=0;return Object.keys(this.modelValue||{}).forEach(t=>{this.modelValue[t]&&e++}),e}},watch:{visible(e){this.event=e?this.loadFN(Zl({},this.modelValue||{})):{},e||this.destroy()}},methods:{getArgs(e){return e.args.join(", ")},loadFN(e){const t={};return this.eventConfig.forEach(i=>{const r=i.name,o=e[r]||"";t[r]={item:i,fn:o}}),t},parseFN(e){const t={};return Object.keys(e).forEach(i=>{e[i].fn&&(t[i]=e[i].fn)}),t},edit(e){e.key=Ye(),this.activeData=e,this.eventStr=e.fn||OV+`function ${e.item.name}(${this.getArgs(e.item)}){}`+DV,this.defActive=e.item.name},save(){return this.$refs.fn.save()?(this.activeData.fn=this.eventStr,this.destroy(),!0):!1},destroy(){this.activeData=null,this.defActive="no"},close(){this.destroy()},submit(){this.activeData&&!this.save()||(this.$emit("update:modelValue",this.parseFN(this.event)),this.visible=!1,this.destroy())}}}),$V={class:"_fd-fn-list"},VV={style:{color:"var(--fc-style-color-1)"}},RV={class:"_fd-menu"},IV=["onClick"],FV={class:"_fd-fn-list-method"},PV={key:0,class:"_fd-label"};function MV(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),u=n.resolveComponent("a-layout-header"),g=n.resolveComponent("a-layout-content"),y=n.resolveComponent("a-layout"),C=n.resolveComponent("a-layout-sider"),w=n.resolveComponent("FnEditor"),A=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",$V,[n.createVNode(c,{color:"orange",count:e.eventNum},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:t[0]||(t[0]=E=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.title")),1)]),_:1})]),_:1},8,["count"]),n.createVNode(A,{class:"_fd-fn-list-dialog _fd-config-dialog",title:e.t("event.title"),open:e.visible,"onUpdate:open":t[3]||(t[3]=E=>e.visible=E),centered:"",maskClosable:!1,destroyOnClose:!0,width:"980px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[2]||(t[2]=E=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.submit,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(y,{class:"_fd-fn-list-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(C,{width:"300px"},{default:n.withCtx(()=>[n.createVNode(y,{class:"_fd-fn-list-l"},{default:n.withCtx(()=>[n.createVNode(u,{class:"_fd-fn-list-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createElementVNode("span",VV,n.toDisplayString(e.t("event.list")),1)]),_:1}),n.createVNode(g,null,{default:n.withCtx(()=>[n.createElementVNode("div",RV,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.event,(E,_)=>(n.openBlock(),n.createElementBlock("div",{key:_,class:n.normalizeClass(["_fd-menu-item",{"is-active":_===e.defActive}]),onClick:n.withModifiers(v=>e.edit(E),["stop"])},[n.createElementVNode("div",FV,[n.createElementVNode("span",null,[t[4]||(t[4]=n.createTextVNode("function")),n.createElementVNode("span",null,n.toDisplayString(_),1)]),e.eventInfo[_]?(n.openBlock(),n.createElementBlock("span",PV,n.toDisplayString(e.eventInfo[_]),1)):n.createCommentVNode("",!0)])],10,IV))),128))])]),_:1})]),_:1})]),_:1}),n.createVNode(g,null,{default:n.withCtx(()=>[n.createVNode(y,{class:"_fd-fn-list-r"},{default:n.withCtx(()=>[e.activeData?(n.openBlock(),n.createBlock(u,{key:0,class:"_fd-fn-list-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save,style:{"margin-left":"8px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeData?(n.openBlock(),n.createBlock(g,{key:1},{default:n.withCtx(()=>[n.createVNode(w,{ref:"fn",modelValue:e.eventStr,"onUpdate:modelValue":t[1]||(t[1]=E=>e.eventStr=E),name:e.activeData.item.name,args:e.activeData.item.args},null,8,["modelValue","name","args"])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["title","open"])])}const LV=Ne(BV,[["render",MV]]),e8="",jV=n.defineComponent({name:"FnInput",components:{FnEditor:po},emits:["update:modelValue","change"],props:{modelValue:[String,Function],name:String,args:Array,title:String,body:Boolean,fnx:Boolean,defaultValue:{require:!1},validate:Function},inject:["designer"],computed:{t(){return this.designer.setupState.t},configured(){return!!this.modelValue}},data(){return{visible:!1,value:this.modelValue}},watch:{modelValue(e){this.value=e}},methods:{onOk(){this.$refs.editor.save()&&(this.$emit("update:modelValue",this.value),this.$emit("change",this.value),this.visible=!1)}}}),zV={class:"_fd-fn-input"};function HV(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),u=n.resolveComponent("FnEditor"),g=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",zV,[n.createVNode(c,{color:"orange",dot:e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:t[0]||(t[0]=y=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.action")),1)]),_:1})]),_:1},8,["dot"]),n.createVNode(g,{class:"_fd-fn-input-dialog _fd-config-dialog",title:e.title||e.t("struct.title"),open:e.visible,"onUpdate:open":t[3]||(t[3]=y=>e.visible=y),centered:"",maskClosable:!1,destroyOnClose:!0,width:"800px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[2]||(t[2]=y=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.onOk,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(u,{ref:"editor",modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=y=>e.value=y),name:e.name,args:e.args,body:e.body,fnx:e.fnx},null,8,["modelValue","name","args","body","fnx"])]),_:1},8,["title","open"])])}const Pm=Ne(jV,[["render",HV]]),t8="",UV=n.defineComponent({name:"GlobalFetchSelect",emits:["update:modelValue"],props:{modelValue:[Object,String],to:String},inject:["designer"],computed:{t(){return this.designer.setupState.t},options(){return Object.keys(this.designer.setupState.formOptions.globalData||{}).map(e=>({label:this.designer.setupState.formOptions.globalData[e].label,value:e}))}},watch:{modelValue(){this.value=(this.modelValue||{}).key||""}},data(){return{value:(this.modelValue||{}).key||"",uni:1,loading:!1}},methods:{refresh(){!this.value||(this.uni=this.uni===1?0:1,this.input(),this.loading=!0,setTimeout(()=>{this.loading=!1},1e3))},openConfig(){this.designer.setupState.openGlobalFetchDialog()},input(){const e=typeof this.modelValue=="object"?{...this.modelValue}:{};e.to=this.to||"options",e.key=this.value,e._uni=this.uni,this.$emit("update:modelValue",e)}}}),WV={class:"_fd-gfs"},GV={class:"_fd-gfs-handle"};function KV(e,t,i,r,o,s){const d=n.resolveComponent("a-select-option"),c=n.resolveComponent("a-select");return n.openBlock(),n.createElementBlock("div",WV,[n.createVNode(c,{value:e.value,"onUpdate:value":t[0]||(t[0]=u=>e.value=u),size:"small",clearable:"",onChange:e.input},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,u=>(n.openBlock(),n.createBlock(d,{key:u.value,value:u.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(u.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"]),n.createElementVNode("div",GV,[n.createElementVNode("i",{onClick:t[1]||(t[1]=(...u)=>e.refresh&&e.refresh(...u)),class:n.normalizeClass(["fc-icon icon-refresh",{disabled:!e.value,"_fc-loading":this.loading}]),title:"reload"},null,2),n.createElementVNode("div",{class:"_fc-manage-text",onClick:t[2]||(t[2]=(...u)=>e.openConfig&&e.openConfig(...u))},t[3]||(t[3]=[n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1)]))])])}const YV=Ne(UV,[["render",KV]]),n8="",QV=n.defineComponent({name:"GlobalClassSelect",emits:["update:modelValue"],props:{modelValue:[Array,String],to:String},inject:["designer"],computed:{t(){return this.designer.setupState.t},options(){return Object.keys(this.designer.setupState.formOptions.globalClass||{}).map(e=>({label:this.designer.setupState.formOptions.globalClass[e].label,value:e}))}},watch:{modelValue(){this.tidyValue()}},data(){return{value:[]}},methods:{tidyValue(){this.value=Array.isArray(this.modelValue)?this.modelValue:(this.modelValue||"").split(" ").filter(e=>!!e)},openConfig(){this.designer.setupState.openGlobalClassDialog()},input(){this.$emit("update:modelValue",this.value.join(" "))}},created(){this.tidyValue()}}),XV={class:"_fd-gcs"},JV={class:"_fd-gcs-handle"};function ZV(e,t,i,r,o,s){const d=n.resolveComponent("a-select-option"),c=n.resolveComponent("a-select");return n.openBlock(),n.createElementBlock("div",XV,[n.createVNode(c,{value:e.value,"onUpdate:value":t[0]||(t[0]=u=>e.value=u),"show-search":"",mode:"tags",size:"small",allowClear:"",onChange:e.input,maxTagCount:3,"token-separators":[" "]},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,u=>(n.openBlock(),n.createBlock(d,{key:u.value,value:u.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(u.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"]),n.createElementVNode("div",JV,[n.createElementVNode("div",{class:"_fc-manage-text",onClick:t[1]||(t[1]=(...u)=>e.openConfig&&e.openConfig(...u))},t[2]||(t[2]=[n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1)]))])])}const qV=Ne(QV,[["render",ZV]]),o8="",eR=n.defineComponent({name:"FetchTable",components:{VariableConfig:Tr},inject:["designer"],emits:["update:modelValue"],props:{modelValue:Object},computed:{t(){return this.designer.setupState.t}},data(){return{value:[],active:null,start:null}},methods:{onConfirm(e,t,i){e===this.active?e[t]=(e[t]||"").substring(0,this.start)+i+(e[t]||"").substring(this.start):(e[t]+=i,this.active=null,this.start=null),this.submit()},onBlur(e,t){this.active=e,this.start=t.target.selectionStart,this.submit()},submit(){const e={};this.value.forEach(t=>{t.key&&t.value&&(e[t.key]=t.value)}),this.$emit("update:modelValue",e)},add(){this.value.push({})},rm(e){this.value.splice(e,1),this.submit()}},created(){const e=[];Object.keys(this.modelValue||{}).forEach(t=>{e.push({key:t,value:this.modelValue[t]})}),this.value=e}}),tR={class:"_fd-fetch-table"},nR={style:{width:"40%"}},oR={class:"_fd-fetch-table-key"},iR=["onClick"];function rR(e,t,i,r,o,s){const d=n.resolveComponent("a-layout-header"),c=n.resolveComponent("VariableConfig"),u=n.resolveComponent("a-input"),g=n.resolveComponent("a-layout-content"),y=n.resolveComponent("a-layout"),C=n.resolveComponent("a-button"),w=n.resolveComponent("a-form-item-rest");return n.openBlock(),n.createElementBlock("div",tR,[n.createVNode(w,null,{default:n.withCtx(()=>[e.value.length>0?(n.openBlock(),n.createBlock(y,{key:0,class:"_fd-fetch-table-con"},{default:n.withCtx(()=>[n.createVNode(d,null,{default:n.withCtx(()=>[n.createElementVNode("div",nR,n.toDisplayString(e.t("props.key")),1),n.createElementVNode("div",null,n.toDisplayString(e.t("props.value")),1)]),_:1}),n.createVNode(g,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.value,(A,E)=>(n.openBlock(),n.createElementBlock("div",{key:E,class:"_fd-fetch-table-row"},[n.createElementVNode("div",oR,[n.createVNode(u,{value:A.key,"onUpdate:value":_=>A.key=_,size:"small",onBlur:_=>e.onBlur(A,_)},{suffix:n.withCtx(()=>[n.createVNode(c,{popover:"",onConfirm:_=>e.onConfirm(A,"key",_)},null,8,["onConfirm"])]),_:2},1032,["value","onUpdate:value","onBlur"])]),n.createVNode(u,{value:A.value,"onUpdate:value":_=>A.value=_,size:"small",onBlur:_=>e.onBlur(A,_)},{suffix:n.withCtx(()=>[n.createVNode(c,{popover:"",onConfirm:_=>e.onConfirm(A,"value",_)},null,8,["onConfirm"])]),_:2},1032,["value","onUpdate:value","onBlur"]),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:_=>e.rm(E)},null,8,iR)]))),128))]),_:1})]),_:1})):n.createCommentVNode("",!0),n.createVNode(C,{type:"link",size:"small",onClick:e.add},{default:n.withCtx(()=>[t[0]||(t[0]=n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("tableOptions.add")),1)]),_:1},8,["onClick"])]),_:1})])}const aR=Ne(eR,[["render",rR]]),Mm=n.defineComponent({name:"DragBox",props:["rule","tag","formCreateInject","list"],render(e){const t={...e.$props.rule.props,...e.$attrs};let i="_fd-"+e.$props.tag+"-drag _fd-drag-box";Object.keys(e.$slots).length||(i+=" drag-holder"),t.class=i,t.modelValue=e.$props.list||[...e.$props.formCreateInject.children];const r={};return e.$slots.default&&e.$slots.default().forEach(s=>{s.key&&(r[s.key]=s)}),n.h(Ci,t,{item:({element:o,index:s})=>{var u,g,y;let d="";(((u=o==null?void 0:o._menu)==null?void 0:u.inline)||((g=o==null?void 0:o._config)==null?void 0:g.inline))&&(d=" is-inline");const c=(y=o==null?void 0:o.__fc__)==null?void 0:y.key;if(c){let C=r["_"+o.slot];if(C?C.children.forEach(w=>{w.key===c+"fc"&&(C=w)}):C=r[c+"fc"],C)return n.h("div",{class:"_fc-"+e.$props.tag+"-item _fd-drag-item"+d,key:c},C)}return n.h("div",{class:"_fc-"+e.$props.tag+"-item _fd-drag-item",key:s},null)}})}}),i8="",lR=n.defineComponent({name:"FcTableView",props:{label:String,width:[Number,String],formCreateInject:Object,border:{type:Boolean,default:!0},borderWidth:String,borderColor:String,rule:{type:Object,default:()=>({row:1,col:1})}},inject:["designer"],components:{DragTool:Fm,DragBox:Mm},watch:{rule:{handler(){this.initRule(),this.style=this.rule.style},immediate:!0}},data(){return{unique:{},style:{},dragProp:{rule:{props:{tag:"a-col",group:{name:"default",put:(e,...t)=>(e.el.__rule__=this.formCreateInject.rule,this.designer.setupState.dragPut(e,...t))},ghostClass:"ghost",animation:150,handle:"._fd-drag-btn",emptyInsertThreshold:0,direction:"vertical",itemKey:"type"}},tag:"tableCell"},lattice:{},uni:{}}},computed:{t(){return this.designer.setupState.t},tableColor(){const e={};return this.border===!1?e.border="0 none":(this.borderColor&&(e.borderColor=this.borderColor),this.borderWidth&&(e.borderWidth=this.borderWidth)),e}},methods:{getUnique(e){return this.unique[e]||(this.unique[e]=Ye()),this.unique[e]},getSlotChildren(e){const t=[];return this.formCreateInject.children.forEach(i=>{e.indexOf(i.slot)>-1&&t.push(i)}),t},dragAdd(e,t){const i=this.designer.setupState,r=this.formCreateInject.children,o=`${t.pid}:${t.idx}`,s=e.item._underlying_vm_,d=i.addRule&&i.addRule.children===i.moveRule;d&&i.moveRule.splice(i.moveRule.indexOf(s),1);let c=0;const u="drag"+t.pid+t.idx;if(this.$refs[u][0].list.length){let g=this.$refs[u][0].list[e.newIndex?e.newIndex-1:0];c=r.indexOf(g)+(e.newIndex?1:0)}else if(r.length){const g=Object.keys(this.$refs);for(let y=g.indexOf(u)-1;y>=0;y--){if(!this.$refs[g[y]]||!this.$refs[g[y]].length)continue;const C=this.$refs[g[y]][0].list||[];if(C.length){c=r.indexOf(C[C.length-1])+1;break}}}e.newIndex=c,d?(s.slot=o,r.splice(e.newIndex,0,s),i.added=!0,i.handleSortAfter({rule:s})):i.dragAdd(r,e,`${t.pid}:${t.idx}`)},dragEnd(e,t){const i=this.designer.setupState,r=this.formCreateInject.children,o=e.item._underlying_vm_,s=r.indexOf(o);e.newIndex=s+(e.newIndex-e.oldIndex),e.oldIndex=s,i.dragEnd(this.formCreateInject.children,e,`${t.pid}:${t.idx}`)},dragStart(){this.designer.setupState.dragStart(this.formCreateInject.children)},dragUnchoose(e){this.designer.setupState.dragUnchoose(this.formCreateInject.children,e)},initRule(){const e=this.rule;e.style||(e.style={}),e.class||(e.class={}),e.layout||(e.layout=[]),e.row||(e.row=1),e.col||(e.col=1)},active(e){const t=`${e.pid}:${e.idx}`;this.designer.setupState.customActive({name:"fcTableGrid",onPaste:i=>{i.slot=t,this.formCreateInject.children.push(i)},style:{formData:{style:this.rule.style[t]||{},class:this.rule.class[t]||""},change:(i,r)=>{this.rule[i][t]=r||{}}}})},command(e){this[e[0]](...e[1])},rmSlot(e,t){const i=Object.keys(e),r=this.formCreateInject.children;let o=0;[...r].forEach((s,d)=>{if(!s.slot)return;let c;t.indexOf(s.slot)>-1?(r.splice(d-o,1),o++):(c=i.indexOf(s.slot))>-1&&(s.slot=e[i[c]])}),t.forEach(s=>{delete this.style[s]}),this.loadRule()},rmRow(e){this.rule.row--;const t={},i=[];for(let s=e.pid;s<this.rule.row+1;s++)for(let d=0;d<this.rule.col;d++)s===e.pid?i.push(`${e.pid}:${d}`):t[`${s}:${d}`]=`${s-1}:${d}`;let r=0;const o=this.rule.layout;[...o].forEach((s,d)=>{s.top===e.pid&&(o.splice(d-r,1),r++)}),o.forEach(s=>{s.top>e.pid&&s.top--}),this.rmSlot(t,i)},rmCol(e){this.rule.col--;const t={},i=[];for(let s=0;s<this.rule.row;s++){for(let d=e.idx+1;d<this.rule.col+1;d++)t[`${s}:${d}`]=`${s}:${d-1}`;i.push(`${s}:${e.idx}`)}let r=0;const o=this.rule.layout;[...o].forEach((s,d)=>{s.left===e.idx&&(o.splice(d-r,1),r++)}),o.forEach(s=>{s.left>e.idx&&s.left--}),this.rmSlot(t,i)},splitRow(e){const t=e.data.layout,i=t.row;if(t.row=0,i>1)for(let r=1;r<i;r++)this.rule.layout.push({...t,top:t.top+r});this.loadRule()},splitCol(e){const t=e.data.layout,i=t.col;if(t.col=0,i>1)for(let r=1;r<i;r++)this.rule.layout.push({...t,left:t.left+r});this.loadRule()},makeMap(e){let t=[];for(let i=e.top;i<(e.row||e.top+1);i++)for(let r=e.left;r<(e.col||e.left+1);r++)t.push(`${i}:${r}`);return t},mergeRight(e){let t;if(e.data.layout){const r=(e.data.layout.col||1)+1;e.data.layout.col=r+e.idx>this.rule.col?this.rule.col-e.idx:r,t=e.data.layout}else t={top:e.pid,left:e.idx,col:2},this.rule.layout.push(t);const i=this.makeMap(t);this.formCreateInject.children.forEach(r=>{!r.slot||i.indexOf(r.slot)>-1&&(r.slot=`${e.pid}:${e.idx}`)}),this.loadRule()},mergeBottom(e){let t;if(e.data.layout){const r=(e.data.layout.row||1)+1;e.data.layout.row=r+r.pid>this.rule.col?this.rule.col-e.pid:r,t=e.data.layout}else t={top:e.pid,left:e.idx,row:2},this.rule.layout.push(t);const i=this.makeMap(t);this.formCreateInject.children.forEach(r=>{!r.slot||i.indexOf(r.slot)>-1&&(r.slot=`${e.pid}:${e.idx}`)}),this.loadRule()},addCol(e,t){if(this.rule.col++,this.rule.layout.forEach(i=>{i.left>(t?e.idx-1:e.idx)&&i.left++}),t||e.idx<this.rule.col-2){const i={};for(let o=0;o<this.rule.row;o++)for(let s=t?e.idx-1:e.idx+1;s<this.rule.col-1;s++)i[`${o}:${s}`]=`${o}:${s+1}`;const r=Object.keys(i);this.formCreateInject.children.forEach(o=>{let s;o.slot&&(s=r.indexOf(o.slot))>-1&&(o.slot=i[r[s]])}),r.forEach(o=>{this.style[o]&&(this.style[i[o]]=this.style[o],delete this.style[o])})}this.loadRule()},addRow(e,t){if(this.rule.row++,this.rule.layout.forEach(i=>{i.top>(t?e.pid-1:e.pid)&&i.top++}),t||e.pid<this.rule.row-2){const i={};for(let o=t?e.pid-1:e.pid+1;o<this.rule.row;o++)for(let s=0;s<this.rule.col;s++)i[`${o}:${s}`]=`${o+1}:${s}`;const r=Object.keys(i);this.formCreateInject.children.forEach(o=>{let s;o.slot&&(s=r.indexOf(o.slot))>-1&&(o.slot=i[r[s]])}),r.reverse().forEach(o=>{this.style[o]&&(this.style[i[o]]=this.style[o],delete this.style[o])})}this.loadRule()},loadRule(){const e=[],t=this.rule||{row:1,col:1};for(let r=0;r<t.row;r++){const o=[];e.push(o);for(let s=0;s<t.col;s++)o.push({rowspan:1,colspan:1,slot:[],show:!0,id:this.getUnique(`${r}${s}`)})}[...t.layout||[]].forEach((r,o)=>{if((!r.row||r.row<=0)&&(!r.col||r.col<=0)||!e[r.top]||!e[r.top][r.left]||!e[r.top][r.left].show){t.layout.splice(o,1);return}const s=e[r.top][r.left];s.layout=r;let d=1,c=1;if(r.col&&(d=r.col+r.left>t.col?t.col-r.left:r.col,s.colspan=d),r.row&&(c=r.row+r.top>t.row?t.row-r.top:r.row,s.rowspan=c),c&&d)for(let u=0;u<c;u++){const g=e[r.top+u];if(g)for(let y=0;y<d;y++)!y&&!u||(g[r.left+y]&&(g[r.left+y].show=!1),s.slot.push(`${r.top+u}:${r.left+y}`))}});const i=r=>!!(!r||r.layout||!r.show);e.forEach((r,o)=>{r.forEach((s,d)=>{let c=!1,u=!1;if(s.layout){const g=s.layout.col||1,y=s.layout.row||1;for(let C=0;C<g;C++)if(!e[o+y]||i(e[o+y][d+C])){u=!0;continue}for(let C=0;C<y;C++)if(!e[o+C]||i(e[o+C][d+g])){c=!0;continue}}else c=i(r[d+1]),u=e[o+1]?i(e[o+1][d]):!0;s.right=c,s.bottom=u})}),this.lattice=e,this.formCreateInject.rule.props.rule=t}},beforeMount(){this.loadRule()}}),sR={class:"_fd-table-view"},dR={class:"_fd-table-view-cell"},cR=["onClick"],uR=["onClick"],fR={class:"_fd-drag-btn _fd-table-view-btn"};function pR(e,t,i,r,o,s){const d=n.resolveComponent("DragBox"),c=n.resolveComponent("a-menu-item"),u=n.resolveComponent("a-menu-divider"),g=n.resolveComponent("a-menu"),y=n.resolveComponent("a-dropdown"),C=n.resolveComponent("DragTool");return n.openBlock(),n.createElementBlock("div",sR,[n.createElementVNode("table",{border:"1",cellspacing:"0",cellpadding:"0",style:n.normalizeStyle(e.tableColor)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.rule.row,(w,A)=>(n.openBlock(),n.createElementBlock("tr",{key:A},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.rule.col,(E,_)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[e.lattice[A][_].show?(n.openBlock(),n.createElementBlock("td",n.mergeProps({key:`${A}${_}`,ref_for:!0},e.lattice[A][_]?{colspan:e.lattice[A][_].colspan,rowspan:e.lattice[A][_].rowspan}:{},{style:[e.tableColor,e.style&&e.style[`${A}:${_}`]||{}],class:e.rule.class&&e.rule.class[`${A}:${_}`]||""}),[n.createElementVNode("div",dR,[n.createVNode(C,{"drag-btn":!1,"handle-btn":!0,onActive:v=>e.active({pid:A,idx:_}),unique:e.lattice[A][_].id},{handle:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:v=>e.addRow({pid:A,idx:_,data:e.lattice[A][_]},0)},t[2]||(t[2]=[n.createElementVNode("i",{class:"fc-icon icon-add-col"},null,-1)]),8,cR),n.createElementVNode("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:v=>e.addCol({pid:A,idx:_,data:e.lattice[A][_]},0)},t[3]||(t[3]=[n.createElementVNode("i",{class:"fc-icon icon-add-col",style:{transform:"rotate(90deg)"}},null,-1)]),8,uR),n.createElementVNode("div",fR,[n.createVNode(y,{trigger:"click",size:"default"},{overlay:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[n.createVNode(c,{onClick:v=>e.command(["addCol",[{pid:A,idx:_,data:e.lattice[A][_]},1]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.addLeft")),1)]),_:2},1032,["onClick"]),n.createVNode(c,{onClick:v=>e.command(["addCol",[{pid:A,idx:_,data:e.lattice[A][_]},0]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.addRight")),1)]),_:2},1032,["onClick"]),n.createVNode(c,{onClick:v=>e.command(["addRow",[{pid:A,idx:_,data:e.lattice[A][_]},1]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.addTop")),1)]),_:2},1032,["onClick"]),n.createVNode(c,{onClick:v=>e.command(["addRow",[{pid:A,idx:_,data:e.lattice[A][_]},0]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.addBottom")),1)]),_:2},1032,["onClick"]),n.createVNode(u),n.createVNode(c,{disabled:e.lattice[A][_].right,onClick:v=>e.command(["mergeRight",[{pid:A,idx:_,data:e.lattice[A][_]}]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.mergeRight")),1)]),_:2},1032,["disabled","onClick"]),n.createVNode(c,{disabled:e.lattice[A][_].bottom,onClick:v=>e.command(["mergeBottom",[{pid:A,idx:_,data:e.lattice[A][_]}]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.mergeBottom")),1)]),_:2},1032,["disabled","onClick"]),n.createVNode(u),n.createVNode(c,{disabled:!(e.lattice[A][_].layout&&e.lattice[A][_].layout.col>1),onClick:v=>e.command(["splitCol",[{pid:A,idx:_,data:e.lattice[A][_]}]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.splitCol")),1)]),_:2},1032,["disabled","onClick"]),n.createVNode(c,{disabled:!(e.lattice[A][_].layout&&e.lattice[A][_].layout.row>1),onClick:v=>e.command(["splitRow",[{pid:A,idx:_,data:e.lattice[A][_]}]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.splitRow")),1)]),_:2},1032,["disabled","onClick"]),n.createVNode(u),n.createVNode(c,{disabled:e.rule.col<2,onClick:v=>e.command(["rmCol",[{pid:A,idx:_,data:e.lattice[A][_]}]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.rmCol")),1)]),_:2},1032,["disabled","onClick"]),n.createVNode(c,{disabled:e.rule.row<2,onClick:v=>e.command(["rmRow",[{pid:A,idx:_,data:e.lattice[A][_]}]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.rmRow")),1)]),_:2},1032,["disabled","onClick"])]),_:2},1024)]),default:n.withCtx(()=>[t[4]||(t[4]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:2},1024)])]),default:n.withCtx(()=>[n.createVNode(d,n.mergeProps({ref_for:!0},e.dragProp,{onAdd:v=>e.dragAdd(v,{pid:A,idx:_}),ref_for:!0,ref:"drag"+A+_,onEnd:v=>e.dragEnd(v,{pid:A,idx:_}),onStart:t[0]||(t[0]=v=>e.dragStart(v)),onUnchoose:t[1]||(t[1]=v=>e.dragUnchoose(v)),list:e.getSlotChildren([`${A}:${_}`,...e.lattice[A][_].slot])}),{default:n.withCtx(()=>[n.renderSlot(e.$slots,`${A}:${_}`)]),_:2},1040,["onAdd","onEnd","list"])]),_:2},1032,["onActive","unique"])])],16)):n.createCommentVNode("",!0)],64))),256))]))),128))],4)])}const hR=Ne(lR,[["render",pR]]),r8="",mR=n.defineComponent({name:"FcValue",props:["modelValue"],inject:["designer"],watch:{modelValue(e){this.$emit("change",e)}},computed:{t(){return this.designer.setupState.t}}}),gR={class:"_fd-value"};function vR(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",gR,n.toDisplayString(e.t("com.fcValue.empty")),1)}const yR=Ne(mR,[["render",vR]]),bR=n.defineComponent({name:"FcSlotView",inheritAttrs:!1,inject:["parentFC","designer"],props:{name:String,formCreateInject:Object},computed:{slotName(){return this.name||"block_default"},slotArg(){const{rule:e,preview:t,api:i}=this.formCreateInject,r=e.__fc__.prop;return{rule:e,prop:r,preview:t,api:i,model:r.model||{}}}},render(){const e=this.getSlot();return e?n.createVNode(n.Fragment,{},[e(this.slotArg)]):n.createVNode("div",{class:"_fd-slot-empty",innerHTML:this.designer.setupState.t("com.fcSlot.empty",{tag:"<span>&lt;template #"+this.slotName+" /&gt;</span>"})})},methods:{getSlot(){const e=t=>{if(t){let i=t.slots[this.slotName];return i||e(t.setupState.parent)}};return e(this.parentFC)}}}),a8="",CR=n.defineComponent({name:"FcJsonView",inheritAttrs:!1,inject:["designer"],props:{rule:[Array,String,Object],type:String,disabled:Boolean,expand:Number,button:{type:Boolean,default:!0},max:{type:Number,default:0},min:{type:Number,default:0},sortBtn:{type:Boolean,default:!0},modelValue:[Object,Array],formCreateInject:Object},data(){return{fcSubForm:n.shallowRef(this.formCreateInject.form.component("fcSubForm")),fcGroup:n.shallowRef(this.formCreateInject.form.component("fcGroup")),uni:0,formRule:[],formOptions:{submitBtn:!1,resetBtn:!1}}},watch:{rule(){this.uni++,this.loadRule()},type(){this.loadRule()}},render(){if(this.rule){let e=null;return this.type==="object"?e=n.createVNode(this.fcSubForm,{key:2,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":t=>{this.$emit("update:modelValue",t)},disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):this.type==="array"?e=n.createVNode(this.fcGroup,{key:3,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":t=>{this.$emit("update:modelValue",t)},sortBtn:this.sortBtn,expand:1,button:this.button,disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):e=n.createVNode(n.Fragment,{key:1},[this.$slots.default()]),n.createElementVNode("div",{key:this.uni,style:{"--fc-json-mask":`'${this.designer.setupState.t("com.fcJson.name")}'`},class:"_fd-json-container"},[e])}else return n.createElementVNode("div",{class:"_fd-slot-empty",innerHTML:this.designer.setupState.t("com.fcJson.empty",{tag:"<span>JSON</span>"})})},methods:{loadRule(){let e=et(this.rule);typeof e=="string"&&(e=this.formCreateInject.form.parseJson(e)),Array.isArray(e)?this.formRule=e:typeof e=="object"&&(this.formRule=e.rule||[],this.formOptions={submitBtn:!1,resetBtn:!1,...e.options||{}}),e!=null?["array","object"].indexOf(this.type)===-1&&(this.formCreateInject.rule.children=[{type:"template",_fc_drag_skip:!0,children:this.formRule}]):this.formCreateInject.rule.children=[]}},created(){this.rule&&this.loadRule()}}),l8="",_R=n.defineComponent({name:"LanguageInput",inject:["designer"],emits:["update:modelValue","blur","change"],props:{size:String,placeholder:String,modelValue:String,disabled:Boolean},data(){return{popVisible:!1}},computed:{isVar(){return!!(this.modelValue||"").match(/^\{\{\s*\$t\.(.+)\s*\}\}$/)},t(){return this.designer.setupState.t},localeList(){var r,o;const e=this.designer.setupState.getConfig("localeOptions",[{value:"zh-cn",label:"\u7B80\u4F53\u4E2D\u6587"},{value:"en",label:"English"}]),t=[],i=((o=(r=this.designer.props)==null?void 0:r.locale)==null?void 0:o.name)||"zh-cn";return e.forEach(s=>{s.value===i?t.unshift(s):t.length<2&&t.push(s)}),t.length>2&&t.pop(),t},language(){const e=this.designer.setupState.formOptions.language||{},t={};return Object.keys(e).forEach(i=>{Object.keys(e[i]).forEach(r=>{t[r]||(t[r]={key:r}),t[r][i]=e[i][r]})}),Object.values(t)}},methods:{openConfig(){this.designer.setupState.activeModule="language"},clickLang(e){this.onInput(`{{$t.${e}}}`),this.popVisible=!1},onInput(e){this.$emit("update:modelValue",e),this.$emit("change",e)}},mounted(){}}),wR={class:"_fd-language-list"},ER={class:"_fd-language-header"},AR={class:"_fd-language-title"},SR={class:"_fd-language-name"},xR=["onClick"];function kR(e,t,i,r,o,s){const d=n.resolveComponent("a-popover"),c=n.resolveComponent("a-input");return n.openBlock(),n.createBlock(c,{class:n.normalizeClass(["_fd-language-input",{"is-variable":e.isVar}]),placeholder:e.placeholder,disabled:e.disabled,value:e.modelValue,"onUpdate:value":e.onInput,onBlur:t[2]||(t[2]=u=>e.$emit("blur")),size:e.size||"small"},{addonAfter:n.withCtx(()=>[n.createVNode(d,{open:e.popVisible,"onUpdate:open":t[1]||(t[1]=u=>e.popVisible=u),placement:"bottomLeft",trigger:"click",overlayClassName:"_fd-language-popover"},{content:n.withCtx(()=>[n.createElementVNode("div",wR,[n.createElementVNode("div",ER,[n.createElementVNode("div",AR,[n.createTextVNode(n.toDisplayString(e.t("language.select")),1),n.createElementVNode("i",{class:"fc-icon icon-setting",onClick:t[0]||(t[0]=(...u)=>e.openConfig&&e.openConfig(...u))})]),n.createElementVNode("div",SR,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.localeList,u=>(n.openBlock(),n.createElementBlock("div",{key:u.value},n.toDisplayString(u.label),1))),128))])]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.language,u=>(n.openBlock(),n.createElementBlock("div",{key:u.key,class:"_fd-language-item",onClick:g=>e.clickLang(u.key)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.localeList,g=>(n.openBlock(),n.createElementBlock("div",{key:g.value},n.toDisplayString(u[g.value]||"-"),1))),128))],8,xR))),128))])]),default:n.withCtx(()=>[t[3]||(t[3]=n.createElementVNode("i",{class:"fc-icon icon-language"},null,-1))]),_:1},8,["open"])]),_:1},8,["class","placeholder","disabled","value","onUpdate:value","size"])}const Hc=Ne(_R,[["render",kR]]),s8="",NR=n.defineComponent({name:"Validate",inject:["designer"],emits:["update:modelValue"],props:{modelValue:Array},components:{LanguageInput:Hc,FnInput:Pm,PatternInput:mc},watch:{modelValue(e){this.validate=this.parseValue(e||[])}},data(){return{validate:this.parseValue(this.modelValue||[])}},computed:{t(){return this.designer.setupState.t},modes(){const e=this.designer.setupState.activeRule;return e&&e._menu.subForm==="object"?{validator:this.t("validate.modes.validator")}:{min:this.t("validate.modes.min"),max:this.t("validate.modes.max"),len:this.t("validate.modes.len"),pattern:this.t("validate.modes.pattern"),validator:this.t("validate.modes.validator")}},triggers(){return st(this.t,[{label:"blur",value:"blur"},{label:"change",value:"change"},{label:"submit",value:"submit"}])}},methods:{handleCommand({key:e}){this.validate.push({transform:new Function("val","this.type = val == null ? 'string' : (Array.isArray(val) ? 'array' : (typeof val)); return val;"),mode:e,trigger:"blur"})},autoMessage(e){const t=this.designer.setupState.activeRule.title;this.designer.setupState.activeRule&&(e.message=this.t("validate.autoRequired",{title:t}),this.onInput())},getSpan(e){return["pattern","validator","required"].indexOf(e.mode)>-1?24:12},onInput:function(){this.$emit("update:modelValue",this.validate.map(e=>(e={...e},e.message||delete e.message,e)))},remove(e){this.validate.splice(e,1),this.onInput()},parseValue(e){return et(e.map(t=>(t.validator&&(t.mode="validator"),t.mode||Object.keys(t).forEach(i=>{["message","type","trigger","mode"].indexOf(i)<0&&(t.mode=i)}),t)))}}}),TR={class:"_fd-validate"},OR={class:"_fd-validate-item"},DR={class:"_fd-validate-title"},BR=["onClick"];function $R(e,t,i,r,o,s){const d=n.resolveComponent("a-select-option"),c=n.resolveComponent("a-select"),u=n.resolveComponent("a-form-item"),g=n.resolveComponent("a-col"),y=n.resolveComponent("PatternInput"),C=n.resolveComponent("FnInput"),w=n.resolveComponent("a-input-number"),A=n.resolveComponent("LanguageInput"),E=n.resolveComponent("a-row"),_=n.resolveComponent("a-button"),v=n.resolveComponent("a-menu-item"),m=n.resolveComponent("a-menu"),b=n.resolveComponent("a-dropdown");return n.openBlock(),n.createElementBlock("div",TR,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.validate,(S,x)=>(n.openBlock(),n.createElementBlock("div",OR,[n.createElementVNode("div",DR,[n.createElementVNode("div",null,[n.createElementVNode("span",null,n.toDisplayString(x+1),1),n.createTextVNode(" "+n.toDisplayString(e.modes[S.mode]),1)]),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:O=>e.remove(x)},null,8,BR)]),n.createVNode(E,null,{default:n.withCtx(()=>[n.createVNode(g,{span:e.getSpan(S)},{default:n.withCtx(()=>[n.createVNode(u,{label:e.t("validate.mode")},{default:n.withCtx(()=>[n.createVNode(c,{value:S.trigger,"onUpdate:value":O=>S.trigger=O,onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.triggers,O=>(n.openBlock(),n.createBlock(d,{key:O.value,value:O.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(O.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value","onChange"])]),_:2},1032,["label"])]),_:2},1032,["span"]),n.createVNode(g,{span:e.getSpan(S)},{default:n.withCtx(()=>[n.createVNode(u,{label:e.modes[S.mode]},{default:n.withCtx(()=>[S.mode==="pattern"?(n.openBlock(),n.createBlock(y,{key:0,modelValue:S[S.mode],"onUpdate:modelValue":O=>S[S.mode]=O,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):S.mode==="validator"?(n.openBlock(),n.createBlock(C,{key:1,modelValue:S[S.mode],"onUpdate:modelValue":O=>S[S.mode]=O,name:"validator",args:["rule","value","callback"],onChange:e.onInput},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("validate.modes.validator")),1)]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):(n.openBlock(),n.createBlock(w,{key:2,value:S[S.mode],"onUpdate:value":O=>S[S.mode]=O,onChange:e.onInput},null,8,["value","onUpdate:value","onChange"]))]),_:2},1032,["label"])]),_:2},1032,["span"]),n.createVNode(g,{span:24},{default:n.withCtx(()=>[n.createVNode(u,{label:e.t("validate.message")},{default:n.withCtx(()=>[n.createVNode(A,{modelValue:S.message,"onUpdate:modelValue":O=>S.message=O,placeholder:e.t("validate.requiredPlaceholder"),onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"])]),_:2},1032,["label"])]),_:2},1024)]),_:2},1024)]))),256)),n.createVNode(b,{trigger:"click",size:"default"},{overlay:n.withCtx(()=>[n.createVNode(m,{onClick:e.handleCommand},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.modes,(S,x)=>(n.openBlock(),n.createBlock(v,{key:x},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(S),1)]),_:2},1024))),128))]),_:1},8,["onClick"])]),default:n.withCtx(()=>[n.createVNode(_,{class:"_fd-validate-btn _fd-plain-button",type:"primary",ghost:""},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("validate.rule"))+" +",1)]),_:1})]),_:1})])}const VR=Ne(NR,[["render",$R]]),d8="",RR=n.defineComponent({name:"Required",components:{LanguageInput:Hc},emits:["update:modelValue"],props:{modelValue:{}},inject:["designer"],watch:{required(){this.update()},requiredMsg(){this.update()},modelValue(e){const t=at.String(e);this.required=e===void 0?!1:t?!0:!!e,this.requiredMsg=t?e:""}},computed:{t(){return this.designer.setupState.t}},data(){const e=at.String(this.modelValue);return{required:this.modelValue===void 0?!1:e?!0:!!this.modelValue,requiredMsg:e?this.modelValue:""}},methods:{update(){let e;this.required===!1?e=!1:e=this.requiredMsg||!0,this.$emit("update:modelValue",e)}}}),IR={class:"_fd-required"};function FR(e,t,i,r,o,s){const d=n.resolveComponent("a-switch"),c=n.resolveComponent("LanguageInput"),u=n.resolveComponent("a-form-item-rest");return n.openBlock(),n.createElementBlock("div",IR,[n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(d,{checked:e.required,"onUpdate:checked":t[0]||(t[0]=g=>e.required=g)},null,8,["checked"]),e.required?(n.openBlock(),n.createBlock(c,{key:0,modelValue:e.requiredMsg,"onUpdate:modelValue":t[1]||(t[1]=g=>e.requiredMsg=g),placeholder:e.t("validate.requiredPlaceholder")},null,8,["modelValue","placeholder"])):n.createCommentVNode("",!0)]),_:1})])}const PR=Ne(RR,[["render",FR]]),c8="",MR=n.defineComponent({name:"TreeOptions",components:{ValueInput:nl},emits:["update:modelValue"],props:{modelValue:Array,columns:Object,keyValue:String},inject:["designer"],data(){return{value:[...et(this.modelValue||[])],checked:!1}},computed:{t(){return this.designer.setupState.t},treeData(){return ls(this.value||[])},overColumns(){return this.columns?{label:this.columns.label||"label",value:this.columns.value||"value"}:{label:"label",value:"value"}}},created(){this.value.length||(this.value=[{}]),this.keyValue&&(this.checked=this.isChecked(),this.$watch("checked",e=>{e&&this.change()}))},methods:{isChecked(){const e=t=>{for(let i=0;i<t.length;i++){const r=t[i];if(r[this.overColumns.label]!==r[this.overColumns.value]||r.children&&!e(r.children))return!1}return!0};return e(this.modelValue||[])},tidyValue(){const e=t=>{let i=[];return t.map(r=>{const o=r[this.keyValue],s={[this.overColumns.label]:o,[this.overColumns.value]:o};i.push(s),r.children&&(s.children=e(r.children))}),i};return this.checked&&this.keyValue?e(this.value):et(this.value)},change(){this.$emit("update:modelValue",this.tidyValue())},add(e){const t=e.data.$parent;t?t.children.push({}):this.value.push({})},append(e){e.children||(e.children=[]),e.children.push({})},remove(e){const t=e.data.$parent;t?(t.children.splice(t.children.indexOf(e.data),1),t.children.length||delete t.children):this.value.splice(this.value.indexOf(e.data),1),this.change()}}}),LR={class:"_fd-tree-opt"},jR={class:"_fd-tree-opt-node"},zR=["onClick"],HR=["onClick"],UR=["onClick"],WR=["onClick"],GR=["onClick"],KR=["onClick"];function YR(e,t,i,r,o,s){const d=n.resolveComponent("a-input"),c=n.resolveComponent("ValueInput"),u=n.resolveComponent("a-tree"),g=n.resolveComponent("a-checkbox"),y=n.resolveComponent("a-form-item-rest");return n.openBlock(),n.createElementBlock("div",LR,[n.createVNode(y,null,{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(u,{"tree-data":e.treeData,key:e.checked?"1":"2",selectable:!1,virtual:!1},{title:n.withCtx(C=>[n.createElementVNode("div",jR,[e.checked?(n.openBlock(),n.createBlock(d,{key:1,class:"_fd-tree-opt-last _label",size:"small",value:C.data[e.keyValue],"onUpdate:value":w=>C.data[e.keyValue]=w,onBlur:e.change},{addonAfter:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-tree-opt-btn",onClick:w=>e.add(C)},t[4]||(t[4]=[n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)]),8,WR),n.createElementVNode("div",{class:"_fd-tree-opt-btn",onClick:w=>e.append(C.data)},t[5]||(t[5]=[n.createElementVNode("i",{class:"fc-icon icon-add-child"},null,-1)]),8,GR),n.createElementVNode("div",{class:"_fd-tree-opt-btn _fd-tree-opt-danger",onClick:w=>e.remove(C)},t[6]||(t[6]=[n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)]),8,KR)]),_:2},1032,["value","onUpdate:value","onBlur"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(d,{class:"_fd-tree-opt-first",size:"small",value:C.data[e.overColumns.label],"onUpdate:value":w=>C.data[e.overColumns.label]=w,onBlur:e.change},null,8,["value","onUpdate:value","onBlur"]),n.createVNode(c,{class:"_fd-tree-opt-last",size:"small",modelValue:C.data[e.overColumns.value],"onUpdate:modelValue":w=>C.data[e.overColumns.value]=w,onBlur:e.change,onChangeType:e.change},{addonAfter:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-tree-opt-btn",onClick:w=>e.add(C)},t[1]||(t[1]=[n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)]),8,zR),n.createElementVNode("div",{class:"_fd-tree-opt-btn",onClick:w=>e.append(C.data)},t[2]||(t[2]=[n.createElementVNode("i",{class:"fc-icon icon-add-child"},null,-1)]),8,HR),n.createElementVNode("div",{class:"_fd-tree-opt-btn _fd-tree-opt-danger",onClick:w=>e.remove(C)},t[3]||(t[3]=[n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)]),8,UR)]),_:2},1032,["modelValue","onUpdate:modelValue","onBlur","onChangeType"])],64))])]),_:1},8,["tree-data"])),e.keyValue?(n.openBlock(),n.createBlock(g,{key:0,checked:e.checked,"onUpdate:checked":t[0]||(t[0]=C=>e.checked=C)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.keyValue")),1)]),_:1},8,["checked"])):n.createCommentVNode("",!0)]),_:1})])}const QR=Ne(MR,[["render",YR]]),u8="",Lm=e=>{const t=[];return e.forEach(i=>{i.field&&t.push(i.field),i.children&&t.push(...Lm(i.children))}),t},XR=n.defineComponent({name:"StepForm",props:{stepsProps:Object,modelValue:Object,formCreateInject:Object,autoValidate:Boolean,steps:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})}},emits:["update:modelValue","change","itemMounted","submit","next","validateFail"],data(){return{active:0,cacheRule:[],cacheValue:{},subApi:{},Form:n.markRaw(this.formCreateInject.form.$form())}},watch:{active(){this.init()},modelValue(e){this.setValue(e)}},methods:{init(){this.steps.forEach((e,t)=>{this.cacheRule[t]?this.cacheRule[t].display=t===this.active:this.cacheRule[t]={type:"FcRow",native:!0,display:t===this.active,children:e.rule}})},onPrev(){this.active--},validate(){return new Promise((e,t)=>{const i=Lm(this.cacheRule[this.active].children);i.length>0?Promise.all(i.map(r=>this.subApi.validateField(r))).then(()=>{e()}).catch(r=>{t(r)}):e()})},onNext(){this.autoValidate?this.validate().then(()=>{this.active++}).catch(e=>{this.$emit("validateFail",this.subApi)}):this.active++,this.$emit("next",{active:this.active,api:this.subApi})},submit(){const e=()=>{this.$emit("submit",this.subApi.formData(),this.subApi)};this.autoValidate?this.validate().then(()=>{e()}).catch(t=>{this.$emit("validateFail",this.subApi)}):e()},addSubApi(e){this.subApi=e,this.$emit("itemMounted",e)},formData(e){this.cacheValue=JSON.stringify(e),this.$emit("update:modelValue",e),this.$emit("change",e)},setValue(e){const t=JSON.stringify(e);this.cacheValue!==t&&(this.cacheValue=t,this.subApi.coverValue(e||{}))}},created(){this.init()}}),JR={class:"_fc-step-form"};function ZR(e,t,i,r,o,s){const d=n.resolveComponent("a-step"),c=n.resolveComponent("a-steps"),u=n.resolveComponent("a-button"),g=n.resolveComponent("a-col"),y=n.resolveComponent("a-row");return n.openBlock(),n.createElementBlock("div",JR,[n.createVNode(c,n.mergeProps({current:e.active},e.stepsProps),{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.steps,C=>(n.openBlock(),n.createBlock(d,n.mergeProps({ref_for:!0},C.props),null,16))),256))]),_:1},16,["current"]),(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.Form),{option:e.options,rule:e.cacheRule,extendOption:!0,modelValue:e.modelValue,"onUpdate:api":e.addSubApi,onEmitEvent:e.$emit,"onUpdate:modelValue":e.formData},null,40,["option","rule","modelValue","onUpdate:api","onEmitEvent","onUpdate:modelValue"])),n.createVNode(y,null,{default:n.withCtx(()=>[n.createVNode(g,{span:24,style:{display:"flex","justify-content":"flex-end","margin-top":"15px"}},{default:n.withCtx(()=>[e.active>0?(n.openBlock(),n.createBlock(u,{key:0,onClick:e.onPrev},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("prevStep")||"\u4E0A\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.active<e.cacheRule.length-1?(n.openBlock(),n.createBlock(u,{key:1,style:{"margin-left":"12px"},type:"primary",onClick:e.onNext},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("nextStep")||"\u4E0B\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.active===e.cacheRule.length-1?(n.openBlock(),n.createBlock(u,{key:2,style:{"margin-left":"12px"},class:"fc-clock",type:"primary",onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("submit")||"\u63D0\u4EA4"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0)]),_:1})]),_:1})])}const qR=Ne(XR,[["render",ZR]]),f8="",eI=n.defineComponent({name:"StepFormView",props:{stepsProps:Object,formCreateInject:Object},provide(){return{stepForm:this}},inject:["designer"],data(){return{active:void 0,activeId:void 0,stepItemRef:[],activeRef:void 0}},watch:{"stepItemRef.length"(){(!this.active||this.formCreateInject.children.indexOf(this.activeRef)===-1)&&(this.active=this.formCreateInject.children.length>0?0:-1)},active(e){this.activeRef=this.formCreateInject.children[e],this.activeId=this.activeRef?this.activeRef._fc_id:null}},methods:{onPrev(){this.active--,this.triggerActive()},onNext(){this.active++,this.triggerActive()},change(e){this.active=e,this.triggerActive()},triggerActive(){this.$nextTick(()=>{this.designer.setupState.triggerActive(this.activeRef)})}},created(){this.$watch(()=>[...this.formCreateInject.children],()=>{this.activeRef&&(this.active=this.formCreateInject.children.indexOf(this.activeRef))})}}),tI={class:"_fd-step-form"};function nI(e,t,i,r,o,s){const d=n.resolveComponent("a-step"),c=n.resolveComponent("a-steps"),u=n.resolveComponent("a-button"),g=n.resolveComponent("a-col"),y=n.resolveComponent("a-row");return n.openBlock(),n.createElementBlock("div",tI,[n.createVNode(c,n.mergeProps({current:e.active},e.stepsProps),{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.formCreateInject.children,(C,w)=>(n.openBlock(),n.createBlock(d,{key:C._fc_id+w,onClick:n.withModifiers(A=>e.change(w),["stop"]),title:C.props.title,description:C.props.description},null,8,["onClick","title","description"]))),128))]),_:1},16,["current"]),n.renderSlot(e.$slots,"default"),n.createVNode(y,null,{default:n.withCtx(()=>[n.createVNode(g,{span:24,style:{display:"flex","justify-content":"flex-end","margin-top":"15px"}},{default:n.withCtx(()=>[e.active>0?(n.openBlock(),n.createBlock(u,{key:0,onClick:n.withModifiers(e.onPrev,["stop"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("prevStep")||"\u4E0A\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.active<e.stepItemRef.length-1?(n.openBlock(),n.createBlock(u,{key:1,type:"primary",onClick:n.withModifiers(e.onNext,["stop"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("nextStep")||"\u4E0B\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0)]),_:1})]),_:1})])}const oI=Ne(eI,[["render",nI]]),p8="",iI=n.defineComponent({name:"TableFormView",data(){return{}}}),rI={class:"_fd-table-form"},aI={key:0,class:"_fd-tf-wrap"},lI={key:1,class:"_fc-child-empty"};function sI(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",rI,[e.$slots.default?(n.openBlock(),n.createElementBlock("div",aI,[n.renderSlot(e.$slots,"default")])):(n.openBlock(),n.createElementBlock("div",lI))])}const dI=Ne(iI,[["render",sI]]),h8="",cI=n.defineComponent({name:"NestedTableFormView",inject:["designer"],data(){return{}},computed:{t(){return this.designer.setupState.t}}}),uI={class:"_fd-ntable-form"},fI={key:0,class:"_fd-ntf-wrap"},pI={key:1,class:"_fc-child-empty"},hI={key:2,class:"_fd-ntable-sub"},mI={class:"_title"};function gI(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",uI,[e.$slots.default?(n.openBlock(),n.createElementBlock("div",fI,[n.renderSlot(e.$slots,"default")])):(n.openBlock(),n.createElementBlock("div",pI)),e.$slots.default?(n.openBlock(),n.createElementBlock("div",hI,[n.createElementVNode("div",mI,n.toDisplayString(e.t("com.nestedSubTableForm.name")),1),n.renderSlot(e.$slots,"nested")])):n.createCommentVNode("",!0)])}const vI=Ne(cI,[["render",gI]]),m8="",yI=n.defineComponent({name:"InfiniteTableFormView",inject:["designer"],data(){return{}},computed:{t(){return this.designer.setupState.t}}}),bI={class:"_fd-itable-form"},CI={key:0,class:"_fd-itf-wrap"},_I={key:1,class:"_fc-child-empty"};function wI(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",bI,[e.$slots.default?(n.openBlock(),n.createElementBlock("div",CI,[n.renderSlot(e.$slots,"default")])):(n.openBlock(),n.createElementBlock("div",_I))])}const EI=Ne(yI,[["render",wI]]),g8="",AI=n.defineComponent({name:"TableFormColumnView",props:{label:String,width:[Number,String],color:String,required:Boolean},computed:{colStyle(){const e=this.width,t={width:at.Number(e)?`${e}px`:!e||e==="auto"?"180px":e};return this.color&&(t.color=this.color),t}},data(){return{}}}),SI={class:"_fd-tf-title"},xI={key:0,class:"_fd-tf-required"},kI={class:"_fd-tf-con"};function NI(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",{class:"_fd-tf-col",style:n.normalizeStyle(e.colStyle)},[n.createElementVNode("div",SI,[e.required?(n.openBlock(),n.createElementBlock("span",xI,"*")):n.createCommentVNode("",!0),n.createTextVNode(n.toDisplayString(e.label||""),1)]),n.createElementVNode("div",kI,[n.renderSlot(e.$slots,"default")])],4)}const TI=Ne(AI,[["render",NI]]),v8="",OI=n.defineComponent({name:"StepFormItemView",props:{title:String,description:String,formCreateInject:Object},inject:["stepForm"],data(){return{}},created(){const e=this.stepForm.formCreateInject.children.indexOf(this.formCreateInject.rule);this.stepForm.stepItemRef.splice(e,0,this)},unmounted(){this.stepForm.stepItemRef.splice(this.stepForm.stepItemRef.indexOf(this),1)},methods:{}}),DI={class:"_fd-step-form-item"};function BI(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",DI,[n.withDirectives(n.createElementVNode("div",null,[n.renderSlot(e.$slots,"default")],512),[[n.vShow,e.stepForm.activeId===e.formCreateInject.rule._fc_id]])])}const $I=Ne(OI,[["render",BI]]),y8="",VI=n.defineComponent({name:"FcDialog",inject:["designer"],inheritAttrs:!1,props:{title:String,footer:{type:Boolean,default:!0},fullscreen:Boolean},computed:{dragConHeight(){return this.designer.setupState.dragConHeight},t(){return this.designer.setupState.t}}}),RI={class:"ant-modal-content"},II={class:"ant-modal-header"},FI={class:"ant-modal-title",id:"vcDialogTitle0"},PI={class:"ant-modal-body"},MI={class:"ant-modal-footer"};function LI(e,t,i,r,o,s){const d=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",{class:"_fd-dialog ant-modal",style:n.normalizeStyle(`--fc-dialog-height:${e.dragConHeight-23}px;`)},[n.createElementVNode("div",RI,[e.fullscreen?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(d,{key:0,class:"ant-modal-fullpage"},{default:n.withCtx(()=>t[0]||(t[0]=[n.createElementVNode("i",{class:"fc-icon icon-page-max"},null,-1)])),_:1})),n.createVNode(d,{class:"ant-modal-close"},{default:n.withCtx(()=>t[1]||(t[1]=[n.createElementVNode("span",{class:"ant-modal-close-x"},[n.createElementVNode("span",{role:"img","aria-label":"close",class:"anticon anticon-close ant-modal-close-icon"},[n.createElementVNode("svg",{focusable:"false","data-icon":"close",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true","fill-rule":"evenodd",viewBox:"64 64 896 896"},[n.createElementVNode("path",{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"})])])],-1)])),_:1}),n.createElementVNode("div",II,[n.createElementVNode("div",FI,n.toDisplayString(e.title),1)]),n.createElementVNode("div",PI,[n.renderSlot(e.$slots,"default")]),n.createElementVNode("div",MI,[e.footer!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(d,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.close")),1)]),_:1}),n.createVNode(d,{type:"primary",style:{"margin-left":"12px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1})],64)):n.createCommentVNode("",!0)])])],4)}const jI=Ne(VI,[["render",LI]]),b8="",zI=n.defineComponent({name:"FcDialog",emits:["confirm","submit","validateFail"],props:{formData:Object,options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},rule:Array,autoClose:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},fullscreen:Boolean,formCreateInject:Object},data(){return{visible:!1,max:this.fullscreen||!1,fapi:{},value:{},formRule:[],Form:n.markRaw(this.formCreateInject.form.$form())}},methods:{open(e){this.$nextTick(()=>{this.visible=!0,this.value=et(e||this.formData||{}),this.formRule=et(this.rule||[])})},close(){this.visible=!1},handleConfirm(){this.$emit("confirm",this.fapi),this.fapi.submit().then(e=>{this.$emit("submit",e,this.fapi,this.close),this.autoClose&&this.close()}).catch(e=>{this.$emit("validateFail",e,this.fapi)})}},mounted(){this.formCreateInject.api.top.bus.$on("fc.closeDialog",this.close),n.onUnmounted(()=>{this.formCreateInject.api.top.bus.$off("fc.closeDialog",this.close)})}}),HI={key:0,class:"fc-icon icon-page-min"},UI={key:1,class:"fc-icon icon-page-max"};function WI(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-modal");return n.openBlock(),n.createBlock(c,n.mergeProps({class:"_fc-dialog","wrap-class-name":e.max?"_fc-dialog-fullscreen":""},e.$attrs,{open:e.visible,"onUpdate:open":t[2]||(t[2]=u=>e.visible=u),destroyOnClose:"",footer:e.footer?void 0:e.footer}),{footer:n.withCtx(()=>[n.createVNode(d,{onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("close")||"\u5173\u95ED"),1)]),_:1},8,["onClick"]),n.createVNode(d,{type:"primary",onClick:e.handleConfirm},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["onClick"])]),default:n.withCtx(()=>[e.$attrs.fullscreen?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(d,{key:0,class:"ant-modal-close",style:{right:"48px"},onClick:t[0]||(t[0]=u=>e.max=!e.max)},{default:n.withCtx(()=>[e.max?(n.openBlock(),n.createElementBlock("i",HI)):(n.openBlock(),n.createElementBlock("i",UI))]),_:1})),(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.Form),{option:e.options,rule:e.formRule,extendOption:!0,api:e.fapi,"onUpdate:api":t[1]||(t[1]=u=>e.fapi=u),"model-value":e.value,onEmitEvent:e.$emit},null,40,["option","rule","api","model-value","onEmitEvent"]))]),_:1},16,["wrap-class-name","open","footer"])}const GI=Ne(zI,[["render",WI]]),C8="",KI=n.defineComponent({name:"FcDialog",inject:["designer"],inheritAttrs:!1,props:{title:String,footer:{type:Boolean,default:!0},size:String},computed:{dragConHeight(){return this.designer.setupState.dragConHeight},t(){return this.designer.setupState.t}}}),YI={class:"ant-drawer-content-wrapper"},QI={class:"ant-drawer-wrapper-body"},XI={class:"ant-drawer-header"},JI={class:"ant-drawer-header-title"},ZI={class:"ant-drawer-title"},qI={class:"ant-drawer-extra"},eF={class:"ant-drawer-body"};function tF(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-space");return n.openBlock(),n.createElementBlock("div",{class:"ant-drawer _fd-drawer",style:n.normalizeStyle(`--fc-drawer-height:${e.dragConHeight-23}px;`)},[n.createElementVNode("div",YI,[n.createElementVNode("div",QI,[n.createElementVNode("div",XI,[n.createElementVNode("div",JI,[t[0]||(t[0]=n.createElementVNode("button",{class:"ant-drawer-close"},[n.createElementVNode("span",{role:"img","aria-label":"close",class:"anticon anticon-close"},[n.createElementVNode("svg",{focusable:"false","data-icon":"close",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true","fill-rule":"evenodd",viewBox:"64 64 896 896"},[n.createElementVNode("path",{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"})])])],-1)),t[1]||(t[1]=n.createElementVNode("button",{class:"ant-drawer-close"},[n.createElementVNode("i",{class:"fc-icon icon-page-max"})],-1)),n.createElementVNode("div",ZI,n.toDisplayString(e.title),1)]),n.createElementVNode("div",qI,[e.footer!==!1?(n.openBlock(),n.createBlock(c,{key:0},{default:n.withCtx(()=>[n.createVNode(d,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.close")),1)]),_:1}),n.createVNode(d,{type:"primary"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1})]),_:1})):n.createCommentVNode("",!0)])]),n.createElementVNode("div",eF,[n.renderSlot(e.$slots,"default")])])])],4)}const nF=Ne(KI,[["render",tF]]),_8="",oF=n.defineComponent({name:"FcDialog",emits:["confirm","submit","validateFail"],props:{formData:Object,options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},width:[Number,String],title:String,rule:Array,autoClose:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},formCreateInject:Object},data(){return{visible:!1,max:this.width==="100%",fapi:{},value:{},formRule:[],Form:n.markRaw(this.formCreateInject.form.$form())}},methods:{open(e){this.$nextTick(()=>{this.visible=!0,this.value=et(e||this.formData||{}),this.formRule=et(this.rule||[])})},close(){this.visible=!1},handleConfirm(){this.$emit("confirm",this.fapi),this.fapi.submit().then(e=>{this.$emit("submit",e,this.fapi,this.close),this.autoClose&&this.close()}).catch(e=>{this.$emit("validateFail",e,this.fapi)})}},mounted(){this.formCreateInject.api.top.bus.$on("fc.closeDialog",this.close),n.onUnmounted(()=>{this.formCreateInject.api.top.bus.$off("fc.closeDialog",this.close)})}}),iF={key:0,class:"fc-icon icon-page-min"},rF={key:1,class:"fc-icon icon-page-max"};function aF(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-drawer");return n.openBlock(),n.createBlock(c,n.mergeProps({class:"_fc-drawer"},e.$attrs,{width:e.max?"100%":e.width,open:e.visible,"onUpdate:open":t[2]||(t[2]=u=>e.visible=u),destroyOnClose:""}),n.createSlots({title:n.withCtx(()=>[e.width!=="100%"?(n.openBlock(),n.createElementBlock("button",{key:0,class:"ant-drawer-close",onClick:t[0]||(t[0]=u=>e.max=!e.max)},[e.max?(n.openBlock(),n.createElementBlock("i",iF)):(n.openBlock(),n.createElementBlock("i",rF))])):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(e.title),1)]),default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.Form),{option:e.options,rule:e.formRule,extendOption:!0,api:e.fapi,"onUpdate:api":t[1]||(t[1]=u=>e.fapi=u),"model-value":e.value,onEmitEvent:e.$emit},null,40,["option","rule","api","model-value","onEmitEvent"]))]),_:2},[e.footer!==!1?{name:"extra",fn:n.withCtx(()=>[n.createVNode(d,{onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("close")||"\u5173\u95ED"),1)]),_:1},8,["onClick"]),n.createVNode(d,{type:"primary",onClick:e.handleConfirm,style:{"margin-left":"12px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["onClick"])]),key:"0"}:void 0]),1040,["width","open"])}const lF=Ne(oF,[["render",aF]]),w8="",sF=n.defineComponent({name:"FcCell",inheritAttrs:!1,data(){return{isNew:!1}},computed:{style(){const e=this.$attrs.style||{},t={"--fc-cell-display":e.display||"block","--fc-cell-flexDirection":e.flexDirection||"inherit","--fc-cell-flexWrap":e.flexWrap||"inherit","--fc-cell-alignContent":e.alignContent||"inherit","--fc-cell-justifyContent":e.justifyContent||"inherit","--fc-cell-alignItems":e.alignItems||"inherit"};return e.height&&(t.height=e.height||"auto"),e.width&&(t.width=e.width||"auto"),t}},mounted(){this.isNew=this.$el.parentNode.classList.contains("_fd-drag-item"),this.isNew&&this.$watch("$attrs.style.width",e=>{n.nextTick(()=>{this.$el.parentNode.style.width=e||"100%"})},{immediate:!0})}});function dF(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",{ref:"cell",class:n.normalizeClass(["_fd-cell",{"is-new":e.isNew}]),style:n.normalizeStyle(e.style)},[n.createElementVNode("div",n.mergeProps(e.$attrs,{style:{height:"100%",width:"100%"}}),[n.renderSlot(e.$slots,"default")],16)],6)}const cF=Ne(sF,[["render",dF]]),E8="",uF=n.defineComponent({name:"fcRow",mounted(){}});function fF(e,t,i,r,o,s){const d=n.resolveComponent("a-col");return n.openBlock(),n.createBlock(d,{span:24},{default:n.withCtx(()=>[n.createElementVNode("div",n.mergeProps({class:["_fd-row ant-row",{"_fc-child-empty":!e.$slots.default}]},e.$attrs),[n.renderSlot(e.$slots,"default")],16)]),_:3})}const pF=Ne(uF,[["render",fF]]),A8="",hF=n.defineComponent({name:"HideSwitch",props:{modelValue:[String,Boolean,Number],activeValue:{type:[String,Boolean,Number],default:!0},inactiveValue:{type:[String,Boolean,Number],default:!1},disabled:Boolean},events:["update:modelValue"],inject:["designer"],computed:{t(){return this.designer.setupState.t}},methods:{onInput(){this.disabled||this.$emit("update:modelValue",this.modelValue!==this.activeValue?this.activeValue:this.inactiveValue)}}});function mF(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fd-hide-config",{disabled:!!e.disabled,active:e.modelValue===e.activeValue}]),onClick:t[0]||(t[0]=(...d)=>e.onInput&&e.onInput(...d))},[e.modelValue===e.activeValue?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-eye"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.show")),1)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-eye-close"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.hide")),1)],64))],2)}const gF=Ne(hF,[["render",mF]]),S8="",vF=n.defineComponent({name:"SpanInput",props:{modelValue:[Number,String]},inject:["designer"],computed:{t(){return this.designer.setupState.t}},data(){return{layout:[{label:"1/4",value:6},{label:"1/3",value:8},{label:"1/2",value:12},{label:"2/3",value:16},{label:"3/4",value:18},{label:"\u6574\u884C",value:24}]}},methods:{onInput(e){this.$emit("update:modelValue",e===this.modelValue?"":e)}}});function yF(e,t,i,r,o,s){const d=n.resolveComponent("a-radio-button"),c=n.resolveComponent("a-radio-group");return n.openBlock(),n.createBlock(c,{value:e.modelValue,class:"_fd-span-input"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.layout,u=>(n.openBlock(),n.createBlock(d,{value:u.value,key:u.value,onClick:g=>e.onInput(u.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(u.value===24?e.t("form.row"):u.label),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value"])}const bF=Ne(vF,[["render",yF]]),x8="",CF=n.defineComponent({name:"SignaturePad",emits:["update:modelValue","change","remove"],data(){return{visible:!1,isEmpty:!0,signaturePad:null}},props:{modelValue:String,penColor:String,formCreateInject:Object},watch:{visible(e){e?(this.isEmpty=!0,this.$nextTick(()=>{this.signaturePad=n.markRaw(new Cr(this.$refs.pad,{penColor:this.penColor})),this.signaturePad.addEventListener("endStroke",()=>{this.isEmpty=this.signaturePad.isEmpty()})})):(this.signaturePad.off(),this.signaturePad=null)}},methods:{clear(){this.signaturePad.clear(),this.isEmpty=!0},submit(){const e=this.signaturePad.toDataURL();this.updateValue(e),this.visible=!1},updateValue(e){this.$emit("update:modelValue",e),this.$emit("change",e)},remove(){this.updateValue(""),this.$emit("remove")}}}),_F={class:"_fc-signature"},wF={key:0,class:"_fc-signature-preview"},EF=["src"],AF={class:"_fc-signature-pad",ref:"pad",width:"600px",height:"270px"};function SF(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",_F,[e.modelValue?(n.openBlock(),n.createElementBlock("div",wF,[n.createElementVNode("i",{class:"fc-icon icon-delete2",onClick:t[0]||(t[0]=(...u)=>e.remove&&e.remove(...u))}),n.createElementVNode("img",{src:e.modelValue,alt:"signature"},null,8,EF)])):(n.openBlock(),n.createElementBlock("div",{key:1,class:"_fc-signature-btn",onClick:t[1]||(t[1]=u=>e.visible=!0)},[t[4]||(t[4]=n.createElementVNode("i",{class:"fc-icon icon-edit2"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.formCreateInject.t("signaturePadTip")||"\u70B9\u51FB\u6DFB\u52A0\u624B\u5199\u7B7E\u540D"),1)])),n.createVNode(c,{class:"_fc-signature-dialog",title:e.formCreateInject.t("signaturePadTitle")||"\u8BF7\u5728\u865A\u7EBF\u6846\u5185\u4E66\u5199",open:e.visible,"onUpdate:open":t[3]||(t[3]=u=>e.visible=u),centered:"",maskClosable:!1,destroyOnClose:!0,width:"640px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[2]||(t[2]=u=>e.clear())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("reset")||"\u91CD\u7F6E"),1)]),_:1}),n.createVNode(d,{type:"primary",disabled:e.isEmpty,onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["disabled","onClick"])])]),default:n.withCtx(()=>[n.createElementVNode("canvas",AF,null,512)]),_:1},8,["title","open"])])}const xF=Ne(CF,[["render",SF]]);/*!
* @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 jm(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),i.push.apply(i,r)}return i}function kF(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?jm(Object(i),!0).forEach(function(r){NF(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):jm(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function Ht(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ht=function(t){return typeof t}:Ht=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ht(e)}function NF(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function TF(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zm={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(window,function(){return function(i){var r={};function o(s){if(r[s])return r[s].exports;var d=r[s]={i:s,l:!1,exports:{}};return i[s].call(d.exports,d,d.exports,o),d.l=!0,d.exports}return o.m=i,o.c=r,o.d=function(s,d,c){o.o(s,d)||Object.defineProperty(s,d,{enumerable:!0,get:c})},o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},o.t=function(s,d){if(d&1&&(s=o(s)),d&8||d&4&&Ht(s)==="object"&&s&&s.__esModule)return s;var c=Object.create(null);if(o.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:s}),d&2&&typeof s!="string")for(var u in s)o.d(c,u,function(g){return s[g]}.bind(null,u));return c},o.n=function(s){var d=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(d,"a",d),d},o.o=function(s,d){return Object.prototype.hasOwnProperty.call(s,d)},o.p="",o(o.s=141)}([function(i,r){function o(s){return s&&s.__esModule?s:{default:s}}i.exports=o},function(i,r,o){i.exports=o(142)},function(i,r,o){o.r(r),o.d(r,"__extends",function(){return d}),o.d(r,"__assign",function(){return c}),o.d(r,"__rest",function(){return u}),o.d(r,"__decorate",function(){return g}),o.d(r,"__param",function(){return y}),o.d(r,"__metadata",function(){return C}),o.d(r,"__awaiter",function(){return w}),o.d(r,"__generator",function(){return A}),o.d(r,"__createBinding",function(){return E}),o.d(r,"__exportStar",function(){return _}),o.d(r,"__values",function(){return v}),o.d(r,"__read",function(){return m}),o.d(r,"__spread",function(){return b}),o.d(r,"__spreadArrays",function(){return S}),o.d(r,"__spreadArray",function(){return x}),o.d(r,"__await",function(){return O}),o.d(r,"__asyncGenerator",function(){return D}),o.d(r,"__asyncDelegator",function(){return R}),o.d(r,"__asyncValues",function(){return I}),o.d(r,"__makeTemplateObject",function(){return z}),o.d(r,"__importStar",function(){return B}),o.d(r,"__importDefault",function(){return L}),o.d(r,"__classPrivateFieldGet",function(){return U}),o.d(r,"__classPrivateFieldSet",function(){return W});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var s=function(k,M){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,Z){j.__proto__=Z}||function(j,Z){for(var J in Z)Object.prototype.hasOwnProperty.call(Z,J)&&(j[J]=Z[J])},s(k,M)};function d(V,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");s(V,k);function M(){this.constructor=V}V.prototype=k===null?Object.create(k):(M.prototype=k.prototype,new M)}var c=function(){return c=Object.assign||function(M){for(var j,Z=1,J=arguments.length;Z<J;Z++){j=arguments[Z];for(var F in j)Object.prototype.hasOwnProperty.call(j,F)&&(M[F]=j[F])}return M},c.apply(this,arguments)};function u(V,k){var M={};for(var j in V)Object.prototype.hasOwnProperty.call(V,j)&&k.indexOf(j)<0&&(M[j]=V[j]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,j=Object.getOwnPropertySymbols(V);Z<j.length;Z++)k.indexOf(j[Z])<0&&Object.prototype.propertyIsEnumerable.call(V,j[Z])&&(M[j[Z]]=V[j[Z]]);return M}function g(V,k,M,j){var Z=arguments.length,J=Z<3?k:j===null?j=Object.getOwnPropertyDescriptor(k,M):j,F;if((typeof Reflect>"u"?"undefined":Ht(Reflect))==="object"&&typeof Reflect.decorate=="function")J=Reflect.decorate(V,k,M,j);else for(var ie=V.length-1;ie>=0;ie--)(F=V[ie])&&(J=(Z<3?F(J):Z>3?F(k,M,J):F(k,M))||J);return Z>3&&J&&Object.defineProperty(k,M,J),J}function y(V,k){return function(M,j){k(M,j,V)}}function C(V,k){if((typeof Reflect>"u"?"undefined":Ht(Reflect))==="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(V,k)}function w(V,k,M,j){function Z(J){return J instanceof M?J:new M(function(F){F(J)})}return new(M||(M=Promise))(function(J,F){function ie(ye){try{se(j.next(ye))}catch(fe){F(fe)}}function pe(ye){try{se(j.throw(ye))}catch(fe){F(fe)}}function se(ye){ye.done?J(ye.value):Z(ye.value).then(ie,pe)}se((j=j.apply(V,k||[])).next())})}function A(V,k){var M={label:0,sent:function(){if(J[0]&1)throw J[1];return J[1]},trys:[],ops:[]},j,Z,J,F;return F={next:ie(0),throw:ie(1),return:ie(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function ie(se){return function(ye){return pe([se,ye])}}function pe(se){if(j)throw new TypeError("Generator is already executing.");for(;M;)try{if(j=1,Z&&(J=se[0]&2?Z.return:se[0]?Z.throw||((J=Z.return)&&J.call(Z),0):Z.next)&&!(J=J.call(Z,se[1])).done)return J;switch(Z=0,J&&(se=[se[0]&2,J.value]),se[0]){case 0:case 1:J=se;break;case 4:return M.label++,{value:se[1],done:!1};case 5:M.label++,Z=se[1],se=[0];continue;case 7:se=M.ops.pop(),M.trys.pop();continue;default:if(J=M.trys,!(J=J.length>0&&J[J.length-1])&&(se[0]===6||se[0]===2)){M=0;continue}if(se[0]===3&&(!J||se[1]>J[0]&&se[1]<J[3])){M.label=se[1];break}if(se[0]===6&&M.label<J[1]){M.label=J[1],J=se;break}if(J&&M.label<J[2]){M.label=J[2],M.ops.push(se);break}J[2]&&M.ops.pop(),M.trys.pop();continue}se=k.call(V,M)}catch(ye){se=[6,ye],Z=0}finally{j=J=0}if(se[0]&5)throw se[1];return{value:se[0]?se[1]:void 0,done:!0}}}var E=Object.create?function(V,k,M,j){j===void 0&&(j=M),Object.defineProperty(V,j,{enumerable:!0,get:function(){return k[M]}})}:function(V,k,M,j){j===void 0&&(j=M),V[j]=k[M]};function _(V,k){for(var M in V)M!=="default"&&!Object.prototype.hasOwnProperty.call(k,M)&&E(k,V,M)}function v(V){var k=typeof Symbol=="function"&&Symbol.iterator,M=k&&V[k],j=0;if(M)return M.call(V);if(V&&typeof V.length=="number")return{next:function(){return V&&j>=V.length&&(V=void 0),{value:V&&V[j++],done:!V}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(V,k){var M=typeof Symbol=="function"&&V[Symbol.iterator];if(!M)return V;var j=M.call(V),Z,J=[],F;try{for(;(k===void 0||k-- >0)&&!(Z=j.next()).done;)J.push(Z.value)}catch(ie){F={error:ie}}finally{try{Z&&!Z.done&&(M=j.return)&&M.call(j)}finally{if(F)throw F.error}}return J}function b(){for(var V=[],k=0;k<arguments.length;k++)V=V.concat(m(arguments[k]));return V}function S(){for(var V=0,k=0,M=arguments.length;k<M;k++)V+=arguments[k].length;for(var j=Array(V),Z=0,k=0;k<M;k++)for(var J=arguments[k],F=0,ie=J.length;F<ie;F++,Z++)j[Z]=J[F];return j}function x(V,k){for(var M=0,j=k.length,Z=V.length;M<j;M++,Z++)V[Z]=k[M];return V}function O(V){return this instanceof O?(this.v=V,this):new O(V)}function D(V,k,M){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var j=M.apply(V,k||[]),Z,J=[];return Z={},F("next"),F("throw"),F("return"),Z[Symbol.asyncIterator]=function(){return this},Z;function F(ue){j[ue]&&(Z[ue]=function(he){return new Promise(function($,Y){J.push([ue,he,$,Y])>1||ie(ue,he)})})}function ie(ue,he){try{pe(j[ue](he))}catch($){fe(J[0][3],$)}}function pe(ue){ue.value instanceof O?Promise.resolve(ue.value.v).then(se,ye):fe(J[0][2],ue)}function se(ue){ie("next",ue)}function ye(ue){ie("throw",ue)}function fe(ue,he){ue(he),J.shift(),J.length&&ie(J[0][0],J[0][1])}}function R(V){var k,M;return k={},j("next"),j("throw",function(Z){throw Z}),j("return"),k[Symbol.iterator]=function(){return this},k;function j(Z,J){k[Z]=V[Z]?function(F){return(M=!M)?{value:O(V[Z](F)),done:Z==="return"}:J?J(F):F}:J}}function I(V){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var k=V[Symbol.asyncIterator],M;return k?k.call(V):(V=typeof v=="function"?v(V):V[Symbol.iterator](),M={},j("next"),j("throw"),j("return"),M[Symbol.asyncIterator]=function(){return this},M);function j(J){M[J]=V[J]&&function(F){return new Promise(function(ie,pe){F=V[J](F),Z(ie,pe,F.done,F.value)})}}function Z(J,F,ie,pe){Promise.resolve(pe).then(function(se){J({value:se,done:ie})},F)}}function z(V,k){return Object.defineProperty?Object.defineProperty(V,"raw",{value:k}):V.raw=k,V}var T=Object.create?function(V,k){Object.defineProperty(V,"default",{enumerable:!0,value:k})}:function(V,k){V.default=k};function B(V){if(V&&V.__esModule)return V;var k={};if(V!=null)for(var M in V)M!=="default"&&Object.prototype.hasOwnProperty.call(V,M)&&E(k,V,M);return T(k,V),k}function L(V){return V&&V.__esModule?V:{default:V}}function U(V,k){if(!k.has(V))throw new TypeError("attempted to get private field on non-instance");return k.get(V)}function W(V,k,M){if(!k.has(V))throw new TypeError("attempted to set private field on non-instance");return k.set(V,M),M}},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(89)),u=s(o(4)),g=s(o(26)),y=s(o(17)),C=s(o(121)),w=s(o(27)),A=s(o(91)),E=s(o(70)),_=s(o(28)),v=s(o(57));(0,d.default)(r,"__esModule",{value:!0}),r.DomElement=void 0;var m=o(2),b=o(6),S=[];function x(T){var B=document.createElement("div");B.innerHTML=T;var L=B.children;return b.toArray(L)}function O(T){return T?T instanceof HTMLCollection||T instanceof NodeList:!1}function D(T){var B=document.querySelectorAll(T);return b.toArray(B)}function R(T){var B=[],L=[];return(0,c.default)(T)?B=T:B=T.split(";"),(0,u.default)(B).call(B,function(U){var W,V=(0,g.default)(W=U.split(":")).call(W,function(k){return(0,y.default)(k).call(k)});V.length===2&&L.push(V[0]+":"+V[1])}),L}var I=function(){function T(B){if(this.elems=[],this.length=this.elems.length,this.dataSource=new C.default,!!B){if(B instanceof T)return B;var L=[],U=B instanceof Node?B.nodeType:-1;if(this.selector=B,U===1||U===9)L=[B];else if(O(B))L=b.toArray(B);else if(B instanceof Array)L=B;else if(typeof B=="string"){var W,V=(0,y.default)(W=B.replace(`/
/mg`,"")).call(W);(0,w.default)(V).call(V,"<")===0?L=x(V):L=D(V)}var k=L.length;if(!k)return this;for(var M=0;M<k;M++)this.elems.push(L[M]);this.length=k}}return(0,d.default)(T.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),T.prototype.forEach=function(B){for(var L=0;L<this.length;L++){var U=this.elems[L],W=B.call(U,U,L);if(W===!1)break}return this},T.prototype.clone=function(B){var L;B===void 0&&(B=!1);var U=[];return(0,u.default)(L=this.elems).call(L,function(W){U.push(W.cloneNode(!!B))}),z(U)},T.prototype.get=function(B){B===void 0&&(B=0);var L=this.length;return B>=L&&(B=B%L),z(this.elems[B])},T.prototype.first=function(){return this.get(0)},T.prototype.last=function(){var B=this.length;return this.get(B-1)},T.prototype.on=function(B,L,U){var W;return B?(typeof L=="function"&&(U=L,L=""),(0,u.default)(W=this).call(W,function(V){if(!L){V.addEventListener(B,U);return}var k=function(j){var Z=j.target;Z.matches(L)&&U.call(Z,j)};V.addEventListener(B,k),S.push({elem:V,selector:L,fn:U,agentFn:k})})):this},T.prototype.off=function(B,L,U){var W;return B?(typeof L=="function"&&(U=L,L=""),(0,u.default)(W=this).call(W,function(V){if(L){for(var k=-1,M=0;M<S.length;M++){var j=S[M];if(j.selector===L&&j.fn===U&&j.elem===V){k=M;break}}if(k!==-1){var Z=(0,A.default)(S).call(S,k,1)[0].agentFn;V.removeEventListener(B,Z)}}else V.removeEventListener(B,U)})):this},T.prototype.attr=function(B,L){var U;return L==null?this.elems[0].getAttribute(B)||"":(0,u.default)(U=this).call(U,function(W){W.setAttribute(B,L)})},T.prototype.removeAttr=function(B){var L;(0,u.default)(L=this).call(L,function(U){U.removeAttribute(B)})},T.prototype.addClass=function(B){var L;return B?(0,u.default)(L=this).call(L,function(U){if(U.className){var W=U.className.split(/\s/);W=(0,E.default)(W).call(W,function(V){return!!(0,y.default)(V).call(V)}),(0,w.default)(W).call(W,B)<0&&W.push(B),U.className=W.join(" ")}else U.className=B}):this},T.prototype.removeClass=function(B){var L;return B?(0,u.default)(L=this).call(L,function(U){if(!!U.className){var W=U.className.split(/\s/);W=(0,E.default)(W).call(W,function(V){return V=(0,y.default)(V).call(V),!(!V||V===B)}),U.className=W.join(" ")}}):this},T.prototype.hasClass=function(B){if(!B)return!1;var L=this.elems[0];if(!L.className)return!1;var U=L.className.split(/\s/);return(0,_.default)(U).call(U,B)},T.prototype.css=function(B,L){var U,W;return L==""?W="":W=B+":"+L+";",(0,u.default)(U=this).call(U,function(V){var k,M=(0,y.default)(k=V.getAttribute("style")||"").call(k);if(M){var j=R(M);j=(0,g.default)(j).call(j,function(Z){return(0,w.default)(Z).call(Z,B)===0?W:Z}),W!=""&&(0,w.default)(j).call(j,W)<0&&j.push(W),W==""&&(j=R(j)),V.setAttribute("style",j.join("; "))}else V.setAttribute("style",W)})},T.prototype.getBoundingClientRect=function(){var B=this.elems[0];return B.getBoundingClientRect()},T.prototype.show=function(){return this.css("display","block")},T.prototype.hide=function(){return this.css("display","none")},T.prototype.children=function(){var B=this.elems[0];return B?z(B.children):null},T.prototype.childNodes=function(){var B=this.elems[0];return B?z(B.childNodes):null},T.prototype.replaceChildAll=function(B){for(var L=this.getNode(),U=this.elems[0];U.hasChildNodes();)L.firstChild&&U.removeChild(L.firstChild);this.append(B)},T.prototype.append=function(B){var L;return(0,u.default)(L=this).call(L,function(U){(0,u.default)(B).call(B,function(W){U.appendChild(W)})})},T.prototype.remove=function(){var B;return(0,u.default)(B=this).call(B,function(L){if(L.remove)L.remove();else{var U=L.parentElement;U&&U.removeChild(L)}})},T.prototype.isContain=function(B){var L=this.elems[0],U=B.elems[0];return L.contains(U)},T.prototype.getNodeName=function(){var B=this.elems[0];return B.nodeName},T.prototype.getNode=function(B){B===void 0&&(B=0);var L;return L=this.elems[B],L},T.prototype.find=function(B){var L=this.elems[0];return z(L.querySelectorAll(B))},T.prototype.text=function(B){if(B){var U;return(0,u.default)(U=this).call(U,function(W){W.innerHTML=B})}else{var L=this.elems[0];return L.innerHTML.replace(/<[^>]+>/g,function(){return""})}},T.prototype.html=function(B){var L=this.elems[0];return B?(L.innerHTML=B,this):L.innerHTML},T.prototype.val=function(){var B,L=this.elems[0];return(0,y.default)(B=L.value).call(B)},T.prototype.focus=function(){var B;return(0,u.default)(B=this).call(B,function(L){L.focus()})},T.prototype.prev=function(){var B=this.elems[0];return z(B.previousElementSibling)},T.prototype.next=function(){var B=this.elems[0];return z(B.nextElementSibling)},T.prototype.getNextSibling=function(){var B=this.elems[0];return z(B.nextSibling)},T.prototype.parent=function(){var B=this.elems[0];return z(B.parentElement)},T.prototype.parentUntil=function(B,L){var U=L||this.elems[0];if(U.nodeName==="BODY")return null;var W=U.parentElement;return W===null?null:W.matches(B)?z(W):this.parentUntil(B,W)},T.prototype.parentUntilEditor=function(B,L,U){var W=U||this.elems[0];if(z(W).equal(L.$textContainerElem)||z(W).equal(L.$toolbarElem))return null;var V=W.parentElement;return V===null?null:V.matches(B)?z(V):this.parentUntilEditor(B,L,V)},T.prototype.equal=function(B){return B instanceof T?this.elems[0]===B.elems[0]:B instanceof HTMLElement?this.elems[0]===B:!1},T.prototype.insertBefore=function(B){var L,U=z(B),W=U.elems[0];return W?(0,u.default)(L=this).call(L,function(V){var k=W.parentNode;k==null||k.insertBefore(V,W)}):this},T.prototype.insertAfter=function(B){var L,U=z(B),W=U.elems[0],V=W&&W.nextSibling;return W?(0,u.default)(L=this).call(L,function(k){var M=W.parentNode;V?M.insertBefore(k,V):M.appendChild(k)}):this},T.prototype.data=function(B,L){if(L!=null)this.dataSource.set(B,L);else return this.dataSource.get(B)},T.prototype.getNodeTop=function(B){if(this.length<1)return this;var L=this.parent();return B.$textElem.equal(this)||B.$textElem.equal(L)?this:(L.prior=this,L.getNodeTop(B))},T.prototype.getOffsetData=function(){var B=this.elems[0];return{top:B.offsetTop,left:B.offsetLeft,width:B.offsetWidth,height:B.offsetHeight,parent:B.offsetParent}},T.prototype.scrollTop=function(B){var L=this.elems[0];L.scrollTo({top:B})},T}();r.DomElement=I;function z(){for(var T=[],B=0;B<arguments.length;B++)T[B]=arguments[B];return new((0,v.default)(I).apply(I,m.__spreadArrays([void 0],T)))}r.default=z},function(i,r,o){i.exports=o(180)},function(i,r,o){var s=o(8),d=o(71).f,c=o(101),u=o(9),g=o(40),y=o(19),C=o(16),w=function(E){var _=function(m,b,S){if(this instanceof E){switch(arguments.length){case 0:return new E;case 1:return new E(m);case 2:return new E(m,b)}return new E(m,b,S)}return E.apply(this,arguments)};return _.prototype=E.prototype,_};i.exports=function(A,E){var _=A.target,v=A.global,m=A.stat,b=A.proto,S=v?s:m?s[_]:(s[_]||{}).prototype,x=v?u:u[_]||(u[_]={}),O=x.prototype,D,R,I,z,T,B,L,U,W;for(z in E)D=c(v?z:_+(m?".":"#")+z,A.forced),R=!D&&S&&C(S,z),B=x[z],R&&(A.noTargetGet?(W=d(S,z),L=W&&W.value):L=S[z]),T=R&&L?L:E[z],!(R&&Ht(B)===Ht(T))&&(A.bind&&R?U=g(T,s):A.wrap&&R?U=w(T):b&&typeof T=="function"?U=g(Function.call,T):U=T,(A.sham||T&&T.sham||B&&B.sham)&&y(U,"sham",!0),x[z]=U,b&&(I=_+"Prototype",C(u,I)||y(u,I,{}),u[I][z]=T,A.real&&O&&!O[z]&&y(O,z,T)))}},function(i,r,o){var s=o(0),d=s(o(92)),c=s(o(1)),u=s(o(256)),g=s(o(45)),y=s(o(46)),C=s(o(89)),w=s(o(26));(0,c.default)(r,"__esModule",{value:!0}),r.hexToRgb=r.getRandomCode=r.toArray=r.deepClone=r.isFunction=r.debounce=r.throttle=r.arrForEach=r.forEach=r.replaceSpecialSymbol=r.replaceHtmlSymbol=r.getRandom=r.UA=void 0;var A=o(2),E=function(){function B(){this._ua=navigator.userAgent;var L=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(L&&L[1]=="Edge"&&(0,u.default)(L[2])<19),this.isFirefox=!!(/Firefox\/\d+/.test(this._ua)&&!/Seamonkey\/\d+/.test(this._ua))}return B.prototype.isIE=function(){return"ActiveXObject"in window},B.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},B}();r.UA=new E;function _(B){var L;return B===void 0&&(B=""),B+(0,g.default)(L=Math.random().toString()).call(L,2)}r.getRandom=_;function v(B){return B.replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/(\r\n|\r|\n)/g,"<br/>")}r.replaceHtmlSymbol=v;function m(B){return B.replace(/&lt;/gm,"<").replace(/&gt;/gm,">").replace(/&quot;/gm,'"')}r.replaceSpecialSymbol=m;function b(B,L){for(var U in B)if(Object.prototype.hasOwnProperty.call(B,U)){var W=L(U,B[U]);if(W===!1)break}}r.forEach=b;function S(B,L){var U,W,V,k=B.length||0;for(U=0;U<k&&(W=B[U],V=L.call(B,W,U),V!==!1);U++);}r.arrForEach=S;function x(B,L){L===void 0&&(L=200);var U=!1;return function(){for(var W=this,V=[],k=0;k<arguments.length;k++)V[k]=arguments[k];U||(U=!0,(0,y.default)(function(){U=!1,B.call.apply(B,A.__spreadArrays([W],V))},L))}}r.throttle=x;function O(B,L){L===void 0&&(L=200);var U=0;return function(){for(var W=this,V=[],k=0;k<arguments.length;k++)V[k]=arguments[k];U&&window.clearTimeout(U),U=(0,y.default)(function(){U=0,B.call.apply(B,A.__spreadArrays([W],V))},L)}}r.debounce=O;function D(B){return typeof B=="function"}r.isFunction=D;function R(B){if((0,d.default)(B)!=="object"||typeof B=="function"||B===null)return B;var L;(0,C.default)(B)&&(L=[]),(0,C.default)(B)||(L={});for(var U in B)Object.prototype.hasOwnProperty.call(B,U)&&(L[U]=R(B[U]));return L}r.deepClone=R;function I(B){return(0,g.default)(Array.prototype).call(B)}r.toArray=I;function z(){var B;return(0,g.default)(B=Math.random().toString(36)).call(B,-5)}r.getRandomCode=z;function T(B){var L=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(B);if(L==null)return null;var U=(0,w.default)(L).call(L,function(M){return(0,u.default)(M,16)}),W=U[1],V=U[2],k=U[3];return"rgb("+W+", "+V+", "+k+")"}r.hexToRgb=T},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.EMPTY_P_REGEX=r.EMPTY_P_LAST_REGEX=r.EMPTY_P=r.urlRegex=r.EMPTY_FN=void 0;function c(){}r.EMPTY_FN=c,r.urlRegex=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&amp;:/~+#]*[\w\-@?^=%&amp;/~+#])?/g,r.EMPTY_P='<p data-we-empty-p=""><br></p>',r.EMPTY_P_LAST_REGEX=/<p data-we-empty-p=""><br\/?><\/p>$/gim,r.EMPTY_P_REGEX=/<p data-we-empty-p="">/gim},function(i,r,o){(function(s){var d=function(u){return u&&u.Math==Math&&u};i.exports=d((typeof globalThis>"u"?"undefined":Ht(globalThis))=="object"&&globalThis)||d((typeof window>"u"?"undefined":Ht(window))=="object"&&window)||d((typeof self>"u"?"undefined":Ht(self))=="object"&&self)||d(Ht(s)=="object"&&s)||Function("return this")()}).call(this,o(145))},function(i,r){i.exports={}},function(i,r,o){var s=o(8),d=o(74),c=o(16),u=o(64),g=o(76),y=o(106),C=d("wks"),w=s.Symbol,A=y?w:w&&w.withoutSetter||u;i.exports=function(E){return c(C,E)||(g&&c(w,E)?C[E]=w[E]:C[E]=A("Symbol."+E)),C[E]}},function(i,r){i.exports=function(o){try{return!!o()}catch{return!0}}},function(i,r,o){var s=o(9),d=o(16),c=o(93),u=o(18).f;i.exports=function(g){var y=s.Symbol||(s.Symbol={});d(y,g)||u(y,g,{value:c.f(g)})}},function(i,r){i.exports=function(o){return Ht(o)==="object"?o!==null:typeof o=="function"}},function(i,r,o){var s=o(11);i.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(i,r,o){var s=o(9);i.exports=function(d){return s[d+"Prototype"]}},function(i,r){var o={}.hasOwnProperty;i.exports=function(s,d){return o.call(s,d)}},function(i,r,o){i.exports=o(192)},function(i,r,o){var s=o(14),d=o(100),c=o(25),u=o(60),g=Object.defineProperty;r.f=s?g:function(C,w,A){if(c(C),w=u(w,!0),c(A),d)try{return g(C,w,A)}catch{}if("get"in A||"set"in A)throw TypeError("Accessors not supported");return"value"in A&&(C[w]=A.value),C}},function(i,r,o){var s=o(14),d=o(18),c=o(48);i.exports=s?function(u,g,y){return d.f(u,g,c(1,y))}:function(u,g,y){return u[g]=y,u}},function(i,r,o){var s=function(){var S;return function(){return typeof S>"u"&&(S=Boolean(window&&document&&document.all&&!window.atob)),S}}(),d=function(){var S={};return function(O){if(typeof S[O]>"u"){var D=document.querySelector(O);if(window.HTMLIFrameElement&&D instanceof window.HTMLIFrameElement)try{D=D.contentDocument.head}catch{D=null}S[O]=D}return S[O]}}(),c=[];function u(b){for(var S=-1,x=0;x<c.length;x++)if(c[x].identifier===b){S=x;break}return S}function g(b,S){for(var x={},O=[],D=0;D<b.length;D++){var R=b[D],I=S.base?R[0]+S.base:R[0],z=x[I]||0,T="".concat(I," ").concat(z);x[I]=z+1;var B=u(T),L={css:R[1],media:R[2],sourceMap:R[3]};B!==-1?(c[B].references++,c[B].updater(L)):c.push({identifier:T,updater:m(L,S),references:1}),O.push(T)}return O}function y(b){var S=document.createElement("style"),x=b.attributes||{};if(typeof x.nonce>"u"){var O=o.nc;O&&(x.nonce=O)}if(Object.keys(x).forEach(function(R){S.setAttribute(R,x[R])}),typeof b.insert=="function")b.insert(S);else{var D=d(b.insert||"head");if(!D)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");D.appendChild(S)}return S}function C(b){if(b.parentNode===null)return!1;b.parentNode.removeChild(b)}var w=function(){var S=[];return function(O,D){return S[O]=D,S.filter(Boolean).join(`
`)}}();function A(b,S,x,O){var D=x?"":O.media?"@media ".concat(O.media," {").concat(O.css,"}"):O.css;if(b.styleSheet)b.styleSheet.cssText=w(S,D);else{var R=document.createTextNode(D),I=b.childNodes;I[S]&&b.removeChild(I[S]),I.length?b.insertBefore(R,I[S]):b.appendChild(R)}}function E(b,S,x){var O=x.css,D=x.media,R=x.sourceMap;if(D?b.setAttribute("media",D):b.removeAttribute("media"),R&&typeof btoa<"u"&&(O+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(R))))," */")),b.styleSheet)b.styleSheet.cssText=O;else{for(;b.firstChild;)b.removeChild(b.firstChild);b.appendChild(document.createTextNode(O))}}var _=null,v=0;function m(b,S){var x,O,D;if(S.singleton){var R=v++;x=_||(_=y(S)),O=A.bind(null,x,R,!1),D=A.bind(null,x,R,!0)}else x=y(S),O=E.bind(null,x,S),D=function(){C(x)};return O(b),function(z){if(z){if(z.css===b.css&&z.media===b.media&&z.sourceMap===b.sourceMap)return;O(b=z)}else D()}}i.exports=function(b,S){S=S||{},!S.singleton&&typeof S.singleton!="boolean"&&(S.singleton=s()),b=b||[];var x=g(b,S);return function(D){if(D=D||[],Object.prototype.toString.call(D)==="[object Array]"){for(var R=0;R<x.length;R++){var I=x[R],z=u(I);c[z].references--}for(var T=g(D,S),B=0;B<x.length;B++){var L=x[B],U=u(L);c[U].references===0&&(c[U].updater(),c.splice(U,1))}x=T}}}},function(i,r,o){i.exports=function(c){var u=[];return u.toString=function(){return this.map(function(y){var C=s(y,c);return y[2]?"@media ".concat(y[2]," {").concat(C,"}"):C}).join("")},u.i=function(g,y,C){typeof g=="string"&&(g=[[null,g,""]]);var w={};if(C)for(var A=0;A<this.length;A++){var E=this[A][0];E!=null&&(w[E]=!0)}for(var _=0;_<g.length;_++){var v=[].concat(g[_]);C&&w[v[0]]||(y&&(v[2]?v[2]="".concat(y," and ").concat(v[2]):v[2]=y),u.push(v))}},u};function s(c,u){var g=c[1]||"",y=c[3];if(!y)return g;if(u&&typeof btoa=="function"){var C=d(y),w=y.sources.map(function(A){return"/*# sourceURL=".concat(y.sourceRoot||"").concat(A," */")});return[g].concat(w).concat([C]).join(`
`)}return[g].join(`
`)}function d(c){var u=btoa(unescape(encodeURIComponent(JSON.stringify(c)))),g="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u);return"/*# ".concat(g," */")}},function(i,r,o){var s=o(14),d=o(11),c=o(16),u=Object.defineProperty,g={},y=function(w){throw w};i.exports=function(C,w){if(c(g,C))return g[C];w||(w={});var A=[][C],E=c(w,"ACCESSORS")?w.ACCESSORS:!1,_=c(w,0)?w[0]:y,v=c(w,1)?w[1]:void 0;return g[C]=!!A&&!d(function(){if(E&&!s)return!0;var m={length:-1};E?u(m,1,{enumerable:!0,get:y}):m[1]=1,A.call(m,_,v)})}},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(95)),g=function(y){c.__extends(C,y);function C(w,A){return y.call(this,w,A)||this}return C}(u.default);r.default=g},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4)),u=s(o(46));(0,d.default)(r,"__esModule",{value:!0});var g=o(2),y=g.__importDefault(o(3)),C=g.__importDefault(o(95)),w=g.__importDefault(o(134)),A=function(E){g.__extends(_,E);function _(v,m,b){var S=E.call(this,v,m)||this;b.title=m.i18next.t("menus.dropListMenu."+b.title);var x=m.config.lang==="zh-CN"?"":"w-e-drop-list-tl";if(x!==""&&b.type==="list"){var O;(0,c.default)(O=b.list).call(O,function(R){var I=R.$elem,z=y.default(I.children());if(z.length>0){var T=z==null?void 0:z.getNodeName();T&&T==="I"&&I.addClass(x)}})}var D=new w.default(S,b);return S.dropList=D,v.on("click",function(){var R;m.selection.getRange()!=null&&(v.css("z-index",m.zIndex.get("menu")),(0,c.default)(R=m.txt.eventHooks.dropListMenuHoverEvents).call(R,function(I){return I()}),D.show())}).on("mouseleave",function(){v.css("z-index","auto"),D.hideTimeoutId=(0,u.default)(function(){D.hide()})}),S}return _}(C.default);r.default=A},function(i,r,o){var s=o(13);i.exports=function(d){if(!s(d))throw TypeError(String(d)+" is not an object");return d}},function(i,r,o){i.exports=o(188)},function(i,r,o){i.exports=o(201)},function(i,r,o){i.exports=o(213)},function(i,r,o){i.exports=o(283)},function(i,r,o){var s=o(72),d=o(49);i.exports=function(c){return s(d(c))}},function(i,r,o){var s=o(49);i.exports=function(d){return Object(s(d))}},function(i,r,o){var s=o(40),d=o(72),c=o(31),u=o(35),g=o(88),y=[].push,C=function(A){var E=A==1,_=A==2,v=A==3,m=A==4,b=A==6,S=A==5||b;return function(x,O,D,R){for(var I=c(x),z=d(I),T=s(O,D,3),B=u(z.length),L=0,U=R||g,W=E?U(x,B):_?U(x,0):void 0,V,k;B>L;L++)if((S||L in z)&&(V=z[L],k=T(V,L,I),A)){if(E)W[L]=k;else if(k)switch(A){case 3:return!0;case 5:return V;case 6:return L;case 2:y.call(W,V)}else if(m)return!1}return b?-1:v||m?m:W}};i.exports={forEach:C(0),map:C(1),filter:C(2),some:C(3),every:C(4),find:C(5),findIndex:C(6)}},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4)),u=s(o(29)),g=s(o(132));(0,d.default)(r,"__esModule",{value:!0});var y=o(2),C=y.__importDefault(o(3)),w=o(7),A=function(){function E(_,v){this.menu=_,this.conf=v,this.$container=C.default('<div class="w-e-panel-container"></div>');var m=_.editor;m.txt.eventHooks.clickEvents.push(E.hideCurAllPanels),m.txt.eventHooks.toolbarClickEvents.push(E.hideCurAllPanels),m.txt.eventHooks.dropListMenuHoverEvents.push(E.hideCurAllPanels)}return E.prototype.create=function(){var _=this,v=this.menu;if(!E.createdMenus.has(v)){var m=this.conf,b=this.$container,S=m.width||300,x=v.editor.$toolbarElem.getBoundingClientRect(),O=v.$elem.getBoundingClientRect(),D=x.height+x.top-O.top,R=(x.width-S)/2+x.left-O.left,I=300;Math.abs(R)>I&&(O.left<document.documentElement.clientWidth/2?R=-O.width/2:R=-S+O.width/2),b.css("width",S+"px").css("margin-top",D+"px").css("margin-left",R+"px").css("z-index",v.editor.zIndex.get("panel"));var z=C.default('<i class="w-e-icon-close w-e-panel-close"></i>');b.append(z),z.on("click",function(){_.remove()});var T=C.default('<ul class="w-e-panel-tab-title"></ul>'),B=C.default('<div class="w-e-panel-tab-content"></div>');b.append(T).append(B);var L=m.height;L&&B.css("height",L+"px").css("overflow-y","auto");var U=m.tabs||[],W=[],V=[];(0,c.default)(U).call(U,function(M,j){if(!!M){var Z=M.title||"",J=M.tpl||"",F=C.default('<li class="w-e-item">'+Z+"</li>");T.append(F);var ie=C.default(J);B.append(ie),W.push(F),V.push(ie),j===0?(F.data("active",!0),F.addClass("w-e-active")):ie.hide(),F.on("click",function(){F.data("active")||((0,c.default)(W).call(W,function(pe){pe.data("active",!1),pe.removeClass("w-e-active")}),(0,c.default)(V).call(V,function(pe){pe.hide()}),F.data("active",!0),F.addClass("w-e-active"),ie.show())})}}),b.on("click",function(M){M.stopPropagation()}),v.$elem.append(b),m.setLinkValue&&m.setLinkValue(b,"text"),m.setLinkValue&&m.setLinkValue(b,"link"),(0,c.default)(U).call(U,function(M,j){if(!!M){var Z=M.events||[];(0,c.default)(Z).call(Z,function(J){var F,ie=J.selector,pe=J.type,se=J.fn||w.EMPTY_FN,ye=V[j],fe=(F=J.bindEnter)!==null&&F!==void 0?F:!1,ue=function($){return y.__awaiter(_,void 0,void 0,function(){var Y;return y.__generator(this,function(Q){switch(Q.label){case 0:return $.stopPropagation(),[4,se($)];case 1:return Y=Q.sent(),Y&&this.remove(),[2]}})})};(0,u.default)(ye).call(ye,ie).on(pe,ue),fe&&pe==="click"&&ye.on("keyup",function(he){he.keyCode==13&&ue(he)})})}});var k=(0,u.default)(b).call(b,"input[type=text],textarea");k.length&&k.get(0).focus(),E.hideCurAllPanels(),v.setPanel(this),E.createdMenus.add(v)}},E.prototype.remove=function(){var _=this.menu,v=this.$container;v&&v.remove(),E.createdMenus.delete(_)},E.hideCurAllPanels=function(){var _;E.createdMenus.size!==0&&(0,c.default)(_=E.createdMenus).call(_,function(v){var m=v.panel;m&&m.remove()})},E.createdMenus=new g.default,E}();r.default=A},function(i,r){var o={}.toString;i.exports=function(s){return o.call(s).slice(8,-1)}},function(i,r,o){var s=o(62),d=Math.min;i.exports=function(c){return c>0?d(s(c),9007199254740991):0}},function(i,r,o){var s=o(9),d=o(8),c=function(g){return typeof g=="function"?g:void 0};i.exports=function(u,g){return arguments.length<2?c(s[u])||c(d[u]):s[u]&&s[u][g]||d[u]&&d[u][g]}},function(i,r,o){var s=o(81),d=o(18).f,c=o(19),u=o(16),g=o(170),y=o(10),C=y("toStringTag");i.exports=function(w,A,E,_){if(w){var v=E?w:w.prototype;u(v,C)||d(v,C,{configurable:!0,value:A}),_&&!s&&c(v,"toString",g)}}},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(95)),g=function(y){c.__extends(C,y);function C(w,A){return y.call(this,w,A)||this}return C.prototype.setPanel=function(w){this.panel=w},C}(u.default);r.default=g},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4)),u=s(o(57));(0,d.default)(r,"__esModule",{value:!0});var g=o(2),y=g.__importDefault(o(3)),C=function(){function w(A,E,_){this.editor=A,this.$targetElem=E,this.conf=_,this._show=!1,this._isInsertTextContainer=!1;var v=y.default("<div></div>");v.addClass("w-e-tooltip"),this.$container=v}return w.prototype.getPositionData=function(){var A=this.$container,E=0,_=0,v=20,m=document.documentElement.scrollTop,b=this.$targetElem.getBoundingClientRect(),S=this.editor.$textElem.getBoundingClientRect(),x=this.$targetElem.getOffsetData(),O=y.default(x.parent),D=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=O.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var R=O.getBoundingClientRect().height,I=x.top,z=x.left,T=x.height,B=I-D;B>v+5?(E=B-v-15,A.addClass("w-e-tooltip-up")):B+T+v<R?(E=B+T+10,A.addClass("w-e-tooltip-down")):(E=(B>0?B:0)+v+10,A.addClass("w-e-tooltip-down")),z<0?_=0:_=z}else b.top<v||b.top-S.top<v?(E=b.bottom+m+5,A.addClass("w-e-tooltip-down")):(E=b.top+m-v-15,A.addClass("w-e-tooltip-up")),b.left<0?_=0:_=b.left;return{top:E,left:_}},w.prototype.appendMenus=function(){var A=this,E=this.conf,_=this.editor,v=this.$targetElem,m=this.$container;(0,c.default)(E).call(E,function(b,S){var x=b.$elem,O=y.default("<div></div>");O.addClass("w-e-tooltip-item-wrapper "),O.append(x),m.append(O),x.on("click",function(D){D.preventDefault();var R=b.onClick(_,v);R&&A.remove()})})},w.prototype.create=function(){var A,E,_=this.editor,v=this.$container;this.appendMenus();var m=this.getPositionData(),b=m.top,S=m.left;v.css("top",b+"px"),v.css("left",S+"px"),v.css("z-index",_.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(v):y.default("body").append(v),this._show=!0,_.beforeDestroy((0,u.default)(A=this.remove).call(A,this)),_.txt.eventHooks.onBlurEvents.push((0,u.default)(E=this.remove).call(E,this))},w.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,d.default)(w.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),w}();r.default=C},function(i,r,o){var s=o(41);i.exports=function(d,c,u){if(s(d),c===void 0)return d;switch(u){case 0:return function(){return d.call(c)};case 1:return function(g){return d.call(c,g)};case 2:return function(g,y){return d.call(c,g,y)};case 3:return function(g,y,C){return d.call(c,g,y,C)}}return function(){return d.apply(c,arguments)}}},function(i,r){i.exports=function(o){if(typeof o!="function")throw TypeError(String(o)+" is not a function");return o}},function(i,r,o){var s=o(165),d=o(8),c=o(13),u=o(19),g=o(16),y=o(63),C=o(51),w=d.WeakMap,A,E,_,v=function(I){return _(I)?E(I):A(I,{})},m=function(I){return function(z){var T;if(!c(z)||(T=E(z)).type!==I)throw TypeError("Incompatible receiver, "+I+" required");return T}};if(s){var b=new w,S=b.get,x=b.has,O=b.set;A=function(I,z){return O.call(b,I,z),z},E=function(I){return S.call(b,I)||{}},_=function(I){return x.call(b,I)}}else{var D=y("state");C[D]=!0,A=function(I,z){return u(I,D,z),z},E=function(I){return g(I,D)?I[D]:{}},_=function(I){return g(I,D)}}i.exports={set:A,get:E,has:_,enforce:v,getterFor:m}},function(i,r){i.exports=!0},function(i,r){i.exports={}},function(i,r,o){i.exports=o(261)},function(i,r,o){i.exports=o(265)},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0}),r.createElementFragment=r.createDocumentFragment=r.createElement=r.insertBefore=r.getEndPoint=r.getStartPoint=r.updateRange=r.filterSelectionNodes=void 0;var u=o(2),g=o(137),y=u.__importDefault(o(3));function C(S){var x=[];return(0,c.default)(S).call(S,function(O){var D=O.getNodeName();if(D!==g.ListType.OrderedList&&D!==g.ListType.UnorderedList)x.push(O);else if(O.prior)x.push(O.prior);else{var R=O.children();R==null||(0,c.default)(R).call(R,function(I){x.push(y.default(I))})}}),x}r.filterSelectionNodes=C;function w(S,x,O){var D=S.selection,R=document.createRange();x.length>1?(R.setStart(x.elems[0],0),R.setEnd(x.elems[x.length-1],x.elems[x.length-1].childNodes.length)):R.selectNodeContents(x.elems[0]),O&&R.collapse(!1),D.saveRange(R),D.restoreSelection()}r.updateRange=w;function A(S){var x;return S.prior?S.prior:y.default((x=S.children())===null||x===void 0?void 0:x.elems[0])}r.getStartPoint=A;function E(S){var x;return S.prior?S.prior:y.default((x=S.children())===null||x===void 0?void 0:x.last().elems[0])}r.getEndPoint=E;function _(S,x,O){O===void 0&&(O=null),S.parent().elems[0].insertBefore(x,O)}r.insertBefore=_;function v(S){return document.createElement(S)}r.createElement=v;function m(){return document.createDocumentFragment()}r.createDocumentFragment=m;function b(S,x,O){return O===void 0&&(O="li"),(0,c.default)(S).call(S,function(D){var R=v(O);R.innerHTML=D.html(),x.appendChild(R),D.remove()}),x}r.createElementFragment=b},function(i,r){i.exports=function(o,s){return{enumerable:!(o&1),configurable:!(o&2),writable:!(o&4),value:s}}},function(i,r){i.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},function(i,r,o){var s=o(164).charAt,d=o(42),c=o(75),u="String Iterator",g=d.set,y=d.getterFor(u);c(String,"String",function(C){g(this,{type:u,string:String(C),index:0})},function(){var w=y(this),A=w.string,E=w.index,_;return E>=A.length?{value:void 0,done:!0}:(_=s(A,E),w.index+=_.length,{value:_,done:!1})})},function(i,r){i.exports={}},function(i,r,o){var s=o(107),d=o(80);i.exports=Object.keys||function(u){return s(u,d)}},function(i,r,o){var s=o(19);i.exports=function(d,c,u,g){g&&g.enumerable?d[c]=u:s(d,c,u)}},function(i,r,o){o(173);var s=o(174),d=o(8),c=o(65),u=o(19),g=o(44),y=o(10),C=y("toStringTag");for(var w in s){var A=d[w],E=A&&A.prototype;E&&c(E)!==C&&u(E,C,w),g[w]=g.Array}},function(i,r,o){var s=o(34);i.exports=Array.isArray||function(c){return s(c)=="Array"}},function(i,r,o){var s=o(11),d=o(10),c=o(86),u=d("species");i.exports=function(g){return c>=51||!s(function(){var y=[],C=y.constructor={};return C[u]=function(){return{foo:1}},y[g](Boolean).foo!==1})}},function(i,r,o){i.exports=o(222)},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.ListHandle=void 0;var c=o(2),u=c.__importDefault(o(373)),g=function(){function y(C){this.options=C,this.selectionRangeElem=new u.default}return y}();r.ListHandle=g},function(i,r,o){var s={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,c=d&&!s.call({1:2},1);r.f=c?function(g){var y=d(this,g);return!!y&&y.enumerable}:s},function(i,r,o){var s=o(13);i.exports=function(d,c){if(!s(d))return d;var u,g;if(c&&typeof(u=d.toString)=="function"&&!s(g=u.call(d))||typeof(u=d.valueOf)=="function"&&!s(g=u.call(d))||!c&&typeof(u=d.toString)=="function"&&!s(g=u.call(d)))return g;throw TypeError("Can't convert object to primitive value")}},function(i,r){},function(i,r){var o=Math.ceil,s=Math.floor;i.exports=function(d){return isNaN(d=+d)?0:(d>0?s:o)(d)}},function(i,r,o){var s=o(74),d=o(64),c=s("keys");i.exports=function(u){return c[u]||(c[u]=d(u))}},function(i,r){var o=0,s=Math.random();i.exports=function(d){return"Symbol("+String(d===void 0?"":d)+")_"+(++o+s).toString(36)}},function(i,r,o){var s=o(81),d=o(34),c=o(10),u=c("toStringTag"),g=d(function(){return arguments}())=="Arguments",y=function(w,A){try{return w[A]}catch{}};i.exports=s?d:function(C){var w,A,E;return C===void 0?"Undefined":C===null?"Null":typeof(A=y(w=Object(C),u))=="string"?A:g?d(w):(E=d(w))=="Object"&&typeof w.callee=="function"?"Arguments":E}},function(i,r,o){var s=o(25),d=o(112),c=o(35),u=o(40),g=o(113),y=o(114),C=function(E,_){this.stopped=E,this.result=_},w=i.exports=function(A,E,_,v,m){var b=u(E,_,v?2:1),S,x,O,D,R,I,z;if(m)S=A;else{if(x=g(A),typeof x!="function")throw TypeError("Target is not iterable");if(d(x)){for(O=0,D=c(A.length);D>O;O++)if(R=v?b(s(z=A[O])[0],z[1]):b(A[O]),R&&R instanceof C)return R;return new C(!1)}S=x.call(A)}for(I=S.next;!(z=I.call(S)).done;)if(R=y(S,b,z.value,v),Ht(R)=="object"&&R&&R instanceof C)return R;return new C(!1)};w.stop=function(A){return new C(!0,A)}},function(i,r,o){var s=o(11);i.exports=function(d,c){var u=[][d];return!!u&&s(function(){u.call(null,c||function(){throw 1},1)})}},function(i,r){i.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(i,r,o){var s=o(60),d=o(18),c=o(48);i.exports=function(u,g,y){var C=s(g);C in u?d.f(u,C,c(0,y)):u[C]=y}},function(i,r,o){i.exports=o(209)},function(i,r,o){var s=o(14),d=o(59),c=o(48),u=o(30),g=o(60),y=o(16),C=o(100),w=Object.getOwnPropertyDescriptor;r.f=s?w:function(E,_){if(E=u(E),_=g(_,!0),C)try{return w(E,_)}catch{}if(y(E,_))return c(!d.f.call(E,_),E[_])}},function(i,r,o){var s=o(11),d=o(34),c="".split;i.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(u){return d(u)=="String"?c.call(u,""):Object(u)}:Object},function(i,r,o){var s=o(8),d=o(13),c=s.document,u=d(c)&&d(c.createElement);i.exports=function(g){return u?c.createElement(g):{}}},function(i,r,o){var s=o(43),d=o(103);(i.exports=function(c,u){return d[c]||(d[c]=u!==void 0?u:{})})("versions",[]).push({version:"3.6.4",mode:s?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},function(i,r,o){var s=o(5),d=o(167),c=o(105),u=o(171),g=o(37),y=o(19),C=o(53),w=o(10),A=o(43),E=o(44),_=o(104),v=_.IteratorPrototype,m=_.BUGGY_SAFARI_ITERATORS,b=w("iterator"),S="keys",x="values",O="entries",D=function(){return this};i.exports=function(R,I,z,T,B,L,U){d(z,I,T);var W=function(ye){if(ye===B&&Z)return Z;if(!m&&ye in M)return M[ye];switch(ye){case S:return function(){return new z(this,ye)};case x:return function(){return new z(this,ye)};case O:return function(){return new z(this,ye)}}return function(){return new z(this)}},V=I+" Iterator",k=!1,M=R.prototype,j=M[b]||M["@@iterator"]||B&&M[B],Z=!m&&j||W(B),J=I=="Array"&&M.entries||j,F,ie,pe;if(J&&(F=c(J.call(new R)),v!==Object.prototype&&F.next&&(!A&&c(F)!==v&&(u?u(F,v):typeof F[b]!="function"&&y(F,b,D)),g(F,V,!0,!0),A&&(E[V]=D))),B==x&&j&&j.name!==x&&(k=!0,Z=function(){return j.call(this)}),(!A||U)&&M[b]!==Z&&y(M,b,Z),E[I]=Z,B)if(ie={values:W(x),keys:L?Z:W(S),entries:W(O)},U)for(pe in ie)(m||k||!(pe in M))&&C(M,pe,ie[pe]);else s({target:I,proto:!0,forced:m||k},ie);return ie}},function(i,r,o){var s=o(11);i.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})},function(i,r,o){var s=o(25),d=o(169),c=o(80),u=o(51),g=o(108),y=o(73),C=o(63),w=">",A="<",E="prototype",_="script",v=C("IE_PROTO"),m=function(){},b=function(I){return A+_+w+I+A+"/"+_+w},S=function(I){I.write(b("")),I.close();var z=I.parentWindow.Object;return I=null,z},x=function(){var I=y("iframe"),z="java"+_+":",T;return I.style.display="none",g.appendChild(I),I.src=String(z),T=I.contentWindow.document,T.open(),T.write(b("document.F=Object")),T.close(),T.F},O,D=function(){try{O=document.domain&&new ActiveXObject("htmlfile")}catch{}D=O?S(O):x();for(var I=c.length;I--;)delete D[E][c[I]];return D()};u[v]=!0,i.exports=Object.create||function(I,z){var T;return I!==null?(m[E]=s(I),T=new m,m[E]=null,T[v]=I):T=D(),z===void 0?T:d(T,z)}},function(i,r,o){var s=o(30),d=o(35),c=o(79),u=function(y){return function(C,w,A){var E=s(C),_=d(E.length),v=c(A,_),m;if(y&&w!=w){for(;_>v;)if(m=E[v++],m!=m)return!0}else for(;_>v;v++)if((y||v in E)&&E[v]===w)return y||v||0;return!y&&-1}};i.exports={includes:u(!0),indexOf:u(!1)}},function(i,r,o){var s=o(62),d=Math.max,c=Math.min;i.exports=function(u,g){var y=s(u);return y<0?d(y+g,0):c(y,g)}},function(i,r){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(i,r,o){var s=o(10),d=s("toStringTag"),c={};c[d]="z",i.exports=String(c)==="[object z]"},function(i,r){i.exports=function(){}},function(i,r){i.exports=function(o,s,d){if(!(o instanceof s))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return o}},function(i,r,o){var s=o(36);i.exports=s("navigator","userAgent")||""},function(i,r,o){var s=o(41),d=function(u){var g,y;this.promise=new u(function(C,w){if(g!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");g=C,y=w}),this.resolve=s(g),this.reject=s(y)};i.exports.f=function(c){return new d(c)}},function(i,r,o){var s=o(8),d=o(84),c=s.process,u=c&&c.versions,g=u&&u.v8,y,C;g?(y=g.split("."),C=y[0]+y[1]):d&&(y=d.match(/Edge\/(\d+)/),(!y||y[1]>=74)&&(y=d.match(/Chrome\/(\d+)/),y&&(C=y[1]))),i.exports=C&&+C},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=o(6),C=u.__importDefault(o(267)),w=u.__importDefault(o(280)),A=u.__importDefault(o(281)),E=u.__importDefault(o(282)),_=u.__importDefault(o(301)),v=u.__importStar(o(416)),m=u.__importDefault(o(417)),b=u.__importDefault(o(418)),S=u.__importDefault(o(419)),x=u.__importStar(o(420)),O=u.__importDefault(o(423)),D=u.__importDefault(o(424)),R=u.__importDefault(o(425)),I=u.__importDefault(o(427)),z=u.__importDefault(o(437)),T=u.__importDefault(o(440)),B=u.__importStar(o(441)),L=u.__importDefault(o(23)),U=u.__importDefault(o(134)),W=u.__importDefault(o(24)),V=u.__importDefault(o(33)),k=u.__importDefault(o(38)),M=u.__importDefault(o(39)),j=1,Z=function(){function J(F,ie){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+j++,this.toolbarSelector=F,this.textSelector=ie,v.selectorValidator(this),this.config=y.deepClone(C.default),this.$toolbarElem=g.default("<div></div>"),this.$textContainerElem=g.default("<div></div>"),this.$textElem=g.default("<div></div>"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new w.default(this),this.cmd=new A.default(this),this.txt=new E.default(this),this.menus=new _.default(this),this.zIndex=new D.default,this.change=new R.default(this),this.history=new I.default(this),this.onSelectionChange=new T.default(this);var pe=z.default(this),se=pe.disable,ye=pe.enable;this.disable=se,this.enable=ye,this.isEnable=!0}return J.prototype.initSelection=function(F){m.default(this,F)},J.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),S.default(this),v.default(this),this.txt.init(),this.menus.init(),x.default(this),this.initSelection(!0),b.default(this),this.change.observe(),this.history.observe(),B.default(this)},J.prototype.beforeDestroy=function(F){return this.beforeDestroyHooks.push(F),this},J.prototype.destroy=function(){var F,ie=this;(0,c.default)(F=this.beforeDestroyHooks).call(F,function(pe){return pe.call(ie)}),this.$toolbarElem.remove(),this.$textContainerElem.remove()},J.prototype.fullScreen=function(){x.setFullScreen(this)},J.prototype.unFullScreen=function(){x.setUnFullScreen(this)},J.prototype.scrollToHead=function(F){O.default(this,F)},J.registerMenu=function(F,ie){!ie||typeof ie!="function"||(J.globalCustomMenuConstructorList[F]=ie)},J.prototype.registerPlugin=function(F,ie){B.registerPlugin(F,ie,this.pluginsFunctionList)},J.registerPlugin=function(F,ie){B.registerPlugin(F,ie,J.globalPluginsFunctionList)},J.$=g.default,J.BtnMenu=L.default,J.DropList=U.default,J.DropListMenu=W.default,J.Panel=V.default,J.PanelMenu=k.default,J.Tooltip=M.default,J.globalCustomMenuConstructorList={},J.globalPluginsFunctionList={},J}();r.default=Z},function(i,r,o){var s=o(13),d=o(55),c=o(10),u=c("species");i.exports=function(g,y){var C;return d(g)&&(C=g.constructor,typeof C=="function"&&(C===Array||d(C.prototype))?C=void 0:s(C)&&(C=C[u],C===null&&(C=void 0))),new(C===void 0?Array:C)(y===0?0:y)}},function(i,r,o){i.exports=o(185)},function(i,r,o){var s=o(49),d=o(68),c="["+d+"]",u=RegExp("^"+c+c+"*"),g=RegExp(c+c+"*$"),y=function(w){return function(A){var E=String(s(A));return w&1&&(E=E.replace(u,"")),w&2&&(E=E.replace(g,"")),E}};i.exports={start:y(1),end:y(2),trim:y(3)}},function(i,r,o){i.exports=o(205)},function(i,r,o){var s=o(227),d=o(230);function c(u){return typeof d=="function"&&typeof s=="symbol"?i.exports=c=function(y){return typeof y}:i.exports=c=function(y){return y&&typeof d=="function"&&y.constructor===d&&y!==d.prototype?"symbol":typeof y},c(u)}i.exports=c},function(i,r,o){var s=o(10);r.f=s},function(i,r,o){i.exports=o(306)},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(33)),y=function(){function C(w,A){var E=this;this.$elem=w,this.editor=A,this._active=!1,w.on("click",function(_){var v;g.default.hideCurAllPanels(),(0,c.default)(v=A.txt.eventHooks.menuClickEvents).call(v,function(m){return m()}),_.stopPropagation(),A.selection.getRange()!=null&&E.clickHandler(_)})}return C.prototype.clickHandler=function(w){},C.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},C.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,d.default)(C.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),C}();r.default=y},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(28));(0,d.default)(r,"__esModule",{value:!0}),r.getParentNodeA=r.EXTRA_TAG=void 0,r.EXTRA_TAG=["B","FONT","I","STRIKE"];function u(y){for(var C=y.elems[0];C&&(0,c.default)(w=r.EXTRA_TAG).call(w,C.nodeName);){var w;if(C=C.parentElement,C.nodeName==="A")return C}}r.getParentNodeA=u;function g(y){var C,w=y.selection.getSelectionContainerElem();if(!(!((C=w==null?void 0:w.elems)===null||C===void 0)&&C.length))return!1;if(w.getNodeName()==="A")return!0;var A=u(w);return!!(A&&A.nodeName==="A")}r.default=g},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(57)),u=s(o(4)),g=s(o(27));(0,d.default)(r,"__esModule",{value:!0});var y=o(2),C=o(6),w=y.__importDefault(o(135)),A=y.__importDefault(o(136)),E=function(){function _(v){this.editor=v}return _.prototype.insertImg=function(v,m,b){var S=this.editor,x=S.config,O="validate.",D=function(L,U){return U===void 0&&(U=O),S.i18next.t(U+L)},R=v.replace(/</g,"&lt;").replace(/>/g,"&gt;");R=R.replace("'",'"');var I="";b&&(I=b.replace("'",'"'),I="data-href='"+encodeURIComponent(I)+"' ");var z="";m&&(z=m.replace(/</g,"&lt;").replace(/>/g,"&gt;"),z=z.replace("'",'"'),z="alt='"+z+"' "),S.cmd.do("insertHTML","<img src='"+R+"' "+z+I+'style="max-width:100%;" contenteditable="false"/>'),x.linkImgCallback(v,m,b);var T=document.createElement("img");T.onload=function(){T=null},T.onerror=function(){x.customAlert(D("\u63D2\u5165\u56FE\u7247\u9519\u8BEF"),"error","wangEditor: "+D("\u63D2\u5165\u56FE\u7247\u9519\u8BEF")+"\uFF0C"+D("\u56FE\u7247\u94FE\u63A5")+' "'+v+'"\uFF0C'+D("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")),T=null},T.onabort=function(){return T=null},T.src=v},_.prototype.uploadImg=function(v){var m=this;if(!!v.length){var b=this.editor,S=b.config,x="validate.",O=function(ue){return b.i18next.t(x+ue)},D=S.uploadImgServer,R=S.uploadImgShowBase64,I=S.uploadImgMaxSize,z=I/1024/1024,T=S.uploadImgMaxLength,B=S.uploadFileName,L=S.uploadImgParams,U=S.uploadImgParamsWithUrl,W=S.uploadImgHeaders,V=S.uploadImgHooks,k=S.uploadImgTimeout,M=S.withCredentials,j=S.customUploadImg;if(!(!j&&!D&&!R)){var Z=[],J=[];if(C.arrForEach(v,function(fe){if(!!fe){var ue=fe.name||fe.type.replace("/","."),he=fe.size;if(!(!ue||!he)){var $=b.config.uploadImgAccept.join("|"),Y=".("+$+")$",Q=new RegExp(Y,"i");if(Q.test(ue)===!1){J.push("\u3010"+ue+"\u3011"+O("\u4E0D\u662F\u56FE\u7247"));return}if(I<he){J.push("\u3010"+ue+"\u3011"+O("\u5927\u4E8E")+" "+z+"M");return}Z.push(fe)}}}),J.length){S.customAlert(O("\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7")+`:
`+J.join(`
`),"warning");return}if(Z.length===0){S.customAlert(O("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"),"warning");return}if(Z.length>T){S.customAlert(O("\u4E00\u6B21\u6700\u591A\u4E0A\u4F20")+T+O("\u5F20\u56FE\u7247"),"warning");return}if(j&&typeof j=="function"){var F;j(Z,(0,c.default)(F=this.insertImg).call(F,this));return}var ie=new FormData;if((0,u.default)(Z).call(Z,function(fe,ue){var he=B||fe.name;Z.length>1&&(he=he+(ue+1)),ie.append(he,fe)}),D){var pe=D.split("#");D=pe[0];var se=pe[1]||"";(0,u.default)(C).call(C,L,function(fe,ue){U&&((0,g.default)(D).call(D,"?")>0?D+="&":D+="?",D=D+fe+"="+ue),ie.append(fe,ue)}),se&&(D+="#"+se);var ye=w.default(D,{timeout:k,formData:ie,headers:W,withCredentials:!!M,beforeSend:function(ue){if(V.before)return V.before(ue,b,Z)},onTimeout:function(ue){S.customAlert(O("\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6"),"error"),V.timeout&&V.timeout(ue,b)},onProgress:function(ue,he){var $=new A.default(b);he.lengthComputable&&(ue=he.loaded/he.total,$.show(ue))},onError:function(ue){S.customAlert(O("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF"),"error",O("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF")+"\uFF0C"+O("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+ue.status),V.error&&V.error(ue,b)},onFail:function(ue,he){S.customAlert(O("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",O("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+("\uFF0C"+O("\u8FD4\u56DE\u7ED3\u679C")+": ")+he),V.fail&&V.fail(ue,b,he)},onSuccess:function(ue,he){if(V.customInsert){var $;V.customInsert((0,c.default)($=m.insertImg).call($,m),he,b);return}if(he.errno!="0"){S.customAlert(O("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",O("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+O("\u8FD4\u56DE\u7ED3\u679C")+" errno="+he.errno),V.fail&&V.fail(ue,b,he);return}var Y=he.data;(0,u.default)(Y).call(Y,function(Q){typeof Q=="string"?m.insertImg(Q):m.insertImg(Q.url,Q.alt,Q.href)}),V.success&&V.success(ue,b,he)}});typeof ye=="string"&&S.customAlert(ye,"error");return}R&&C.arrForEach(v,function(fe){var ue=m,he=new FileReader;he.readAsDataURL(fe),he.onload=function(){if(!!this.result){var $=this.result.toString();ue.insertImg($,$)}}})}}},_}();r.default=E},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(410)),u=s(o(4)),g=s(o(45));(0,d.default)(r,"__esModule",{value:!0}),r.dealTextNode=r.isAllTodo=r.isTodo=r.getCursorNextNode=void 0;function y(_){return _.length?_.attr("class")==="w-e-todo":!1}r.isTodo=y;function C(_){var v=_.selection.getSelectionRangeTopNodes();if(v.length!==0)return(0,c.default)(v).call(v,function(m){return y(m)})}r.isAllTodo=C;function w(_,v,m){var b;if(!!_.hasChildNodes()){var S=_.cloneNode(),x=!1;v.nodeValue===""&&(x=!0);var O=[];return(0,u.default)(b=_.childNodes).call(b,function(D){if(!A(D,v)&&x&&(S.appendChild(D.cloneNode(!0)),D.nodeName!=="BR"&&O.push(D)),A(D,v)){if(D.nodeType===1){var R=w(D,v,m);R&&R.textContent!==""&&(S==null||S.appendChild(R))}if(D.nodeType===3&&v.isEqualNode(D)){var I=E(D,m);S.textContent=I}x=!0}}),(0,u.default)(O).call(O,function(D){var R=D;R.remove()}),S}}r.getCursorNextNode=w;function A(_,v){return _.nodeType===3?_.nodeValue===v.nodeValue:_.contains(v)}function E(_,v,m){m===void 0&&(m=!0);var b=_.nodeValue,S=b==null?void 0:(0,g.default)(b).call(b,0,v);if(b=b==null?void 0:(0,g.default)(b).call(b,v),!m){var x=b;b=S,S=x}return _.nodeValue=S,b}r.dealTextNode=E},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(430),u=function(){function g(y){this.maxSize=y,this.isRe=!1,this.data=new c.CeilStack(y),this.revokeData=new c.CeilStack(y)}return(0,d.default)(g.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),g.prototype.resetMaxSize=function(y){this.data.resetMax(y),this.revokeData.resetMax(y)},g.prototype.save=function(y){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(y),this},g.prototype.revoke=function(y){!this.isRe&&(this.isRe=!0);var C=this.data.outstack();return C?(this.revokeData.instack(C),y(C),!0):!1},g.prototype.restore=function(y){!this.isRe&&(this.isRe=!0);var C=this.revokeData.outstack();return C?(this.data.instack(C),y(C),!0):!1},g}();r.default=u},function(i,r,o){var s=o(14),d=o(11),c=o(73);i.exports=!s&&!d(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},function(i,r,o){var s=o(11),d=/#|\.prototype\./,c=function(A,E){var _=g[u(A)];return _==C?!0:_==y?!1:typeof E=="function"?s(E):!!E},u=c.normalize=function(w){return String(w).replace(d,".").toLowerCase()},g=c.data={},y=c.NATIVE="N",C=c.POLYFILL="P";i.exports=c},function(i,r,o){var s=o(103),d=Function.toString;typeof s.inspectSource!="function"&&(s.inspectSource=function(c){return d.call(c)}),i.exports=s.inspectSource},function(i,r,o){var s=o(8),d=o(166),c="__core-js_shared__",u=s[c]||d(c,{});i.exports=u},function(i,r,o){var s=o(105),d=o(19),c=o(16),u=o(10),g=o(43),y=u("iterator"),C=!1,w=function(){return this},A,E,_;[].keys&&(_=[].keys(),"next"in _?(E=s(s(_)),E!==Object.prototype&&(A=E)):C=!0),A==null&&(A={}),!g&&!c(A,y)&&d(A,y,w),i.exports={IteratorPrototype:A,BUGGY_SAFARI_ITERATORS:C}},function(i,r,o){var s=o(16),d=o(31),c=o(63),u=o(168),g=c("IE_PROTO"),y=Object.prototype;i.exports=u?Object.getPrototypeOf:function(C){return C=d(C),s(C,g)?C[g]:typeof C.constructor=="function"&&C instanceof C.constructor?C.constructor.prototype:C instanceof Object?y:null}},function(i,r,o){var s=o(76);i.exports=s&&!Symbol.sham&&Ht(Symbol.iterator)=="symbol"},function(i,r,o){var s=o(16),d=o(30),c=o(78).indexOf,u=o(51);i.exports=function(g,y){var C=d(g),w=0,A=[],E;for(E in C)!s(u,E)&&s(C,E)&&A.push(E);for(;y.length>w;)s(C,E=y[w++])&&(~c(A,E)||A.push(E));return A}},function(i,r,o){var s=o(36);i.exports=s("document","documentElement")},function(i,r,o){var s=o(8);i.exports=s.Promise},function(i,r,o){var s=o(53);i.exports=function(d,c,u){for(var g in c)u&&u.unsafe&&d[g]?d[g]=c[g]:s(d,g,c[g],u);return d}},function(i,r,o){var s=o(36),d=o(18),c=o(10),u=o(14),g=c("species");i.exports=function(y){var C=s(y),w=d.f;u&&C&&!C[g]&&w(C,g,{configurable:!0,get:function(){return this}})}},function(i,r,o){var s=o(10),d=o(44),c=s("iterator"),u=Array.prototype;i.exports=function(g){return g!==void 0&&(d.Array===g||u[c]===g)}},function(i,r,o){var s=o(65),d=o(44),c=o(10),u=c("iterator");i.exports=function(g){if(g!=null)return g[u]||g["@@iterator"]||d[s(g)]}},function(i,r,o){var s=o(25);i.exports=function(d,c,u,g){try{return g?c(s(u)[0],u[1]):c(u)}catch(C){var y=d.return;throw y!==void 0&&s(y.call(d)),C}}},function(i,r,o){var s=o(10),d=s("iterator"),c=!1;try{var u=0,g={next:function(){return{done:!!u++}},return:function(){c=!0}};g[d]=function(){return this},Array.from(g,function(){throw 2})}catch{}i.exports=function(y,C){if(!C&&!c)return!1;var w=!1;try{var A={};A[d]=function(){return{next:function(){return{done:w=!0}}}},y(A)}catch{}return w}},function(i,r,o){var s=o(25),d=o(41),c=o(10),u=c("species");i.exports=function(g,y){var C=s(g).constructor,w;return C===void 0||(w=s(C)[u])==null?y:d(w)}},function(i,r,o){var s=o(8),d=o(11),c=o(34),u=o(40),g=o(108),y=o(73),C=o(118),w=s.location,A=s.setImmediate,E=s.clearImmediate,_=s.process,v=s.MessageChannel,m=s.Dispatch,b=0,S={},x="onreadystatechange",O,D,R,I=function(U){if(S.hasOwnProperty(U)){var W=S[U];delete S[U],W()}},z=function(U){return function(){I(U)}},T=function(U){I(U.data)},B=function(U){s.postMessage(U+"",w.protocol+"//"+w.host)};(!A||!E)&&(A=function(U){for(var W=[],V=1;arguments.length>V;)W.push(arguments[V++]);return S[++b]=function(){(typeof U=="function"?U:Function(U)).apply(void 0,W)},O(b),b},E=function(U){delete S[U]},c(_)=="process"?O=function(U){_.nextTick(z(U))}:m&&m.now?O=function(U){m.now(z(U))}:v&&!C?(D=new v,R=D.port2,D.port1.onmessage=T,O=u(R.postMessage,R,1)):s.addEventListener&&typeof postMessage=="function"&&!s.importScripts&&!d(B)&&w.protocol!=="file:"?(O=B,s.addEventListener("message",T,!1)):x in y("script")?O=function(U){g.appendChild(y("script"))[x]=function(){g.removeChild(this),I(U)}}:O=function(U){setTimeout(z(U),0)}),i.exports={set:A,clear:E}},function(i,r,o){var s=o(84);i.exports=/(iphone|ipod|ipad).*applewebkit/i.test(s)},function(i,r,o){var s=o(25),d=o(13),c=o(85);i.exports=function(u,g){if(s(u),d(g)&&g.constructor===u)return g;var y=c.f(u),C=y.resolve;return C(g),y.promise}},function(i,r){i.exports=function(o){try{return{error:!1,value:o()}}catch(s){return{error:!0,value:s}}}},function(i,r,o){i.exports=o(197)},function(i,r,o){var s=o(5),d=o(8),c=o(123),u=o(11),g=o(19),y=o(66),C=o(83),w=o(13),A=o(37),E=o(18).f,_=o(32).forEach,v=o(14),m=o(42),b=m.set,S=m.getterFor;i.exports=function(x,O,D){var R=x.indexOf("Map")!==-1,I=x.indexOf("Weak")!==-1,z=R?"set":"add",T=d[x],B=T&&T.prototype,L={},U;if(!v||typeof T!="function"||!(I||B.forEach&&!u(function(){new T().entries().next()})))U=D.getConstructor(O,x,R,z),c.REQUIRED=!0;else{U=O(function(V,k){b(C(V,U,x),{type:x,collection:new T}),k!=null&&y(k,V[z],V,R)});var W=S(x);_(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(V){var k=V=="add"||V=="set";V in B&&!(I&&V=="clear")&&g(U.prototype,V,function(M,j){var Z=W(this).collection;if(!k&&I&&!w(M))return V=="get"?void 0:!1;var J=Z[V](M===0?0:M,j);return k?this:J})}),I||E(U.prototype,"size",{configurable:!0,get:function(){return W(this).collection.size}})}return A(U,x,!1,!0),L[x]=U,s({global:!0,forced:!0},L),I||D.setStrong(U,x,R),U}},function(i,r,o){var s=o(51),d=o(13),c=o(16),u=o(18).f,g=o(64),y=o(200),C=g("meta"),w=0,A=Object.isExtensible||function(){return!0},E=function(x){u(x,C,{value:{objectID:"O"+ ++w,weakData:{}}})},_=function(x,O){if(!d(x))return Ht(x)=="symbol"?x:(typeof x=="string"?"S":"P")+x;if(!c(x,C)){if(!A(x))return"F";if(!O)return"E";E(x)}return x[C].objectID},v=function(x,O){if(!c(x,C)){if(!A(x))return!0;if(!O)return!1;E(x)}return x[C].weakData},m=function(x){return y&&b.REQUIRED&&A(x)&&!c(x,C)&&E(x),x},b=i.exports={REQUIRED:!1,fastKey:_,getWeakData:v,onFreeze:m};s[C]=!0},function(i,r,o){var s=o(18).f,d=o(77),c=o(110),u=o(40),g=o(83),y=o(66),C=o(75),w=o(111),A=o(14),E=o(123).fastKey,_=o(42),v=_.set,m=_.getterFor;i.exports={getConstructor:function(S,x,O,D){var R=S(function(B,L){g(B,R,x),v(B,{type:x,index:d(null),first:void 0,last:void 0,size:0}),A||(B.size=0),L!=null&&y(L,B[D],B,O)}),I=m(x),z=function(L,U,W){var V=I(L),k=T(L,U),M,j;return k?k.value=W:(V.last=k={index:j=E(U,!0),key:U,value:W,previous:M=V.last,next:void 0,removed:!1},V.first||(V.first=k),M&&(M.next=k),A?V.size++:L.size++,j!=="F"&&(V.index[j]=k)),L},T=function(L,U){var W=I(L),V=E(U),k;if(V!=="F")return W.index[V];for(k=W.first;k;k=k.next)if(k.key==U)return k};return c(R.prototype,{clear:function(){for(var L=this,U=I(L),W=U.index,V=U.first;V;)V.removed=!0,V.previous&&(V.previous=V.previous.next=void 0),delete W[V.index],V=V.next;U.first=U.last=void 0,A?U.size=0:L.size=0},delete:function(L){var U=this,W=I(U),V=T(U,L);if(V){var k=V.next,M=V.previous;delete W.index[V.index],V.removed=!0,M&&(M.next=k),k&&(k.previous=M),W.first==V&&(W.first=k),W.last==V&&(W.last=M),A?W.size--:U.size--}return!!V},forEach:function(L){for(var U=I(this),W=u(L,arguments.length>1?arguments[1]:void 0,3),V;V=V?V.next:U.first;)for(W(V.value,V.key,this);V&&V.removed;)V=V.previous},has:function(L){return!!T(this,L)}}),c(R.prototype,O?{get:function(L){var U=T(this,L);return U&&U.value},set:function(L,U){return z(this,L===0?0:L,U)}}:{add:function(L){return z(this,L=L===0?0:L,L)}}),A&&s(R.prototype,"size",{get:function(){return I(this).size}}),R},setStrong:function(S,x,O){var D=x+" Iterator",R=m(x),I=m(D);C(S,x,function(z,T){v(this,{type:D,target:z,state:R(z),kind:T,last:void 0})},function(){for(var z=I(this),T=z.kind,B=z.last;B&&B.removed;)B=B.previous;return!z.target||!(z.last=B=B?B.next:z.state.first)?(z.target=void 0,{value:void 0,done:!0}):T=="keys"?{value:B.key,done:!1}:T=="values"?{value:B.value,done:!1}:{value:[B.key,B.value],done:!1}},O?"entries":"values",!O,!0),w(x)}}},function(i,r,o){var s=o(12);s("iterator")},function(i,r,o){var s=o(107),d=o(80),c=d.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(g){return s(g,c)}},function(i,r){r.f=Object.getOwnPropertySymbols},function(i,r,o){i.exports=o(268)},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.default={zIndex:1e4}},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.default={focus:!0,height:300,placeholder:"\u8BF7\u8F93\u5165\u6B63\u6587",zIndexFullScreen:10002,showFullScreen:!0}},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0}),r.getPasteImgs=r.getPasteHtml=r.getPasteText=void 0;var u=o(2),g=o(6),y=u.__importDefault(o(292));function C(E){var _=E.clipboardData,v="";return _==null?v=window.clipboardData&&window.clipboardData.getData("text"):v=_.getData("text/plain"),g.replaceHtmlSymbol(v)}r.getPasteText=C;function w(E,_,v){_===void 0&&(_=!0),v===void 0&&(v=!1);var m=E.clipboardData,b="";if(m&&(b=m.getData("text/html")),!b){var S=C(E);if(!S)return"";b="<p>"+S+"</p>"}return b=b.replace(/<(\d)/gm,function(x,O){return"&lt;"+O}),b=b.replace(/<(\/?meta.*?)>/gim,""),b=y.default(b,_,v),b}r.getPasteHtml=w;function A(E){var _,v=[],m=C(E);if(m)return v;var b=(_=E.clipboardData)===null||_===void 0?void 0:_.items;return b&&(0,c.default)(g).call(g,b,function(S,x){var O=x.type;/image/i.test(O)&&v.push(x.getAsFile())}),v}r.getPasteImgs=A},function(i,r,o){i.exports=o(294)},function(i,r,o){i.exports=o(310)},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4)),u=s(o(46));(0,d.default)(r,"__esModule",{value:!0});var g=o(2),y=g.__importDefault(o(3)),C=o(7),w=function(){function A(E,_){var v=this;this.hideTimeoutId=0,this.menu=E,this.conf=_;var m=y.default('<div class="w-e-droplist"></div>'),b=y.default("<p>"+_.title+"</p>");b.addClass("w-e-dp-title"),m.append(b);var S=_.list||[],x=_.type||"list",O=_.clickHandler||C.EMPTY_FN,D=y.default('<ul class="'+(x==="list"?"w-e-list":"w-e-block")+'"></ul>');(0,c.default)(S).call(S,function(R){var I=R.$elem,z=R.value,T=y.default('<li class="w-e-item"></li>');I&&(T.append(I),D.append(T),T.on("click",function(B){O(z),B.stopPropagation(),v.hideTimeoutId=(0,u.default)(function(){v.hide()})}))}),m.append(D),m.on("mouseleave",function(){v.hideTimeoutId=(0,u.default)(function(){v.hide()})}),this.$container=m,this.rendered=!1,this._show=!1}return A.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var E=this.menu,_=E.$elem,v=this.$container;if(!this._show){if(this.rendered)v.show();else{var m=_.getBoundingClientRect().height||0,b=this.conf.width||100;v.css("margin-top",m+"px").css("width",b+"px"),_.append(v),this.rendered=!0}this._show=!0}},A.prototype.hide=function(){var E=this.$container;!this._show||(E.hide(),this._show=!1)},(0,d.default)(A.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),A}();r.default=w},function(i,r,o){var s=o(0),d=s(o(92)),c=s(o(1)),u=s(o(4));(0,c.default)(r,"__esModule",{value:!0});var g=o(6);function y(C,w){var A=new XMLHttpRequest;if(A.open("POST",C),A.timeout=w.timeout||10*1e3,A.ontimeout=function(){console.error("wangEditor - \u8BF7\u6C42\u8D85\u65F6"),w.onTimeout&&w.onTimeout(A)},A.upload&&(A.upload.onprogress=function(_){var v=_.loaded/_.total;w.onProgress&&w.onProgress(v,_)}),w.headers&&(0,u.default)(g).call(g,w.headers,function(_,v){A.setRequestHeader(_,v)}),A.withCredentials=!!w.withCredentials,w.beforeSend){var E=w.beforeSend(A);if(E&&(0,d.default)(E)==="object"&&E.prevent)return E.msg}return A.onreadystatechange=function(){if(A.readyState===4){var _=A.status;if(!(_<200)&&!(_>=300&&_<400)){if(_>=400){console.error("wangEditor - XHR \u62A5\u9519\uFF0C\u72B6\u6001\u7801 "+_),w.onError&&w.onError(A);return}var v=A.responseText,m;if((0,d.default)(v)!=="object")try{m=JSON.parse(v)}catch{console.error("wangEditor - \u8FD4\u56DE\u7ED3\u679C\u4E0D\u662F JSON \u683C\u5F0F",v),w.onFail&&w.onFail(A,v);return}else m=v;w.onSuccess(A,m)}}},A.send(w.formData||null),A}r.default=y},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(342)),u=s(o(46));(0,d.default)(r,"__esModule",{value:!0});var g=o(2),y=g.__importDefault(o(3)),C=function(){function w(A){this.editor=A,this.$textContainer=A.$textContainerElem,this.$bar=y.default('<div class="w-e-progress"></div>'),this.isShow=!1,this.time=0,this.timeoutId=0}return w.prototype.show=function(A){var E=this;if(!this.isShow){this.isShow=!0;var _=this.$bar,v=this.$textContainer;v.append(_),(0,c.default)()-this.time>100&&A<=1&&(_.css("width",A*100+"%"),this.time=(0,c.default)());var m=this.timeoutId;m&&clearTimeout(m),this.timeoutId=(0,u.default)(function(){E.hide()},500)}},w.prototype.hide=function(){var A=this.$bar;A.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},w}();r.default=C},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.ListType=void 0;var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(24)),y=o(47),C=c.__importStar(o(371)),w;(function(E){E.OrderedList="OL",E.UnorderedList="UL"})(w=r.ListType||(r.ListType={}));var A=function(E){c.__extends(_,E);function _(v){var m=this,b=u.default(`<div class="w-e-menu" data-title="\u5E8F\u5217">
<i class="w-e-icon-list2"></i>
</div>`),S={width:130,title:"\u5E8F\u5217",type:"list",list:[{$elem:u.default(`
<p>
<i class="w-e-icon-list2 w-e-drop-list-item"></i>
`+v.i18next.t("menus.dropListMenu.list.\u65E0\u5E8F\u5217\u8868")+`
<p>`),value:w.UnorderedList},{$elem:u.default(`<p>
<i class="w-e-icon-list-numbered w-e-drop-list-item"></i>
`+v.i18next.t("menus.dropListMenu.list.\u6709\u5E8F\u5217\u8868")+`
<p>`),value:w.OrderedList}],clickHandler:function(O){m.command(O)}};return m=E.call(this,b,v,S)||this,m}return _.prototype.command=function(v){var m=this.editor,b=m.selection.getSelectionContainerElem();b!==void 0&&(this.handleSelectionRangeNodes(v),this.tryChangeActive())},_.prototype.validator=function(v,m,b){return!(!v.length||!m.length||b.equal(v)||b.equal(m))},_.prototype.handleSelectionRangeNodes=function(v){var m=this.editor,b=m.selection,S=v.toLowerCase(),x=b.getSelectionContainerElem(),O=b.getSelectionStartElem().getNodeTop(m),D=b.getSelectionEndElem().getNodeTop(m);if(!!this.validator(O,D,m.$textElem)){var R=b.getRange(),I=R==null?void 0:R.collapsed;m.$textElem.equal(x)||(x=x.getNodeTop(m));var z={editor:m,listType:v,listTarget:S,$selectionElem:x,$startElem:O,$endElem:D},T;this.isOrderElem(x)?T=C.ClassType.Wrap:this.isOrderElem(O)&&this.isOrderElem(D)?T=C.ClassType.Join:this.isOrderElem(O)?T=C.ClassType.StartJoin:this.isOrderElem(D)?T=C.ClassType.EndJoin:T=C.ClassType.Other;var B=new C.default(C.createListHandle(T,z,R));y.updateRange(m,B.getSelectionRangeElem(),!!I)}},_.prototype.isOrderElem=function(v){var m=v.getNodeName();return m===w.OrderedList||m===w.UnorderedList},_.prototype.tryChangeActive=function(){},_}(g.default);r.default=A},function(i,r,o){i.exports=o(395)},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});function c(u){var g=u.selection.getSelectionContainerElem();return g!=null&&g.length?!!(g.getNodeName()=="CODE"||g.getNodeName()=="PRE"||g.parent().getNodeName()=="CODE"||g.parent().getNodeName()=="PRE"||/hljs/.test(g.parent().attr("class"))):!1}r.default=c},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(29));(0,d.default)(r,"__esModule",{value:!0}),r.todo=void 0;var u=o(2),g=u.__importDefault(o(3)),y=function(){function w(A){var E;this.template='<ul class="w-e-todo"><li><span contenteditable="false"><input type="checkbox"></span></li></ul>',this.checked=!1,this.$todo=g.default(this.template),this.$child=(E=A==null?void 0:A.childNodes())===null||E===void 0?void 0:E.clone(!0)}return w.prototype.init=function(){var A=this.$child,E=this.getInputContainer();A&&A.insertAfter(E)},w.prototype.getInput=function(){var A=this.$todo,E=(0,c.default)(A).call(A,"input");return E},w.prototype.getInputContainer=function(){var A=this.getInput().parent();return A},w.prototype.getTodo=function(){return this.$todo},w}();r.todo=y;function C(w){var A=new y(w);return A.init(),A}r.default=C},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2);o(146),o(148),o(152),o(154),o(156),o(158),o(160);var u=c.__importDefault(o(87));c.__exportStar(o(442),r);try{}catch{throw new Error("\u8BF7\u5728\u6D4F\u89C8\u5668\u73AF\u5883\u4E0B\u8FD0\u884C")}r.default=u.default},function(i,r,o){var s=o(143);i.exports=s},function(i,r,o){o(144);var s=o(9),d=s.Object,c=i.exports=function(g,y,C){return d.defineProperty(g,y,C)};d.defineProperty.sham&&(c.sham=!0)},function(i,r,o){var s=o(5),d=o(14),c=o(18);s({target:"Object",stat:!0,forced:!d,sham:!d},{defineProperty:c.f})},function(i,r){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{(typeof window>"u"?"undefined":Ht(window))==="object"&&(o=window)}i.exports=o},function(i,r,o){var s=o(20),d=o(147);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21);r=s(!1),r.push([i.i,`.w-e-toolbar,
.w-e-text-container,
.w-e-menu-panel {
padding: 0;
margin: 0;
box-sizing: border-box;
background-color: #fff;
/*\u8868\u60C5\u83DC\u5355\u6837\u5F0F*/
/*\u5206\u5272\u7EBF\u6837\u5F0F*/
}
.w-e-toolbar h1,
.w-e-text-container h1,
.w-e-menu-panel h1 {
font-size: 32px !important;
}
.w-e-toolbar h2,
.w-e-text-container h2,
.w-e-menu-panel h2 {
font-size: 24px !important;
}
.w-e-toolbar h3,
.w-e-text-container h3,
.w-e-menu-panel h3 {
font-size: 18.72px !important;
}
.w-e-toolbar h4,
.w-e-text-container h4,
.w-e-menu-panel h4 {
font-size: 16px !important;
}
.w-e-toolbar h5,
.w-e-text-container h5,
.w-e-menu-panel h5 {
font-size: 13.28px !important;
}
.w-e-toolbar p,
.w-e-text-container p,
.w-e-menu-panel p {
font-size: 16px !important;
}
.w-e-toolbar .eleImg,
.w-e-text-container .eleImg,
.w-e-menu-panel .eleImg {
cursor: pointer;
display: inline-block;
font-size: 18px;
padding: 0 3px;
}
.w-e-toolbar *,
.w-e-text-container *,
.w-e-menu-panel * {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.w-e-toolbar hr,
.w-e-text-container hr,
.w-e-menu-panel hr {
cursor: pointer;
display: block;
height: 0px;
border: 0;
border-top: 3px solid #ccc;
margin: 20px 0;
}
.w-e-clear-fix:after {
content: "";
display: table;
clear: both;
}
.w-e-drop-list-item {
position: relative;
top: 1px;
padding-right: 7px;
color: #333 !important;
}
.w-e-drop-list-tl {
padding-left: 10px;
text-align: left;
}
`,""]),i.exports=r},function(i,r,o){var s=o(20),d=o(149);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21),d=o(150),c=o(151);r=s(!1);var u=d(c);r.push([i.i,`@font-face {
font-family: 'w-e-icon';
src: url(`+u+`) 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";
}
`,""]),i.exports=r},function(i,r,o){i.exports=function(s,d){return d||(d={}),s=s&&s.__esModule?s.default:s,typeof s!="string"?s:(/^['"].*['"]$/.test(s)&&(s=s.slice(1,-1)),d.hash&&(s+=d.hash),/["'() \t\n]/.test(s)||d.needQuotes?'"'.concat(s.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):s)}},function(i,r,o){o.r(r),r.default="data:font/woff;base64,d09GRgABAAAAABskAAsAAAAAGtgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPFWNtYXAAAAFoAAABHAAAARz2mfAgZ2FzcAAAAoQAAAAIAAAACAAAABBnbHlmAAACjAAAFXwAABV8IH7+mGhlYWQAABgIAAAANgAAADYb6gumaGhlYQAAGEAAAAAkAAAAJAkjBWlobXR4AAAYZAAAAKQAAACkmYcEbmxvY2EAABkIAAAAVAAAAFReAmKYbWF4cAAAGVwAAAAgAAAAIAA0ALZuYW1lAAAZfAAAAYYAAAGGmUoJ+3Bvc3QAABsEAAAAIAAAACAAAwAAAAMD7wGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAQAAAAA8ACAABAAcAAEAIOkB6QbpDekS6UfpZul36bnpu+m+6cbpy+nf6gvqDepS6lzqX+pl6nHqfPAN8BTxIPHc8fz//f//AAAAAAAg6QDpBukM6RLpR+ll6Xfpuem76b7pxunL6d/qC+oN6lLqXOpf6mLqcep38A3wFPEg8dzx/P/9//8AAf/jFwQXABb7FvcWwxamFpYWVRZUFlIWSxZHFjQWCRYIFcQVuxW5FbcVrBWnEBcQEQ8GDksOLAADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAAEAEEAAQO/A38ABQALABEAFwAAATMVIREzAxEhFSMVATUzESE1ETUhESM1Av/A/sJ+fgE+wP4Cfv7CAT5+Ar9+AT78ggE+fsACvsD+wn7+An7+wsAAAAAABABBAAEDvwN/AAUACwARABcAAAEhESM1IxM1MxEhNQERIRUjFREVMxUhEQKBAT5+wMB+/sL9wAE+wMD+wgN//sLA/X7A/sJ+AcIBPn7A/v7AfgE+AAAAAAIAAP/ABAADwAAEABMAAAE3AScBAy4BJxM3ASMBAyUBNQEHAYCAAcBA/kCfFzsyY4ABgMD+gMACgAGA/oBOAUBAAcBA/kD+nTI7FwERTgGA/oD9gMABgMD+gIAAAgAA/8AEAAOAACkALQAAAREjNTQmIyEiBh0BFBYzITI2PQEzESEVIyIGFREUFjsBMjY1ETQmKwE1ASE1IQQAwCYa/UAaJiYaAsAaJoD9wCANExMNgA0TEw0gAUD9QALAAYABgEAaJiYawBomJhpA/wCAEw3+wA0TEw0BQA0TQAGAQAAABAAAAAAEAAOAABAAIQAtADQAAAE4ATEROAExITgBMRE4ATEhNSEiBhURFBYzITI2NRE0JiMHFAYjIiY1NDYzMhYTITUTATM3A8D8gAOA/IAaJiYaA4AaJiYagDgoKDg4KCg4QP0A4AEAQOADQP0AAwBAJhr9ABomJhoDABom4Cg4OCgoODj9uIABgP7AwAAAAgAAAEAEAANAADgAPAAAASYnLgEnJiMiBw4BBwYHBgcOAQcGFRQXHgEXFhcWFx4BFxYzMjc+ATc2NzY3PgE3NjU0Jy4BJyYnARENAQPVNjg5djw9Pz89PHY5ODYLBwgLAwMDAwsIBws2ODl2PD0/Pz08djk4NgsHCAsDAwMDCwgHC/2rAUD+wAMgCAYGCAICAgIIBgYIKSoqWS0uLy8uLVkqKikIBgYIAgICAggGBggpKipZLS4vLy4tWSoqKf3gAYDAwAAAAAACAMD/wANAA8AAGwAnAAABIgcOAQcGFRQXHgEXFjEwNz4BNzY1NCcuAScmAyImNTQ2MzIWFRQGAgBCOzpXGRkyMngyMjIyeDIyGRlXOjtCUHBwUFBwcAPAGRlXOjtCeH19zEFBQUHMfX14Qjs6VxkZ/gBwUFBwcFBQcAAAAQAAAAAEAAOAACsAAAEiBw4BBwYHJxEhJz4BMzIXHgEXFhUUBw4BBwYHFzY3PgE3NjU0Jy4BJyYjAgA1MjJcKSkjlgGAkDWLUFBFRmkeHgkJIhgYHlUoICAtDAwoKIteXWoDgAoLJxscI5b+gJA0PB4eaUZFUCsoKUkgIRpgIysrYjY2OWpdXosoKAABAAAAAAQAA4AAKgAAExQXHgEXFhc3JicuAScmNTQ3PgE3NjMyFhcHIREHJicuAScmIyIHDgEHBgAMDC0gIChVHhgYIgkJHh5pRkVQUIs1kAGAliMpKVwyMjVqXV6LKCgBgDk2NmIrKyNgGiEgSSkoK1BFRmkeHjw0kAGAliMcGycLCigoi15dAAAAAAIAAABABAEDAAAmAE0AABMyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+ASEyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+AeEuKSk9ERISET0pKS4uKSk9ERIBIyN6UlFdQHUtCRAHCBICSS4pKT0REhIRPSkpLi4pKT0REgEjI3pSUV1AdS0JEAcIEgIAEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBAAAGAED/wAQAA8AAAwAHAAsAEQAdACkAACUhFSERIRUhESEVIScRIzUjNRMVMxUjNTc1IzUzFRURIzUzNSM1MzUjNQGAAoD9gAKA/YACgP2AwEBAQIDAgIDAwICAgICAgAIAgAIAgMD/AMBA/fIyQJI8MkCS7v7AQEBAQEAABgAA/8AEAAPAAAMABwALABcAIwAvAAABIRUhESEVIREhFSEBNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYBgAKA/YACgP2AAoD9gP6ASzU1S0s1NUtLNTVLSzU1S0s1NUtLNTVLA4CA/wCA/wCAA0A1S0s1NUtL/rU1S0s1NUtL/rU1S0s1NUtLAAUAAABABWADAAADAAcACwAOABEAABMhFSEVIRUhFSEVIQEXNzUnBwADgPyAA4D8gAOA/IAD4MDAwMADAMBAwEDAAUDAwEDAwAAAAAADAAAAAAQAA6AAAwANABQAADchFSElFSE1EyEVITUhJQkBIxEjEQAEAPwABAD8AIABAAEAAQD9YAEgASDggEBAwEBAAQCAgMABIP7g/wABAAAAAAACAB7/zAPiA7QAMwBkAAABIiYnJicmNDc2PwE+ATMyFhcWFxYUBwYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJyYnJjQ3Nj8BNjIXFhQPAQYUFx4BMzI2PwE2NCcmNDc2MhcWFxYUBwYPAQ4BIwG4ChMIIxISEhIjwCNZMTFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PCBMKuDFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PDysQIxISEhIjwCNZMQFECAckLS1eLS0kwCIlJSIkLS1eLS0kVxAQDysPWCl0KRQVFRTAKXQpDysQBwj+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJC0tXi0tJMAiJQAAAAAFAAD/wAQAA8AAGwA3AFMAXwBrAAAFMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NhMyNz4BNzY3BgcOAQcGIyInLgEnJicWFx4BFxYnNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYCAGpdXosoKCgoi15dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMVisrKlEmJiMFHBtWODc/Pzc4VhscBSMmJlEqK9UlGxslJRsbJQGAJRsbJSUbGyVAKCiLXl1qal1eiygoKCiLXl1qal1eiygoA6AhIHFMTFZWTExxICEhIHFMTFZWTExxICH+CQYGFRAQFEM6OlYYGRkYVjo6QxQQEBUGBvcoODgoKDg4KCg4OCgoODgAAAEAAAFABAACQAAPAAATFRQWMyEyNj0BNCYjISIGABMNA8ANExMN/EANEwIgwA0TEw3ADRMTAAAAAwAA/8AEAAPAABsANwBDAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmAyInLgEnJjU0Nz4BNzYzMhceARcWFRQHDgEHBhMHJwcXBxc3FzcnNwIAal1eiygoKCiLXl1qal1eiygoKCiLXl1qVkxMcSAhISBxTExWVkxMcSAhISBxTExKoKBgoKBgoKBgoKADwCgoi15dampdXosoKCgoi15dampdXosoKPxgISBxTExWVkxMcSAhISBxTExWVkxMcSAhAqCgoGCgoGCgoGCgoAACAAD/wAQAA8AADwAVAAABISIGFREUFjMhMjY1ETQmASc3FwEXA4D9ADVLSzUDADVLS/4L7VqTATNaA8BLNf0ANUtLNQMANUv85e5akgEyWgAAAAABAGX/wAObA8AAKQAAASImIyIHDgEHBhUUFjMuATU0NjcwBwYCBwYHFSETMzcjNx4BMzI2Nw4BAyBEaEZxU1RtGhtJSAYNZUoQEEs8PFkBPWzGLNc0LVUmLlAYHT0DsBAeHWE+P0FNOwsmN5lvA31+/sWPkCMZAgCA9gkPN2sJBwAAAAACAAAAAAQAA4AACQAXAAAlMwcnMxEjNxcjJREnIxEzFSE1MxEjBxEDgICgoICAoKCA/wBAwID+gIDAQMDAwAIAwMDA/wCA/UBAQALAgAEAAAMAwAAAA0ADgAAWAB8AKAAAAT4BNTQnLgEnJiMhESEyNz4BNzY1NCYBMzIWFRQGKwETIxEzMhYVFAYCxBwgFBRGLi81/sABgDUvLkYUFET+hGUqPDwpZp+fnyw+PgHbIlQvNS8uRhQU/IAUFEYuLzVGdAFGSzU1S/6AAQBLNTVLAAAAAAIAwAAAA0ADgAAfACMAAAEzERQHDgEHBiMiJy4BJyY1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgBkZVzo7QkI7OlcZGYAbGBxJKChJHBgb/gACgP2AA4D+YDw0NU4WFxcWTjU0PAGg/mAeOBcYGxsYFzge/qCAAAAAAAEAgAAAA4ADgAALAAABFSMBMxUhNTMBIzUDgID+wID+QIABQIADgED9AEBAAwBAAAEAAAAABAADgAA9AAABFSMeARUUBgcOASMiJicuATUzFBYzMjY1NCYjITUhLgEnLgE1NDY3PgEzMhYXHgEVIzQmIyIGFRQWMzIWFwQA6xUWNTAscT4+cSwwNYByTk5yck7+AAEsAgQBMDU1MCxxPj5xLDA1gHJOTnJyTjtuKwHAQB1BIjViJCEkJCEkYjU0TEw0NExAAQMBJGI1NWIkISQkISRiNTRMTDQ0TCEfAAAACgAAAAAEAAOAAAMABwALAA8AEwAXABsAHwAjACcAABMRIREBNSEVHQEhNQEVITUjFSE1ESEVISUhFSERNSEVASEVISE1IRUABAD9gAEA/wABAP8AQP8AAQD/AAKAAQD/AAEA/IABAP8AAoABAAOA/IADgP3AwMBAwMACAMDAwMD/AMDAwAEAwMD+wMDAwAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIRUhFSERIRUhESEVIREhFSEABAD8AAKA/YACgP2ABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFyEVIREhFSEDIRUhESEVIQAEAPwAwAKA/YACgP2AwAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEFIRUhESEVIQEhFSERIRUhAAQA/AABgAKA/YACgP2A/oAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEVIRUhFSEVIRUhFSEVIRUhAAQA/AAEAPwABAD8AAQA/AAEAPwAA4CAQIBAgECAQIAAAAAGAAAAAAQAA4AAAwAHAAsADwATABYAABMhFSEFIRUhFSEVIRUhFSEFIRUhGQEFAAQA/AABgAKA/YACgP2AAoD9gP6ABAD8AAEAA4CAQIBAgECAQIABAAGAwAAAAAYAAAAABAADgAADAAcACwAPABMAFgAAEyEVIQUhFSEVIRUhFSEVIQUhFSEBESUABAD8AAGAAoD9gAKA/YACgP2A/oAEAPwAAQD/AAOAgECAQIBAgECAAoD+gMAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAAIWwaoFfDzz1AAsEAAAAAADbteOZAAAAANu145kAAP+3BWADwAAAAAgAAgAAAAAAAAABAAADwP/AAAAFgAAA//8FYAABAAAAAAAAAAAAAAAAAAAAKQQAAAAAAAAAAAAAAAIAAAAEAABBBAAAQQQAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAFgAAABAAAAAQAAB4EAAAABAAAAAQAAAAEAAAABAAAZQQAAAAEAADABAAAwAQAAIAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBKAHYApADmAS4BkgHQAhYCXALQAw4DWAN+A6gEPgTeBPoFZAWOBdAF+AY6BnYGjgbmBy4HVgd+B6gHzgf8CCoIbgkmCXAKYgq+AAEAAAApALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(i,r,o){var s=o(20),d=o(153);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21);r=s(!1),r.push([i.i,`.w-e-toolbar {
display: flex;
padding: 0 6px;
flex-wrap: wrap;
position: relative;
/* \u5355\u4E2A\u83DC\u5355 */
}
.w-e-toolbar .w-e-menu {
position: relative;
display: flex;
width: 40px;
height: 40px;
align-items: center;
justify-content: center;
text-align: center;
cursor: pointer;
}
.w-e-toolbar .w-e-menu i {
color: #999;
}
.w-e-toolbar .w-e-menu:hover {
background-color: #F6F6F6;
}
.w-e-toolbar .w-e-menu:hover i {
color: #333;
}
.w-e-toolbar .w-e-active i {
color: #1e88e5;
}
.w-e-toolbar .w-e-active:hover i {
color: #1e88e5;
}
.w-e-menu-tooltip {
position: absolute;
display: flex;
color: #f1f1f1;
background-color: rgba(0, 0, 0, 0.75);
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
border-radius: 4px;
padding: 4px 5px 6px;
justify-content: center;
align-items: center;
}
.w-e-menu-tooltip-up::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border: 5px solid rgba(0, 0, 0, 0);
border-top-color: rgba(0, 0, 0, 0.73);
}
.w-e-menu-tooltip-down::after {
content: "";
position: absolute;
bottom: 100%;
left: 50%;
margin-left: -5px;
border: 5px solid rgba(0, 0, 0, 0);
border-bottom-color: rgba(0, 0, 0, 0.73);
}
.w-e-menu-tooltip-item-wrapper {
font-size: 14px;
margin: 0 5px;
}
`,""]),i.exports=r},function(i,r,o){var s=o(20),d=o(155);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21);r=s(!1),r.push([i.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;
}
`,""]),i.exports=r},function(i,r,o){var s=o(20),d=o(157);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21);r=s(!1),r.push([i.i,`.w-e-menu .w-e-panel-container {
position: absolute;
top: 0;
left: 50%;
border: 1px solid #ccc;
border-top: 0;
box-shadow: 1px 1px 2px #ccc;
color: #333;
background-color: #fff;
text-align: left;
/* \u4E3A emotion panel \u5B9A\u5236\u7684\u6837\u5F0F */
/* \u4E0A\u4F20\u56FE\u7247\u3001\u4E0A\u4F20\u89C6\u9891\u7684 panel \u5B9A\u5236\u6837\u5F0F */
}
.w-e-menu .w-e-panel-container .w-e-panel-close {
position: absolute;
right: 0;
top: 0;
padding: 5px;
margin: 2px 5px 0 0;
cursor: pointer;
color: #999;
}
.w-e-menu .w-e-panel-container .w-e-panel-close:hover {
color: #333;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-title {
list-style: none;
display: flex;
font-size: 14px;
margin: 2px 10px 0 10px;
border-bottom: 1px solid #f1f1f1;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {
padding: 3px 5px;
color: #999;
cursor: pointer;
margin: 0 3px;
position: relative;
top: 1px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {
color: #333;
border-bottom: 1px solid #333;
cursor: default;
font-weight: 700;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content {
padding: 10px 15px 10px 15px;
font-size: 16px;
/* \u8F93\u5165\u6846\u7684\u6837\u5F0F */
/* \u6309\u94AE\u7684\u6837\u5F0F */
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,
.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,
.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {
outline: none;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {
width: 100%;
border: 1px solid #ccc;
padding: 5px;
margin-top: 10px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {
border-color: #1e88e5;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {
border: none;
border-bottom: 1px solid #ccc;
font-size: 14px;
height: 20px;
color: #333;
text-align: left;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {
width: 30px;
text-align: center;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {
display: block;
width: 100%;
margin: 10px 0;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {
border-bottom: 2px solid #1e88e5;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {
font-size: 14px;
color: #1e88e5;
border: none;
padding: 5px 10px;
background-color: #fff;
cursor: pointer;
border-radius: 3px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {
float: left;
margin-right: 10px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {
float: right;
margin-left: 10px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {
color: #999;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {
color: #c24f4a;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {
background-color: #f1f1f1;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {
content: "";
display: table;
clear: both;
}
.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {
cursor: pointer;
font-size: 18px;
padding: 0 3px;
display: inline-block;
}
.w-e-menu .w-e-panel-container .w-e-up-img-container,
.w-e-menu .w-e-panel-container .w-e-up-video-container {
text-align: center;
}
.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,
.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {
display: inline-block;
color: #999;
cursor: pointer;
font-size: 60px;
line-height: 1;
}
.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,
.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {
color: #333;
}
`,""]),i.exports=r},function(i,r,o){var s=o(20),d=o(159);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21);r=s(!1),r.push([i.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;
}
`,""]),i.exports=r},function(i,r,o){var s=o(0),d=s(o(161));Element.prototype.matches||(Element.prototype.matches=function(c){var u=this.ownerDocument.querySelectorAll(c),g=u.length;for(g;g>=0&&u.item(g)!==this;g--);return g>-1}),d.default||(window.Promise=d.default)},function(i,r,o){i.exports=o(162)},function(i,r,o){var s=o(163);i.exports=s},function(i,r,o){o(61),o(50),o(54),o(175),o(178),o(179);var s=o(9);i.exports=s.Promise},function(i,r,o){var s=o(62),d=o(49),c=function(g){return function(y,C){var w=String(d(y)),A=s(C),E=w.length,_,v;return A<0||A>=E?g?"":void 0:(_=w.charCodeAt(A),_<55296||_>56319||A+1===E||(v=w.charCodeAt(A+1))<56320||v>57343?g?w.charAt(A):_:g?w.slice(A,A+2):(_-55296<<10)+(v-56320)+65536)}};i.exports={codeAt:c(!1),charAt:c(!0)}},function(i,r,o){var s=o(8),d=o(102),c=s.WeakMap;i.exports=typeof c=="function"&&/native code/.test(d(c))},function(i,r,o){var s=o(8),d=o(19);i.exports=function(c,u){try{d(s,c,u)}catch{s[c]=u}return u}},function(i,r,o){var s=o(104).IteratorPrototype,d=o(77),c=o(48),u=o(37),g=o(44),y=function(){return this};i.exports=function(C,w,A){var E=w+" Iterator";return C.prototype=d(s,{next:c(1,A)}),u(C,E,!1,!0),g[E]=y,C}},function(i,r,o){var s=o(11);i.exports=!s(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},function(i,r,o){var s=o(14),d=o(18),c=o(25),u=o(52);i.exports=s?Object.defineProperties:function(y,C){c(y);for(var w=u(C),A=w.length,E=0,_;A>E;)d.f(y,_=w[E++],C[_]);return y}},function(i,r,o){var s=o(81),d=o(65);i.exports=s?{}.toString:function(){return"[object "+d(this)+"]"}},function(i,r,o){var s=o(25),d=o(172);i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,u={},g;try{g=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,g.call(u,[]),c=u instanceof Array}catch{}return function(C,w){return s(C),d(w),c?g.call(C,w):C.__proto__=w,C}}():void 0)},function(i,r,o){var s=o(13);i.exports=function(d){if(!s(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}},function(i,r,o){var s=o(30),d=o(82),c=o(44),u=o(42),g=o(75),y="Array Iterator",C=u.set,w=u.getterFor(y);i.exports=g(Array,"Array",function(A,E){C(this,{type:y,target:s(A),index:0,kind:E})},function(){var A=w(this),E=A.target,_=A.kind,v=A.index++;return!E||v>=E.length?(A.target=void 0,{value:void 0,done:!0}):_=="keys"?{value:v,done:!1}:_=="values"?{value:E[v],done:!1}:{value:[v,E[v]],done:!1}},"values"),c.Arguments=c.Array,d("keys"),d("values"),d("entries")},function(i,r){i.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(i,r,o){var s=o(5),d=o(43),c=o(8),u=o(36),g=o(109),y=o(53),C=o(110),w=o(37),A=o(111),E=o(13),_=o(41),v=o(83),m=o(34),b=o(102),S=o(66),x=o(115),O=o(116),D=o(117).set,R=o(176),I=o(119),z=o(177),T=o(85),B=o(120),L=o(42),U=o(101),W=o(10),V=o(86),k=W("species"),M="Promise",j=L.get,Z=L.set,J=L.getterFor(M),F=g,ie=c.TypeError,pe=c.document,se=c.process,ye=u("fetch"),fe=T.f,ue=fe,he=m(se)=="process",$=!!(pe&&pe.createEvent&&c.dispatchEvent),Y="unhandledrejection",Q="rejectionhandled",K=0,te=1,q=2,oe=1,de=2,Ee,Se,ke,qe,Re=U(M,function(){var Ze=b(F)!==String(F);if(!Ze&&(V===66||!he&&typeof PromiseRejectionEvent!="function")||d&&!F.prototype.finally)return!0;if(V>=51&&/native code/.test(F))return!1;var Oe=F.resolve(1),Ve=function(be){be(function(){},function(){})},Xe=Oe.constructor={};return Xe[k]=Ve,!(Oe.then(function(){})instanceof Ve)}),ge=Re||!x(function(Ze){F.all(Ze).catch(function(){})}),Ae=function(Oe){var Ve;return E(Oe)&&typeof(Ve=Oe.then)=="function"?Ve:!1},le=function(Oe,Ve,Xe){if(!Ve.notified){Ve.notified=!0;var De=Ve.reactions;R(function(){for(var be=Ve.value,Ke=Ve.state==te,Ue=0;De.length>Ue;){var We=De[Ue++],lt=Ke?We.ok:We.fail,rn=We.resolve,Tt=We.reject,wt=We.domain,mt,$n,Do;try{lt?(Ke||(Ve.rejection===de&&ct(Oe,Ve),Ve.rejection=oe),lt===!0?mt=be:(wt&&wt.enter(),mt=lt(be),wt&&(wt.exit(),Do=!0)),mt===We.promise?Tt(ie("Promise-chain cycle")):($n=Ae(mt))?$n.call(mt,rn,Tt):rn(mt)):Tt(be)}catch(Ln){wt&&!Do&&wt.exit(),Tt(Ln)}}Ve.reactions=[],Ve.notified=!1,Xe&&!Ve.rejection&&Ie(Oe,Ve)})}},we=function(Oe,Ve,Xe){var De,be;$?(De=pe.createEvent("Event"),De.promise=Ve,De.reason=Xe,De.initEvent(Oe,!1,!0),c.dispatchEvent(De)):De={promise:Ve,reason:Xe},(be=c["on"+Oe])?be(De):Oe===Y&&z("Unhandled promise rejection",Xe)},Ie=function(Oe,Ve){D.call(c,function(){var Xe=Ve.value,De=je(Ve),be;if(De&&(be=B(function(){he?se.emit("unhandledRejection",Xe,Oe):we(Y,Oe,Xe)}),Ve.rejection=he||je(Ve)?de:oe,be.error))throw be.value})},je=function(Oe){return Oe.rejection!==oe&&!Oe.parent},ct=function(Oe,Ve){D.call(c,function(){he?se.emit("rejectionHandled",Oe):we(Q,Oe,Ve.value)})},rt=function(Oe,Ve,Xe,De){return function(be){Oe(Ve,Xe,be,De)}},Fe=function(Oe,Ve,Xe,De){Ve.done||(Ve.done=!0,De&&(Ve=De),Ve.value=Xe,Ve.state=q,le(Oe,Ve,!0))},Ct=function Ze(Oe,Ve,Xe,De){if(!Ve.done){Ve.done=!0,De&&(Ve=De);try{if(Oe===Xe)throw ie("Promise can't be resolved itself");var be=Ae(Xe);be?R(function(){var Ke={done:!1};try{be.call(Xe,rt(Ze,Oe,Ke,Ve),rt(Fe,Oe,Ke,Ve))}catch(Ue){Fe(Oe,Ke,Ue,Ve)}}):(Ve.value=Xe,Ve.state=te,le(Oe,Ve,!1))}catch(Ke){Fe(Oe,{done:!1},Ke,Ve)}}};Re&&(F=function(Oe){v(this,F,M),_(Oe),Ee.call(this);var Ve=j(this);try{Oe(rt(Ct,this,Ve),rt(Fe,this,Ve))}catch(Xe){Fe(this,Ve,Xe)}},Ee=function(Oe){Z(this,{type:M,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:K,value:void 0})},Ee.prototype=C(F.prototype,{then:function(Oe,Ve){var Xe=J(this),De=fe(O(this,F));return De.ok=typeof Oe=="function"?Oe:!0,De.fail=typeof Ve=="function"&&Ve,De.domain=he?se.domain:void 0,Xe.parent=!0,Xe.reactions.push(De),Xe.state!=K&&le(this,Xe,!1),De.promise},catch:function(Oe){return this.then(void 0,Oe)}}),Se=function(){var Oe=new Ee,Ve=j(Oe);this.promise=Oe,this.resolve=rt(Ct,Oe,Ve),this.reject=rt(Fe,Oe,Ve)},T.f=fe=function(Oe){return Oe===F||Oe===ke?new Se(Oe):ue(Oe)},!d&&typeof g=="function"&&(qe=g.prototype.then,y(g.prototype,"then",function(Oe,Ve){var Xe=this;return new F(function(De,be){qe.call(Xe,De,be)}).then(Oe,Ve)},{unsafe:!0}),typeof ye=="function"&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(Oe){return I(F,ye.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:Re},{Promise:F}),w(F,M,!1,!0),A(M),ke=u(M),s({target:M,stat:!0,forced:Re},{reject:function(Oe){var Ve=fe(this);return Ve.reject.call(void 0,Oe),Ve.promise}}),s({target:M,stat:!0,forced:d||Re},{resolve:function(Oe){return I(d&&this===ke?F:this,Oe)}}),s({target:M,stat:!0,forced:ge},{all:function(Oe){var Ve=this,Xe=fe(Ve),De=Xe.resolve,be=Xe.reject,Ke=B(function(){var Ue=_(Ve.resolve),We=[],lt=0,rn=1;S(Oe,function(Tt){var wt=lt++,mt=!1;We.push(void 0),rn++,Ue.call(Ve,Tt).then(function($n){mt||(mt=!0,We[wt]=$n,--rn||De(We))},be)}),--rn||De(We)});return Ke.error&&be(Ke.value),Xe.promise},race:function(Oe){var Ve=this,Xe=fe(Ve),De=Xe.reject,be=B(function(){var Ke=_(Ve.resolve);S(Oe,function(Ue){Ke.call(Ve,Ue).then(Xe.resolve,De)})});return be.error&&De(be.value),Xe.promise}})},function(i,r,o){var s=o(8),d=o(71).f,c=o(34),u=o(117).set,g=o(118),y=s.MutationObserver||s.WebKitMutationObserver,C=s.process,w=s.Promise,A=c(C)=="process",E=d(s,"queueMicrotask"),_=E&&E.value,v,m,b,S,x,O,D,R;_||(v=function(){var z,T;for(A&&(z=C.domain)&&z.exit();m;){T=m.fn,m=m.next;try{T()}catch(B){throw m?S():b=void 0,B}}b=void 0,z&&z.enter()},A?S=function(){C.nextTick(v)}:y&&!g?(x=!0,O=document.createTextNode(""),new y(v).observe(O,{characterData:!0}),S=function(){O.data=x=!x}):w&&w.resolve?(D=w.resolve(void 0),R=D.then,S=function(){R.call(D,v)}):S=function(){u.call(s,v)}),i.exports=_||function(I){var z={fn:I,next:void 0};b&&(b.next=z),m||(m=z,S()),b=z}},function(i,r,o){var s=o(8);i.exports=function(d,c){var u=s.console;u&&u.error&&(arguments.length===1?u.error(d):u.error(d,c))}},function(i,r,o){var s=o(5),d=o(41),c=o(85),u=o(120),g=o(66);s({target:"Promise",stat:!0},{allSettled:function(C){var w=this,A=c.f(w),E=A.resolve,_=A.reject,v=u(function(){var m=d(w.resolve),b=[],S=0,x=1;g(C,function(O){var D=S++,R=!1;b.push(void 0),x++,m.call(w,O).then(function(I){R||(R=!0,b[D]={status:"fulfilled",value:I},--x||E(b))},function(I){R||(R=!0,b[D]={status:"rejected",reason:I},--x||E(b))})}),--x||E(b)});return v.error&&_(v.value),A.promise}})},function(i,r,o){var s=o(5),d=o(43),c=o(109),u=o(11),g=o(36),y=o(116),C=o(119),w=o(53),A=!!c&&u(function(){c.prototype.finally.call({then:function(){}},function(){})});s({target:"Promise",proto:!0,real:!0,forced:A},{finally:function(_){var v=y(this,g("Promise")),m=typeof _=="function";return this.then(m?function(b){return C(v,_()).then(function(){return b})}:_,m?function(b){return C(v,_()).then(function(){throw b})}:_)}}),!d&&typeof c=="function"&&!c.prototype.finally&&w(c.prototype,"finally",g("Promise").prototype.finally)},function(i,r,o){o(54);var s=o(181),d=o(65),c=Array.prototype,u={DOMTokenList:!0,NodeList:!0};i.exports=function(g){var y=g.forEach;return g===c||g instanceof Array&&y===c.forEach||u.hasOwnProperty(d(g))?s:y}},function(i,r,o){var s=o(182);i.exports=s},function(i,r,o){o(183);var s=o(15);i.exports=s("Array").forEach},function(i,r,o){var s=o(5),d=o(184);s({target:"Array",proto:!0,forced:[].forEach!=d},{forEach:d})},function(i,r,o){var s=o(32).forEach,d=o(67),c=o(22),u=d("forEach"),g=c("forEach");i.exports=!u||!g?function(C){return s(this,C,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(i,r,o){var s=o(186);i.exports=s},function(i,r,o){o(187);var s=o(9);i.exports=s.Array.isArray},function(i,r,o){var s=o(5),d=o(55);s({target:"Array",stat:!0},{isArray:d})},function(i,r,o){var s=o(189);i.exports=s},function(i,r,o){var s=o(190),d=Array.prototype;i.exports=function(c){var u=c.map;return c===d||c instanceof Array&&u===d.map?s:u}},function(i,r,o){o(191);var s=o(15);i.exports=s("Array").map},function(i,r,o){var s=o(5),d=o(32).map,c=o(56),u=o(22),g=c("map"),y=u("map");s({target:"Array",proto:!0,forced:!g||!y},{map:function(w){return d(this,w,arguments.length>1?arguments[1]:void 0)}})},function(i,r,o){var s=o(193);i.exports=s},function(i,r,o){var s=o(194),d=String.prototype;i.exports=function(c){var u=c.trim;return typeof c=="string"||c===d||c instanceof String&&u===d.trim?s:u}},function(i,r,o){o(195);var s=o(15);i.exports=s("String").trim},function(i,r,o){var s=o(5),d=o(90).trim,c=o(196);s({target:"String",proto:!0,forced:c("trim")},{trim:function(){return d(this)}})},function(i,r,o){var s=o(11),d=o(68),c="\u200B\x85\u180E";i.exports=function(u){return s(function(){return!!d[u]()||c[u]()!=c||d[u].name!==u})}},function(i,r,o){var s=o(198);i.exports=s},function(i,r,o){o(199),o(61),o(50),o(54);var s=o(9);i.exports=s.Map},function(i,r,o){var s=o(122),d=o(124);i.exports=s("Map",function(c){return function(){return c(this,arguments.length?arguments[0]:void 0)}},d)},function(i,r,o){var s=o(11);i.exports=!s(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(i,r,o){var s=o(202);i.exports=s},function(i,r,o){var s=o(203),d=Array.prototype;i.exports=function(c){var u=c.indexOf;return c===d||c instanceof Array&&u===d.indexOf?s:u}},function(i,r,o){o(204);var s=o(15);i.exports=s("Array").indexOf},function(i,r,o){var s=o(5),d=o(78).indexOf,c=o(67),u=o(22),g=[].indexOf,y=!!g&&1/[1].indexOf(1,-0)<0,C=c("indexOf"),w=u("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:y||!C||!w},{indexOf:function(E){return y?g.apply(this,arguments)||0:d(this,E,arguments.length>1?arguments[1]:void 0)}})},function(i,r,o){var s=o(206);i.exports=s},function(i,r,o){var s=o(207),d=Array.prototype;i.exports=function(c){var u=c.splice;return c===d||c instanceof Array&&u===d.splice?s:u}},function(i,r,o){o(208);var s=o(15);i.exports=s("Array").splice},function(i,r,o){var s=o(5),d=o(79),c=o(62),u=o(35),g=o(31),y=o(88),C=o(69),w=o(56),A=o(22),E=w("splice"),_=A("splice",{ACCESSORS:!0,0:0,1:2}),v=Math.max,m=Math.min,b=9007199254740991,S="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!E||!_},{splice:function(O,D){var R=g(this),I=u(R.length),z=d(O,I),T=arguments.length,B,L,U,W,V,k;if(T===0?B=L=0:T===1?(B=0,L=I-z):(B=T-2,L=m(v(c(D),0),I-z)),I+B-L>b)throw TypeError(S);for(U=y(R,L),W=0;W<L;W++)V=z+W,V in R&&C(U,W,R[V]);if(U.length=L,B<L){for(W=z;W<I-L;W++)V=W+L,k=W+B,V in R?R[k]=R[V]:delete R[k];for(W=I;W>I-L+B;W--)delete R[W-1]}else if(B>L)for(W=I-L;W>z;W--)V=W+L-1,k=W+B-1,V in R?R[k]=R[V]:delete R[k];for(W=0;W<B;W++)R[W+z]=arguments[W+2];return R.length=I-L+B,U}})},function(i,r,o){var s=o(210);i.exports=s},function(i,r,o){var s=o(211),d=Array.prototype;i.exports=function(c){var u=c.filter;return c===d||c instanceof Array&&u===d.filter?s:u}},function(i,r,o){o(212);var s=o(15);i.exports=s("Array").filter},function(i,r,o){var s=o(5),d=o(32).filter,c=o(56),u=o(22),g=c("filter"),y=u("filter");s({target:"Array",proto:!0,forced:!g||!y},{filter:function(w){return d(this,w,arguments.length>1?arguments[1]:void 0)}})},function(i,r,o){var s=o(214);i.exports=s},function(i,r,o){var s=o(215),d=o(217),c=Array.prototype,u=String.prototype;i.exports=function(g){var y=g.includes;return g===c||g instanceof Array&&y===c.includes?s:typeof g=="string"||g===u||g instanceof String&&y===u.includes?d:y}},function(i,r,o){o(216);var s=o(15);i.exports=s("Array").includes},function(i,r,o){var s=o(5),d=o(78).includes,c=o(82),u=o(22),g=u("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:!g},{includes:function(C){return d(this,C,arguments.length>1?arguments[1]:void 0)}}),c("includes")},function(i,r,o){o(218);var s=o(15);i.exports=s("String").includes},function(i,r,o){var s=o(5),d=o(219),c=o(49),u=o(221);s({target:"String",proto:!0,forced:!u("includes")},{includes:function(y){return!!~String(c(this)).indexOf(d(y),arguments.length>1?arguments[1]:void 0)}})},function(i,r,o){var s=o(220);i.exports=function(d){if(s(d))throw TypeError("The method doesn't accept regular expressions");return d}},function(i,r,o){var s=o(13),d=o(34),c=o(10),u=c("match");i.exports=function(g){var y;return s(g)&&((y=g[u])!==void 0?!!y:d(g)=="RegExp")}},function(i,r,o){var s=o(10),d=s("match");i.exports=function(c){var u=/./;try{"/./"[c](u)}catch{try{return u[d]=!1,"/./"[c](u)}catch{}}return!1}},function(i,r,o){var s=o(223);i.exports=s},function(i,r,o){var s=o(224),d=Function.prototype;i.exports=function(c){var u=c.bind;return c===d||c instanceof Function&&u===d.bind?s:u}},function(i,r,o){o(225);var s=o(15);i.exports=s("Function").bind},function(i,r,o){var s=o(5),d=o(226);s({target:"Function",proto:!0},{bind:d})},function(i,r,o){var s=o(41),d=o(13),c=[].slice,u={},g=function(C,w,A){if(!(w in u)){for(var E=[],_=0;_<w;_++)E[_]="a["+_+"]";u[w]=Function("C,a","return new C("+E.join(",")+")")}return u[w](C,A)};i.exports=Function.bind||function(C){var w=s(this),A=c.call(arguments,1),E=function(){var v=A.concat(c.call(arguments));return this instanceof E?g(w,v.length,v):w.apply(C,v)};return d(w.prototype)&&(E.prototype=w.prototype),E}},function(i,r,o){i.exports=o(228)},function(i,r,o){var s=o(229);i.exports=s},function(i,r,o){o(125),o(50),o(54);var s=o(93);i.exports=s.f("iterator")},function(i,r,o){i.exports=o(231)},function(i,r,o){var s=o(232);o(251),o(252),o(253),o(254),o(255),i.exports=s},function(i,r,o){o(233),o(61),o(234),o(236),o(237),o(238),o(239),o(125),o(240),o(241),o(242),o(243),o(244),o(245),o(246),o(247),o(248),o(249),o(250);var s=o(9);i.exports=s.Symbol},function(i,r,o){var s=o(5),d=o(11),c=o(55),u=o(13),g=o(31),y=o(35),C=o(69),w=o(88),A=o(56),E=o(10),_=o(86),v=E("isConcatSpreadable"),m=9007199254740991,b="Maximum allowed index exceeded",S=_>=51||!d(function(){var R=[];return R[v]=!1,R.concat()[0]!==R}),x=A("concat"),O=function(I){if(!u(I))return!1;var z=I[v];return z!==void 0?!!z:c(I)},D=!S||!x;s({target:"Array",proto:!0,forced:D},{concat:function(I){var z=g(this),T=w(z,0),B=0,L,U,W,V,k;for(L=-1,W=arguments.length;L<W;L++)if(k=L===-1?z:arguments[L],O(k)){if(V=y(k.length),B+V>m)throw TypeError(b);for(U=0;U<V;U++,B++)U in k&&C(T,B,k[U])}else{if(B>=m)throw TypeError(b);C(T,B++,k)}return T.length=B,T}})},function(i,r,o){var s=o(5),d=o(8),c=o(36),u=o(43),g=o(14),y=o(76),C=o(106),w=o(11),A=o(16),E=o(55),_=o(13),v=o(25),m=o(31),b=o(30),S=o(60),x=o(48),O=o(77),D=o(52),R=o(126),I=o(235),z=o(127),T=o(71),B=o(18),L=o(59),U=o(19),W=o(53),V=o(74),k=o(63),M=o(51),j=o(64),Z=o(10),J=o(93),F=o(12),ie=o(37),pe=o(42),se=o(32).forEach,ye=k("hidden"),fe="Symbol",ue="prototype",he=Z("toPrimitive"),$=pe.set,Y=pe.getterFor(fe),Q=Object[ue],K=d.Symbol,te=c("JSON","stringify"),q=T.f,oe=B.f,de=I.f,Ee=L.f,Se=V("symbols"),ke=V("op-symbols"),qe=V("string-to-symbol-registry"),Re=V("symbol-to-string-registry"),ge=V("wks"),Ae=d.QObject,le=!Ae||!Ae[ue]||!Ae[ue].findChild,we=g&&w(function(){return O(oe({},"a",{get:function(){return oe(this,"a",{value:7}).a}})).a!=7})?function(De,be,Ke){var Ue=q(Q,be);Ue&&delete Q[be],oe(De,be,Ke),Ue&&De!==Q&&oe(Q,be,Ue)}:oe,Ie=function(be,Ke){var Ue=Se[be]=O(K[ue]);return $(Ue,{type:fe,tag:be,description:Ke}),g||(Ue.description=Ke),Ue},je=C?function(De){return Ht(De)=="symbol"}:function(De){return Object(De)instanceof K},ct=function(be,Ke,Ue){be===Q&&ct(ke,Ke,Ue),v(be);var We=S(Ke,!0);return v(Ue),A(Se,We)?(Ue.enumerable?(A(be,ye)&&be[ye][We]&&(be[ye][We]=!1),Ue=O(Ue,{enumerable:x(0,!1)})):(A(be,ye)||oe(be,ye,x(1,{})),be[ye][We]=!0),we(be,We,Ue)):oe(be,We,Ue)},rt=function(be,Ke){v(be);var Ue=b(Ke),We=D(Ue).concat(Ve(Ue));return se(We,function(lt){(!g||Ct.call(Ue,lt))&&ct(be,lt,Ue[lt])}),be},Fe=function(be,Ke){return Ke===void 0?O(be):rt(O(be),Ke)},Ct=function(be){var Ke=S(be,!0),Ue=Ee.call(this,Ke);return this===Q&&A(Se,Ke)&&!A(ke,Ke)?!1:Ue||!A(this,Ke)||!A(Se,Ke)||A(this,ye)&&this[ye][Ke]?Ue:!0},Ze=function(be,Ke){var Ue=b(be),We=S(Ke,!0);if(!(Ue===Q&&A(Se,We)&&!A(ke,We))){var lt=q(Ue,We);return lt&&A(Se,We)&&!(A(Ue,ye)&&Ue[ye][We])&&(lt.enumerable=!0),lt}},Oe=function(be){var Ke=de(b(be)),Ue=[];return se(Ke,function(We){!A(Se,We)&&!A(M,We)&&Ue.push(We)}),Ue},Ve=function(be){var Ke=be===Q,Ue=de(Ke?ke:b(be)),We=[];return se(Ue,function(lt){A(Se,lt)&&(!Ke||A(Q,lt))&&We.push(Se[lt])}),We};if(y||(K=function(){if(this instanceof K)throw TypeError("Symbol is not a constructor");var be=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Ke=j(be),Ue=function We(lt){this===Q&&We.call(ke,lt),A(this,ye)&&A(this[ye],Ke)&&(this[ye][Ke]=!1),we(this,Ke,x(1,lt))};return g&&le&&we(Q,Ke,{configurable:!0,set:Ue}),Ie(Ke,be)},W(K[ue],"toString",function(){return Y(this).tag}),W(K,"withoutSetter",function(De){return Ie(j(De),De)}),L.f=Ct,B.f=ct,T.f=Ze,R.f=I.f=Oe,z.f=Ve,J.f=function(De){return Ie(Z(De),De)},g&&(oe(K[ue],"description",{configurable:!0,get:function(){return Y(this).description}}),u||W(Q,"propertyIsEnumerable",Ct,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!y,sham:!y},{Symbol:K}),se(D(ge),function(De){F(De)}),s({target:fe,stat:!0,forced:!y},{for:function(be){var Ke=String(be);if(A(qe,Ke))return qe[Ke];var Ue=K(Ke);return qe[Ke]=Ue,Re[Ue]=Ke,Ue},keyFor:function(be){if(!je(be))throw TypeError(be+" is not a symbol");if(A(Re,be))return Re[be]},useSetter:function(){le=!0},useSimple:function(){le=!1}}),s({target:"Object",stat:!0,forced:!y,sham:!g},{create:Fe,defineProperty:ct,defineProperties:rt,getOwnPropertyDescriptor:Ze}),s({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:Oe,getOwnPropertySymbols:Ve}),s({target:"Object",stat:!0,forced:w(function(){z.f(1)})},{getOwnPropertySymbols:function(be){return z.f(m(be))}}),te){var Xe=!y||w(function(){var De=K();return te([De])!="[null]"||te({a:De})!="{}"||te(Object(De))!="{}"});s({target:"JSON",stat:!0,forced:Xe},{stringify:function(be,Ke,Ue){for(var We=[be],lt=1,rn;arguments.length>lt;)We.push(arguments[lt++]);if(rn=Ke,!(!_(Ke)&&be===void 0||je(be)))return E(Ke)||(Ke=function(wt,mt){if(typeof rn=="function"&&(mt=rn.call(this,wt,mt)),!je(mt))return mt}),We[1]=Ke,te.apply(null,We)}})}K[ue][he]||U(K[ue],he,K[ue].valueOf),ie(K,fe),M[ye]=!0},function(i,r,o){var s=o(30),d=o(126).f,c={}.toString,u=(typeof window>"u"?"undefined":Ht(window))=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],g=function(C){try{return d(C)}catch{return u.slice()}};i.exports.f=function(C){return u&&c.call(C)=="[object Window]"?g(C):d(s(C))}},function(i,r,o){var s=o(12);s("asyncIterator")},function(i,r){},function(i,r,o){var s=o(12);s("hasInstance")},function(i,r,o){var s=o(12);s("isConcatSpreadable")},function(i,r,o){var s=o(12);s("match")},function(i,r,o){var s=o(12);s("matchAll")},function(i,r,o){var s=o(12);s("replace")},function(i,r,o){var s=o(12);s("search")},function(i,r,o){var s=o(12);s("species")},function(i,r,o){var s=o(12);s("split")},function(i,r,o){var s=o(12);s("toPrimitive")},function(i,r,o){var s=o(12);s("toStringTag")},function(i,r,o){var s=o(12);s("unscopables")},function(i,r,o){var s=o(37);s(Math,"Math",!0)},function(i,r,o){var s=o(8),d=o(37);d(s.JSON,"JSON",!0)},function(i,r,o){var s=o(12);s("asyncDispose")},function(i,r,o){var s=o(12);s("dispose")},function(i,r,o){var s=o(12);s("observable")},function(i,r,o){var s=o(12);s("patternMatch")},function(i,r,o){var s=o(12);s("replaceAll")},function(i,r,o){i.exports=o(257)},function(i,r,o){var s=o(258);i.exports=s},function(i,r,o){o(259);var s=o(9);i.exports=s.parseInt},function(i,r,o){var s=o(5),d=o(260);s({global:!0,forced:parseInt!=d},{parseInt:d})},function(i,r,o){var s=o(8),d=o(90).trim,c=o(68),u=s.parseInt,g=/^[+-]?0[Xx]/,y=u(c+"08")!==8||u(c+"0x16")!==22;i.exports=y?function(w,A){var E=d(String(w));return u(E,A>>>0||(g.test(E)?16:10))}:u},function(i,r,o){var s=o(262);i.exports=s},function(i,r,o){var s=o(263),d=Array.prototype;i.exports=function(c){var u=c.slice;return c===d||c instanceof Array&&u===d.slice?s:u}},function(i,r,o){o(264);var s=o(15);i.exports=s("Array").slice},function(i,r,o){var s=o(5),d=o(13),c=o(55),u=o(79),g=o(35),y=o(30),C=o(69),w=o(10),A=o(56),E=o(22),_=A("slice"),v=E("slice",{ACCESSORS:!0,0:0,1:2}),m=w("species"),b=[].slice,S=Math.max;s({target:"Array",proto:!0,forced:!_||!v},{slice:function(O,D){var R=y(this),I=g(R.length),z=u(O,I),T=u(D===void 0?I:D,I),B,L,U;if(c(R)&&(B=R.constructor,typeof B=="function"&&(B===Array||c(B.prototype))?B=void 0:d(B)&&(B=B[m],B===null&&(B=void 0)),B===Array||B===void 0))return b.call(R,z,T);for(L=new(B===void 0?Array:B)(S(T-z,0)),U=0;z<T;z++,U++)z in R&&C(L,U,R[z]);return L.length=U,L}})},function(i,r,o){o(266);var s=o(9);i.exports=s.setTimeout},function(i,r,o){var s=o(5),d=o(8),c=o(84),u=[].slice,g=/MSIE .\./.test(c),y=function(w){return function(A,E){var _=arguments.length>2,v=_?u.call(arguments,2):void 0;return w(_?function(){(typeof A=="function"?A:Function(A)).apply(this,v)}:A,E)}};s({global:!0,bind:!0,forced:g},{setTimeout:y(d.setTimeout),setInterval:y(d.setInterval)})},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(128));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(272)),y=u.__importDefault(o(273)),C=u.__importDefault(o(129)),w=u.__importDefault(o(274)),A=u.__importDefault(o(275)),E=u.__importDefault(o(276)),_=u.__importDefault(o(130)),v=u.__importDefault(o(277)),m=u.__importDefault(o(278)),b=u.__importDefault(o(279)),S=(0,c.default)({},g.default,y.default,C.default,A.default,w.default,E.default,_.default,v.default,m.default,b.default,{linkCheck:function(O,D){return!0}});r.default=S},function(i,r,o){var s=o(269);i.exports=s},function(i,r,o){o(270);var s=o(9);i.exports=s.Object.assign},function(i,r,o){var s=o(5),d=o(271);s({target:"Object",stat:!0,forced:Object.assign!==d},{assign:d})},function(i,r,o){var s=o(14),d=o(11),c=o(52),u=o(127),g=o(59),y=o(31),C=o(72),w=Object.assign,A=Object.defineProperty;i.exports=!w||d(function(){if(s&&w({b:1},w(A({},"a",{enumerable:!0,get:function(){A(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var E={},_={},v=Symbol(),m="abcdefghijklmnopqrst";return E[v]=7,m.split("").forEach(function(b){_[b]=b}),w({},E)[v]!=7||c(w({},_)).join("")!=m})?function(_,v){for(var m=y(_),b=arguments.length,S=1,x=u.f,O=g.f;b>S;)for(var D=C(arguments[S++]),R=x?c(D).concat(x(D)):c(D),I=R.length,z=0,T;I>z;)T=R[z++],(!s||O.call(D,T))&&(m[T]=D[T]);return m}:w},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.default={menus:["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","todo","justify","quote","emoticon","image","video","table","code","splitLine","undo","redo"],fontNames:["\u9ED1\u4F53","\u4EFF\u5B8B","\u6977\u4F53","\u6807\u6977\u4F53","\u534E\u6587\u4EFF\u5B8B","\u534E\u6587\u6977\u4F53","\u5B8B\u4F53","\u5FAE\u8F6F\u96C5\u9ED1","Arial","Tahoma","Verdana","Times New Roman","Courier New"],fontSizes:{"x-small":{name:"10px",value:"1"},small:{name:"13px",value:"2"},normal:{name:"16px",value:"3"},large:{name:"18px",value:"4"},"x-large":{name:"24px",value:"5"},"xx-large":{name:"32px",value:"6"},"xxx-large":{name:"48px",value:"7"}},colors:["#000000","#ffffff","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b"],languageType:["Bash","C","C#","C++","CSS","Java","JavaScript","JSON","TypeScript","Plain text","Html","XML","SQL","Go","Kotlin","Lua","Markdown","PHP","Python","Shell Session","Ruby"],languageTab:"\u3000\u3000\u3000\u3000",emotions:[{title:"\u8868\u60C5",type:"emoji",content:"\u{1F600} \u{1F603} \u{1F604} \u{1F601} \u{1F606} \u{1F605} \u{1F602} \u{1F923} \u{1F60A} \u{1F607} \u{1F642} \u{1F643} \u{1F609} \u{1F60C} \u{1F60D} \u{1F618} \u{1F617} \u{1F619} \u{1F61A} \u{1F60B} \u{1F61B} \u{1F61D} \u{1F61C} \u{1F913} \u{1F60E} \u{1F60F} \u{1F612} \u{1F61E} \u{1F614} \u{1F61F} \u{1F615} \u{1F641} \u{1F623} \u{1F616} \u{1F62B} \u{1F629} \u{1F622} \u{1F62D} \u{1F624} \u{1F620} \u{1F621} \u{1F633} \u{1F631} \u{1F628} \u{1F917} \u{1F914} \u{1F636} \u{1F611} \u{1F62C} \u{1F644} \u{1F62F} \u{1F634} \u{1F637} \u{1F911} \u{1F608} \u{1F921} \u{1F4A9} \u{1F47B} \u{1F480} \u{1F440} \u{1F463}".split(/\s/)},{title:"\u624B\u52BF",type:"emoji",content:"\u{1F450} \u{1F64C} \u{1F44F} \u{1F91D} \u{1F44D} \u{1F44E} \u{1F44A} \u270A \u{1F91B} \u{1F91C} \u{1F91E} \u270C\uFE0F \u{1F918} \u{1F44C} \u{1F448} \u{1F449} \u{1F446} \u{1F447} \u261D\uFE0F \u270B \u{1F91A} \u{1F590} \u{1F596} \u{1F44B} \u{1F919} \u{1F4AA} \u{1F595} \u270D\uFE0F \u{1F64F}".split(/\s/)}],lineHeights:["1","1.15","1.6","2","2.5","3"],undoLimit:20,indentation:"2em",showMenuTooltips:!0,menuTooltipPosition:"up"}},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(7);function u(g,y,C){window.alert(g),C&&console.error("wangEditor: "+C)}r.default={onchangeTimeout:200,onchange:null,onfocus:c.EMPTY_FN,onblur:c.EMPTY_FN,onCatalogChange:null,customAlert:u}},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.default={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(u){return u}}},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.default={styleWithCSS:!1}},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(7);r.default={linkImgCheck:function(g,y,C){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:c.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5*1024*1024,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:10*1e3,withCredentials:!1,customUploadImg:null,uploadImgFromMedia:null}},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.default={lang:"zh-CN",languages:{"zh-CN":{wangEditor:{\u91CD\u7F6E:"\u91CD\u7F6E",\u63D2\u5165:"\u63D2\u5165",\u9ED8\u8BA4:"\u9ED8\u8BA4",\u521B\u5EFA:"\u521B\u5EFA",\u4FEE\u6539:"\u4FEE\u6539",\u5982:"\u5982",\u8BF7\u8F93\u5165\u6B63\u6587:"\u8BF7\u8F93\u5165\u6B63\u6587",menus:{title:{\u6807\u9898:"\u6807\u9898",\u52A0\u7C97:"\u52A0\u7C97",\u5B57\u53F7:"\u5B57\u53F7",\u5B57\u4F53:"\u5B57\u4F53",\u659C\u4F53:"\u659C\u4F53",\u4E0B\u5212\u7EBF:"\u4E0B\u5212\u7EBF",\u5220\u9664\u7EBF:"\u5220\u9664\u7EBF",\u7F29\u8FDB:"\u7F29\u8FDB",\u884C\u9AD8:"\u884C\u9AD8",\u6587\u5B57\u989C\u8272:"\u6587\u5B57\u989C\u8272",\u80CC\u666F\u8272:"\u80CC\u666F\u8272",\u94FE\u63A5:"\u94FE\u63A5",\u5E8F\u5217:"\u5E8F\u5217",\u5BF9\u9F50:"\u5BF9\u9F50",\u5F15\u7528:"\u5F15\u7528",\u8868\u60C5:"\u8868\u60C5",\u56FE\u7247:"\u56FE\u7247",\u89C6\u9891:"\u89C6\u9891",\u8868\u683C:"\u8868\u683C",\u4EE3\u7801:"\u4EE3\u7801",\u5206\u5272\u7EBF:"\u5206\u5272\u7EBF",\u6062\u590D:"\u6062\u590D",\u64A4\u9500:"\u64A4\u9500",\u5168\u5C4F:"\u5168\u5C4F",\u53D6\u6D88\u5168\u5C4F:"\u53D6\u6D88\u5168\u5C4F",\u5F85\u529E\u4E8B\u9879:"\u5F85\u529E\u4E8B\u9879"},dropListMenu:{\u8BBE\u7F6E\u6807\u9898:"\u8BBE\u7F6E\u6807\u9898",\u80CC\u666F\u989C\u8272:"\u80CC\u666F\u989C\u8272",\u6587\u5B57\u989C\u8272:"\u6587\u5B57\u989C\u8272",\u8BBE\u7F6E\u5B57\u53F7:"\u8BBE\u7F6E\u5B57\u53F7",\u8BBE\u7F6E\u5B57\u4F53:"\u8BBE\u7F6E\u5B57\u4F53",\u8BBE\u7F6E\u7F29\u8FDB:"\u8BBE\u7F6E\u7F29\u8FDB",\u5BF9\u9F50\u65B9\u5F0F:"\u5BF9\u9F50\u65B9\u5F0F",\u8BBE\u7F6E\u884C\u9AD8:"\u8BBE\u7F6E\u884C\u9AD8",\u5E8F\u5217:"\u5E8F\u5217",head:{\u6B63\u6587:"\u6B63\u6587"},indent:{\u589E\u52A0\u7F29\u8FDB:"\u589E\u52A0\u7F29\u8FDB",\u51CF\u5C11\u7F29\u8FDB:"\u51CF\u5C11\u7F29\u8FDB"},justify:{\u9760\u5DE6:"\u9760\u5DE6",\u5C45\u4E2D:"\u5C45\u4E2D",\u9760\u53F3:"\u9760\u53F3",\u4E24\u7AEF:"\u4E24\u7AEF"},list:{\u65E0\u5E8F\u5217\u8868:"\u65E0\u5E8F\u5217\u8868",\u6709\u5E8F\u5217\u8868:"\u6709\u5E8F\u5217\u8868"}},panelMenus:{emoticon:{\u9ED8\u8BA4:"\u9ED8\u8BA4",\u65B0\u6D6A:"\u65B0\u6D6A",emoji:"emoji",\u624B\u52BF:"\u624B\u52BF"},image:{\u4E0A\u4F20\u56FE\u7247:"\u4E0A\u4F20\u56FE\u7247",\u7F51\u7EDC\u56FE\u7247:"\u7F51\u7EDC\u56FE\u7247",\u56FE\u7247\u5730\u5740:"\u56FE\u7247\u5730\u5740",\u56FE\u7247\u6587\u5B57\u8BF4\u660E:"\u56FE\u7247\u6587\u5B57\u8BF4\u660E",\u8DF3\u8F6C\u94FE\u63A5:"\u8DF3\u8F6C\u94FE\u63A5"},link:{\u94FE\u63A5:"\u94FE\u63A5",\u94FE\u63A5\u6587\u5B57:"\u94FE\u63A5\u6587\u5B57",\u53D6\u6D88\u94FE\u63A5:"\u53D6\u6D88\u94FE\u63A5",\u67E5\u770B\u94FE\u63A5:"\u67E5\u770B\u94FE\u63A5"},video:{\u63D2\u5165\u89C6\u9891:"\u63D2\u5165\u89C6\u9891",\u4E0A\u4F20\u89C6\u9891:"\u4E0A\u4F20\u89C6\u9891"},table:{\u884C:"\u884C",\u5217:"\u5217",\u7684:"\u7684",\u8868\u683C:"\u8868\u683C",\u6DFB\u52A0\u884C:"\u6DFB\u52A0\u884C",\u5220\u9664\u884C:"\u5220\u9664\u884C",\u6DFB\u52A0\u5217:"\u6DFB\u52A0\u5217",\u5220\u9664\u5217:"\u5220\u9664\u5217",\u8BBE\u7F6E\u8868\u5934:"\u8BBE\u7F6E\u8868\u5934",\u53D6\u6D88\u8868\u5934:"\u53D6\u6D88\u8868\u5934",\u63D2\u5165\u8868\u683C:"\u63D2\u5165\u8868\u683C",\u5220\u9664\u8868\u683C:"\u5220\u9664\u8868\u683C"},code:{\u5220\u9664\u4EE3\u7801:"\u5220\u9664\u4EE3\u7801",\u4FEE\u6539\u4EE3\u7801:"\u4FEE\u6539\u4EE3\u7801",\u63D2\u5165\u4EE3\u7801:"\u63D2\u5165\u4EE3\u7801"}}},validate:{\u5F20\u56FE\u7247:"\u5F20\u56FE\u7247",\u5927\u4E8E:"\u5927\u4E8E",\u56FE\u7247\u94FE\u63A5:"\u56FE\u7247\u94FE\u63A5",\u4E0D\u662F\u56FE\u7247:"\u4E0D\u662F\u56FE\u7247",\u8FD4\u56DE\u7ED3\u679C:"\u8FD4\u56DE\u7ED3\u679C",\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6:"\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6",\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF:"\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF",\u4E0A\u4F20\u56FE\u7247\u5931\u8D25:"\u4E0A\u4F20\u56FE\u7247\u5931\u8D25",\u63D2\u5165\u56FE\u7247\u9519\u8BEF:"\u63D2\u5165\u56FE\u7247\u9519\u8BEF",\u4E00\u6B21\u6700\u591A\u4E0A\u4F20:"\u4E00\u6B21\u6700\u591A\u4E0A\u4F20",\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25:"\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25",\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7:"\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7",\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001:"\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001",\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF",\u8BF7\u66FF\u6362\u4E3A\u652F\u6301\u7684\u56FE\u7247\u7C7B\u578B:"\u8BF7\u66FF\u6362\u4E3A\u652F\u6301\u7684\u56FE\u7247\u7C7B\u578B",\u60A8\u63D2\u5165\u7684\u7F51\u7EDC\u56FE\u7247\u65E0\u6CD5\u8BC6\u522B:"\u60A8\u63D2\u5165\u7684\u7F51\u7EDC\u56FE\u7247\u65E0\u6CD5\u8BC6\u522B",\u60A8\u521A\u624D\u63D2\u5165\u7684\u56FE\u7247\u94FE\u63A5\u672A\u901A\u8FC7\u7F16\u8F91\u5668\u6821\u9A8C:"\u60A8\u521A\u624D\u63D2\u5165\u7684\u56FE\u7247\u94FE\u63A5\u672A\u901A\u8FC7\u7F16\u8F91\u5668\u6821\u9A8C",\u63D2\u5165\u89C6\u9891\u9519\u8BEF:"\u63D2\u5165\u89C6\u9891\u9519\u8BEF",\u89C6\u9891\u94FE\u63A5:"\u89C6\u9891\u94FE\u63A5",\u4E0D\u662F\u89C6\u9891:"\u4E0D\u662F\u89C6\u9891",\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7:"\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7",\u4E2A\u89C6\u9891:"\u4E2A\u89C6\u9891",\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6:"\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6",\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF:"\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF",\u4E0A\u4F20\u89C6\u9891\u5931\u8D25:"\u4E0A\u4F20\u89C6\u9891\u5931\u8D25",\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF"}}},en:{wangEditor:{\u91CD\u7F6E:"reset",\u63D2\u5165:"insert",\u9ED8\u8BA4:"default",\u521B\u5EFA:"create",\u4FEE\u6539:"edit",\u5982:"like",\u8BF7\u8F93\u5165\u6B63\u6587:"please enter the text",menus:{title:{\u6807\u9898:"head",\u52A0\u7C97:"bold",\u5B57\u53F7:"font size",\u5B57\u4F53:"font family",\u659C\u4F53:"italic",\u4E0B\u5212\u7EBF:"underline",\u5220\u9664\u7EBF:"strikethrough",\u7F29\u8FDB:"indent",\u884C\u9AD8:"line heihgt",\u6587\u5B57\u989C\u8272:"font color",\u80CC\u666F\u8272:"background",\u94FE\u63A5:"link",\u5E8F\u5217:"numbered list",\u5BF9\u9F50:"align",\u5F15\u7528:"quote",\u8868\u60C5:"emoticons",\u56FE\u7247:"image",\u89C6\u9891:"media",\u8868\u683C:"table",\u4EE3\u7801:"code",\u5206\u5272\u7EBF:"split line",\u6062\u590D:"redo",\u64A4\u9500:"undo",\u5168\u5C4F:"fullscreen",\u53D6\u6D88\u5168\u5C4F:"cancel fullscreen",\u5F85\u529E\u4E8B\u9879:"todo"},dropListMenu:{\u8BBE\u7F6E\u6807\u9898:"title",\u80CC\u666F\u989C\u8272:"background",\u6587\u5B57\u989C\u8272:"font color",\u8BBE\u7F6E\u5B57\u53F7:"font size",\u8BBE\u7F6E\u5B57\u4F53:"font family",\u8BBE\u7F6E\u7F29\u8FDB:"indent",\u5BF9\u9F50\u65B9\u5F0F:"align",\u8BBE\u7F6E\u884C\u9AD8:"line heihgt",\u5E8F\u5217:"list",head:{\u6B63\u6587:"text"},indent:{\u589E\u52A0\u7F29\u8FDB:"indent",\u51CF\u5C11\u7F29\u8FDB:"outdent"},justify:{\u9760\u5DE6:"left",\u5C45\u4E2D:"center",\u9760\u53F3:"right",\u4E24\u7AEF:"justify"},list:{\u65E0\u5E8F\u5217\u8868:"unordered",\u6709\u5E8F\u5217\u8868:"ordered"}},panelMenus:{emoticon:{\u8868\u60C5:"emoji",\u624B\u52BF:"gesture"},image:{\u4E0A\u4F20\u56FE\u7247:"upload image",\u7F51\u7EDC\u56FE\u7247:"network image",\u56FE\u7247\u5730\u5740:"image link",\u56FE\u7247\u6587\u5B57\u8BF4\u660E:"image alt",\u8DF3\u8F6C\u94FE\u63A5:"hyperlink"},link:{\u94FE\u63A5:"link",\u94FE\u63A5\u6587\u5B57:"link text",\u53D6\u6D88\u94FE\u63A5:"unlink",\u67E5\u770B\u94FE\u63A5:"view links"},video:{\u63D2\u5165\u89C6\u9891:"insert video",\u4E0A\u4F20\u89C6\u9891:"upload local video"},table:{\u884C:"rows",\u5217:"columns",\u7684:" ",\u8868\u683C:"table",\u6DFB\u52A0\u884C:"insert row",\u5220\u9664\u884C:"delete row",\u6DFB\u52A0\u5217:"insert column",\u5220\u9664\u5217:"delete column",\u8BBE\u7F6E\u8868\u5934:"set header",\u53D6\u6D88\u8868\u5934:"cancel header",\u63D2\u5165\u8868\u683C:"insert table",\u5220\u9664\u8868\u683C:"delete table"},code:{\u5220\u9664\u4EE3\u7801:"delete code",\u4FEE\u6539\u4EE3\u7801:"edit code",\u63D2\u5165\u4EE3\u7801:"insert code"}}},validate:{\u5F20\u56FE\u7247:"images",\u5927\u4E8E:"greater than",\u56FE\u7247\u94FE\u63A5:"image link",\u4E0D\u662F\u56FE\u7247:"is not image",\u8FD4\u56DE\u7ED3\u679C:"return results",\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6:"upload image timeout",\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF:"upload image error",\u4E0A\u4F20\u56FE\u7247\u5931\u8D25:"upload image failed",\u63D2\u5165\u56FE\u7247\u9519\u8BEF:"insert image error",\u4E00\u6B21\u6700\u591A\u4E0A\u4F20:"once most at upload",\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25:"download link failed",\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7:"image validate failed",\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001:"server return status",\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"upload image return results error",\u8BF7\u66FF\u6362\u4E3A\u652F\u6301\u7684\u56FE\u7247\u7C7B\u578B:"please replace with a supported image type",\u60A8\u63D2\u5165\u7684\u7F51\u7EDC\u56FE\u7247\u65E0\u6CD5\u8BC6\u522B:"the network picture you inserted is not recognized",\u60A8\u521A\u624D\u63D2\u5165\u7684\u56FE\u7247\u94FE\u63A5\u672A\u901A\u8FC7\u7F16\u8F91\u5668\u6821\u9A8C:"the image link you just inserted did not pass the editor verification",\u63D2\u5165\u89C6\u9891\u9519\u8BEF:"insert video error",\u89C6\u9891\u94FE\u63A5:"video link",\u4E0D\u662F\u89C6\u9891:"is not video",\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7:"video validate failed",\u4E2A\u89C6\u9891:"videos",\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6:"upload video timeout",\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF:"upload video error",\u4E0A\u4F20\u89C6\u9891\u5931\u8D25:"upload video failed",\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"upload video return results error"}}}}}},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(6);function u(){return!!(c.UA.isIE()||c.UA.isOldEdge)}r.default={compatibleMode:u,historyMaxSize:30}},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(7);r.default={onlineVideoCheck:function(g){return!0},onlineVideoCallback:c.EMPTY_FN,showLinkVideo:!0,uploadVideoAccept:["mp4"],uploadVideoServer:"",uploadVideoMaxSize:1*1024*1024*1024,uploadVideoName:"",uploadVideoParams:{},uploadVideoParamsWithUrl:!1,uploadVideoHeaders:{},uploadVideoHooks:{},uploadVideoTimeout:1e3*60*60*2,withVideoCredentials:!1,customUploadVideo:null,customInsertVideo:null}},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(17));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=o(6),C=o(7),w=function(){function A(E){this._currentRange=null,this.editor=E}return A.prototype.getRange=function(){return this._currentRange},A.prototype.saveRange=function(E){if(E){this._currentRange=E;return}var _=window.getSelection();if(_.rangeCount!==0){var v=_.getRangeAt(0),m=this.getSelectionContainerElem(v);if(!!(m!=null&&m.length)&&!(m.attr("contenteditable")==="false"||m.parentUntil("[contenteditable=false]"))){var b=this.editor,S=b.$textElem;if(S.isContain(m)){if(S.elems[0]===m.elems[0]){var x;if((0,c.default)(x=S.html()).call(x)===C.EMPTY_P){var O=S.children(),D=O==null?void 0:O.last();b.selection.createRangeByElem(D,!0,!0),b.selection.restoreSelection()}}this._currentRange=v}}}},A.prototype.collapseRange=function(E){E===void 0&&(E=!1);var _=this._currentRange;_&&_.collapse(E)},A.prototype.getSelectionText=function(){var E=this._currentRange;return E?E.toString():""},A.prototype.getSelectionContainerElem=function(E){var _;_=E||this._currentRange;var v;if(_)return v=_.commonAncestorContainer,g.default(v.nodeType===1?v:v.parentNode)},A.prototype.getSelectionStartElem=function(E){var _;_=E||this._currentRange;var v;if(_)return v=_.startContainer,g.default(v.nodeType===1?v:v.parentNode)},A.prototype.getSelectionEndElem=function(E){var _;_=E||this._currentRange;var v;if(_)return v=_.endContainer,g.default(v.nodeType===1?v:v.parentNode)},A.prototype.isSelectionEmpty=function(){var E=this._currentRange;return!!(E&&E.startContainer&&E.startContainer===E.endContainer&&E.startOffset===E.endOffset)},A.prototype.restoreSelection=function(){var E=window.getSelection(),_=this._currentRange;E&&_&&(E.removeAllRanges(),E.addRange(_))},A.prototype.createEmptyRange=function(){var E=this.editor,_=this.getRange(),v;if(!!_&&!!this.isSelectionEmpty())try{y.UA.isWebkit()?(E.cmd.do("insertHTML","&#8203;"),_.setEnd(_.endContainer,_.endOffset+1),this.saveRange(_)):(v=g.default("<strong>&#8203;</strong>"),E.cmd.do("insertElem",v),this.createRangeByElem(v,!0))}catch{}},A.prototype.createRangeByElems=function(E,_){var v=window.getSelection?window.getSelection():document.getSelection();v==null||v.removeAllRanges();var m=document.createRange();m.setStart(E,0),m.setEnd(_,_.childNodes.length||1),this.saveRange(m),this.restoreSelection()},A.prototype.createRangeByElem=function(E,_,v){if(!!E.length){var m=E.elems[0],b=document.createRange();v?b.selectNodeContents(m):b.selectNode(m),_!=null&&(b.collapse(_),_||(this.saveRange(b),this.editor.selection.moveCursor(m))),this.saveRange(b)}},A.prototype.getSelectionRangeTopNodes=function(){var E,_,v,m=(E=this.getSelectionStartElem())===null||E===void 0?void 0:E.getNodeTop(this.editor),b=(_=this.getSelectionEndElem())===null||_===void 0?void 0:_.getNodeTop(this.editor);return v=this.recordSelectionNodes(g.default(m),g.default(b)),v},A.prototype.moveCursor=function(E,_){var v,m=this.getRange(),b=E.nodeType===3?(v=E.nodeValue)===null||v===void 0?void 0:v.length:E.childNodes.length;(y.UA.isFirefox||y.UA.isIE())&&b!==0&&(E.nodeType===3||E.childNodes[b-1].nodeName==="BR")&&(b=b-1);var S=_!=null?_:b;!m||E&&(m.setStart(E,S),m.setEnd(E,S),this.restoreSelection())},A.prototype.getCursorPos=function(){var E=window.getSelection();return E==null?void 0:E.anchorOffset},A.prototype.clearWindowSelectionRange=function(){var E=window.getSelection();E&&E.removeAllRanges()},A.prototype.recordSelectionNodes=function(E,_){var v=[],m=!0;try{for(var b=E,S=this.editor.$textElem;m;){var x=b==null?void 0:b.getNodeTop(this.editor);x.getNodeName()==="BODY"&&(m=!1),x.length>0&&(v.push(g.default(b)),(_==null?void 0:_.equal(x))||S.equal(x)?m=!1:b=x.getNextSibling())}}catch{m=!1}return v},A.prototype.setRangeToElem=function(E){var _=this.getRange();_==null||_.setStart(E,0),_==null||_.setEnd(E,0)},A}();r.default=w},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(3)),g=function(){function y(C){this.editor=C}return y.prototype.do=function(C,w){var A=this.editor;A.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var E=A.selection;if(!!E.getRange()){switch(E.restoreSelection(),C){case"insertHTML":this.insertHTML(w);break;case"insertElem":this.insertElem(w);break;default:this.execCommand(C,w);break}A.menus.changeActive(),E.saveRange(),E.restoreSelection()}},y.prototype.insertHTML=function(C){var w=this.editor,A=w.selection.getRange();if(A!=null){if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",C);else if(A.insertNode){if(A.deleteContents(),u.default(C).elems.length>0)A.insertNode(u.default(C).elems[0]);else{var E=document.createElement("p");E.appendChild(document.createTextNode(C)),A.insertNode(E)}w.selection.collapseRange()}}},y.prototype.insertElem=function(C){var w=this.editor,A=w.selection.getRange();A!=null&&A.insertNode&&(A.deleteContents(),A.insertNode(C.elems[0]))},y.prototype.execCommand=function(C,w){document.execCommand(C,!1,w)},y.prototype.queryCommandValue=function(C){return document.queryCommandValue(C)},y.prototype.queryCommandState=function(C){return document.queryCommandState(C)},y.prototype.queryCommandSupported=function(C){return document.queryCommandSupported(C)},y}();r.default=g},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(29)),u=s(o(4)),g=s(o(17)),y=s(o(27)),C=s(o(46));(0,d.default)(r,"__esModule",{value:!0});var w=o(2),A=w.__importDefault(o(3)),E=w.__importDefault(o(287)),_=o(6),v=w.__importDefault(o(299)),m=w.__importDefault(o(300)),b=o(7),S=function(){function x(O){this.editor=O,this.eventHooks={onBlurEvents:[],changeEvents:[],dropEvents:[],clickEvents:[],keydownEvents:[],keyupEvents:[],tabUpEvents:[],tabDownEvents:[],enterUpEvents:[],enterDownEvents:[],deleteUpEvents:[],deleteDownEvents:[],pasteEvents:[],linkClickEvents:[],codeClickEvents:[],textScrollEvents:[],toolbarClickEvents:[],imgClickEvents:[],imgDragBarMouseDownEvents:[],tableClickEvents:[],menuClickEvents:[],dropListMenuHoverEvents:[],splitLineEvents:[],videoClickEvents:[]}}return x.prototype.init=function(){this._saveRange(),this._bindEventHooks(),E.default(this)},x.prototype.togglePlaceholder=function(){var O,D=this.html(),R=(0,c.default)(O=this.editor.$textContainerElem).call(O,".placeholder");R.hide(),!this.editor.isComposing&&(!D||D===" ")&&R.show()},x.prototype.clear=function(){this.html(b.EMPTY_P)},x.prototype.html=function(O){var D=this.editor,R=D.$textElem;if(O==null){var I=R.html();I=I.replace(/\u200b/gm,""),I=I.replace(/<p><\/p>/gim,""),I=I.replace(b.EMPTY_P_LAST_REGEX,""),I=I.replace(b.EMPTY_P_REGEX,"<p>");var z=I.match(/<(img|br|hr|input)[^>]*>/gi);return z!==null&&(0,u.default)(z).call(z,function(T){T.match(/\/>/)||(I=I.replace(T,T.substring(0,T.length-1)+"/>"))}),I}O=(0,g.default)(O).call(O),O===""&&(O=b.EMPTY_P),(0,y.default)(O).call(O,"<")!==0&&(O="<p>"+O+"</p>"),R.html(O),D.initSelection()},x.prototype.setJSON=function(O){var D=m.default(O).children(),R=this.editor,I=R.$textElem;!D||I.replaceChildAll(D)},x.prototype.getJSON=function(){var O=this.editor,D=O.$textElem;return v.default(D)},x.prototype.text=function(O){var D=this.editor,R=D.$textElem;if(O==null){var I=R.text();return I=I.replace(/\u200b/gm,""),I}R.text("<p>"+O+"</p>"),D.initSelection()},x.prototype.append=function(O){var D=this.editor;(0,y.default)(O).call(O,"<")!==0&&(O="<p>"+O+"</p>"),this.html(this.html()+O),D.initSelection()},x.prototype._saveRange=function(){var O=this.editor,D=O.$textElem,R=A.default(document);function I(){O.selection.saveRange(),O.menus.changeActive()}D.on("keyup",I);function z(){I(),D.off("click",z)}D.on("click",z);function T(){I(),R.off("mouseup",T)}function B(){R.on("mouseup",T),D.off("mouseleave",B)}D.on("mousedown",function(){D.on("mouseleave",B)}),D.on("mouseup",function(L){D.off("mouseleave",B),(0,C.default)(function(){var U=O.selection,W=U.getRange();W!==null&&I()},0)})},x.prototype._bindEventHooks=function(){var O=this.editor,D=O.$textElem,R=this.eventHooks;D.on("click",function(z){var T=R.clickEvents;(0,u.default)(T).call(T,function(B){return B(z)})}),D.on("keyup",function(z){if(z.keyCode===13){var T=R.enterUpEvents;(0,u.default)(T).call(T,function(B){return B(z)})}}),D.on("keyup",function(z){var T=R.keyupEvents;(0,u.default)(T).call(T,function(B){return B(z)})}),D.on("keydown",function(z){var T=R.keydownEvents;(0,u.default)(T).call(T,function(B){return B(z)})}),D.on("keyup",function(z){if(!(z.keyCode!==8&&z.keyCode!==46)){var T=R.deleteUpEvents;(0,u.default)(T).call(T,function(B){return B(z)})}}),D.on("keydown",function(z){if(!(z.keyCode!==8&&z.keyCode!==46)){var T=R.deleteDownEvents;(0,u.default)(T).call(T,function(B){return B(z)})}}),D.on("paste",function(z){if(!_.UA.isIE()){z.preventDefault();var T=R.pasteEvents;(0,u.default)(T).call(T,function(B){return B(z)})}}),D.on("keydown",function(z){(O.isFocus||O.isCompatibleMode)&&(z.ctrlKey||z.metaKey)&&z.keyCode===90&&(z.preventDefault(),z.shiftKey?O.history.restore():O.history.revoke())}),D.on("keyup",function(z){if(z.keyCode===9){z.preventDefault();var T=R.tabUpEvents;(0,u.default)(T).call(T,function(B){return B(z)})}}),D.on("keydown",function(z){if(z.keyCode===9){z.preventDefault();var T=R.tabDownEvents;(0,u.default)(T).call(T,function(B){return B(z)})}}),D.on("scroll",_.throttle(function(z){var T=R.textScrollEvents;(0,u.default)(T).call(T,function(B){return B(z)})},100));function I(z){z.preventDefault()}A.default(document).on("dragleave",I).on("drop",I).on("dragenter",I).on("dragover",I),O.beforeDestroy(function(){A.default(document).off("dragleave",I).off("drop",I).off("dragenter",I).off("dragover",I)}),D.on("drop",function(z){z.preventDefault();var T=R.dropEvents;(0,u.default)(T).call(T,function(B){return B(z)})}),D.on("click",function(z){var T=null,B=z.target,L=A.default(B);if(L.getNodeName()==="A")T=L;else{var U=L.parentUntil("a");U!=null&&(T=U)}if(!!T){var W=R.linkClickEvents;(0,u.default)(W).call(W,function(V){return V(T)})}}),D.on("click",function(z){var T=null,B=z.target,L=A.default(B);if(L.getNodeName()==="IMG"&&!L.elems[0].getAttribute("data-emoji")&&(z.stopPropagation(),T=L),!!T){var U=R.imgClickEvents;(0,u.default)(U).call(U,function(W){return W(T)})}}),D.on("click",function(z){var T=null,B=z.target,L=A.default(B);if(L.getNodeName()==="PRE")T=L;else{var U=L.parentUntil("pre");U!==null&&(T=U)}if(!!T){var W=R.codeClickEvents;(0,u.default)(W).call(W,function(V){return V(T)})}}),D.on("click",function(z){var T=null,B=z.target,L=A.default(B);if(L.getNodeName()==="HR"&&(T=L),!!T){O.selection.createRangeByElem(T),O.selection.restoreSelection();var U=R.splitLineEvents;(0,u.default)(U).call(U,function(W){return W(T)})}}),O.$toolbarElem.on("click",function(z){var T=R.toolbarClickEvents;(0,u.default)(T).call(T,function(B){return B(z)})}),O.$textContainerElem.on("mousedown",function(z){var T=z.target,B=A.default(T);if(B.hasClass("w-e-img-drag-rb")){var L=R.imgDragBarMouseDownEvents;(0,u.default)(L).call(L,function(U){return U()})}}),D.on("click",function(z){var T=null,B=z.target;if(T=A.default(B).parentUntilEditor("TABLE",O,B),!!T){var L=R.tableClickEvents;(0,u.default)(L).call(L,function(U){return U(T,z)})}}),D.on("keydown",function(z){if(z.keyCode===13){var T=R.enterDownEvents;(0,u.default)(T).call(T,function(B){return B(z)})}}),D.on("click",function(z){var T=null,B=z.target,L=A.default(B);if(L.getNodeName()==="VIDEO"&&(z.stopPropagation(),T=L),!!T){var U=R.videoClickEvents;(0,u.default)(U).call(U,function(W){return W(T)})}})},x}();r.default=S},function(i,r,o){var s=o(284);i.exports=s},function(i,r,o){var s=o(285),d=Array.prototype;i.exports=function(c){var u=c.find;return c===d||c instanceof Array&&u===d.find?s:u}},function(i,r,o){o(286);var s=o(15);i.exports=s("Array").find},function(i,r,o){var s=o(5),d=o(32).find,c=o(82),u=o(22),g="find",y=!0,C=u(g);g in[]&&Array(1)[g](function(){y=!1}),s({target:"Array",proto:!0,forced:y||!C},{find:function(A){return d(this,A,arguments.length>1?arguments[1]:void 0)}}),c(g)},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(288)),g=c.__importStar(o(289)),y=c.__importDefault(o(290)),C=c.__importDefault(o(291)),w=c.__importDefault(o(298));function A(E){var _=E.editor,v=E.eventHooks;u.default(_,v.enterUpEvents,v.enterDownEvents),g.default(_,v.deleteUpEvents,v.deleteDownEvents),g.cutToKeepP(_,v.keyupEvents),y.default(_,v.tabDownEvents),C.default(_,v.pasteEvents),w.default(_,v.imgClickEvents)}r.default=A},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(27));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=o(7),y=u.__importDefault(o(3));function C(w,A,E){function _(b){var S,x=y.default(g.EMPTY_P);if(x.insertBefore(b),(0,c.default)(S=b.html()).call(S,"<img")>=0){x.remove();return}w.selection.createRangeByElem(x,!0,!0),w.selection.restoreSelection(),b.remove()}function v(){var b=w.$textElem,S=w.selection.getSelectionContainerElem(),x=S.parent();if(x.html()==="<code><br></code>"){_(x);return}if(S.getNodeName()==="FONT"&&S.text()===""&&S.attr("face")==="monospace"){_(x);return}if(!!x.equal(b)){var O=S.getNodeName();O==="P"&&S.attr("data-we-empty-p")===null||S.text()||_(S)}}A.push(v);function m(b){var S;w.selection.saveRange((S=getSelection())===null||S===void 0?void 0:S.getRangeAt(0));var x=w.selection.getSelectionContainerElem();x.id===w.textElemId&&(b.preventDefault(),w.cmd.do("insertHTML","<p><br></p>"))}E.push(m)}r.default=C},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(17)),u=s(o(28));(0,d.default)(r,"__esModule",{value:!0}),r.cutToKeepP=void 0;var g=o(2),y=o(7),C=g.__importDefault(o(3));function w(E,_,v){function m(){var S=E.$textElem,x=E.$textElem.html(),O=E.$textElem.text(),D=(0,c.default)(x).call(x),R=["<p><br></p>","<br>",'<p data-we-empty-p=""></p>',y.EMPTY_P];if(/^\s*$/.test(O)&&(!D||(0,u.default)(R).call(R,D))){S.html(y.EMPTY_P);var I=S.getNode();E.selection.createRangeByElems(I.childNodes[0],I.childNodes[0]);var z=E.selection.getSelectionContainerElem();E.selection.restoreSelection(),E.selection.moveCursor(z.getNode(),0)}}_.push(m);function b(S){var x,O=E.$textElem,D=(0,c.default)(x=O.html().toLowerCase()).call(x);if(D===y.EMPTY_P){S.preventDefault();return}}v.push(b)}function A(E,_){function v(m){var b;if(m.keyCode===88){var S=E.$textElem,x=(0,c.default)(b=S.html().toLowerCase()).call(b);if(!x||x==="<br>"){var O=C.default(y.EMPTY_P);S.html(" "),S.append(O),E.selection.createRangeByElem(O,!1,!0),E.selection.restoreSelection(),E.selection.moveCursor(O.getNode(),0)}}}_.push(v)}r.cutToKeepP=A,r.default=w},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});function c(u,g){function y(){if(!!u.cmd.queryCommandSupported("insertHTML")){var C=u.selection.getSelectionContainerElem();if(!!C){var w=C.parent(),A=C.getNodeName(),E=w.getNodeName();A=="CODE"||E==="CODE"||E==="PRE"||/hljs/.test(E)?u.cmd.do("insertHTML",u.config.languageTab):u.cmd.do("insertHTML","&nbsp;&nbsp;&nbsp;&nbsp;")}}}g.push(y)}r.default=c},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(17)),u=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var g=o(131),y=o(6),C=o(7);function w(m){var b,S=(0,c.default)(b=m.replace(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).call(b),x=document.createElement("div");return x.innerHTML=S,x.innerHTML.replace(/<p><\/p>/gim,"")}function A(m){var b=m.replace(/<br>|<br\/>/gm,`
`).replace(/<[^>]+>/gm,"");return b}function E(m){var b;if(m==="")return!1;var S=document.createElement("div");return S.innerHTML=m,((b=S.firstChild)===null||b===void 0?void 0:b.nodeName)==="P"}function _(m){if(!(m!=null&&m.length))return!1;var b=m.elems[0];return b.nodeName==="P"&&b.innerHTML==="<br>"}function v(m,b){function S(x){var O=m.config,D=O.pasteFilterStyle,R=O.pasteIgnoreImg,I=O.pasteTextHandle,z=g.getPasteHtml(x,D,R),T=g.getPasteText(x);T=T.replace(/\n/gm,"<br>");var B=m.selection.getSelectionContainerElem();if(!!B){var L=B==null?void 0:B.getNodeName(),U=B==null?void 0:B.getNodeTop(m),W="";if(U.elems[0]&&(W=U==null?void 0:U.getNodeName()),L==="CODE"||W==="PRE"){I&&y.isFunction(I)&&(T=""+(I(T)||"")),m.cmd.do("insertHTML",A(T));return}if(C.urlRegex.test(T)&&D){I&&y.isFunction(I)&&(T=""+(I(T)||""));var V=T.replace(C.urlRegex,function(pe){return'<a href="'+pe+'" target="_blank">'+pe+"</a>"}),k=m.selection.getRange(),M=document.createElement("div"),j=document.createDocumentFragment();if(M.innerHTML=V,k==null)return;for(;M.childNodes.length;)j.append(M.childNodes[0]);var Z=j.querySelectorAll("a");(0,u.default)(Z).call(Z,function(pe){pe.innerText=pe.href}),k.insertNode&&(k.deleteContents(),k.insertNode(j)),m.selection.clearWindowSelectionRange();return}if(!!z)try{I&&y.isFunction(I)&&(z=""+(I(z)||""));var J=/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(z);if(J&&D)m.cmd.do("insertHTML",""+w(T));else{var F=w(z);if(E(F)){var ie=m.$textElem;if(m.cmd.do("insertHTML",F),ie.equal(B)){m.selection.createEmptyRange();return}_(U)&&U.remove()}else m.cmd.do("insertHTML",F)}}catch{I&&y.isFunction(I)&&(T=""+(I(T)||"")),m.cmd.do("insertHTML",""+w(T))}}}b.push(S)}r.default=v},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(17)),u=s(o(4)),g=s(o(28));(0,d.default)(r,"__esModule",{value:!0});var y=o(2),C=o(293),w=y.__importDefault(o(297));function A(b){var S=/<span>.*?<\/span>/gi,x=/<span>(.*?)<\/span>/;return b.replace(S,function(O){var D=O.match(x);return D==null?"":D[1]})}function E(b,S){var x;return b=(0,c.default)(x=b.toLowerCase()).call(x),!!(C.IGNORE_TAGS.has(b)||S&&b==="img")}function _(b,S){var x="";x="<"+b;var O=[];(0,u.default)(S).call(S,function(R){O.push(R.name+'="'+R.value+'"')}),O.length>0&&(x=x+" "+O.join(" "));var D=C.EMPTY_TAGS.has(b);return x=x+(D?"/":"")+">",x}function v(b){return"</"+b+">"}function m(b,S,x){S===void 0&&(S=!0),x===void 0&&(x=!1);var O=[],D="";function R(B){B=(0,c.default)(B).call(B),B&&(C.EMPTY_TAGS.has(B)||(D=B))}function I(){D=""}var z=new w.default;z.parse(b,{startElement:function(L,U){if(R(L),!E(L,x)){var W=C.NECESSARY_ATTRS.get(L)||[],V=[];(0,u.default)(U).call(U,function(M){var j=M.name;if(j==="style"){S||V.push(M);return}(0,g.default)(W).call(W,j)!==!1&&V.push(M)});var k=_(L,V);O.push(k)}},characters:function(L){!L||E(D,x)||O.push(L)},endElement:function(L){if(!E(L,x)){var U=v(L);O.push(U),I()}},comment:function(L){R(L)}});var T=O.join("");return T=A(T),T}r.default=m},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(132)),u=s(o(121));(0,d.default)(r,"__esModule",{value:!0}),r.TOP_LEVEL_TAGS=r.EMPTY_TAGS=r.NECESSARY_ATTRS=r.IGNORE_TAGS=void 0,r.IGNORE_TAGS=new c.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),r.NECESSARY_ATTRS=new u.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),r.EMPTY_TAGS=new c.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),r.TOP_LEVEL_TAGS=new c.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(i,r,o){var s=o(295);i.exports=s},function(i,r,o){o(296),o(61),o(50),o(54);var s=o(9);i.exports=s.Set},function(i,r,o){var s=o(122),d=o(124);i.exports=s("Set",function(c){return function(){return c(this,arguments.length?arguments[0]:void 0)}},d)},function(i,r){function o(){}o.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(d,c){c&&(this.contentHandler=c);for(var u,g,y,C=!1,w=this;d.length>0;)d.substring(0,4)=="<!--"?(y=d.indexOf("-->"),y!=-1?(this.contentHandler.comment(d.substring(4,y)),d=d.substring(y+3),C=!1):C=!0):d.substring(0,2)=="</"?this.endTagRe.test(d)?(u=RegExp.lastMatch,g=RegExp.rightContext,u.replace(this.endTagRe,function(){return w.parseEndTag.apply(w,arguments)}),d=g,C=!1):C=!0:d.charAt(0)=="<"&&(this.startTagRe.test(d)?(u=RegExp.lastMatch,g=RegExp.rightContext,u.replace(this.startTagRe,function(){return w.parseStartTag.apply(w,arguments)}),d=g,C=!1):C=!0),C&&(y=d.indexOf("<"),y==-1?(this.contentHandler.characters(d),d=""):(this.contentHandler.characters(d.substring(0,y)),d=d.substring(y))),C=!0},parseStartTag:function(d,c,u){var g=this.parseAttributes(c,u);this.contentHandler.startElement(c,g)},parseEndTag:function(d,c){this.contentHandler.endElement(c)},parseAttributes:function(d,c){var u=this,g=[];return c.replace(this.attrRe,function(y,C,w,A,E,_,v,m){g.push(u.parseAttribute(d,y,C,w,A,E,_,v,m))}),g},parseAttribute:function(d,c,u){var g="";arguments[7]?g=arguments[8]:arguments[5]?g=arguments[6]:arguments[3]&&(g=arguments[4]);var y=!g&&!arguments[3];return{name:u,value:y?null:g}}},i.exports=o},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});function c(u,g){function y(C){u.selection.createRangeByElem(C),u.selection.restoreSelection()}g.push(y)}r.default=c},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=o(6),y=u.__importDefault(o(3));function C(w){var A=[],E=w.childNodes()||[];return(0,c.default)(E).call(E,function(_){var v,m=_.nodeType;if(m===3&&(v=_.textContent||"",v=g.replaceHtmlSymbol(v)),m===1){v={},v=v,v.tag=_.nodeName.toLowerCase();for(var b=[],S=_.attributes,x=S.length||0,O=0;O<x;O++){var D=S[O];b.push({name:D.name,value:D.value})}v.attrs=b,v.children=C(y.default(_))}v&&A.push(v)}),A}r.default=C},function(i,r,o){var s=o(0),d=s(o(92)),c=s(o(1)),u=s(o(4));(0,c.default)(r,"__esModule",{value:!0});var g=o(2),y=g.__importDefault(o(3));function C(w,A){A===void 0&&(A=document.createElement("div"));var E=A;return(0,u.default)(w).call(w,function(_){var v;if(typeof _=="string"&&(v=document.createTextNode(_)),(0,d.default)(_)==="object"){var m;v=document.createElement(_.tag),(0,u.default)(m=_.attrs).call(m,function(b){y.default(v).attr(b.name,b.value)}),_.children&&_.children.length>0&&C(_.children,v.getRootNode())}v&&E.appendChild(v)}),y.default(E)}r.default=C},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(89)),u=s(o(70)),g=s(o(28)),y=s(o(302)),C=s(o(4)),w=s(o(94)),A=s(o(133)),E=s(o(46)),_=s(o(57));(0,d.default)(r,"__esModule",{value:!0});var v=o(2),m=v.__importDefault(o(87)),b=v.__importDefault(o(314)),S=v.__importDefault(o(3)),x=function(){function O(D){this.editor=D,this.menuList=[],this.constructorList=b.default}return O.prototype.extend=function(D,R){!R||typeof R!="function"||(this.constructorList[D]=R)},O.prototype.init=function(){var D,R,I=this,z=this.editor.config,T=z.excludeMenus;(0,c.default)(T)===!1&&(T=[]),z.menus=(0,u.default)(D=z.menus).call(D,function(j){return(0,g.default)(T).call(T,j)===!1});var B=(0,y.default)(m.default.globalCustomMenuConstructorList);B=(0,u.default)(B).call(B,function(j){return(0,g.default)(T).call(T,j)}),(0,C.default)(B).call(B,function(j){delete m.default.globalCustomMenuConstructorList[j]}),(0,C.default)(R=z.menus).call(R,function(j){var Z=I.constructorList[j];I._initMenuList(j,Z)});for(var L=0,U=(0,w.default)(m.default.globalCustomMenuConstructorList);L<U.length;L++){var W=U[L],V=W[0],k=W[1],M=k;this._initMenuList(V,M)}this._addToToolbar(),z.showMenuTooltips&&this._bindMenuTooltips()},O.prototype._initMenuList=function(D,R){var I;if(!(R==null||typeof R!="function"))if((0,A.default)(I=this.menuList).call(I,function(T){return T.key===D}))console.warn("\u83DC\u5355\u540D\u79F0\u91CD\u590D:"+D);else{var z=new R(this.editor);z.key=D,this.menuList.push(z)}},O.prototype._bindMenuTooltips=function(){var D=this.editor,R=D.$toolbarElem,I=D.config,z=I.menuTooltipPosition,T=S.default('<div class="w-e-menu-tooltip w-e-menu-tooltip-'+z+`">
<div class="w-e-menu-tooltip-item-wrapper">
<div></div>
</div>
</div>`);T.css("visibility","hidden"),R.append(T),T.css("z-index",D.zIndex.get("tooltip"));var B=0;function L(){B&&clearTimeout(B)}function U(){L(),T.css("visibility","hidden")}R.on("mouseover",function(W){var V=W.target,k=S.default(V),M,j;if(k.isContain(R)){U();return}if(k.parentUntil(".w-e-droplist")!=null)U();else if(k.attr("data-title"))M=k.attr("data-title"),j=k;else{var Z=k.parentUntil(".w-e-menu");Z!=null&&(M=Z.attr("data-title"),j=Z)}if(M&&j){L();var J=j.getOffsetData();T.text(D.i18next.t("menus.title."+M));var F=T.getOffsetData(),ie=J.left+J.width/2-F.width/2;T.css("left",ie+"px"),z==="up"?T.css("top",J.top-F.height-8+"px"):z==="down"&&T.css("top",J.top+J.height+8+"px"),B=(0,E.default)(function(){T.css("visibility","visible")},200)}else U()}).on("mouseleave",function(){U()})},O.prototype._addToToolbar=function(){var D,R=this.editor,I=R.$toolbarElem;(0,C.default)(D=this.menuList).call(D,function(z){var T=z.$elem;T&&I.append(T)})},O.prototype.menuFind=function(D){for(var R=this.menuList,I=0,z=R.length;I<z;I++)if(R[I].key===D)return R[I];return R[0]},O.prototype.changeActive=function(){var D;(0,C.default)(D=this.menuList).call(D,function(R){var I;(0,E.default)((0,_.default)(I=R.tryChangeActive).call(I,R),100)})},O}();r.default=x},function(i,r,o){i.exports=o(303)},function(i,r,o){var s=o(304);i.exports=s},function(i,r,o){o(305);var s=o(9);i.exports=s.Object.keys},function(i,r,o){var s=o(5),d=o(31),c=o(52),u=o(11),g=u(function(){c(1)});s({target:"Object",stat:!0,forced:g},{keys:function(C){return c(d(C))}})},function(i,r,o){var s=o(307);i.exports=s},function(i,r,o){o(308);var s=o(9);i.exports=s.Object.entries},function(i,r,o){var s=o(5),d=o(309).entries;s({target:"Object",stat:!0},{entries:function(u){return d(u)}})},function(i,r,o){var s=o(14),d=o(52),c=o(30),u=o(59).f,g=function(C){return function(w){for(var A=c(w),E=d(A),_=E.length,v=0,m=[],b;_>v;)b=E[v++],(!s||u.call(A,b))&&m.push(C?[b,A[b]]:A[b]);return m}};i.exports={entries:g(!0),values:g(!1)}},function(i,r,o){var s=o(311);i.exports=s},function(i,r,o){var s=o(312),d=Array.prototype;i.exports=function(c){var u=c.some;return c===d||c instanceof Array&&u===d.some?s:u}},function(i,r,o){o(313);var s=o(15);i.exports=s("Array").some},function(i,r,o){var s=o(5),d=o(32).some,c=o(67),u=o(22),g=c("some"),y=u("some");s({target:"Array",proto:!0,forced:!g||!y},{some:function(w){return d(this,w,arguments.length>1?arguments[1]:void 0)}})},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(315)),g=c.__importDefault(o(316)),y=c.__importDefault(o(321)),C=c.__importDefault(o(326)),w=c.__importDefault(o(327)),A=c.__importDefault(o(328)),E=c.__importDefault(o(329)),_=c.__importDefault(o(331)),v=c.__importDefault(o(333)),m=c.__importDefault(o(334)),b=c.__importDefault(o(337)),S=c.__importDefault(o(338)),x=c.__importDefault(o(339)),O=c.__importDefault(o(350)),D=c.__importDefault(o(365)),R=c.__importDefault(o(369)),I=c.__importDefault(o(137)),z=c.__importDefault(o(378)),T=c.__importDefault(o(380)),B=c.__importDefault(o(381)),L=c.__importDefault(o(382)),U=c.__importDefault(o(401)),W=c.__importDefault(o(406)),V=c.__importDefault(o(409));r.default={bold:u.default,head:g.default,italic:C.default,link:y.default,underline:w.default,strikeThrough:A.default,fontName:E.default,fontSize:_.default,justify:v.default,quote:m.default,backColor:b.default,foreColor:S.default,video:x.default,image:O.default,indent:D.default,emoticon:R.default,list:I.default,lineHeight:z.default,undo:T.default,redo:B.default,table:L.default,code:U.default,splitLine:W.default,todo:V.default}},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(23)),g=c.__importDefault(o(3)),y=function(C){c.__extends(w,C);function w(A){var E=this,_=g.default(`<div class="w-e-menu" data-title="\u52A0\u7C97">
<i class="w-e-icon-bold"></i>
</div>`);return E=C.call(this,_,A)||this,E}return w.prototype.clickHandler=function(){var A=this.editor,E=A.selection.isSelectionEmpty();E&&A.selection.createEmptyRange(),A.cmd.do("bold"),E&&(A.selection.collapseRange(),A.selection.restoreSelection())},w.prototype.tryChangeActive=function(){var A=this.editor;A.cmd.queryCommandState("bold")?this.active():this.unActive()},w}(u.default);r.default=y},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(27)),u=s(o(29)),g=s(o(4)),y=s(o(317)),C=s(o(28));(0,d.default)(r,"__esModule",{value:!0});var w=o(2),A=w.__importDefault(o(24)),E=w.__importDefault(o(3)),_=o(6),v=o(7),m=function(b){w.__extends(S,b);function S(x){var O=this,D=E.default('<div class="w-e-menu" data-title="\u6807\u9898"><i class="w-e-icon-header"></i></div>'),R={width:100,title:"\u8BBE\u7F6E\u6807\u9898",type:"list",list:[{$elem:E.default("<h1>H1</h1>"),value:"<h1>"},{$elem:E.default("<h2>H2</h2>"),value:"<h2>"},{$elem:E.default("<h3>H3</h3>"),value:"<h3>"},{$elem:E.default("<h4>H4</h4>"),value:"<h4>"},{$elem:E.default("<h5>H5</h5>"),value:"<h5>"},{$elem:E.default("<p>"+x.i18next.t("menus.dropListMenu.head.\u6B63\u6587")+"</p>"),value:"<p>"}],clickHandler:function(T){O.command(T)}};O=b.call(this,D,x,R)||this;var I=x.config.onCatalogChange;return I&&(O.oldCatalogs=[],O.addListenerCatalog(),O.getCatalogs()),O}return S.prototype.command=function(x){var O=this.editor,D=O.selection.getSelectionContainerElem();if(D&&O.$textElem.equal(D))this.setMultilineHead(x);else{var R;if((0,c.default)(R=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(R,E.default(D).getNodeName())>-1)return;O.cmd.do("formatBlock",x)}x!=="<p>"&&this.addUidForSelectionElem()},S.prototype.addUidForSelectionElem=function(){var x=this.editor,O=x.selection.getSelectionContainerElem(),D=_.getRandomCode();E.default(O).attr("id",D)},S.prototype.addListenerCatalog=function(){var x=this,O=this.editor;O.txt.eventHooks.changeEvents.push(function(){x.getCatalogs()})},S.prototype.getCatalogs=function(){var x=this.editor,O=this.editor.$textElem,D=x.config.onCatalogChange,R=(0,u.default)(O).call(O,"h1,h2,h3,h4,h5"),I=[];(0,g.default)(R).call(R,function(z,T){var B=E.default(z),L=B.attr("id"),U=B.getNodeName(),W=B.text();L||(L=_.getRandomCode(),B.attr("id",L)),W&&I.push({tag:U,id:L,text:W})}),(0,y.default)(this.oldCatalogs)!==(0,y.default)(I)&&(this.oldCatalogs=I,D&&D(I))},S.prototype.setMultilineHead=function(x){var O=this,D,R,I=this.editor,z=I.selection,T=(D=z.getSelectionContainerElem())===null||D===void 0?void 0:D.elems[0],B=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],L=E.default(z.getSelectionStartElem()),U=E.default(z.getSelectionEndElem());U.elems[0].outerHTML===E.default(v.EMPTY_P).elems[0].outerHTML&&!U.elems[0].nextSibling&&(U=U.prev());var W=[];W.push(L.getNodeTop(I));var V=[],k=(R=z.getRange())===null||R===void 0?void 0:R.commonAncestorContainer.childNodes;k==null||(0,g.default)(k).call(k,function(Z,J){Z===W[0].getNode()&&V.push(J),Z===U.getNodeTop(I).getNode()&&V.push(J)});for(var M=0;W[M].getNode()!==U.getNodeTop(I).getNode();){if(!W[M].elems[0])return;var j=E.default(W[M].next().getNode());W.push(j),M++}W==null||(0,g.default)(W).call(W,function(Z,J){if(!O.hasTag(Z,B)){var F=E.default(x),ie=Z.parent().getNode();F.html(""+Z.html()),ie.insertBefore(F.getNode(),Z.getNode()),Z.remove()}}),z.createRangeByElems(T.children[V[0]],T.children[V[1]])},S.prototype.hasTag=function(x,O){var D=this,R;if(!x)return!1;if((0,C.default)(O).call(O,x==null?void 0:x.getNodeName()))return!0;var I=!1;return(R=x.children())===null||R===void 0||(0,g.default)(R).call(R,function(z){I=D.hasTag(E.default(z),O)}),I},S.prototype.tryChangeActive=function(){var x=this.editor,O=/^h/i,D=x.cmd.queryCommandValue("formatBlock");O.test(D)?this.active():this.unActive()},S}(A.default);r.default=m},function(i,r,o){i.exports=o(318)},function(i,r,o){var s=o(319);i.exports=s},function(i,r,o){o(320);var s=o(9);s.JSON||(s.JSON={stringify:JSON.stringify}),i.exports=function(c,u,g){return s.JSON.stringify.apply(null,arguments)}},function(i,r,o){var s=o(5),d=o(36),c=o(11),u=d("JSON","stringify"),g=/[\uD800-\uDFFF]/g,y=/^[\uD800-\uDBFF]$/,C=/^[\uDC00-\uDFFF]$/,w=function(_,v,m){var b=m.charAt(v-1),S=m.charAt(v+1);return y.test(_)&&!C.test(S)||C.test(_)&&!y.test(b)?"\\u"+_.charCodeAt(0).toString(16):_},A=c(function(){return u("\uDF06\uD834")!=='"\\udf06\\ud834"'||u("\uDEAD")!=='"\\udead"'});u&&s({target:"JSON",stat:!0,forced:A},{stringify:function(_,v,m){var b=u.apply(null,arguments);return typeof b=="string"?b.replace(g,w):b}})},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(17));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(38)),y=u.__importDefault(o(3)),C=u.__importDefault(o(322)),w=u.__importStar(o(96)),A=u.__importDefault(o(33)),E=u.__importDefault(o(324)),_=o(7),v=function(m){u.__extends(b,m);function b(S){var x=this,O=y.default('<div class="w-e-menu" data-title="\u94FE\u63A5"><i class="w-e-icon-link"></i></div>');return x=m.call(this,O,S)||this,E.default(S),x}return b.prototype.clickHandler=function(){var S=this.editor,x,O=S.selection.getSelectionContainerElem(),D=S.$textElem,R=D.html(),I=(0,c.default)(R).call(R);if(I===_.EMPTY_P){var z=D.children();S.selection.createRangeByElem(z,!0,!0),O=S.selection.getSelectionContainerElem()}if(!(O&&S.$textElem.equal(O)))if(this.isActive){var T="",B="";if(x=S.selection.getSelectionContainerElem(),!x)return;if(x.getNodeName()!=="A"){var L=w.getParentNodeA(x);x=y.default(L)}T=x.elems[0].innerText,B=x.attr("href"),this.createPanel(T,B)}else S.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(S.selection.getSelectionText(),"")},b.prototype.createPanel=function(S,x){var O=C.default(this.editor,S,x),D=new A.default(this,O);D.create()},b.prototype.tryChangeActive=function(){var S=this.editor;w.default(S)?this.active():this.unActive()},b}(g.default);r.default=v},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(28)),u=s(o(17)),g=s(o(29));(0,d.default)(r,"__esModule",{value:!0});var y=o(2),C=o(6),w=y.__importDefault(o(3)),A=y.__importStar(o(96)),E=o(323);function _(v,m,b){var S=C.getRandom("input-link"),x=C.getRandom("input-text"),O=C.getRandom("btn-ok"),D=C.getRandom("btn-del"),R=A.default(v)?"inline-block":"none",I;function z(){if(!!A.default(v)){var W=v.selection.getSelectionContainerElem();!W||(v.selection.createRangeByElem(W),v.selection.restoreSelection(),I=W)}}function T(W,V){var k=W.replace(/</g,"&lt;").replace(/>/g,"&gt;"),M=w.default('<a target="_blank">'+k+"</a>"),j=M.elems[0];j.innerText=W,j.href=V,A.default(v)&&z(),v.cmd.do("insertElem",M)}function B(){if(!!A.default(v))if(z(),I.getNodeName()==="A"){var W,V=I.elems[0],k=V.parentElement;k&&(0,c.default)(W=A.EXTRA_TAG).call(W,k.nodeName)?k.innerHTML=V.innerHTML:v.cmd.do("insertHTML","<span>"+V.innerHTML+"</span>")}else{var M=A.getParentNodeA(I),j=M.innerHTML;v.cmd.do("insertHTML","<span>"+j+"</span>")}}function L(W,V){var k=v.config.linkCheck(W,V);if(k!==void 0){if(k===!0)return!0;v.config.customAlert(k,"warning")}return!1}var U={width:300,height:0,tabs:[{title:v.i18next.t("menus.panelMenus.link.\u94FE\u63A5"),tpl:`<div>
<input
id="`+x+`"
type="text"
class="block"
placeholder="`+v.i18next.t("menus.panelMenus.link.\u94FE\u63A5\u6587\u5B57")+`"/>
</td>
<input
id="`+S+`"
type="text"
class="block"
placeholder="`+v.i18next.t("\u5982")+` https://..."/>
</td>
<div class="w-e-button-container">
<button type="button" id="`+O+`" class="right">
`+v.i18next.t("\u63D2\u5165")+`
</button>
<button type="button" id="`+D+'" class="gray right" style="display:'+R+`">
`+v.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+`
</button>
</div>
</div>`,events:[{selector:"#"+O,type:"click",fn:function(){var V,k,M,j,Z,J=v.selection.getSelectionContainerElem(),F=J==null?void 0:J.elems[0];v.selection.restoreSelection();var ie=v.selection.getSelectionRangeTopNodes()[0].getNode(),pe=window.getSelection(),se=w.default("#"+S),ye=w.default("#"+x),fe=(0,u.default)(V=se.val()).call(V),ue=(0,u.default)(k=ye.val()).call(k),he="";pe&&!(pe!=null&&pe.isCollapsed)&&(he=(j=E.insertHtml(pe,ie))===null||j===void 0?void 0:(0,u.default)(j).call(j));var $=he==null?void 0:he.replace(/<.*?>/g,""),Y=(Z=$==null?void 0:$.length)!==null&&Z!==void 0?Z:0;if(Y<=ue.length){var Q=ue.substring(0,Y),K=ue.substring(Y);$===Q&&(ue=$+K)}if(!!fe&&(ue||(ue=fe),!!L(ue,fe))){if((F==null?void 0:F.nodeName)==="A")return F.setAttribute("href",fe),F.innerText=ue,!0;if((F==null?void 0:F.nodeName)!=="A"&&(0,c.default)(M=A.EXTRA_TAG).call(M,F.nodeName)){var te=A.getParentNodeA(J);if(te)return te.setAttribute("href",fe),F.innerText=ue,!0}return T(ue,fe),!0}},bindEnter:!0},{selector:"#"+D,type:"click",fn:function(){return B(),!0}}]}],setLinkValue:function(V,k){var M="",j="",Z;k==="text"&&(M="#"+x,j=m),k==="link"&&(M="#"+S,j=b),Z=(0,g.default)(V).call(V,M).elems[0],Z.value=j}};return U}r.default=_},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0}),r.insertHtml=r.createPartHtml=r.makeHtmlString=r.getTopNode=void 0;function u(E,_){var v=E,m=E;do{if(v.textContent===_)break;m=v,v.parentNode&&(v=v==null?void 0:v.parentNode)}while((v==null?void 0:v.nodeName)!=="P");return m}r.getTopNode=u;function g(E,_){var v=E.nodeName,m="";if(E.nodeType===3||/^(h|H)[1-6]$/.test(v))return _;if(E.nodeType===1){var b=E.getAttribute("style"),S=E.getAttribute("face"),x=E.getAttribute("color");b&&(m=m+(' style="'+b+'"')),S&&(m=m+(' face="'+S+'"')),x&&(m=m+(' color="'+x+'"'))}return v=v.toLowerCase(),"<"+v+m+">"+_+"</"+v+">"}r.makeHtmlString=g;function y(E,_,v,m){var b,S=(b=_.textContent)===null||b===void 0?void 0:b.substring(v,m),x=_,O="";do O=g(x,S!=null?S:""),S=O,x=x==null?void 0:x.parentElement;while(x&&x.textContent!==E);return O}r.createPartHtml=y;function C(E,_){var v,m,b,S,x,O=E.anchorNode,D=E.focusNode,R=E.anchorOffset,I=E.focusOffset,z=(v=_.textContent)!==null&&v!==void 0?v:"",T=w(_),B="",L="",U="",W="",V=O,k=D,M=O;if(O!=null&&O.isEqualNode(D!=null?D:null)){var j=y(z,O,R,I);return j=A(T,j),j}for(O&&(L=y(z,O,R!=null?R:0)),D&&(W=y(z,D,0,I)),O&&(V=u(O,z)),D&&(k=u(D,z)),M=(m=V==null?void 0:V.nextSibling)!==null&&m!==void 0?m:O;!(M!=null&&M.isEqualNode(k!=null?k:null));){var Z=M==null?void 0:M.nodeName;if(Z==="#text")U=U+(M==null?void 0:M.textContent);else{var J=(S=(b=M==null?void 0:M.firstChild)===null||b===void 0?void 0:b.parentElement)===null||S===void 0?void 0:S.innerHTML;M&&(U=U+g(M,J!=null?J:""))}var F=(x=M==null?void 0:M.nextSibling)!==null&&x!==void 0?x:M;if(F===M)break;M=F}return B=""+L+U+W,B=A(T,B),B}r.insertHtml=C;function w(E){for(var _,v=(_=E.textContent)!==null&&_!==void 0?_:"",m=[];(E==null?void 0:E.textContent)===v;)E.nodeName!=="P"&&E.nodeName!=="TABLE"&&m.push(E),E=E.childNodes[0];return m}function A(E,_){return(0,c.default)(E).call(E,function(v){_=g(v,_)}),_}},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(325));function g(y){u.default(y)}r.default=g},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(28));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=u.__importDefault(o(39)),C=o(96);function w(E){var _;function v(b){var S=[{$elem:g.default("<span>"+E.i18next.t("menus.panelMenus.link.\u67E5\u770B\u94FE\u63A5")+"</span>"),onClick:function(O,D){var R=D.attr("href");return window.open(R,"_target"),!0}},{$elem:g.default("<span>"+E.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+"</span>"),onClick:function(O,D){var R,I;O.selection.createRangeByElem(D),O.selection.restoreSelection();var z=D.childNodes();if((z==null?void 0:z.getNodeName())==="IMG"){var T=(I=(R=O.selection.getSelectionContainerElem())===null||R===void 0?void 0:R.children())===null||I===void 0?void 0:I.elems[0].children[0];O.cmd.do("insertHTML",`<img
src=`+(T==null?void 0:T.getAttribute("src"))+`
style=`+(T==null?void 0:T.getAttribute("style"))+">")}else{var B,L=D.elems[0],U=L.innerHTML,W=L.parentElement;W&&(0,c.default)(B=C.EXTRA_TAG).call(B,W.nodeName)?W.innerHTML=U:O.cmd.do("insertHTML","<span>"+U+"</span>")}return!0}}];_=new y.default(E,b,S),_.create()}function m(){_&&(_.remove(),_=null)}return{showLinkTooltip:v,hideLinkTooltip:m}}function A(E){var _=w(E),v=_.showLinkTooltip,m=_.hideLinkTooltip;E.txt.eventHooks.linkClickEvents.push(v),E.txt.eventHooks.clickEvents.push(m),E.txt.eventHooks.keyupEvents.push(m),E.txt.eventHooks.toolbarClickEvents.push(m),E.txt.eventHooks.menuClickEvents.push(m),E.txt.eventHooks.textScrollEvents.push(m)}r.default=A},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(23)),g=c.__importDefault(o(3)),y=function(C){c.__extends(w,C);function w(A){var E=this,_=g.default(`<div class="w-e-menu" data-title="\u659C\u4F53">
<i class="w-e-icon-italic"></i>
</div>`);return E=C.call(this,_,A)||this,E}return w.prototype.clickHandler=function(){var A=this.editor,E=A.selection.isSelectionEmpty();E&&A.selection.createEmptyRange(),A.cmd.do("italic"),E&&(A.selection.collapseRange(),A.selection.restoreSelection())},w.prototype.tryChangeActive=function(){var A=this.editor;A.cmd.queryCommandState("italic")?this.active():this.unActive()},w}(u.default);r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(23)),g=c.__importDefault(o(3)),y=function(C){c.__extends(w,C);function w(A){var E=this,_=g.default(`<div class="w-e-menu" data-title="\u4E0B\u5212\u7EBF">
<i class="w-e-icon-underline"></i>
</div>`);return E=C.call(this,_,A)||this,E}return w.prototype.clickHandler=function(){var A=this.editor,E=A.selection.isSelectionEmpty();E&&A.selection.createEmptyRange(),A.cmd.do("underline"),E&&(A.selection.collapseRange(),A.selection.restoreSelection())},w.prototype.tryChangeActive=function(){var A=this.editor;A.cmd.queryCommandState("underline")?this.active():this.unActive()},w}(u.default);r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(23)),g=c.__importDefault(o(3)),y=function(C){c.__extends(w,C);function w(A){var E=this,_=g.default(`<div class="w-e-menu" data-title="\u5220\u9664\u7EBF">
<i class="w-e-icon-strikethrough"></i>
</div>`);return E=C.call(this,_,A)||this,E}return w.prototype.clickHandler=function(){var A=this.editor,E=A.selection.isSelectionEmpty();E&&A.selection.createEmptyRange(),A.cmd.do("strikeThrough"),E&&(A.selection.collapseRange(),A.selection.restoreSelection())},w.prototype.tryChangeActive=function(){var A=this.editor;A.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},w}(u.default);r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(24)),g=c.__importDefault(o(3)),y=c.__importDefault(o(330)),C=function(w){c.__extends(A,w);function A(E){var _=this,v=g.default(`<div class="w-e-menu" data-title="\u5B57\u4F53">
<i class="w-e-icon-font"></i>
</div>`),m=new y.default(E.config.fontNames),b={width:100,title:"\u8BBE\u7F6E\u5B57\u4F53",type:"list",list:m.getItemList(),clickHandler:function(x){_.command(x)}};return _=w.call(this,v,E,b)||this,_}return A.prototype.command=function(E){var _,v=this.editor,m=v.selection.isSelectionEmpty(),b=(_=v.selection.getSelectionContainerElem())===null||_===void 0?void 0:_.elems[0];if(b!=null){var S=(b==null?void 0:b.nodeName.toLowerCase())!=="p",x=(b==null?void 0:b.getAttribute("face"))===E;if(m){if(S&&!x){var O=v.selection.getSelectionRangeTopNodes();v.selection.createRangeByElem(O[0]),v.selection.moveCursor(O[0].elems[0])}v.selection.setRangeToElem(b),v.selection.createEmptyRange()}v.cmd.do("fontName",E),m&&(v.selection.collapseRange(),v.selection.restoreSelection())}},A.prototype.tryChangeActive=function(){},A}(u.default);r.default=C},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=function(){function C(w){var A=this;this.itemList=[],(0,c.default)(w).call(w,function(E){var _=typeof E=="string"?E:E.value,v=typeof E=="string"?E:E.name;A.itemList.push({$elem:g.default(`<p style="font-family:'`+_+`'">`+v+"</p>"),value:v})})}return C.prototype.getItemList=function(){return this.itemList},C}();r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(24)),g=c.__importDefault(o(3)),y=c.__importDefault(o(332)),C=function(w){c.__extends(A,w);function A(E){var _=this,v=g.default(`<div class="w-e-menu" data-title="\u5B57\u53F7">
<i class="w-e-icon-text-heigh"></i>
</div>`),m=new y.default(E.config.fontSizes),b={width:160,title:"\u8BBE\u7F6E\u5B57\u53F7",type:"list",list:m.getItemList(),clickHandler:function(x){_.command(x)}};return _=w.call(this,v,E,b)||this,_}return A.prototype.command=function(E){var _,v=this.editor,m=v.selection.isSelectionEmpty(),b=(_=v.selection.getSelectionContainerElem())===null||_===void 0?void 0:_.elems[0];b!=null&&(v.cmd.do("fontSize",E),m&&(v.selection.collapseRange(),v.selection.restoreSelection()))},A.prototype.tryChangeActive=function(){},A}(u.default);r.default=C},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(3)),g=function(){function y(C){this.itemList=[];for(var w in C){var A=C[w];this.itemList.push({$elem:u.default('<p style="font-size:'+w+'">'+A.name+"</p>"),value:A.value})}}return y.prototype.getItemList=function(){return this.itemList},y}();r.default=g},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4)),u=s(o(27));(0,d.default)(r,"__esModule",{value:!0});var g=o(2),y=g.__importDefault(o(24)),C=g.__importDefault(o(3)),w=["LI"],A=["BLOCKQUOTE"],E=function(_){g.__extends(v,_);function v(m){var b=this,S=C.default('<div class="w-e-menu" data-title="\u5BF9\u9F50"><i class="w-e-icon-paragraph-left"></i></div>'),x={width:100,title:"\u5BF9\u9F50\u65B9\u5F0F",type:"list",list:[{$elem:C.default(`<p>
<i class="w-e-icon-paragraph-left w-e-drop-list-item"></i>
`+m.i18next.t("menus.dropListMenu.justify.\u9760\u5DE6")+`
</p>`),value:"left"},{$elem:C.default(`<p>
<i class="w-e-icon-paragraph-center w-e-drop-list-item"></i>
`+m.i18next.t("menus.dropListMenu.justify.\u5C45\u4E2D")+`
</p>`),value:"center"},{$elem:C.default(`<p>
<i class="w-e-icon-paragraph-right w-e-drop-list-item"></i>
`+m.i18next.t("menus.dropListMenu.justify.\u9760\u53F3")+`
</p>`),value:"right"},{$elem:C.default(`<p>
<i class="w-e-icon-paragraph-justify w-e-drop-list-item"></i>
`+m.i18next.t("menus.dropListMenu.justify.\u4E24\u7AEF")+`
</p>`),value:"justify"}],clickHandler:function(D){b.command(D)}};return b=_.call(this,S,m,x)||this,b}return v.prototype.command=function(m){var b=this.editor,S=b.selection,x=S.getSelectionContainerElem();S.saveRange();var O=b.selection.getSelectionRangeTopNodes();if(x!=null&&x.length)if(this.isSpecialNode(x,O[0])||this.isSpecialTopNode(O[0])){var D=this.getSpecialNodeUntilTop(x,O[0]);if(D==null)return;C.default(D).css("text-align",m)}else(0,c.default)(O).call(O,function(R){R.css("text-align",m)});S.restoreSelection()},v.prototype.getSpecialNodeUntilTop=function(m,b){for(var S=m.elems[0],x=b.elems[0];S!=null;){if((0,u.default)(w).call(w,S==null?void 0:S.nodeName)!==-1||S.parentNode===x)return S;S=S.parentNode}return S},v.prototype.isSpecialNode=function(m,b){var S=this.getSpecialNodeUntilTop(m,b);return S==null?!1:(0,u.default)(w).call(w,S.nodeName)!==-1},v.prototype.isSpecialTopNode=function(m){var b;return m==null?!1:(0,u.default)(A).call(A,(b=m.elems[0])===null||b===void 0?void 0:b.nodeName)!==-1},v.prototype.tryChangeActive=function(){},v}(y.default);r.default=E},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=u.__importDefault(o(23)),C=u.__importDefault(o(335)),w=u.__importDefault(o(336)),A=o(7),E=function(_){u.__extends(v,_);function v(m){var b=this,S=g.default(`<div class="w-e-menu" data-title="\u5F15\u7528">
<i class="w-e-icon-quotes-left"></i>
</div>`);return b=_.call(this,S,m)||this,C.default(m),b}return v.prototype.clickHandler=function(){var m,b,S=this.editor,x=S.selection.isSelectionEmpty(),O=S.selection.getSelectionRangeTopNodes(),D=O[O.length-1],R=this.getTopNodeName();if(R==="BLOCKQUOTE"){var I=g.default(D.childNodes()),z=I.length,T=D;(0,c.default)(I).call(I,function(W){var V=g.default(W);V.insertAfter(T),T=V}),D.remove(),S.selection.moveCursor(I.elems[z-1]),this.tryChangeActive()}else{var B=w.default(O);if(S.$textElem.equal(D)){var L=(m=S.selection.getSelectionContainerElem())===null||m===void 0?void 0:m.elems[0];S.selection.createRangeByElems(L.children[0],L.children[0]),O=S.selection.getSelectionRangeTopNodes(),B=w.default(O),D.append(B)}else B.insertAfter(D);this.delSelectNode(O);var U=(b=B.childNodes())===null||b===void 0?void 0:b.last().getNode();if(U==null)return;U.textContent?S.selection.moveCursor(U):S.selection.moveCursor(U,0),this.tryChangeActive(),g.default(A.EMPTY_P).insertAfter(B);return}x&&(S.selection.collapseRange(),S.selection.restoreSelection())},v.prototype.tryChangeActive=function(){var m,b=this.editor,S=(m=b.selection.getSelectionRangeTopNodes()[0])===null||m===void 0?void 0:m.getNodeName();S==="BLOCKQUOTE"?this.active():this.unActive()},v.prototype.getTopNodeName=function(){var m=this.editor,b=m.selection.getSelectionRangeTopNodes()[0],S=b==null?void 0:b.getNodeName();return S},v.prototype.delSelectNode=function(m){(0,c.default)(m).call(m,function(b){b.remove()})},v}(y.default);r.default=E},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=o(7),g=c.__importDefault(o(3));function y(C){function w(A){var E,_=C.selection.getSelectionContainerElem(),v=C.selection.getSelectionRangeTopNodes()[0];if((v==null?void 0:v.getNodeName())==="BLOCKQUOTE"){if(_.getNodeName()==="BLOCKQUOTE"){var m=(E=_.childNodes())===null||E===void 0?void 0:E.getNode();C.selection.moveCursor(m)}if(_.text()===""){A.preventDefault(),_.remove();var b=g.default(u.EMPTY_P);b.insertAfter(v),C.selection.moveCursor(b.getNode(),0)}v.text()===""&&v.remove()}}C.txt.eventHooks.enterDownEvents.push(w)}r.default=y},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3));function y(C){var w=g.default("<blockquote></blockquote>");return(0,c.default)(C).call(C,function(A){w.append(A.clone(!0))}),w}r.default=y},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(26));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(24)),y=u.__importDefault(o(3)),C=o(6),w=function(A){u.__extends(E,A);function E(_){var v,m=this,b=y.default(`<div class="w-e-menu" data-title="\u80CC\u666F\u8272">
<i class="w-e-icon-paint-brush"></i>
</div>`),S={width:120,title:"\u80CC\u666F\u989C\u8272",type:"inline-block",list:(0,c.default)(v=_.config.colors).call(v,function(x){return{$elem:y.default('<i style="color:'+x+';" class="w-e-icon-paint-brush"></i>'),value:x}}),clickHandler:function(O){m.command(O)}};return m=A.call(this,b,_,S)||this,m}return E.prototype.command=function(_){var v,m=this.editor,b=m.selection.isSelectionEmpty(),S=(v=m.selection.getSelectionContainerElem())===null||v===void 0?void 0:v.elems[0];if(S!=null){var x=(S==null?void 0:S.nodeName.toLowerCase())!=="p",O=S==null?void 0:S.style.backgroundColor,D=C.hexToRgb(_)===O;if(b){if(x&&!D){var R=m.selection.getSelectionRangeTopNodes();m.selection.createRangeByElem(R[0]),m.selection.moveCursor(R[0].elems[0])}m.selection.createEmptyRange()}m.cmd.do("backColor",_),b&&(m.selection.collapseRange(),m.selection.restoreSelection())}},E.prototype.tryChangeActive=function(){},E}(g.default);r.default=w},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(26));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(24)),y=u.__importDefault(o(3)),C=function(w){u.__extends(A,w);function A(E){var _,v=this,m=y.default(`<div class="w-e-menu" data-title="\u6587\u5B57\u989C\u8272">
<i class="w-e-icon-pencil2"></i>
</div>`),b={width:120,title:"\u6587\u5B57\u989C\u8272",type:"inline-block",list:(0,c.default)(_=E.config.colors).call(_,function(S){return{$elem:y.default('<i style="color:'+S+';" class="w-e-icon-pencil2"></i>'),value:S}}),clickHandler:function(x){v.command(x)}};return v=w.call(this,m,E,b)||this,v}return A.prototype.command=function(E){var _,v=this.editor,m=v.selection.isSelectionEmpty(),b=(_=v.selection.getSelectionContainerElem())===null||_===void 0?void 0:_.elems[0];if(b!=null){var S=v.selection.getSelectionText();if(b.nodeName==="A"&&b.textContent===S){var x=y.default("<span>&#8203;</span>").getNode();b.appendChild(x)}v.cmd.do("foreColor",E),m&&(v.selection.collapseRange(),v.selection.restoreSelection())}},A.prototype.tryChangeActive=function(){},A}(g.default);r.default=C},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(33)),y=c.__importDefault(o(38)),C=c.__importDefault(o(340)),w=c.__importDefault(o(346)),A=function(E){c.__extends(_,E);function _(v){var m=this,b=u.default(`<div class="w-e-menu" data-title="\u89C6\u9891">
<i class="w-e-icon-play"></i>
</div>`);return m=E.call(this,b,v)||this,w.default(v),m}return _.prototype.clickHandler=function(){this.createPanel("")},_.prototype.createPanel=function(v){var m=C.default(this.editor,v),b=new g.default(this,m);b.create()},_.prototype.tryChangeActive=function(){},_}(y.default);r.default=A},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(17));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=o(6),y=u.__importDefault(o(3)),C=u.__importDefault(o(341)),w=o(7);function A(E,_){var v=E.config,m=new C.default(E),b=g.getRandom("input-iframe"),S=g.getRandom("btn-ok"),x=g.getRandom("input-upload"),O=g.getRandom("btn-local-ok");function D(T){E.cmd.do("insertHTML",T+w.EMPTY_P),E.config.onlineVideoCallback(T)}function R(T){var B=E.config.onlineVideoCheck(T);return B===!0?!0:(typeof B=="string"&&E.config.customAlert(B,"error"),!1)}var I=[{title:E.i18next.t("menus.panelMenus.video.\u4E0A\u4F20\u89C6\u9891"),tpl:`<div class="w-e-up-video-container">
<div id="`+O+`" class="w-e-up-btn">
<i class="w-e-icon-upload2"></i>
</div>
<div style="display:none;">
<input id="`+x+`" type="file" accept="video/*"/>
</div>
</div>`,events:[{selector:"#"+O,type:"click",fn:function(){var B=y.default("#"+x),L=B.elems[0];if(L)L.click();else return!0}},{selector:"#"+x,type:"change",fn:function(){var B=y.default("#"+x),L=B.elems[0];if(!L)return!0;var U=L.files;return U.length&&m.uploadVideo(U),!0}}]},{title:E.i18next.t("menus.panelMenus.video.\u63D2\u5165\u89C6\u9891"),tpl:`<div>
<input
id="`+b+`"
type="text"
class="block"
placeholder="`+E.i18next.t("\u5982")+`\uFF1A<iframe src=... ></iframe>"/>
</td>
<div class="w-e-button-container">
<button type="button" id="`+S+`" class="right">
`+E.i18next.t("\u63D2\u5165")+`
</button>
</div>
</div>`,events:[{selector:"#"+S,type:"click",fn:function(){var B,L=y.default("#"+b),U=(0,c.default)(B=L.val()).call(B);if(!!U&&!!R(U))return D(U),!0},bindEnter:!0}]}],z={width:300,height:0,tabs:[]};return window.FileReader&&(v.uploadVideoServer||v.customUploadVideo)&&z.tabs.push(I[0]),v.showLinkVideo&&z.tabs.push(I[1]),z}r.default=A},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(133)),u=s(o(57)),g=s(o(4)),y=s(o(27));(0,d.default)(r,"__esModule",{value:!0});var C=o(2),w=o(6),A=C.__importDefault(o(135)),E=C.__importDefault(o(136)),_=o(7),v=o(6),m=function(){function b(S){this.editor=S}return b.prototype.uploadVideo=function(S){var x=this;if(!!S.length){var O=this.editor,D=O.config,R="validate.",I=function($){return O.i18next.t(R+$)},z=D.uploadVideoServer,T=D.uploadVideoMaxSize,B=T/1024,L=D.uploadVideoName,U=D.uploadVideoParams,W=D.uploadVideoParamsWithUrl,V=D.uploadVideoHeaders,k=D.uploadVideoHooks,M=D.uploadVideoTimeout,j=D.withVideoCredentials,Z=D.customUploadVideo,J=D.uploadVideoAccept,F=[],ie=[];if(w.arrForEach(S,function(he){var $=he.name,Y=he.size/1024/1024;if(!(!$||!Y)){if(!(J instanceof Array)){ie.push("\u3010"+J+"\u3011"+I("uploadVideoAccept \u4E0D\u662FArray"));return}if(!(0,c.default)(J).call(J,function(Q){return Q===$.split(".")[$.split(".").length-1]})){ie.push("\u3010"+$+"\u3011"+I("\u4E0D\u662F\u89C6\u9891"));return}if(B<Y){ie.push("\u3010"+$+"\u3011"+I("\u5927\u4E8E")+" "+B+"M");return}F.push(he)}}),ie.length){D.customAlert(I("\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7")+`:
`+ie.join(`
`),"warning");return}if(F.length===0){D.customAlert(I("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"),"warning");return}if(Z&&typeof Z=="function"){var pe;Z(F,(0,u.default)(pe=this.insertVideo).call(pe,this));return}var se=new FormData;if((0,g.default)(F).call(F,function(he,$){var Y=L||he.name;F.length>1&&(Y=Y+($+1)),se.append(Y,he)}),z){var ye=z.split("#");z=ye[0];var fe=ye[1]||"";(0,g.default)(w).call(w,U,function(he,$){W&&((0,y.default)(z).call(z,"?")>0?z+="&":z+="?",z=z+he+"="+$),se.append(he,$)}),fe&&(z+="#"+fe);var ue=A.default(z,{timeout:M,formData:se,headers:V,withCredentials:!!j,beforeSend:function($){if(k.before)return k.before($,O,F)},onTimeout:function($){D.customAlert(I("\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6"),"error"),k.timeout&&k.timeout($,O)},onProgress:function($,Y){var Q=new E.default(O);Y.lengthComputable&&($=Y.loaded/Y.total,Q.show($))},onError:function($){D.customAlert(I("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF"),"error",I("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+I("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+$.status),k.error&&k.error($,O)},onFail:function($,Y){D.customAlert(I("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"),"error",I("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+("\uFF0C"+I("\u8FD4\u56DE\u7ED3\u679C")+": ")+Y),k.fail&&k.fail($,O,Y)},onSuccess:function($,Y){if(k.customInsert){var Q;k.customInsert((0,u.default)(Q=x.insertVideo).call(Q,x),Y,O);return}if(Y.errno!="0"){D.customAlert(I("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"),"error",I("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+I("\u8FD4\u56DE\u7ED3\u679C")+" errno="+Y.errno),k.fail&&k.fail($,O,Y);return}var K=Y.data;x.insertVideo(K.url),k.success&&k.success($,O,Y)}});typeof ue=="string"&&D.customAlert(ue,"error")}}},b.prototype.insertVideo=function(S){var x=this.editor,O=x.config,D="validate.",R=function(T,B){return B===void 0&&(B=D),x.i18next.t(B+T)};if(!O.customInsertVideo)v.UA.isFirefox?x.cmd.do("insertHTML",'<p data-we-video-p="true"><video src="'+S+'" controls="controls" style="max-width:100%"></video></p><p>&#8203</p>'):x.cmd.do("insertHTML",'<video src="'+S+'" controls="controls" style="max-width:100%"></video>'+_.EMPTY_P);else{O.customInsertVideo(S);return}var I=document.createElement("video");I.onload=function(){I=null},I.onerror=function(){O.customAlert(R("\u63D2\u5165\u89C6\u9891\u9519\u8BEF"),"error","wangEditor: "+R("\u63D2\u5165\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+R("\u89C6\u9891\u94FE\u63A5")+' "'+S+'"\uFF0C'+R("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")),I=null},I.onabort=function(){return I=null},I.src=S},b}();r.default=m},function(i,r,o){i.exports=o(343)},function(i,r,o){var s=o(344);i.exports=s},function(i,r,o){o(345);var s=o(9);i.exports=s.Date.now},function(i,r,o){var s=o(5);s({target:"Date",stat:!0},{now:function(){return new Date().getTime()}})},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(347)),g=c.__importDefault(o(349));function y(C){u.default(C),g.default(C)}r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.createShowHideFn=void 0;var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(39)),y=c.__importDefault(o(348));function C(A){var E,_=function(S,x){return x===void 0&&(x=""),A.i18next.t(x+S)};function v(b){var S=[{$elem:u.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(O,D){return D.remove(),!0}},{$elem:u.default("<span>100%</span>"),onClick:function(O,D){return D.attr("width","100%"),D.removeAttr("height"),!0}},{$elem:u.default("<span>50%</span>"),onClick:function(O,D){return D.attr("width","50%"),D.removeAttr("height"),!0}},{$elem:u.default("<span>30%</span>"),onClick:function(O,D){return D.attr("width","30%"),D.removeAttr("height"),!0}},{$elem:u.default("<span>"+_("\u91CD\u7F6E")+"</span>"),onClick:function(O,D){return D.removeAttr("width"),D.removeAttr("height"),!0}},{$elem:u.default("<span>"+_("menus.justify.\u9760\u5DE6")+"</span>"),onClick:function(O,D){return y.default(D,"left"),!0}},{$elem:u.default("<span>"+_("menus.justify.\u5C45\u4E2D")+"</span>"),onClick:function(O,D){return y.default(D,"center"),!0}},{$elem:u.default("<span>"+_("menus.justify.\u9760\u53F3")+"</span>"),onClick:function(O,D){return y.default(D,"right"),!0}}];E=new g.default(A,b,S),E.create()}function m(){E&&(E.remove(),E=null)}return{showVideoTooltip:v,hideVideoTooltip:m}}r.createShowHideFn=C;function w(A){var E=C(A),_=E.showVideoTooltip,v=E.hideVideoTooltip;A.txt.eventHooks.videoClickEvents.push(_),A.txt.eventHooks.clickEvents.push(v),A.txt.eventHooks.keyupEvents.push(v),A.txt.eventHooks.toolbarClickEvents.push(v),A.txt.eventHooks.menuClickEvents.push(v),A.txt.eventHooks.textScrollEvents.push(v),A.txt.eventHooks.changeEvents.push(v)}r.default=w},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(28));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3));function y(w,A){var E=["P"],_=C(w,E);_&&g.default(_).css("text-align",A)}r.default=y;function C(w,A){for(var E,_=w.elems[0];_!=null;){if((0,c.default)(A).call(A,_==null?void 0:_.nodeName))return _;if(((E=_==null?void 0:_.parentNode)===null||E===void 0?void 0:E.nodeName)==="BODY")return null;_=_.parentNode}return _}},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(6);function u(g){if(!!c.UA.isFirefox){var y=g.txt,C=g.selection,w=y.eventHooks.keydownEvents;w.push(function(A){var E=C.getSelectionContainerElem();if(E){var _=E.getNodeTop(g),v=_.length&&_.prev().length?_.prev():null;v&&v.attr("data-we-video-p")&&C.getCursorPos()===0&&A.keyCode===8&&v.remove()}})}}r.default=u},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(26));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=o(7),y=u.__importDefault(o(3)),C=u.__importDefault(o(33)),w=u.__importDefault(o(38)),A=u.__importDefault(o(351)),E=u.__importDefault(o(364)),_=function(v){u.__extends(m,v);function m(b){var S=this,x=y.default('<div class="w-e-menu" data-title="\u56FE\u7247"><i class="w-e-icon-image"></i></div>'),O=E.default(b);if(O.onlyUploadConf){var D;x=O.onlyUploadConf.$elem,(0,c.default)(D=O.onlyUploadConf.events).call(D,function(R){var I=R.type,z=R.fn||g.EMPTY_FN;x.on(I,function(T){T.stopPropagation(),z(T)})})}return S=v.call(this,x,b)||this,S.imgPanelConfig=O,A.default(b),S}return m.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},m.prototype.createPanel=function(){var b=this.imgPanelConfig,S=new C.default(this,b);this.setPanel(S),S.create()},m.prototype.tryChangeActive=function(){},m}(w.default);r.default=_},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(352)),g=c.__importDefault(o(353)),y=c.__importDefault(o(354)),C=c.__importDefault(o(362)),w=c.__importDefault(o(363));function A(E){u.default(E),g.default(E),y.default(E),C.default(E),w.default(E)}r.default=A},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=o(131),g=c.__importDefault(o(97));function y(E,_){var v=E.config,m=v.pasteFilterStyle,b=v.pasteIgnoreImg,S=u.getPasteHtml(_,m,b);if(S)return!0;var x=u.getPasteText(_);return!!x}function C(E,_){for(var v,m=((v=_.clipboardData)===null||v===void 0?void 0:v.types)||[],b=0;b<m.length;b++){var S=m[b];if(S==="Files")return!0}return!1}function w(E,_){if(!(!C(_,E)&&y(_,E))){var v=u.getPasteImgs(E);if(!!v.length){var m=new g.default(_);m.uploadImg(v)}}}function A(E){E.txt.eventHooks.pasteEvents.unshift(function(_){w(_,E)})}r.default=A},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(97));function g(y){function C(w){var A=w.dataTransfer&&w.dataTransfer.files;if(!(!A||!A.length)){var E=new u.default(y);E.uploadImg(A)}}y.txt.eventHooks.dropEvents.push(C)}r.default=g},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(29)),u=s(o(355));(0,d.default)(r,"__esModule",{value:!0}),r.createShowHideFn=void 0;var g=o(2),y=g.__importDefault(o(3));o(360);var C=o(6);function w(m,b,S,x,O){m.attr("style","width:"+b+"px; height:"+S+"px; left:"+x+"px; top:"+O+"px;")}function A(m,b){var S=y.default(`<div class="w-e-img-drag-mask">
<div class="w-e-img-drag-show-size"></div>
<div class="w-e-img-drag-rb"></div>
</div>`);return S.hide(),b.append(S),S}function E(m,b,S){var x=m.getBoundingClientRect(),O=S.getBoundingClientRect(),D=O.width.toFixed(2),R=O.height.toFixed(2);(0,c.default)(b).call(b,".w-e-img-drag-show-size").text(D+"px * "+R+"px"),w(b,(0,u.default)(D),(0,u.default)(R),O.left-x.left,O.top-x.top),b.show()}function _(m){var b=m.$textContainerElem,S,x=A(m,b);function O(I,z){I.on("click",function(T){T.stopPropagation()}),I.on("mousedown",".w-e-img-drag-rb",function(T){if(T.preventDefault(),!S)return;var B=T.clientX,L=T.clientY,U=z.getBoundingClientRect(),W=S.getBoundingClientRect(),V=W.width,k=W.height,M=W.left-U.left,j=W.top-U.top,Z=V/k,J=V,F=k,ie=y.default(document);function pe(){ie.off("mousemove",se),ie.off("mouseup",ye)}function se(fe){fe.stopPropagation(),fe.preventDefault(),J=V+(fe.clientX-B),F=k+(fe.clientY-L),J/F!=Z&&(F=J/Z),J=(0,u.default)(J.toFixed(2)),F=(0,u.default)(F.toFixed(2)),(0,c.default)(I).call(I,".w-e-img-drag-show-size").text(J.toFixed(2).replace(".00","")+"px * "+F.toFixed(2).replace(".00","")+"px"),w(I,J,F,M,j)}ie.on("mousemove",se);function ye(){S.attr("width",J+""),S.attr("height",F+"");var fe=S.getBoundingClientRect();w(I,J,F,fe.left-U.left,fe.top-U.top),pe()}ie.on("mouseup",ye),ie.on("mouseleave",pe)})}function D(I){if(C.UA.isIE())return!1;I&&(S=I,E(b,x,S))}function R(){(0,c.default)(b).call(b,".w-e-img-drag-mask").hide()}return O(x,b),y.default(document).on("click",R),m.beforeDestroy(function(){y.default(document).off("click",R)}),{showDrag:D,hideDrag:R}}r.createShowHideFn=_;function v(m){var b=_(m),S=b.showDrag,x=b.hideDrag;m.txt.eventHooks.imgClickEvents.push(S),m.txt.eventHooks.textScrollEvents.push(x),m.txt.eventHooks.keyupEvents.push(x),m.txt.eventHooks.toolbarClickEvents.push(x),m.txt.eventHooks.menuClickEvents.push(x),m.txt.eventHooks.changeEvents.push(x)}r.default=v},function(i,r,o){i.exports=o(356)},function(i,r,o){var s=o(357);i.exports=s},function(i,r,o){o(358);var s=o(9);i.exports=s.parseFloat},function(i,r,o){var s=o(5),d=o(359);s({global:!0,forced:parseFloat!=d},{parseFloat:d})},function(i,r,o){var s=o(8),d=o(90).trim,c=o(68),u=s.parseFloat,g=1/u(c+"-0")!==-1/0;i.exports=g?function(C){var w=d(String(C)),A=u(w);return A===0&&w.charAt(0)=="-"?-0:A}:u},function(i,r,o){var s=o(20),d=o(361);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21);r=s(!1),r.push([i.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;
}
`,""]),i.exports=r},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.createShowHideFn=void 0;var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(39));function y(w){var A,E=function(b,S){return S===void 0&&(S=""),w.i18next.t(S+b)};function _(m){var b=[{$elem:u.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(x,O){return x.selection.createRangeByElem(O),x.selection.restoreSelection(),x.cmd.do("delete"),!0}},{$elem:u.default("<span>30%</span>"),onClick:function(x,O){return O.attr("width","30%"),O.removeAttr("height"),!0}},{$elem:u.default("<span>50%</span>"),onClick:function(x,O){return O.attr("width","50%"),O.removeAttr("height"),!0}},{$elem:u.default("<span>100%</span>"),onClick:function(x,O){return O.attr("width","100%"),O.removeAttr("height"),!0}}];b.push({$elem:u.default("<span>"+E("\u91CD\u7F6E")+"</span>"),onClick:function(x,O){return O.removeAttr("width"),O.removeAttr("height"),!0}}),m.attr("data-href")&&b.push({$elem:u.default("<span>"+E("\u67E5\u770B\u94FE\u63A5")+"</span>"),onClick:function(x,O){var D=O.attr("data-href");return D&&(D=decodeURIComponent(D),window.open(D,"_target")),!0}}),A=new g.default(w,m,b),A.create()}function v(){A&&(A.remove(),A=null)}return{showImgTooltip:_,hideImgTooltip:v}}r.createShowHideFn=y;function C(w){var A=y(w),E=A.showImgTooltip,_=A.hideImgTooltip;w.txt.eventHooks.imgClickEvents.push(E),w.txt.eventHooks.clickEvents.push(_),w.txt.eventHooks.keyupEvents.push(_),w.txt.eventHooks.toolbarClickEvents.push(_),w.txt.eventHooks.menuClickEvents.push(_),w.txt.eventHooks.textScrollEvents.push(_),w.txt.eventHooks.imgDragBarMouseDownEvents.push(_),w.txt.eventHooks.changeEvents.push(_)}r.default=C},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});function c(u){var g=u.txt,y=u.selection,C=g.eventHooks.keydownEvents;C.push(function(w){var A=y.getSelectionContainerElem(),E=y.getRange();if(!(!E||!A||w.keyCode!==8||!y.isSelectionEmpty())){var _=E.startContainer,v=E.startOffset,m=null;if(v===0)for(;_!==A.elems[0]&&A.elems[0].contains(_)&&_.parentNode&&!m;){if(_.previousSibling){m=_.previousSibling;break}_=_.parentNode}else _.nodeType!==3&&(m=_.childNodes[v-1]);if(!!m){for(var b=m;b.childNodes.length;)b=b.childNodes[b.childNodes.length-1];b instanceof HTMLElement&&b.tagName==="IMG"&&(b.remove(),w.preventDefault())}}})}r.default=c},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(26)),u=s(o(17));(0,d.default)(r,"__esModule",{value:!0});var g=o(2),y=g.__importDefault(o(3)),C=o(6),w=g.__importDefault(o(97));function A(E){var _,v=E.config,m=new w.default(E),b=C.getRandom("up-trigger-id"),S=C.getRandom("up-file-id"),x=C.getRandom("input-link-url"),O=C.getRandom("input-link-url-alt"),D=C.getRandom("input-link-url-href"),R=C.getRandom("btn-link"),I="menus.panelMenus.image.",z=function(Z,J){return J===void 0&&(J=I),E.i18next.t(J+Z)};function T(j,Z,J){var F=v.linkImgCheck(j);return F===!0?!0:(typeof F=="string"&&v.customAlert(F,"error"),!1)}var B=v.uploadImgMaxLength===1?"":'multiple="multiple"',L=(0,c.default)(_=v.uploadImgAccept).call(_,function(j){return"image/"+j}).join(","),U=function(Z,J,F){return'<div class="'+Z+'" data-title="'+F+`">
<div id="`+b+`" class="w-e-up-btn">
<i class="`+J+`"></i>
</div>
<div style="display:none;">
<input id="`+S+'" type="file" '+B+' accept="'+L+`"/>
</div>
</div>`},W=[{selector:"#"+b,type:"click",fn:function(){var Z=v.uploadImgFromMedia;if(Z&&typeof Z=="function")return Z(),!0;var J=y.default("#"+S),F=J.elems[0];if(F)F.click();else return!0}},{selector:"#"+S,type:"change",fn:function(){var Z=y.default("#"+S),J=Z.elems[0];if(!J)return!0;var F=J.files;return F!=null&&F.length&&m.uploadImg(F),J&&(J.value=""),!0}}],V=[`<input
id="`+x+`"
type="text"
class="block"
placeholder="`+z("\u56FE\u7247\u5730\u5740")+'"/>'];v.showLinkImgAlt&&V.push(`
<input
id="`+O+`"
type="text"
class="block"
placeholder="`+z("\u56FE\u7247\u6587\u5B57\u8BF4\u660E")+'"/>'),v.showLinkImgHref&&V.push(`
<input
id="`+D+`"
type="text"
class="block"
placeholder="`+z("\u8DF3\u8F6C\u94FE\u63A5")+'"/>');var k=[{title:z("\u4E0A\u4F20\u56FE\u7247"),tpl:U("w-e-up-img-container","w-e-icon-upload2",""),events:W},{title:z("\u7F51\u7EDC\u56FE\u7247"),tpl:`<div>
`+V.join("")+`
<div class="w-e-button-container">
<button type="button" id="`+R+'" class="right">'+z("\u63D2\u5165","")+`</button>
</div>
</div>`,events:[{selector:"#"+R,type:"click",fn:function(){var Z,J=y.default("#"+x),F=(0,u.default)(Z=J.val()).call(Z);if(!!F){var ie;if(v.showLinkImgAlt){var pe;ie=(0,u.default)(pe=y.default("#"+O).val()).call(pe)}var se;if(v.showLinkImgHref){var ye;se=(0,u.default)(ye=y.default("#"+D).val()).call(ye)}if(!!T(F))return m.insertImg(F,ie,se),!0}},bindEnter:!0}]}],M={width:300,height:0,tabs:[],onlyUploadConf:{$elem:y.default(U("w-e-menu","w-e-icon-image","\u56FE\u7247")),events:W}};return window.FileReader&&(v.uploadImgShowBase64||v.uploadImgServer||v.customUploadImg||v.uploadImgFromMedia)&&M.tabs.push(k[0]),v.showLinkImg&&(M.tabs.push(k[1]),M.onlyUploadConf=void 0),M}r.default=A},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=u.__importDefault(o(24)),C=u.__importDefault(o(366)),w=function(A){u.__extends(E,A);function E(_){var v=this,m=g.default(`<div class="w-e-menu" data-title="\u7F29\u8FDB">
<i class="w-e-icon-indent-increase"></i>
</div>`),b={width:130,title:"\u8BBE\u7F6E\u7F29\u8FDB",type:"list",list:[{$elem:g.default(`<p>
<i class="w-e-icon-indent-increase w-e-drop-list-item"></i>
`+_.i18next.t("menus.dropListMenu.indent.\u589E\u52A0\u7F29\u8FDB")+`
<p>`),value:"increase"},{$elem:g.default(`<p>
<i class="w-e-icon-indent-decrease w-e-drop-list-item"></i>
`+_.i18next.t("menus.dropListMenu.indent.\u51CF\u5C11\u7F29\u8FDB")+`
<p>`),value:"decrease"}],clickHandler:function(x){v.command(x)}};return v=A.call(this,m,_,b)||this,v}return E.prototype.command=function(_){var v=this.editor,m=v.selection.getSelectionContainerElem();if(m&&v.$textElem.equal(m)){var b=v.selection.getSelectionRangeTopNodes();b.length>0&&(0,c.default)(b).call(b,function(S){C.default(g.default(S),_,v)})}else m&&m.length>0&&(0,c.default)(m).call(m,function(S){C.default(g.default(S),_,v)});v.selection.restoreSelection(),this.tryChangeActive()},E.prototype.tryChangeActive=function(){var _=this.editor,v=_.selection.getSelectionStartElem(),m=g.default(v).getNodeTop(_);m.length<=0||(m.elems[0].style.paddingLeft!=""?this.active():this.unActive())},E}(y.default);r.default=w},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(45)),u=s(o(17));(0,d.default)(r,"__esModule",{value:!0});var g=o(2),y=g.__importDefault(o(367)),C=g.__importDefault(o(368)),w=/^(\d+)(\w+)$/,A=/^(\d+)%$/;function E(v){var m=v.config.indentation;if(typeof m=="string"){if(w.test(m)){var b,S=(0,c.default)(b=(0,u.default)(m).call(m).match(w)).call(b,1,3),x=S[0],O=S[1];return{value:Number(x),unit:O}}else if(A.test(m))return{value:Number((0,u.default)(m).call(m).match(A)[1]),unit:"%"}}else if(m.value!==void 0&&m.unit)return m;return{value:2,unit:"em"}}function _(v,m,b){var S=v.getNodeTop(b),x=/^(P|H[0-9]*)$/;x.test(S.getNodeName())&&(m==="increase"?y.default(S,E(b)):m==="decrease"&&C.default(S,E(b)))}r.default=_},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(45));(0,d.default)(r,"__esModule",{value:!0});function u(g,y){var C=g.elems[0];if(C.style.paddingLeft==="")g.css("padding-left",y.value+y.unit);else{var w=C.style.paddingLeft,A=(0,c.default)(w).call(w,0,w.length-y.unit.length),E=Number(A)+y.value;g.css("padding-left",""+E+y.unit)}}r.default=u},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(45));(0,d.default)(r,"__esModule",{value:!0});function u(g,y){var C=g.elems[0];if(C.style.paddingLeft!==""){var w=C.style.paddingLeft,A=(0,c.default)(w).call(w,0,w.length-y.unit.length),E=Number(A)-y.value;E>0?g.css("padding-left",""+E+y.unit):g.css("padding-left","")}}r.default=u},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(38)),y=c.__importDefault(o(33)),C=c.__importDefault(o(370)),w=function(A){c.__extends(E,A);function E(_){var v=this,m=u.default(`<div class="w-e-menu" data-title="\u8868\u60C5">
<i class="w-e-icon-happy"></i>
</div>`);return v=A.call(this,m,_)||this,v}return E.prototype.createPanel=function(){var _=C.default(this.editor),v=new y.default(this,_);v.create()},E.prototype.clickHandler=function(){this.createPanel()},E.prototype.tryChangeActive=function(){},E}(g.default);r.default=w},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(26)),u=s(o(70)),g=s(o(17));(0,d.default)(r,"__esModule",{value:!0});var y=o(2),C=y.__importDefault(o(3));function w(A){var E=A.config.emotions;function _(b){var S=[];if(b.type=="image"){var x;S=(0,c.default)(x=b.content).call(x,function(D){return typeof D=="string"?"":'<span title="'+D.alt+`">
<img class="eleImg" data-emoji="`+D.alt+'" style src="'+D.src+'" alt="['+D.alt+`]">
</span>`}),S=(0,u.default)(S).call(S,function(D){return D!==""})}else{var O;S=(0,c.default)(O=b.content).call(O,function(D){return'<span class="eleImg" title="'+D+'">'+D+"</span>"})}return S.join("").replace(/&nbsp;/g,"")}var v=(0,c.default)(E).call(E,function(b){return{title:A.i18next.t("menus.panelMenus.emoticon."+b.title),tpl:"<div>"+_(b)+"</div>",events:[{selector:".eleImg",type:"click",fn:function(x){var O=C.default(x.target),D=O.getNodeName(),R;if(D==="IMG"){var I;R=(0,g.default)(I=O.parent().html()).call(I)}else R="<span>"+O.html()+"</span>";return A.cmd.do("insertHTML",R),!0}}]}}),m={width:300,height:230,tabs:v};return m}r.default=w},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.createListHandle=r.ClassType=void 0;var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(372)),y=c.__importDefault(o(374)),C=c.__importDefault(o(375)),w=c.__importDefault(o(376)),A=c.__importDefault(o(377)),E;(function(b){b.Wrap="WrapListHandle",b.Join="JoinListHandle",b.StartJoin="StartJoinListHandle",b.EndJoin="EndJoinListHandle",b.Other="OtherListHandle"})(E=r.ClassType||(r.ClassType={}));var _={WrapListHandle:g.default,JoinListHandle:y.default,StartJoinListHandle:C.default,EndJoinListHandle:w.default,OtherListHandle:A.default};function v(b,S,x){if(b===E.Other&&x===void 0)throw new Error("other \u7C7B\u9700\u8981\u4F20\u5165 range");return b!==E.Other?new _[b](S):new _[b](S,x)}r.createListHandle=v;var m=function(){function b(S){this.handle=S,this.handle.exec()}return b.prototype.getSelectionRangeElem=function(){return u.default(this.handle.selectionRangeElem.get())},b}();r.default=m},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=o(58),C=o(47),w=function(A){u.__extends(E,A);function E(_){return A.call(this,_)||this}return E.prototype.exec=function(){var _=this.options,v=_.listType,m=_.listTarget,b=_.$selectionElem,S=_.$startElem,x=_.$endElem,O,D=[],R=b==null?void 0:b.getNodeName(),I=S.prior,z=x.prior;if(!S.prior&&!x.prior||!(I!=null&&I.prev().length)&&!(z!=null&&z.next().length)){var T;(0,c.default)(T=b==null?void 0:b.children()).call(T,function(M){D.push(g.default(M))}),R===v?O=C.createElementFragment(D,C.createDocumentFragment(),"p"):(O=C.createElement(m),(0,c.default)(D).call(D,function(M){O.appendChild(M.elems[0])})),this.selectionRangeElem.set(O),C.insertBefore(b,O,b.elems[0]),b.remove()}else{for(var B=I;B.length;)D.push(B),z!=null&&z.equal(B)?B=g.default(void 0):B=B.next();var L=I.prev(),U=z.next();if(R===v?O=C.createElementFragment(D,C.createDocumentFragment(),"p"):(O=C.createElement(m),(0,c.default)(D).call(D,function(M){O.append(M.elems[0])})),L.length&&U.length){for(var W=[];U.length;)W.push(U),U=U.next();var V=C.createElement(R);(0,c.default)(W).call(W,function(M){V.append(M.elems[0])}),g.default(V).insertAfter(b),this.selectionRangeElem.set(O);var k=b.next();k.length?C.insertBefore(b,O,k.elems[0]):b.parent().elems[0].append(O)}else if(!L.length)this.selectionRangeElem.set(O),C.insertBefore(b,O,b.elems[0]);else{this.selectionRangeElem.set(O);var k=b.next();k.length?C.insertBefore(b,O,k.elems[0]):b.parent().elems[0].append(O)}}},E}(y.ListHandle);r.default=w},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=function(){function g(){this._element=null}return g.prototype.set=function(y){if(y instanceof DocumentFragment){var C,w=[];(0,c.default)(C=y.childNodes).call(C,function(A){w.push(A)}),y=w}this._element=y},g.prototype.get=function(){return this._element},g.prototype.clear=function(){this._element=null},g}();r.default=u},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=o(58),C=o(47),w=function(A){u.__extends(E,A);function E(_){return A.call(this,_)||this}return E.prototype.exec=function(){var _,v,m,b,S,x,O,D=this.options,R=D.editor,I=D.listType,z=D.listTarget,T=D.$startElem,B=D.$endElem,L,U=R.selection.getSelectionRangeTopNodes(),W=T==null?void 0:T.getNodeName(),V=B==null?void 0:B.getNodeName();if(W===V)if(U.length>2)if(U.shift(),U.pop(),L=C.createElementFragment(C.filterSelectionNodes(U),C.createDocumentFragment()),W===I)(_=B.children())===null||_===void 0||(0,c.default)(_).call(_,function(fe){L.append(fe)}),B.remove(),this.selectionRangeElem.set(L),T.elems[0].append(L);else{for(var k=document.createDocumentFragment(),M=document.createDocumentFragment(),j=C.getStartPoint(T);j.length;){var Z=j.elems[0];j=j.next(),k.append(Z)}for(var J=C.getEndPoint(B),F=[];J.length;)F.unshift(J.elems[0]),J=J.prev();(0,c.default)(F).call(F,function(fe){M.append(fe)});var ie=C.createElement(z);ie.append(k),ie.append(L),ie.append(M),L=ie,this.selectionRangeElem.set(L),g.default(ie).insertAfter(T),!(!((v=T.children())===null||v===void 0)&&v.length)&&T.remove(),!(!((m=B.children())===null||m===void 0)&&m.length)&&B.remove()}else{U.length=0;for(var j=C.getStartPoint(T);j.length;)U.push(j),j=j.next();for(var J=C.getEndPoint(B),F=[];J.length;)F.unshift(J),J=J.prev();U.push.apply(U,F),W===I?(L=C.createElementFragment(U,C.createDocumentFragment(),"p"),this.selectionRangeElem.set(L),C.insertBefore(T,L,B.elems[0])):(L=C.createElement(z),(0,c.default)(U).call(U,function($){L.append($.elems[0])}),this.selectionRangeElem.set(L),g.default(L).insertAfter(T)),!(!((b=T.children())===null||b===void 0)&&b.length)&&B.remove(),!(!((S=B.children())===null||S===void 0)&&S.length)&&B.remove()}else{for(var pe=[],J=C.getEndPoint(B);J.length;)pe.unshift(J),J=J.prev();for(var se=[],j=C.getStartPoint(T);j.length;)se.push(j),j=j.next();if(L=C.createDocumentFragment(),U.shift(),U.pop(),(0,c.default)(se).call(se,function(he){return L.append(he.elems[0])}),L=C.createElementFragment(C.filterSelectionNodes(U),L),(0,c.default)(pe).call(pe,function(he){return L.append(he.elems[0])}),this.selectionRangeElem.set(L),W===I)T.elems[0].append(L),!(!((x=B.children())===null||x===void 0)&&x.length)&&B.remove();else if(!((O=B.children())===null||O===void 0)&&O.length){var ye=B.children();C.insertBefore(ye,L,ye.elems[0])}else B.elems[0].append(L)}},E}(y.ListHandle);r.default=w},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=o(58),C=o(47),w=function(A){u.__extends(E,A);function E(_){return A.call(this,_)||this}return E.prototype.exec=function(){var _,v=this.options,m=v.editor,b=v.listType,S=v.listTarget,x=v.$startElem,O,D=m.selection.getSelectionRangeTopNodes(),R=x==null?void 0:x.getNodeName();D.shift();for(var I=[],z=C.getStartPoint(x);z.length;)I.push(z),z=z.next();R===b?(O=C.createDocumentFragment(),(0,c.default)(I).call(I,function(T){return O.append(T.elems[0])}),O=C.createElementFragment(C.filterSelectionNodes(D),O),this.selectionRangeElem.set(O),x.elems[0].append(O)):(O=C.createElement(S),(0,c.default)(I).call(I,function(T){return O.append(T.elems[0])}),O=C.createElementFragment(C.filterSelectionNodes(D),O),this.selectionRangeElem.set(O),g.default(O).insertAfter(x),!(!((_=x.children())===null||_===void 0)&&_.length)&&x.remove())},E}(y.ListHandle);r.default=w},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=o(58),C=o(47),w=function(A){u.__extends(E,A);function E(_){return A.call(this,_)||this}return E.prototype.exec=function(){var _,v,m=this.options,b=m.editor,S=m.listType,x=m.listTarget,O=m.$endElem,D,R=b.selection.getSelectionRangeTopNodes(),I=O==null?void 0:O.getNodeName();R.pop();for(var z=[],T=C.getEndPoint(O);T.length;)z.unshift(T),T=T.prev();if(I===S)if(D=C.createElementFragment(C.filterSelectionNodes(R),C.createDocumentFragment()),(0,c.default)(z).call(z,function(U){return D.append(U.elems[0])}),this.selectionRangeElem.set(D),!((_=O.children())===null||_===void 0)&&_.length){var B=O.children();C.insertBefore(B,D,B.elems[0])}else O.elems[0].append(D);else{var L=C.filterSelectionNodes(R);L.push.apply(L,z),D=C.createElementFragment(L,C.createElement(x)),this.selectionRangeElem.set(D),g.default(D).insertBefore(O),!(!((v=O.children())===null||v===void 0)&&v.length)&&O.remove()}},E}(y.ListHandle);r.default=w},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=o(58),g=o(47),y=function(C){c.__extends(w,C);function w(A,E){var _=C.call(this,A)||this;return _.range=E,_}return w.prototype.exec=function(){var A=this.options,E=A.editor,_=A.listTarget,v=E.selection.getSelectionRangeTopNodes(),m=g.createElementFragment(g.filterSelectionNodes(v),g.createElement(_));this.selectionRangeElem.set(m),this.range.insertNode(m)},w}(u.ListHandle);r.default=y},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4)),u=s(o(27));(0,d.default)(r,"__esModule",{value:!0});var g=o(2),y=g.__importDefault(o(24)),C=g.__importDefault(o(3)),w=g.__importDefault(o(379)),A=function(E){g.__extends(_,E);function _(v){var m=this,b=C.default(`<div class="w-e-menu" data-title="\u884C\u9AD8">
<i class="w-e-icon-row-height"></i>
</div>`),S=new w.default(v,v.config.lineHeights),x={width:100,title:"\u8BBE\u7F6E\u884C\u9AD8",type:"list",list:S.getItemList(),clickHandler:function(D){v.selection.saveRange(),m.command(D)}};return m=E.call(this,b,v,x)||this,m}return _.prototype.command=function(v){var m=this.editor;m.selection.restoreSelection();var b=C.default(m.selection.getSelectionContainerElem());if(!!b.elems.length){if(b&&m.$textElem.equal(b)){for(var S=!1,x=C.default(m.selection.getSelectionStartElem()).elems[0],O=C.default(m.selection.getSelectionEndElem()).elems[0],D=this.getDom(x),R=this.getDom(O),I=b.elems[0].children,z=0;z<I.length;z++){var T=I[z];if(C.default(T).getNodeName()==="P"&&(T===D&&(S=!0),S&&(C.default(T).css("line-height",v),T===R))){S=!1;return}}m.selection.createRangeByElems(x,O);return}var B=b.elems[0],L=this.getDom(B);C.default(L).getNodeName()==="P"&&(C.default(L).css("line-height",v),m.selection.createRangeByElems(L,L))}},_.prototype.getDom=function(v){var m=C.default(v).elems[0];if(!m.parentNode)return m;function b(S,x){var O=C.default(S.parentNode);return x.$textElem.equal(O)?S:b(O.elems[0],x)}return m=b(m,this.editor),m},_.prototype.styleProcessing=function(v){var m="";return(0,c.default)(v).call(v,function(b){b!==""&&(0,u.default)(b).call(b,"line-height")===-1&&(m=m+b+";")}),m},_.prototype.setRange=function(v,m){var b=this.editor,S=window.getSelection?window.getSelection():document.getSelection();S==null||S.removeAllRanges();var x=document.createRange(),O=v,D=m;x.setStart(O,0),x.setEnd(D,1),S==null||S.addRange(x),b.selection.saveRange(),S==null||S.removeAllRanges(),b.selection.restoreSelection()},_.prototype.tryChangeActive=function(){var v=this.editor,m=v.selection.getSelectionContainerElem();if(!(m&&v.$textElem.equal(m))){var b=C.default(v.selection.getSelectionStartElem());if(b.length!==0){b=this.getDom(b.elems[0]);var S=b.getAttribute("style")?b.getAttribute("style"):"";S&&(0,u.default)(S).call(S,"line-height")!==-1?this.active():this.unActive()}}},_}(y.default);r.default=A},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=function(){function C(w,A){var E=this;this.itemList=[{$elem:g.default("<span>"+w.i18next.t("\u9ED8\u8BA4")+"</span>"),value:""}],(0,c.default)(A).call(A,function(_){E.itemList.push({$elem:g.default("<span>"+_+"</span>"),value:_})})}return C.prototype.getItemList=function(){return this.itemList},C}();r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(23)),y=function(C){c.__extends(w,C);function w(A){var E=this,_=u.default(`<div class="w-e-menu" data-title="\u64A4\u9500">
<i class="w-e-icon-undo"></i>
</div>`);return E=C.call(this,_,A)||this,E}return w.prototype.clickHandler=function(){var A=this.editor;A.history.revoke();var E=A.$textElem.children();if(!!(E!=null&&E.length)){var _=E.last();A.selection.createRangeByElem(_,!1,!0),A.selection.restoreSelection()}},w.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},w}(g.default);r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(23)),y=function(C){c.__extends(w,C);function w(A){var E=this,_=u.default(`<div class="w-e-menu" data-title="\u6062\u590D">
<i class="w-e-icon-redo"></i>
</div>`);return E=C.call(this,_,A)||this,E}return w.prototype.clickHandler=function(){var A=this.editor;A.history.restore();var E=A.$textElem.children();if(!!(E!=null&&E.length)){var _=E.last();A.selection.createRangeByElem(_,!1,!0),A.selection.restoreSelection()}},w.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},w}(g.default);r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(38)),g=c.__importDefault(o(3)),y=c.__importDefault(o(383)),C=c.__importDefault(o(33)),w=c.__importDefault(o(392)),A=function(E){c.__extends(_,E);function _(v){var m=this,b=g.default('<div class="w-e-menu" data-title="\u8868\u683C"><i class="w-e-icon-table2"></i></div>');return m=E.call(this,b,v)||this,w.default(v),m}return _.prototype.clickHandler=function(){this.createPanel()},_.prototype.createPanel=function(){var v=y.default(this.editor),m=new C.default(this,v);m.create()},_.prototype.tryChangeActive=function(){},_}(u.default);r.default=A},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(384));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=o(6),y=u.__importDefault(o(3));o(389);var C=u.__importDefault(o(391));function w(E){return E>0&&(0,c.default)(E)}function A(E){var _=new C.default(E),v=g.getRandom("w-col-id"),m=g.getRandom("w-row-id"),b=g.getRandom("btn-link"),S="menus.panelMenus.table.",x=function(I){return E.i18next.t(I)},O=[{title:x(S+"\u63D2\u5165\u8868\u683C"),tpl:`<div>
<div class="w-e-table">
<span>`+x("\u521B\u5EFA")+`</span>
<input id="`+m+`" type="text" class="w-e-table-input" value="5"/></td>
<span>`+x(S+"\u884C")+`</span>
<input id="`+v+`" type="text" class="w-e-table-input" value="5"/></td>
<span>`+(x(S+"\u5217")+x(S+"\u7684")+x(S+"\u8868\u683C"))+`</span>
</div>
<div class="w-e-button-container">
<button type="button" id="`+b+'" class="right">'+x("\u63D2\u5165")+`</button>
</div>
</div>`,events:[{selector:"#"+b,type:"click",fn:function(){var I=Number(y.default("#"+v).val()),z=Number(y.default("#"+m).val());return w(z)&&w(I)?(_.createAction(z,I),!0):(E.config.customAlert("\u8868\u683C\u884C\u5217\u8BF7\u8F93\u5165\u6B63\u6574\u6570","warning"),!1)},bindEnter:!0}]}],D={width:330,height:0,tabs:[]};return D.tabs.push(O[0]),D}r.default=A},function(i,r,o){i.exports=o(385)},function(i,r,o){var s=o(386);i.exports=s},function(i,r,o){o(387);var s=o(9);i.exports=s.Number.isInteger},function(i,r,o){var s=o(5),d=o(388);s({target:"Number",stat:!0},{isInteger:d})},function(i,r,o){var s=o(13),d=Math.floor;i.exports=function(u){return!s(u)&&isFinite(u)&&d(u)===u}},function(i,r,o){var s=o(20),d=o(390);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21);r=s(!1),r.push([i.i,`.w-e-table {
display: flex;
}
.w-e-table .w-e-table-input {
width: 40px;
text-align: center!important;
margin: 0 5px;
}
`,""]),i.exports=r},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=o(7),g=c.__importDefault(o(3)),y=function(){function C(w){this.editor=w}return C.prototype.createAction=function(w,A){var E=this.editor,_=g.default(E.selection.getSelectionContainerElem()),v=g.default(_.elems[0]).parentUntilEditor("UL",E),m=g.default(_.elems[0]).parentUntilEditor("OL",E);if(!(v||m)){var b=this.createTableHtml(w,A);E.cmd.do("insertHTML",b)}},C.prototype.createTableHtml=function(w,A){for(var E="",_="",v=0;v<w;v++){_="";for(var m=0;m<A;m++)v===0?_=_+"<th></th>":_=_+"<td></td>";E=E+"<tr>"+_+"</tr>"}var b='<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+E+("</tbody></table>"+u.EMPTY_P);return b},C}();r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(393)),g=o(400);function y(C){u.default(C),g.bindEventKeyboardEvent(C),g.bindClickEvent(C)}r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(39)),y=c.__importDefault(o(394)),C=c.__importDefault(o(399)),w=o(7);function A(m){var b;function S(O){var D=new C.default(m),R="menus.panelMenus.table.",I=function(B,L){return L===void 0&&(L=R),m.i18next.t(L+B)},z=[{$elem:u.default("<span>"+I("\u5220\u9664\u8868\u683C")+"</span>"),onClick:function(B,L){return B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",w.EMPTY_P),!0}},{$elem:u.default("<span>"+I("\u6DFB\u52A0\u884C")+"</span>"),onClick:function(B,L){var U=E(B);if(U)return!0;var W=u.default(B.selection.getSelectionStartElem()),V=D.getRowNode(W.elems[0]);if(!V)return!0;var k=Number(D.getCurrentRowIndex(L.elems[0],V)),M=D.getTableHtml(L.elems[0]),j=D.getTableHtml(y.default.ProcessingRow(u.default(M),k).elems[0]);return j=v(L,j),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",j),!0}},{$elem:u.default("<span>"+I("\u5220\u9664\u884C")+"</span>"),onClick:function(B,L){var U=E(B);if(U)return!0;var W=u.default(B.selection.getSelectionStartElem()),V=D.getRowNode(W.elems[0]);if(!V)return!0;var k=Number(D.getCurrentRowIndex(L.elems[0],V)),M=D.getTableHtml(L.elems[0]),j=y.default.DeleteRow(u.default(M),k).elems[0].children[0].children.length,Z="";return B.selection.createRangeByElem(L),B.selection.restoreSelection(),j===0?Z=w.EMPTY_P:Z=D.getTableHtml(y.default.DeleteRow(u.default(M),k).elems[0]),Z=v(L,Z),B.cmd.do("insertHTML",Z),!0}},{$elem:u.default("<span>"+I("\u6DFB\u52A0\u5217")+"</span>"),onClick:function(B,L){var U=E(B);if(U)return!0;var W=u.default(B.selection.getSelectionStartElem()),V=D.getCurrentColIndex(W.elems[0]),k=D.getTableHtml(L.elems[0]),M=D.getTableHtml(y.default.ProcessingCol(u.default(k),V).elems[0]);return M=v(L,M),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",M),!0}},{$elem:u.default("<span>"+I("\u5220\u9664\u5217")+"</span>"),onClick:function(B,L){var U=E(B);if(U)return!0;var W=u.default(B.selection.getSelectionStartElem()),V=D.getCurrentColIndex(W.elems[0]),k=D.getTableHtml(L.elems[0]),M=y.default.DeleteCol(u.default(k),V),j=M.elems[0].children[0].children[0].children.length,Z="";return B.selection.createRangeByElem(L),B.selection.restoreSelection(),j===0?Z=w.EMPTY_P:Z=D.getTableHtml(M.elems[0]),Z=v(L,Z),B.cmd.do("insertHTML",Z),!0}},{$elem:u.default("<span>"+I("\u8BBE\u7F6E\u8868\u5934")+"</span>"),onClick:function(B,L){var U=E(B);if(U)return!0;var W=u.default(B.selection.getSelectionStartElem()),V=D.getRowNode(W.elems[0]);if(!V)return!0;var k=Number(D.getCurrentRowIndex(L.elems[0],V));k!==0&&(k=0);var M=D.getTableHtml(L.elems[0]),j=D.getTableHtml(y.default.setTheHeader(u.default(M),k,"th").elems[0]);return j=v(L,j),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",j),!0}},{$elem:u.default("<span>"+I("\u53D6\u6D88\u8868\u5934")+"</span>"),onClick:function(B,L){var U=u.default(B.selection.getSelectionStartElem()),W=D.getRowNode(U.elems[0]);if(!W)return!0;var V=Number(D.getCurrentRowIndex(L.elems[0],W));V!==0&&(V=0);var k=D.getTableHtml(L.elems[0]),M=D.getTableHtml(y.default.setTheHeader(u.default(k),V,"td").elems[0]);return M=v(L,M),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",M),!0}}];b=new g.default(m,O,z),b.create()}function x(){b&&(b.remove(),b=null)}return{showTableTooltip:S,hideTableTooltip:x}}function E(m){var b=m.selection.getSelectionStartElem(),S=m.selection.getSelectionEndElem();return(b==null?void 0:b.elems[0])!==(S==null?void 0:S.elems[0])}function _(m){var b=A(m),S=b.showTableTooltip,x=b.hideTableTooltip;m.txt.eventHooks.tableClickEvents.push(S),m.txt.eventHooks.clickEvents.push(x),m.txt.eventHooks.keyupEvents.push(x),m.txt.eventHooks.toolbarClickEvents.push(x),m.txt.eventHooks.menuClickEvents.push(x),m.txt.eventHooks.textScrollEvents.push(x)}r.default=_;function v(m,b){var S=m.elems[0].nextSibling;return(!S||S.innerHTML==="<br>")&&(b+=""+w.EMPTY_P),b}},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(45)),u=s(o(91)),g=s(o(4)),y=s(o(138));(0,d.default)(r,"__esModule",{value:!0});var C=o(2),w=C.__importDefault(o(3));function A(x,O){for(var D=S(x),R=(0,c.default)(Array.prototype).apply(D.children),I=R[0].children.length,z=document.createElement("tr"),T=0;T<I;T++){var B=document.createElement("td");z.appendChild(B)}return(0,u.default)(R).call(R,O+1,0,z),b(D,R),w.default(D.parentNode)}function E(x,O){for(var D=S(x),R=(0,c.default)(Array.prototype).apply(D.children),I=function(B){var L,U=[];for((0,g.default)(L=(0,y.default)(R[B].children)).call(L,function(k){U.push(k)});R[B].children.length!==0;)R[B].removeChild(R[B].children[0]);var W=w.default(U[0]).getNodeName()!=="TH"?document.createElement("td"):document.createElement("th");(0,u.default)(U).call(U,O+1,0,W);for(var V=0;V<U.length;V++)R[B].appendChild(U[V])},z=0;z<R.length;z++)I(z);return b(D,R),w.default(D.parentNode)}function _(x,O){var D=S(x),R=(0,c.default)(Array.prototype).apply(D.children);return(0,u.default)(R).call(R,O,1),b(D,R),w.default(D.parentNode)}function v(x,O){for(var D=S(x),R=(0,c.default)(Array.prototype).apply(D.children),I=function(B){var L,U=[];for((0,g.default)(L=(0,y.default)(R[B].children)).call(L,function(V){U.push(V)});R[B].children.length!==0;)R[B].removeChild(R[B].children[0]);(0,u.default)(U).call(U,O,1);for(var W=0;W<U.length;W++)R[B].appendChild(U[W])},z=0;z<R.length;z++)I(z);return b(D,R),w.default(D.parentNode)}function m(x,O,D){for(var R=S(x),I=(0,c.default)(Array.prototype).apply(R.children),z=I[O].children,T=document.createElement("tr"),B=function(W){var V,k=document.createElement(D),M=z[W];(0,g.default)(V=(0,y.default)(M.childNodes)).call(V,function(j){k.appendChild(j)}),T.appendChild(k)},L=0;L<z.length;L++)B(L);return(0,u.default)(I).call(I,O,1,T),b(R,I),w.default(R.parentNode)}function b(x,O){for(;x.children.length!==0;)x.removeChild(x.children[0]);for(var D=0;D<O.length;D++)x.appendChild(O[D])}function S(x){var O=x.elems[0].children[0];return O.nodeName==="COLGROUP"&&(O=x.elems[0].children[x.elems[0].children.length-1]),O}r.default={ProcessingRow:A,ProcessingCol:E,DeleteRow:_,DeleteCol:v,setTheHeader:m}},function(i,r,o){var s=o(396);i.exports=s},function(i,r,o){o(50),o(397);var s=o(9);i.exports=s.Array.from},function(i,r,o){var s=o(5),d=o(398),c=o(115),u=!c(function(g){Array.from(g)});s({target:"Array",stat:!0,forced:u},{from:d})},function(i,r,o){var s=o(40),d=o(31),c=o(114),u=o(112),g=o(35),y=o(69),C=o(113);i.exports=function(A){var E=d(A),_=typeof this=="function"?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,b=m!==void 0,S=C(E),x=0,O,D,R,I,z,T;if(b&&(m=s(m,v>2?arguments[2]:void 0,2)),S!=null&&!(_==Array&&u(S)))for(I=S.call(E),z=I.next,D=new _;!(R=z.call(I)).done;x++)T=b?c(I,m,[R.value,x],!0):R.value,y(D,x,T);else for(O=g(E.length),D=new _(O);O>x;x++)T=b?m(E[x],x):E[x],y(D,x,T);return D.length=x,D}},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4)),u=s(o(138));(0,d.default)(r,"__esModule",{value:!0});var g=o(2),y=g.__importDefault(o(3)),C=function(){function w(A){this.editor=A}return w.prototype.getRowNode=function(A){var E,_=y.default(A).elems[0];return _.parentNode&&(_=(E=y.default(_).parentUntil("TR",_))===null||E===void 0?void 0:E.elems[0]),_},w.prototype.getCurrentRowIndex=function(A,E){var _,v=0,m=A.children[0];return m.nodeName==="COLGROUP"&&(m=A.children[A.children.length-1]),(0,c.default)(_=(0,u.default)(m.children)).call(_,function(b,S){b===E&&(v=S)}),v},w.prototype.getCurrentColIndex=function(A){var E,_,v=0,m=y.default(A).getNodeName()==="TD"||y.default(A).getNodeName()==="TH"?A:(_=y.default(A).parentUntil("TD",A))===null||_===void 0?void 0:_.elems[0],b=y.default(m).parent();return(0,c.default)(E=(0,u.default)(b.elems[0].children)).call(E,function(S,x){S===m&&(v=x)}),v},w.prototype.getTableHtml=function(A){var E='<table border="0" width="100%" cellpadding="0" cellspacing="0">'+y.default(A).html()+"</table>";return E},w}();r.default=C},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.bindEventKeyboardEvent=r.bindClickEvent=void 0;var c=o(2),u=c.__importDefault(o(3));function g(w){if(!w.length)return!1;var A=w.elems[0];return A.nodeName==="P"&&A.innerHTML==="<br>"}function y(w){function A(E,_){if(_.detail>=3){var v=window.getSelection();if(v){var m=v.focusNode,b=v.anchorNode,S=u.default(b==null?void 0:b.parentElement);if(!E.isContain(u.default(m))){var x=S.elems[0].tagName==="TD"?S:S.parentUntilEditor("td",w);if(x){var O=w.selection.getRange();O==null||O.setEnd(x.elems[0],x.elems[0].childNodes.length),w.selection.restoreSelection()}}}}}w.txt.eventHooks.tableClickEvents.push(A)}r.bindClickEvent=y;function C(w){var A=w.txt,E=w.selection,_=A.eventHooks.keydownEvents;_.push(function(v){w.selection.saveRange();var m=E.getSelectionContainerElem();if(m){var b=m.getNodeTop(w),S=b.length&&b.prev().length?b.prev():null;if(S&&S.getNodeName()==="TABLE"&&E.isSelectionEmpty()&&E.getCursorPos()===0&&v.keyCode===8){var x=b.next(),O=!!x.length;O&&g(b)&&(b.remove(),w.selection.setRangeToElem(x.elems[0])),v.preventDefault()}}})}r.bindEventKeyboardEvent=C},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(26));(0,d.default)(r,"__esModule",{value:!0}),r.formatCodeHtml=void 0;var u=o(2),g=u.__importDefault(o(38)),y=u.__importDefault(o(3)),C=o(6),w=u.__importDefault(o(402)),A=u.__importDefault(o(139)),E=u.__importDefault(o(33)),_=u.__importDefault(o(403));function v(b,S){if(!S)return S;return S=O(S),S=x(S),S=C.replaceSpecialSymbol(S),S;function x(D){var R=D.match(/<pre[\s|\S]+?\/pre>/g);return R===null||(0,c.default)(R).call(R,function(I){D=D.replace(I,I.replace(/<\/code><code>/g,`
`).replace(/<br>/g,""))}),D}function O(D){var R,I=D.match(/<span\sclass="hljs[\s|\S]+?\/span>/gm);if(!I||!I.length)return D;for(var z=(0,c.default)(R=C.deepClone(I)).call(R,function(B){return B=B.replace(/<span\sclass="hljs[^>]+>/,""),B.replace(/<\/span>/,"")}),T=0;T<I.length;T++)D=D.replace(I[T],z[T]);return O(D)}}r.formatCodeHtml=v;var m=function(b){u.__extends(S,b);function S(x){var O=this,D=y.default('<div class="w-e-menu" data-title="\u4EE3\u7801"><i class="w-e-icon-terminal"></i></div>');return O=b.call(this,D,x)||this,_.default(x),O}return S.prototype.insertLineCode=function(x){var O=this.editor,D=y.default("<code>"+x+"</code>");O.cmd.do("insertElem",D),O.selection.createRangeByElem(D,!1),O.selection.restoreSelection()},S.prototype.clickHandler=function(){var x=this.editor,O=x.selection.getSelectionText();this.isActive||(x.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(O))},S.prototype.createPanel=function(x,O){var D=w.default(this.editor,x,O),R=new E.default(this,D);R.create()},S.prototype.tryChangeActive=function(){var x=this.editor;A.default(x)?this.active():this.unActive()},S}(g.default);r.default=m},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(26));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=o(6),y=u.__importDefault(o(3)),C=u.__importDefault(o(139)),w=o(7);function A(E,_,v){var m,b=g.getRandom("input-iframe"),S=g.getRandom("select"),x=g.getRandom("btn-ok");function O(z,T){var B,L=C.default(E);L&&D();var U=(B=E.selection.getSelectionStartElem())===null||B===void 0?void 0:B.elems[0].innerHTML;U&&E.cmd.do("insertHTML",w.EMPTY_P);var W=T.replace(/</g,"&lt;").replace(/>/g,"&gt;");E.highlight&&(W=E.highlight.highlightAuto(W).value),E.cmd.do("insertHTML",'<pre><code class="'+z+'">'+W+"</code></pre>");var V=E.selection.getSelectionStartElem(),k=V==null?void 0:V.getNodeTop(E);(k==null?void 0:k.getNextSibling().elems.length)===0&&y.default(w.EMPTY_P).insertAfter(k)}function D(){if(!!C.default(E)){var z=E.selection.getSelectionStartElem(),T=z==null?void 0:z.getNodeTop(E);!T||(E.selection.createRangeByElem(T),E.selection.restoreSelection())}}var R=function(T){return E.i18next.t(T)},I={width:500,height:0,tabs:[{title:R("menus.panelMenus.code.\u63D2\u5165\u4EE3\u7801"),tpl:`<div>
<select name="" id="`+S+`">
`+(0,c.default)(m=E.config.languageType).call(m,function(z){return"<option "+(v==z?"selected":"")+' value ="'+z+'">'+z+"</option>"})+`
</select>
<textarea id="`+b+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+_.replace(/&quot;/g,'"')+`</textarea>
<div class="w-e-button-container">
<button type="button" id="`+x+'" class="right">'+(C.default(E)?R("\u4FEE\u6539"):R("\u63D2\u5165"))+`</button>
</div>
</div>`,events:[{selector:"#"+x,type:"click",fn:function(){var T=document.getElementById(b),B=y.default("#"+S),L=B.val(),U=T.value;if(!!U)return C.default(E)?!1:(O(L,U),!0)}}]}]};return I}r.default=A},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(404)),g=c.__importDefault(o(405));function y(C){u.default(C),g.default(C)}r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.createShowHideFn=void 0;var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(39));function y(w){var A;function E(v){var m="menus.panelMenus.code.",b=function(O,D){return D===void 0&&(D=m),w.i18next.t(D+O)},S=[{$elem:u.default("<span>"+b("\u5220\u9664\u4EE3\u7801")+"</span>"),onClick:function(O,D){return D.remove(),!0}}];A=new g.default(w,v,S),A.create()}function _(){A&&(A.remove(),A=null)}return{showCodeTooltip:E,hideCodeTooltip:_}}r.createShowHideFn=y;function C(w){var A=y(w),E=A.showCodeTooltip,_=A.hideCodeTooltip;w.txt.eventHooks.codeClickEvents.push(E),w.txt.eventHooks.clickEvents.push(_),w.txt.eventHooks.toolbarClickEvents.push(_),w.txt.eventHooks.menuClickEvents.push(_),w.txt.eventHooks.textScrollEvents.push(_)}r.default=C},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=o(7),g=c.__importDefault(o(3));function y(C){var w=C.$textElem,A=C.selection,E=C.txt,_=E.eventHooks.keydownEvents;_.push(function(v){var m;if(v.keyCode===40){var b=A.getSelectionContainerElem(),S=(m=w.children())===null||m===void 0?void 0:m.last();if((b==null?void 0:b.elems[0].tagName)==="XMP"&&(S==null?void 0:S.elems[0].tagName)==="PRE"){var x=g.default(u.EMPTY_P);w.append(x)}}}),_.push(function(v){C.selection.saveRange();var m=A.getSelectionContainerElem();if(m){var b=m.getNodeTop(C),S=b==null?void 0:b.prev(),x=b==null?void 0:b.getNextSibling();if(S.length&&(S==null?void 0:S.getNodeName())==="PRE"&&x.length===0&&A.getCursorPos()===0&&v.keyCode===8){var O=g.default(u.EMPTY_P);w.append(O)}}})}r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(23)),g=c.__importDefault(o(3)),y=c.__importDefault(o(407)),C=o(6),w=o(7),A=function(E){c.__extends(_,E);function _(v){var m=this,b=g.default('<div class="w-e-menu" data-title="\u5206\u5272\u7EBF"><i class="w-e-icon-split-line"></i></div>');return m=E.call(this,b,v)||this,y.default(v),m}return _.prototype.clickHandler=function(){var v=this.editor,m=v.selection.getRange(),b=v.selection.getSelectionContainerElem();if(!!(b!=null&&b.length)){var S=g.default(b.elems[0]),x=S.parentUntil("TABLE",b.elems[0]),O=S.children();S.getNodeName()!=="CODE"&&(x&&g.default(x.elems[0]).getNodeName()==="TABLE"||O&&O.length!==0&&g.default(O.elems[0]).getNodeName()==="IMG"&&!(m!=null&&m.collapsed)||this.createSplitLine())}},_.prototype.createSplitLine=function(){var v="<hr/>"+w.EMPTY_P;C.UA.isFirefox&&(v="<hr/><p></p>"),this.editor.cmd.do("insertHTML",v)},_.prototype.tryChangeActive=function(){},_}(u.default);r.default=A},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(408));function g(y){u.default(y)}r.default=g},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(39));function y(w){var A;function E(v){var m=[{$elem:u.default("<span>"+w.i18next.t("menus.panelMenus.\u5220\u9664")+"</span>"),onClick:function(S,x){return S.selection.createRangeByElem(x),S.selection.restoreSelection(),S.cmd.do("delete"),!0}}];A=new g.default(w,v,m),A.create()}function _(){A&&(A.remove(),A=null)}return{showSplitLineTooltip:E,hideSplitLineTooltip:_}}function C(w){var A=y(w),E=A.showSplitLineTooltip,_=A.hideSplitLineTooltip;w.txt.eventHooks.splitLineEvents.push(E),w.txt.eventHooks.clickEvents.push(_),w.txt.eventHooks.keyupEvents.push(_),w.txt.eventHooks.toolbarClickEvents.push(_),w.txt.eventHooks.menuClickEvents.push(_),w.txt.eventHooks.textScrollEvents.push(_)}r.default=C},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=u.__importDefault(o(23)),C=o(98),w=u.__importDefault(o(415)),A=u.__importDefault(o(140)),E=function(_){u.__extends(v,_);function v(m){var b=this,S=g.default(`<div class="w-e-menu" data-title="\u5F85\u529E\u4E8B\u9879">
<i class="w-e-icon-checkbox-checked"></i>
</div>`);return b=_.call(this,S,m)||this,w.default(m),b}return v.prototype.clickHandler=function(){var m=this.editor;C.isAllTodo(m)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},v.prototype.tryChangeActive=function(){C.isAllTodo(this.editor)?this.active():this.unActive()},v.prototype.setTodo=function(){var m=this.editor,b=m.selection.getSelectionRangeTopNodes();(0,c.default)(b).call(b,function(S){var x,O=S==null?void 0:S.getNodeName();if(O==="P"){var D=A.default(S),R=D.getTodo(),I=(x=R.children())===null||x===void 0?void 0:x.getNode();R.insertAfter(S),m.selection.moveCursor(I),S.remove()}}),this.tryChangeActive()},v.prototype.cancelTodo=function(){var m=this.editor,b=m.selection.getSelectionRangeTopNodes();(0,c.default)(b).call(b,function(S){var x,O,D,R=(O=(x=S.childNodes())===null||x===void 0?void 0:x.childNodes())===null||O===void 0?void 0:O.clone(!0),I=g.default("<p></p>");I.append(R),I.insertAfter(S),(D=I.childNodes())===null||D===void 0||D.get(0).remove(),m.selection.moveCursor(I.getNode()),S.remove()})},v}(y.default);r.default=E},function(i,r,o){i.exports=o(411)},function(i,r,o){var s=o(412);i.exports=s},function(i,r,o){var s=o(413),d=Array.prototype;i.exports=function(c){var u=c.every;return c===d||c instanceof Array&&u===d.every?s:u}},function(i,r,o){o(414);var s=o(15);i.exports=s("Array").every},function(i,r,o){var s=o(5),d=o(32).every,c=o(67),u=o(22),g=c("every"),y=u("every");s({target:"Array",proto:!0,forced:!g||!y},{every:function(w){return d(this,w,arguments.length>1?arguments[1]:void 0)}})},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=o(98),C=u.__importDefault(o(140)),w=o(98),A=o(7);function E(_){function v(x){var O,D;if(y.isAllTodo(_)){x.preventDefault();var R=_.selection,I=R.getSelectionRangeTopNodes()[0],z=(O=I.childNodes())===null||O===void 0?void 0:O.get(0),T=(D=window.getSelection())===null||D===void 0?void 0:D.anchorNode,B=R.getRange();if(!(B!=null&&B.collapsed)){var L=B==null?void 0:B.commonAncestorContainer.childNodes,U=B==null?void 0:B.startContainer,W=B==null?void 0:B.endContainer,V=B==null?void 0:B.startOffset,k=B==null?void 0:B.endOffset,M=0,j=0,Z=[];L==null||(0,c.default)(L).call(L,function($,Y){$.contains(U)&&(M=Y),$.contains(W)&&(j=Y)}),j-M>1&&(L==null||(0,c.default)(L).call(L,function($,Y){Y<=M||Y>=j||Z.push($)}),(0,c.default)(Z).call(Z,function($){$.remove()})),w.dealTextNode(U,V),w.dealTextNode(W,k,!1),_.selection.moveCursor(W,0)}if(I.text()===""){var J=g.default(A.EMPTY_P);J.insertAfter(I),R.moveCursor(J.getNode()),I.remove();return}var F=R.getCursorPos(),ie=y.getCursorNextNode(z==null?void 0:z.getNode(),T,F),pe=C.default(g.default(ie)),se=pe.getInputContainer(),ye=se.parent().getNode(),fe=pe.getTodo(),ue=se.getNode().nextSibling;if((z==null?void 0:z.text())===""&&(z==null||z.append(g.default("<br>"))),fe.insertAfter(I),!ue||(ue==null?void 0:ue.textContent)===""){if((ue==null?void 0:ue.nodeName)!=="BR"){var he=g.default("<br>");he.insertAfter(se)}R.moveCursor(ye,1)}else R.moveCursor(ye)}}function m(x){var O,D;if(y.isAllTodo(_)){var R=_.selection,I=R.getSelectionRangeTopNodes()[0],z=(O=I.childNodes())===null||O===void 0?void 0:O.getNode(),T=g.default("<p></p>"),B=T.getNode(),L=(D=window.getSelection())===null||D===void 0?void 0:D.anchorNode,U=R.getCursorPos(),W=L.previousSibling;if(I.text()===""){x.preventDefault();var V=g.default(A.EMPTY_P);V.insertAfter(I),I.remove(),R.moveCursor(V.getNode(),0);return}if((W==null?void 0:W.nodeName)==="SPAN"&&W.childNodes[0].nodeName==="INPUT"&&U===0){var k;x.preventDefault(),z==null||(0,c.default)(k=z.childNodes).call(k,function(M,j){j!==0&&B.appendChild(M.cloneNode(!0))}),T.insertAfter(I),I.remove()}}}function b(){var x=_.selection,O=x.getSelectionRangeTopNodes()[0];O&&w.isTodo(O)&&O.text()===""&&(g.default(A.EMPTY_P).insertAfter(O),O.remove())}function S(x){x&&x.target instanceof HTMLInputElement&&x.target.type==="checkbox"&&(x.target.checked?x.target.setAttribute("checked","true"):x.target.removeAttribute("checked"))}_.txt.eventHooks.enterDownEvents.push(v),_.txt.eventHooks.deleteUpEvents.push(b),_.txt.eventHooks.deleteDownEvents.push(m),_.txt.eventHooks.clickEvents.push(S)}r.default=E},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.selectorValidator=void 0;var c=o(2),u=c.__importDefault(o(3)),g=o(6),y=o(7),C=c.__importDefault(o(130)),w={border:"1px solid #c9d8db",toolbarBgColor:"#FFF",toolbarBottomBorder:"1px solid #EEE"};function A(_){var v=_.toolbarSelector,m=u.default(v),b=_.textSelector,S=_.config,x=S.height,O=_.i18next,D=u.default("<div></div>"),R=u.default("<div></div>"),I,z,T=null;b==null?(z=m.children(),m.append(D).append(R),D.css("background-color",w.toolbarBgColor).css("border",w.border).css("border-bottom",w.toolbarBottomBorder),R.css("border",w.border).css("border-top","none").css("height",x+"px")):(m.append(D),T=u.default(b).children(),u.default(b).append(R),z=R.children()),I=u.default("<div></div>"),I.attr("contenteditable","true").css("width","100%").css("height","100%");var B,L=_.config.placeholder;L!==C.default.placeholder?B=u.default("<div>"+L+"</div>"):B=u.default("<div>"+O.t(L)+"</div>"),B.addClass("placeholder"),z&&z.length?(I.append(z),B.hide()):I.append(u.default(y.EMPTY_P)),T&&T.length&&(I.append(T),B.hide()),R.append(I),R.append(B),D.addClass("w-e-toolbar").css("z-index",_.zIndex.get("toolbar")),R.addClass("w-e-text-container"),R.css("z-index",_.zIndex.get()),I.addClass("w-e-text");var U=g.getRandom("toolbar-elem");D.attr("id",U);var W=g.getRandom("text-elem");I.attr("id",W);var V=R.getBoundingClientRect().height,k=I.getBoundingClientRect().height;V!==k&&I.css("min-height",V+"px"),_.$toolbarElem=D,_.$textContainerElem=R,_.$textElem=I,_.toolbarElemId=U,_.textElemId=W}r.default=A;function E(_){var v="data-we-id",m=/^wangEditor-\d+$/,b=_.textSelector,S=_.toolbarSelector,x={bar:u.default("<div></div>"),text:u.default("<div></div>")};if(S==null)throw new Error("\u9519\u8BEF\uFF1A\u521D\u59CB\u5316\u7F16\u8F91\u5668\u65F6\u5019\u672A\u4F20\u5165\u4EFB\u4F55\u53C2\u6570\uFF0C\u8BF7\u67E5\u9605\u6587\u6863");if(x.bar=u.default(S),!x.bar.elems.length)throw new Error("\u65E0\u6548\u7684\u8282\u70B9\u9009\u62E9\u5668\uFF1A"+S);if(m.test(x.bar.attr(v)))throw new Error("\u521D\u59CB\u5316\u8282\u70B9\u5DF2\u5B58\u5728\u7F16\u8F91\u5668\u5B9E\u4F8B\uFF0C\u65E0\u6CD5\u91CD\u590D\u521B\u5EFA\u7F16\u8F91\u5668");if(b){if(x.text=u.default(b),!x.text.elems.length)throw new Error("\u65E0\u6548\u7684\u8282\u70B9\u9009\u62E9\u5668\uFF1A"+b);if(m.test(x.text.attr(v)))throw new Error("\u521D\u59CB\u5316\u8282\u70B9\u5DF2\u5B58\u5728\u7F16\u8F91\u5668\u5B9E\u4F8B\uFF0C\u65E0\u6CD5\u91CD\u590D\u521B\u5EFA\u7F16\u8F91\u5668")}x.bar.attr(v,_.id),x.text.attr(v,_.id),_.beforeDestroy(function(){x.bar.removeAttr(v),x.text.removeAttr(v)})}r.selectorValidator=E},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(3)),g=o(7);function y(C,w){var A=C.$textElem,E=A.children();if(!E||!E.length){A.append(u.default(g.EMPTY_P)),y(C);return}var _=E.last();if(w){var v=_.html().toLowerCase(),m=_.getNodeName();if(v!=="<br>"&&v!=="<br/>"||m!=="P"){A.append(u.default(g.EMPTY_P)),y(C);return}}C.selection.createRangeByElem(_,!1,!0),C.config.focus?C.selection.restoreSelection():C.selection.clearWindowSelectionRange()}r.default=y},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3));function y(v){C(v),w(v),A(v)}function C(v){v.txt.eventHooks.changeEvents.push(function(){var m=v.config.onchange;if(m){var b=v.txt.html()||"";v.isFocus=!0,m(b)}v.txt.togglePlaceholder()})}function w(v){v.isFocus=!1;function m(b){var S=b.target,x=g.default(S),O=v.$textElem,D=v.$toolbarElem,R=O.isContain(x),I=D.isContain(x),z=D.elems[0]==b.target;if(R)v.isFocus||_(v),v.isFocus=!0;else{if(I&&!z||!v.isFocus)return;E(v),v.isFocus=!1}}document.activeElement===v.$textElem.elems[0]&&v.config.focus&&(_(v),v.isFocus=!0),g.default(document).on("click",m),v.beforeDestroy(function(){g.default(document).off("click",m)})}function A(v){v.$textElem.on("compositionstart",function(){v.isComposing=!0,v.txt.togglePlaceholder()}).on("compositionend",function(){v.isComposing=!1,v.txt.togglePlaceholder()})}function E(v){var m,b=v.config,S=b.onblur,x=v.txt.html()||"";(0,c.default)(m=v.txt.eventHooks.onBlurEvents).call(m,function(O){return O()}),S(x)}function _(v){var m=v.config,b=m.onfocus,S=v.txt.html()||"";b(S)}r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});function c(u){var g=u.config,y=g.lang,C=g.languages;if(u.i18next!=null){try{u.i18next.init({ns:"wangEditor",lng:y,defaultNS:"wangEditor",resources:C})}catch(w){throw new Error("i18next:"+w)}return}u.i18next={t:function(A){var E=A.split(".");return E[E.length-1]}}}r.default=c},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(29));(0,d.default)(r,"__esModule",{value:!0}),r.setUnFullScreen=r.setFullScreen=void 0;var u=o(2),g=u.__importDefault(o(3));o(421);var y="w-e-icon-fullscreen",C="w-e-icon-fullscreen_exit",w="w-e-full-screen-editor";r.setFullScreen=function(E){var _=g.default(E.toolbarSelector),v=E.$textContainerElem,m=E.$toolbarElem,b=(0,c.default)(m).call(m,"i."+y),S=E.config;b.removeClass(y),b.addClass(C),_.addClass(w),_.css("z-index",S.zIndexFullScreen);var x=m.getBoundingClientRect();v.css("height","calc(100% - "+x.height+"px)")},r.setUnFullScreen=function(E){var _=g.default(E.toolbarSelector),v=E.$textContainerElem,m=E.$toolbarElem,b=(0,c.default)(m).call(m,"i."+C),S=E.config;b.removeClass(C),b.addClass(y),_.removeClass(w),_.css("z-index","auto"),v.css("height",S.height+"px")};var A=function(_){if(!_.textSelector&&!!_.config.showFullScreen){var v=_.$toolbarElem,m=g.default(`<div class="w-e-menu" data-title="\u5168\u5C4F">
<i class="`+y+`"></i>
</div>`);m.on("click",function(b){var S,x=(0,c.default)(S=g.default(b.currentTarget)).call(S,"i");x.hasClass(y)?(m.attr("data-title","\u53D6\u6D88\u5168\u5C4F"),r.setFullScreen(_)):(m.attr("data-title","\u5168\u5C4F"),r.setUnFullScreen(_))}),v.append(m)}};r.default=A},function(i,r,o){var s=o(20),d=o(422);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21);r=s(!1),r.push([i.i,`.w-e-full-screen-editor {
position: fixed;
width: 100%!important;
height: 100%!important;
left: 0;
top: 0;
}
`,""]),i.exports=r},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(29));(0,d.default)(r,"__esModule",{value:!0});var u=function(y,C){var w,A=y.isEnable?y.$textElem:(0,c.default)(w=y.$textContainerElem).call(w,".w-e-content-mantle"),E=(0,c.default)(A).call(A,"[id='"+C+"']"),_=E.getOffsetData().top;A.scrollTop(_)};r.default=u},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(129)),g={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},y=function(){function C(){this.tier=g,this.baseZIndex=u.default.zIndex}return C.prototype.get=function(w){return w&&this.tier[w]?this.baseZIndex+this.tier[w]:this.baseZIndex},C.prototype.init=function(w){this.baseZIndex==u.default.zIndex&&(this.baseZIndex=w.config.zIndex)},C}();r.default=y},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(70)),u=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var g=o(2),y=g.__importDefault(o(426)),C=o(6),w=o(7);function A(_,v){return(0,c.default)(_).call(_,function(m){var b=m.type,S=m.target,x=m.attributeName;return b!="attributes"||b=="attributes"&&(x=="contenteditable"||S!=v)})}var E=function(_){g.__extends(v,_);function v(m){var b=_.call(this,function(S,x){var O;if(S=A(S,x.target),(O=b.data).push.apply(O,S),m.isCompatibleMode)b.asyncSave();else if(!m.isComposing)return b.asyncSave()})||this;return b.editor=m,b.data=[],b.asyncSave=w.EMPTY_FN,b}return v.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},v.prototype.emit=function(){var m;(0,u.default)(m=this.editor.txt.eventHooks.changeEvents).call(m,function(b){return b()})},v.prototype.observe=function(){var m=this;_.prototype.observe.call(this,this.editor.$textElem.elems[0]);var b=this.editor.config.onchangeTimeout;this.asyncSave=C.debounce(function(){m.save()},b),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",function(){m.asyncSave()})},v}(y.default);r.default=E},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=function(){function u(g,y){var C=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(w){g(w,C)},this.observer=new MutationObserver(this.callback),y&&(this.options=y)}return(0,d.default)(u.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),u.prototype.observe=function(g){this.node instanceof Node||(this.node=g,this.connect())},u.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("\u8FD8\u672A\u521D\u59CB\u5316\u7ED1\u5B9A\uFF0C\u8BF7\u60A8\u5148\u7ED1\u5B9A\u6709\u6548\u7684 Node \u8282\u70B9")},u.prototype.disconnect=function(){var g=this.observer.takeRecords();g.length&&this.callback(g),this.observer.disconnect()},u}();r.default=c},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(428)),g=c.__importDefault(o(435)),y=c.__importDefault(o(436)),C=function(){function w(A){this.editor=A,this.content=new u.default(A),this.scroll=new g.default(A),this.range=new y.default(A)}return(0,d.default)(w.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),w.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},w.prototype.save=function(A){A.length&&(this.content.save(A),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},w.prototype.revoke=function(){this.editor.change.disconnect();var A=this.content.revoke();A&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),A&&this.editor.change.emit()},w.prototype.restore=function(){this.editor.change.disconnect();var A=this.content.restore();A&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),A&&this.editor.change.emit()},w}();r.default=C},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(429)),g=c.__importDefault(o(433)),y=function(){function C(w){this.editor=w}return C.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new g.default(this.editor):this.cache=new u.default(this.editor),this.cache.observe()},C.prototype.save=function(w){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(w)},C.prototype.revoke=function(){var w;return(w=this.cache)===null||w===void 0?void 0:w.revoke()},C.prototype.restore=function(){var w;return(w=this.cache)===null||w===void 0?void 0:w.restore()},C}();r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(99)),g=c.__importDefault(o(431)),y=o(432),C=function(w){c.__extends(A,w);function A(E){var _=w.call(this,E.config.historyMaxSize)||this;return _.editor=E,_}return A.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},A.prototype.compile=function(E){return this.save(g.default(E)),this},A.prototype.revoke=function(){return w.prototype.revoke.call(this,function(E){y.revoke(E)})},A.prototype.restore=function(){return w.prototype.restore.call(this,function(E){y.restore(E)})},A}(u.default);r.default=C},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.CeilStack=void 0;var c=function(){function u(g){g===void 0&&(g=0),this.data=[],this.max=0,this.reset=!1,g=Math.abs(g),g&&(this.max=g)}return u.prototype.resetMax=function(g){g=Math.abs(g),!this.reset&&!isNaN(g)&&(this.max=g,this.reset=!0)},(0,d.default)(u.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),u.prototype.instack=function(g){return this.data.unshift(g),this.max&&this.size>this.max&&(this.data.length=this.max),this},u.prototype.outstack=function(){return this.data.shift()},u.prototype.clear=function(){return this.data.length=0,this},u}();r.CeilStack=c},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4)),u=s(o(27));(0,d.default)(r,"__esModule",{value:!0}),r.compliePosition=r.complieNodes=r.compileValue=r.compileType=void 0;var g=o(6);function y(m){switch(m){case"childList":return"node";case"attributes":return"attr";default:return"text"}}r.compileType=y;function C(m){switch(m.type){case"attributes":return m.target.getAttribute(m.attributeName)||"";case"characterData":return m.target.textContent;default:return""}}r.compileValue=C;function w(m){var b={};return m.addedNodes.length&&(b.add=g.toArray(m.addedNodes)),m.removedNodes.length&&(b.remove=g.toArray(m.removedNodes)),b}r.complieNodes=w;function A(m){var b;return m.previousSibling?b={type:"before",target:m.previousSibling}:m.nextSibling?b={type:"after",target:m.nextSibling}:b={type:"parent",target:m.target},b}r.compliePosition=A;var E=["UL","OL","H1","H2","H3","H4","H5","H6"];function _(m){var b=[],S=!1,x=[];return(0,c.default)(m).call(m,function(O,D){var R={type:y(O.type),target:O.target,attr:O.attributeName||"",value:C(O)||"",oldValue:O.oldValue||"",nodes:w(O),position:A(O)};if(b.push(R),!!g.UA.isFirefox){if(S&&O.addedNodes.length&&O.addedNodes[0].nodeType==1){var I=O.addedNodes[0],z={type:"node",target:I,attr:"",value:"",oldValue:"",nodes:{add:[S]},position:{type:"parent",target:I}};(0,u.default)(E).call(E,I.nodeName)!=-1?(z.nodes.add=g.toArray(I.childNodes),b.push(z)):S.nodeType==3?(v(I,x)&&(z.nodes.add=g.toArray(I.childNodes)),b.push(z)):(0,u.default)(E).call(E,O.target.nodeName)==-1&&v(I,x)&&(z.nodes.add=g.toArray(I.childNodes),b.push(z))}R.type=="node"&&O.removedNodes.length==1?(S=O.removedNodes[0],x.push(S)):(S=!1,x.length=0)}}),b}r.default=_;function v(m,b){for(var S=0,x=b.length-1;x>0&&m.contains(b[x]);x--)S++;return S}},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4)),u=s(o(94));(0,d.default)(r,"__esModule",{value:!0}),r.restore=r.revoke=void 0;function g(x,O){var D=x.position.target;switch(x.position.type){case"before":D.nextSibling?(D=D.nextSibling,(0,c.default)(O).call(O,function(R){x.target.insertBefore(R,D)})):(0,c.default)(O).call(O,function(R){x.target.appendChild(R)});break;case"after":(0,c.default)(O).call(O,function(R){x.target.insertBefore(R,D)});break;default:(0,c.default)(O).call(O,function(R){D.appendChild(R)});break}}function y(x){for(var O=0,D=(0,u.default)(x.nodes);O<D.length;O++){var R=D[O],I=R[0],z=R[1];switch(I){case"add":(0,c.default)(z).call(z,function(T){x.target.removeChild(T)});break;default:{g(x,z);break}}}}function C(x){var O=x.target;x.oldValue==null?O.removeAttribute(x.attr):O.setAttribute(x.attr,x.oldValue)}function w(x){x.target.textContent=x.oldValue}var A={node:y,text:w,attr:C};function E(x){for(var O=x.length-1;O>-1;O--){var D=x[O];A[D.type](D)}}r.revoke=E;function _(x){for(var O=0,D=(0,u.default)(x.nodes);O<D.length;O++){var R=D[O],I=R[0],z=R[1];switch(I){case"add":{g(x,z);break}default:{(0,c.default)(z).call(z,function(T){T.parentNode.removeChild(T)});break}}}}function v(x){x.target.textContent=x.value}function m(x){x.target.setAttribute(x.attr,x.value)}var b={node:_,text:v,attr:m};function S(x){for(var O=0,D=x;O<D.length;O++){var R=D[O];b[R.type](R)}}r.restore=S},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(434),u=function(){function g(y){this.editor=y,this.data=new c.TailChain}return g.prototype.observe=function(){this.data.resetMax(this.editor.config.historyMaxSize),this.data.insertLast(this.editor.$textElem.html())},g.prototype.save=function(){return this.data.insertLast(this.editor.$textElem.html()),this},g.prototype.revoke=function(){var y=this.data.prev();return y?(this.editor.$textElem.html(y),!0):!1},g.prototype.restore=function(){var y=this.data.next();return y?(this.editor.$textElem.html(y),!0):!1},g}();r.default=u},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(91));(0,d.default)(r,"__esModule",{value:!0}),r.TailChain=void 0;var u=function(){function g(){this.data=[],this.max=0,this.point=0,this.isRe=!1}return g.prototype.resetMax=function(y){y=Math.abs(y),y&&(this.max=y)},(0,d.default)(g.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),g.prototype.insertLast=function(y){if(this.isRe){var C;(0,c.default)(C=this.data).call(C,this.point+1),this.isRe=!1}for(this.data.push(y);this.max&&this.size>this.max;)this.data.shift();return this.point=this.size-1,this},g.prototype.current=function(){return this.data[this.point]},g.prototype.prev=function(){if(!this.isRe&&(this.isRe=!0),this.point--,this.point<0){this.point=0;return}return this.current()},g.prototype.next=function(){if(!this.isRe&&(this.isRe=!0),this.point++,this.point>=this.size){this.point=this.size-1;return}return this.current()},g}();r.TailChain=u},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(99)),g=function(y){c.__extends(C,y);function C(w){var A=y.call(this,w.config.historyMaxSize)||this;return A.editor=w,A.last=0,A.target=w.$textElem.elems[0],A}return C.prototype.observe=function(){var w=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",function(){w.last=w.target.scrollTop}),this.resetMaxSize(this.editor.config.historyMaxSize)},C.prototype.save=function(){return y.prototype.save.call(this,[this.last,this.target.scrollTop]),this},C.prototype.revoke=function(){var w=this;return y.prototype.revoke.call(this,function(A){w.target.scrollTop=A[0]})},C.prototype.restore=function(){var w=this;return y.prototype.restore.call(this,function(A){w.target.scrollTop=A[1]})},C}(u.default);r.default=g},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(99)),g=c.__importDefault(o(3)),y=o(6);function C(A){return{start:[A.startContainer,A.startOffset],end:[A.endContainer,A.endOffset],root:A.commonAncestorContainer,collapsed:A.collapsed}}var w=function(A){c.__extends(E,A);function E(_){var v=A.call(this,_.config.historyMaxSize)||this;return v.editor=_,v.lastRange=C(document.createRange()),v.root=_.$textElem.elems[0],v.updateLastRange=y.debounce(function(){v.lastRange=C(v.rangeHandle)},_.config.onchangeTimeout),v}return(0,d.default)(E.prototype,"rangeHandle",{get:function(){var v=document.getSelection();return v&&v.rangeCount?v.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),E.prototype.observe=function(){var _=this;this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize);function v(){var b=_.rangeHandle;(_.root===b.commonAncestorContainer||_.root.contains(b.commonAncestorContainer))&&(_.editor.isComposing||_.updateLastRange())}function m(b){(b.key=="Backspace"||b.key=="Delete")&&_.updateLastRange()}g.default(document).on("selectionchange",v),this.editor.beforeDestroy(function(){g.default(document).off("selectionchange",v)}),_.editor.$textElem.on("keydown",m)},E.prototype.save=function(){var _=C(this.rangeHandle);return A.prototype.save.call(this,[this.lastRange,_]),this.lastRange=_,this},E.prototype.set=function(_){try{if(_){var v=this.rangeHandle;return v.setStart.apply(v,_.start),v.setEnd.apply(v,_.end),this.editor.menus.changeActive(),!0}}catch{return!1}return!1},E.prototype.revoke=function(){var _=this;return A.prototype.revoke.call(this,function(v){_.set(v[0])})},E.prototype.restore=function(){var _=this;return A.prototype.restore.call(this,function(v){_.set(v[1])})},E}(u.default);r.default=w},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(29));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3));o(438);function y(C){var w=!1,A,E;C.txt.eventHooks.changeEvents.push(function(){w&&(0,c.default)(A).call(A,".w-e-content-preview").html(C.$textElem.html())});function _(){if(!w){C.$textElem.hide();var m=C.zIndex.get("textContainer"),b=C.txt.html();A=g.default('<div class="w-e-content-mantle" style="z-index:'+m+`">
<div class="w-e-content-preview w-e-text">`+b+`</div>
</div>`),C.$textContainerElem.append(A);var S=C.zIndex.get("menu");E=g.default('<div class="w-e-menue-mantle" style="z-index:'+S+'"></div>'),C.$toolbarElem.append(E),w=!0,C.isEnable=!1}}function v(){!w||(A.remove(),E.remove(),C.$textElem.show(),w=!1,C.isEnable=!0)}return{disable:_,enable:v}}r.default=y},function(i,r,o){var s=o(20),d=o(439);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21);r=s(!1),r.push([i.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;
}
`,""]),i.exports=r},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=function(){function u(g){var y=this;this.editor=g;var C=function(){var A=document.activeElement;A===g.$textElem.elems[0]&&y.emit()};window.document.addEventListener("selectionchange",C),this.editor.beforeDestroy(function(){window.document.removeEventListener("selectionchange",C)})}return u.prototype.emit=function(){var g,y=this.editor.config.onSelectionChange;if(y){var C=this.editor.selection;C.saveRange(),C.isSelectionEmpty()||y({text:C.getSelectionText(),html:(g=C.getSelectionContainerElem())===null||g===void 0?void 0:g.elems[0].innerHTML,selection:C})}},u}();r.default=c},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(128)),u=s(o(94)),g=s(o(4));(0,d.default)(r,"__esModule",{value:!0}),r.registerPlugin=void 0;var y=o(2),C=y.__importDefault(o(87)),w=o(6);function A(_,v,m){if(!_)throw new TypeError("name is not define");if(!v)throw new TypeError("options is not define");if(!v.intention)throw new TypeError("options.intention is not define");if(v.intention&&typeof v.intention!="function")throw new TypeError("options.intention is not function");m[_]&&console.warn("plugin "+_+" \u5DF2\u5B58\u5728\uFF0C\u5DF2\u8986\u76D6\u3002"),m[_]=v}r.registerPlugin=A;function E(_){var v=(0,c.default)({},w.deepClone(C.default.globalPluginsFunctionList),w.deepClone(_.pluginsFunctionList)),m=(0,u.default)(v);(0,g.default)(m).call(m,function(b){var S=b[0],x=b[1];console.info("plugin "+S+" initializing");var O=x.intention,D=x.config;O(_,D),console.info("plugin "+S+" initialization complete")})}r.default=E},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0})}]).default})})(zm);var OF=TF(zm.exports),DF="fcEditor",BF=1,$F=Object.assign||function(e){for(var t,i=1;i<arguments.length;i++)for(var r in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},VF=n.defineComponent({name:DF,props:{modelValue:String,init:Function,disabled:Boolean,config:Object},inheritAttrs:!1,emits:["update:modelValue"],data:function(){return{editor:{},uni:BF++}},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 OF("#editor".concat(t.uni)),t.editor.config.zIndex=2,t.editor.config.focus=!1,t.editor.config.autoFocus=!1,t.config&&$F(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=kF({},this.$attrs);return delete t.id,n.createVNode("div",n.mergeProps(t,{onInput:this.result,id:"editor".concat(this.uni),style:"line-height: normal;"}),null)},beforeDestroy:function(){this.editor&&this.editor.destroy(),this.editor=null}});(function(e,t){(function(i){i(Di())})(function(i){i.defineSimpleMode=function(w,A){i.defineMode(w,function(E){return i.simpleMode(E,A)})},i.simpleMode=function(w,A){r(A,"start");var E={},_=A.meta||{},v=!1;for(var m in A)if(m!=_&&A.hasOwnProperty(m))for(var b=E[m]=[],S=A[m],x=0;x<S.length;x++){var O=S[x];b.push(new d(O,A)),(O.indent||O.dedent)&&(v=!0)}var D={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:v?[]:null}},copyState:function(I){var z={state:I.state,pending:I.pending,local:I.local,localState:null,indent:I.indent&&I.indent.slice(0)};I.localState&&(z.localState=i.copyState(I.local.mode,I.localState)),I.stack&&(z.stack=I.stack.slice(0));for(var T=I.persistentStates;T;T=T.next)z.persistentStates={mode:T.mode,spec:T.spec,state:T.state==I.localState?z.localState:i.copyState(T.mode,T.state),next:z.persistentStates};return z},token:c(E,w),innerMode:function(I){return I.local&&{mode:I.local.mode,state:I.localState}},indent:C(E,_)};if(_)for(var R in _)_.hasOwnProperty(R)&&(D[R]=_[R]);return D};function r(w,A){if(!w.hasOwnProperty(A))throw new Error("Undefined state "+A+" in simple mode")}function o(w,A){if(!w)return/(?:)/;var E="";return w instanceof RegExp?(w.ignoreCase&&(E="i"),w.unicode&&(E+="u"),w=w.source):w=String(w),new RegExp((A===!1?"":"^")+"(?:"+w+")",E)}function s(w){if(!w)return null;if(w.apply)return w;if(typeof w=="string")return w.replace(/\./g," ");for(var A=[],E=0;E<w.length;E++)A.push(w[E]&&w[E].replace(/\./g," "));return A}function d(w,A){(w.next||w.push)&&r(A,w.next||w.push),this.regex=o(w.regex),this.token=s(w.token),this.data=w}function c(w,A){return function(E,_){if(_.pending){var v=_.pending.shift();return _.pending.length==0&&(_.pending=null),E.pos+=v.text.length,v.token}if(_.local)if(_.local.end&&E.match(_.local.end)){var m=_.local.endToken||null;return _.local=_.localState=null,m}else{var m=_.local.mode.token(E,_.localState),b;return _.local.endScan&&(b=_.local.endScan.exec(E.current()))&&(E.pos=E.start+b.index),m}for(var S=w[_.state],x=0;x<S.length;x++){var O=S[x],D=(!O.data.sol||E.sol())&&E.match(O.regex);if(D){O.data.next?_.state=O.data.next:O.data.push?((_.stack||(_.stack=[])).push(_.state),_.state=O.data.push):O.data.pop&&_.stack&&_.stack.length&&(_.state=_.stack.pop()),O.data.mode&&g(A,_,O.data.mode,O.token),O.data.indent&&_.indent.push(E.indentation()+A.indentUnit),O.data.dedent&&_.indent.pop();var R=O.token;if(R&&R.apply&&(R=R(D)),D.length>2&&O.token&&typeof O.token!="string"){for(var I=2;I<D.length;I++)D[I]&&(_.pending||(_.pending=[])).push({text:D[I],token:O.token[I-1]});return E.backUp(D[0].length-(D[1]?D[1].length:0)),R[0]}else return R&&R.join?R[0]:R}}return E.next(),null}}function u(w,A){if(w===A)return!0;if(!w||typeof w!="object"||!A||typeof A!="object")return!1;var E=0;for(var _ in w)if(w.hasOwnProperty(_)){if(!A.hasOwnProperty(_)||!u(w[_],A[_]))return!1;E++}for(var _ in A)A.hasOwnProperty(_)&&E--;return E==0}function g(w,A,E,_){var v;if(E.persistent)for(var m=A.persistentStates;m&&!v;m=m.next)(E.spec?u(E.spec,m.spec):E.mode==m.mode)&&(v=m);var b=v?v.mode:E.mode||i.getMode(w,E.spec),S=v?v.state:i.startState(b);E.persistent&&!v&&(A.persistentStates={mode:b,spec:E.spec,state:S,next:A.persistentStates}),A.localState=S,A.local={mode:b,end:E.end&&o(E.end),endScan:E.end&&E.forceEnd!==!1&&o(E.end,!1),endToken:_&&_.join?_[_.length-1]:_}}function y(w,A){for(var E=0;E<A.length;E++)if(A[E]===w)return!0}function C(w,A){return function(E,_,v){if(E.local&&E.local.mode.indent)return E.local.mode.indent(E.localState,_,v);if(E.indent==null||E.local||A.dontIndentStates&&y(E.state,A.dontIndentStates)>-1)return i.Pass;var m=E.indent.length-1,b=w[E.state];e:for(;;){for(var S=0;S<b.length;S++){var x=b[S];if(x.data.dedent&&x.data.dedentIfLineStart!==!1){var O=x.regex.exec(_);if(O&&O[0]){m--,(x.next||x.push)&&(b=w[x.next||x.push]),_=_.slice(O[0].length);continue e}}}break}return m<0?0:E.indent[m]}}})})();const k8="",N8="",T8="",O8="";fo.defineSimpleMode("fcComputedMode",{start:[{regex:/[a-zA-Z_]\w*/,token:"keyword"},{regex:/[a-z]+/,token:"def"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+]?(\d*\.)?\d+/,token:"number"},{regex:/"(?:[^\\]|\\.)*?(?:"|$)/,token:"string"},{regex:/[\(\),]/,token:"bracket"},{regex:/==/,token:"operator"},{regex:/=/,token:"operator"},{regex:/[!<>]=?/,token:"operator"},{regex:/&&|\|\|/,token:"operator"},{regex:/[\+\-\*\%\/]/,token:"builtin"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}]});const Nt=(e,t,i)=>{ze.component(e,i||t),co.component(e,t)};ze.component("draggable",Ci),ze.component("DragTool",Fm),ze.component("DragBox",Mm),ze.component("Validate",VR),ze.component("Struct",Im),ze.component("HtmlEditor",q$),ze.component("FnEditor",po),ze.component("ComputedConfig",bh),ze.component("Required",PR),ze.component("TableOptions",Nm),ze.component("TreeOptions",QR),ze.component("TableFormColumn",TI),ze.component("EventConfig",_h),ze.component("FetchConfig",fV),ze.component("TableColumnConfig",_V),ze.component("TableButtonConfig",TV),ze.component("SizeInput",Vr),ze.component("PatternInput",mc),ze.component("StyleConfig",$m),ze.component("GlobalFetchConfig",km),ze.component("GlobalFetchSelect",YV),ze.component("GlobalEventConfig",xm),ze.component("GlobalClassConfig",Vm),ze.component("GlobalClassSelect",qV),ze.component("GlobalVariableConfig",Rm),ze.component("FetchTable",aR),ze.component("VariableConfig",Tr),ze.component("ColorInput",Fi),ze.component("ConfigItem",Sn),ze.component("ConfigTitle",_m),ze.component("FieldInput",oV),ze.component("PromptInput",aV),ze.component("ValueInput",nl),ze.component("StepFormItem",$I),ze.component("FcRow",pF),ze.component("FnConfig",LV),ze.component("FnInput",Pm),ze.component("RuleSelect",gc),ze.component("HideConfig",gF),ze.component("SpanInput",bF),ze.component("LanguageInput",Hc),Nt("FcSlot",cp,bR),Nt("FcJson",up,CR),Nt("DataTable",op),Nt("FcEditor",VF),Nt("fcInlineForm",fp),Nt("FcCell",sp,cF),Nt("TableForm",rp,dI),Nt("StepForm",qR,oI),Nt("FcValue",dp,yR),Nt("FcTable",ip,hR),Nt("NestedTableForm",lp,vI),Nt("InfiniteTableForm",ap,EI),Nt("FcDialog",GI,jI),Nt("FcDrawer",lF,nF),Nt("AudioBox",bp),Nt("VideoBox",lh),Nt("BarCodeBox",ah),Nt("IframeBox",Cp),Nt("QrCodeBox",dh),Nt("SignaturePad",xF),Nt("FcEcharts",mp),Nt("FcTitle",yp),Nt("FcId",vp);const RF=function(e){(Array.isArray(e)?e:[e]).forEach(i=>{ko[i.name]=i.handle,yd[i.name]=i.example,el.value.formula[i.name]=i.info,Gf.forEach(r=>{r.key===i.menu&&r.children.push(i.name),co.setFormula(i.name,i.handle),ze.setFormula(i.name,i.handle)})})},IF=function(e){(Array.isArray(e)?e:[e]).forEach(i=>{bd[i.name]=i.handle,Yf[i.name]=i.rule,el.value.behavior[i.name]={info:i.info,name:i.label},Kf.forEach(r=>{r.key===i.menu&&r.children.push(i.name)})})},Hm=function(e){e.component("FcDesigner",Dt)};Dt.install=Hm,Dt.makeOptionsRule=Eo,Dt.formCreate=co,Dt.designerForm=ze,Dt.component=Nt,Dt.setFormula=RF,Dt.setBehavior=IF,Dt.useLocale=gh,Dt.copyTextToClipboard=Kn,Dt.getInjectArg=bn,Dt.localeOptions=st,Dt.localeProps=Pe,Dt.makeRequiredRule=ns,Dt.makeTreeOptions=Fn,Dt.makeTreeOptionsRule=ui,Dt.makeTitleRule=os,Dt.makeDataRule=Tn,Dt.toJSON=fn,Dt.loadjs=Mn,Dt.t=tl,Dt.utils={copyTextToClipboard:Kn,getInjectArg:bn,localeOptions:st,localeProps:Pe,makeOptionsRule:Eo,makeRequiredRule:ns,makeTitleRule:os,makeDataRule:Tn,makeTreeOptions:Fn,makeTreeOptionsRule:ui,toJSON:fn};const Um="3.2.18";oy(Um,co.version)===1&&console.error("Please use FormCreate version "+Um+" or greater, see https://github.com/xaboy/form-create."),Et.copyTextToClipboard=Kn,Et.default=Dt,Et.designerForm=ze,Et.formCreate=co,Et.getInjectArg=bn,Et.install=Hm,Et.loadjs=Mn,Et.localeOptions=st,Et.localeProps=Pe,Et.makeDataRule=Tn,Et.makeOptionsRule=Eo,Et.makeRequiredRule=ns,Et.makeTitleRule=os,Et.makeTreeOptions=Fn,Et.makeTreeOptionsRule=ui,Et.t=tl,Et.toJSON=fn,Object.defineProperties(Et,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});