stdproject/frontend/src/data-collect/render/vant/form-create.umd.js
2025-06-07 09:22:52 +08:00

101 lines
443 KiB
JavaScript

/*!
* FormCreate商业版可视化表单设计器-让表单设计更简单
* fc-designer-pro v5.7.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{width:100%}._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 .el-table{--el-table-header-bg-color:#e8eefc}._fc-data-table .el-pagination{display:flex;margin-top:10px}._fc-data-table .el-pagination.left{justify-content:flex-start}._fc-data-table .el-pagination.center{justify-content:center}._fc-data-table .el-pagination.right{justify-content:flex-end}._fc-data-table ._fc-data-table-img-list .el-image{height:60px;max-width:150px}._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.is-mini td{min-height:12px;padding:0}._fc-table.is-mini .el-form-item{margin:0;padding:0}._fc-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-table-form .form-create td .el-form-item{margin-bottom:1px}._fc-table-form .form-create td .el-form-item.is-error{margin-bottom:22px}._fc-table-form .el-form-item__label,._fc-table-form .van-field__label{display:none!important}._fc-table-form .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fc-tf-head-idx,._fc-tf-idx{font-weight:500;min-width:40px;text-align:center;width:40px}._fc-tf-btn,._fc-tf-edit{min-width:70px;text-align:center;width:70px}._fc-tf-btn .fc-icon{cursor:pointer}._fc-table-form._fc-disabled ._fc-tf-btn .fc-icon,._fc-table-form._fc-disabled>.el-button{cursor:not-allowed}._fc-tf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-table-form ._fc-tf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;font-weight:500;height:40px}._fc-table-form ._fc-tf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-table-form tr{min-height:50px}._fc-table-form ._fc-read-view{text-align:center;width:100%}._fc-table-form td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:5px;position:relative}._fc-table-form td+td{border-left:1px solid #ebeef5}._fc-tf-table .el-cascader,._fc-tf-table .el-date-editor,._fc-tf-table .el-input-number,._fc-tf-table .el-select,._fc-tf-table .el-slider{width:100%}._fc-tf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-table-form-v2{color:var(--fc-text-color-2);overflow:auto;width:100%}._fc-table-form-v2 .is-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-table-form-v2 .form-create td .el-form-item{margin-bottom:1px}._fc-table-form-v2 .form-create td .el-form-item.is-error{margin-bottom:22px}._fc-table-form-v2 .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fc-table-form-v2 .el-form-item__label{display:none!important}._fc-tf-pro-handle{align-items:center;display:flex;flex-direction:row;justify-content:space-between;margin-top:12px}._fc-table-form-v2 .el-cascader,._fc-table-form-v2 .el-date-editor,._fc-table-form-v2 .el-input-number,._fc-table-form-v2 .el-select,._fc-table-form-v2 .el-slider{width:100%}._fc-infinite-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-infinite-table-form .form-create .el-form-item{margin-bottom:1px}._fc-infinite-table-form .form-create .el-form-item.is-error{margin-bottom:22px}._fc-infinite-table-form .el-form-item__label,._fc-infinite-table-form .van-field__label{display:none!important}._fc-infinite-table-form .el-form-item__content{display:flex;margin-left:0!important;width:100%!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._fc-disabled ._fc-itf-btn .fc-icon,._fc-infinite-table-form._fc-disabled>.el-button{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 .el-cascader,._fc-itf-table .el-date-editor,._fc-itf-table .el-input-number,._fc-itf-table .el-select,._fc-itf-table .el-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 .el-form-item{margin-bottom:1px}._fc-nested-table-form .form-create .el-form-item.is-error{margin-bottom:22px}._fc-nested-table-form .el-form-item__label,._fc-nested-table-form .van-field__label{display:none!important}._fc-nested-table-form .el-form-item__content{display:flex;margin-left:0!important;width:100%!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._fc-disabled ._fc-ntf-btn .fc-icon,._fc-nested-table-form._fc-disabled>.el-button{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 .el-cascader,._fc-ntf-table .el-date-editor,._fc-ntf-table .el-input-number,._fc-ntf-table .el-select,._fc-ntf-table .el-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-cell .el-cascader,._fc-cell .el-date-editor,._fc-cell .el-input-number,._fc-cell .el-select,._fc-cell .el-slider,._fc-city-m{width:100%}._fc-city-m .van-cell{padding:0}._fc-line-form{align-items:flex-start;display:flex;flex-flow:wrap;width:100%}.form-create-m ._fc-line-form{display:flex;flex-wrap:wrap}.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 .el-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>.el-col-24{width:100%!important}._fc-line-form .el-form-item{display:inline-flex;vertical-align:middle}._fc-line-form .el-select,._fc-line-form .el-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-markdown{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;word-wrap:break-word;color-scheme:light;font-size:16px;line-height:1.5;margin:0;width:100%}._fc-markdown details,._fc-markdown figcaption,._fc-markdown figure{display:block}._fc-markdown summary{display:list-item}._fc-markdown [hidden]{display:none!important}._fc-markdown a{background-color:transparent;color:#0969da;text-decoration:none}._fc-markdown abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}._fc-markdown b,._fc-markdown strong{font-weight:600}._fc-markdown dfn{font-style:italic}._fc-markdown h1{border-bottom:1px solid #d1d9e0b3;font-size:2em;font-weight:600;margin:.67em 0;padding-bottom:.3em}._fc-markdown mark{background-color:#fff8c5;color:#1f2328}._fc-markdown small{font-size:90%}._fc-markdown sub,._fc-markdown sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}._fc-markdown sub{bottom:-.25em}._fc-markdown sup{top:-.5em}._fc-markdown img{border-style:none;box-sizing:content-box;max-width:100%}._fc-markdown code,._fc-markdown kbd,._fc-markdown pre,._fc-markdown samp{font-family:monospace;font-size:1em}._fc-markdown figure{margin:1em 2.5rem}._fc-markdown hr{background:transparent;background-color:#d1d9e0;border:0;box-sizing:content-box;height:.25em;margin:1.5rem 0;overflow:hidden;padding:0}._fc-markdown input{font:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible}._fc-markdown [type=button],._fc-markdown [type=reset],._fc-markdown [type=submit]{-webkit-appearance:button;appearance:button}._fc-markdown [type=checkbox],._fc-markdown [type=radio]{box-sizing:border-box;padding:0}._fc-markdown [type=number]::-webkit-inner-spin-button,._fc-markdown [type=number]::-webkit-outer-spin-button{height:auto}._fc-markdown [type=search]::-webkit-search-cancel-button,._fc-markdown [type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}._fc-markdown ::-webkit-input-placeholder{color:inherit;opacity:.54}._fc-markdown ::-webkit-file-upload-button{-webkit-appearance:button;appearance:button;font:inherit}._fc-markdown a:hover{text-decoration:underline}._fc-markdown ::placeholder{color:#59636e;opacity:1}._fc-markdown hr:after,._fc-markdown hr:before{content:"";display:table}._fc-markdown hr:after{clear:both}._fc-markdown table{border-collapse:collapse;border-spacing:0;display:block;font-variant:tabular-nums;max-width:100%;overflow:auto;width:max-content}._fc-markdown td,._fc-markdown th{padding:0}._fc-markdown details summary{cursor:pointer}._fc-markdown [role=button]:focus,._fc-markdown a:focus,._fc-markdown input[type=checkbox]:focus,._fc-markdown input[type=radio]:focus{box-shadow:none;outline:2px solid #0969da;outline-offset:-2px}._fc-markdown [role=button]:focus:not(:focus-visible),._fc-markdown a:focus:not(:focus-visible),._fc-markdown input[type=checkbox]:focus:not(:focus-visible),._fc-markdown input[type=radio]:focus:not(:focus-visible){outline:1px solid transparent}._fc-markdown [role=button]:focus-visible,._fc-markdown a:focus-visible,._fc-markdown input[type=checkbox]:focus-visible,._fc-markdown input[type=radio]:focus-visible{box-shadow:none;outline:2px solid #0969da;outline-offset:-2px}._fc-markdown a:not([class]):focus,._fc-markdown a:not([class]):focus-visible,._fc-markdown input[type=checkbox]:focus,._fc-markdown input[type=checkbox]:focus-visible,._fc-markdown input[type=radio]:focus,._fc-markdown input[type=radio]:focus-visible{outline-offset:0}._fc-markdown kbd{background-color:#f6f8fa;border:1px solid #d1d9e0b3;border-radius:6px;box-shadow:inset 0 -1px #d1d9e0b3;color:#1f2328;display:inline-block;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;padding:.25rem;vertical-align:middle}._fc-markdown h1,._fc-markdown h2,._fc-markdown h3,._fc-markdown h4,._fc-markdown h5,._fc-markdown h6{font-weight:600;line-height:1.25;margin-bottom:1rem;margin-top:1.5rem}._fc-markdown h2{border-bottom:1px solid #d1d9e0b3;font-size:1.5em;font-weight:600;padding-bottom:.3em}._fc-markdown h3{font-size:1.25em;font-weight:600}._fc-markdown h4{font-size:1em;font-weight:600}._fc-markdown h5{font-size:.875em;font-weight:600}._fc-markdown h6{color:#59636e;font-size:.85em;font-weight:600}._fc-markdown p{margin-bottom:10px;margin-top:0}._fc-markdown blockquote{border-left:.25em solid #d1d9e0;color:#59636e;margin:0;padding:0 1em}._fc-markdown ol,._fc-markdown ul{margin-bottom:0;margin-top:0;padding-left:2em}._fc-markdown ol ol,._fc-markdown ul ol{list-style-type:lower-roman}._fc-markdown ol ol ol,._fc-markdown ol ul ol,._fc-markdown ul ol ol,._fc-markdown ul ul ol{list-style-type:lower-alpha}._fc-markdown dd{margin-left:0}._fc-markdown code,._fc-markdown pre,._fc-markdown samp,._fc-markdown tt{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}._fc-markdown pre{word-wrap:normal;margin-bottom:0;margin-top:0}._fc-markdown input::-webkit-inner-spin-button,._fc-markdown input::-webkit-outer-spin-button{appearance:none;margin:0}._fc-markdown:after,._fc-markdown:before{content:"";display:table}._fc-markdown:after{clear:both}._fc-markdown>:first-child{margin-top:0!important}._fc-markdown>:last-child{margin-bottom:0!important}._fc-markdown a:not([href]){color:inherit;text-decoration:none}._fc-markdown blockquote,._fc-markdown details,._fc-markdown dl,._fc-markdown ol,._fc-markdown p,._fc-markdown pre,._fc-markdown table,._fc-markdown ul{margin-bottom:1rem;margin-top:0}._fc-markdown blockquote>:first-child{margin-top:0}._fc-markdown blockquote>:last-child{margin-bottom:0}._fc-markdown h1:hover .anchor,._fc-markdown h2:hover .anchor,._fc-markdown h3:hover .anchor,._fc-markdown h4:hover .anchor,._fc-markdown h5:hover .anchor,._fc-markdown h6:hover .anchor{text-decoration:none}._fc-markdown h1 code,._fc-markdown h1 tt,._fc-markdown h2 code,._fc-markdown h2 tt,._fc-markdown h3 code,._fc-markdown h3 tt,._fc-markdown h4 code,._fc-markdown h4 tt,._fc-markdown h5 code,._fc-markdown h5 tt,._fc-markdown h6 code,._fc-markdown h6 tt{font-size:inherit;padding:0 .2em}._fc-markdown summary h1,._fc-markdown summary h2,._fc-markdown summary h3,._fc-markdown summary h4,._fc-markdown summary h5,._fc-markdown summary h6{display:inline-block}._fc-markdown summary h1,._fc-markdown summary h2{border-bottom:0;padding-bottom:0}._fc-markdown ol.no-list,._fc-markdown ul.no-list{list-style-type:none;padding:0}._fc-markdown ol[type="a s"]{list-style-type:lower-alpha}._fc-markdown ol[type="A s"]{list-style-type:upper-alpha}._fc-markdown ol[type="i s"]{list-style-type:lower-roman}._fc-markdown ol[type="I s"]{list-style-type:upper-roman}._fc-markdown div>ol:not([type]),._fc-markdown ol[type="1"]{list-style-type:decimal}._fc-markdown ol ol,._fc-markdown ol ul,._fc-markdown ul ol,._fc-markdown ul ul{margin-bottom:0;margin-top:0}._fc-markdown li>p{margin-top:1rem}._fc-markdown li+li{margin-top:.25em}._fc-markdown dl{padding:0}._fc-markdown dl dt{font-size:1em;font-style:italic;font-weight:600;margin-top:1rem;padding:0}._fc-markdown dl dd{margin-bottom:1rem;padding:0 1rem}._fc-markdown table th{font-weight:600}._fc-markdown table td,._fc-markdown table th{border:1px solid #d1d9e0;padding:6px 13px}._fc-markdown table td>:last-child{margin-bottom:0}._fc-markdown table tr{background-color:#fff;border-top:1px solid #d1d9e0b3}._fc-markdown table tr:nth-child(2n){background-color:#f6f8fa}._fc-markdown table img{background-color:transparent}._fc-markdown img[align=right]{padding-left:20px}._fc-markdown img[align=left]{padding-right:20px}._fc-markdown .emoji{background-color:transparent;max-width:none;vertical-align:text-top}._fc-markdown span.frame{display:block;overflow:hidden}._fc-markdown span.frame>span{border:1px solid #d1d9e0;display:block;float:left;margin:13px 0 0;overflow:hidden;padding:7px;width:auto}._fc-markdown span.frame span img{display:block;float:left}._fc-markdown span.frame span span{clear:both;color:#1f2328;display:block;padding:5px 0 0}._fc-markdown span.align-center{clear:both;display:block;overflow:hidden}._fc-markdown span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}._fc-markdown span.align-center span img{margin:0 auto;text-align:center}._fc-markdown span.align-right{clear:both;display:block;overflow:hidden}._fc-markdown span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}._fc-markdown span.align-right span img{margin:0;text-align:right}._fc-markdown span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}._fc-markdown span.float-left span{margin:13px 0 0}._fc-markdown span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}._fc-markdown span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}._fc-markdown code,._fc-markdown tt{background-color:#818b981f;border-radius:6px;font-size:85%;margin:0;padding:.2em .4em;white-space:break-spaces}._fc-markdown code br,._fc-markdown tt br{display:none}._fc-markdown del code{text-decoration:inherit}._fc-markdown samp{font-size:85%}._fc-markdown pre code{font-size:100%}._fc-markdown pre>code{background:transparent;border:0;margin:0;padding:0;white-space:pre;word-break:normal}._fc-markdown .highlight{margin-bottom:1rem}._fc-markdown .highlight pre{margin-bottom:0;word-break:normal}._fc-markdown .highlight pre,._fc-markdown pre{background-color:#f6f8fa;border-radius:6px;color:#1f2328;font-size:85%;line-height:1.45;overflow:auto;padding:1rem}._fc-markdown pre code,._fc-markdown pre tt{word-wrap:normal;background-color:transparent;border:0;display:inline;line-height:inherit;margin:0;max-width:auto;overflow:visible;padding:0}._fc-markdown [data-footnote-ref]:before{content:"["}._fc-markdown [data-footnote-ref]:after{content:"]"}._fc-markdown [role=button]:focus:not(:focus-visible),._fc-markdown [role=tabpanel][tabindex="0"]:focus:not(:focus-visible),._fc-markdown a:focus:not(:focus-visible),._fc-markdown button:focus:not(:focus-visible),._fc-markdown summary:focus:not(:focus-visible){box-shadow:none;outline:none}._fc-markdown [tabindex="0"]:focus:not(:focus-visible),._fc-markdown details-dialog:focus:not(:focus-visible){outline:none}._fc-markdown g-emoji{display:inline-block;font-family:Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1em;font-style:normal!important;font-weight:400;line-height:1;min-width:1ch;vertical-align:-.075em}._fc-markdown g-emoji img{height:1em;width:1em}._fc-markdown .task-list-item{list-style-type:none}._fc-markdown .task-list-item label{font-weight:400}._fc-markdown .task-list-item.enabled label{cursor:pointer}._fc-markdown .task-list-item+.task-list-item{margin-top:.25rem}._fc-markdown .task-list-item .handle{display:none}._fc-markdown .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}._fc-markdown ul:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}._fc-markdown ol:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}._fc-dialog .el-dialog__headerbtn{align-items:center;color:var(--el-color-info);display:flex;justify-content:center}._fc-dialog .el-dialog__headerbtn:hover .fc-icon{color:var(--el-color-primary)}._fc-data-select-pop{display:none!important}._fc-data-select,._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 .el-input__wrapper,.form-create-m .el-select__wrapper{border-radius:0;box-shadow:none;padding-right:0}.form-create-m .el-input__wrapper:before,.form-create-m .el-select__wrapper:before{border-bottom:1px solid var(--van-cell-border-color);bottom:0;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 .el-select__suffix{display:none}.form-create-m .el-input__wrapper:after,.form-create-m .el-select__wrapper:after{color:var(--van-cell-right-icon-color);content:"\\e660";font:normal normal normal 14px/1 var(--van-icon-font-family,"vant-icon")}.form-create-m .el-date-editor.el-input,.form-create-m .el-date-editor.el-input__wrapper,.form-create-m .el-tree{width:100%}.form-create-m .el-upload--picture-card,.form-create-m .el-upload-list{--el-upload-list-picture-card-size:64px;--el-upload-picture-card-size:64px}.form-create-m.is-preview ._fc-upload .el-icon--close,.form-create-m.is-preview ._fc-upload .el-icon--close-tip,.form-create-m.is-preview ._fc-upload .el-upload{display:none!important}@font-face{font-family:fc-icon;src:url(data:font/woff;base64,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) format("woff")}.fc-icon{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fc-icon!important;font-size:16px;font-style:normal}.icon-data-select:before{content:"\\e6dd"}.icon-markdown:before{content:"\\e893"}.icon-grid-line:before{content:"\\e600"}.icon-print:before{content:"\\e6de"}.icon-city:before{content:"\\e64b"}.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"}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
(function(xe,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue"),require("vant"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","vant","element-plus"],u):(xe=typeof globalThis<"u"?globalThis:xe||self,u(xe.formCreateMobile={},xe.Vue,xe.vant,xe.ElementPlus))})(this,function(xe,u,Je,oi){"use strict";var u0=Object.defineProperty;var c0=(xe,u,Je)=>u in xe?u0(xe,u,{enumerable:!0,configurable:!0,writable:!0,value:Je}):xe[u]=Je;var _e=(xe,u,Je)=>(c0(xe,typeof u!="symbol"?u+"":u,Je),Je);/*!
* @form-create/vant v3.2.22
* (c) 2018-2025 xaboy
* Github https://github.com/xaboy/form-create
* Released under the MIT License.
*/var ca="fcSubForm",fa=u.defineComponent({name:ca,props:{rule:Array,options:{type:Object,default:function(){return u.reactive({submitBtn:!1,resetBtn:!1})}},modelValue:{type:Object,default:function(){return{}}},disabled:{type:Boolean,default:!1},syncDisabled:{type:Boolean,default:!0},formCreateInject:Object},data:function(){return{cacheValue:{},subApi:{},form:u.markRaw(this.formCreateInject.form.$form())}},emits:["fc:subform","update:modelValue","change","itemMounted"],watch:{modelValue:function(e){this.setValue(e)}},methods:{formData:function(e){this.cacheValue=JSON.stringify(e),this.$emit("update:modelValue",e),this.$emit("change",e)},setValue:function(e){var t=JSON.stringify(e);this.cacheValue!==t&&(this.cacheValue=t,this.subApi.coverValue(e||{}))},add$f:function(e){var t=this;this.subApi=e,u.nextTick(function(){t.$emit("itemMounted",e)})}},render:function(){var e=this.form;return u.createVNode(e,{disabled:this.disabled,"onUpdate:modelValue":this.formData,modelValue:this.modelValue,"onEmit-event":this.$emit,"onUpdate:api":this.add$f,rule:this.rule,option:this.options,extendOption:!0},null)}});function ai(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function W(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ai(Object(t),!0).forEach(function(r){ke(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ai(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function fe(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fe=function(e){return typeof e}:fe=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(n)}function da(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function ke(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function ha(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&jn(n,e)}function Kt(n){return Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Kt(n)}function jn(n,e){return jn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},jn(n,e)}function pa(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ma(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ga(n,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ma(n)}function va(n){var e=pa();return function(){var r=Kt(n),i;if(e){var o=Kt(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return ga(this,i)}}function ya(n,e){return ba(n)||$a(n,e)||si(n,e)||Oa()}function se(n){return _a(n)||wa(n)||si(n)||Sa()}function _a(n){if(Array.isArray(n))return In(n)}function ba(n){if(Array.isArray(n))return n}function wa(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function $a(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r=[],i=!0,o=!1,a,s;try{for(t=t.call(n);!(i=(a=t.next()).done)&&(r.push(a.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}return r}}function si(n,e){if(!!n){if(typeof n=="string")return In(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return In(n,e)}}function In(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function Sa(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j={type:function(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"},Undef:function(e){return e==null},Element:function(e){return fe(e)==="object"&&e!==null&&e.nodeType===1&&!j.Object(e)},trueArray:function(e){return Array.isArray(e)&&e.length>0},Function:function(e){var t=this.getType(e);return t==="Function"||t==="AsyncFunction"},getType:function(e){var t=Object.prototype.toString.call(e);return/^\[object (.*)\]$/.exec(t)[1]},empty:function(e){return e==null||Array.isArray(e)&&Array.isArray(e)&&!e.length?!0:typeof e=="string"&&!e}};["Date","Object","String","Boolean","Array","Number"].forEach(function(n){j[n]=function(e){return j.type(e,n)}});function ye(n,e){return{}.hasOwnProperty.call(n,e)}var Ca=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},li={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Ca,function(){var t=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",f="day",c="week",p="month",g="quarter",$="year",S="date",O="Invalid Date",M=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,q=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,U={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var _=["th","st","nd","rd"],h=w%100;return"["+w+(_[(h-20)%10]||_[h]||_[0])+"]"}},N=function(w,_,h){var d=String(w);return!d||d.length>=_?w:""+Array(_+1-d.length).join(h)+w},K={s:N,z:function(w){var _=-w.utcOffset(),h=Math.abs(_),d=Math.floor(h/60),m=h%60;return(_<=0?"+":"-")+N(d,2,"0")+":"+N(m,2,"0")},m:function A(w,_){if(w.date()<_.date())return-A(_,w);var h=12*(_.year()-w.year())+(_.month()-w.month()),d=w.clone().add(h,p),m=_-d<0,y=w.clone().add(h+(m?-1:1),p);return+(-(h+(_-d)/(m?d-y:y-d))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:p,y:$,w:c,d:f,D:S,h:l,m:s,s:a,ms:o,Q:g}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},Z="en",G={};G[Z]=U;var le="$isDayjsObject",te=function(w){return w instanceof we||!(!w||!w[le])},re=function A(w,_,h){var d;if(!w)return Z;if(typeof w=="string"){var m=w.toLowerCase();G[m]&&(d=m),_&&(G[m]=_,d=m);var y=w.split("-");if(!d&&y.length>1)return A(y[0])}else{var v=w.name;G[v]=w,d=v}return!h&&d&&(Z=d),d||!h&&Z},J=function(w,_){if(te(w))return w.clone();var h=fe(_)=="object"?_:{};return h.date=w,h.args=arguments,new we(h)},H=K;H.l=re,H.i=te,H.w=function(A,w){return J(A,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var we=function(){function A(_){this.$L=re(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[le]=!0}var w=A.prototype;return w.parse=function(_){this.$d=function(h){var d=h.date,m=h.utc;if(d===null)return new Date(NaN);if(H.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var y=d.match(M);if(y){var v=y[2]-1||0,k=(y[7]||"0").substring(0,3);return m?new Date(Date.UTC(y[1],v,y[3]||1,y[4]||0,y[5]||0,y[6]||0,k)):new Date(y[1],v,y[3]||1,y[4]||0,y[5]||0,y[6]||0,k)}}return new Date(d)}(_),this.init()},w.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},w.$utils=function(){return H},w.isValid=function(){return this.$d.toString()!==O},w.isSame=function(_,h){var d=J(_);return this.startOf(h)<=d&&d<=this.endOf(h)},w.isAfter=function(_,h){return J(_)<this.startOf(h)},w.isBefore=function(_,h){return this.endOf(h)<J(_)},w.$g=function(_,h,d){return H.u(_)?this[h]:this.set(d,_)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(_,h){var d=this,m=!!H.u(h)||h,y=H.p(_),v=function(x,D){var b=H.w(d.$u?Date.UTC(d.$y,D,x):new Date(d.$y,D,x),d);return m?b:b.endOf(f)},k=function(x,D){return H.w(d.toDate()[x].apply(d.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(D)),d)},T=this.$W,V=this.$M,z=this.$D,I="set"+(this.$u?"UTC":"");switch(y){case $:return m?v(1,0):v(31,11);case p:return m?v(1,V):v(0,V+1);case c:var B=this.$locale().weekStart||0,L=(T<B?T+7:T)-B;return v(m?z-L:z+(6-L),V);case f:case S:return k(I+"Hours",0);case l:return k(I+"Minutes",1);case s:return k(I+"Seconds",2);case a:return k(I+"Milliseconds",3);default:return this.clone()}},w.endOf=function(_){return this.startOf(_,!1)},w.$set=function(_,h){var d,m=H.p(_),y="set"+(this.$u?"UTC":""),v=(d={},d[f]=y+"Date",d[S]=y+"Date",d[p]=y+"Month",d[$]=y+"FullYear",d[l]=y+"Hours",d[s]=y+"Minutes",d[a]=y+"Seconds",d[o]=y+"Milliseconds",d)[m],k=m===f?this.$D+(h-this.$W):h;if(m===p||m===$){var T=this.clone().set(S,1);T.$d[v](k),T.init(),this.$d=T.set(S,Math.min(this.$D,T.daysInMonth())).$d}else v&&this.$d[v](k);return this.init(),this},w.set=function(_,h){return this.clone().$set(_,h)},w.get=function(_){return this[H.p(_)]()},w.add=function(_,h){var d,m=this;_=Number(_);var y=H.p(h),v=function(z){var I=J(m);return H.w(I.date(I.date()+Math.round(z*_)),m)};if(y===p)return this.set(p,this.$M+_);if(y===$)return this.set($,this.$y+_);if(y===f)return v(1);if(y===c)return v(7);var k=(d={},d[s]=r,d[l]=i,d[a]=t,d)[y]||1,T=this.$d.getTime()+_*k;return H.w(T,this)},w.subtract=function(_,h){return this.add(-1*_,h)},w.format=function(_){var h=this,d=this.$locale();if(!this.isValid())return d.invalidDate||O;var m=_||"YYYY-MM-DDTHH:mm:ssZ",y=H.z(this),v=this.$H,k=this.$m,T=this.$M,V=d.weekdays,z=d.months,I=d.meridiem,B=function(D,b,E,C){return D&&(D[b]||D(h,m))||E[b].slice(0,C)},L=function(D){return H.s(v%12||12,D,"0")},R=I||function(x,D,b){var E=x<12?"AM":"PM";return b?E.toLowerCase():E};return m.replace(q,function(x,D){return D||function(b){switch(b){case"YY":return String(h.$y).slice(-2);case"YYYY":return H.s(h.$y,4,"0");case"M":return T+1;case"MM":return H.s(T+1,2,"0");case"MMM":return B(d.monthsShort,T,z,3);case"MMMM":return B(z,T);case"D":return h.$D;case"DD":return H.s(h.$D,2,"0");case"d":return String(h.$W);case"dd":return B(d.weekdaysMin,h.$W,V,2);case"ddd":return B(d.weekdaysShort,h.$W,V,3);case"dddd":return V[h.$W];case"H":return String(v);case"HH":return H.s(v,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return R(v,k,!0);case"A":return R(v,k,!1);case"m":return String(k);case"mm":return H.s(k,2,"0");case"s":return String(h.$s);case"ss":return H.s(h.$s,2,"0");case"SSS":return H.s(h.$ms,3,"0");case"Z":return y}return null}(x)||y.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(_,h,d){var m,y=this,v=H.p(h),k=J(_),T=(k.utcOffset()-this.utcOffset())*r,V=this-k,z=function(){return H.m(y,k)};switch(v){case $:m=z()/12;break;case p:m=z();break;case g:m=z()/3;break;case c:m=(V-T)/6048e5;break;case f:m=(V-T)/864e5;break;case l:m=V/i;break;case s:m=V/r;break;case a:m=V/t;break;default:m=V}return d?m:H.a(m)},w.daysInMonth=function(){return this.endOf(p).$D},w.$locale=function(){return G[this.$L]},w.locale=function(_,h){if(!_)return this.$L;var d=this.clone(),m=re(_,h,!0);return m&&(d.$L=m),d},w.clone=function(){return H.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},A}(),Me=we.prototype;return J.prototype=Me,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",f],["$M",p],["$y",$],["$D",S]].forEach(function(A){Me[A[1]]=function(w){return this.$g(w,A[0],A[1])}}),J.extend=function(A,w){return A.$i||(A(w,we,J),A.$i=!0),J},J.locale=re,J.isDayjs=te,J.unix=function(A){return J(1e3*A)},J.en=G[Z],J.Ls=G,J.p={},J})})(li);var $t=li.exports,Ea="fcCalendar",ka=u.defineComponent({name:Ea,inheritAttrs:!1,props:{placeholder:String,formCreateInject:Object,disabled:Boolean,clearable:Boolean,type:String,modelValue:[String,Array],minDate:[String,Date],maxDate:[String,Date]},emits:["update:modelValue","change","fc.el"],setup:function(e,t){var r=u.ref(!1),i=u.toRef(e,"modelValue"),o=u.toRef(e,"formCreateInject"),a=u.ref(i.value);u.watch(function(){return i.value},function(S){a.value=S});var s=function(O){return $t(O).format("YYYY-MM-DD")},l=function(O){return $t(O).toDate()},f=u.computed(function(){var S=i.value;return Array.isArray(S)?S.map(l):S?l(S):null}),c=u.computed(function(){return{minDate:e.minDate?$t(e.minDate).toDate():void 0,maxDate:e.maxDate?$t(e.maxDate).toDate():void 0}}),p=function(O){Array.isArray(O)?a.value=O.map(s):O?a.value=s(O):a.value=O},g=function(){t.emit("update:modelValue",a.value),t.emit("change",a.value)},$={range:function(){return a.value.length?a.value.join(" - "):""},multiple:function(){return a.value.length?o.value.t("selectedData",{length:a.value.length})||"\u9009\u62E9\u4E86 ".concat(a.value.length," \u4E2A\u65E5\u671F"):""}};return{show:r,inputValue:a,defaultDate:f,dateRange:c,open:function(){e.disabled||(r.value=!0)},confirm:function(O){p(O),r.value=!1,g()},getStrValue:function(){return a.value?ye($,e.type)?$[e.type]():a.value||"":""},clear:function(O){O.stopPropagation();var M=Array.isArray(a.value)?[]:"";p(M),g()}}},render:function(){var e=this,t=function(){return e.$props.clearable&&!j.empty(e.inputValue)?u.createVNode("i",{class:"van-badge__wrapper van-icon van-icon-clear van-field__clear",onClick:e.clear},null):void 0};return u.createVNode(u.Fragment,null,[u.createVNode(u.resolveComponent("van-field"),{ref:"el",placeholder:this.placeholder,readonly:!0,disabled:this.$props.disabled,onClick:this.open,"model-value":this.getStrValue(),isLink:!0,border:!1},{"right-icon":t}),u.createVNode(u.resolveComponent("van-calendar"),u.mergeProps(W(W({},this.$attrs),this.dateRange),{show:this.show,"onUpdate:show":function(i){return e.show=i},type:this.type,onConfirm:this.confirm,defaultDate:this.defaultDate}),null)])},mounted:function(){this.$emit("fc.el",this.$refs.el)}}),xa="fcCascader",Aa=u.defineComponent({name:xa,inheritAttrs:!1,props:{placeholder:String,disabled:Boolean,clearable:Boolean,fieldNames:Object,modelValue:[String,Number],options:Array,minDate:[String,Date],maxDate:[String,Date]},emits:["update:modelValue","fc.el","change"],setup:function(e,t){var r=u.ref(!1),i=u.toRef(e,"modelValue"),o=u.toRef(e,"options"),a=u.toRef(e,"fieldNames",{}),s=function p(g,$,S){for(var O=0;O<g.length;O++){if(g[O][a.value.value||"value"]===$)return[].concat(se(S),[g[O]]);if(g[O][a.value.children||"children"]){var M=p(g[O][a.value.children||"children"],$,[].concat(se(S),[g[O]]));if(M)return M}}},l=function(g){if(g==null||g==="")return"";var $=s(o.value,g,[]);return $?$.map(function(S){return S[a.value.text||"text"]}).join(" / "):g},f=u.ref(l(i.value));u.watch(function(){return i.value},function(p){f.value=l(p)}),u.watch(function(){return o.value},function(){i.value!=null&&i.value!==""&&(f.value=l(i.value))},{deep:!0});var c=function(g){t.emit("update:modelValue",g),t.emit("change",g)};return{show:r,inputValue:f,options:o,open:function(){e.disabled||(r.value=!0)},confirm:function(g){var $=g.selectedOptions,S=g.value;f.value=$.map(function(O){return O[a.value.text||"text"]}).join(" / "),r.value=!1,c(S)},clear:function(g){g.stopPropagation(),f.value="",c("")}}},render:function(){var e=this,t=function(){return e.$props.clearable&&e.inputValue?u.createVNode("i",{class:"van-badge__wrapper van-icon van-icon-clear van-field__clear",onClick:e.clear},null):void 0};return u.createVNode(u.Fragment,null,[u.createVNode(u.resolveComponent("van-field"),{ref:"el",placeholder:this.placeholder,readonly:!0,disabled:this.$props.disabled,onClick:this.open,"model-value":this.inputValue,border:!1,isLink:!0},{"right-icon":t}),u.createVNode(u.resolveComponent("van-popup"),{show:this.show,"onUpdate:show":function(i){return e.show=i},round:!0,position:"bottom"},{default:function(){return[u.createVNode(u.resolveComponent("van-cascader"),u.mergeProps(e.$attrs,{modelValue:e.modelValue,fieldNames:e.fieldNames,options:e.options,onClose:function(){return e.show=!1},onFinish:e.confirm}),null)]}})])},mounted:function(){this.$emit("fc.el",this.$refs.el)}});function Ra(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!u.isVNode(n)}var Da="fcCheckbox",Pa=u.defineComponent({name:Da,inheritAttrs:!1,props:{modelValue:Array,options:Array},emits:["update:modelValue","change"],setup:function(e,t){var r=u.toRef(e,"modelValue",[]),i=u.toRef(e,"options");return{options:i,modelValue:r,onInput:function(a){t.emit("update:modelValue",a),t.emit("change",a)}}},render:function(){var e;return u.createVNode(u.resolveComponent("van-checkbox-group"),u.mergeProps({direction:"horizontal"},this.$attrs,{modelValue:Array.isArray(this.modelValue)?this.modelValue:[],"onUpdate:modelValue":this.onInput}),Ra(e=(this.options||[]).map(function(t){var r=W({},t),i=t.text,o=t.value;return delete r.text,delete r.value,u.createVNode(u.resolveComponent("van-checkbox"),u.mergeProps({name:o,shape:"square"},r),{default:function(){return[i||t.label||o]}})}))?e:{default:function(){return[e]}})}}),Va="fcSelect",Ta=u.defineComponent({name:Va,inheritAttrs:!1,props:{disabled:Boolean,placeholder:String,columnsFieldNames:Object,modelValue:[String,Number],options:Array},emits:["update:modelValue","fc.el","change"],setup:function(e,t){var r=u.ref(!1),i=u.toRef(e,"modelValue"),o=u.toRef(e,"options"),a=u.toRef(e,"columnsFieldNames",{}),s=u.computed(function(){if(i.value==null||i.value==="")return"";for(var f=0;f<(o.value||[]).length;f++)if(o.value[f][a.value.value||"value"]===i.value)return o.value[f][a.value.text||"text"];return i.value}),l=function(c){t.emit("update:modelValue",c),t.emit("change",c)};return{show:r,inputValue:s,options:o,open:function(){e.disabled||(r.value=!0)},confirm:function(c){var p=c.selectedValues;l(p[0]),r.value=!1}}},render:function(){var e=this;return u.createVNode(u.Fragment,null,[u.createVNode(u.resolveComponent("van-field"),{ref:"el",placeholder:this.placeholder,readonly:!0,disabled:this.$props.disabled,onClick:this.open,"model-value":this.inputValue,isLink:!0},null),u.createVNode(u.resolveComponent("van-popup"),{show:this.show,"onUpdate:show":function(r){return e.show=r},round:!0,position:"bottom"},{default:function(){return[u.createVNode(u.resolveComponent("van-picker"),u.mergeProps(e.$attrs,{modelValue:[e.modelValue],columnsFieldNames:e.columnsFieldNames,columns:e.options,onCancel:function(){return e.show=!1},onConfirm:e.confirm}),null)]}})])},mounted:function(){this.$emit("fc.el",this.$refs.el)}});function dt(n){return Array.isArray(n)?n:[null,void 0,""].indexOf(n)>-1?[]:[n]}var Ma="fcUploader";function ui(n,e){return fe(n)==="object"?n:{url:n,is_string:!0,name:Fa(n),uid:e}}function ci(n){return W(W({},n),{},{file:n,value:n})}function Fa(n){return(""+n).split("/").pop()}var ja=u.defineComponent({name:Ma,inheritAttrs:!1,props:{formCreateInject:Object,modelValue:[Array,String,Object],afterRead:Function,action:String,headers:Object,method:String,data:Object,uploadName:String,onSuccess:Function,onError:Function,maxCount:Number},emits:["update:modelValue","delete"],setup:function(e,t){var r=u.toRef(e,"afterRead"),i=u.toRef(e,"modelValue",[]),o=u.ref(dt(i.value).map(ui).map(ci));u.watch(function(){return i.value},function(s){o.value=dt(s).map(ui).map(ci)});var a=function(){var l=o.value.map(function(f){return f.is_string?f.url:f.value||f.url}).filter(function(f){return f!==void 0});t.emit("update:modelValue",e.maxCount===1?l[0]||"":l)};return{fileList:o,modelValue:i,onDelete:function(l){a(),t.emit("delete",l)},uploadFile:function(l){var f=this;if(l.status="uploading",r.value)return r.value(l);var c=e.data||{};c[e.uploadName||"file"]=l.file,e.formCreateInject.api.fetch({action:e.action,dataType:"formData",source:"upload",headers:e.headers||{},method:e.method||"post",data:c}).then(function(p){l.status="success",e.onSuccess&&e.onSuccess(p,l),a()}).catch(function(p){l.status="failed",l.message=f.formCreateInject.t("uploadFail")||"\u4E0A\u4F20\u5931\u8D25",e.onError&&e.onError(p,l)})}}},render:function(){var e=this;return u.createVNode(u.resolveComponent("van-uploader"),u.mergeProps(this.$attrs,{"model-value":this.fileList,maxCount:this.maxCount,"onUpdate:model-value":function(r){return e.fileList=r},afterRead:this.uploadFile,onDelete:this.onDelete}),null)}});function Ia(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!u.isVNode(n)}var Ba="fcRadio",Na=u.defineComponent({name:Ba,inheritAttrs:!1,props:{modelValue:[String,Number],options:Array},emits:["update:modelValue","change"],setup:function(e,t){var r=u.toRef(e,"modelValue",[]),i=u.toRef(e,"options");return{options:i,modelValue:r,onInput:function(a){t.emit("update:modelValue",a),t.emit("change",a)}}},render:function(){var e;return u.createVNode(u.resolveComponent("van-radio-group"),u.mergeProps({direction:"horizontal"},this.$attrs,{modelValue:this.modelValue,"onUpdate:modelValue":this.onInput}),Ia(e=(this.options||[]).map(function(t){var r=W({},t),i=t.text,o=t.value;return delete r.text,delete r.value,u.createVNode(u.resolveComponent("van-radio"),u.mergeProps({name:o},r),{default:function(){return[i||t.label||o]}})}))?e:{default:function(){return[e]}})}}),La="fcDatePicker",za=u.defineComponent({name:La,inheritAttrs:!1,props:{disabled:Boolean,clearable:Boolean,placeholder:String,modelValue:[String,Number],minDate:[String,Date],maxDate:[String,Date]},emits:["update:modelValue","fc.el","change"],setup:function(e,t){var r=u.ref(!1),i=u.toRef(e,"modelValue"),o=u.computed(function(){return i.value==null||i.value===""?[]:i.value.split("-")}),a=u.computed(function(){return{minDate:e.minDate?$t(e.minDate).toDate():void 0,maxDate:e.maxDate?$t(e.maxDate).toDate():void 0}}),s=function(f){t.emit("update:modelValue",f),t.emit("change",f)};return{show:r,formValue:o,dateRange:a,open:function(){e.disabled||(r.value=!0)},confirm:function(f){var c=f.selectedValues;s(c.join("-")),r.value=!1},clear:function(f){f.stopPropagation(),s("")}}},render:function(){var e=this,t=function(){return e.$props.clearable&&e.modelValue?u.createVNode("i",{class:"van-badge__wrapper van-icon van-icon-clear van-field__clear",onClick:e.clear},null):void 0};return u.createVNode(u.Fragment,null,[u.createVNode(u.resolveComponent("van-field"),{ref:"el",placeholder:this.placeholder,readonly:!0,disabled:this.$props.disabled,onClick:this.open,"model-value":this.modelValue,border:!1,isLink:!0},{"right-icon":t}),u.createVNode(u.resolveComponent("van-popup"),{show:this.show,"onUpdate:show":function(i){return e.show=i},round:!0,position:"bottom"},{default:function(){return[u.createVNode(u.resolveComponent("van-date-picker"),u.mergeProps({columnsType:["year","month","day"]},W(W({},e.$attrs),e.dateRange),{modelValue:e.formValue,onConfirm:e.confirm,onCancel:function(){return e.show=!1}}),null)]}})])},mounted:function(){this.$emit("fc.el",this.$refs.el)}}),Ua="fcTimePicker",qa=u.defineComponent({name:Ua,inheritAttrs:!1,props:{disabled:Boolean,clearable:Boolean,placeholder:String,modelValue:[String,Number]},emits:["update:modelValue","fc.el","change"],setup:function(e,t){var r=u.ref(!1),i=u.toRef(e,"modelValue"),o=u.computed(function(){return i.value==null||i.value===""?[]:i.value.split(":")}),a=function(l){t.emit("update:modelValue",l),t.emit("change",l)};return{show:r,formValue:o,open:function(){e.disabled||(r.value=!0)},confirm:function(l){var f=l.selectedValues;a(f.join(":")),r.value=!1},clear:function(l){l.stopPropagation(),a("")}}},render:function(){var e=this,t=function(){return e.$props.clearable&&e.modelValue?u.createVNode("i",{class:"van-badge__wrapper van-icon van-icon-clear van-field__clear",onClick:e.clear},null):void 0};return u.createVNode(u.Fragment,null,[u.createVNode(u.resolveComponent("van-field"),{ref:"el",placeholder:this.placeholder,readonly:!0,disabled:this.$props.disabled,onClick:this.open,"model-value":this.modelValue,border:!1,isLink:!0},{"right-icon":t}),u.createVNode(u.resolveComponent("van-popup"),{show:this.show,"onUpdate:show":function(i){return e.show=i},round:!0,position:"bottom"},{default:function(){return[u.createVNode(u.resolveComponent("van-time-picker"),u.mergeProps({columnsType:["hour","minute"]},e.$attrs,{modelValue:e.formValue,onConfirm:e.confirm,onCancel:function(){return e.show=!1}}),null)]}})])},mounted:function(){this.$emit("fc.el",this.$refs.el)}});function Ne(n,e,t){n[e]=t}function ht(n,e){delete n[e]}function Vt(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0,r=!1;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=e[i];if((r=Array.isArray(o))||j.Object(o)){var a=n[i]===void 0;if(r)r=!1,a&&Ne(n,i,[]);else if(o._clone&&t!==void 0)if(t)o=o.getRule(),a&&Ne(n,i,{});else{Ne(n,i,o._clone());continue}else a&&Ne(n,i,{});n[i]=Vt(n[i],o,t)}else Ne(n,i,o),j.Undef(o)||(j.Undef(o.__json)||(n[i].__json=o.__json),j.Undef(o.__origin)||(n[i].__origin=o.__origin))}return t!==void 0&&Array.isArray(n)?n.filter(function(s){return!s||!s.__ctrl}):n}function We(n){return Vt({},{value:n}).value}var Ga=Object.assign||function(n){for(var e,t=1;t<arguments.length;t++)for(var r in e=arguments[t],e)Object.prototype.hasOwnProperty.call(e,r)&&Ne(n,r,e[r]);return n};function ee(){return Ga.apply(this,arguments)}function Bn(n){return fe(n)!=="object"||n===null?n:n instanceof Array?se(n):W({},n)}var Ha="fcGroup",Wa=u.defineComponent({name:Ha,props:{field:String,rule:Array,expand:Number,options:Object,button:{type:Boolean,default:!0},max:{type:Number,default:0},min:{type:Number,default:0},modelValue:{type:Array,default:function(){return[]}},defaultValue:Object,sortBtn:{type:Boolean,default:!1},disabled:{type:Boolean,default:void 0},onBeforeRemove:{type:Function,default:function(){}},onBeforeAdd:{type:Function,default:function(){}},formCreateInject:Object,parse:Function},data:function(){return{len:0,cacheRule:{},cacheValue:{},sort:[],form:u.markRaw(this.formCreateInject.form.$form())}},emits:["update:modelValue","change","itemMounted","remove","add"],watch:{rule:{handler:function(e,t){var r=this;Object.keys(this.cacheRule).forEach(function(i){var o=r.cacheRule[i];if(o.$f){var a=o.$f.formData();if(e===t)o.$f.deferSyncValue(function(){Vt(o.rule,e),o.$f.setValue(a)},!0);else{var s=o.$f.formData();o.$f.once("reloading",function(){o.$f.setValue(s)}),o.rule=We(e)}}})},deep:!0},expand:function(e){var t=e-this.modelValue.length;t>0&&this.expandRule(t)},modelValue:{handler:function(e){var t=this;e=e||[];var r=this.sort,i=r.length,o=i-e.length;if(o<0){for(var a=o;a<0;a++)this.addRule(e.length+a,!0);for(var s=0;s<i;s++)this.setValue(r[s],e[s])}else{if(o>0)for(var l=0;l<o;l++)this.removeRule(r[i-l-1]);e.forEach(function(f,c){t.setValue(r[c],e[c])})}},deep:!0}},methods:{_value:function(e){return e&&ye(e,this.field)?e[this.field]:e},cache:function(e,t){this.cacheValue[e]=JSON.stringify(t)},input:function(e){this.$emit("update:modelValue",e),this.$emit("change",e)},formData:function(e,t){var r=this,i=this.cacheRule,o=this.sort;if(o.filter(function(s){return i[s]&&i[s].$f}).length===o.length){var a=o.map(function(s){var l=e===s?t:W({},r.cacheRule[s].$f.form),f=r.field?l[r.field]||null:l;return r.cache(s,f),f});this.input(a)}},setValue:function(e,t){var r=this.field;r&&(t=ke({},r,this._value(t))),this.cacheValue[e]!==JSON.stringify(r?t[r]:t)&&(this.cacheRule[e].$f&&this.cacheRule[e].$f.coverValue(t),this.cache(e,t))},addRule:function(e,t){var r=this,i=this.formCreateInject.form.copyRules(this.rule||[]),o=this.options?W({},this.options):{submitBtn:!1,resetBtn:!1};if(this.defaultValue){o.formData||(o.formData={});var a=We(this.defaultValue);ee(o.formData,this.field?ke({},this.field,a):a)}this.parse&&this.parse({rule:i,options:o,index:this.sort.length}),this.cacheRule[++this.len]={rule:i,options:o},this.sort=Object.keys(this.cacheRule),t&&u.nextTick(function(){return r.$emit("add",i,Object.keys(r.cacheRule).length-1)})},add$f:function(e,t,r){var i=this;this.cacheRule[t].$f=r,u.nextTick(function(){i.$emit("itemMounted",r,Object.keys(i.cacheRule).indexOf(t))})},removeRule:function(e,t){var r=this,i=Object.keys(this.cacheRule).indexOf(e);delete this.cacheRule[e],delete this.cacheValue[e],this.sort=Object.keys(this.cacheRule),t&&u.nextTick(function(){return r.$emit("remove",i)})},add:function(e){if(!(this.disabled||this.onBeforeAdd(this.modelValue)===!1)){var t=se(this.modelValue);t.push(this.defaultValue?We(this.defaultValue):this.field?null:{}),this.input(t)}},del:function(e,t){if(!(this.disabled||this.onBeforeRemove(this.modelValue,e)===!1)){this.removeRule(t,!0);var r=se(this.modelValue);r.splice(e,1),this.input(r)}},addIcon:function(e){return u.createVNode("div",{class:"_fc-m-group-btn _fc-m-group-plus-minus",onClick:this.add},null)},delIcon:function(e,t){var r=this;return u.createVNode("div",{class:"_fc-m-group-btn _fc-m-group-plus-minus _fc-m-group-minus",onClick:function(){return r.del(e,t)}},null)},sortUpIcon:function(e){var t=this;return u.createVNode("div",{class:"_fc-m-group-btn _fc-m-group-arrow _fc-m-group-up",onClick:function(){return t.changeSort(e,-1)}},null)},sortDownIcon:function(e){var t=this;return u.createVNode("div",{class:"_fc-m-group-btn _fc-m-group-arrow _fc-m-group-down",onClick:function(){return t.changeSort(e,1)}},null)},changeSort:function(e,t){var r=this,i=this.sort[e];this.sort[e]=this.sort[e+t],this.sort[e+t]=i,this.formCreateInject.subForm(this.sort.map(function(o){return r.cacheRule[o].$f})),this.formData(0)},makeIcon:function(e,t,r){var i=this;if(this.$slots.button)return this.$slots.button({total:e,index:t,vm:this,key:r,del:function(){return i.del(t,r)},add:this.add});var o=[];return(!this.max||e<this.max)&&e===t+1&&o.push(this.addIcon(r)),e>this.min&&o.push(this.delIcon(t,r)),this.sortBtn&&t&&o.push(this.sortUpIcon(t)),this.sortBtn&&t!==e-1&&o.push(this.sortDownIcon(t)),o},emitEvent:function(e,t,r,i){this.$emit.apply(this,[e].concat(se(t),[this.cacheRule[i].$f,r]))},expandRule:function(e){for(var t=0;t<e;t++)this.addRule(t)}},created:function(){for(var e=(this.expand||0)-this.modelValue.length,t=0;t<this.modelValue.length;t++)this.addRule(t);e>0&&this.expandRule(e)},render:function(){var e=this,t=this.sort,r=this.button,i=this.form,o=this.disabled,a=t.length===0?this.$slots.default?this.$slots.default({vm:this,add:this.add}):u.createVNode("div",{key:"a_def",class:"_fc-m-group-plus-minus _fc-m-group-add fc-clock",onClick:this.add},null):t.map(function(s,l){var f=e.cacheRule[s],c=f.rule,p=f.options,g=r&&!o?e.makeIcon(t.length,l,s):[];return u.createVNode("div",{class:"_fc-m-group-container",key:s},[u.createVNode(i,u.mergeProps({key:s},{disabled:o,"onUpdate:modelValue":function(S){return e.formData(s,S)},"onEmit-event":function(S){for(var O=arguments.length,M=new Array(O>1?O-1:0),q=1;q<O;q++)M[q-1]=arguments[q];return e.emitEvent(S,M,l,s)},"onUpdate:api":function(S){return e.add$f(l,s,S)},inFor:!0,modelValue:e.field?ke({},e.field,e._value(e.modelValue[l])):e.modelValue[l],rule:c,option:p,extendOption:!0}),null),u.createVNode("div",{class:"_fc-m-group-idx"},[l+1]),g.length?u.createVNode("div",{class:"_fc-m-group-handle fc-clock"},[g]):null])});return u.createVNode("div",{key:"con",class:"_fc-m-group "+(o?"_fc-m-group-disabled":"")},[a])}}),fi={name:"IconWarning"},Ya={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Xa=u.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 110 896 448 448 0 010-896zm0 832a384 384 0 000-768 384 384 0 000 768zm48-176a48 48 0 11-96 0 48 48 0 0196 0zm-48-464a32 32 0 0132 32v288a32 32 0 01-64 0V288a32 32 0 0132-32z"},null,-1),Ja=[Xa];function Ka(n,e,t,r,i,o){return u.openBlock(),u.createElementBlock("svg",Ya,Ja)}fi.render=Ka;var Za=[fa,fi,ka,Aa,Pa,Na,Ta,za,qa,Wa,ja];function st(n,e){var t=null;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];t!==null&&clearTimeout(t),t=setTimeout(function(){return n.call.apply(n,[r].concat(o))},e)}}function Tt(n){var e=n.replace(/([A-Z])/g,"-$1").toLocaleLowerCase();return e.indexOf("-")===0&&(e=e.substr(1)),e}function Qa(n){return n.replace(n[0],n[0].toLocaleUpperCase())}var di=["props"],hi=["class","style","directives"],pi=["on","hook"],pt=function n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=[].concat(di,se(r.normal||[])),o=[].concat(hi,se(r.array||[])),a=[].concat(pi,se(r.functional||[])),s=r.props||[];return e.reduce(function(l,f){for(var c in f)if(l[c])if(s.indexOf(c)>-1)l[c]=n([f[c]],l[c]);else if(i.indexOf(c)>-1)l[c]=W(W({},l[c]),f[c]);else if(o.indexOf(c)>-1){var p=l[c]instanceof Array?l[c]:[l[c]],g=f[c]instanceof Array?f[c]:[f[c]];l[c]=[].concat(se(p),se(g))}else if(a.indexOf(c)>-1)for(var $ in f[c])if(l[c][$]){var S=l[c][$]instanceof Array?l[c][$]:[l[c][$]],O=f[c][$]instanceof Array?f[c][$]:[f[c][$]];l[c][$]=[].concat(se(S),se(O))}else l[c][$]=f[c][$];else if(c==="hook")for(var M in f[c])l[c][M]?l[c][M]=es(l[c][M],f[c][M]):l[c][M]=f[c][M];else l[c]=f[c];else i.indexOf(c)>-1||a.indexOf(c)>-1||s.indexOf(c)>-1?l[c]=W({},f[c]):o.indexOf(c)>-1?l[c]=f[c]instanceof Array?se(f[c]):fe(f[c])==="object"?W({},f[c]):f[c]:l[c]=f[c];return l},t)},es=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},Nn=["type","slot","ignore","emitPrefix","value","name","native","hidden","display","inject","options","emit","link","prefix","suffix","update","sync","optionsTo","key","slotUpdate","computed","preview","component","cache","modelEmit"],Zt=["validate","children","control"],Qt=["effect","deep","renderSlots"];function mi(){return[].concat(Nn,se(di),se(hi),se(pi),Zt,Qt)}function gi(n,e,t){return"[form-create ".concat(n,"]: ").concat(e)+(t?`
rule: `+JSON.stringify(t.getRule?t.getRule():t):"")}function Ln(n,e){console.error(gi("err",n,e))}function ts(n){Ln(n.toString()),console.error(n)}function Ye(n){var e=n.replace(/(-[a-z])/g,function(t){return t.replace("-","").toLocaleUpperCase()});return vi(e)}function vi(n){return n.replace(n[0],n[0].toLowerCase())}var zn="[[FORM-CREATE-PREFIX-",Un="-FORM-CREATE-SUFFIX]]";function Mt(n,e){return JSON.stringify(Vt(Array.isArray(n)?[]:{},n,!0),function(t,r){if(!(r&&r._isVue===!0)){if(typeof r!="function")return r;if(r.__json)return r.__json;if(r.__origin&&(r=r.__origin),!r.__emit)return zn+r+Un}},e)}function qn(n){return new Function("return "+n)()}function Ke(n,e){if(n&&j.String(n)&&n.length>4){var t=n.trim(),r=!1;try{if(t.indexOf(Un)>0&&t.indexOf(zn)===0)t=t.replace(Un,"").replace(zn,""),r=!0;else if(t.indexOf("$FN:")===0)t=t.substring(4),r=!0;else if(t.indexOf("$EXEC:")===0)t=t.substring(6),r=!0;else if(t.indexOf("$GLOBAL:")===0){var i=t.substring(8);return t=function(){for(var s=arguments.length,l=new Array(s),f=0;f<s;f++)l[f]=arguments[f];var c=l[0].api.getGlobalEvent(i);if(c)return c.call.apply(c,[this].concat(l))},t.__json=n,t.__inject=!0,t}else{if(t.indexOf("$FNX:")===0)return t=qn("function($inject){"+t.substring(5)+"}"),t.__json=n,t.__inject=!0,t;(!e&&t.indexOf("function ")===0&&t!=="function "||!e&&t.indexOf("function(")===0&&t!=="function(")&&(r=!0)}if(!r)return n;var o;try{o=qn(t)}catch{o=qn("function "+t)}return o.__json=n,o}catch(a){Ln("\u89E3\u6790\u5931\u8D25:".concat(t,`
err: `).concat(a));return}}return n}function yi(n,e){return JSON.parse(n,function(t,r){return j.Undef(r)||!r.indexOf?r:Ke(r,e)})}function Gn(n,e){return{value:n,enumerable:!1,configurable:!1,writable:!!e}}function _i(n,e){return bi([n],e||!1)[0]}function bi(n,e){return Vt([],se(n),e||!1)}function nt(n,e){return pt(Array.isArray(e)?e:[e],n,{array:Zt,normal:Qt}),n}function wi(n){var e=j.Function(n.getRule)?n.getRule():n;return e.type||(e.type="input"),e}function ns(n,e){return n?(Object.keys(e||{}).forEach(function(t){e[t]&&(n[t]=nt(n[t]||{},e[t]))}),n):e}function $i(n,e){Object.defineProperties(n,Object.keys(e).reduce(function(t,r){return t[r]={get:function(){return e[r]()}},t},{}))}function rt(n){return n.__fc__||(n.__origin__?n.__origin__.__fc__:null)}function ue(n,e){try{e=n()}catch(t){ts(t)}return e}function en(){var n={},e=function(r){return r||"default"};return{setSlot:function(r,i){r=e(r),!(!i||Array.isArray(i)&&i.length)&&(n[r]||(n[r]=[]),n[r].push(i))},getSlot:function(r,i){r=e(r);var o=[];return(n[r]||[]).forEach(function(a){if(Array.isArray(a))o.push.apply(o,se(a));else if(j.Function(a)){var s=a.apply(void 0,se(i||[]));Array.isArray(s)?o.push.apply(o,se(s)):o.push(s)}else j.Undef(a)||o.push(a)}),o},getSlots:function(){var r=this,i={};return Object.keys(n).forEach(function(o){i[o]=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return r.getSlot(o,s)}}),i},slotLen:function(r){return r=e(r),n[r]?n[r].length:0},mergeBag:function(r){var i=this;if(!r)return this;var o=j.Function(r.getSlots)?r.getSlots():r;return Array.isArray(r)||u.isVNode(r)?this.setSlot(void 0,function(){return r}):Object.keys(o).forEach(function(a){i.setSlot(a,o[a])}),this}}}function Si(n){var e=W({},n.props||{});return Object.keys(n.on||{}).forEach(function(t){t.indexOf("-")>0&&(t=Ye(t));var r="on".concat(Qa(t));Array.isArray(e[r])?e[r]=[].concat(se(e[r]),[n.on[t]]):e[r]?e[r]=[e[r],n.on[t]]:e[r]=n.on[t]}),e.key=n.key,e.ref=n.ref,e.class=n.class,e.id=n.id,e.style=n.style,e.slot&&delete e.slot,e}function tn(n,e){return Object.setPrototypeOf(n,e),n}var Oi=function(e,t){return typeof e=="string"?String(t):typeof e=="number"?Number(t):t},mt={"==":function(e,t){return JSON.stringify(e)===JSON.stringify(Oi(e,t))},"!=":function(e,t){return!mt["=="](e,t)},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},on:function(e,t){return e&&e.indexOf&&e.indexOf(Oi(e[0],t))>-1},notOn:function(e,t){return!mt.on(e,t)},in:function(e,t){return t&&t.indexOf&&t.indexOf(e)>-1},notIn:function(e,t){return!mt.in(e,t)},between:function(e,t){return e>t[0]&&e<t[1]},notBetween:function(e,t){return e<t[0]||e>t[1]},empty:function(e){return j.empty(e)},notEmpty:function(e){return!j.empty(e)},pattern:function(e,t){return new RegExp(t,"g").test(e)}};function Re(n,e){return(Array.isArray(e)?e:(e||"").split(".")).forEach(function(t){n!=null&&(n=n[t])}),n}function rs(n){for(var e=/{{\s*(.*?)\s*}}/g,t,r={};(t=e.exec(n))!==null;)t[1]&&(r[t[1]]=!0);return Object.keys(r)}function Ci(n){var e=n.split("."),t=[],r="";return e.forEach(function(i,o){o===0?r=i:r+="."+i,t.push(r)}),t.join(" && ")}var nn=function(e,t){if(!(!e||e===t)){if(e.props.formCreateInject)return e.props.formCreateInject;if(e.parent)return nn(e.parent,t)}};function is(n,e,t){return u.defineComponent({name:"FormCreate"+(n.isMobile?"Mobile":""),components:e,directives:t,props:{rule:{type:Array,required:!0,default:function(){return[]}},option:{type:Object,default:function(){return{}}},extendOption:Boolean,driver:[String,Object],modelValue:Object,disabled:{type:Boolean,default:void 0},preview:{type:Boolean,default:void 0},index:[String,Number],api:Object,locale:[String,Object],name:String,subForm:{type:Boolean,default:!0},inFor:Boolean},emits:["update:api","update:modelValue","mounted","submit","reset","change","emit-event","control","remove-rule","remove-field","sync","reload","repeat-field","update","validate-field-fail","validate-fail","created"],render:function(){return this.fc.render()},setup:function(i){var o=u.getCurrentInstance();u.provide("parentFC",o);var a=u.inject("parentFC",null),s=a;if(a)for(;s.setupState.parent;)s=s.setupState.parent;else s=o;var l=u.toRefs(i),f=l.rule,c=l.modelValue,p=l.subForm,g=l.inFor,$=u.reactive({ctxInject:{},destroyed:!1,isShow:!0,unique:1,renderRule:se(f.value||[]),updateValue:JSON.stringify(c.value||{})}),S=new n(o),O=S.api(),M=g.value,q=function(){if(a){var re=nn(o,a);if(re){var J;M?(J=dt(re.getSubForm()),J.push(O)):J=O,re.subForm(J)}}},U=function(){var re=nn(o,a);if(re)if(M){var J=dt(re.getSubForm()),H=J.indexOf(O);H>-1&&J.splice(H,1)}else re.subForm()},N=null;u.onBeforeMount(function(){u.watchEffect(function(){var te="",re=i.option&&i.option.globalClass||{};Object.keys(re).forEach(function(J){var H="";re[J].style&&Object.keys(re[J].style).forEach(function(we){H+=Tt(we)+":"+re[J].style[we]+";"}),re[J].content&&(H+=re[J].content+";"),H&&(te+=".".concat(J,"{").concat(H,"}"))}),i.option&&i.option.style&&(te+=i.option.style),N||(N=document.createElement("style"),N.type="text/css",document.head.appendChild(N)),N.innerHTML=te||""})});var K=st(function(){S.bus.$emit("$loadData.$topForm")},100),Z=st(function(){S.bus.$emit("$loadData.$scopeForm")},100),G=st(function(){S.bus.$emit("$loadData.$form")},100),le=function(re){S.bus.$emit("change-$form."+re)};return u.onMounted(function(){a&&(O.top.bus.$on("$loadData.$form",K),O.top.bus.$on("change",le)),O!==O.scope&&O.scope.bus.$on("$loadData.$scopeForm",Z),S.mounted()}),u.onBeforeUnmount(function(){a&&(O.top.bus.$off("$loadData.$form",K),O.top.bus.$off("change",le)),O!==O.scope&&O.scope.bus.$off("$loadData.$scopeForm",Z),N&&document.head.removeChild(N),U(),$.destroyed=!0,S.unmount()}),u.onUpdated(function(){S.updated()}),q(),u.watch(function(){return i.option},function(){S.initOptions(),O.refresh()},{deep:!0}),u.watch(function(){return se(f.value)},function(te){S.$handle.isBreakWatch()||te.length===$.renderRule.length&&te.every(function(re){return $.renderRule.indexOf(re)>-1})||(S.$handle.updateAppendData(),S.$handle.reloadRule(f.value),o.setupState.renderRule())}),u.watch(function(){return[i.disabled,i.preview]},function(){O.refresh()}),u.watch(c,function(te){Mt(te||{})!==$.updateValue&&(O.config.forceCoverValue?O.coverValue(te||{}):O.setValue(te||{}))},{deep:!0,flush:"post"}),u.watch(function(){return i.index},function(){O.coverValue({}),S.$handle.updateAppendData(),u.nextTick(function(){u.nextTick(function(){O.clearValidateState()})})},{flush:"sync"}),W(W({fc:u.markRaw(S),parent:a&&u.markRaw(a),top:u.markRaw(s),fapi:u.markRaw(O)},u.toRefs($)),{},{getGroupInject:function(){return nn(o,a)},refresh:function(){++$.unique},renderRule:function(){$.renderRule=se(f.value||[])},updateValue:function(re){if(!$.destroyed){var J=Mt(re);$.updateValue!==J&&($.updateValue=J,o.emit("update:modelValue",re),u.nextTick(function(){G(),a?p.value||Z():(K(),Z())}))}}})},created:function(){var i=u.getCurrentInstance();i.emit("update:api",i.setupState.fapi),i.setupState.fc.init()}})}function Ei(){return{props:{},on:{},options:[],children:[],hidden:!1,display:!0,value:void 0}}function rn(n,e){return function(t,r,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=new Hn(n,t,r,i,o);return e&&(j.Function(e)?e(a):a.props(e)),a}}function Hn(n,e,t,r,i){this._data=ee(Ei(),{type:n,title:e,field:t,value:r,props:i||{}}),this.event=this.on}ee(Hn.prototype,{getRule:function(){return this._data},setProp:function(e,t){return Ne(this._data,e,t),this},modelField:function(e){return this._data.modelField=e,this},_clone:function(){var e=new this.constructor;return e._data=_i(this._data),e}});function ki(n){n.forEach(function(e){Hn.prototype[e]=function(t){return nt(this._data,ke({},e,arguments.length<2?t:ke({},t,arguments[1]))),this}})}ki(mi());var os=rn("");function as(n,e,t){var r=os("",e);return r._data.type=n,r._data.title=t,r}function ss(){return{create:as,factory:rn}}function ls(n,e,t){var r="fail to ".concat(n," ").concat(t.status,"'"),i=new Error(r);return i.status=t.status,i.url=n,i}function xi(n){var e=n.responseText||n.response;if(!e)return e;try{return JSON.parse(e)}catch{return e}}function Ai(n){if(!(typeof XMLHttpRequest>"u")){var e=new XMLHttpRequest,t=n.action||"";if(e.upload&&n.onProgress&&e.upload.addEventListener("progress",function(a){a.percent=a.total>0?a.loaded/a.total*100:0,n.onProgress(a)}),n.query){var r=new URLSearchParams(n.query).toString();r&&(t.includes("?")?t+="&".concat(r):t+="?".concat(r))}e.onerror=function(s){n.onError(s)},e.onload=function(){if(e.status<200||e.status>=300)return n.onError(ls(t,n,e),xi(e));n.onSuccess(xi(e))},e.open(n.method||"get",t,!0);var i;(n.data||n.file)&&(n.file||(n.dataType||"").toLowerCase()!=="json"?(i=new FormData,Object.keys(n.data||{}).map(function(a){i.append(a,n.data[a])})):(i=JSON.stringify(n.data||{}),e.setRequestHeader("content-type","application/json"))),n.file&&i.append(n.filename,n.file,n.file.name),n.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var o=n.headers||{};Object.keys(o).forEach(function(a){o[a]!=null&&e.setRequestHeader(a,o[a])}),e.send(i)}}function Ri(n,e,t){return new Promise(function(r,i){(e||Ai)(W(W({},n),{},{onSuccess:function(a){var s=function(c){return c},l=Ke(n.parse);j.Function(l)?s=l:l&&j.String(l)&&(s=function(c){return Re(c,l)}),r(s(a,void 0,t))},onError:function(a){i(a)}}))})}function Ft(n){return We(n)}function us(n){function e(o){return j.Undef(o)?o=n.fields():Array.isArray(o)||(o=[o]),o}function t(o,a,s){j.Undef(o)?o=Object.keys(W(W({},n.fieldCtx),n.nameCtx)):Array.isArray(o)||(o=[o]),o.forEach(function(l){var f=n.fieldCtx[l]||n.nameCtx[l];f&&f.forEach(function(c){Ne(c.rule,a,s),n.$render.clearCache(c)})})}function r(){var o=n.subForm;return Object.keys(o).reduce(function(a,s){var l=o[s];return l&&(Array.isArray(l)?a.push.apply(a,se(l)):a.push(l)),a},[])}var i={get isScope(){return n.vm.props.subForm===!1},get isPreview(){return n.preview},get config(){return n.options},set config(o){n.fc.options.value=o},get options(){return n.options},set options(o){n.fc.options.value=o},get form(){return n.form},get rule(){return n.rules},get parent(){return n.vm.setupState.parent&&n.vm.setupState.parent.setupState.fapi},get top(){return i.parent?i.parent.top:i},get scope(){for(var o=n.vm;o&&o.setupState.fapi;)if(o.props.subForm)o=o.setupState.parent;else return o.setupState.fapi;return i.top},get children(){return r()},get siblings(){var o=n.vm.setupState.getGroupInject();if(o){var a=o.getSubForm();if(Array.isArray(a))return se(a)}},get index(){var o=i.siblings;if(o){var a=o.indexOf(i);return a>-1?a:void 0}},get formulas(){return W({},n.fc.formulas)},formData:function(a){if(a==null||typeof a=="boolean"){var s={};return Object.keys(n.form).forEach(function(l){(a===!0||n.ignoreFields.indexOf(l)===-1)&&(s[l]=Ft(n.form[l]))}),s}else return e(a).reduce(function(l,f){return l[f]=i.getValue(f),l},{})},getValue:function(a){var s=n.getFieldCtx(a);return s?Ft(s.rule.value):n.options.appendValue!==!1&&ye(n.appendData,a)?Ft(n.appendData[a]):void 0},coverValue:function(a){var s=W({},a||{});n.deferSyncValue(function(){n.appendData={},i.fields().forEach(function(l){var f=n.fieldCtx[l];if(f){var c=ye(a,l);f.forEach(function(p){p.rule.value=c?a[l]:void 0}),delete s[l]}}),ee(n.appendData,s)},!0)},setValue:function(a){var s=a;arguments.length>=2&&(s=ke({},a,arguments[1])),n.deferSyncValue(function(){Object.keys(s).forEach(function(l){var f=n.fieldCtx[l];if(!f)return n.appendData[l]=s[l];f.forEach(function(c){c.rule.value=s[l]})})},!0)},removeField:function(a){var s=n.getCtx(a);return n.deferSyncValue(function(){n.getCtxs(a).forEach(function(l){l.rm()})},!0),s?s.origin:void 0},removeRule:function(a){var s=a&&rt(a);if(!!s)return s.rm(),s.origin},fields:function(){return n.fields()},append:function(a,s,l){var f=n.sort.length-1,c,p=n.getCtx(s);if(p)if(l){if(c=p.getPending("children",p.rule.children),!Array.isArray(c))return;f=p.rule.children.length-1}else f=p.root.indexOf(p.origin),c=p.root;else c=n.rules;c.splice(f+1,0,a)},prepend:function(a,s,l){var f=0,c,p=n.getCtx(s);if(p)if(l){if(c=p.getPending("children",p.rule.children),!Array.isArray(c))return}else f=p.root.indexOf(p.origin),c=p.root;else c=n.rules;c.splice(f,0,a)},hidden:function(a,s){t(s,"hidden",!!a),n.refresh()},hiddenStatus:function(a){var s=n.getCtx(a);if(!!s)return!!s.rule.hidden},display:function(a,s){t(s,"display",!!a),n.refresh()},displayStatus:function(a){var s=n.getCtx(a);if(!!s)return!!s.rule.display},disabled:function(a,s){e(s).forEach(function(l){n.getCtxs(l).forEach(function(f){Ne(f.rule.props,"disabled",!!a)})}),n.refresh()},all:function(a){return Object.keys(n.ctxs).map(function(s){var l=n.ctxs[s];return a?l.origin:l.rule})},model:function(a){return n.fields().reduce(function(s,l){var f=n.fieldCtx[l][0];return s[l]=a?f.origin:f.rule,s},{})},component:function(a){return Object.keys(n.nameCtx).reduce(function(s,l){var f=n.nameCtx[l].map(function(c){return a?c.origin:c.rule});return s[l]=f.length===1?f[0]:f,s},{})},bind:function(){return i.form},reload:function(a){n.reloadRule(a)},updateOptions:function(a){n.fc.updateOptions(a),i.refresh()},onSubmit:function(a){i.updateOptions({onSubmit:a})},sync:function(a){if(Array.isArray(a)){a.forEach(function(l){return i.sync(l)});return}var s=j.Object(a)?rt(a):n.getCtxs(a);!s||(s=Array.isArray(s)?s:[s],s.forEach(function(l){if(!l.deleted){var f=n.subForm[l.id];f&&(Array.isArray(f)?f.forEach(function(c){c.refresh()}):f&&f.refresh()),n.$render.clearCache(l)}}),n.refresh())},refresh:function(){r().forEach(function(a){a.refresh()}),n.$render.clearCacheAll(),n.refresh()},refreshOptions:function(){n.$manager.updateOptions(n.options),i.refresh()},hideForm:function(a){n.vm.setupState.isShow=!a},changeStatus:function(){return n.changeStatus},clearChangeStatus:function(){n.changeStatus=!1},updateRule:function(a,s){n.getCtxs(a).forEach(function(l){ee(l.rule,s)})},updateRules:function(a){Object.keys(a).forEach(function(s){i.updateRule(s,a[s])})},mergeRule:function(a,s){n.getCtxs(a).forEach(function(l){nt(l.rule,s)})},mergeRules:function(a){Object.keys(a).forEach(function(s){i.mergeRule(s,a[s])})},getRule:function(a,s){var l=n.getCtx(a);if(l)return s?l.origin:l.rule},getRenderRule:function(a){var s=n.getCtx(a);if(s)return s.prop},getRefRule:function(a){var s=n.getCtxs(a);if(s){var l=s.map(function(f){return f.rule});return l.length===1?l[0]:l}},setEffect:function(a,s,l){var f=n.getCtx(a);f&&s&&(s[0]==="$"&&(s=s.substr(1)),ye(f.rule,"$"+s)&&Ne(f.rule,"$"+s,l),ye(f.rule,"effect")||(f.rule.effect={}),Ne(f.rule.effect,s,l))},clearEffectData:function(a,s){var l=n.getCtx(a);l&&(s&&s[0]==="$"&&(s=s.substr(1)),l.clearEffectData(s),i.sync(a))},updateValidate:function(a,s,l){l?i.mergeRule(a,{validate:s}):t(a,"validate",s)},updateValidates:function(a,s){Object.keys(a).forEach(function(l){i.updateValidate(l,a[l],s)})},refreshValidate:function(){i.refresh()},resetFields:function(a){e(a).forEach(function(s){n.getCtxs(s).forEach(function(l){n.$render.clearCache(l),l.rule.value=Ft(l.defaultValue)})}),u.nextTick(function(){u.nextTick(function(){u.nextTick(function(){i.clearValidateState(a)})})}),a==null&&(j.Function(n.options.onReset)&&ue(function(){return n.options.onReset(i)}),n.vm.emit("reset",i))},method:function(a,s){var l=i.el(a);if(!l||!l[s])throw new Error(gi("err","".concat(s," \u65B9\u6CD5\u4E0D\u5B58\u5728")));return function(){return l[s].apply(l,arguments)}},exec:function(a,s){for(var l=arguments.length,f=new Array(l>2?l-2:0),c=2;c<l;c++)f[c-2]=arguments[c];return ue(function(){return i.method(a,s).apply(void 0,f)})},toJson:function(a){return Mt(i.rule,a)},trigger:function(a,s){for(var l=i.el(a),f=arguments.length,c=new Array(f>2?f-2:0),p=2;p<f;p++)c[p-2]=arguments[p];l&&l.$emit.apply(l,[s].concat(c))},el:function(a){var s=n.getCtx(a);if(s)return s.el||n.vm.refs[s.ref]},closeModal:function(a){n.bus.$emit("fc:closeModal:"+a)},getSubForm:function(a){var s=n.getCtx(a);return s?n.subForm[s.id]:void 0},getChildrenRuleList:function(a){var s=fe(a)==="object",l=s?rt(a):n.getCtx(a),f=l?l.rule:s?a:i.getRule(a);if(!f)return[];var c=[],p=function($){$&&$.forEach(function(S){fe(S)==="object"&&(S.field&&c.push(S),c.push.apply(c,se(i.getChildrenRuleList(S))))})};return p(l?l.loadChildrenPending():f.children),c},getParentRule:function(a){var s=fe(a)==="object",l=s?rt(a):n.getCtx(a);return l.parent.rule},getParentSubRule:function(a){var s=fe(a)==="object",l=s?rt(a):n.getCtx(a);if(l){var f=l.getParentGroup();if(f)return f.rule}},getChildrenFormData:function(a,s){var l=i.getChildrenRuleList(a);return l.reduce(function(f,c){return(c.ignore!==!0||s===!0)&&(f[c.field]=Ft(c.value)),f},{})},setChildrenFormData:function(a,s,l){var f=i.getChildrenRuleList(a);n.deferSyncValue(function(){f.forEach(function(c){ye(s,c.field)?c.value=s[c.field]:l&&(c.value=void 0)})})},getGlobalEvent:function(a){var s=i.options.globalEvent[a];if(s)return fe(s)==="object"&&(s=s.handle),Ke(s)},getGlobalData:function(a){return new Promise(function(s,l){var f=i.options.globalData[a];f||s(n.fc.loadData[a]),f.type==="fetch"?i.fetch(f).then(function(c){s(c)}).catch(l):s(f.data)})},renderRule:function(a,s,l){var f=fe(a)==="object",c=f?rt(a):n.getCtx(a);return c?n.$render.createRuleVnode(c,s,l):void 0},renderChildren:function(a,s,l){var f=fe(a)==="object",c=f?rt(a):n.getCtx(a);return c?n.$render.createChildrenVnodes(c,s,l):void 0},nextTick:function(a){n.bus.$once("next-tick",a),n.refresh()},nextRefresh:function(a){n.nextRefresh(),a&&ue(a)},deferSyncValue:function(a,s){n.deferSyncValue(a,s)},emit:function(a){for(var s,l=arguments.length,f=new Array(l>1?l-1:0),c=1;c<l;c++)f[c-1]=arguments[c];(s=n.vm).emit.apply(s,[a].concat(f))},bus:n.bus,fetch:function(a){return new Promise(function(s,l){a=We(a),a=n.loadFetchVar(a),n.beforeFetch(a).then(function(){return Ri(a,n.fc.create.fetch,i).then(function(f){ue(function(){return a.onSuccess&&a.onSuccess(f)}),s(f)}).catch(function(f){ue(function(){return a.onError&&a.onError(f)}),l(f)})}).catch(function(f){})})},watchFetch:function(a,s,l,f){return n.fc.watchLoadData(function(c,p){var g=We(a);g=n.loadFetchVar(g,c),!(f&&f(g,p)===!1)&&n.beforeFetch(g).then(function(){return Ri(g,n.fc.create.fetch,i).then(function($){ue(function(){return g.onSuccess&&g.onSuccess($)}),s&&s($,p)}).catch(function($){ue(function(){return g.onError&&g.onError($)}),l&&l($)})}).catch(function($){})},a.wait==null?1e3:a.wait)},getData:function(a,s){return n.fc.get?n.fc.get(a,s):n.fc.getLoadData(a,s)},watchData:function(a){return n.fc.watchLoadData(function(s,l){ue(function(){return a(s,l)})})},setData:function(a,s,l){return n.fc.setData(a,s,l)},refreshData:function(a){return n.fc.refreshData(a)},t:function(a,s){return n.fc.t(a,s)},getLocale:function(){return n.fc.getLocale()},helper:{tidyFields:e,props:t}};return["on","once","off"].forEach(function(o){i[o]=function(){var a;(a=n.bus)["$".concat(o)].apply(a,arguments)}}),i.changeValue=i.changeField=i.setValue,i}function cs(n){ee(n.prototype,{initCache:function(){this.clearCacheAll()},clearCache:function(t){if(!t.rule.cache){if(!this.cache[t.id]){t.parent&&this.clearCache(t.parent);return}(this.cache[t.id].use===!0||this.cache[t.id].parent)&&this.$handle.refresh(),this.cache[t.id].parent&&this.clearCache(this.cache[t.id].parent),this.cache[t.id]=null}},clearCacheAll:function(){this.cache={}},setCache:function(t,r,i){this.cache[t.id]={vnode:r,use:!1,parent:i,slot:t.rule.slot}},getCache:function(t){var r=this.cache[t.id];if(r)return r.use=!0,r.vnode}})}function fs(n){return n==null?"":fe(n)==="object"?JSON.stringify(n,null,2):String(n)}var ds=0;function on(){var n=370+ ++ds;return"F"+Math.random().toString(36).substr(3,3)+Number("".concat(Date.now())).toString(36)+n.toString(36)+"c"}function lt(n,e,t){var r=n,i;return(e||"").split(".").forEach(function(o){i&&((!r[i]||fe(r[i])!="object")&&(r[i]={}),r=r[i]),i=o}),r[i]=t,r}function hs(n){ee(n.prototype,{initRender:function(){this.cacheConfig={}},getTypeSlot:function(t){var r=function i(o){if(o){var a=void 0;return t.rule.field&&(a=o.slots["field-"+Tt(t.rule.field)]||o.slots["field-"+t.rule.field]),a||(a=o.slots["type-"+Tt(t.type)]||o.slots["type-"+t.type]),a||i(o.setupState.parent)}};return r(this.vm)},render:function(){var t=this;if(!!this.vm.setupState.isShow){this.$manager.beforeRender();var r=en();return this.sort.forEach(function(i){t.renderSlot(r,t.$handle.ctxs[i])}),this.$manager.render(r)}},renderSlot:function(t,r,i){if(this.isFragment(r)){r.initProp(),this.mergeGlobal(r),r.initNone();var o=this.renderChildren(r.loadChildrenPending(),r),a=o.default;a&&t.setSlot(r.rule.slot,function(){return a()}),delete o.default,t.mergeBag(o)}else t.setSlot(r.rule.slot,this.renderCtx(r,i))},mergeGlobal:function(t){var r=this,i=this.$handle.options.global;!i||(this.cacheConfig[t.trueType]||(this.cacheConfig[t.trueType]=u.computed(function(){var o=r.$handle.options.global;return nt({},[o["*"]||o.default||{},o[t.originType]||o[t.type]||o[t.type]||{}])})),t.prop=nt({},[this.cacheConfig[t.trueType].value,t.prop]))},setOptions:function(t){var r=t.loadPending({key:"options",origin:t.prop.options,def:[]});t.prop.options=r,t.prop.optionsTo&&r&&lt(t.prop,t.prop.optionsTo,r)},deepSet:function(t){var r=t.rule.deep;r&&Object.keys(r).sort(function(i,o){return i.length<o.length?-1:1}).forEach(function(i){lt(t.prop,i,r[i])})},parseSide:function(t,r){return j.Object(t)?nt({props:{formCreateInject:r.prop.props.formCreateInject}},t):t},renderSides:function(t,r,i){var o=r[i?"rule":"prop"];return[this.renderRule(this.parseSide(o.prefix,r)),t,this.renderRule(this.parseSide(o.suffix,r))]},renderId:function(t,r){var i=this,o=this.$handle[r==="field"?"fieldCtx":"nameCtx"][t];return o?o.map(function(a){return i.renderCtx(a,a.parent)}):void 0},renderCtx:function(t,r){var i=this;try{if(t.type==="hidden")return;var o=t.rule;if(this.force||!this.cache[t.id]||this.cache[t.id].slot!==o.slot){var a;t.initProp(),this.mergeGlobal(t),t.initNone(),this.$manager.tidyRule(t),this.deepSet(t),this.setOptions(t),this.ctxProp(t);var s=t.prop;s.preview=!!(s.preview!=null?s.preview:this.$handle.preview),s.props.formCreateInject=this.injectProp(t);var l=s.cache!==!1,f=s.preview;if(s.hidden){this.setCache(t,void 0,r);return}a=function(){for(var p=arguments.length,g=new Array(p),$=0;$<p;$++)g[$]=arguments[$];var S={rule:o,prop:s,preview:f,api:i.$handle.api,model:s.model||{},slotValue:g};g.length&&o.slotUpdate&&ue(function(){return o.slotUpdate(S)});var O={},M=t.loadChildrenPending();t.parser.renderChildren?O=t.parser.renderChildren(M,t):t.parser.loadChildren!==!1&&(O=i.renderChildren(M,t)),Object.keys(s.renderSlots||{}).forEach(function(N){O[N]=function(){for(var K=arguments.length,Z=new Array(K),G=0;G<K;G++)Z[G]=arguments[G];if(j.Function(s.renderSlots[N]))return ue(function(){var te;return(te=s.renderSlots)[N].apply(te,Z)});var le=i.parseSide(s.renderSlots[N],t);return i.renderRule(le)}});var q=i.getTypeSlot(t),U;return q?(S.children=O,U=q(S)):U=f?t.parser.preview(Bn(O),t):t.parser.render(Bn(O),t),U=i.renderSides(U,t),!(!t.input&&j.Undef(s.native))&&s.native!==!0&&(i.fc.targetFormDriver("updateWrap",t),U=i.$manager.makeWrap(t,U)),t.none&&(Array.isArray(U)?U=U.map(function(N){return!N||!N.__v_isVNode?N:i.none(N)}):U=i.none(U)),l&&i.setCache(t,function(){return i.stable(U)},r),U},this.setCache(t,a,r)}return function(){var c=i.getCache(t);if(c)return c.apply(void 0,arguments);if(i.cache[t.id])return;var p=i.renderCtx(t,t.parent);if(p)return p()}}catch(c){console.error(c);return}},none:function(t){if(t)return t.props.class=this.mergeClass(t.props.class,"fc-none"),t},mergeClass:function(t,r){if(Array.isArray(t))t.push(r);else return t?[t,r]:r;return t},stable:function(t){var r=this,i=Array.isArray(t)?t:[t];return i.forEach(function(o){o&&o.__v_isVNode&&o.children&&fe(o.children)==="object"&&(o.children.$stable=!0,r.stable(o.children))}),t},getModelField:function(t){return t.prop.modelField||t.parser.modelField||this.fc.modelFields[this.vNode.aliasMap[t.type]]||this.fc.modelFields[t.type]||this.fc.modelFields[t.originType]||"modelValue"},isFragment:function(t){return t.type==="fragment"||t.type==="template"},injectProp:function(t){var r=this,i=this.vm.setupState;i.ctxInject[t.id]||(i.ctxInject[t.id]={api:this.$handle.api,form:this.fc.create,subForm:function(s){r.$handle.addSubForm(t,s)},getSubForm:function(){return r.$handle.subForm[t.id]},slots:function(){return r.vm.setupState.top.slots},options:[],children:[],preview:!1,id:t.id,field:t.field,rule:t.rule,input:t.input,t:function(){var s;return(s=r.$handle.api).t.apply(s,arguments)},updateValue:function(s){r.$handle.onUpdateValue(t,s)}});var o=i.ctxInject[t.id];return ee(o,{preview:t.prop.preview,options:t.prop.options,children:t.loadChildrenPending()}),o},ctxProp:function(t){var r=this,i=t.ref,o=t.key,a=t.rule;this.$manager.mergeProp(t),t.parser.mergeProp(t);var s=[{ref:i,key:a.key||"".concat(o,"fc"),slot:void 0,on:{vnodeMounted:function(g){g.el.__rule__=t.rule,r.onMounted(t,g.el)},"fc.updateValue":function(g){r.$handle.onUpdateValue(t,g)},"fc.el":function(g){t.exportEl=g,g&&((g.$el||g).__rule__=t.rule)}}}];if(t.input){var l=this.tmpInput;this.vm.props.disabled===!0&&(t.prop.props.disabled=!0);var f=this.getModelField(t),c={callback:function(g){l&&l(t.field,g,t.rule),r.onInput(t,g)},modelField:f,value:this.$handle.getFormData(t)};s.push({on:W(ke({},"update:".concat(f),c.callback),t.prop.modelEmit?ke({},t.prop.modelEmit,function(){return r.onEmitInput(t)}):{}),props:ke({},f,c.value)}),t.prop.model=c}return pt(s,t.prop),t.prop},onMounted:function(t,r){t.el=this.vm.refs[t.ref]||r,t.parser.mounted(t),this.$handle.effect(t,"mounted"),this.$handle.targetHook(t,"mounted")},onInput:function(t,r){if(t.prop.modelEmit){this.$handle.onBaseInput(t,r);return}this.$handle.onInput(t,r)},onEmitInput:function(t){this.$handle.setValue(t,t.parser.toValue(t.modelValue,t),t.modelValue)},renderChildren:function(t,r){var i=this;if(!j.trueArray(t))return{};var o=en();return t.map(function(a){if(!!a){if(j.String(a))return o.setSlot(null,a);if(a.__fc__)return i.renderSlot(o,a.__fc__,r);a.type&&u.nextTick(function(){i.$handle.loadChildren(t,r),i.$handle.refresh()})}}),o.getSlots()},defaultRender:function(t,r){var i=t.prop;return i.component?typeof i.component=="string"?this.vNode.make(i.component,i,r):this.vNode.makeComponent(i.component,i,r):this.vNode[t.type]?this.vNode[t.type](i,r):this.vNode[t.originType]?this.vNode[t.originType](i,r):this.vNode.make(vi(i.type),i,r)},createChildrenVnodes:function(t,r,i){this.force=i!==!1,this.tmpInput=r;var o=this.renderChildren(t.rule.children,t);return this.force=!1,this.tmpInput=null,o},createRuleVnode:function(t,r,i){this.force=i!==!1,this.tmpInput=r;var o=en();return this.renderSlot(o,t,t.parent),this.force=!1,this.tmpInput=null,o.getSlots()},renderRule:function(t,r,i){var o=this;if(!!t){if(j.String(t))return t;var a;if(i)a=t.type;else if(a=t.is,t.type){a=Ye(t.type);var s=this.vNode.aliasMap[a];s&&(a=Ye(s))}if(!!a){var l=en();j.trueArray(t.children)&&t.children.forEach(function(c){c&&l.setSlot(c==null?void 0:c.slot,function(){return o.renderRule(c)})});var f=W({},t);return delete f.type,delete f.is,this.vNode.make(a,f,l.mergeBag(r).getSlots())}}}})}var ps=1;function Wn(n){ee(this,{$handle:n,fc:n.fc,vm:n.vm,$manager:n.$manager,vNode:new n.fc.CreateNode(n.vm),force:!1,tmpInput:null,id:ps++}),$i(this,{options:function(){return n.options},sort:function(){return n.sort}}),this.initCache(),this.initRender()}cs(Wn),hs(Wn);function ms(n){ee(n.prototype,{parseInjectEvent:function(t,r){var i=t.inject||this.options.injectEvent;return this.parseEventLst(t,r,i)},parseEventLst:function(t,r,i,o){var a=this;return Object.keys(r).forEach(function(s){var l=a.parseEvent(t,r[s],i,o);l&&(r[s]=l)}),r},parseEvent:function(t,r,i,o){if(j.Function(r)&&(i!==!1&&!j.Undef(i)||r.__inject))return this.inject(t,r,i);if(!o&&Array.isArray(r)&&r[0]&&(j.String(r[0])||j.Function(r[0])))return this.parseEventLst(t,r,i,!0);if(j.String(r)){var a=Ke(r);if(a&&r!==a)return a.__inject?this.parseEvent(t,a,i,!0):a}},parseEmit:function(t){var r=this,i={},o=t.rule,a=o.emitPrefix,s=o.field,l=o.name,f=o.inject,c=o.emit||[];return j.trueArray(c)&&c.forEach(function(p){if(!!p){var g,$=a||s||l;if(j.Object(p)&&(g=p.inject,p=p.name,$=p.prefix||$),$){var S=Tt("".concat($,"-").concat(p)),O=function(){var U,N,K;r.vm.emitsOptions&&(r.vm.emitsOptions[S]=null);for(var Z=arguments.length,G=new Array(Z),le=0;le<Z;le++)G[le]=arguments[le];(U=r.vm).emit.apply(U,[S].concat(G)),(N=r.vm).emit.apply(N,["emit-event",S].concat(G)),(K=r.bus).$emit.apply(K,[S].concat(G))};if(O.__emit=!0,!g&&f===!1)i[p]=O;else{var M=g||f||r.options.injectEvent;i[p]=j.Undef(M)?O:r.inject(o,O,M)}}}}),t.computed.on=i,i},getInjectData:function(t,r){var i=t.__fc__&&t.__fc__.$api,o=t.__fc__&&t.__fc__.$handle.vm||this.vm,a=o.props,s=a.option,l=a.rule;return{$f:i||this.api,api:i||this.api,rule:l,self:t.__origin__,option:s,inject:r}},inject:function(t,r,i){if(r.__origin){if(this.watching&&!this.loading)return r;r=r.__origin}var o=this,a=function(){for(var l=o.getInjectData(t,i),f=arguments.length,c=new Array(f),p=0;p<f;p++)c[p]=arguments[p];return l.args=[].concat(c),c.unshift(l),r.apply(this,c)};return a.__origin=r,a.__json=r.__json,a},loadStrVar:function(t,r,i){var o=this;if(t&&typeof t=="string"&&t.indexOf("{{")>-1&&t.indexOf("}}")>-1){var a=t,s=rs(t),l;if(s.forEach(function(f){var c=f.split("||"),p=c[0].trim();if(p){var g=(c[1]||"").trim(),$,S=!1;if(i&&p.indexOf("$form.")===0){var O=p.split(".");O.shift(),ye(i.value,O[0])&&(S=!0,$=r?r({id:"$form."+O[0]+"_"+i.rule.__fc__.id,getValue:function(){return Re(i.value,O)}}):Re(i.value,O))}S||($=r?r(p,g):o.fc.getLoadData(p,g)),l=$,t=t.replaceAll("{{".concat(f,"}}"),$==null?"":$)}}),s.length===1&&a==="{{".concat(s[0],"}}"))return l}return t},loadFetchVar:function(t,r,i){var o=this,a;i&&i.__fc__&&(a=i.__fc__.getParentGroup());var s=function(f){return o.loadStrVar(f,r,a?{rule:i,value:o.subRuleData[a.id]||{}}:null)};return t.action=s(t.action||""),["headers","data","query"].forEach(function(l){if(t[l]){var f={};Object.keys(t[l]).forEach(function(c){f[s(c)]=s(t[l][c])}),t[l]=f}}),t}})}var Di=["hook:updated","hook:mounted"];function gs(n){ee(n.prototype,{usePage:function(){var t=this,r=this.options.page;if(!!r){var i=25,o=vs(this.rules);j.Object(r)&&(r.first&&(i=parseInt(r.first,10)||i),r.limit&&(o=parseInt(r.limit,10)||o)),ee(this,{first:i,limit:o,pageEnd:this.rules.length<=i}),this.bus.$on("page-end",function(){return t.vm.emit("page-end",t.api)}),this.pageLoad()}},pageLoad:function(){var t=this,r=function i(){t.pageEnd?(t.bus.$off(Di,i),t.bus.$emit("page-end")):(t.first+=t.limit,t.pageEnd=t.rules.length<=t.first,t.loadRule(),t.refresh())};this.bus.$on(Di,r)}})}function vs(n){return n.length<31?31:Math.ceil(n.length/3)}function ys(n){ee(n.prototype,{clearNextTick:function(){this.nextTick&&clearTimeout(this.nextTick),this.nextTick=null},bindNextTick:function(t){var r=this;this.clearNextTick(),this.nextTick=setTimeout(function(){t(),r.nextTick=null},10)},render:function(){return++this.loadedId,this.vm.setupState.unique>0?this.$render.render():(this.vm.setupState.unique=1,[])}})}function _s(n){Object.defineProperties(n.origin,{__fc__:Gn(u.markRaw(n),!0)}),n.rule!==n.origin&&Object.defineProperties(n.rule,{__fc__:Gn(u.markRaw(n),!0)})}function Pi(n,e,t){var r=on(),i=!!e.field;ee(this,{id:r,ref:r,wrapRef:r+"fi",rule:e,origin:e.__origin__||e,name:e.name,pending:{},none:!1,watch:[],linkOn:[],root:[],ctrlRule:[],children:[],parent:null,group:e.subRule?this:null,cacheConfig:null,prop:W({},e),computed:{},payload:{},refRule:{},input:i,el:void 0,exportEl:void 0,defaultValue:i?We(t):void 0,field:e.field||void 0}),this.updateKey(),_s(this),this.update(n,!0)}ee(Pi.prototype,{getParentGroup:function(){for(var e=this.parent;e;){if(e.group)return e;e=e.parent}},loadChildrenPending:function(){var e=this,t=this.rule.children||[];return Array.isArray(t)?t:this.loadPending({key:"children",origin:t,def:[],onLoad:function(i){e.$handle&&e.$handle.loadChildren(i,e)},onUpdate:function(i,o){e.$handle&&(i===o?e.$handle.loadChildren(i,e):e.$handle.updateChildren(e,i,o))},onReload:function(i){e.$handle?e.$handle.updateChildren(e,[],i):delete e.pending.children}})},loadPending:function(e){var t=this,r=e.key,i=e.origin,o=e.def,a=e.onLoad,s=e.onReload,l=e.onUpdate;if(this.pending[r]&&this.pending[r].origin===i)return this.getPending(r,o);delete this.pending[r];var f=i;if(j.Function(i)){var c=ue(function(){return i({rule:t.rule,api:t.$api,update:function(g){var $=g||o,S=t.getPending(r,o);t.setPending(r,i,$),l&&l($,S)},reload:function(){var g=t.getPending(r,o);delete t.pending[r],s&&s(g),t.$api&&t.$api.sync(t.rule)}})});c&&j.Function(c.then)?(c.then(function(p){var g=p||o;t.setPending(r,i,g),a&&a(g),t.$api&&t.$api.sync(t.rule)}).catch(function(p){console.error(p)}),f=o,this.setPending(r,i,f)):(f=c||o,this.setPending(r,i,f),a&&a(f))}return f},getPending:function(e,t){return this.pending[e]&&this.pending[e].value||t},setPending:function(e,t,r){this.pending[e]={origin:t,value:u.reactive(r)}},effectData:function(e){return this.payload[e]||(this.payload[e]={}),this.payload[e]},clearEffectData:function(e){e===void 0?this.payload={}:delete this.payload[e]},updateKey:function(e){this.key=on(),e&&this.parent&&this.parent.updateKey(e)},updateType:function(){this.originType=this.rule.type,this.type=Ye(this.rule.type),this.trueType=this.$handle.getType(this.originType)},setParser:function(e){this.parser=e,e.init(this)},initProp:function(){var e=this,t,r,i=W({},this.rule);delete i.children,delete i.validate,this.prop=nt({},[i].concat(se(Object.keys(this.payload).map(function(o){return e.payload[o]})),[this.computed])),this.prop.validate=[].concat(se(((t=this.refRule)===null||t===void 0||(r=t.__$validate)===null||r===void 0?void 0:r.value)||[]),se(this.prop.validate||[]))},initNone:function(){this.none=!(j.Undef(this.prop.display)||!!this.prop.display)},injectValidate:function(){return this.prop.validate},check:function(e){return this.vm===e.vm},unwatch:function(){this.watch.forEach(function(e){return e()}),this.watch=[],this.refRule={}},unlink:function(){this.linkOn.forEach(function(e){return e()}),this.linkOn=[]},link:function(){this.unlink(),this.$handle.appendLink(this)},watchTo:function(){this.$handle.watchCtx(this)},delete:function(){this.unwatch(),this.unlink(),this.rmCtrl(),this.parent&&this.parent.children.splice(this.parent.children.indexOf(this)>>>0,1),ee(this,{deleted:!0,computed:{},parent:null,children:[],cacheConfig:null,none:!1})},rmCtrl:function(){this.ctrlRule.forEach(function(e){return e.__fc__&&e.__fc__.rm()}),this.ctrlRule=[]},rm:function(){var e=this,t=function(){var i=e.root.indexOf(e.origin);i>-1&&(e.root.splice(i,1),e.$handle&&e.$handle.refresh())};if(this.deleted){t();return}this.$handle.noWatch(function(){e.$handle.deferSyncValue(function(){e.rmCtrl(),t(),e.$handle.rmCtx(e),ee(e,{root:[]})},e.input)})},update:function(e,t){ee(this,{deleted:!1,$handle:e,$render:e.$render,$api:e.api,vm:e.vm,vNode:e.$render.vNode,updated:!1,cacheValue:this.rule.value}),!t&&this.unwatch(),this.watchTo(),this.link(),this.updateType()}});function bs(n){ee(n.prototype,{nextRefresh:function(t){var r=this,i=this.loadedId;u.nextTick(function(){i===r.loadedId&&(t?t():r.refresh())})},parseRule:function(t){var r=this,i=wi(t);return Object.defineProperties(i,{__origin__:Gn(t,!0)}),ws(i),this.appendValue(i),[i,i.prefix,i.suffix].forEach(function(o){!o||r.loadFn(o,i)}),this.loadCtrl(i),i.update&&(i.update=Ke(i.update)),i},loadFn:function(t,r){var i=this;["on","props","deep"].forEach(function(o){t[o]&&i.parseInjectEvent(r,t[o])})},loadCtrl:function(t){t.control&&t.control.forEach(function(r){r.handle&&(r.handle=Ke(r.handle))})},syncProp:function(t){var r=this,i=t.rule;j.trueArray(i.sync)&&pt([{on:i.sync.reduce(function(o,a){return o[fe(a)==="object"&&a.event||"update:".concat(a)]=function(s){i.props[fe(a)==="object"&&a.prop||a]=s,r.vm.emit("sync",a,s,i,r.fapi)},o},{})}],t.computed)},loadRule:function(){var t=this;this.cycleLoad=!1,this.loading=!0,this.pageEnd&&this.bus.$emit("load-start"),this.deferSyncValue(function(){if(t._loadRule(t.rules),t.loading=!1,t.cycleLoad&&t.pageEnd)return t.loadRule();t.syncForm(),t.pageEnd&&t.bus.$emit("load-end"),t.vm.setupState.renderRule()})},loadChildren:function(t,r){if(this.cycleLoad=!1,this.loading=!0,this.bus.$emit("load-start"),this._loadRule(t,r),this.loading=!1,this.cycleLoad)return this.loadRule();this.syncForm(),this.bus.$emit("load-end"),this.$render.clearCache(r)},_loadRule:function(t,r){var i=this,o=function l(f){var c=t[f-1];if(!c||!c.__fc__)return f>0?l(f-1):-1;var p=i.sort.indexOf(c.__fc__.id);return p>-1?p:l(f-1)},a=function(f,c){j.trueArray(f)&&i._loadRule(f,c)},s=t.map(function(l,f){if(!(r&&!j.Object(l))&&!(!i.pageEnd&&!r&&f>=i.first)){if(l.__fc__&&l.__fc__.root===t&&i.ctxs[l.__fc__.id])return a(l.__fc__.loadChildrenPending(),l.__fc__),l.__fc__;var c=wi(l),p=function(){return!!(c.field&&i.fieldCtx[c.field]&&i.fieldCtx[c.field][0]!==l.__fc__)};i.fc.targetFormDriver("loadRule",{rule:c,api:i.api},i.fc),i.ruleEffect(c,"init",{repeat:p()}),p()&&i.vm.emit("repeat-field",l,i.api);var g,$=!1,S=!!l.__fc__,O=c.value;if(S){if(g=l.__fc__,O=g.defaultValue,g.deleted){if(Vi(g))return;g.update(i)}else if(!g.check(i)){if(Vi(g))return;t[f]=l=l._clone?l._clone():yi(Mt(l)),g=null,$=!0}}if(g)g.originType!==g.rule.type&&g.updateType(),i.bindParser(g),i.appendValue(g.rule),g.parent&&g.parent!==r&&i.rmSubRuleData(g);else{var M=i.parseRule(l);g=new Pi(i,M,O),i.bindParser(g)}i.parseEmit(g),i.syncProp(g),g.parent=r||null,g.root=t,i.setCtx(g),!$&&!S&&(i.effect(g,"load"),i.targetHook(g,"load")),i.effect(g,"created");var q=g.loadChildrenPending();if(g.parser.loadChildren===!1||a(q,g),!r){var U=o(f);U>-1||!f?i.sort.splice(U+1,0,g.id):i.sort.push(g.id)}var N=g.rule;return g.updated||(g.updated=!0,j.Function(N.update)&&i.bus.$once("load-end",function(){i.refreshUpdate(g,N.value,"init")}),i.effect(g,"loaded")),i.refreshControl(g)&&(i.cycleLoad=!0),g}}).filter(function(l){return!!l});r&&(r.children=s)},refreshControl:function(t){return t.input&&t.rule.control&&this.useCtrl(t)},useCtrl:function(t){var r=this,i=$s(t),o=[],a=this.api;if(!i.length)return!1;for(var s=function($){var S=i[$],O=S.handle||function(q){return(mt[S.condition||"=="]||mt["=="])(q,S.value)};if(!j.trueArray(S.rule))return"continue";var M=W(W({},S),{},{valid:ue(function(){return O(t.rule.value,a)}),ctrl:Ss(t,S.rule),isHidden:j.String(S.rule[0])});if(M.valid&&M.ctrl||!M.valid&&!M.ctrl&&!M.isHidden)return"continue";o.push(M)},l=0;l<i.length;l++)var f=s(l);if(!o.length)return!1;var c=[],p=!1;return this.deferSyncValue(function(){o.reverse().forEach(function(g){var $=g.isHidden,S=g.valid,O=g.rule,M=g.prepend,q=g.append,U=g.child,N=g.ctrl,K=g.method;if($){S?t.ctrlRule.push({__ctrl:!0,children:O,valid:S}):N&&t.ctrlRule.splice(t.ctrlRule.indexOf(N)>>>0,1),c[S?"push":"unshift"](function(){K==="disabled"||K==="enabled"?r.api.disabled(!S,O):K==="display"||K==="show"?r.api.display(S,O):K==="required"?(O.forEach(function(le){r.api.setEffect(le,"required",S)}),S||r.api.clearValidateState(O)):r.api.hidden(!S,O)});return}if(S){p=!0;var Z={type:"fragment",native:!0,__ctrl:!0,children:O};t.ctrlRule.push(Z),r.bus.$once("load-start",function(){M?a.prepend(Z,M,U):q||U?a.append(Z,q||t.id,U):t.root.splice(t.root.indexOf(t.origin)+1,0,Z)})}else{t.ctrlRule.splice(t.ctrlRule.indexOf(N),1);var G=rt(N);G&&G.rm()}})}),c.length&&(this.loading?c.length&&this.bus.$once("load-end",function(){c.forEach(function(g){return g()})}):c.length&&u.nextTick(function(){c.forEach(function(g){return g()})})),this.vm.emit("control",t.origin,this.api),this.effect(t,"control"),p},reloadRule:function(t){return this._reloadRule(t)},_reloadRule:function(t){var r=this;t||(t=this.rules);var i=W({},this.ctxs);this.clearNextTick(),this.initData(t),this.fc.rules=t,this.deferSyncValue(function(){r.bus.$once("load-end",function(){Object.keys(i).filter(function(o){return r.ctxs[o]===void 0}).forEach(function(o){return r.rmCtx(i[o])}),r.$render.clearCacheAll()}),r.reloading=!0,r.loadRule(),r.reloading=!1,r.refresh(),r.bus.$emit("reloading",r.api)}),this.bus.$off("next-tick",this.nextReload),this.bus.$once("next-tick",this.nextReload),this.bus.$emit("update",this.api)},refresh:function(){this.vm.setupState.refresh()}})}function ws(n){var e=Ei();return Object.keys(e).forEach(function(t){ye(n,t)||(n[t]=e[t])}),n}function $s(n){var e=n.rule.control||[];return j.Object(e)?[e]:e}function Ss(n,e){for(var t=0;t<n.ctrlRule.length;t++){var r=n.ctrlRule[t];if(r.children===e)return r}}function Vi(n){return!!n.rule.__ctrl}function Os(n){ee(n.prototype,{setValue:function(t,r,i,o){var a=this;t.deleted||(t.rule.value=r,this.changeStatus=!0,this.nextRefresh(),this.$render.clearCache(t),this.setFormData(t,i),this.syncValue(),this.valueChange(t,r),this.vm.emit("change",t.field,r,t.origin,this.api,o||!1),this.effect(t,"value"),this.targetHook(t,"value",{value:r}),this.emitEvent("change",t.field,r,{rule:t.origin,api:this.api,setFlag:o||!1}),o&&u.nextTick(function(){u.nextTick(function(){u.nextTick(function(){a.api.clearValidateState(t.id)})})}))},onInput:function(t,r){var i;t.input&&(this.isQuote(t,i=t.parser.toValue(r,t))||this.isChange(t,r))&&this.setValue(t,i,r)},onUpdateValue:function(t,r){var i=this;this.deferSyncValue(function(){var o=t.getParentGroup(),a=o?i.subRuleData[o.id]:null,s={};Object.keys(r||{}).forEach(function(l){a&&ye(a,l)?s[l]=r[l]:ye(i.api.form,l)?i.api.form[l]=r[l]:i.api.top!==i.api&&ye(i.api.top.form,l)&&(i.api.top.form[l]=r[l])}),Object.keys(s).length&&i.api.setChildrenFormData(o.rule,s)})},onBaseInput:function(t,r){this.setFormData(t,r),t.modelValue=r,this.nextRefresh(),this.$render.clearCache(t)},setFormData:function(t,r){t.modelValue=r;var i=t.getParentGroup();i&&(this.subRuleData[i.id]||(this.subRuleData[i.id]={}),this.subRuleData[i.id][t.field]=t.rule.value),Ne(this.formData,t.id,r)},rmSubRuleData:function(t){var r=t.getParentGroup();r&&this.subRuleData[r.id]&&delete this.subRuleData[r.id][t.field]},getFormData:function(t){return this.formData[t.id]},syncForm:function(){var t=this,r=u.reactive({}),i=this.fields(),o=[];this.options.appendValue!==!1&&Object.keys(this.appendData).reduce(function(a,s){return i.indexOf(s)===-1&&(a[s]=u.toRef(t.appendData,s)),a},r),i.reduce(function(a,s){var l=(t.fieldCtx[s]||[]).filter(function(f){return!t.isIgnore(f.rule)})[0]||t.fieldCtx[s][0];return t.isIgnore(l.rule)&&o.push(s),a[s]=u.toRef(l.rule,"value"),a},r),this.form=r,this.ignoreFields=o,this.syncValue()},isIgnore:function(t){return t.ignore===!0||t.ignore==="hidden"&&t.hidden||this.options.ignoreHiddenFields&&t.hidden},appendValue:function(t){(!t.field||!ye(this.appendData,t.field))&&!this.options.forceCoverValue||(t.value=this.appendData[t.field],delete this.appendData[t.field])},addSubForm:function(t,r){this.subForm[t.id]=r},deferSyncValue:function(t,r){this.deferSyncFn||(this.deferSyncFn=t),this.deferSyncFn.sync||(this.deferSyncFn.sync=r),ue(t),this.deferSyncFn===t&&(this.deferSyncFn=null,t.sync&&this.syncForm())},syncValue:function(){var t=this;if(this.deferSyncFn)return this.deferSyncFn.sync=!0;var r={};Object.keys(this.form).forEach(function(i){t.ignoreFields.indexOf(i)===-1&&(r[i]=t.form[i])}),this.vm.setupState.updateValue(r)},isChange:function(t,r){return JSON.stringify(this.getFormData(t),Ti)!==JSON.stringify(r,Ti)},isQuote:function(t,r){return(r instanceof Function||j.Object(r)||Array.isArray(r))&&r===t.rule.value},refreshUpdate:function(t,r,i,o){var a=this;if(j.Function(t.rule.update)){var s=ue(function(){return t.rule.update(r,t.origin,a.api,{origin:i||"change",linkField:o})});if(s===void 0)return;t.rule.hidden=s===!0}},valueChange:function(t,r){this.refreshRule(t,r),this.bus.$emit("change-"+t.field,r)},refreshRule:function(t,r,i,o){this.refreshControl(t)&&(this.$render.clearCacheAll(),this.loadRule(),this.bus.$emit("update",this.api),this.refresh()),this.refreshUpdate(t,r,i,o)},appendLink:function(t){var r=this,i=t.rule.link;j.trueArray(i)&&i.forEach(function(o){var a=function(){return r.refreshRule(t,t.rule.value,"link",o)};r.bus.$on("change-"+o,a),t.linkOn.push(function(){return r.bus.$off("change-"+o,a)})})},fields:function(){return Object.keys(this.fieldCtx)}})}function Ti(n,e){return typeof e=="function"?""+e:e}var an={init:function(e){},toFormValue:function(e,t){return e},toValue:function(e,t){return e},mounted:function(e){},render:function(e,t){return t.$handle.fc.renderDriver&&t.$handle.fc.renderDriver.defaultRender?t.$handle.fc.renderDriver.defaultRender(t,e):t.$render.defaultRender(t,e)},preview:function(e,t){return t.$handle.fc.renderDriver&&t.$handle.fc.renderDriver.defaultPreview?t.$handle.fc.renderDriver.defaultPreview(t,e):this.render(e,t)},mergeProp:function(e){}},Cs=["field","value","vm","template","name","config","control","inject","sync","payload","optionsTo","update","slotUpdate","computed","component","cache"],Mi=Symbol("oldValue");function Es(n){ee(n.prototype,{getCtx:function(t){return this.getFieldCtx(t)||this.getNameCtx(t)[0]||this.ctxs[t]},getCtxs:function(t){return this.fieldCtx[t]||this.nameCtx[t]||(this.ctxs[t]?[this.ctxs[t]]:[])},setIdCtx:function(t,r,i){var o="".concat(i,"Ctx");this[o][r]?this[o][r].push(t):this[o][r]=[t]},rmIdCtx:function(t,r,i){var o="".concat(i,"Ctx"),a=this[o][r];if(!a)return!1;var s=a.splice(a.indexOf(t)>>>0,1).length>0;return a.length||delete this[o][r],s},getFieldCtx:function(t){return(this.fieldCtx[t]||[])[0]},getNameCtx:function(t){return this.nameCtx[t]||[]},setCtx:function(t){var r=t.id,i=t.field,o=t.name,a=t.rule;this.ctxs[r]=t,o&&this.setIdCtx(t,o,"name"),t.input&&(this.setIdCtx(t,i,"field"),this.setFormData(t,t.parser.toFormValue(a.value,t)),this.isMounted&&!this.reloading&&this.vm.emit("change",t.field,a.value,t.origin,this.api))},getParser:function(t){var r=this.fc.parsers,i=this.fc.renderDriver;if(i){var o=i.parsers||{},a=o[t.originType]||o[Ye(t.type)]||o[t.trueType];if(a)return a}return r[t.originType]||r[Ye(t.type)]||r[t.trueType]||an},bindParser:function(t){t.setParser(this.getParser(t))},getType:function(t){var r=this.fc.CreateNode.aliasMap,i=r[t]||r[Ye(t)]||t;return Ye(i)},noWatch:function(t){this.noWatchFn||(this.noWatchFn=t),ue(t),this.noWatchFn===t&&(this.noWatchFn=null)},watchCtx:function(t){var r=this,i=mi();if(i.filter(function(a){return a[0]!=="_"&&a[0]!=="$"&&Cs.indexOf(a)===-1}).forEach(function(a){var s=u.toRef(t.rule,a),l=a==="children";t.refRule[a]=s,t.watch.push(u.watch(l?function(){return j.Function(s.value)?s.value:se(s.value||[])}:function(){return s.value},function(f,c){var p=s.value;if(!r.isBreakWatch()){if(l&&t.parser.loadChildren===!1){r.$render.clearCache(t),r.nextRefresh();return}if(r.watching=!0,u.nextTick(function(){r.targetHook(t,"watch",{key:a,oldValue:c,newValue:p})}),a==="hidden"&&Boolean(p)!==Boolean(c)&&(r.$render.clearCacheAll(),u.nextTick(function(){r.targetHook(t,"hidden",{value:p})})),a==="ignore"&&t.input||a==="hidden"&&t.input&&(t.rule.ignore==="hidden"||r.options.ignoreHiddenFields))r.syncForm();else if(a==="link"){t.link();return}else["props","on","deep"].indexOf(a)>-1?(r.parseInjectEvent(t.rule,p||{}),a==="props"&&t.input&&r.setFormData(t,t.parser.toFormValue(t.rule.value,t))):a==="emit"?r.parseEmit(t):["prefix","suffix"].indexOf(a)>-1?p&&r.loadFn(p,t.rule):a==="type"?(t.updateType(),r.bindParser(t)):l&&(j.Function(c)&&(c=t.getPending("children",[])),j.Function(p)&&(p=t.loadChildrenPending()),r.updateChildren(t,p,c));r.$render.clearCache(t),r.refresh(),r.watching=!1}},{deep:!l,sync:l}))}),t.refRule.__$title=u.computed(function(){var a=(fe(t.rule.title)==="object"?t.rule.title.title:t.rule.title)||"";if(a){var s=a.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);s&&(a=r.api.t(s[1]))}return a}),t.refRule.__$info=u.computed(function(){var a=(fe(t.rule.info)==="object"?t.rule.info.info:t.rule.info)||"";if(a){var s=a.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);s&&(a=r.api.t(s[1]))}return a}),t.refRule.__$validate=u.computed(function(){var a=function(l){var f=l.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);if(f){var c,p;return r.api.t(f[1],{title:(c=t.refRule)===null||c===void 0||(p=c.__$title)===null||p===void 0?void 0:p.value})}return l};return dt(t.rule.validate).map(function(s){var l=W({},s);if(l.message&&(l.message=a(l.message)),j.Function(l.validator)){var f=t;l.validator=function(){for(var p,g=arguments.length,$=new Array(g),S=0;S<g;S++)$[S]=arguments[S];return(p=s.validator).call.apply(p,[{that:this,id:f.id,field:f.field,rule:f.rule,api:f.$handle.api}].concat($))}}if(l.adapter){if(fe(l.error)==="object"){var c=W({},l.error);Object.keys(c).forEach(function(p){c[p]=a(c[p])}),l.error=c}return r.adapterValidate(l,t)}return l})}),t.input){var o=u.toRef(t.rule,"value");t.watch.push(u.watch(function(){return o.value},function(){var a=t.parser.toFormValue(o.value,t);r.isChange(t,a)&&r.setValue(t,o.value,a,!0)}))}this.bus.$once("load-end",function(){var a=t.rule.computed;!a||(fe(a)!=="object"&&(a={value:a}),Object.keys(a).forEach(function(s){var l=void 0,f=u.computed(function(){var p=a[s];if(!!p){var g=r.compute(t,p);return p.linkage&&g===Mi?l:g}}),c=function(g){s==="value"?r.onInput(t,g):s[0]==="$"?r.api.setEffect(t.id,s,g):lt(t.rule,s,g)};(s==="value"?[void 0,null,""].indexOf(t.rule.value)>-1:f.value!==Re(t.rule,s))&&c(f.value),t.watch.push(u.watch(f,function(p){l=p,setTimeout(function(){c(p)})}))}))}),this.watchEffect(t)},adapterValidate:function(t,r){var i=this,o=function(s,l){var f=t.beforeValidate&&ue(function(){return t.beforeValidate({value:s,api:i.api,validate:t,rule:r.rule})});if(f===!1)l();else{var c=i.validator(s,t);if(c){var g="";fe(t.error)==="object"&&(g=t.error[c]||t.error.default),!g&&typeof t.message=="string"&&(g=t.message),g||(g=i.getValidateMessage(r,{key:c,rule:t[c]})),l(g)}else if(t.validator){var p=t.validator&&ue(function(){return t.validator(s,l)});p&&j.Function(p.then)&&p.then(function(){return l()}).catch(function($){return l($)})}else l()}};return this.$manager.adapterValidate({required:t.required,message:t.message,target:t.trigger},o)},getValidateMessage:function(t,r){var i,o,a,s=Array.isArray(r.rule)?r.rule.join(","):""+r.rule;return this.api.t(r.key==="required"?r.key:"validate."+r.key,(a={},ke(a,r.key,s),ke(a,"title",(i=t.refRule)===null||i===void 0||(o=i.__$title)===null||o===void 0?void 0:o.value),a))},validator:function(t,r){var i=j.empty(t);if(i)return r.required?"required":void 0;for(var o=function(){var c=ya(s[a],2),p=c[0],g=c[1];switch(p){case"len":case"maxLen":case"minLen":var $=function(Z){return p==="len"?Z===g:p==="maxLen"?Z<=g:Z>=g};if(Array.isArray(t)){if(!$(t.length))return{v:p}}else{if(fe(t)==="object")return{v:p};if(!$((""+t).length))return{v:p}}break;case"pattern":var S=typeof g=="string"?new RegExp(g):g;if(!S.test(""+t))return{v:p};break;case"uppercase":if(g&&(typeof t!="string"||!/^[A-Z]*$/.test(t)))return{v:p};break;case"lowercase":if(g&&(typeof t!="string"||!/^[a-z]*$/.test(t)))return{v:p};break;case"min":case"max":case"positive":case"negative":case"integer":case"number":var O=Number(t);if(Number.isNaN(O))return{v:p};if(p==="min"&&O<g)return{v:p};if(p==="max"&&O>g)return{v:p};if(p==="positive"&&O<=0)return{v:p};if(p==="negative"&&O>=0)return{v:p};if(p==="integer"&&!Number.isInteger(O))return{v:p};break;case"equal":if(t!==g)return{v:p};break;case"enum":if(Array.isArray(g)&&!g.includes(t))return{v:p};break;case"hasKeys":if(fe(t)!=="object"||Array.isArray(g)&&g.some(function(K){return!(K in t)}))return{v:p};break;case"email":var M=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(!M.test(""+t))return{v:p};break;case"url":var q=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i");if(!q.test(""+t))return{v:p};break;case"ip":var U=/^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/;if(!U.test(""+t))return{v:p};break;case"phone":var N=/^(?:(?:\+|00)86)?1[3-9]\d{9}$/;if(!N.test(""+t))return{v:p};break}},a=0,s=Object.entries(r);a<s.length;a++){var l=o();if(fe(l)==="object")return l.v}},compute:function(t,r){var i=this,o;if(fe(r)==="object"){var a=t.getParentGroup(),s=function c(p){if(p=Array.isArray(p)?{mode:"AND",group:p}:p,!j.trueArray(p.group))return!0;for(var g=p.mode==="OR",$=!0,S=function(U){var N=p.group[U],K=void 0,Z=null;if(N.variable)Z=JSON.stringify(i.fc.getLoadData(N.variable)||"");else if(N.field)Z=Ci(N.field||"");else if(!N.mode)return{v:!0};var G=N.compare;if(G&&(G=Ci(G||"")),N.mode?K=c(N):mt[N.condition]?j.Function(N.handler)?K=ue(function(){return N.handler(i.api,t.rule)}):K=ue(function(){return new Function("$condition","$val","$form","$scope","$group","$rule","with($form){with($scope){with(this){with($group){ return $condition['".concat(N.condition,"'](").concat(Z,", ").concat(G||"$val","); }}}}")).call(i.api.form,mt,N.value,i.api.top.form,i.api.top===i.api.scope?{}:i.api.scope.form,a?i.subRuleData[a.id]||{}:{},t.rule)}):K=!1,g&&K)return{v:!0};g||($=$&&K)},O=0;O<p.group.length;O++){var M=S(O);if(fe(M)==="object")return M.v}return g?!1:$},l=s(r);return l=r.invert===!0?!l:l,r.linkage?l?ue(function(){return i.computeValue(r.linkage,t,a)},void 0):Mi:l}else if(j.Function(r))o=function(){return r(i.api.form,i.api)};else{var f=t.getParentGroup();o=function(){return i.computeValue(r,t,f)}}return ue(o,void 0)},computeValue:function(t,r,i){var o=this,a=this,s=Object.keys(this.fc.formulas).reduce(function(l,f){return l[f]=function(){for(var c,p=arguments.length,g=new Array(p),$=0;$<p;$++)g[$]=arguments[$];return(c=a.fc.formulas[f]).call.apply(c,[{that:this,rule:r.rule,api:a.api,fc:a.fc}].concat(g))},l},{});return ue(function(){return new Function("$formulas","$form","$scope","$group","$rule","$api","with($form){with($scope){with(this){with($group){with($formulas){ return ".concat(t," }}}}}")).call(o.api.form,s,o.api.top.form,o.api.top===o.api.scope?{}:o.api.scope.form,i?o.subRuleData[i.id]||{}:{},r.rule,o.api)},void 0)},updateChildren:function(t,r,i){var o=this;this.deferSyncValue(function(){i&&i.forEach(function(a){(r||[]).indexOf(a)===-1&&a&&!j.String(a)&&a.__fc__&&a.__fc__.parent===t&&o.rmCtx(a.__fc__)}),j.trueArray(r)&&(o.loadChildren(r,t),o.bus.$emit("update",o.api))})},rmSub:function(t){var r=this;j.trueArray(t)&&t.forEach(function(i){i&&i.__fc__&&r.rmCtx(i.__fc__)})},rmCtx:function(t){var r=this;if(!t.deleted){var i=t.id,o=t.field,a=t.input,s=t.name;ht(this.ctxs,i),ht(this.formData,i),ht(this.subForm,i),ht(this.vm.setupState.ctxInject,i);var l=t.getParentGroup();l&&this.subRuleData[l.id]&&ht(this.subRuleData[l.id],o),t.group&&ht(this.subRuleData,i),a&&this.rmIdCtx(t,o,"field"),s&&this.rmIdCtx(t,s,"name"),a&&!ye(this.fieldCtx,o)&&ht(this.form,o),this.deferSyncValue(function(){if(!r.reloading){if(t.parser.loadChildren!==!1){var c=t.getPending("children",t.rule.children);j.trueArray(c)&&c.forEach(function(p){return p.__fc__&&r.rmCtx(p.__fc__)})}t.root===r.rules&&r.vm.setupState.renderRule()}},a);var f=this.sort.indexOf(i);return f>-1&&this.sort.splice(f,1),this.$render.clearCache(t),t.delete(),this.effect(t,"deleted"),this.targetHook(t,"deleted"),a&&!this.fieldCtx[o]&&this.vm.emit("remove-field",o,t.rule,this.api),t.rule.__ctrl||this.vm.emit("remove-rule",t.rule,this.api),t}}})}function ks(n){ee(n.prototype,{mounted:function(){var t=this,r=function(){t.isMounted=!0,t.lifecycle("mounted")};this.pageEnd?r():this.bus.$once("page-end",r)},lifecycle:function(t){this.fc.targetFormDriver(t,this.api,this.fc),this.vm.emit(t,this.api),this.emitEvent(t,this.api)},emitEvent:function(t){for(var r,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];var s=this.options[t]||this.options[Ye("on-"+t)];if(s){var l=Ke(s);j.Function(l)&&ue(function(){return l.apply(void 0,o)})}(r=this.bus).$emit.apply(r,[t].concat(o))},targetHook:function(t,r,i){var o,a,s=this,l=(o=t.prop)===null||o===void 0||(a=o.hook)===null||a===void 0?void 0:a[r];l&&(l=Array.isArray(l)?l:[l],l.forEach(function(f){ue(function(){return f(W(W({},i||{}),{},{self:t.rule,rule:t.rule,$f:s.api,api:s.api,option:s.vm.props.option}))})}))}})}function xs(n){ee(n.prototype,{useProvider:function(){var t=this,r=this.fc.providers;Object.keys(r).forEach(function(i){var o=r[i];j.Function(o)&&(o=o(t.fc)),o._c=Rs(o),t.onEffect(o),t.providers[i]=o})},onEffect:function(t){var r=this,i=[];(t._c||["*"]).forEach(function(o){var a=o==="*"?"*":r.getType(o);i.indexOf(a)>-1||(i.push(a),r.bus.$on("p:".concat(t.name,":").concat(a,":").concat(t.input?1:0),function(s,l){t[s]&&t[s].apply(t,se(l))}))}),t._used=i},watchEffect:function(t){var r=this,i={required:function(){var a,s;return(ye(t.rule,"$required")?t.rule.$required:(a=t.rule)===null||a===void 0||(s=a.effect)===null||s===void 0?void 0:s.required)||!1}};Object.keys(t.rule.effect||{}).forEach(function(o){i[o]=function(){return t.rule.effect[o]}}),Object.keys(t.rule).forEach(function(o){o[0]==="$"&&(i[o.substr(1)]=function(){return t.rule[o]})}),Object.keys(i).forEach(function(o){t.watch.push(u.watch(i[o],function(a){r.effect(t,"watch",ke({},o,a))},{deep:!0}))})},ruleEffect:function(t,r,i){this.emitEffect({rule:t,input:!!t.field,type:this.getType(t.type)},r,i)},effect:function(t,r,i){this.emitEffect({rule:t.rule,input:t.input,type:t.trueType,ctx:t,custom:i},r)},getEffect:function(t,r){if(ye(t,"$"+r))return t["$"+r];if(ye(t,"effect")&&ye(t.effect,r))return t.effect[r]},emitEffect:function(t,r,i){var o=this,a=t.ctx,s=t.rule,l=t.input,f=t.type,c=t.custom;if(!(!f||["fcFragment","fragment"].indexOf(f)>-1)){var p=c||Object.keys(s).reduce(function(g,$){return $[0]==="$"&&(g[$.substr(1)]=s[$]),g},W({},s.effect||{}));Object.keys(p).forEach(function(g){var $=o.providers[g];if(!(!$||$.input&&!l)){var S;if(!$._c)S="*";else if($._used.indexOf(f)>-1)S=f;else return;var O=W({value:p[g],getValue:function(){return o.getEffect(s,g)}},i||{});a&&(O.getProp=function(){return a.effectData(g)},O.clearProp=function(){return a.clearEffectData(g)},O.mergeProp=function(M){return nt(O.getProp(),[M])},O.id=a.id),o.bus.$emit("p:".concat(g,":").concat(S,":").concat($.input?1:0),r,[O,s,o.api])}})}}})}function As(n){return n.filter(function(e,t,r){return r.indexOf(e,0)===t})}function Rs(n){var e=n.components;if(Array.isArray(e)){var t=As(e.filter(function(r){return r!=="*"}));return t.length?t:!1}else return j.String(e)?[e]:!1}function Ze(n){var e=this;$i(this,{options:function(){return n.options.value||{}},bus:function(){return n.bus},preview:function(){return n.vm.props.preview!=null?n.vm.props.preview:n.vm.setupState.parent&&n.vm.setupState.parent.props.preview!=null?n.vm.setupState.parent.props.preview:n.options.value.preview||!1}}),ee(this,{fc:n,vm:n.vm,watching:!1,loading:!1,reloading:!1,noWatchFn:null,deferSyncFn:null,isMounted:!1,formData:u.reactive({}),subRuleData:u.reactive({}),subForm:{},form:u.reactive({}),appendData:{},ignoreFields:[],providers:{},cycleLoad:null,loadedId:1,nextTick:null,changeStatus:!1,pageEnd:!0,nextReload:function(){e.lifecycle("reload")}}),this.initData(n.rules),this.$manager=new n.manager(this),this.$render=new Wn(this),this.api=n.extendApiFn.reduce(function(t,r){var i=ue(function(){return r(t,e)});return i&&i!==t&&ee(t,i),t},us(this))}ee(Ze.prototype,{initData:function(e){ee(this,{ctxs:{},fieldCtx:{},nameCtx:{},sort:[],rules:e})},init:function(){this.updateAppendData(),this.useProvider(),this.usePage(),this.loadRule(),this.$manager.__init(),this.lifecycle("created")},updateAppendData:function(){this.appendData=W(W(W({},this.options.formData||{}),this.fc.vm.props.modelValue||{}),this.appendData)},isBreakWatch:function(){return this.loading||this.noWatchFn||this.reloading},globalBeforeFetch:function(e){var t=this;return new Promise(function(r,i){var o=t.options.beforeFetch&&ue(function(){return t.options.beforeFetch(e,{api:t.api})});o&&j.Function(o.then)?o.then(r).catch(i):r()})},beforeFetch:function(e){var t=this;return new Promise(function(r,i){var o=e&&e.beforeFetch&&ue(function(){return e.beforeFetch(e,{api:t.api})});o&&j.Function(o.then)?o.then(r).catch(i):o===!1?i():r()}).then(function(){return t.globalBeforeFetch(e)})},beforeSubmit:function(e){var t=this;return new Promise(function(r,i){var o=t.options.beforeSubmit&&ue(function(){return t.options.beforeSubmit(e,{api:t.api})});o&&j.Function(o.then)?o.then(r).catch(i):o===!1?i():r()})}}),ms(Ze),gs(Ze),ys(Ze),bs(Ze),Os(Ze),Es(Ze),ks(Ze),xs(Ze);var Ds="fcFragment",Yn=u.defineComponent({name:Ds,inheritAttrs:!1,props:["vnode"],render:function(){return this.vnode}});function Ps(n){return Object.keys(n).map(function(e){var t=n[e],r=u.resolveDirective(e);if(!!r)return[r,t.value,t.arg,t.modifiers]}).filter(function(e){return!!e})}function Fi(n,e){var t=n.directives;return t?(Array.isArray(t)||(t=[t]),u.withDirectives(e,t.reduce(function(r,i){return r.concat(Ps(i))},[]))):e}function Vs(){var n={};function e(){}return ee(e.prototype,{make:function(r,i,o){return Fi(i,this.h(r,Si(i),o))},makeComponent:function(r,i,o){try{return Fi(i,u.createVNode(r,Si(i),o))}catch(a){return console.error(a),u.createVNode("")}},h:function(r,i,o){var a=u.getCurrentInstance().appContext.config.isNativeTag(r);a&&delete i.formCreateInject;try{return u.createVNode(a?r:u.resolveComponent(r),i,o)}catch(s){return console.error(s),u.createVNode("")}},aliasMap:n}),ee(e,{aliasMap:n,alias:function(r,i){n[r]=i},use:function(r){Object.keys(r).forEach(function(i){var o=Tt(i),a=fs(i).toLocaleLowerCase(),s=r[i];[i,o,a].forEach(function(l){e.alias(i,s),e.prototype[l]=function(f,c){return this.make(s,f,c)}})})}}),e}function Ts(n){var e=function(t){ha(i,t);var r=va(i);function i(){return da(this,i),r.apply(this,arguments)}return i}(ji);return Object.assign(e.prototype,n),e}function ji(n){ee(this,{$handle:n,vm:n.vm,options:{},ref:"fcForm",mergeOptionsRule:{normal:["form","row","info","submitBtn","resetBtn"]}}),this.updateKey(),this.init()}ee(ji.prototype,{__init:function(){var e=this;this.$render=this.$handle.$render,this.$r=function(){var t;return(t=e.$render).renderRule.apply(t,arguments)}},updateKey:function(){this.key=on()},init:function(){},update:function(){},beforeRender:function(){},form:function(){return this.vm.refs[this.ref]},adapterValidate:function(e,t){return e.validator=function(r,i,o){return t(i,o)},e},getSlot:function(e){var t=function r(i){if(i){var o=i.slots[e];return o||r(i.setupState.parent)}};return t(this.vm)},mergeOptions:function(e,t){var r=this;return pt(e.map(function(i){return r.tidyOptions(i)}),t,this.mergeOptionsRule)},updateOptions:function(e){this.$handle.fc.targetFormDriver("updateOptions",e,{handle:this.$handle,api:this.$handle.api}),this.options=this.mergeOptions([e],this.getDefaultOptions()),this.update()},tidyOptions:function(e){return e},tidyRule:function(e){},mergeProp:function(e){},getDefaultOptions:function(){return{}},render:function(e){}});var Ms=function(e){var t={name:"loadData",_fn:[],loaded:function(i,o,a){var s=this;this.deleted(i),u.nextTick(function(){var l=dt(i.getValue()),f=[];l.forEach(function(c){if(c&&(c.attr||c.template)){var p=function(O){var M;c.template?M=e.$handle.loadStrVar(c.template,O):c.handler&&j.Function(c.handler)?M=c.handler(O,o,a):M=O(c.attr,c.default),c.copy!==!1&&(M=We(M));var q=c.modify?o:i.getProp();c.to==="child"?q.children?q.children[0]=M:q.children=[M]:lt(q,c.to||"options",M),a.sync(o)},g=function(O){return p(O)},$=e.watchLoadData(g);p=st(p,c.wait||300),c.watch!==!1?f.push($):$()}}),s._fn[i.id]=f})},deleted:function(i){this._fn[i.id]&&(this._fn[i.id].forEach(function(o){o()}),delete this._fn[i.id]),i.clearProp()}};return t.watch=t.loaded,t},Fs=function(e){var t={name:"t",_fn:[],loaded:function(i,o,a){this.deleted(i);var s=i.getValue()||{},l=[];Object.keys(s).forEach(function(f){var c=s[f];if(c){var p=fe(c)==="object",g=function(M){var q=e.t(p?c.attr:c,p?c.params:null,M),U=p&&c.modify?o:i.getProp();f==="child"?U.children?U.children[0]=q:U.children=[q]:lt(U,f,q),a.sync(o)},$=function(M){return g(M)},S=e.watchLoadData($);g=st(g,c.wait||300),c.watch!==!1?l.push(S):S()}}),this._fn[i.id]=l},deleted:function(i){this._fn[i.id]&&(this._fn[i.id].forEach(function(o){o()}),delete this._fn[i.id]),i.clearProp()}};return t.watch=t.loaded,t},Xn={name:"componentValidate",load:function(e,t,r){var i=e.getValue();if(!i||i.method===!1)e.clearProp(),r.clearValidateState([t.field]);else{j.Object(i)||(i={method:i});var o=i.method;delete i.method,e.getProp().validate=[W(W({},i),{},{validator:function(){var s=rt(t);if(s){for(var l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];return r.exec.apply(r,[s.id,j.String(o)?o:"formCreateValidate"].concat(f,[{attr:e,rule:t,api:r}]))}}})]}},watch:function(){Xn.load.apply(Xn,arguments)}},js=function(e){function t(o){return j.String(o)&&(o={action:o,to:"options"}),o}function r(o,a,s){var l=o.value;i.deleted(o),j.Function(l)&&(l=l(a,s)),l=t(l);var f=function(S){S===void 0?o.clearProp():lt(o.getProp(),l.to||"options",S),S!=null&&l&&l.key&&e.$handle.options.globalData[l.key]&&e.fetchCache.set(e.$handle.options.globalData[l.key],{status:!0,data:S}),s.sync(a)};if(!l||!l.action&&!l.key){f(void 0);return}if(l=We(l),l.to||(l.to="options"),l.key){var c=e.$handle.options.globalData[l.key];if(!c){f(void 0);return}if(c.type==="static"){f(c.data);return}else l=W(W({},l),c)}var p=l.onError,g=function(){if(!o.getValue())return o.clearProp(),s.sync(a),!0};i._fn[o.id]=e.watchLoadData(st(function($,S){if(S&&l.watch===!1)return i._fn[o.id]();var O=e.$handle.loadFetchVar(We(l),$,a),M=W(W({headers:{}},O),{},{onSuccess:function(U,N){if(!g()){var K=function(le){return N?le:ye(le,"data")?le.data:le},Z=Ke(O.parse);j.Function(Z)?K=Z:Z&&j.String(Z)&&(K=function(le){return Re(le,Z)}),f(K(U,a,s))}},onError:function(U){f(void 0),!g()&&(p||function(N){return Ln(N.message||"fetch fail "+O.action)})(U,a,s)}});e.$handle.beforeFetch(M,{rule:a,api:s}).then(function(){if(j.Function(O.action)){O.action(a,s).then(function(q){M.onSuccess(q,!0)}).catch(function(q){M.onError(q)});return}ue(function(){return e.create.fetch(M,{inject:o,rule:a,api:s})})}).catch(function(q){})},l.wait||600))}var i={name:"fetch",_fn:[],loaded:function(){r.apply(void 0,arguments)},watch:function(){r.apply(void 0,arguments)},deleted:function(a){this._fn[a.id]&&(this._fn[a.id](),delete this._fn[a.id]),a.clearProp()}};return i},Is={fetch:js,loadData:Ms,t:Fs,componentValidate:Xn};function Bs(n){n=n||new Map;var e={$on:function(r,i){var o=n.get(r),a=o&&o.push(i);a||n.set(r,[i])},$once:function(r,i){i._once=!0,e.$on(r,i)},$off:function(r,i){var o=n.get(r);o&&o.splice(o.indexOf(i)>>>0,1)},$emit:function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];(n.get(r)||[]).slice().map(function(s){s._once&&(e.$off(r,s),delete s._once),s.apply(void 0,o)}),(n.get("*")||[]).slice().map(function(s){s(r,o)})}};return e}var Ns="html",Ls={name:Ns,loadChildren:!1,render:function(e,t){return t.prop.props.innerHTML=e.default(),t.vNode.make(t.prop.props.tag||"div",t.prop)},renderChildren:function(e){return{default:function(){return e.filter(function(r){return j.String(r)}).join("")}}}};function zs(n){n=n+"=";for(var e=decodeURIComponent(document.cookie),t=e.split(";"),r=0;r<t.length;r++){for(var i=t[r];i.charAt(0)===" ";)i=i.substring(1);if(i.indexOf(n)===0){i=i.substring(n.length,i.length);try{return JSON.parse(i)}catch{return i}}}return null}function Us(n){var e=localStorage.getItem(n);if(e)try{return JSON.parse(e)}catch{return e}return null}function qs(n){var e=sessionStorage.getItem(n);if(e)try{return JSON.parse(e)}catch{return e}return null}function Jn(n,e){if(!e)return null;var t=e.split("."),r=n(t.shift());return t.length?r==null?null:Re(r,t):r}function Gs(n){return Jn(zs,n)}function Hs(n){return Jn(Us,n)}function Ws(n){return Jn(qs,n)}var Ys={en:{required:"{title} is required",validate:{url:"{title} is not a valid url",email:"{title} is not a valid email",ip:"{title} {title} is not a valid ip",phone:"{title} {title} is not a valid phone",pattern:"{title} does not match pattern {pattern}",uppercase:"{title} must be all uppercase",lowercase:"{title} must be all lowercased",positive:"{title} is not a positive number",negative:"{title} is not a negative number",equal:"{title} is not equal to {equal}",min:"{title} cannot be less than {min}",max:"{title} cannot be greater than {max}",enum:"{title} must be one of {enum}",hasKeys:"{title} does not contain required fields {hasKeys}",minLen:"{title} must be at least {minLen}",maxLen:"{title} cannot be longer than {maxLen}",len:"{title} must be exactly {len}",integer:"{title} is not an integer",number:"{title} is not an number"}},"zh-cn":{required:"{title}\u4E0D\u80FD\u4E3A\u7A7A",validate:{url:"{title}\u4E0D\u662F\u6709\u6548\u7684 url \u5730\u5740",email:"{title}\u4E0D\u662F\u6709\u6548\u7684\u90AE\u7BB1\u5730\u5740",ip:"{title}\u4E0D\u662F\u6709\u6548\u7684 IP \u5730\u5740",phone:"{title}\u4E0D\u662F\u6B63\u786E\u7684\u624B\u673A\u53F7",pattern:"{title}\u5FC5\u987B\u5339\u914D {pattern}",uppercase:"{title}\u5FC5\u987B\u5168\u5927\u5199",lowercase:"{title}\u5FC5\u987B\u5168\u5C0F\u5199",positive:"{title}\u4E0D\u662F\u6B63\u6570",negative:"{title}\u4E0D\u662F\u8D1F\u6570",equal:"{title}\u5FC5\u987B\u7B49\u4E8E {equal}",min:"{title}\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E {min}",max:"{title}\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E {max}",enum:"{title}\u5FC5\u987B\u662F {enum} \u4E4B\u4E00",hasKeys:"{title}\u5FC5\u987B\u5305\u542B {hasKeys} \u5B57\u6BB5",minLen:"{title}\u957F\u5EA6\u5FC5\u987B\u5927\u4E8E {minLen}",maxLen:"{title}\u957F\u5EA6\u5FC5\u987B\u5C0F\u4E8E {maxLen}",len:"{title}\u957F\u5EA6\u5FC5\u987B\u4E3A {len}",integer:"{title}\u5FC5\u987B\u4E3A\u6574\u6570",number:"{title}\u5FC5\u987B\u4E3A\u6570\u5B57"}}};function Xs(n,e){var t;return arguments.length===2?(t=arguments[1],e=t[n]):t=arguments[2],{id:e,prop:t}}function Kn(){return Xs.apply(void 0,["name"].concat(Array.prototype.slice.call(arguments)))}function Js(n){var e=n.key||[],t=n.array||[],r=n.normal||[];Nn.push.apply(Nn,se(e)),Zt.push.apply(Zt,se(t)),Qt.push.apply(Qt,se(r)),ki([].concat(se(e),se(t),se(r)))}var Ks=1,Le={},sn=Symbol("defValue");function Ii(n){var e=ke({},Yn.name,Yn),t={},r={},i={},o={},a=[],s=[],l=[n.extendApi],f=W({},Is),c=ss(),p={global:{}},g=n.isMobile===!0,$=u.reactive({$mobile:g}),S=Vs(),O={},M={};Js(n.attrs||{});function q(R){var x=Le[R];if(Array.isArray(x))return x.map(function(D){return D.api()});if(x)return x.api()}function U(R){a.push(R)}function N(){var R=Kn.apply(void 0,arguments);R.id&&R.prop&&(r[R.id]=R.prop)}function K(){var R=Kn.apply(void 0,arguments);R.id&&R.prop&&(f[R.id]=j.Function(R.prop)?R.prop:W(W({},R.prop),{},{name:R.id}))}function Z(R){S.use(R)}function G(){var R=Kn.apply(void 0,arguments);if(!R.id||!R.prop)return an;var x=Ye(R.id),D=R.prop,b=D.merge===!0?t[x]:void 0;t[x]=tn(D,b||an),c[x]=rn(x),D.maker&&ee(c,D.maker)}function le(R,x){var D;if(j.String(R)){if(D=R,x===void 0)return e[D]}else D=R.displayName||R.name,x=R;if(!(!D||!x)){var b=Ye(D);e[D]=x,e[b]=x,delete S.aliasMap[D],delete S.aliasMap[b],delete t[D],delete t[b],x.formCreateParser&&G(D,x.formCreateParser)}}function te(){return is(V,e,r)}function re(R,x){var D=te();return u.createApp({data:function(){return u.reactive({rule:R,option:x})},render:function(){return u.h(D,W({ref:"fc"},this.$data))}})}function J(){return Yn}function H(R,x){return j.Function(R.install)?R.install(we,x):j.Function(R)&&R(we,x),this}function we(R,x){var D=re(R,x||{});a.forEach(function(C){ue(function(){return C(we,D)})});var b=document.createElement("div");((x==null?void 0:x.el)||document.body).appendChild(b);var E=D.mount(b);return E.$refs.fc.fapi}tn(we,M);function Me(R){var x=W({},n);return R?x.inherit={components:e,parsers:t,directives:r,modelFields:i,providers:f,useApps:a,maker:c,formulas:O,loadData:$}:delete x.inherit,Ii(x)}function A(R,x){i[R]=x}function w(R,x){O[R]=x}function _(R,x){var D=o[R]||{},b=D.parsers||{};x.parsers&&Object.keys(x.parsers).forEach(function(E){b[E]=tn(x.parsers[E],an)}),x.name=R,o[R]=W(W(W({},D),x),{},{parsers:b})}function h(R){R&&Object.keys(Le).forEach(function(x){var D=Array.isArray(Le[x])?Le[x]:[Le[x]];D.forEach(function(b){b.bus.$emit("$loadData."+R)})})}function d(R,x){lt($,R,x),h(R)}function m(R,x){var D=function(){for(var E=arguments.length,C=new Array(E),P=0;P<E;P++)C[P]=arguments[P];return ue(function(){return x.apply(void 0,C)})};D._driver=!0,d(R,D)}function y(R,x){var D=(R||"").split(".");R=D.shift();var b=D.join(".");if(ye($,R)||($[R]=sn),$[R]!==sn){var E=$[R];return E&&E._driver?E=E(b):D.length&&(E=Re(E,D)),E==null||E===""?x:E}else return x}function v(R){l.push(R)}function k(R){delete $[R],h(R)}function T(R,x){s.push({name:R,callback:x})}function V(R){var x=this;ee(this,{id:Ks++,create:we,vm:R,manager:Ts(n.manager),parsers:t,providers:f,modelFields:i,formulas:O,isMobile:g,rules:R.props.rule,name:R.props.name||on(),inFor:R.props.inFor,prop:{components:e,directives:r},get:null,drivers:o,renderDriver:null,refreshData:h,loadData:$,CreateNode:S,bus:new Bs,unwatch:[],options:u.ref({}),extendApiFn:l,fetchCache:new WeakMap,tmpData:u.reactive({})}),s.forEach(function(D){x.bus.$on(D.name,D.callback)}),u.nextTick(function(){u.watch(x.options,function(){x.$handle.$manager.updateOptions(x.options.value),x.api().refresh()},{deep:!0})}),ee(R.appContext.components,e),ee(R.appContext.directives,r),this.$handle=new Ze(this),this.name&&(this.inFor?(Le[this.name]||(Le[this.name]=[]),Le[this.name].push(this)):Le[this.name]=this)}V.isMobile=g,ee(V.prototype,{init:function(){var x=this;this.isSub()&&this.unwatch.push(u.watch(function(){return x.vm.setupState.parent.setupState.fc.options.value},function(){x.initOptions(),x.$handle.api.refresh()},{deep:!0})),this.vm.props.driver&&(this.renderDriver=fe(this.vm.props.driver)==="object"?this.vm.props.driver:this.drivers[this.vm.props.driver]),!this.renderDriver&&this.vm.setupState.parent&&(this.renderDriver=this.vm.setupState.parent.setupState.fc.renderDriver),this.renderDriver||(this.renderDriver=this.drivers.default),this.initOptions(),this.$handle.init()},targetFormDriver:function(x){for(var D=this,b=arguments.length,E=new Array(b>1?b-1:0),C=1;C<b;C++)E[C-1]=arguments[C];if(this.renderDriver&&this.renderDriver[x])return ue(function(){var P;return(P=D.renderDriver)[x].apply(P,E)})},t:function(x,D,b){var E=b?b("$t."+x):this.globalLanguageDriver(x);return E==null&&(E=""),E&&D&&Object.keys(D).forEach(function(C){var P=new RegExp("{".concat(C,"}"),"g");E=E.replace(P,D[C])}),E},globalDataDriver:function(x){var D=this,b=x.split("."),E=b.shift(),C=this.options.value.globalData&&this.options.value.globalData[E];if(C){if(C.type==="static")return Re(C.data,b);var P,F=this.fetchCache.get(C);if(F){if(F.status&&(P=Re(F.data,b)),!F.loading)return P;F.loading=!1,this.fetchCache.set(C,F)}else this.fetchCache.set(C,{status:!1});var Y=st(function(){oe();var ae=D.fetchCache.get(C);D.options.value.globalData&&Object.values(D.options.value.globalData).indexOf(C)!==-1?(ae&&(ae.loading=!0,D.fetchCache.set(C,ae)),D.bus.$emit("$loadData.$globalData."+E)):D.fetchCache.delete(C)},C.wait||600),X=function(de){D.fetchCache.set(C,{status:!0,data:de}),D.bus.$emit("$loadData.$globalData."+E)},ne=function(de,$e){if($e&&C.watch===!1)return oe();if($e){Y();return}var ve=D.$handle.loadFetchVar(Bn(C),de);D.$handle.api.fetch(ve).then(function(ce){X(ce)}).catch(function(ce){X(null)})},oe=this.watchLoadData(ne);return this.unwatch.push(oe),P}},getLocale:function(){var x=this.vm.setupState.top.props.locale;return x&&fe(x)==="object"?x.name:typeof x=="string"?x:"zh-cn"},globalLanguageDriver:function(x){var D=this.vm.setupState.top.props.locale,b=void 0;if(D&&fe(D)==="object"&&(b=Re(D,x)),b==null){var E=this.options.value.language||{},C=this.getLocale();b=Re(E[C]||{},x),b==null&&(b=Re(Ys[C]||{},x))}return b},globalVarDriver:function(x){var D=this,b=x.split("."),E=b.shift(),C=this.options.value.globalVariable&&this.options.value.globalVariable[E];if(C){var P=j.Function(C)?C:Ke(C.handle);if(P){var F,Y=this.watchLoadData(function(X,ne){ne?(D.bus.$emit("$loadData.$var."+E),Y()):F=P(X,D.$handle.api)});return this.unwatch.push(Y),Re(F,b)}}},setData:function(x,D,b){b?d(x,D):(lt(this.vm.setupState.top.setupState.fc.tmpData,x,D),this.bus.$emit("$loadData."+x))},getLoadData:function(x,D){var b=null;if(x!=null){var E=x.split("."),C=E.shift();if(C==="$topForm")b=this.$handle.api.top.formData(!0);else if(C==="$scopeForm")b=this.$handle.api.scope.formData(!0);else if(C==="$form")b=this.$handle.api.formData(!0);else if(C==="$options")b=this.options.value;else if(C==="$globalData")b=this.globalDataDriver(E.join(".")),E=[];else if(C==="$var")b=this.globalVarDriver(E.join(".")),E=[];else if(C==="$locale")b=this.getLocale(),E=[];else if(C==="$t")b=this.globalLanguageDriver(E.join(".")),E=[];else{if(C==="$preview")return this.$handle.preview;var P=this.vm.setupState.top.setupState.fc.tmpData;ye(P,C)||(P[C]=sn),b=P[C]!==sn?Re(P,x):y(x),E=[]}b&&E.length&&(b=Re(b,E))}return b==null||b===""?D:b},watchLoadData:function(x,D){var b=this,E={},C=function(X){b.get||(b.get=P),ue(function(){x(P,X)}),b.get===P&&(b.get=void 0)},P=function(X,ne){var oe;if(fe(X)==="object"&&(oe=X.getValue,X=X.id),E[X])return E[X].val;var ae=u.computed(function(){return oe?oe():b.getLoadData(X,ne)}),de=X.split("."),$e=de.shift(),ve=de.shift()||"",ce=st(function(){var Q=oe?oe():b.getLoadData(X,ne);if(E[X])JSON.stringify(Q)!==JSON.stringify(E[X].val)&&(E[X].val=Q,C(!0));else return},D||0),he=u.watch(ae,function(Q){ce()});return b.bus.$on("$loadData."+$e,ce),ve&&b.bus.$on("$loadData."+$e+"."+ve,ce),E[X]={fn:function(){b.bus.$off("$loadData."+$e,ce),ve&&b.bus.$off("$loadData."+$e+"."+ve,ce),he()},val:ae.value},ae.value};C(!1);var F=function(){Object.keys(E).forEach(function(X){return E[X].fn()}),E={}};return this.unwatch.push(F),F},isSub:function(){return this.vm.setupState.parent&&this.vm.props.extendOption},initOptions:function(){this.options.value={};var x=W({formData:{},submitBtn:{},resetBtn:{},globalEvent:{},globalData:{}},We(p));this.isSub()&&(x=this.mergeOptions(x,this.vm.setupState.parent.setupState.fc.options.value||{},!0)),x=this.mergeOptions(x,this.vm.props.option),this.updateOptions(x)},mergeOptions:function(x,D,b){return D=W({},D||{}),b&&["page","onSubmit","onReset","onCreated","onChange","onMounted","mounted","onReload","reload","formData","el","globalClass","style"].forEach(function(E){delete D[E]}),D.global&&(x.global=ns(x.global,D.global),delete D.global),this.$handle.$manager.mergeOptions([D],x),x},updateOptions:function(x){this.options.value=this.mergeOptions(this.options.value,x),this.$handle.$manager.updateOptions(this.options.value),this.bus.$emit("$loadData.$options")},api:function(){return this.$handle.api},render:function(){return this.$handle.render()},mounted:function(){this.$handle.mounted()},unmount:function(){var x=this;if(this.name)if(this.inFor){var D=Le[this.name].indexOf(this);Le[this.name].splice(D,1)}else delete Le[this.name];s.forEach(function(b){x.bus.$off(b.name,b.callback)}),this.tmpData={},this.unwatch.forEach(function(b){return b()}),this.unwatch=[],this.$handle.reloadRule([])},updated:function(){var x=this;this.$handle.bindNextTick(function(){return x.bus.$emit("next-tick",x.$handle.api)})}});function z(R){ee(R,{version:n.version,ui:n.ui,isMobile:g,extendApi:v,getData:y,setDataDriver:m,setData:d,removeData:k,refreshData:h,maker:c,component:le,directive:N,setModelField:A,setFormula:w,setDriver:_,register:K,$vnode:J,parser:G,use:H,factory:Me,componentAlias:Z,copyRule:_i,copyRules:bi,mergeRule:nt,fetch:Ai,$form:te,parseFn:Ke,parseJson:yi,toJson:Mt,useApp:U,getApi:q,on:T})}function I(R){ee(R,{create:we,install:function(D,b){p=W(W({},p),b||{});var E="_installedFormCreate_"+n.ui;if(D[E]!==!0){D[E]=!0;var C=function(Y){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return we(Y,X)};z(C),D.config.globalProperties.$formCreate=C;var P=te();D.component(P.name,P),a.forEach(function(F){ue(function(){return F(R,D)})})}}})}if(z(M),I(M),m("$cookie",Gs),m("$localStorage",Hs),m("$sessionStorage",Ws),S.use({fragment:"fcFragment"}),n.install&&we.use(n),U(function(R,x){x.mixin({props:["formCreateInject"]})}),G(Ls),n.inherit){var B=n.inherit;B.components&&ee(e,B.components),B.parsers&&ee(t,B.parsers),B.directives&&ee(r,B.directives),B.modelFields&&ee(i,B.modelFields),B.providers&&ee(f,B.providers),B.useApps&&ee(a,B.useApps),B.maker&&ee(c,B.maker),B.loadData&&ee($,B.loadData),B.formulas&&ee(O,B.formulas)}var L=te();return tn(L,M),Object.defineProperties(L,{fetch:{get:function(){return M.fetch},set:function(x){M.fetch=x}}}),L.util=M,L}var Zn="hidden",Zs={name:Zn,maker:ke({},Zn,function(n,e){return rn(Zn)("",n,e)}),render:function(){return[]}},Qs={name:"FcRow",render:function(e,t){return t.vNode.col({props:{span:24}},{default:function(){return[t.vNode.row(t.prop,e)]}})}},el={name:"checkbox",mergeProp:function(e){var t=e.prop.props;ye(t,"options")||(t.options=e.prop.options||[])}},tl={name:"radio",mergeProp:function(e){var t=e.prop.props;ye(t,"options")||(t.options=e.prop.options||[])}},nl={name:"select",mergeProp:function(e){var t=e.prop.props;ye(t,"options")||(t.options=e.prop.options||[])}},rl={name:"cascader",mergeProp:function(e){var t=e.prop.props;ye(t,"options")||(t.options=e.prop.options||[])}},il=[Zs,Qs,rl,el,tl,nl],je="van",ol={button:je+"-button",icon:je+"-icon",slider:je+"-slider",stepper:je+"-stepper",rate:je+"-rate",uploader:"fc-uploader",cell:je+"-cell",timePicker:"fc-time-picker",datePicker:"fc-date-picker",switch:je+"-switch",select:"fc-select",cascader:"fc-cascader",calendar:"fc-calendar",checkbox:"fc-checkbox",radio:"fc-radio",input:je+"-field",field:je+"-field",formItem:je+"-field",form:je+"-form",col:je+"-col",row:je+"-row",group:"fc-group",array:"fc-group",object:"fc-sub-form",subForm:"fc-sub-form"};function al(){return{form:{required:"auto",labelAlign:"right",inputAlign:"right"},row:{show:!0,gutter:0},submitBtn:{type:"primary",loading:!1,disabled:!1,block:!0,innerText:"",size:"small",show:!0,col:void 0,click:void 0},resetBtn:{type:"default",loading:!1,disabled:!1,block:!0,innerText:"",size:"small",show:!1,col:void 0,click:void 0}}}function Bi(n,e){if(!!ye(n,e)&&j.String(n[e])){var t;n[e]=(t={},ke(t,e,n[e]),ke(t,"show",!0),t)}}function it(n){return n===!1}function sl(n,e){ye(n,e)&&!j.Object(n[e])&&(n[e]={show:!!n[e]})}function Ni(n){var e=W({},n);return delete e.children,e}var ll={validate:function(){var e=this.form();return e?e.validate():new Promise(function(t){return t()})},validateField:function(e){var t=this;return new Promise(function(r,i){var o=t.form();o?o.validate(e).then(r).catch(i):r()})},clearValidateState:function(e){var t=this.form();if(t)return t.resetValidation(e.id)},tidyOptions:function(e){return["submitBtn","resetBtn","row","info","wrap","col","title"].forEach(function(t){sl(e,t)}),e},tidyRule:function(e){var t=e.prop;return Bi(t,"title"),Bi(t,"info"),t.validate&&t.validate.forEach(function(r){j.String(r.pattern)&&(r.pattern=new RegExp(r.pattern))}),t},mergeProp:function(e){var t=this,r={info:{icon:!0},title:{},col:{span:24},wrap:{}};["info","wrap","col","title"].forEach(function(i){e.prop[i]=pt([t.options[i]||{},e.prop[i]||{}],r[i])})},getDefaultOptions:function(){return al()},adapterValidate:function(e,t){return e.trigger==="change"?e.trigger="onChange":e.trigger==="blur"&&(e.trigger="onBlur"),e.validator=function(r){return new Promise(function(i){var o=function(s){e.message=s,s?i(!1):i()};return t(r,o)})},e},update:function(){var e=this.options.form;this.rule={props:W({},e),on:{submit:function(r){r.preventDefault()}},style:e.style,type:"form"}},beforeRender:function(){var e=this.key,t=this.ref,r=this.options.form;ee(this.rule,{key:e,ref:t,class:[r.className,r.class,"form-create-m",this.$handle.preview?"is-preview":""]})},render:function(e){var t=this;return e.slotLen()&&!this.$handle.preview&&e.setSlot(void 0,function(){return t.makeFormBtn()}),this.$r(this.rule,it(this.options.row.show)?e.getSlots():[this.makeRow(e)])},makeWrap:function(e,t){var r=this,i=e.prop,o="".concat(this.key).concat(e.key),a=i.col,s=this.isTitle(i)&&i.wrap.title!==!1,l=this.rule.props.col;delete i.wrap.title;var f=it(i.wrap.show)?t:this.$r(pt([i.wrap,{props:W(W({modelValue:e.rule.value,label:s?i.title.title:void 0},Ni(i.wrap||{})),{},{name:e.id,rules:e.injectValidate()}),class:this.$render.mergeClass(i.className,"fc-form-item"),key:"".concat(o,"fi"),ref:e.wrapRef,type:"formItem"}]),W({input:function(){return t}},s?{label:function(){return r.makeInfo(i,o,e)}}:{}));return it(l)||it(a.show)?f:this.makeCol(i,o,[f])},isTitle:function(e){if(this.options.form.title===!1)return!1;var t=e.title;return!(!t.title&&!t.native||it(t.show))},makeInfo:function(e,t,r){var i,o,a,s,l=W({},e.title),f=W({},e.info),c=this.getSlot("title"),p=[c?c({title:(i=r.refRule)===null||i===void 0||(o=i.__$title)===null||o===void 0?void 0:o.value,rule:r.rule,options:this.options}):(a=r.refRule)===null||a===void 0||(s=a.__$title)===null||s===void 0?void 0:s.value],g=!it(f.show)&&(f.info||f.native)&&!it(f.icon);g&&p[f.align!=="left"?"unshift":"push"](this.$r({type:f.icon===!0?"icon-warning":f.icon,style:"width:1em;"}));var $=pt([l,{props:Ni(l),key:"".concat(t,"tit"),class:"fc-form-title",type:l.type||"span"}]);return g&&f.info&&!$.props.onClick&&($.props.onClick=function(){var S,O;Je.showNotify({type:"warning",message:(S=r.refRule)===null||S===void 0||(O=S.__$info)===null||O===void 0?void 0:O.value,duration:1e3})}),delete $.props.show,delete $.props.title,delete $.props.native,this.$r($,p)},makeCol:function(e,t,r){var i=e.col;return this.$r({class:this.$render.mergeClass(i.class,"fc-form-col"),type:"col",props:i||{span:24},key:"".concat(t,"col")},r)},makeRow:function(e){var t=this.options.row||{};return this.$r({type:"row",props:t,class:this.$render.mergeClass(t.class,"fc-form-row"),key:"".concat(this.key,"row")},e)},makeFormBtn:function(){var e=[];if(it(this.options.submitBtn.show)||e.push(this.makeSubmitBtn()),it(this.options.resetBtn.show)||e.push(this.makeResetBtn()),!!e.length)return this.$r({type:"cell",class:"fc-form-cell fc-form-footer",key:"".concat(this.key,"fb")},e)},makeResetBtn:function(){var e=this,t=W({},this.options.resetBtn),r=t.innerText||this.$handle.api.t("reset")||"\u91CD\u7F6E";return delete t.innerText,delete t.click,delete t.col,delete t.show,this.$r({type:"button",props:t,class:"fc-reset-btn",style:{width:t.width},on:{click:function(){var o=e.$handle.api;e.options.resetBtn.click?e.options.resetBtn.click(o):o.resetFields()}},key:"".concat(this.key,"b2")},[r])},makeSubmitBtn:function(){var e=this,t=W({},this.options.submitBtn),r=t.innerText||this.$handle.api.t("submit")||"\u63D0\u4EA4";return delete t.innerText,delete t.click,delete t.col,delete t.show,this.$r({type:"button",props:t,class:"fc-submit-btn",style:{width:t.width},on:{click:function(){var o=e.$handle.api;e.options.submitBtn.click?e.options.submitBtn.click(o):o.submit().catch(function(){})}},key:"".concat(this.key,"b1")},[r])}};function ul(n,e){e===void 0&&(e={});var t=e.insertAt;if(!(!n||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",t==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n))}}var cl='.form-create-m{width:100%}.form-create-m .fc-none,.form-create-m.is-preview .fc-clock{display:none!important}.form-create-m .van-field:has(.van-field__value>.van-field__body>.van-field__control>.van-field):after{display:none}.form-create-m .van-field>.van-field__value>.van-field__body>.van-field__control>*>.van-field:after,.form-create-m .van-field>.van-field__value>.van-field__body>.van-field__control>.van-field:after{display:block;left:0;right:0}.form-create-m .fc-form-item>.van-field__value>.van-field__body>.van-field__control>.van-cell{padding:0}.form-create-m .fc-form-item .fc-form-item{--van-padding-md:0;padding-left:0;padding-right:0}.form-create-m>.van-row>.van-col--24:last-of-type>.van-cell:last-of-type:after{display:none}.form-create-m .fc-reset-btn{margin-top:12px}.form-create-m .fc-form-title{align-items:center;display:inline-flex}.form-create-m.is-preview .van-field__label--required:before{display:none}._fc-m-group{align-items:flex-end;display:flex;flex-direction:column;justify-content:center;min-height:38px;width:100%}._fc-m-group-disabled ._fc-m-group-add,._fc-m-group-disabled ._fc-m-group-btn{cursor:not-allowed}._fc-m-group-handle{background-color:#fff;border:1px dashed #d9d9d9;border-radius:15px;bottom:-15px;display:flex;flex-direction:row;padding:3px 8px;position:absolute;right:30px;transform:scale(1.1)}._fc-m-group-btn{cursor:pointer}._fc-m-group-idx{align-items:center;background:#eee;border-radius:15px;bottom:-15px;display:flex;font-weight:700;height:30px;justify-content:center;left:10px;position:absolute;width:30px}._fc-m-group-handle ._fc-m-group-btn+._fc-m-group-btn{margin-left:7px}._fc-m-group-container{border:1px dashed #d9d9d9;border-radius:5px;box-sizing:border-box;display:flex;flex-direction:column;margin-bottom:25px;padding:5px 5px 25px;position:relative;width:100%}._fc-m-group-arrow{height:20px;position:relative;width:20px}._fc-m-group-arrow:before{border-left:2px solid #999;border-top:2px solid #999;content:"";height:9px;left:5px;position:absolute;top:8px;transform:rotate(45deg);width:9px}._fc-m-group-arrow._fc-m-group-down{transform:rotate(180deg)}._fc-m-group-plus-minus{cursor:pointer;height:20px;position:relative;width:20px}._fc-m-group-plus-minus:after,._fc-m-group-plus-minus:before{background-color:#409eff;content:"";height:2px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:60%}._fc-m-group-plus-minus:before{transform:translate(-50%,-50%) rotate(90deg)}._fc-m-group-plus-minus._fc-m-group-minus:before{display:none}._fc-m-group-plus-minus._fc-m-group-minus:after{background-color:#f56c6c}._fc-m-group-add{border:1px solid rgba(64,158,255,.5);border-radius:15px;cursor:pointer;height:25px;transform:scale(1.1);width:25px}._fc-m-group-add._fc-m-group-plus-minus:after,._fc-m-group-add._fc-m-group-plus-minus:before{width:50%}';ul(cl);function Li(n,e){return j.Boolean(n)?n={show:n}:!j.Undef(n)&&!j.Object(n)&&(n={show:e}),n}function fl(n,e){return{formEl:function(){return e.$manager.form()},wrapEl:function(r){var i=e.getFieldCtx(r);if(!!i)return e.vm.refs[i.wrapRef]},validate:function(r){return new Promise(function(i,o){var a=n.children,s=[e.$manager.validate()];a.filter(function(l){return!l.isScope}).forEach(function(l){s.push(l.validate())}),Promise.all(s).then(function(){i(!0),r&&r(!0)}).catch(function(l){o(l),r&&r(l),e.vm.emit("validate-fail",l,{api:n})})})},validateField:function(r,i){return new Promise(function(o,a){var s=e.getFieldCtx(r);if(!!s){var l=e.subForm[s.id],f=[e.$manager.validateField(s.id)];dt(l).filter(function(c){return!c.isScope}).forEach(function(c){f.push(c.validate())}),Promise.all(f).then(function(){o(null),i&&i(null)}).catch(function(c){a(c),i&&i(c),e.vm.emit("validate-field-fail",c,{field:r,api:n})})}})},clearValidateState:function(r){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n.helper.tidyFields(r).forEach(function(a){o&&i.clearSubValidateState(a),e.getCtxs(a).forEach(function(s){e.$manager.clearValidateState(s)})})},clearSubValidateState:function(r){n.helper.tidyFields(r).forEach(function(i){e.getCtxs(i).forEach(function(o){var a=e.subForm[o.id];!a||(Array.isArray(a)?a.forEach(function(s){s.clearValidateState()}):a&&a.clearValidateState())})})},btn:{loading:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;n.submitBtnProps({loading:!!r})},disabled:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;n.submitBtnProps({disabled:!!r})},show:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;n.submitBtnProps({show:!!r})}},resetBtn:{loading:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;n.resetBtnProps({loading:!!r})},disabled:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;n.resetBtnProps({disabled:!!r})},show:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;n.resetBtnProps({show:!!r})}},submitBtnProps:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Li(e.options.submitBtn,!0);ee(i,r),e.options.submitBtn=i,n.refreshOptions()},resetBtnProps:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Li(e.options.resetBtn,!1);ee(i,r),e.options.resetBtn=i,n.refreshOptions()},submit:function(r,i){return new Promise(function(o,a){var s=e.options.validateOnSubmit===!1?Promise.resolve():n.validate();s.then(function(){var l=n.formData();e.beforeSubmit(l).then(function(){j.Function(r)&&ue(function(){return r(l,n)}),j.Function(e.options.onSubmit)&&ue(function(){return e.options.onSubmit(l,n)}),e.vm.emit("submit",l,n),o(l)}).catch(function(f){})}).catch(function(){for(var l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];j.Function(i)&&ue(function(){return i.apply(void 0,[n].concat(f))}),a.apply(void 0,f)})})}}}var Qn={name:"required",load:function(e,t,r){var i=dl(e.getValue());if(i.required===!1)e.clearProp(),r.clearValidateState([t.field]);else{var o,a,s=W({required:!0,validator:function(p){return!j.empty(p)},trigger:["onChange","onSubmit"]},i),l=(o=t.__fc__.refRule)===null||o===void 0||(a=o.__$title)===null||a===void 0?void 0:a.value;if(!s.message)s.message=r.t("required",{title:l})||l+(r.getLocale()==="en"?" is required":"\u4E0D\u80FD\u4E3A\u7A7A");else{var f=s.message.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);f&&(s.message=r.t(f[1],{title:l}))}e.getProp().validate=[s]}r.sync(t)},watch:function(){Qn.load.apply(Qn,arguments)}};function dl(n){return j.Boolean(n)?{required:n}:j.String(n)?{message:n}:j.Undef(n)?{required:!1}:j.Function(n)?{validator:n}:j.Object(n)?n:{}}function hl(n){n.componentAlias(ol),Za.forEach(function(e){n.component(e.name,e)}),n.register(Qn),il.forEach(function(e){n.parser(e)}),Je.Field.props&&(Je.Field.props.modelValue={type:[String,Number,Array,Object,Boolean],default:""})}function pl(){return Ii({ui:"vant",version:"3.2.22",manager:ll,extendApi:fl,install:hl,isMobile:!0,attrs:{normal:["col","wrap"],key:["title","info"]}})}var pe=pl();typeof window<"u"&&(window.formCreateMobile=pe),pe.maker;/*!
* @form-create/component-elm-select v3.2.18
* (c) 2018-2025 xaboy
* Github https://github.com/xaboy/form-create with select
* Released under the MIT License.
*/function zi(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function ml(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?zi(Object(t),!0).forEach(function(r){gl(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):zi(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function ln(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ln=function(e){return typeof e}:ln=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ln(n)}function gl(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function vl(n,e){return Object.keys(n).reduce(function(t,r){return(!e||e.indexOf(r)===-1)&&(t[r]=n[r]),t},{})}var un={type:function(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"},Undef:function(e){return e==null},Element:function(e){return ln(e)==="object"&&e!==null&&e.nodeType===1&&!un.Object(e)},trueArray:function(e){return Array.isArray(e)&&e.length>0},Function:function(e){var t=this.getType(e);return t==="Function"||t==="AsyncFunction"},getType:function(e){var t=Object.prototype.toString.call(e);return/^\[object (.*)\]$/.exec(t)[1]},empty:function(e){return e==null||Array.isArray(e)&&Array.isArray(e)&&!e.length?!0:typeof e=="string"&&!e}};["Date","Object","String","Boolean","Array","Number"].forEach(function(n){un[n]=function(e){return un.type(e,n)}});function yl(n,e){return{}.hasOwnProperty.call(n,e)}var _l="fcSelect",bl=u.defineComponent({name:_l,inheritAttrs:!1,props:{formCreateInject:Object,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},type:String},emits:["update:modelValue","fc.el"],setup:function(e){var t=u.toRef(e.formCreateInject,"options",[]),r=u.toRef(e,"modelValue"),i=function(){return Array.isArray(t.value)?t.value:[]};return{options:i,value:r}},render:function(){var e=this,t,r,i=function(l,f){return u.createVNode(u.resolveComponent("ElOption"),u.mergeProps(l,{key:""+f+"-"+l.value}),null)},o=function(l,f){return u.createVNode(u.resolveComponent("ElOptionGroup"),{label:l.label,key:""+f+"-"+l.label},{default:function(){return[un.trueArray(l.options)&&l.options.map(function(p,g){return i(p,g)})]}})},a=this.options();return u.createVNode(u.resolveComponent("ElSelect"),u.mergeProps(this.$attrs,{modelValue:this.value,"onUpdate:modelValue":function(l){return e.$emit("update:modelValue",l)},ref:"el"}),ml({default:function(){return[a.map(function(l,f){return yl(l||"","options")?o(l,f):i(l,f)}),(t=(r=e.$slots).default)===null||t===void 0?void 0:t.call(r)]}},vl(this.$slots,["default"])))},mounted:function(){this.$emit("fc.el",this.$refs.el)}});/*!
* @form-create/component-elm-tree v3.2.18
* (c) 2018-2025 xaboy
* Github https://github.com/xaboy/form-create with tree
* Released under the MIT License.
*/function wl(n){return Array.isArray(n)?n:[null,void 0,""].indexOf(n)>-1?[]:[n]}var $l="fcTree",Sl=u.defineComponent({name:$l,inheritAttrs:!1,formCreateParser:{mergeProp:function(e){var t=e.prop.props;t.nodeKey||(t.nodeKey="id"),t.props||(t.props={label:"title"})}},props:{type:String,modelValue:{type:[Array,String,Number],default:function(){return[]}}},emits:["update:modelValue","fc.el"],watch:{modelValue:function(){this.setValue()}},methods:{updateValue:function(){if(!!this.$refs.tree){var e;this.type==="selected"?e=this.$refs.tree.getCurrentKey():e=this.$refs.tree.getCheckedKeys(),this.$emit("update:modelValue",e)}},setValue:function(){if(!!this.$refs.tree){var e=this.type;e==="selected"?this.$refs.tree.setCurrentKey(this.modelValue):this.$refs.tree.setCheckedKeys(wl(this.modelValue))}}},render:function(){return u.createVNode(u.resolveComponent("ElTree"),u.mergeProps(this.$attrs,{ref:"tree",onCheck:this.updateValue,onNodeClick:this.updateValue}),this.$slots)},mounted:function(){this.setValue(),this.$emit("fc.el",this.$refs.tree)}});/*!
* @form-create/component-elm-upload v3.2.18
* (c) 2018-2025 xaboy
* Github https://github.com/xaboy/form-create with upload
* Released under the MIT License.
*/function Ui(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function er(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ui(Object(t),!0).forEach(function(r){Ol(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Ui(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function cn(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cn=function(e){return typeof e}:cn=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cn(n)}function Ol(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function fn(n){return Array.isArray(n)?n:[null,void 0,""].indexOf(n)>-1?[]:[n]}function Cl(n,e){return Object.keys(n).reduce(function(t,r){return(!e||e.indexOf(r)===-1)&&(t[r]=n[r]),t},{})}function El(n,e){e===void 0&&(e={});var t=e.insertAt;if(!(!n||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",t==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n))}}var kl="._fc-upload{width:100%}._fc-exceed .el-upload{display:none}.el-upload-list.is-disabled .el-upload{cursor:not-allowed!important}";El(kl);var qi={name:"IconUpload"},xl={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Al=u.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 110 64H160a32 32 0 110-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"},null,-1),Rl=[Al];function Dl(n,e,t,r,i,o){return u.openBlock(),u.createElementBlock("svg",xl,Rl)}qi.render=Dl;function Gi(n,e){return cn(n)==="object"?n:{url:n,is_string:!0,name:Pl(n),uid:e}}function Hi(n){return er(er({},n),{},{file:n,value:n})}function Pl(n){return(""+n).split("/").pop()}var Vl="fcUpload",Tl=u.defineComponent({name:Vl,inheritAttrs:!1,formCreateParser:{toFormValue:function(e){return fn(e)},toValue:function(e,t){return t.prop.props.limit===1?e[0]||"":e}},props:{previewMask:void 0,onPreview:Function,httpRequest:Function,modalTitle:String,listType:String,formCreateInject:Object,modelValue:[Array,String,Object]},emits:["update:modelValue","change","remove","fc.el"],data:function(){return{previewVisible:!1,previewImage:"",fileList:[]}},created:function(){this.fileList=fn(this.modelValue).map(Gi).map(Hi)},watch:{modelValue:function(e){this.fileList=fn(e).map(Gi).map(Hi)}},methods:{handlePreview:function(e){this.onPreview?this.onPreview.apply(this,arguments):this.listType==="text"?window.open(e.url):(this.previewImage=e.url,this.previewVisible=!0)},update:function(e){var t=e.map(function(r){return r.is_string?r.url:r.value||r.url}).filter(function(r){return r!==void 0});this.$emit("update:modelValue",t)},handleCancel:function(){this.previewVisible=!1},handleChange:function(e,t){this.$emit.apply(this,["change"].concat(Array.prototype.slice.call(arguments))),e.status==="success"&&this.update(t)},handleRemove:function(e,t){this.$emit.apply(this,["remove"].concat(Array.prototype.slice.call(arguments))),this.update(t)},doHttpRequest:function(e){if(this.httpRequest)return this.httpRequest(e);e.source="upload",this.formCreateInject.api.fetch(e)}},render:function(){var e,t,r=this,i=fn(this.modelValue).length;return u.createVNode("div",{class:"_fc-upload"},[u.createVNode(u.resolveComponent("ElUpload"),u.mergeProps({key:i},this.$attrs,{listType:this.listType||"picture-card",class:{"_fc-exceed":this.$attrs.limit?this.$attrs.limit<=i:!1},onPreview:this.handlePreview,onChange:this.handleChange,onRemove:this.handleRemove,httpRequest:this.doHttpRequest,fileList:this.fileList,ref:"upload"}),er({default:function(){return[((e=(t=r.$slots).default)===null||e===void 0?void 0:e.call(t))||(["text","picture"].indexOf(r.listType)===-1?u.createVNode(u.resolveComponent("ElIcon"),null,{default:function(){return[u.createVNode(qi,null,null)]}}):u.createVNode(u.resolveComponent("ElButton"),{type:"primary"},{default:function(){return[r.formCreateInject.t("clickToUpload")||"\u70B9\u51FB\u4E0A\u4F20"]}}))]}},Cl(this.$slots,["default"]))),u.createVNode(u.resolveComponent("ElDialog"),{appendToBody:!0,modal:this.previewMask,title:this.modalTitle,modelValue:this.previewVisible,onClose:this.handleCancel},{default:function(){return[u.createVNode("img",{style:"width: 100%",src:r.previewImage},null)]}})])},mounted:function(){this.$emit("fc.el",this.$refs.upload)}});const ze={type(n,e){return Object.prototype.toString.call(n)==="[object "+e+"]"},Undef(n){return n==null},Element(n){return typeof n=="object"&&n!==null&&n.nodeType===1&&!ze.Object(n)},trueArray(n){return Array.isArray(n)&&n.length>0},Function(n){const e=this.getType(n);return e==="Function"||e==="AsyncFunction"},getType(n){const e=Object.prototype.toString.call(n);return/^\[object (.*)\]$/.exec(e)[1]},empty(n){return n==null||Array.isArray(n)&&Array.isArray(n)&&!n.length?!0:typeof n=="string"&&!n}};["Date","Object","String","Boolean","Array","Number"].forEach(n=>{ze[n]=function(e){return ze.type(e,n)}});function Wi(n,e){return{}.hasOwnProperty.call(n,e)}var Yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ml(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Xi={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Yi,function(){var t=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",f="day",c="week",p="month",g="quarter",$="year",S="date",O="Invalid Date",M=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,q=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,U={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var w=["th","st","nd","rd"],_=A%100;return"["+A+(w[(_-20)%10]||w[_]||w[0])+"]"}},N=function(A,w,_){var h=String(A);return!h||h.length>=w?A:""+Array(w+1-h.length).join(_)+A},K={s:N,z:function(A){var w=-A.utcOffset(),_=Math.abs(w),h=Math.floor(_/60),d=_%60;return(w<=0?"+":"-")+N(h,2,"0")+":"+N(d,2,"0")},m:function A(w,_){if(w.date()<_.date())return-A(_,w);var h=12*(_.year()-w.year())+(_.month()-w.month()),d=w.clone().add(h,p),m=_-d<0,y=w.clone().add(h+(m?-1:1),p);return+(-(h+(_-d)/(m?d-y:y-d))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:p,y:$,w:c,d:f,D:S,h:l,m:s,s:a,ms:o,Q:g}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},Z="en",G={};G[Z]=U;var le="$isDayjsObject",te=function(A){return A instanceof we||!(!A||!A[le])},re=function A(w,_,h){var d;if(!w)return Z;if(typeof w=="string"){var m=w.toLowerCase();G[m]&&(d=m),_&&(G[m]=_,d=m);var y=w.split("-");if(!d&&y.length>1)return A(y[0])}else{var v=w.name;G[v]=w,d=v}return!h&&d&&(Z=d),d||!h&&Z},J=function(A,w){if(te(A))return A.clone();var _=typeof w=="object"?w:{};return _.date=A,_.args=arguments,new we(_)},H=K;H.l=re,H.i=te,H.w=function(A,w){return J(A,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var we=function(){function A(_){this.$L=re(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[le]=!0}var w=A.prototype;return w.parse=function(_){this.$d=function(h){var d=h.date,m=h.utc;if(d===null)return new Date(NaN);if(H.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var y=d.match(M);if(y){var v=y[2]-1||0,k=(y[7]||"0").substring(0,3);return m?new Date(Date.UTC(y[1],v,y[3]||1,y[4]||0,y[5]||0,y[6]||0,k)):new Date(y[1],v,y[3]||1,y[4]||0,y[5]||0,y[6]||0,k)}}return new Date(d)}(_),this.init()},w.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},w.$utils=function(){return H},w.isValid=function(){return this.$d.toString()!==O},w.isSame=function(_,h){var d=J(_);return this.startOf(h)<=d&&d<=this.endOf(h)},w.isAfter=function(_,h){return J(_)<this.startOf(h)},w.isBefore=function(_,h){return this.endOf(h)<J(_)},w.$g=function(_,h,d){return H.u(_)?this[h]:this.set(d,_)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(_,h){var d=this,m=!!H.u(h)||h,y=H.p(_),v=function(R,x){var D=H.w(d.$u?Date.UTC(d.$y,x,R):new Date(d.$y,x,R),d);return m?D:D.endOf(f)},k=function(R,x){return H.w(d.toDate()[R].apply(d.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(x)),d)},T=this.$W,V=this.$M,z=this.$D,I="set"+(this.$u?"UTC":"");switch(y){case $:return m?v(1,0):v(31,11);case p:return m?v(1,V):v(0,V+1);case c:var B=this.$locale().weekStart||0,L=(T<B?T+7:T)-B;return v(m?z-L:z+(6-L),V);case f:case S:return k(I+"Hours",0);case l:return k(I+"Minutes",1);case s:return k(I+"Seconds",2);case a:return k(I+"Milliseconds",3);default:return this.clone()}},w.endOf=function(_){return this.startOf(_,!1)},w.$set=function(_,h){var d,m=H.p(_),y="set"+(this.$u?"UTC":""),v=(d={},d[f]=y+"Date",d[S]=y+"Date",d[p]=y+"Month",d[$]=y+"FullYear",d[l]=y+"Hours",d[s]=y+"Minutes",d[a]=y+"Seconds",d[o]=y+"Milliseconds",d)[m],k=m===f?this.$D+(h-this.$W):h;if(m===p||m===$){var T=this.clone().set(S,1);T.$d[v](k),T.init(),this.$d=T.set(S,Math.min(this.$D,T.daysInMonth())).$d}else v&&this.$d[v](k);return this.init(),this},w.set=function(_,h){return this.clone().$set(_,h)},w.get=function(_){return this[H.p(_)]()},w.add=function(_,h){var d,m=this;_=Number(_);var y=H.p(h),v=function(V){var z=J(m);return H.w(z.date(z.date()+Math.round(V*_)),m)};if(y===p)return this.set(p,this.$M+_);if(y===$)return this.set($,this.$y+_);if(y===f)return v(1);if(y===c)return v(7);var k=(d={},d[s]=r,d[l]=i,d[a]=t,d)[y]||1,T=this.$d.getTime()+_*k;return H.w(T,this)},w.subtract=function(_,h){return this.add(-1*_,h)},w.format=function(_){var h=this,d=this.$locale();if(!this.isValid())return d.invalidDate||O;var m=_||"YYYY-MM-DDTHH:mm:ssZ",y=H.z(this),v=this.$H,k=this.$m,T=this.$M,V=d.weekdays,z=d.months,I=d.meridiem,B=function(x,D,b,E){return x&&(x[D]||x(h,m))||b[D].slice(0,E)},L=function(x){return H.s(v%12||12,x,"0")},R=I||function(x,D,b){var E=x<12?"AM":"PM";return b?E.toLowerCase():E};return m.replace(q,function(x,D){return D||function(b){switch(b){case"YY":return String(h.$y).slice(-2);case"YYYY":return H.s(h.$y,4,"0");case"M":return T+1;case"MM":return H.s(T+1,2,"0");case"MMM":return B(d.monthsShort,T,z,3);case"MMMM":return B(z,T);case"D":return h.$D;case"DD":return H.s(h.$D,2,"0");case"d":return String(h.$W);case"dd":return B(d.weekdaysMin,h.$W,V,2);case"ddd":return B(d.weekdaysShort,h.$W,V,3);case"dddd":return V[h.$W];case"H":return String(v);case"HH":return H.s(v,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return R(v,k,!0);case"A":return R(v,k,!1);case"m":return String(k);case"mm":return H.s(k,2,"0");case"s":return String(h.$s);case"ss":return H.s(h.$s,2,"0");case"SSS":return H.s(h.$ms,3,"0");case"Z":return y}return null}(x)||y.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(_,h,d){var m,y=this,v=H.p(h),k=J(_),T=(k.utcOffset()-this.utcOffset())*r,V=this-k,z=function(){return H.m(y,k)};switch(v){case $:m=z()/12;break;case p:m=z();break;case g:m=z()/3;break;case c:m=(V-T)/6048e5;break;case f:m=(V-T)/864e5;break;case l:m=V/i;break;case s:m=V/r;break;case a:m=V/t;break;default:m=V}return d?m:H.a(m)},w.daysInMonth=function(){return this.endOf(p).$D},w.$locale=function(){return G[this.$L]},w.locale=function(_,h){if(!_)return this.$L;var d=this.clone(),m=re(_,h,!0);return m&&(d.$L=m),d},w.clone=function(){return H.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},A}(),Me=we.prototype;return J.prototype=Me,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",f],["$M",p],["$y",$],["$D",S]].forEach(function(A){Me[A[1]]=function(w){return this.$g(w,A[0],A[1])}}),J.extend=function(A,w){return A.$i||(A(w,we,J),A.$i=!0),J},J.locale=re,J.isDayjs=te,J.unix=function(A){return J(1e3*A)},J.en=G[Z],J.Ls=G,J.p={},J})})(Xi);const Fl=Xi.exports,St={Add:(n,e)=>{let t,r,i;try{t=n.toString().split(".")[1].length}catch{t=0}try{r=e.toString().split(".")[1].length}catch{r=0}return i=Math.pow(10,Math.max(t,r)),(n*i+e*i)/i},Sub:(n,e)=>{let t,r,i;try{t=n.toString().split(".")[1].length}catch{t=0}try{r=e.toString().split(".")[1].length}catch{r=0}i=Math.pow(10,Math.max(t,r));let o=t>=r?t:r;return Number(((n*i-e*i)/i).toFixed(o))},Mul:(n,e)=>{let t=0,r=n.toString(),i=e.toString();try{t+=r.split(".")[1].length}catch{}try{t+=i.split(".")[1].length}catch{}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,t)},Div:(n,e)=>{let t=0,r=0;try{t=n.toString().split(".")[1].length}catch{}try{r=e.toString().split(".")[1].length}catch{}let i=Number(n.toString().replace(".","")),o=Number(e.toString().replace(".",""));return i/o*Math.pow(10,r-t)}},jl="YYYY-MM-DD HH:mm:ss",ut=(n,e)=>n==null?e:n,Ce={ADD:function(n,e){return St.Add(ut(n,"0"),ut(e,"0"))},SUB:function(n,e){return St.Sub(ut(n,"0"),ut(e,"0"))},MUL:function(n,e){return St.Mul(ut(n,"0"),ut(e,"0"))},DIV:function(n,e){return St.Div(ut(n,"0"),ut(e,"0"))},SUM:function(...n){return(n||[]).reduce((e,t)=>St.Add(e,Array.isArray(t)?Ce.SUM(...t):t||0),0)},MAX:function(...n){const e=Array.isArray(n[0])?n[0]:n;return Math.max(...e.map(t=>parseFloat(t)).filter(t=>!isNaN(t)))},MIN:function(...n){const e=Array.isArray(n[0])?n[0]:n;return Math.min(...e.map(t=>parseFloat(t)).filter(t=>!isNaN(t)))},ABS:function(n){return parseFloat(Math.abs(n))||0},AVG:function(...n){const e=Array.isArray(n[0])?n[0]:n;return e.length?St.Div(Ce.SUM(e),e.length):0},POWER:function(n,e){return Math.pow(parseFloat(n),parseFloat(e))},RAND:function(){return Math.random()},CEIL:function(n){return Math.ceil(parseFloat(n))||0},FLOOR:function(n){return Math.floor(parseFloat(n)||0)},FIXED:function(n,e){const t=Math.pow(10,e||0);return(Math.floor(parseFloat(n)*t)/t).toFixed(e||0)},ISNUMBER:function(n){return n===""||n===null?!1:!isNaN(Number(n))},PI:function(){return Number(Math.PI)},ROUND:function(n,e){return n=parseFloat(n),isNaN(n)?0:parseFloat(n.toFixed(parseFloat(e)||0))},SQRT:function(n){return Math.sqrt(parseFloat(n))||0},TONUMBER:function(n){return parseFloat(n)||0},MODIFYDATE:function(n,e,t,r){if(!n)return null;let i=Fl(n);return e>0?i=i.add(e,t):e<0&&(i=i.subtract(-1*e,t)),i.format(r||jl)},ADDYEAR:function(n,e,t){return Ce.MODIFYDATE(n,Math.max(e,0),"y",t)},ADDMONTH:function(n,e,t){return Ce.MODIFYDATE(n,Math.max(e,0),"M",t)},ADDDAY:function(n,e,t){return Ce.MODIFYDATE(n,Math.max(e,0),"d",t)},ADDHOUR:function(n,e,t){return Ce.MODIFYDATE(n,Math.max(e,0),"h",t)},ADDMINUTE:function(n,e,t){return Ce.MODIFYDATE(n,Math.max(e,0),"m",t)},ADDSECOND:function(n,e,t){return Ce.MODIFYDATE(n,Math.max(e,0),"s",t)},ADDWEEK:function(n,e,t){return Ce.MODIFYDATE(n,Math.max(e,0),"w",t)},SUBYEAR:function(n,e,t){return e=Math.max(e,0),Ce.MODIFYDATE(n,e>0?-1*e:0,"y",t)},SUBMONTH:function(n,e,t){return e=Math.max(e,0),Ce.MODIFYDATE(n,e>0?-1*e:0,"M",t)},SUBDAY:function(n,e,t){return e=Math.max(e,0),Ce.MODIFYDATE(n,e>0?-1*e:0,"d",t)},SUBHOUR:function(n,e,t){return e=Math.max(e,0),Ce.MODIFYDATE(n,e>0?-1*e:0,"h",t)},SUBMINUTE:function(n,e,t){return e=Math.max(e,0),Ce.MODIFYDATE(n,e>0?-1*e:0,"m",t)},SUBSECOND:function(n,e,t){return e=Math.max(e,0),Ce.MODIFYDATE(n,e>0?-1*e:0,"s",t)},SUBWEEK:function(n,e,t){return e=Math.max(e,0),Ce.MODIFYDATE(n,e>0?-1*e:0,"w",t)},NOW:function(){const n=new Date,e=n.getFullYear(),t=("0"+(n.getMonth()+1)).slice(-2),r=("0"+n.getDate()).slice(-2),i=("0"+n.getHours()).slice(-2),o=("0"+n.getMinutes()).slice(-2),a=("0"+n.getSeconds()).slice(-2);return e+"-"+t+"-"+r+" "+i+":"+o+":"+a},TODAY:function(){const n=new Date,e=n.getFullYear(),t=("0"+(n.getMonth()+1)).slice(-2),r=("0"+n.getDate()).slice(-2);return e+"-"+t+"-"+r},YEAR:function(n){return n?new Date(n).getFullYear():null},MONTH:function(n){return n?new Date(n).getMonth()+1:null},DAY:function(n){return n?new Date(n).getDate():null},HOUR:function(n){return n?new Date(n).getHours():null},MINUTE:function(n){return n?new Date(n).getMinutes():null},SECOND:function(n){return n?new Date(n).getSeconds():null},DIFFDAYS:function(n,e){const t=new Date(n),r=new Date(e);return parseInt(Math.ceil(Math.abs(r.getTime()-t.getTime())/(1e3*60*60*24)))},DIFFHOURS:function(n,e){const t=new Date(n),r=new Date(e);return parseFloat(Math.abs(r.getTime()-t.getTime())/(1e3*60*60)).toFixed(2)},DIFFMINUTES:function(n,e){const t=new Date(n),r=new Date(e);return parseInt(Math.ceil(Math.abs(r.getTime()-t.getTime())/(1e3*60)))},TIMESTAMP:function(n){return Date.parse(n)},STARTSWITH:function(n,e){return(""+n).substring(0,(""+e).length)===e},EMPTY:function(n){return ze.empty(n)},NOTEMPTY:function(n){return!ze.empty(n)},LEN:function(n){return Array.isArray(n)?n.length:0},MOD:function(n,e){return n=parseFloat(n),e=parseFloat(e),!n||!e||isNaN(n)||isNaN(e)?0:n%e},SLICELEFT:function(n,e){return(""+n).slice(0,Number(e)||0)},SLICERIGHT:function(n,e){return(""+n).slice(Number(e)*-1)},TOLOWER:function(n){return(""+n).toLowerCase()},TOUPPER:function(n){return(""+n).toUpperCase()},INCLUDES:function(n,e){return(n||"").indexOf(e||"")},REPLACE:function(n,e,t){return(n||"").replace(e||"",t||"")},REPLACEALL:function(n,e,t){return(n||"").replaceAll(e||"",t||"")},TRIM:function(n){return(n||"").trim()},TOCHINSESAMOUNT:function(n){let e=["\u96F6","\u58F9","\u8D30","\u53C1","\u8086","\u4F0D","\u9646","\u67D2","\u634C","\u7396"],t=["","\u4E07","\u4EBF","\u4E07\u4EBF","\u4EBF\u4EBF"],r=["","\u62FE","\u4F70","\u4EDF"],i=["\u89D2","\u5206"];function o(g){let $="",S="",O=0,M=!0;for(;g>0;){let q=g%10;q===0?M||(M=!0,S=e[q]+S):(M=!1,$=e[q],$+=r[O],S=$+S),O++,g=Math.floor(g/10)}return S}let a=0,s="",l="",f=!1;if(n===0)return e[0];let c=Math.floor(n),p=Math.round((n-c)*100);for(;c>0;){let g=c%1e4;f&&(l=e[0]+l),s=o(g),s+=g!==0?t[a]:t[0],l=s+l,f=g<1e3&&g>0,c=Math.floor(c/1e4),a++}return l&&(l+="\u5143"),p>0?(l+=e[Math.floor(p/10)]+i[0],p%10!==0&&(l+=e[p%10]+i[1])):l&&(l+="\u6574"),l},UNION:function(...n){return(Array.isArray(n[0])?n[0]:n).filter((t,r,i)=>i.indexOf(t)===r)},AND:function(...n){return!!n.reduce((e,t)=>e&&t,!0)},OR:function(...n){return!!n.reduce((e,t)=>e||t,!1)},IF:function(n,e=!0,t=!1){return n?e:t},DEFAULT:function(n,e){return ze.Undef(n)?e:n},CASE:function(...n){for(let e=0;e<n.length-1;e+=2)if(n[e])return n[e+1];return null},COLUMN:function(n,e){const t=[];return Array.isArray(n)&&n.forEach(function(r){Array.isArray(r)?t.push(...Ce.COLUMN(r,e)):r&&t.push(r[e])}),t},VALUE:function(n,e,t){const r=(""+e).split(".");let i=n;for(let o=0;o<r.length;o++)if(Wi(i,r[o]))i=i[r[o]];else return t;return i},CONCAT:function(...n){return"".concat(...n)},INTERSECTIONSET:function(n,e){const t=[];for(let r=0;r<n.length;r++){const i=n[r];e.indexOf(i)!==-1&&t.indexOf(i)===-1&&t.push(i)}return t},LIST:function(...n){return n},IN:function(n,e){return(n||[]).indexOf(e)>-1},FALSE:function(){return!1},TRUE:function(){return!0},NOT:function(n){return!n},EQ:function(n,e){return n===e},GE:function(n,e){return n>=e},GT:function(n,e){return n>e},LE:function(n,e){return n<=e},LT:function(n,e){return n<e},NE:function(n,e){return n!==e}},f0="",Se=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t},Ji=n=>{const e=[];return n.forEach(t=>{t.field&&e.push(t.field),t.children&&e.push(...Ji(t.children))}),e},Il=u.defineComponent({name:"StepForm",props:{stepsProps:Object,modelValue:Object,formCreateInject:Object,autoValidate:Boolean,submitBtn:Boolean,steps:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>u.reactive({submitBtn:!1,resetBtn:!1})}},emits:["update:modelValue","change","itemMounted","submit","next"],data(){return{active:0,cacheRule:[],cacheValue:{},subApi:{},Form:u.markRaw(this.formCreateInject.form.$form())}},watch:{active(){this.init()},modelValue(n){this.setValue(n)}},methods:{init(){this.steps.forEach((n,e)=>{this.cacheRule[e]?this.cacheRule[e].display=e===this.active:this.cacheRule[e]={type:"FcRow",native:!0,display:e===this.active,children:n.rule}})},onPrev(){this.active--},validate(){return new Promise((n,e)=>{const t=Ji(this.cacheRule[this.active].children);t.length>0?Promise.all(t.map(r=>this.subApi.validateField(r))).then(()=>{n()}).catch(r=>{e(r)}):n()})},onNext(){this.autoValidate?this.validate().then(()=>{this.active++}).catch(n=>{}):this.active++,this.$emit("next",{active:this.active,api:this.subApi})},submit(){const n=()=>{this.$emit("submit",this.subApi.formData(),this.subApi)};this.autoValidate?this.validate().then(()=>{n()}).catch(e=>{}):n()},addSubApi(n){this.subApi=n,this.$emit("itemMounted",n)},formData(n){this.cacheValue=JSON.stringify(n),this.$emit("update:modelValue",n),this.$emit("change",n)},setValue(n){const e=JSON.stringify(n);this.cacheValue!==e&&(this.cacheValue=e,this.subApi.coverValue(n||{}))}},created(){this.init()}}),Bl={class:"_fc-step-form"};function Nl(n,e,t,r,i,o){const a=u.resolveComponent("van-step"),s=u.resolveComponent("van-steps"),l=u.resolveComponent("van-button"),f=u.resolveComponent("van-col"),c=u.resolveComponent("van-row");return u.openBlock(),u.createElementBlock("div",Bl,[u.createVNode(s,u.mergeProps({active:n.active},n.stepsProps),{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.steps,p=>(u.openBlock(),u.createBlock(a,u.mergeProps({ref_for:!0},p.props),{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(p.props.title),1)]),_:2},1040))),256))]),_:1},16,["active"]),(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.Form),{option:n.options,rule:n.cacheRule,extendOption:!0,modelValue:n.modelValue,"onUpdate:api":n.addSubApi,onEmitEvent:n.$emit,"onUpdate:modelValue":n.formData},null,40,["option","rule","modelValue","onUpdate:api","onEmitEvent","onUpdate:modelValue"])),u.createVNode(c,null,{default:u.withCtx(()=>[u.createVNode(f,{span:24,style:{"margin-top":"15px"}},{default:u.withCtx(()=>[n.active>0?(u.openBlock(),u.createBlock(l,{key:0,block:"",size:"small",onClick:n.onPrev},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(n.formCreateInject.t("prevStep")||"\u4E0A\u4E00\u6B65"),1)]),_:1},8,["onClick"])):u.createCommentVNode("",!0),n.active<n.cacheRule.length-1?(u.openBlock(),u.createBlock(l,{key:1,block:"",size:"small",type:"primary",onClick:n.onNext},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(n.formCreateInject.t("nextStep")||"\u4E0B\u4E00\u6B65"),1)]),_:1},8,["onClick"])):u.createCommentVNode("",!0),n.submitBtn!==!1&&n.active===n.cacheRule.length-1?(u.openBlock(),u.createBlock(l,{key:2,block:"",size:"small",class:"fc-clock",type:"primary",onClick:n.submit,style:{"margin-top":"10px"}},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(n.formCreateInject.t("submit")||"\u63D0\u4EA4"),1)]),_:1},8,["onClick"])):u.createCommentVNode("",!0)]),_:1})]),_:1})])}const Ll=Se(Il,[["render",Nl]]);function Ot(n,e,t){n[e]=t}function Ki(n,e={},t){let r=!1;for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let o=e[i];if((r=Array.isArray(o))||ze.Object(o)){let a=n[i]===void 0;if(r)r=!1,a&&Ot(n,i,[]);else if(o._clone&&t!==void 0)if(t)o=o.getRule(),a&&Ot(n,i,{});else{Ot(n,i,o._clone());continue}else a&&Ot(n,i,{});n[i]=Ki(n[i],o,t)}else Ot(n,i,o),ze.Undef(o)||(ze.Undef(o.__json)||(n[i].__json=o.__json),ze.Undef(o.__origin)||(n[i].__origin=o.__origin))}return t!==void 0&&Array.isArray(n)?n.filter(i=>!i||!i.__ctrl):n}function Qe(n){return Ki({},{value:n}).value}const d0="",zl=u.defineComponent({name:"FcPopup",emits:["confirm","submit","validateFail","update:modelValue"],props:{formData:Object,options:{type:Object,default:()=>u.reactive({submitBtn:!1,resetBtn:!1})},rule:Array,autoClose:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},preview:Boolean,modelValue:Object,formCreateInject:Object,title:String},computed:{formOptions(){const n={...this.options};return this.preview&&(n.preview=this.preview),n}},data(){return{visible:!1,fapi:{},value:{},formRule:[],Form:u.markRaw(this.formCreateInject.form.$form())}},methods:{formChange(){this.$emit("update:modelValue",this.fapi.formData())},open(n){this.$nextTick(()=>{this.visible=!0,this.value=Qe(n||this.modelValue||this.formData||{}),this.formRule=Qe(this.rule||[])})},close(){this.visible=!1},handleConfirm(){this.$emit("confirm",this.fapi),this.fapi.submit().then(n=>{this.$emit("submit",n,this.fapi,this.close),this.autoClose&&this.close()}).catch(n=>{this.$emit("validateFail",n,this.fapi)})}},mounted(){this.formCreateInject.api.top.bus.$on("fc.closeDialog",this.close),u.onUnmounted(()=>{this.formCreateInject.api.top.bus.$off("fc.closeDialog",this.close)})}}),Ul={class:"_fc-popup-title"},ql={class:"_fc-popup-content"},Gl={class:"_fc-popup-footer"};function Hl(n,e,t,r,i,o){const a=u.resolveComponent("van-button"),s=u.resolveComponent("van-popup");return u.openBlock(),u.createBlock(s,u.mergeProps({class:"_fc-popup",closeable:""},n.$attrs,{show:n.visible,"onUpdate:show":e[1]||(e[1]=l=>n.visible=l)}),{default:u.withCtx(()=>[u.createElementVNode("div",Ul,u.toDisplayString(n.title),1),u.createElementVNode("div",ql,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.Form),{option:n.formOptions,rule:n.formRule,extendOption:!0,api:n.fapi,"onUpdate:api":e[0]||(e[0]=l=>n.fapi=l),"model-value":n.value,subForm:!1,onChange:n.formChange,onEmitEvent:n.$emit},null,40,["option","rule","api","model-value","onChange","onEmitEvent"]))]),u.createElementVNode("div",Gl,[n.footer!==!1?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createVNode(a,{block:"",size:"small",type:"primary",class:"fc-clock",onClick:n.handleConfirm},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(n.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["onClick"]),u.createVNode(a,{block:"",size:"small",class:"fc-clock",style:{"margin-top":"10px"},onClick:n.close},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(n.formCreateInject.t("close")||"\u5173\u95ED"),1)]),_:1},8,["onClick"])],64)):u.createCommentVNode("",!0)])]),_:1},16,["show"])}const Wl=Se(zl,[["render",Hl]]);function Yl(n,e,t){return`[form-create ${n}]: ${e}`+(t?`
rule: `+JSON.stringify(t.getRule?t.getRule():t):"")}function Xl(n,e){console.error(Yl("err",n,e))}const Zi="[[FORM-CREATE-PREFIX-",Qi="-FORM-CREATE-SUFFIX]]";function tr(n){return new Function("return "+n)()}function dn(n,e){if(n&&ze.String(n)&&n.length>4){let t=n.trim(),r=!1;try{if(t.indexOf(Qi)>0&&t.indexOf(Zi)===0)t=t.replace(Qi,"").replace(Zi,""),r=!0;else if(t.indexOf("$FN:")===0)t=t.substring(4),r=!0;else if(t.indexOf("$EXEC:")===0)t=t.substring(6),r=!0;else if(t.indexOf("$GLOBAL:")===0){const o=t.substring(8);return t=function(...a){const s=a[0].api.getGlobalEvent(o);if(s)return s.call(this,...a)},t.__json=n,t.__inject=!0,t}else{if(t.indexOf("$FNX:")===0)return t=tr("function($inject){"+t.substring(5)+"}"),t.__json=n,t.__inject=!0,t;(!e&&t.indexOf("function ")===0&&t!=="function "||!e&&t.indexOf("function(")===0&&t!=="function(")&&(r=!0)}if(!r)return n;let i;try{i=tr(t)}catch{i=tr("function "+t)}return i.__json=n,i}catch(i){Xl(`\u89E3\u6790\u5931\u8D25:${t}
err: ${i}`);return}}return n}const h0="",Jl=u.defineComponent({name:"DataTable",emits:["sortChange","handleClick"],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 n=this.list||[];const e=[];return this.column.forEach(t=>{t.prop&&Array.isArray(t.filter)&&t.filter.length>0&&e.push(r=>t.filter.indexOf(r[t.prop])>-1)}),e.forEach(t=>{n=n.filter(t)}),n}},render(){return u.withDirectives(u.h("div",{class:"_fc-data-table"},[u.h(u.resolveComponent("el-table"),{data:this.filterList,...this.$attrs,key:this.id,ref:"table",onSortChange:n=>{this.$emit("sortChange",n),n.order?(this.orderBy=n.order==="descending"?"DESC":"ASC",this.order=n.prop):(this.orderBy="",this.order=""),this.initPage()}},()=>{const n=this.column.filter(t=>t.hidden!==!0).map(t=>this.makeColumn(t));this.selection&&n.unshift(u.h(u.resolveComponent("el-table-column"),{type:"selection",width:"50px"}));const e=this.makeButtonCol();return e&&n.push(e),this.index&&n.unshift(u.h(u.resolveComponent("el-table-column"),{type:"index",width:"50px"})),n}),this.makePage()]),[[u.resolveDirective("loading"),this.loading]])},methods:{getEl(){return this.$refs.table},deepGet(n,e,t){e=(e||"").split(".");let r=0,i=e.length;for(;n!=null&&r<i;)n=n[e[r++]];return r&&r===i&&n!=null?n:t},initPage(){this.loading=!1,this.page&&this.page.open?(this.currentPage=1,this.nextList()):this.globalDataKey||this.fetch?this.fetchData().then(({list:n})=>{this.list=n}):this.list=this.data},btnProps(n,e){const t=n.prop||[],r={type:n.type,size:n.size,round:t.indexOf("round")>-1,link:t.indexOf("link")>-1,plain:t.indexOf("plain")>-1,disabled:t.indexOf("disabled")>-1,onClick:o=>{o.stopPropagation();const a=dn(n.click);try{a&&a(e,this.formCreateInject.api)}catch(s){console.error(s)}this.$emit("handleClick",{name:n.name,key:n.key,scope:e,column:e.row})}},i=dn(n.handle);try{const o=i&&i(r,e,this.formCreateInject.api);typeof o=="boolean"&&(r.disabled=o)}catch(o){console.error(o)}return r},getLimit(){return this.page.props&&this.page.props.pageSize||20},nextList(){if(this.globalDataKey||this.fetch)this.fetchData(!0).then(({list:n,total:e})=>{this.list=n,this.total=e});else{const n=this.data,e=this.getLimit(),t=this.currentPage*e;this.list=n.slice(t-e,t),this.total=n.length}},fetchData(n){return this.unwatch&&this.unwatch(),new Promise(e=>{let t=this.fetch;if(this.globalDataKey){const r=typeof this.globalDataKey=="string"?this.globalDataKey:this.globalDataKey.key;t=this.formCreateInject.api.options.globalData[r]}if(t)if(t.type==="fetch"||!this.globalDataKey){t={...t};let r={};if(n){const o=this.page.props&&this.page.props.pageSize||20,a=this.page.pageField||"page",s=this.page.pageSizeField||"limit";r={[a]:this.currentPage,[s]:o}}if(this.order){const o=this.page.orderField||"order",a=this.page.orderByField||"orderBy";r[o]=this.order,r[a]=this.orderBy}const i=Object.keys(r).map(o=>encodeURIComponent(o)+"="+encodeURIComponent(r[o]),"").join("&");i&&(t.action+=(t.action.indexOf("?")!==-1?"&":"?")+i),this.loading=!0,t.wait=1e3,this.unwatch=this.formCreateInject.api.watchFetch(t,(o,a)=>{this.loading=!1;const s=this.page.totalField,l=this.page.dataField,f=l?this.deepGet(o,l,[]):o;let c=s?this.deepGet(o,s):0;c||(c=f.length||0),e({list:f,total:c})},o=>{console.error(o),this.loading=!1},(o,a)=>{if(a)return this.unwatch&&this.unwatch(),this.unwatch=null,setTimeout(()=>{this.changePage(1)}),!1})}else{let r=t.data||[],i=t.data.length;if(n){const o=this.getLimit(),a=this.currentPage*o;r=r.slice(a-o,a),i=r.length}e({list:r,total:i})}else e({list:[],total:0})})},changePage(n){this.currentPage=n,this.nextList()},makePage(){if(this.page&&this.page.open===!0)return u.h(u.resolveComponent("el-pagination"),{layout:"prev, pager, next",total:this.total,currentPage:this.currentPage,"onUpdate:currentPage":n=>{this.currentPage!==n&&this.changePage(n)},class:this.page.position||"right",...this.page.props||{},pageSize:this.page.props&&this.page.props.pageSize||20})},makeButtonCol(){if(this.button&&this.button.open===!0&&this.button.column)return u.h(u.resolveComponent("el-table-column"),{label:this.button.label||this.formCreateInject.t("operation")||"\u64CD\u4F5C",fixed:this.button.fixed===void 0?"right":this.button.fixed,width:this.button.width||"100px"},{default:n=>this.button.column.filter(e=>e.hidden!==!0).map(e=>u.h(u.resolveComponent("el-button"),this.btnProps(e,n),()=>[e.name]))})},makeColumn(n){return u.h(u.resolveComponent("el-table-column"),{label:n.label,prop:n.prop,width:n.width,align:n.align,className:n.className,fixed:n.fixed,sortable:n.sortable},{default:e=>{if(n.children&&n.children.length>0)return n.children.map(t=>this.makeColumn(t));if(!(!n.format||n.format==="default"))return this.makeTd(n,e)}})},makeTd(n,e){return n.format==="custom"&&n.render?n.render(e,u.h,u.resolveComponent,this.formCreateInject.api):n.format==="tag"?u.h(u.resolveComponent("el-tag"),{disableTransitions:!0},()=>[this.deepGet(e.row,n.prop,"")]):n.format==="image"?u.h("div",{class:"_fc-data-table-img-list"},(()=>{let t=this.deepGet(e.row,n.prop,"");return t=(Array.isArray(t)?t:[t]).filter(r=>!!r),t.map((r,i)=>u.h(u.resolveComponent("el-image"),{src:r,previewSrcList:t,previewTeleported:!0,initialIndex:i,fit:"cover"}))})()):""+this.deepGet(e.row,n.prop,"")}},created(){this.initPage(),this.$watch(()=>this.data&&this.data.length,()=>{!this.globalDataKey&&!this.fetch&&this.initPage()})}}),p0="",Kl={name:"FcTable",props:{mini:Boolean,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 n={};return this.border===!1?n.border="0 none":(this.borderColor&&(n.borderColor=this.borderColor),this.borderWidth&&(n.borderWidth=this.borderWidth)),n}},methods:{initRule(){const n=this.rule;n.style||(n.style={}),n.layout||(n.layout=[]),n.row||(n.row=1),n.col||(n.col=1)},loadRule(){const n=[],e=this.rule||{row:1,col:1};for(let r=0;r<e.row;r++){const i=[];n.push(i);for(let o=0;o<e.col;o++)i.push({rowspan:1,colspan:1,slot:[],show:!0})}[...e.layout||[]].forEach((r,i)=>{if((!r.row||r.row<=0)&&(!r.col||r.col<=0)||!n[r.top]||!n[r.top][r.left]||!n[r.top][r.left].show){e.layout.splice(i,1);return}const o=n[r.top][r.left];o.layout=r;let a=1,s=1;if(r.col&&(a=r.col+r.left>e.col?e.col-r.left:r.col,o.colspan=a),r.row&&(s=r.row+r.top>e.row?e.row-r.top:r.row,o.rowspan=s),s&&a)for(let l=0;l<s;l++){const f=n[r.top+l];if(f)for(let c=0;c<a;c++)!c&&!l||(f[r.left+c]&&(f[r.left+c].show=!1),o.slot.push(`${r.top+l}:${r.left+c}`))}});const t=r=>!!(!r||r.layout||!r.show);n.forEach((r,i)=>{r.forEach((o,a)=>{let s=!1,l=!1;if(o.layout){const f=o.layout.col||1,c=o.layout.row||1;for(let p=0;p<f;p++)if(!n[i+c]||t(n[i+c][a+p])){l=!0;continue}for(let p=0;p<c;p++)if(!n[i+p]||t(n[i+p][a+f])){s=!0;continue}}else s=t(r[a+1]),l=n[i+1]?t(n[i+1][a]):!0;o.right=s,o.bottom=l})}),this.lattice=n}}};function Zl(n,e,t,r,i,o){const a=u.resolveComponent("el-col");return u.openBlock(),u.createBlock(a,{span:24},{default:u.withCtx(()=>[u.createElementVNode("div",{class:u.normalizeClass(["_fc-table",{"is-mini":t.mini}])},[u.createElementVNode("table",{border:"1",cellspacing:"0",cellpadding:"0",style:u.normalizeStyle(o.tableColor)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.rule.row,(s,l)=>(u.openBlock(),u.createElementBlock("tr",{key:l},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.rule.col,(f,c)=>(u.openBlock(),u.createElementBlock(u.Fragment,{key:`${l}${c}`},[i.lattice[l][c].show?(u.openBlock(),u.createElementBlock("td",u.mergeProps({key:0,ref_for:!0},i.lattice[l][c]?{colspan:i.lattice[l][c].colspan,rowspan:i.lattice[l][c].rowspan}:{},{valign:"top",class:i.tdClass&&i.tdClass[`${l}:${c}`]||"",style:[o.tableColor,i.tdStyle&&i.tdStyle[`${l}:${c}`]||{}]}),[u.renderSlot(n.$slots,`${l}:${c}`),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.lattice[l][c].slot,p=>u.renderSlot(n.$slots,`${p}`)),256))],16)):u.createCommentVNode("",!0)],64))),128))]))),128))],4)],2)]),_:3})}const Ql=Se(Kl,[["render",Zl]]),m0="",eu={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},deletable:{type:Boolean,default:!0},addable:{type:Boolean,default:!0},options:{type:Object,default:()=>u.reactive({submitBtn:!1,resetBtn:!1})},max:Number,min:Number,disabled:Boolean},watch:{modelValue:{handler(){this.updateTable()},deep:!0},"formCreateInject.preview":function(n){this.emptyRule.children[0].props.colspan=this.columns.length+(n?1:2)}},data(){return{rule:[],trs:[],fapi:{},Form:u.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 n=this.trs.map((t,r)=>({...this.modelValue[r]||{},...this.fapi.getChildrenFormData(t)})).filter(t=>{if(!this.filterEmptyColumn)return!0;if(t==null)return!1;let r=!1;return Object.keys(t).forEach(i=>{r=r||t[i]!==void 0&&t[i]!==""&&t[i]!==null}),r}),e=JSON.stringify(n);e!==this.oldValue&&(this.oldValue=e,this.$emit("update:modelValue",n),this.$emit("change",n))},setRawData(n,e){const t=this.trs[n];this.fapi.setChildrenFormData(t,e,!0)},updateTable(){const n=JSON.stringify(this.modelValue);this.oldValue!==n&&(this.oldValue=n,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length?this.clearEmpty():this.addEmpty(),this.modelValue.forEach((e,t)=>{this.trs[t]||this.addRaw(),this.setRawData(t,e||{})}),this.rule[0].children[1].children=this.trs)},addEmpty(){this.trs.length&&this.trs.splice(0,this.trs.length),this.trs.push(this.emptyRule)},clearEmpty(){this.trs[0]&&this.trs[0]._isEmpty&&this.trs.splice(0,1)},delRaw(n){this.disabled||!this.deletable||this.min>0&&this.trs.length<=this.min||(this.trs.splice(n,1),this.updateValue(),this.trs.length?this.trs.forEach(e=>this.updateRaw(e)):this.addEmpty(),this.$emit("delete",n))},addRaw(n){if(n&&this.disabled)return;const e=this.formCreateInject.form.parseJson(this.copyTrs)[0];this.trs.length===1&&this.trs[0]._isEmpty&&this.trs.splice(0,1),this.trs.push(e),this.updateRaw(e),n&&(this.$emit("add",this.trs.length),this.updateValue())},updateRaw(n){const e=this.trs.indexOf(n);n.children[0].props.innerText=e+1,n.children[n.children.length-1].children[0].props.onClick=()=>{this.delRaw(e)}},loadRule(){const n=[{type:"th",native:!0,class:"_fc-tf-head-idx",props:{innerText:"#"}}];let e=[{type:"td",class:"_fc-tf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(t=>{n.push({type:"th",native:!0,style:t.style,class:t.required?"_fc-tf-head-required":"",props:{innerText:t.label||""}}),e.push({type:"td",native:!0,children:[...t.rule||[]]})}),n.push({type:"th",native:!0,class:"_fc-tf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),e.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:e}]),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:n}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function tu(n,e,t,r,i,o){const a=u.resolveComponent("el-button");return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["_fc-table-form",{"_fc-disabled":t.disabled}])},[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(i.Form),{option:t.options,rule:i.rule,extendOption:!0,disabled:t.disabled,onChange:o.formChange,api:i.fapi,"onUpdate:api":e[0]||(e[0]=s=>i.fapi=s),onEmitEvent:n.$emit},null,40,["option","rule","disabled","onChange","api","onEmitEvent"])),t.addable&&(!t.max||t.max>this.trs.length)?(u.openBlock(),u.createBlock(a,{key:0,link:"",type:"primary",class:"fc-clock",onClick:e[1]||(e[1]=s=>o.addRaw(!0))},{default:u.withCtx(()=>[e[2]||(e[2]=u.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),u.createTextVNode(" "+u.toDisplayString(t.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1})):u.createCommentVNode("",!0)],2)}const nu=Se(eu,[["render",tu]]),ru=Object.assign||function(n){for(let e,t=1;t<arguments.length;t++)for(let r in e=arguments[t],e)Object.prototype.hasOwnProperty.call(e,r)&&Ot(n,r,e[r]);return n};function eo(){return ru.apply(this,arguments)}let iu=0;function nr(){const n=370+ ++iu;return"F"+Math.random().toString(36).substr(3,3)+Number(`${Date.now()}`).toString(36)+n.toString(36)+"c"}const g0="",ou={name:"TableFormPro",emits:["change","add","delete","update:modelValue","handleClick"],props:{formCreateInject:Object,height:[String,Number],modelValue:{type:Array,default:()=>[]},columns:{type:Array,required:!0,default:()=>[]},button:Object,page:Object,size:String,filterEmptyColumn:{type:Boolean,default:!0},newColumn:Boolean,deletable:{type:Boolean,default:!0},addable:{type:Boolean,default:!0},options:{type:Object,default:()=>u.reactive({submitBtn:!1,resetBtn:!1})},showIndex:Boolean,max:Number,min:Number,disabled:Boolean},watch:{modelValue:{handler(){const n=JSON.stringify(this.modelValue||[]);this.oldValue!==n&&(this.chunk=[[]],this.nowPage=1,this.updateTable(),this.oldValue=n)}}},computed:{total(){return this.chunk.reduce((n,e)=>(n+=e.length,n),0)},limit(){return!this.page||this.page.open!==!0?1e6:this.page.props&&this.page.props.pageSize||20},pageData(){return this.chunk[this.nowPage-1]}},data(){return{chunk:[[]],data:[],rule:[],trs:[],fapi:{},Form:u.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:"",nowPage:1,indexRule:{type:"el-table-column",props:{label:"#",type:"index",fixed:"left"}}}},methods:{paginateArray(){const n=this.modelValue||[],e=this.limit,t=[];for(let r=0;r<n.length;r+=e){const i=n.slice(r,r+e);t.push(i)}t.length&&t.forEach((r,i)=>{this.chunk[i]=[...this.chunk[i]||[],...r]}),this.nowPage>this.chunk.length&&(this.nowPage=this.chunk.length)},formChange(){this.updateValue()},updateValue(){this.trs.forEach((t,r)=>{eo(this.pageData[r],this.fapi.getChildrenFormData(t))});const n=Qe(this.chunk.reduce((t,r)=>[...t,...r],[]).filter(t=>{if(!this.filterEmptyColumn)return!0;if(t==null)return!1;let r=!1;return Object.keys(t).forEach(i=>{r=r||t[i]!==void 0&&t[i]!==""&&t[i]!==null}),r})),e=JSON.stringify(n);e!==this.oldValue&&(this.oldValue=e,this.$emit("update:modelValue",n),this.$emit("change",n))},setRawData(n,e){const t=this.trs[n];this.fapi.setChildrenFormData(t,e,!0)},changePage(n){n!==this.nowPage&&(this.chunk[this.nowPage-1]=this.pageData,this.nowPage=n,this.rule[1].props.data=this.pageData,this.trs.splice(0,this.trs.length),this.pageData.forEach((e,t)=>{this.trs[t]||this.addRaw(),this.setRawData(t,e||{})}),this.rule[0].children=this.trs)},updateTable(){this.paginateArray(),this.rule[1].props.data=this.pageData,this.trs.splice(0,this.trs.length),this.pageData.forEach((n,e)=>{this.trs[e]||this.addRaw(),this.setRawData(e,n||{})}),this.rule[0].children=this.trs},delRaw(n){this.disabled||this.deletable===!1||this.min>0&&this.total<=this.min||(this.trs.splice(n,1),this.rule[1].props.data.splice(n,1),this.updateValue(),this.$emit("delete",n),this.oldValue="")},addRaw(n){if(!(n&&(this.disabled||this.addable===!1))){if(!n){const e=this.formCreateInject.form.parseJson(this.copy);this.trs.push(e);return}if(this.chunk[this.chunk.length-1].length>=this.limit)this.chunk.push([{}]);else if(n&&this.chunk[this.chunk.length-1].push({}),n&&this.nowPage===this.chunk.length){const e=this.formCreateInject.form.parseJson(this.copy);this.trs.push(e)}n&&(this.$emit("add",this.total),this.updateValue())}},btnProps(n,e){const t={...e};t.row=this.modelValue[e.$index]||{};const r=n.prop||[],i={type:n.type,size:n.size,round:r.indexOf("round")>-1,link:r.indexOf("link")>-1,plain:r.indexOf("plain")>-1,disabled:r.indexOf("disabled")>-1||this.disabled||n.key==="delete"&&this.deletable===!1,onClick:o=>{if(t.row=this.modelValue[e.$index]||{},o.stopPropagation(),n.key==="delete"){this.delRaw(e.$index);return}const a=dn(n.click);try{a&&a(t,this.formCreateInject.api)}catch(s){console.error(s)}this.$emit("handleClick",{name:n.name,key:n.key,_scope:t,column:t.row})}};try{if(!this.disabled){const o=dn(n.handle),a=o&&o(i,t,this.formCreateInject.api);typeof a=="boolean"&&(i.disabled=a)}}catch(o){console.error(o)}return i},processRule(n){let e=[];return n.forEach(t=>{t.children?e.push(...this.processRule(t.children)):(t._renderId=nr(),e.push({type:"template",name:t._renderId,children:[...t.rule||[]]}))}),e},processColumns(n){return n.map((e,t)=>{var i;const r={type:"el-table-column",hidden:e.hidden===!0,props:{fixed:e.fixed||!1,width:((i=e==null?void 0:e.style)==null?void 0:i.width)||"auto",minWidth:120},renderSlots:{header(){var o;return u.h("span",{class:e.required?"is-required":"",style:{color:(o=e==null?void 0:e.style)==null?void 0:o.color}},e.label)}}};return e.children?r.children=this.processColumns(e.children):r.renderSlots.default=({$index:o})=>{var a,s,l,f,c,p,g,$;for(let S=0;S<((s=(a=this.rule[0])==null?void 0:a.children[o])==null?void 0:s.children.length);S++)if(((f=(l=this.rule[0])==null?void 0:l.children[o])==null?void 0:f.children[S].name)===e._renderId)return($=(g=this.fapi.renderRule((p=(c=this.rule[0])==null?void 0:c.children[o])==null?void 0:p.children[S],void 0,!0))==null?void 0:g.default)==null?void 0:$.call(g)},r})},loadRule(){this.copy=this.formCreateInject.form.toJson({type:"template",name:"template",subRule:!0,children:this.processRule(this.columns)}),this.rule=[{type:"hidden",children:this.trs},{type:"elTable",style:{width:"100%"},key:1,props:{...this.$attrs,height:this.height,size:this.size,data:[]},children:[]}]}},created(){this.loadRule()},mounted(){const n=this.fapi.sync;this.fapi.sync=e=>{e.tableRenderUni=nr(),n(e)},this.updateTable(),this.newColumn&&(!this.modelValue||!this.modelValue.length)&&this.addRaw(!0),this.$watch(()=>[...this.columns],e=>{this.rule[1].children.splice(this.rule[1].children.indexOf(this.indexRule)>-1?1:0,0,...this.processColumns(e)),this.rule[1].key++},{immediate:!0}),this.$watch(()=>this.showIndex,e=>{e===!1&&this.rule[1].children.indexOf(this.indexRule)>-1?this.rule[1].children.splice(0,1):e!==!1&&this.rule[1].children.indexOf(this.indexRule)===-1&&this.rule[1].children.unshift(this.indexRule)},{immediate:!0}),this.$watch(()=>this.formCreateInject.preview&&this.button&&this.button.column&&[{...this.button},...this.button.column],e=>{this.rule[1].children.forEach((t,r)=>{t._tableHandle&&this.rule[1].children.splice(r,1)}),!this.formCreateInject.preview&&this.button.open!==!1&&this.rule[1].children.push({type:"el-table-column",_tableHandle:!0,props:{label:this.button.label||this.formCreateInject.t("operation")||"\u64CD\u4F5C",fixed:this.button.fixed===void 0?"right":this.button.fixed,width:this.button.width||"100px"},renderSlots:{default:t=>this.button.column.filter(r=>r.hidden!==!0).map(r=>u.h(u.resolveComponent("el-button"),this.btnProps(r,t),()=>[r.key==="delete"&&this.formCreateInject.t("delete")||r.name]))}})},{immediate:!0})}},au={class:"_fc-tf-pro-handle"};function su(n,e,t,r,i,o){const a=u.resolveComponent("el-button"),s=u.resolveComponent("el-pagination");return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["_fc-table-form-v2",{"_fc-disabled":t.disabled}])},[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(i.Form),{option:t.options,rule:i.rule,extendOption:!0,disabled:t.disabled,onChange:o.formChange,api:i.fapi,"onUpdate:api":e[0]||(e[0]=l=>i.fapi=l),onEmitEvent:n.$emit},null,40,["option","rule","disabled","onChange","api","onEmitEvent"])),u.createElementVNode("div",au,[u.createElementVNode("div",null,[(!t.max||t.max>o.total)&&t.addable!==!1&&t.disabled!==!0?(u.openBlock(),u.createBlock(a,{key:0,link:"",type:"primary",class:"fc-clock",onClick:e[1]||(e[1]=l=>o.addRaw(!0))},{default:u.withCtx(()=>[e[2]||(e[2]=u.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),u.createTextVNode(" "+u.toDisplayString(t.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1})):u.createCommentVNode("",!0)]),t.page&&t.page.open===!0&&i.chunk.length>1?(u.openBlock(),u.createBlock(s,u.mergeProps({key:0},t.page.props||{},{layout:"prev, pager, next",currentPage:i.nowPage,"onUpdate:currentPage":o.changePage,total:o.total,pageSize:o.limit}),null,16,["currentPage","onUpdate:currentPage","total","pageSize"])):u.createCommentVNode("",!0)])],2)}const lu=Se(ou,[["render",su]]),v0="",uu={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:()=>u.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"(n){this.trs.forEach((e,t)=>{e.children[1]&&(e.children[1].children[0].props.colspan=this.rule[0].children[0].children[0].children.length-(n?1:0)),e.children[0].children[0].children[0].hidden=this.layerMax===1||n&&!(this.modelValue&&this.modelValue[t]&&Array.isArray(this.modelValue[t][this.subField])&&this.modelValue[t][this.subField].length>0)})}},data(){return{rule:[],trs:[],fapi:{},Form:u.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:""}},methods:{formChange(n,e,t,r,i){i===!1&&this.updateValue()},updateValue(){const n=this.trs.map((t,r)=>{const i={...this.modelValue[r]||{},...this.fapi.getChildrenFormData(t)};return!Wi(i,this.subField)&&this.modelValue[r]&&(i[this.subField]=this.modelValue[r][this.subField]),i[this.subField]==null&&delete i[this.subField],i}),e=JSON.stringify(n);e!==this.oldValue&&(this.oldValue=e,this.$emit("update:modelValue",n),this.$emit("change",n))},setRawData(n,e){const t=this.trs[n];this.fapi.setChildrenFormData(t,e,!0)},updateTable(){const n=JSON.stringify(this.modelValue);this.oldValue!==n&&(this.oldValue=n,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length||this.addRaw(),this.modelValue.forEach((e,t)=>{this.trs[t]||this.addRaw(),this.setRawData(t,e||{})}),this.rule[0].children[1].children=this.trs)},delRaw(n){this.disabled||(this.trs.splice(n,1),this.updateValue(),this.trs.length?this.trs.forEach(e=>this.updateRaw(e)):this.addRaw(),this.$emit("delete",n))},addRaw(n){if(n&&this.disabled)return;const e=this.formCreateInject.form.parseJson(this.copyTrs)[0],t={type:"template",subRule:!0,children:[]};t.children.push(e),this.trs.push(t),this.trs.forEach(r=>this.updateRaw(r)),n&&this.$emit("add",this.trs)},updateRaw(n){const e=this.trs.indexOf(n),t=n.children[0];t.children[0].children[0].hidden=this.layerMax===1||this.preview&&!(this.modelValue&&this.modelValue[e]&&Array.isArray(this.modelValue[e][this.subField])&&this.modelValue[e][this.subField].length>0),t.children[0].children[0].props.onClick=r=>{if(this.trs[e].children.length===1){if(this.disabled&&!(this.modelValue&&this.modelValue[e]&&Array.isArray(this.modelValue[e][this.subField])&&this.modelValue[e][this.subField].length>0))return;this.trs[e].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[e]&&this.modelValue[e][this.subField]||[]],props:{disabled:this.disabled,layerMax:this.layerMax===0?0:this.layerMax>1?this.layerMax-1:1,max:this.max||0,columns:Qe(this.columns),options:Qe(this.options)}}]}]})}const i=r.self.children[0]==="-"?"+":"-";r.self.children=[i],this.trs[e].children[1].display=i==="-"},t.children[1].props.innerText=e+1,t.children[t.children.length-1].children[0].props.onClick=()=>{this.delRaw(e)}},loadRule(){const n=[{type:"th",native:!0,class:"_fc-itf-sub-idx"},{type:"th",native:!0,class:"_fc-itf-head-idx",props:{innerText:"#"}}];let e=[{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(t=>{n.push({type:"th",native:!0,class:t.required?"_fc-itf-head-required":"",style:t.style,props:{innerText:t.label||""}}),e.push({type:"td",native:!0,children:[...t.rule||[]]})}),n.push({type:"th",native:!0,class:"_fc-itf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),e.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:e}]),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:n}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function cu(n,e,t,r,i,o){const a=u.resolveComponent("el-button");return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["_fc-infinite-table-form",{"_fc-disabled":t.disabled}])},[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(i.Form),{option:t.options,rule:i.rule,extendOption:!0,onChange:o.formChange,disabled:t.disabled,api:i.fapi,"onUpdate:api":e[0]||(e[0]=s=>i.fapi=s),onEmitEvent:n.$emit},null,40,["option","rule","onChange","disabled","api","onEmitEvent"])),!t.max||t.max>this.trs.length?(u.openBlock(),u.createBlock(a,{key:0,link:"",type:"primary",class:"fc-clock",onClick:e[1]||(e[1]=s=>o.addRaw(!0))},{default:u.withCtx(()=>[e[2]||(e[2]=u.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),u.createTextVNode(" "+u.toDisplayString(t.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1})):u.createCommentVNode("",!0)],2)}const fu=Se(uu,[["render",cu]]),y0="",du={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:()=>u.reactive({submitBtn:!1,resetBtn:!1})},max:Number,nestedMax:Number,disabled:Boolean},computed:{preview(){return this.formCreateInject.preview}},watch:{modelValue(){this.updateTable()},"formCreateInject.preview"(n){this.trs.forEach(e=>{const t=e.children[1].children[0].props.colspan;e.children[1].children[0].props.colspan=n?t-1:t+1})}},data(){return{rule:[],trs:[],fapi:{},Form:u.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:""}},methods:{formChange(n,e,t,r,i){i===!1&&this.updateValue()},updateValue(){const n=this.trs.map((t,r)=>({...this.modelValue[r]||{},...this.fapi.getChildrenFormData(t)})).filter(t=>{if(t==null)return!1;let r=!1;return Object.keys(t).forEach(i=>{r||(r=r||t[i]!==void 0&&t[i]!==""&&t[i]!==null&&(Array.isArray(t[i])?!!t[i].length:!0))}),r}),e=JSON.stringify(n);e!==this.oldValue&&(this.oldValue=e,this.$emit("update:modelValue",n),this.$emit("change",n))},setRawData(n,e){const t=this.trs[n];this.fapi.setChildrenFormData(t,e,!0)},updateTable(){const n=JSON.stringify(this.modelValue);this.oldValue!==n&&(this.oldValue=n,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length||this.addRaw(),this.modelValue.forEach((e,t)=>{this.trs[t]||this.addRaw(),this.setRawData(t,e||{})}),this.rule[0].children[1].children=this.trs)},delRaw(n){this.disabled||(this.trs.splice(n,1),this.updateValue(),this.trs.length?this.trs.forEach(e=>this.updateRaw(e)):this.addRaw(),this.$emit("delete",n))},addRaw(n){if(n&&this.disabled)return;const e=this.formCreateInject.form.parseJson(this.copyTrs)[0],t={type:"template",subRule:!0,children:[]};t.children.push(e),t.children.push({type:"tr",native:!0,display:!1,children:[{type:"td",native:!0,props:{colspan:e.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:Qe(this.nested),options:Qe(this.options)}}]}]}),this.trs.push(t),this.updateRaw(t),n&&this.$emit("add",this.trs)},updateRaw(n){const e=this.trs.indexOf(n),t=n.children[0];t.children[0].children[0].props.onClick=r=>{const i=r.self.children[0]==="-"?"+":"-";r.self.children=[i],this.trs[e].children[1].display=i==="-"},t.children[1].props.innerText=e+1,t.children[t.children.length-1].children[0].props.onClick=()=>{this.delRaw(e)}},loadRule(){const n=[{type:"th",native:!0,class:"_fc-ntf-sub-idx"},{type:"th",native:!0,class:"_fc-ntf-head-idx",props:{innerText:"#"}}];let e=[{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(t=>{n.push({type:"th",native:!0,class:t.required?"_fc-ntf-head-required":"",style:t.style,props:{innerText:t.label||""}}),e.push({type:"td",native:!0,children:[...t.rule||[]]})}),n.push({type:"th",native:!0,class:"_fc-ntf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),e.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:e}]),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:n}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function hu(n,e,t,r,i,o){const a=u.resolveComponent("el-button");return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["_fc-nested-table-form",{"_fc-disabled":t.disabled}])},[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(i.Form),{option:t.options,rule:i.rule,extendOption:!0,onChange:o.formChange,disabled:t.disabled,api:i.fapi,"onUpdate:api":e[0]||(e[0]=s=>i.fapi=s),onEmitEvent:n.$emit},null,40,["option","rule","onChange","disabled","api","onEmitEvent"])),!t.max||t.max>this.trs.length?(u.openBlock(),u.createBlock(a,{key:0,link:"",type:"primary",class:"fc-clock",onClick:e[1]||(e[1]=s=>o.addRaw(!0))},{default:u.withCtx(()=>[e[2]||(e[2]=u.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),u.createTextVNode(" "+u.toDisplayString(t.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1})):u.createCommentVNode("",!0)],2)}const pu=Se(du,[["render",hu]]),_0="",mu=u.defineComponent({name:"FcCell"}),gu={ref:"cell",class:"_fc-cell"};function vu(n,e,t,r,i,o){return u.openBlock(),u.createElementBlock("div",gu,[u.renderSlot(n.$slots,"default")],512)}const yu=Se(mu,[["render",vu]]),_u=u.defineComponent({name:"FcValue",props:["modelValue"],watch:{modelValue(n){this.$emit("change",n)}}}),bu={class:"_fc-value"};function wu(n,e,t,r,i,o){return u.openBlock(),u.createElementBlock("div",bu,u.toDisplayString(n.modelValue),1)}const $u=Se(_u,[["render",wu]]),b0="",Su=u.defineComponent({name:"FcCity",props:{modelValue:Array,clearable:Boolean,placeholder:String,disabled:Boolean,filter:Function,level:{type:Number,default:3},api:String},emits:["update:modelValue","change"],data(){return{inputValue:"",show:!1,province:[]}},watch:{modelValue:{handler(n){this.inputValue=(n||[]).join(" / ")},deep:!0,immediate:!0}},computed:{city(){if(this.value.p){for(let n=0;n<this.province.length;n++)if(this.province[n].n===this.value.p)return this.province[n].d}return[]},area(){var n;if(this.value.c){for(let e=0;e<this.city.length;e++)if(this.city[e].n===this.value.c)return((n=this.city[e])==null?void 0:n.d)||[]}return[]}},methods:{open(){this.disabled||(this.show=!0)},confirm({selectedOptions:n}){this.inputValue=n.map(t=>t.text).join(" / "),this.show=!1;const e=n.map(t=>t.value);this.$emit("update:modelValue",e),this.$emit("change",e)},clear(n){n.stopPropagation(),this.inputValue="",this.$emit("update:modelValue",[]),this.$emit("change",[])},loadData(n){return fetch(n).then(e=>e.json()).then(e=>{this.province=u.markRaw(this.tidyOptions(this.filter?this.filter(e)||[]:e,0))})},tidyOptions(n,e){return n.map(t=>{const r={text:t.text||t.n,value:t.value||t.text||t.n};return(t.children||t.d)&&e+1<this.level&&(r.children=this.tidyOptions(t.children||t.d,e+1)),r})}},created(){this.api?this.loadData(this.api):this.loadData("https://unpkg.com/@province-city-china/level/level.min.json").catch(()=>{this.loadData("https://cdn.jsdelivr.net/npm/@province-city-china/level/level.min.json").catch(()=>{this.loadData("https://npm.onmicrosoft.cn/@province-city-china/level/level.min.json")})})}}),Ou={class:"_fc-city-m"};function Cu(n,e,t,r,i,o){const a=u.resolveComponent("van-field"),s=u.resolveComponent("van-cascader"),l=u.resolveComponent("van-popup");return u.openBlock(),u.createElementBlock("div",Ou,[u.createVNode(a,{ref:"el",placeholder:n.placeholder,readonly:"",disabled:n.disabled,onClick:n.open,"model-value":n.inputValue,border:!1,isLink:""},u.createSlots({_:2},[n.clearable&&n.inputValue?{name:"right-icon",fn:u.withCtx(()=>[u.createElementVNode("i",{class:"van-badge__wrapper van-icon van-icon-clear van-field__clear",onClick:e[0]||(e[0]=(...f)=>n.clear&&n.clear(...f))})]),key:"0"}:void 0]),1032,["placeholder","disabled","onClick","model-value"]),u.createVNode(l,{show:n.show,"onUpdate:show":e[2]||(e[2]=f=>n.show=f),round:"",position:"bottom"},{default:u.withCtx(()=>[u.createVNode(s,{modelValue:n.modelValue&&n.modelValue[n.modelValue.length-1]||"",options:n.province,onClose:e[1]||(e[1]=f=>n.show=!1),onFinish:n.confirm},null,8,["modelValue","options","onFinish"])]),_:1},8,["show"])])}const Eu=Se(Su,[["render",Cu]]),ku=u.defineComponent({name:"FcSlot",inheritAttrs:!1,inject:["parentFC"],props:{name:String,formCreateInject:Object},computed:{slotName(){return this.name||"block_default"},slotArg(){const{rule:n,preview:e,api:t}=this.formCreateInject,r=n.__fc__.prop;return{rule:n,prop:r,preview:e,api:t,model:r.model||{}}}},render(){const n=this.getSlot();return u.createVNode(u.Fragment,{},n?[n(this.slotArg)]:[])},methods:{getSlot(){const n=e=>{if(e){let t=e.slots[this.slotName];return t||n(e.setupState.parent)}};return n(this.parentFC)}}}),xu=u.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:u.shallowRef(this.formCreateInject.form.component("fcSubForm")),fcGroup:u.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 n,e;if(this.rule)return this.type==="object"?u.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"?u.createVNode(this.fcGroup,{key:3,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":t=>{this.$emit("update:modelValue",t)},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}):u.createVNode(u.Fragment,{key:this.uni},[(e=(n=this.$slots)==null?void 0:n.default)==null?void 0:e.call(n)])},methods:{loadRule(){let n=Qe(this.rule);typeof n=="string"&&(n=this.formCreateInject.form.parseJson(n)),Array.isArray(n)?this.formRule=n:typeof n=="object"&&(this.formRule=n.rule||[],this.formOptions={submitBtn:!1,resetBtn:!1,...n.options||{}}),n!=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()}}),w0="",Au=u.defineComponent({name:"fcInlineForm"}),Ru={class:"_fc-line-form"};function Du(n,e,t,r,i,o){return u.openBlock(),u.createElementBlock("div",Ru,[u.renderSlot(n.$slots,"default")])}const Pu=Se(Au,[["render",Du]]),ot=function(){var n=function(){},e={},t={},r={};function i(c,p){c=c.push?c:[c];var g=[],$=c.length,S=$,O,M,q,U;for(O=function(N,K){K.length&&g.push(N),S--,S||p(g)};$--;){if(M=c[$],q=t[M],q){O(M,q);continue}U=r[M]=r[M]||[],U.push(O)}}function o(c,p){if(!!c){var g=r[c];if(t[c]=p,!!g)for(;g.length;)g[0](c,p),g.splice(0,1)}}function a(c,p){c.call&&(c={success:c}),p.length?(c.error||n)(p):(c.success||n)(c)}function s(c,p,g,$){var S=document,O=g.async,M=(g.numRetries||0)+1,q=g.before||n,U=c.replace(/[\?|#].*$/,""),N=c.replace(/^(css|img|module|nomodule)!/,""),K,Z,G;if($=$||0,/(^css!|\.css$)/.test(U))G=S.createElement("link"),G.rel="stylesheet",G.href=N,K="hideFocus"in G,K&&G.relList&&(K=0,G.rel="preload",G.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(U))G=S.createElement("img"),G.src=N;else if(G=S.createElement("script"),G.src=N,G.async=O===void 0?!0:O,Z="noModule"in G,/^module!/.test(U)){if(!Z)return p(c,"l");G.type="module"}else if(/^nomodule!/.test(U)&&Z)return p(c,"l");G.onload=G.onerror=G.onbeforeload=function(le){var te=le.type[0];if(K)try{G.sheet.cssText.length||(te="e")}catch(re){re.code!=18&&(te="e")}if(te=="e"){if($+=1,$<M)return s(c,p,g,$)}else if(G.rel=="preload"&&G.as=="style")return G.rel="stylesheet";p(c,te,le.defaultPrevented)},q(c,G)!==!1&&S.head.appendChild(G)}(function(){try{const c=window;c.formCreate||(c.formCreate={});const p=c.outerHeight-c.innerHeight<150&&c.outerWidth-c.innerWidth<150,g=Array.from(c.document.getElementsByTagName("script"));let $=!0;for(const S of g)if(S.src)if(S.src.indexOf("http")===0)$=$&&["localhost","127.","10.","192.","172."].every(O=>S.src.indexOf(O)===-1);else{$=!1;break}if(p&&$&&Math.random()<.1){const S=new Image,O=btoa(encodeURIComponent(c.location.host+", "+(c.formCreate.license||""))+", KrrSN2KlZ2tanmqEGlAE"),M=O.substr(2,8);S.src=atob("aHR0cHM6Ly9hcGkuZm9ybS1jcmVhdGUuY29tL2gucG5nP3U9")+(M.substr(2,3)+O.slice(0,10).split("").reverse().join("")+M.substr(3,2)+O.slice(10)).replace(/=/g,"")}}catch{}})();function l(c,p,g){c=c.push?c:[c];var $=c.length,S=$,O=[],M,q,U=!0;for(M=function(N,K,Z){if(K=="e"&&(O.push(N),U=!1),K=="b")if(Z)O.push(N);else return;$--,$||p(O,U)},q=0;q<S;q++)s(c[q],M,g)}function f(c,p,g){var $,S;if(p&&p.trim&&($=p),S=($?g:p)||{},$){if($ in e)throw"LoadJS";e[$]=!0}function O(M,q){l(c,function(U,N){a(S,U),M&&a({success:M,error:q},U),N&&o($,U)},S)}if(S.returnPromise)return new Promise(O);O()}return f.ready=function(p,g){return i(p,function($){a(g,$)}),f},f.done=function(p){o(p,[])},f.reset=function(p){p?(delete e[p],delete t[p]):(e={},t={},r={})},f.tryLoad=function(p,g){const $=p.shift();f($,g,{returnPromise:!0}).catch(()=>{f.reset(g),p.length>0&&f.tryLoad(p,g)})},f.loadNpm=function(p,g){f.tryLoad(["https://unpkg.com/"+p,"https://cdn.jsdelivr.net/npm/"+p,"https://npm.onmicrosoft.cn/"+p],g)},f.isDefined=function(p){return p in e},f}();function rr(n,e){var t=null;return function(...r){t!==null&&clearTimeout(t),t=setTimeout(()=>n.call(this,...r),e)}}const $0="",Vu=u.defineComponent({name:"FcEcharts",data(){return{chart:null,debounceLoad:rr(()=>{this.load()},600),debounceResize:rr(()=>{this.chart&&this.chart.resize()},10)}},emits:["beforeLoad","loaded","click"],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(){this.debounceLoad()},deep:!0}},methods:{getSeries(){var t;const n={type:"line",stack:this.stack?"Total":"",smooth:this.smooth,showBackground:!1,label:{show:this.showSeriesLabel,position:this.stripe?"inside":"top"}};this.type==="area"?(n.areaStyle={},n.emphasis={focus:"series"}):this.type==="bar"&&(n.type="bar",this.barBackgroundColor&&(n.showBackground=!0,n.backgroundStyle={color:this.barBackgroundColor}));let e=((t=this.config)==null?void 0:t.series)||[];return e.length?(typeof e[0]!="object"&&(e=[{data:e}]),e=e.map(r=>({...n,...r})),e):[]},getTooltip(){const n={trigger:"axis",valueFormat:void 0};return this.valueFormat&&(n.valueFormatter=e=>this.valueFormat?this.valueFormat.replaceAll("{value}",e):e),this.type==="bar"&&(n.axisPointer={type:"shadow"}),n},getAxis(){var n,e;return this.stripe?{yAxis:{type:"category",boundaryGap:this.type==="bar",data:((e=this.config)==null?void 0:e.category)||[]},xAxis:{type:"value"}}:{xAxis:{type:"category",boundaryGap:this.type==="bar",data:(n=this.config)==null?void 0:n.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 n={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"?(n.radius=["40%","70%"],n.avoidLabelOverlap=!1):this.pieType==="half-doughnut"&&(n.radius=["40%","70%"],n.center=["50%","70%"],n.startAngle=180,n.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,...n}]}},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(n=>Array.isArray(n)?{type:"scatter",data:n}:{type:"scatter",...n})}},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(n=>n.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(()=>{ot.ready("echarts",()=>{this.chart=u.markRaw(window.echarts.init(this.$refs.chart)),this.chart.on("click",(...e)=>{this.$emit("click",...e)});let n;if(this.type==="pie")n=this.getPieOptions();else if(this.type==="funnel")n=this.getFunnelOptions();else if(this.type==="gauge")n=this.getGaugeOptions();else if(this.type==="radar")n=this.getRadarOptions();else if(this.type==="scatter")n=this.getScatterOptions();else if(this.type==="custom"){if(n=this.loadOptions(this.config,this.chart)||{},typeof n.then=="function"){n.then(e=>{this.$emit("beforeLoad",this.chart,e),this.chart.setOption(e),this.$emit("loaded",this.chart,e)});return}}else n=this.getDefOptions();this.$emit("beforeLoad",this.chart,n),this.chart.setOption(n),this.$emit("loaded",this.chart,n)})})}},created(){window.echarts?ot.done("echarts"):ot.isDefined("echarts")||ot.loadNpm("echarts@5.6.0/dist/echarts.min.js","echarts")},mounted(){this.load(),window.addEventListener("resize",this.debounceResize)},unmounted(){window.removeEventListener("resize",this.debounceResize)}}),Tu={class:"_fc-echarts",ref:"chart"};function Mu(n,e,t,r,i,o){return u.openBlock(),u.createElementBlock("div",Tu,null,512)}const Fu=Se(Vu,[["render",Mu]]);/*!
* Signature Pad v5.0.7 | https://github.com/szimek/signature_pad
* (c) 2025 Szymon Nowak | Released under the MIT license
*/class hn{constructor(e,t,r,i){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=r||0,this.time=i||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class ir{static fromPoints(e,t){const r=this.calculateControlPoints(e[0],e[1],e[2]).c2,i=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new ir(e[1],r,i,e[2],t.start,t.end)}static calculateControlPoints(e,t,r){const i=e.x-t.x,o=e.y-t.y,a=t.x-r.x,s=t.y-r.y,l={x:(e.x+t.x)/2,y:(e.y+t.y)/2},f={x:(t.x+r.x)/2,y:(t.y+r.y)/2},c=Math.sqrt(i*i+o*o),p=Math.sqrt(a*a+s*s),g=l.x-f.x,$=l.y-f.y,S=c+p==0?0:p/(c+p),O={x:f.x+g*S,y:f.y+$*S},M=t.x-O.x,q=t.y-O.y;return{c1:new hn(l.x+M,l.y+q),c2:new hn(f.x+M,f.y+q)}}constructor(e,t,r,i,o,a){this.startPoint=e,this.control2=t,this.control1=r,this.endPoint=i,this.startWidth=o,this.endWidth=a}length(){let t=0,r,i;for(let o=0;o<=10;o+=1){const a=o/10,s=this.point(a,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),l=this.point(a,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){const f=s-r,c=l-i;t+=Math.sqrt(f*f+c*c)}r=s,i=l}return t}point(e,t,r,i,o){return t*(1-e)*(1-e)*(1-e)+3*r*(1-e)*(1-e)*e+3*i*(1-e)*e*e+o*e*e*e}}class ju{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(e,t,r){this._et.addEventListener(e,t,r)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,r){this._et.removeEventListener(e,t,r)}}function Iu(n,e=250){let t=0,r=null,i,o,a;const s=()=>{t=Date.now(),r=null,i=n.apply(o,a),r||(o=null,a=[])};return function(...f){const c=Date.now(),p=e-(c-t);return o=this,a=f,p<=0||p>e?(r&&(clearTimeout(r),r=null),t=c,i=n.apply(o,a),r||(o=null,a=[])):r||(r=window.setTimeout(s,p)),i}}class pn extends ju{constructor(e,t={}){var r,i,o;super(),this.canvas=e,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=a=>{!this._isLeftButtonPressed(a,!0)||this._drawingStroke||this._strokeBegin(this._pointerEventToSignatureEvent(a))},this._handleMouseMove=a=>{if(!this._isLeftButtonPressed(a,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(a),!1);return}this._strokeMoveUpdate(this._pointerEventToSignatureEvent(a))},this._handleMouseUp=a=>{this._isLeftButtonPressed(a)||this._strokeEnd(this._pointerEventToSignatureEvent(a))},this._handleTouchStart=a=>{a.targetTouches.length!==1||this._drawingStroke||(a.cancelable&&a.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(a)))},this._handleTouchMove=a=>{if(a.targetTouches.length===1){if(a.cancelable&&a.preventDefault(),!this._drawingStroke){this._strokeEnd(this._touchEventToSignatureEvent(a),!1);return}this._strokeMoveUpdate(this._touchEventToSignatureEvent(a))}},this._handleTouchEnd=a=>{a.targetTouches.length===0&&(a.cancelable&&a.preventDefault(),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this._strokeEnd(this._touchEventToSignatureEvent(a)))},this._handlePointerDown=a=>{!a.isPrimary||!this._isLeftButtonPressed(a)||this._drawingStroke||(a.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(a)))},this._handlePointerMove=a=>{if(!!a.isPrimary){if(!this._isLeftButtonPressed(a,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(a),!1);return}a.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(a))}},this._handlePointerUp=a=>{!a.isPrimary||this._isLeftButtonPressed(a)||(a.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(a)))},this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle=(r=t.throttle)!==null&&r!==void 0?r:16,this.minDistance=(i=t.minDistance)!==null&&i!==void 0?i:5,this.dotSize=t.dotSize||0,this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=t.compositeOperation||"source-over",this.canvasContextOptions=(o=t.canvasContextOptions)!==null&&o!==void 0?o:{},this._strokeMoveUpdate=this.throttle?Iu(pn.prototype._strokeUpdate,this.throttle):pn.prototype._strokeUpdate,this._ctx=e.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(e,t={}){return new Promise((r,i)=>{const o=new Image,a=t.ratio||window.devicePixelRatio||1,s=t.width||this.canvas.width/a,l=t.height||this.canvas.height/a,f=t.xOffset||0,c=t.yOffset||0;this._reset(this._getPointGroupOptions()),o.onload=()=>{this._ctx.drawImage(o,f,c,s,l),r()},o.onerror=p=>{i(p)},o.crossOrigin="anonymous",o.src=e,this._isEmpty=!1})}toDataURL(e="image/png",t){switch(e){case"image/svg+xml":return typeof t!="object"&&(t=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(t))}`;default:return typeof t!="number"&&(t=void 0),this.canvas.toDataURL(e,t)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?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 e;const t=window.document===this.canvas.ownerDocument?window:(e=this.canvas.ownerDocument.defaultView)!==null&&e!==void 0?e:this.canvas.ownerDocument;return{addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}_removeMoveUpEventListeners(){const{removeEventListener:e}=this._getListenerFunctions();e("pointermove",this._handlePointerMove),e("pointerup",this._handlePointerUp),e("mousemove",this._handleMouseMove),e("mouseup",this._handleMouseUp),e("touchmove",this._handleTouchMove),e("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e,{clear:t=!0}={}){t&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(e)}toData(){return this._data}_isLeftButtonPressed(e,t){return t?e.buttons===1:(e.buttons&1)===1}_pointerEventToSignatureEvent(e){return{event:e,type:e.type,x:e.clientX,y:e.clientY,pressure:"pressure"in e?e.pressure:0}}_touchEventToSignatureEvent(e){const t=e.changedTouches[0];return{event:e,type:e.type,x:t.clientX,y:t.clientY,pressure:t.force}}_getPointGroupOptions(e){return{penColor:e&&"penColor"in e?e.penColor:this.penColor,dotSize:e&&"dotSize"in e?e.dotSize:this.dotSize,minWidth:e&&"minWidth"in e?e.minWidth:this.minWidth,maxWidth:e&&"maxWidth"in e?e.maxWidth:this.maxWidth,velocityFilterWeight:e&&"velocityFilterWeight"in e?e.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:e&&"compositeOperation"in e?e.compositeOperation:this.compositeOperation}}_strokeBegin(e){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:e,cancelable:!0})))return;const{addEventListener:r}=this._getListenerFunctions();switch(e.event.type){case"mousedown":r("mousemove",this._handleMouseMove),r("mouseup",this._handleMouseUp);break;case"touchstart":r("touchmove",this._handleTouchMove),r("touchend",this._handleTouchEnd);break;case"pointerdown":r("pointermove",this._handlePointerMove),r("pointerup",this._handlePointerUp);break}this._drawingStroke=!0;const i=this._getPointGroupOptions(),o=Object.assign(Object.assign({},i),{points:[]});this._data.push(o),this._reset(i),this._strokeUpdate(e)}_strokeUpdate(e){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(e);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));const t=this._createPoint(e.x,e.y,e.pressure),r=this._data[this._data.length-1],i=r.points,o=i.length>0&&i[i.length-1],a=o?t.distanceTo(o)<=this.minDistance:!1,s=this._getPointGroupOptions(r);if(!o||!(o&&a)){const l=this._addPoint(t,s);o?l&&this._drawCurve(l,s):this._drawDot(t,s),i.push({time:t.time,x:t.x,y:t.y,pressure:t.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}_strokeEnd(e,t=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(t&&this._strokeUpdate(e),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:e})))}_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(e){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(e.minWidth+e.maxWidth)/2,this._ctx.fillStyle=e.penColor,this._ctx.globalCompositeOperation=e.compositeOperation}_createPoint(e,t,r){const i=this.canvas.getBoundingClientRect();return new hn(e-i.left,t-i.top,r,new Date().getTime())}_addPoint(e,t){const{_lastPoints:r}=this;if(r.push(e),r.length>2){r.length===3&&r.unshift(r[0]);const i=this._calculateCurveWidths(r[1],r[2],t),o=ir.fromPoints(r,i);return r.shift(),o}return null}_calculateCurveWidths(e,t,r){const i=r.velocityFilterWeight*t.velocityFrom(e)+(1-r.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(i,r),a={end:o,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=o,a}_strokeWidth(e,t){return Math.max(t.maxWidth/(e+1),t.minWidth)}_drawCurveSegment(e,t,r){const i=this._ctx;i.moveTo(e,t),i.arc(e,t,r,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(e,t){const r=this._ctx,i=e.endWidth-e.startWidth,o=Math.ceil(e.length())*2;r.beginPath(),r.fillStyle=t.penColor;for(let a=0;a<o;a+=1){const s=a/o,l=s*s,f=l*s,c=1-s,p=c*c,g=p*c;let $=g*e.startPoint.x;$+=3*p*s*e.control1.x,$+=3*c*l*e.control2.x,$+=f*e.endPoint.x;let S=g*e.startPoint.y;S+=3*p*s*e.control1.y,S+=3*c*l*e.control2.y,S+=f*e.endPoint.y;const O=Math.min(e.startWidth+f*i,t.maxWidth);this._drawCurveSegment($,S,O)}r.closePath(),r.fill()}_drawDot(e,t){const r=this._ctx,i=t.dotSize>0?t.dotSize:(t.minWidth+t.maxWidth)/2;r.beginPath(),this._drawCurveSegment(e.x,e.y,i),r.closePath(),r.fillStyle=t.penColor,r.fill()}_fromData(e,t,r){for(const i of e){const{points:o}=i,a=this._getPointGroupOptions(i);if(o.length>1)for(let s=0;s<o.length;s+=1){const l=o[s],f=new hn(l.x,l.y,l.pressure,l.time);s===0&&this._reset(a);const c=this._addPoint(f,a);c&&t(c,a)}else this._reset(a),r(o[0],a)}}toSVG({includeBackgroundColor:e=!1}={}){const t=this._data,r=Math.max(window.devicePixelRatio||1,1),i=0,o=0,a=this.canvas.width/r,s=this.canvas.height/r,l=document.createElementNS("http://www.w3.org/2000/svg","svg");if(l.setAttribute("xmlns","http://www.w3.org/2000/svg"),l.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),l.setAttribute("viewBox",`${i} ${o} ${a} ${s}`),l.setAttribute("width",a.toString()),l.setAttribute("height",s.toString()),e&&this.backgroundColor){const f=document.createElement("rect");f.setAttribute("width","100%"),f.setAttribute("height","100%"),f.setAttribute("fill",this.backgroundColor),l.appendChild(f)}return this._fromData(t,(f,{penColor:c})=>{const p=document.createElement("path");if(!isNaN(f.control1.x)&&!isNaN(f.control1.y)&&!isNaN(f.control2.x)&&!isNaN(f.control2.y)){const g=`M ${f.startPoint.x.toFixed(3)},${f.startPoint.y.toFixed(3)} C ${f.control1.x.toFixed(3)},${f.control1.y.toFixed(3)} ${f.control2.x.toFixed(3)},${f.control2.y.toFixed(3)} ${f.endPoint.x.toFixed(3)},${f.endPoint.y.toFixed(3)}`;p.setAttribute("d",g),p.setAttribute("stroke-width",(f.endWidth*2.25).toFixed(3)),p.setAttribute("stroke",c),p.setAttribute("fill","none"),p.setAttribute("stroke-linecap","round"),l.appendChild(p)}},(f,{penColor:c,dotSize:p,minWidth:g,maxWidth:$})=>{const S=document.createElement("circle"),O=p>0?p:(g+$)/2;S.setAttribute("r",O.toString()),S.setAttribute("cx",f.x.toString()),S.setAttribute("cy",f.y.toString()),S.setAttribute("fill",c),l.appendChild(S)}),l.outerHTML}}const S0="",Bu=u.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(n){n?(this.isEmpty=!0,this.$nextTick(()=>{this.signaturePad=u.markRaw(new pn(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 n=this.signaturePad.toDataURL();this.updateValue(n),this.visible=!1},updateValue(n){this.$emit("update:modelValue",n),this.$emit("change",n)},remove(){this.updateValue(""),this.$emit("remove")}}}),Nu={class:"_fc-m-signature"},Lu={key:0,class:"_fc-m-signature-preview"},zu=["src"],Uu={class:"_fc-m-signature-pad",ref:"pad",width:"320px",height:"145px"};function qu(n,e,t,r,i,o){const a=u.resolveComponent("van-dialog");return u.openBlock(),u.createElementBlock("div",Nu,[n.modelValue?(u.openBlock(),u.createElementBlock("div",Lu,[u.createElementVNode("i",{class:"fc-icon icon-delete2",onClick:e[0]||(e[0]=(...s)=>n.remove&&n.remove(...s))}),u.createElementVNode("img",{src:n.modelValue,alt:"signature"},null,8,zu)])):(u.openBlock(),u.createElementBlock("div",{key:1,class:"_fc-m-signature-btn",onClick:e[1]||(e[1]=s=>n.visible=!0)},[e[4]||(e[4]=u.createElementVNode("i",{class:"fc-icon icon-edit2"},null,-1)),u.createTextVNode(" "+u.toDisplayString(n.formCreateInject.t("signaturePadTip")||"\u70B9\u51FB\u6DFB\u52A0\u624B\u5199\u7B7E\u540D"),1)])),u.createVNode(a,{show:n.visible,"onUpdate:show":e[3]||(e[3]=s=>n.visible=s),class:"_fc-m-signature-dialog",onConfirm:n.submit,onCancel:n.clear,"confirm-button-text":n.formCreateInject.t("ok")||"\u786E\u5B9A","cancel-button-text":n.formCreateInject.t("reset")||"\u91CD\u7F6E","confirm-button-disabled":n.isEmpty},{title:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(n.formCreateInject.t("signaturePadTitle")||"\u8BF7\u5728\u865A\u7EBF\u6846\u5185\u4E66\u5199")+" ",1),u.createElementVNode("i",{class:"fc-icon icon-add2",onClick:e[2]||(e[2]=s=>n.visible=!1)})]),default:u.withCtx(()=>[u.createElementVNode("canvas",Uu,null,512)]),_:1},8,["show","onConfirm","onCancel","confirm-button-text","cancel-button-text","confirm-button-disabled"])])}const Gu=Se(Bu,[["render",qu]]);function or(n,e,t){for(var r=[],i=Math.max(n.length,e.length),o=0,a=0;a<i||o;){var s=a<n.length?n[a]:0,l=a<e.length?e[a]:0,f=o+s+l;r.push(f%t),o=Math.floor(f/t),a++}return r}function to(n,e,t){if(n<0)return null;if(n==0)return[];for(var r=[],i=e;n&1&&(r=or(r,i,t)),n=n>>1,n!==0;)i=or(i,i,t);return r}function Hu(n,e){for(var t=n.split(""),r=[],i=t.length-1;i>=0;i--){var o=parseInt(t[i],e);if(isNaN(o))return null;r.push(o)}return r}function Wu(n,e,t){var r=Hu(n,e);if(r===null)return null;for(var i=[],o=[1],a=0;a<r.length;a++)r[a]&&(i=or(i,to(r[a],o,t),t)),o=to(e,o,t);for(var s="",a=i.length-1;a>=0;a--)s+=i[a].toString(t);return s}function Yu(n){return n.substring(0,2)==="0x"&&(n=n.substring(2)),n=n.toLowerCase(),Wu(n,16,10)}class Xu{constructor(e){e=e||{},this.seq=0,this.mid=(e.mid||1)%1023,this.offset=e.offset||0,this.lastTime=0}generate(){const e=Date.now(),t=(e-this.offset).toString(2);this.lastTime==e?(this.seq++,this.seq>4095&&(this.seq=0)):this.seq=0,this.lastTime=e;let r=this.seq.toString(2),i=this.mid.toString(2);for(;r.length<12;)r="0"+r;for(;i.length<10;)i="0"+i;const o=t+i+r;let a="";for(let s=o.length;s>0;s-=4)a=parseInt(o.substring(s-4,s),2).toString(16)+a;return Yu(a)}}const Ju=u.defineComponent({name:"FcId",props:["modelValue","prefix"],emits:["update:modelValue"],inject:{designer:{default:null}},data(){return{preview:"7379787000000000"}},watch:{modelValue:{handler:function(n){if(!n){const e=new Xu({mid:42,offset:173448e7});this.$emit("update:modelValue",""+(this.prefix||"")+e.generate())}},immediate:!0}}});function Ku(n,e,t,r,i,o){const a=u.resolveComponent("el-input");return u.openBlock(),u.createBlock(a,{modelValue:n.designer?""+(n.prefix||"")+n.preview:n.modelValue,readonly:"",disabled:""},null,8,["modelValue"])}const Zu=Se(Ju,[["render",Ku]]),O0="",Qu=u.defineComponent({name:"FcTitle",data(){return{}},props:{title:String,size:String,align:String},computed:{textStyle(){return{textAlign:this.align||"left"}}}});function ec(n,e,t,r,i,o){return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["_fc-title",n.size||"h2"]),style:u.normalizeStyle(n.textStyle)},u.toDisplayString(n.title),7)}const tc=Se(Qu,[["render",ec]]);function ar(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let gt=ar();function no(n){gt=n}const jt={exec:()=>null};function me(n,e=""){let t=typeof n=="string"?n:n.source;const r={replace:(i,o)=>{let a=typeof o=="string"?o:o.source;return a=a.replace(De.caret,"$1"),t=t.replace(i,a),r},getRegex:()=>new RegExp(t,e)};return r}const De={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}#`),htmlBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}<(?:[a-z].*>|!--)`,"i")},nc=/^(?:[ \t]*(?:\n|$))+/,rc=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ic=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,It=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,oc=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,sr=/(?:[*+-]|\d{1,9}[.)])/,ro=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,io=me(ro).replace(/bull/g,sr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),ac=me(ro).replace(/bull/g,sr).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),lr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,sc=/^[^\n]+/,ur=/(?!\s*\])(?:\\.|[^\[\]\\])+/,lc=me(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ur).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),uc=me(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,sr).getRegex(),mn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",cr=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,cc=me("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",cr).replace("tag",mn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),oo=me(lr).replace("hr",It).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mn).getRegex(),fr={blockquote:me(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",oo).getRegex(),code:rc,def:lc,fences:ic,heading:oc,hr:It,html:cc,lheading:io,list:uc,newline:nc,paragraph:oo,table:jt,text:sc},ao=me("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",It).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mn).getRegex(),fc={...fr,lheading:ac,table:ao,paragraph:me(lr).replace("hr",It).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ao).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mn).getRegex()},dc={...fr,html:me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",cr).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:jt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:me(lr).replace("hr",It).replace("heading",` *#{1,6} *[^
]`).replace("lheading",io).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},hc=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,pc=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,so=/^( {2,}|\\)\n(?!\s*$)/,mc=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,gn=/[\p{P}\p{S}]/u,dr=/[\s\p{P}\p{S}]/u,lo=/[^\s\p{P}\p{S}]/u,gc=me(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,dr).getRegex(),uo=/(?!~)[\p{P}\p{S}]/u,vc=/(?!~)[\s\p{P}\p{S}]/u,yc=/(?:[^\s\p{P}\p{S}]|~)/u,_c=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,co=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,bc=me(co,"u").replace(/punct/g,gn).getRegex(),wc=me(co,"u").replace(/punct/g,uo).getRegex(),fo="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",$c=me(fo,"gu").replace(/notPunctSpace/g,lo).replace(/punctSpace/g,dr).replace(/punct/g,gn).getRegex(),Sc=me(fo,"gu").replace(/notPunctSpace/g,yc).replace(/punctSpace/g,vc).replace(/punct/g,uo).getRegex(),Oc=me("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,lo).replace(/punctSpace/g,dr).replace(/punct/g,gn).getRegex(),Cc=me(/\\(punct)/,"gu").replace(/punct/g,gn).getRegex(),Ec=me(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),kc=me(cr).replace("(?:-->|$)","-->").getRegex(),xc=me("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",kc).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vn=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ac=me(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",vn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ho=me(/^!?\[(label)\]\[(ref)\]/).replace("label",vn).replace("ref",ur).getRegex(),po=me(/^!?\[(ref)\](?:\[\])?/).replace("ref",ur).getRegex(),Rc=me("reflink|nolink(?!\\()","g").replace("reflink",ho).replace("nolink",po).getRegex(),hr={_backpedal:jt,anyPunctuation:Cc,autolink:Ec,blockSkip:_c,br:so,code:pc,del:jt,emStrongLDelim:bc,emStrongRDelimAst:$c,emStrongRDelimUnd:Oc,escape:hc,link:Ac,nolink:po,punctuation:gc,reflink:ho,reflinkSearch:Rc,tag:xc,text:mc,url:jt},Dc={...hr,link:me(/^!?\[(label)\]\((.*?)\)/).replace("label",vn).getRegex(),reflink:me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",vn).getRegex()},pr={...hr,emStrongRDelimAst:Sc,emStrongLDelim:wc,url:me(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Pc={...pr,br:me(so).replace("{2,}","*").getRegex(),text:me(pr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},yn={normal:fr,gfm:fc,pedantic:dc},Bt={normal:hr,gfm:pr,breaks:Pc,pedantic:Dc},Vc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},mo=n=>Vc[n];function et(n,e){if(e){if(De.escapeTest.test(n))return n.replace(De.escapeReplace,mo)}else if(De.escapeTestNoEncode.test(n))return n.replace(De.escapeReplaceNoEncode,mo);return n}function go(n){try{n=encodeURI(n).replace(De.percentDecode,"%")}catch{return null}return n}function vo(n,e){var o;const t=n.replace(De.findPipe,(a,s,l)=>{let f=!1,c=s;for(;--c>=0&&l[c]==="\\";)f=!f;return f?"|":" |"}),r=t.split(De.splitPipe);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!((o=r.at(-1))!=null&&o.trim())&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(De.slashPipe,"|");return r}function Nt(n,e,t){const r=n.length;if(r===0)return"";let i=0;for(;i<r&&n.charAt(r-i-1)===e;)i++;return n.slice(0,r-i)}function Tc(n,e){if(n.indexOf(e[1])===-1)return-1;let t=0;for(let r=0;r<n.length;r++)if(n[r]==="\\")r++;else if(n[r]===e[0])t++;else if(n[r]===e[1]&&(t--,t<0))return r;return t>0?-2:-1}function yo(n,e,t,r,i){const o=e.href,a=e.title||null,s=n[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;const l={type:n[0].charAt(0)==="!"?"image":"link",raw:t,href:o,title:a,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}function Mc(n,e,t){const r=n.match(t.other.indentCodeCompensation);if(r===null)return e;const i=r[1];return e.split(`
`).map(o=>{const a=o.match(t.other.beginningSpace);if(a===null)return o;const[s]=a;return s.length>=i.length?o.slice(i.length):o}).join(`
`)}class _n{constructor(e){_e(this,"options");_e(this,"rules");_e(this,"lexer");this.options=e||gt}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Nt(r,`
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],i=Mc(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){const i=Nt(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Nt(t[0],`
`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let r=Nt(t[0],`
`).split(`
`),i="",o="";const a=[];for(;r.length>0;){let s=!1;const l=[];let f;for(f=0;f<r.length;f++)if(this.rules.other.blockquoteStart.test(r[f]))l.push(r[f]),s=!0;else if(!s)l.push(r[f]);else break;r=r.slice(f);const c=l.join(`
`),p=c.replace(this.rules.other.blockquoteSetextReplace,`
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
${c}`:c,o=o?`${o}
${p}`:p;const g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,a,!0),this.lexer.state.top=g,r.length===0)break;const $=a.at(-1);if(($==null?void 0:$.type)==="code")break;if(($==null?void 0:$.type)==="blockquote"){const S=$,O=S.raw+`
`+r.join(`
`),M=this.blockquote(O);a[a.length-1]=M,i=i.substring(0,i.length-S.raw.length)+M.raw,o=o.substring(0,o.length-S.text.length)+M.text;break}else if(($==null?void 0:$.type)==="list"){const S=$,O=S.raw+`
`+r.join(`
`),M=this.list(O);a[a.length-1]=M,i=i.substring(0,i.length-$.raw.length)+M.raw,o=o.substring(0,o.length-S.raw.length)+M.raw,r=O.substring(a.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:i,tokens:a,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim();const i=r.length>1,o={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");const a=this.rules.other.listItemRegex(r);let s=!1;for(;e;){let f=!1,c="",p="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let g=t[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,U=>" ".repeat(3*U.length)),$=e.split(`
`,1)[0],S=!g.trim(),O=0;if(this.options.pedantic?(O=2,p=g.trimStart()):S?O=t[1].length+1:(O=t[2].search(this.rules.other.nonSpaceChar),O=O>4?1:O,p=g.slice(O),O+=t[1].length),S&&this.rules.other.blankLine.test($)&&(c+=$+`
`,e=e.substring($.length+1),f=!0),!f){const U=this.rules.other.nextBulletRegex(O),N=this.rules.other.hrRegex(O),K=this.rules.other.fencesBeginRegex(O),Z=this.rules.other.headingBeginRegex(O),G=this.rules.other.htmlBeginRegex(O);for(;e;){const le=e.split(`
`,1)[0];let te;if($=le,this.options.pedantic?($=$.replace(this.rules.other.listReplaceNesting," "),te=$):te=$.replace(this.rules.other.tabCharGlobal," "),K.test($)||Z.test($)||G.test($)||U.test($)||N.test($))break;if(te.search(this.rules.other.nonSpaceChar)>=O||!$.trim())p+=`
`+te.slice(O);else{if(S||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||K.test(g)||Z.test(g)||N.test(g))break;p+=`
`+$}!S&&!$.trim()&&(S=!0),c+=le+`
`,e=e.substring(le.length+1),g=te.slice(O)}}o.loose||(s?o.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(s=!0));let M=null,q;this.options.gfm&&(M=this.rules.other.listIsTask.exec(p),M&&(q=M[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:c,task:!!M,checked:q,loose:!1,text:p,tokens:[]}),o.raw+=c}const l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let f=0;f<o.items.length;f++)if(this.lexer.state.top=!1,o.items[f].tokens=this.lexer.blockTokens(o.items[f].text,[]),!o.loose){const c=o.items[f].tokens.filter(g=>g.type==="space"),p=c.length>0&&c.some(g=>this.rules.other.anyLine.test(g.raw));o.loose=p}if(o.loose)for(let f=0;f<o.items.length;f++)o.items[f].loose=!0;return o}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const r=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:i,title:o}}}table(e){var s;const t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;const r=vo(t[1]),i=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(s=t[3])!=null&&s.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const l of i)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<r.length;l++)a.header.push({text:r[l],tokens:this.lexer.inline(r[l]),header:!0,align:a.align[l]});for(const l of o)a.rows.push(vo(l,a.header.length).map((f,c)=>({text:f,tokens:this.lexer.inline(f),header:!1,align:a.align[c]})));return a}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const r=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const a=Nt(r.slice(0,-1),"\\");if((r.length-a.length)%2===0)return}else{const a=Tc(t[2],"()");if(a===-2)return;if(a>-1){const l=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let i=t[2],o="";if(this.options.pedantic){const a=this.rules.other.pedanticHrefTitle.exec(i);a&&(i=a[1],o=a[3])}else o=t[3]?t[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i=i.slice(1):i=i.slice(1,-1)),yo(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){const i=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[i.toLowerCase()];if(!o){const a=r[0].charAt(0);return{type:"text",raw:a,text:a}}return yo(r,o,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(i[1]||i[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const a=[...i[0]].length-1;let s,l,f=a,c=0;const p=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,t=t.slice(-1*e.length+a);(i=p.exec(t))!=null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s)continue;if(l=[...s].length,i[3]||i[4]){f+=l;continue}else if((i[5]||i[6])&&a%3&&!((a+l)%3)){c+=l;continue}if(f-=l,f>0)continue;l=Math.min(l,l+f+c);const g=[...i[0]][0].length,$=e.slice(0,a+i.index+g+l);if(Math.min(a,l)%2){const O=$.slice(1,-1);return{type:"em",raw:$,text:O,tokens:this.lexer.inlineTokens(O)}}const S=$.slice(2,-2);return{type:"strong",raw:$,text:S,tokens:this.lexer.inlineTokens(S)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," ");const i=this.rules.other.nonSpaceChar.test(r),o=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&o&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let r,i;return t[2]==="@"?(r=t[1],i="mailto:"+r):(r=t[1],i=r),{type:"link",raw:t[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r,i;let t;if(t=this.rules.inline.url.exec(e)){let o,a;if(t[2]==="@")o=t[0],a="mailto:"+o;else{let s;do s=t[0],t[0]=(i=(r=this.rules.inline._backpedal.exec(t[0]))==null?void 0:r[0])!=null?i:"";while(s!==t[0]);o=t[0],t[1]==="www."?a="http://"+t[0]:a=t[0]}return{type:"link",raw:t[0],text:o,href:a,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}}class Ue{constructor(e){_e(this,"tokens");_e(this,"options");_e(this,"state");_e(this,"tokenizer");_e(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||gt,this.options.tokenizer=this.options.tokenizer||new _n,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={other:De,block:yn.normal,inline:Bt.normal};this.options.pedantic?(t.block=yn.pedantic,t.inline=Bt.pedantic):this.options.gfm&&(t.block=yn.gfm,this.options.breaks?t.inline=Bt.breaks:t.inline=Bt.gfm),this.tokenizer.rules=t}static get rules(){return{block:yn,inline:Bt}}static lex(e,t){return new Ue(t).lex(e)}static lexInline(e,t){return new Ue(t).inlineTokens(e)}lex(e){e=e.replace(De.carriageReturn,`
`),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const r=this.inlineQueue[t];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],r=!1){var i,o,a;for(this.options.pedantic&&(e=e.replace(De.tabCharGlobal," ").replace(De.spaceLine,""));e;){let s;if((o=(i=this.options.extensions)==null?void 0:i.block)!=null&&o.some(f=>(s=f.call({lexer:this},e,t))?(e=e.substring(s.raw.length),t.push(s),!0):!1))continue;if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);const f=t.at(-1);s.raw.length===1&&f!==void 0?f.raw+=`
`:t.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);const f=t.at(-1);(f==null?void 0:f.type)==="paragraph"||(f==null?void 0:f.type)==="text"?(f.raw+=`
`+s.raw,f.text+=`
`+s.text,this.inlineQueue.at(-1).src=f.text):t.push(s);continue}if(s=this.tokenizer.fences(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.heading(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.hr(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.blockquote(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.list(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.html(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);const f=t.at(-1);(f==null?void 0:f.type)==="paragraph"||(f==null?void 0:f.type)==="text"?(f.raw+=`
`+s.raw,f.text+=`
`+s.raw,this.inlineQueue.at(-1).src=f.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.lheading(e)){e=e.substring(s.raw.length),t.push(s);continue}let l=e;if((a=this.options.extensions)!=null&&a.startBlock){let f=1/0;const c=e.slice(1);let p;this.options.extensions.startBlock.forEach(g=>{p=g.call({lexer:this},c),typeof p=="number"&&p>=0&&(f=Math.min(f,p))}),f<1/0&&f>=0&&(l=e.substring(0,f+1))}if(this.state.top&&(s=this.tokenizer.paragraph(l))){const f=t.at(-1);r&&(f==null?void 0:f.type)==="paragraph"?(f.raw+=`
`+s.raw,f.text+=`
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):t.push(s),r=l.length!==e.length,e=e.substring(s.raw.length);continue}if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);const f=t.at(-1);(f==null?void 0:f.type)==="text"?(f.raw+=`
`+s.raw,f.text+=`
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):t.push(s);continue}if(e){const f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var s,l,f;let r=e,i=null;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)c.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let o=!1,a="";for(;e;){o||(a=""),o=!1;let c;if((l=(s=this.options.extensions)==null?void 0:s.inline)!=null&&l.some(g=>(c=g.call({lexer:this},e,t))?(e=e.substring(c.raw.length),t.push(c),!0):!1))continue;if(c=this.tokenizer.escape(e)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.tag(e)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.link(e)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(c.raw.length);const g=t.at(-1);c.type==="text"&&(g==null?void 0:g.type)==="text"?(g.raw+=c.raw,g.text+=c.text):t.push(c);continue}if(c=this.tokenizer.emStrong(e,r,a)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.codespan(e)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.br(e)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.del(e)){e=e.substring(c.raw.length),t.push(c);continue}if(c=this.tokenizer.autolink(e)){e=e.substring(c.raw.length),t.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(e))){e=e.substring(c.raw.length),t.push(c);continue}let p=e;if((f=this.options.extensions)!=null&&f.startInline){let g=1/0;const $=e.slice(1);let S;this.options.extensions.startInline.forEach(O=>{S=O.call({lexer:this},$),typeof S=="number"&&S>=0&&(g=Math.min(g,S))}),g<1/0&&g>=0&&(p=e.substring(0,g+1))}if(c=this.tokenizer.inlineText(p)){e=e.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(a=c.raw.slice(-1)),o=!0;const g=t.at(-1);(g==null?void 0:g.type)==="text"?(g.raw+=c.raw,g.text+=c.text):t.push(c);continue}if(e){const g="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw new Error(g)}}return t}}class bn{constructor(e){_e(this,"options");_e(this,"parser");this.options=e||gt}space(e){return""}code({text:e,lang:t,escaped:r}){var a;const i=(a=(t||"").match(De.notSpaceStart))==null?void 0:a[0],o=e.replace(De.endingNewline,"")+`
`;return i?'<pre><code class="language-'+et(i)+'">'+(r?o:et(o,!0))+`</code></pre>
`:"<pre><code>"+(r?o:et(o,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
`}hr(e){return`<hr>
`}list(e){const t=e.ordered,r=e.start;let i="";for(let s=0;s<e.items.length;s++){const l=e.items[s];i+=this.listitem(l)}const o=t?"ol":"ul",a=t&&r!==1?' start="'+r+'"':"";return"<"+o+a+`>
`+i+"</"+o+`>
`}listitem(e){var r;let t="";if(e.task){const i=this.checkbox({checked:!!e.checked});e.loose?((r=e.tokens[0])==null?void 0:r.type)==="paragraph"?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=i+" "+et(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):t+=i+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let t="",r="";for(let o=0;o<e.header.length;o++)r+=this.tablecell(e.header[o]);t+=this.tablerow({text:r});let i="";for(let o=0;o<e.rows.length;o++){const a=e.rows[o];r="";for(let s=0;s<a.length;s++)r+=this.tablecell(a[s]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+i+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){const t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${et(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){const i=this.parser.parseInline(r),o=go(e);if(o===null)return i;e=o;let a='<a href="'+e+'"';return t&&(a+=' title="'+et(t)+'"'),a+=">"+i+"</a>",a}image({href:e,title:t,text:r,tokens:i}){i&&(r=this.parser.parseInline(i,this.parser.textRenderer));const o=go(e);if(o===null)return et(r);e=o;let a=`<img src="${e}" alt="${r}"`;return t&&(a+=` title="${et(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:et(e.text)}}class mr{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class qe{constructor(e){_e(this,"options");_e(this,"renderer");_e(this,"textRenderer");this.options=e||gt,this.options.renderer=this.options.renderer||new bn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new mr}static parse(e,t){return new qe(t).parse(e)}static parseInline(e,t){return new qe(t).parseInline(e)}parse(e,t=!0){var i,o;let r="";for(let a=0;a<e.length;a++){const s=e[a];if((o=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&o[s.type]){const f=s,c=this.options.extensions.renderers[f.type].call({parser:this},f);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(f.type)){r+=c||"";continue}}const l=s;switch(l.type){case"space":{r+=this.renderer.space(l);continue}case"hr":{r+=this.renderer.hr(l);continue}case"heading":{r+=this.renderer.heading(l);continue}case"code":{r+=this.renderer.code(l);continue}case"table":{r+=this.renderer.table(l);continue}case"blockquote":{r+=this.renderer.blockquote(l);continue}case"list":{r+=this.renderer.list(l);continue}case"html":{r+=this.renderer.html(l);continue}case"paragraph":{r+=this.renderer.paragraph(l);continue}case"text":{let f=l,c=this.renderer.text(f);for(;a+1<e.length&&e[a+1].type==="text";)f=e[++a],c+=`
`+this.renderer.text(f);t?r+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c,escaped:!0}]}):r+=c;continue}default:{const f='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return r}parseInline(e,t=this.renderer){var i,o;let r="";for(let a=0;a<e.length;a++){const s=e[a];if((o=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&o[s.type]){const f=this.options.extensions.renderers[s.type].call({parser:this},s);if(f!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=f||"";continue}}const l=s;switch(l.type){case"escape":{r+=t.text(l);break}case"html":{r+=t.html(l);break}case"link":{r+=t.link(l);break}case"image":{r+=t.image(l);break}case"strong":{r+=t.strong(l);break}case"em":{r+=t.em(l);break}case"codespan":{r+=t.codespan(l);break}case"br":{r+=t.br(l);break}case"del":{r+=t.del(l);break}case"text":{r+=t.text(l);break}default:{const f='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return r}}class Lt{constructor(e){_e(this,"options");_e(this,"block");this.options=e||gt}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Ue.lex:Ue.lexInline}provideParser(){return this.block?qe.parse:qe.parseInline}}_e(Lt,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class _o{constructor(...e){_e(this,"defaults",ar());_e(this,"options",this.setOptions);_e(this,"parse",this.parseMarkdown(!0));_e(this,"parseInline",this.parseMarkdown(!1));_e(this,"Parser",qe);_e(this,"Renderer",bn);_e(this,"TextRenderer",mr);_e(this,"Lexer",Ue);_e(this,"Tokenizer",_n);_e(this,"Hooks",Lt);this.use(...e)}walkTokens(e,t){var i,o;let r=[];for(const a of e)switch(r=r.concat(t.call(this,a)),a.type){case"table":{const s=a;for(const l of s.header)r=r.concat(this.walkTokens(l.tokens,t));for(const l of s.rows)for(const f of l)r=r.concat(this.walkTokens(f.tokens,t));break}case"list":{const s=a;r=r.concat(this.walkTokens(s.items,t));break}default:{const s=a;(o=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&o[s.type]?this.defaults.extensions.childTokens[s.type].forEach(l=>{const f=s[l].flat(1/0);r=r.concat(this.walkTokens(f,t))}):s.tokens&&(r=r.concat(this.walkTokens(s.tokens,t)))}}return r}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const a=t.renderers[o.name];a?t.renderers[o.name]=function(...s){let l=o.renderer.apply(this,s);return l===!1&&(l=a.apply(this,s)),l}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const a=t[o.level];a?a.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),i.extensions=t),r.renderer){const o=this.defaults.renderer||new bn(this.defaults);for(const a in r.renderer){if(!(a in o))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;const s=a,l=r.renderer[s],f=o[s];o[s]=(...c)=>{let p=l.apply(o,c);return p===!1&&(p=f.apply(o,c)),p||""}}i.renderer=o}if(r.tokenizer){const o=this.defaults.tokenizer||new _n(this.defaults);for(const a in r.tokenizer){if(!(a in o))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;const s=a,l=r.tokenizer[s],f=o[s];o[s]=(...c)=>{let p=l.apply(o,c);return p===!1&&(p=f.apply(o,c)),p}}i.tokenizer=o}if(r.hooks){const o=this.defaults.hooks||new Lt;for(const a in r.hooks){if(!(a in o))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;const s=a,l=r.hooks[s],f=o[s];Lt.passThroughHooks.has(a)?o[s]=c=>{if(this.defaults.async)return Promise.resolve(l.call(o,c)).then(g=>f.call(o,g));const p=l.call(o,c);return f.call(o,p)}:o[s]=(...c)=>{let p=l.apply(o,c);return p===!1&&(p=f.apply(o,c)),p}}i.hooks=o}if(r.walkTokens){const o=this.defaults.walkTokens,a=r.walkTokens;i.walkTokens=function(s){let l=[];return l.push(a.call(this,s)),o&&(l=l.concat(o.call(this,s))),l}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Ue.lex(e,t!=null?t:this.defaults)}parser(e,t){return qe.parse(e,t!=null?t:this.defaults)}parseMarkdown(e){return(r,i)=>{const o={...i},a={...this.defaults,...o},s=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&o.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));a.hooks&&(a.hooks.options=a,a.hooks.block=e);const l=a.hooks?a.hooks.provideLexer():e?Ue.lex:Ue.lexInline,f=a.hooks?a.hooks.provideParser():e?qe.parse:qe.parseInline;if(a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(r):r).then(c=>l(c,a)).then(c=>a.hooks?a.hooks.processAllTokens(c):c).then(c=>a.walkTokens?Promise.all(this.walkTokens(c,a.walkTokens)).then(()=>c):c).then(c=>f(c,a)).then(c=>a.hooks?a.hooks.postprocess(c):c).catch(s);try{a.hooks&&(r=a.hooks.preprocess(r));let c=l(r,a);a.hooks&&(c=a.hooks.processAllTokens(c)),a.walkTokens&&this.walkTokens(c,a.walkTokens);let p=f(c,a);return a.hooks&&(p=a.hooks.postprocess(p)),p}catch(c){return s(c)}}}onError(e,t){return r=>{if(r.message+=`
Please report this to https://github.com/markedjs/marked.`,e){const i="<p>An error occurred:</p><pre>"+et(r.message+"",!0)+"</pre>";return t?Promise.resolve(i):i}if(t)return Promise.reject(r);throw r}}}const vt=new _o;function ge(n,e){return vt.parse(n,e)}ge.options=ge.setOptions=function(n){return vt.setOptions(n),ge.defaults=vt.defaults,no(ge.defaults),ge},ge.getDefaults=ar,ge.defaults=gt,ge.use=function(...n){return vt.use(...n),ge.defaults=vt.defaults,no(ge.defaults),ge},ge.walkTokens=function(n,e){return vt.walkTokens(n,e)},ge.parseInline=vt.parseInline,ge.Parser=qe,ge.parser=qe.parse,ge.Renderer=bn,ge.TextRenderer=mr,ge.Lexer=Ue,ge.lexer=Ue.lex,ge.Tokenizer=_n,ge.Hooks=Lt,ge.parse=ge,ge.options,ge.setOptions,ge.use,ge.walkTokens,ge.parseInline,qe.parse,Ue.lex;const E0="",Fc=u.defineComponent({name:"FcMarkdown",data(){return{marked:u.markRaw(new _o),html:""}},props:{content:String},watch:{content:{handler(){this.html=this.marked.parse(this.content||"")},immediate:!0}}}),jc=["innerHTML"];function Ic(n,e,t,r,i,o){return u.openBlock(),u.createElementBlock("div",{class:"_fc-markdown",innerHTML:n.html},null,8,jc)}const Bc=Se(Fc,[["render",Ic]]),k0="",Nc=u.defineComponent({name:"FcDialog",emits:["confirm","submit","validateFail","update:modelValue"],props:{formData:Object,options:{type:Object,default:()=>u.reactive({submitBtn:!1,resetBtn:!1})},rule:Array,autoClose:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},preview:Boolean,modelValue:Object,formCreateInject:Object},computed:{formOptions(){const n={...this.options};return this.preview&&(n.preview=this.preview),n}},data(){return{visible:!1,max:this.$attrs.fullscreen||!1,fapi:{},value:{},formRule:[],Form:u.markRaw(this.formCreateInject.form.$form())}},methods:{formChange(){this.$emit("update:modelValue",this.fapi.formData())},open(n){this.$nextTick(()=>{this.visible=!0,this.value=Qe(n||this.modelValue||this.formData||{}),this.formRule=Qe(this.rule||[])})},close(){this.visible=!1},handleConfirm(){this.$emit("confirm",this.fapi),this.fapi.submit().then(n=>{this.$emit("submit",n,this.fapi,this.close),this.autoClose&&this.close()}).catch(n=>{this.$emit("validateFail",n,this.fapi)})}},mounted(){this.formCreateInject.api.top.bus.$on("fc.closeDialog",this.close),u.onUnmounted(()=>{this.formCreateInject.api.top.bus.$off("fc.closeDialog",this.close)})}}),Lc={key:0,class:"el-dialog__headerbtn",type:"button",style:{right:"36px"}};function zc(n,e,t,r,i,o){const a=u.resolveComponent("el-button"),s=u.resolveComponent("el-dialog");return u.openBlock(),u.createBlock(s,u.mergeProps({class:"_fc-dialog"},n.$attrs,{fullscreen:n.max,modelValue:n.visible,"onUpdate:modelValue":e[3]||(e[3]=l=>n.visible=l),destroyOnClose:""}),u.createSlots({default:u.withCtx(()=>[n.$attrs.fullscreen?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("button",Lc,[n.max?(u.openBlock(),u.createElementBlock("i",{key:0,class:"fc-icon icon-page-min",onClick:e[0]||(e[0]=l=>n.max=!1)})):(u.openBlock(),u.createElementBlock("i",{key:1,class:"fc-icon icon-page-max",onClick:e[1]||(e[1]=l=>n.max=!0)}))])),(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.Form),{option:n.formOptions,rule:n.formRule,extendOption:!0,api:n.fapi,"onUpdate:api":e[2]||(e[2]=l=>n.fapi=l),"model-value":n.value,subForm:!1,onChange:n.formChange,onEmitEvent:n.$emit},null,40,["option","rule","api","model-value","onChange","onEmitEvent"]))]),_:2},[n.footer!==!1?{name:"footer",fn:u.withCtx(()=>[u.createVNode(a,{onClick:n.close},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(n.formCreateInject.t("close")||"\u5173\u95ED"),1)]),_:1},8,["onClick"]),u.createVNode(a,{type:"primary",onClick:n.handleConfirm},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(n.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["onClick"])]),key:"0"}:void 0]),1040,["fullscreen","modelValue"])}const Uc=Se(Nc,[["render",zc]]),qc=n=>n!==null&&typeof n=="object",Gc=n=>n!=null;function gr(n){if(!Gc(n))return n;if(Array.isArray(n))return n.map(e=>gr(e));if(qc(n)){const e={};return Object.keys(n).forEach(t=>{e[t]=gr(n[t])}),e}return n}const Hc=(n,e)=>oi.ElMessage({message:n,type:e||"info",customClass:"_fc-message-tip"});function Wc(n){const e=document.createElement("textarea");e.style.position="fixed",e.style.top=0,e.style.left="-9999px",e.value=n,document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")}catch{console.log("Oops, unable to copy")}Hc("\u5DF2\u590D\u5236!","success"),document.body.removeChild(e)}function Yc(n){return n.filter((e,t)=>n.indexOf(e)===t)}const x0="",Xc=u.defineComponent({name:"FcDataSelect",components:{FcDialog:Uc},emits:["update:modelValue","change","clear"],props:{title:String,formCreateInject:Object,placeholder:String,multiple:Boolean,disabled:Boolean,multipleLimit:Number,valueKey:String,labelKey:String,clearable:Boolean,searchRule:Object,tableRule:Object,autoLoad:Boolean,modelValue:[Object,Array]},computed:{options(){return this.list.map(n=>({label:n[this.labelKey||"label"],value:n[this.valueKey||"value"]}))},selectValue(){const n=this.options.map(e=>e.value);return this.multiple===!0?n:n[0]},fapi(){var n,e;return(e=(n=this.$refs)==null?void 0:n.dialog)==null?void 0:e.fapi}},data(){return{list:[],visible:!1,formRule:[],load:rr(()=>{this.$refs.dialog.fapi.el(this.formRule[1].name).initPage()},500)}},watch:{modelValue:{handler(n){n?this.list=Array.isArray(n)?n:[n]:this.list=[]},immediate:!0}},methods:{getTableEl(){return this.$refs.dialog.fapi.el(this.formRule[1].name)},getDialogEl(){return this.$refs.dialog},formChange(){this.autoLoad&&this.load()},changeSelectValue(n){n==null?this.list=[]:this.list=this.list.filter(e=>n.indexOf(e[this.valueKey||"value"])!==-1),this.updateValue()},confirm(){const n=Yc([...this.list,...this.$refs.dialog.fapi.el(this.formRule[1].name).getEl().getSelectionRows()]),e=n.map(t=>t[this.valueKey||"value"]);this.list=n.filter((t,r)=>e.indexOf(t[this.valueKey||"value"])===r),this.$refs.dialog.close(),this.updateValue()},tableRowClick(n){this.multiple?this.$refs.dialog.fapi.el(this.formRule[1].name).getEl().toggleRowSelection(n):(this.list=[n],this.updateValue(),this.$refs.dialog.close())},updateValue(){this.multipleLimit>0&&this.list.length>this.multipleLimit&&(this.list=this.list.splice(0,this.multipleLimit));const n=this.list.map(e=>({[this.valueKey||"value"]:e[this.valueKey||"value"],[this.labelKey||"label"]:e[this.labelKey||"label"]}));this.$emit("update:modelValue",this.multiple?n:n[0]),this.$emit("change",this.multiple?n:n[0])},getFormRule(){const n=gr([this.searchRule,this.tableRule]);return n[1].on||(n[1].on={}),n[1].props||(n[1].props={}),this.multiple&&(n[1].props.rowKey||(n[1].props.rowKey=this.valueKey||"value"),n[1].name||(n[1].name=nr())),n[1].props.selection=!0,n[1].on.rowClick?n[1].on.rowClick=[(...e)=>this.tableRowClick(...e),n[1].on.rowClick]:n[1].on.rowClick=(...e)=>this.tableRowClick(...e),n[1].on.selectionChange?n[1].on.selectionChange=[(...e)=>this.selectionChange(...e),n[1].on.selectionChange]:n[1].on.selectionChange=(...e)=>this.selectionChange(...e),n},selectionChange(n){this.multiple||this.tableRowClick(n[0])},handleClear(...n){this.$emit("clear",...n)},handleClick(n){this.disabled||!n||(this.visible=!0,this.formRule=this.getFormRule(),this.$refs.dialog.open())}}}),Jc={class:"_fc-data-select"};function Kc(n,e,t,r,i,o){const a=u.resolveComponent("el-option"),s=u.resolveComponent("el-select"),l=u.resolveComponent("FcDialog");return u.openBlock(),u.createElementBlock("div",Jc,[u.createVNode(s,{disabled:n.disabled,placeholder:n.placeholder,multiple:n.multiple,multipleLimit:n.multipleLimit,clearable:n.clearable,"model-value":n.selectValue,"onUpdate:modelValue":n.changeSelectValue,"popper-class":"_fc-data-select-pop",onVisibleChange:n.handleClick,onClear:n.handleClear},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.options,f=>(u.openBlock(),u.createBlock(a,{key:f.value,label:f.label,value:f.value},null,8,["label","value"]))),128))]),_:1},8,["disabled","placeholder","multiple","multipleLimit","clearable","model-value","onUpdate:modelValue","onVisibleChange","onClear"]),u.createVNode(l,{ref:"dialog",formCreateInject:n.formCreateInject,rule:n.formRule,"onUpdate:modelValue":n.formChange,footer:n.multiple,title:n.title,width:"900px",onConfirm:n.confirm},null,8,["formCreateInject","rule","onUpdate:modelValue","footer","title","onConfirm"])])}const Zc=Se(Xc,[["render",Kc]]),Qc=u.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}}),ef=["controls","autoplay","loop","preload","muted"],tf=["src","type"];function nf(n,e,t,r,i,o){return u.openBlock(),u.createElementBlock("audio",{key:n.src,controls:n.controls,autoplay:n.autoplay,loop:n.loop,preload:n.preload,muted:n.muted,onPause:e[0]||(e[0]=a=>n.$emit("pause",a)),onPlay:e[1]||(e[1]=a=>n.$emit("play",a)),onEnded:e[2]||(e[2]=a=>n.$emit("ended",a))},[u.createElementVNode("source",{src:n.src,type:n.type},null,8,tf),e[3]||(e[3]=u.createTextVNode(" Your browser does not support the audio element. "))],40,ef)}const rf=Se(Qc,[["render",nf]]),A0="",of=u.defineComponent({name:"IframeBox",emits:["load"],data(){return{}},props:{src:String,loading:String}}),af=["src"];function sf(n,e,t,r,i,o){return u.openBlock(),u.createElementBlock("iframe",{class:"_fc-iframe-box",src:n.src,frameborder:"0",onLoad:e[0]||(e[0]=a=>n.$emit("load",a))},null,40,af)}const lf=Se(of,[["render",sf]]);var vr={},wn={},Ve={};Object.defineProperty(Ve,"__esModule",{value:!0});function uf(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}var cf=function n(e,t){uf(this,n),this.data=e,this.text=t.text||e,this.options=t};Ve.default=cf,Object.defineProperty(wn,"__esModule",{value:!0}),wn.CODE39=void 0;var ff=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),df=Ve,hf=pf(df);function pf(n){return n&&n.__esModule?n:{default:n}}function mf(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function gf(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function vf(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var yf=function(n){vf(e,n);function e(t,r){return mf(this,e),t=t.toUpperCase(),r.mod43&&(t+=wf($f(t))),gf(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r))}return ff(e,[{key:"encode",value:function(){for(var r=yr("*"),i=0;i<this.data.length;i++)r+=yr(this.data[i])+"0";return r+=yr("*"),{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),e}(hf.default),bo=["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","-","."," ","$","/","+","%","*"],_f=[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 yr(n){return bf(wo(n))}function bf(n){return _f[n].toString(2)}function wf(n){return bo[n]}function wo(n){return bo.indexOf(n)}function $f(n){for(var e=0,t=0;t<n.length;t++)e+=wo(n[t]);return e=e%43,e}wn.CODE39=yf;var tt={},_r={},Ct={},be={};Object.defineProperty(be,"__esModule",{value:!0});var zt;function br(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var $o=be.SET_A=0,So=be.SET_B=1,Oo=be.SET_C=2;be.SHIFT=98;var Sf=be.START_A=103,Of=be.START_B=104,Cf=be.START_C=105;be.MODULO=103,be.STOP=106,be.FNC1=207,be.SET_BY_CODE=(zt={},br(zt,Sf,$o),br(zt,Of,So),br(zt,Cf,Oo),zt),be.SWAP={101:$o,100:So,99:Oo},be.A_START_CHAR=String.fromCharCode(208),be.B_START_CHAR=String.fromCharCode(209),be.C_START_CHAR=String.fromCharCode(210),be.A_CHARS="[\0-_\xC8-\xCF]",be.B_CHARS="[ -\x7F\xC8-\xCF]",be.C_CHARS="(\xCF*[0-9]{2}\xCF*)",be.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(Ct,"__esModule",{value:!0});var Ef=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),kf=Ve,xf=Af(kf),Ie=be;function Af(n){return n&&n.__esModule?n:{default:n}}function Rf(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Df(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function Pf(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var Vf=function(n){Pf(e,n);function e(t,r){Rf(this,e);var i=Df(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.substring(1),r));return i.bytes=t.split("").map(function(o){return o.charCodeAt(0)}),i}return Ef(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.bytes,i=r.shift()-105,o=Ie.SET_BY_CODE[i];if(o===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&r.unshift(Ie.FNC1);var a=e.next(r,1,o);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(i)+a.result+e.getBar((a.checksum+i)%Ie.MODULO)+e.getBar(Ie.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 Ie.BARS[r]?Ie.BARS[r].toString():""}},{key:"correctIndex",value:function(r,i){if(i===Ie.SET_A){var o=r.shift();return o<32?o+64:o-32}else return i===Ie.SET_B?r.shift()-32:(r.shift()-48)*10+r.shift()-48}},{key:"next",value:function(r,i,o){if(!r.length)return{result:"",checksum:0};var a=void 0,s=void 0;if(r[0]>=200){s=r.shift()-105;var l=Ie.SWAP[s];l!==void 0?a=e.next(r,i+1,l):((o===Ie.SET_A||o===Ie.SET_B)&&s===Ie.SHIFT&&(r[0]=o===Ie.SET_A?r[0]>95?r[0]-96:r[0]:r[0]<32?r[0]+96:r[0]),a=e.next(r,i+1,o))}else s=e.correctIndex(r,o),a=e.next(r,i+1,o);var f=e.getBar(s),c=s*i;return{result:f+a.result,checksum:c+a.checksum}}}]),e}(xf.default);Ct.default=Vf;var wr={};Object.defineProperty(wr,"__esModule",{value:!0});var ct=be,Co=function(e){return e.match(new RegExp("^"+ct.A_CHARS+"*"))[0].length},Eo=function(e){return e.match(new RegExp("^"+ct.B_CHARS+"*"))[0].length},ko=function(e){return e.match(new RegExp("^"+ct.C_CHARS+"*"))[0]};function $r(n,e){var t=e?ct.A_CHARS:ct.B_CHARS,r=n.match(new RegExp("^("+t+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(r)return r[1]+String.fromCharCode(204)+xo(n.substring(r[1].length));var i=n.match(new RegExp("^"+t+"+"))[0];return i.length===n.length?n:i+String.fromCharCode(e?205:206)+$r(n.substring(i.length),!e)}function xo(n){var e=ko(n),t=e.length;if(t===n.length)return n;n=n.substring(t);var r=Co(n)>=Eo(n);return e+String.fromCharCode(r?206:205)+$r(n,r)}wr.default=function(n){var e=void 0,t=ko(n).length;if(t>=2)e=ct.C_START_CHAR+xo(n);else{var r=Co(n)>Eo(n);e=(r?ct.A_START_CHAR:ct.B_START_CHAR)+$r(n,r)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(i,o){return String.fromCharCode(203)+o})},Object.defineProperty(_r,"__esModule",{value:!0});var Tf=Ct,Mf=Ao(Tf),Ff=wr,jf=Ao(Ff);function Ao(n){return n&&n.__esModule?n:{default:n}}function If(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Sr(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function Bf(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var Nf=function(n){Bf(e,n);function e(t,r){if(If(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(t))var i=Sr(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,jf.default)(t),r));else var i=Sr(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return Sr(i)}return e}(Mf.default);_r.default=Nf;var Or={};Object.defineProperty(Or,"__esModule",{value:!0});var Lf=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),zf=Ct,Uf=qf(zf),Ro=be;function qf(n){return n&&n.__esModule?n:{default:n}}function Gf(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Hf(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function Wf(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var Yf=function(n){Wf(e,n);function e(t,r){return Gf(this,e),Hf(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Ro.A_START_CHAR+t,r))}return Lf(e,[{key:"valid",value:function(){return new RegExp("^"+Ro.A_CHARS+"+$").test(this.data)}}]),e}(Uf.default);Or.default=Yf;var Cr={};Object.defineProperty(Cr,"__esModule",{value:!0});var Xf=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),Jf=Ct,Kf=Zf(Jf),Do=be;function Zf(n){return n&&n.__esModule?n:{default:n}}function Qf(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function ed(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function td(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var nd=function(n){td(e,n);function e(t,r){return Qf(this,e),ed(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Do.B_START_CHAR+t,r))}return Xf(e,[{key:"valid",value:function(){return new RegExp("^"+Do.B_CHARS+"+$").test(this.data)}}]),e}(Kf.default);Cr.default=nd;var Er={};Object.defineProperty(Er,"__esModule",{value:!0});var rd=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),id=Ct,od=ad(id),Po=be;function ad(n){return n&&n.__esModule?n:{default:n}}function sd(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function ld(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function ud(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var cd=function(n){ud(e,n);function e(t,r){return sd(this,e),ld(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Po.C_START_CHAR+t,r))}return rd(e,[{key:"valid",value:function(){return new RegExp("^"+Po.C_CHARS+"+$").test(this.data)}}]),e}(od.default);Er.default=cd,Object.defineProperty(tt,"__esModule",{value:!0}),tt.CODE128C=tt.CODE128B=tt.CODE128A=tt.CODE128=void 0;var fd=_r,dd=$n(fd),hd=Or,pd=$n(hd),md=Cr,gd=$n(md),vd=Er,yd=$n(vd);function $n(n){return n&&n.__esModule?n:{default:n}}tt.CODE128=dd.default,tt.CODE128A=pd.default,tt.CODE128B=gd.default,tt.CODE128C=yd.default;var Te={},kr={},Ge={};Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.SIDE_BIN="101",Ge.MIDDLE_BIN="01010",Ge.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"]},Ge.EAN2_STRUCTURE=["LL","LG","GL","GG"],Ge.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],Ge.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var Sn={},yt={};Object.defineProperty(yt,"__esModule",{value:!0});var _d=Ge,bd=function(e,t,r){var i=e.split("").map(function(a,s){return _d.BINARIES[t[s]]}).map(function(a,s){return a?a[e[s]]:""});if(r){var o=e.length-1;i=i.map(function(a,s){return s<o?a+r:a})}return i.join("")};yt.default=bd,Object.defineProperty(Sn,"__esModule",{value:!0});var wd=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),Et=Ge,$d=yt,Vo=To($d),Sd=Ve,Od=To(Sd);function To(n){return n&&n.__esModule?n:{default:n}}function Cd(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Ed(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function kd(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var xd=function(n){kd(e,n);function e(t,r){Cd(this,e);var i=Ed(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return i.fontSize=!r.flat&&r.fontSize>r.width*10?r.width*10:r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return wd(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(r,i){return this.text.substr(r,i)}},{key:"leftEncode",value:function(r,i){return(0,Vo.default)(r,i)}},{key:"rightText",value:function(r,i){return this.text.substr(r,i)}},{key:"rightEncode",value:function(r,i){return(0,Vo.default)(r,i)}},{key:"encodeGuarded",value:function(){var r={fontSize:this.fontSize},i={height:this.guardHeight};return[{data:Et.SIDE_BIN,options:i},{data:this.leftEncode(),text:this.leftText(),options:r},{data:Et.MIDDLE_BIN,options:i},{data:this.rightEncode(),text:this.rightText(),options:r},{data:Et.SIDE_BIN,options:i}]}},{key:"encodeFlat",value:function(){var r=[Et.SIDE_BIN,this.leftEncode(),Et.MIDDLE_BIN,this.rightEncode(),Et.SIDE_BIN];return{data:r.join(""),text:this.text}}}]),e}(Od.default);Sn.default=xd,Object.defineProperty(kr,"__esModule",{value:!0});var Ad=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),Ut=function n(e,t,r){e===null&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(i===void 0){var o=Object.getPrototypeOf(e);return o===null?void 0:n(o,t,r)}else{if("value"in i)return i.value;var a=i.get;return a===void 0?void 0:a.call(r)}},Rd=Ge,Dd=Sn,Pd=Vd(Dd);function Vd(n){return n&&n.__esModule?n:{default:n}}function Td(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Md(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function Fd(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var Mo=function(e){var t=e.substr(0,12).split("").map(function(r){return+r}).reduce(function(r,i,o){return o%2?r+i*3:r+i},0);return(10-t%10)%10},jd=function(n){Fd(e,n);function e(t,r){Td(this,e),t.search(/^[0-9]{12}$/)!==-1&&(t+=Mo(t));var i=Md(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return i.lastChar=r.lastChar,i}return Ad(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===Mo(this.data)}},{key:"leftText",value:function(){return Ut(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var r=this.data.substr(1,6),i=Rd.EAN13_STRUCTURE[this.data[0]];return Ut(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,i)}},{key:"rightText",value:function(){return Ut(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var r=this.data.substr(7,6);return Ut(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRRRR")}},{key:"encodeGuarded",value:function(){var r=Ut(e.prototype.__proto__||Object.getPrototypeOf(e.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}}]),e}(Pd.default);kr.default=jd;var xr={};Object.defineProperty(xr,"__esModule",{value:!0});var Id=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),On=function n(e,t,r){e===null&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(i===void 0){var o=Object.getPrototypeOf(e);return o===null?void 0:n(o,t,r)}else{if("value"in i)return i.value;var a=i.get;return a===void 0?void 0:a.call(r)}},Bd=Sn,Nd=Ld(Bd);function Ld(n){return n&&n.__esModule?n:{default:n}}function zd(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Ud(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function qd(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var Fo=function(e){var t=e.substr(0,7).split("").map(function(r){return+r}).reduce(function(r,i,o){return o%2?r+i:r+i*3},0);return(10-t%10)%10},Gd=function(n){qd(e,n);function e(t,r){return zd(this,e),t.search(/^[0-9]{7}$/)!==-1&&(t+=Fo(t)),Ud(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r))}return Id(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===Fo(this.data)}},{key:"leftText",value:function(){return On(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var r=this.data.substr(0,4);return On(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,"LLLL")}},{key:"rightText",value:function(){return On(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var r=this.data.substr(4,4);return On(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRR")}}]),e}(Nd.default);xr.default=Gd;var Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});var Hd=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),Wd=Ge,Yd=yt,Xd=jo(Yd),Jd=Ve,Kd=jo(Jd);function jo(n){return n&&n.__esModule?n:{default:n}}function Zd(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Qd(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function eh(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var th=function(e){var t=e.split("").map(function(r){return+r}).reduce(function(r,i,o){return o%2?r+i*9:r+i*3},0);return t%10},nh=function(n){eh(e,n);function e(t,r){return Zd(this,e),Qd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r))}return Hd(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var r=Wd.EAN5_STRUCTURE[th(this.data)];return{data:"1011"+(0,Xd.default)(this.data,r,"01"),text:this.text}}}]),e}(Kd.default);Ar.default=nh;var Rr={};Object.defineProperty(Rr,"__esModule",{value:!0});var rh=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),ih=Ge,oh=yt,ah=Io(oh),sh=Ve,lh=Io(sh);function Io(n){return n&&n.__esModule?n:{default:n}}function uh(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function ch(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function fh(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var dh=function(n){fh(e,n);function e(t,r){return uh(this,e),ch(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r))}return rh(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var r=ih.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,ah.default)(this.data,r,"01"),text:this.text}}}]),e}(lh.default);Rr.default=dh;var qt={};Object.defineProperty(qt,"__esModule",{value:!0});var hh=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}();qt.checksum=Dr;var ph=yt,kt=Bo(ph),mh=Ve,gh=Bo(mh);function Bo(n){return n&&n.__esModule?n:{default:n}}function vh(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function yh(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function _h(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var bh=function(n){_h(e,n);function e(t,r){vh(this,e),t.search(/^[0-9]{11}$/)!==-1&&(t+=Dr(t));var i=yh(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return i.displayValue=r.displayValue,r.fontSize>r.width*10?i.fontSize=r.width*10:i.fontSize=r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return hh(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==Dr(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,kt.default)(this.data.substr(0,6),"LLLLLL"),r+="01010",r+=(0,kt.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,kt.default)(this.data[0],"L"),options:{height:this.guardHeight}}),r.push({data:(0,kt.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,kt.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),r.push({data:(0,kt.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}}]),e}(gh.default);function Dr(n){var e=0,t;for(t=1;t<11;t+=2)e+=parseInt(n[t]);for(t=0;t<11;t+=2)e+=parseInt(n[t])*3;return(10-e%10)%10}qt.default=bh;var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0});var wh=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),$h=yt,Sh=No($h),Oh=Ve,Ch=No(Oh),Eh=qt;function No(n){return n&&n.__esModule?n:{default:n}}function kh(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Vr(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function xh(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var Ah=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],Rh=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],Dh=function(n){xh(e,n);function e(t,r){kh(this,e);var i=Vr(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));if(i.isValid=!1,t.search(/^[0-9]{6}$/)!==-1)i.middleDigits=t,i.upcA=Lo(t,"0"),i.text=r.text||""+i.upcA[0]+t+i.upcA[i.upcA.length-1],i.isValid=!0;else if(t.search(/^[01][0-9]{7}$/)!==-1)if(i.middleDigits=t.substring(1,t.length-1),i.upcA=Lo(i.middleDigits,t[0]),i.upcA[i.upcA.length-1]===t[t.length-1])i.isValid=!0;else return Vr(i);else return Vr(i);return i.displayValue=r.displayValue,r.fontSize>r.width*10?i.fontSize=r.width*10:i.fontSize=r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return wh(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=this.encodeMiddleDigits(),r+="010101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101",options:{height:this.guardHeight}}),r.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),r.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),r}},{key:"encodeMiddleDigits",value:function(){var r=this.upcA[0],i=this.upcA[this.upcA.length-1],o=Rh[parseInt(i)][parseInt(r)];return(0,Sh.default)(this.middleDigits,o)}}]),e}(Ch.default);function Lo(n,e){for(var t=parseInt(n[n.length-1]),r=Ah[t],i="",o=0,a=0;a<r.length;a++){var s=r[a];s==="X"?i+=n[o++]:i+=s}return i=""+e+i,""+i+(0,Eh.checksum)(i)}Pr.default=Dh,Object.defineProperty(Te,"__esModule",{value:!0}),Te.UPCE=Te.UPC=Te.EAN2=Te.EAN5=Te.EAN8=Te.EAN13=void 0;var Ph=kr,Vh=xt(Ph),Th=xr,Mh=xt(Th),Fh=Ar,jh=xt(Fh),Ih=Rr,Bh=xt(Ih),Nh=qt,Lh=xt(Nh),zh=Pr,Uh=xt(zh);function xt(n){return n&&n.__esModule?n:{default:n}}Te.EAN13=Vh.default,Te.EAN8=Mh.default,Te.EAN5=jh.default,Te.EAN2=Bh.default,Te.UPC=Lh.default,Te.UPCE=Uh.default;var At={},Cn={},Gt={};Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.START_BIN="1010",Gt.END_BIN="11101",Gt.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"],Object.defineProperty(Cn,"__esModule",{value:!0});var qh=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),En=Gt,Gh=Ve,Hh=Wh(Gh);function Wh(n){return n&&n.__esModule?n:{default:n}}function Yh(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Xh(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function Jh(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var Kh=function(n){Jh(e,n);function e(){return Yh(this,e),Xh(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return qh(e,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var r=this,i=this.data.match(/.{2}/g).map(function(o){return r.encodePair(o)}).join("");return{data:En.START_BIN+i+En.END_BIN,text:this.text}}},{key:"encodePair",value:function(r){var i=En.BINARIES[r[1]];return En.BINARIES[r[0]].split("").map(function(o,a){return(o==="1"?"111":"1")+(i[a]==="1"?"000":"0")}).join("")}}]),e}(Hh.default);Cn.default=Kh;var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});var Zh=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),Qh=Cn,ep=tp(Qh);function tp(n){return n&&n.__esModule?n:{default:n}}function np(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function rp(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function ip(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var zo=function(e){var t=e.substr(0,13).split("").map(function(r){return parseInt(r,10)}).reduce(function(r,i,o){return r+i*(3-o%2*2)},0);return Math.ceil(t/10)*10-t},op=function(n){ip(e,n);function e(t,r){return np(this,e),t.search(/^[0-9]{13}$/)!==-1&&(t+=zo(t)),rp(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r))}return Zh(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===zo(this.data)}}]),e}(ep.default);Tr.default=op,Object.defineProperty(At,"__esModule",{value:!0}),At.ITF14=At.ITF=void 0;var ap=Cn,sp=Uo(ap),lp=Tr,up=Uo(lp);function Uo(n){return n&&n.__esModule?n:{default:n}}At.ITF=sp.default,At.ITF14=up.default;var He={},_t={};Object.defineProperty(_t,"__esModule",{value:!0});var cp=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),fp=Ve,dp=hp(fp);function hp(n){return n&&n.__esModule?n:{default:n}}function pp(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function mp(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function gp(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var vp=function(n){gp(e,n);function e(t,r){return pp(this,e),mp(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r))}return cp(e,[{key:"encode",value:function(){for(var r="110",i=0;i<this.data.length;i++){var o=parseInt(this.data[i]),a=o.toString(2);a=yp(a,4-a.length);for(var s=0;s<a.length;s++)r+=a[s]=="0"?"100":"110"}return r+="1001",{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),e}(dp.default);function yp(n,e){for(var t=0;t<e;t++)n="0"+n;return n}_t.default=vp;var Mr={},bt={};Object.defineProperty(bt,"__esModule",{value:!0}),bt.mod10=_p,bt.mod11=bp;function _p(n){for(var e=0,t=0;t<n.length;t++){var r=parseInt(n[t]);(t+n.length)%2===0?e+=r:e+=r*2%10+Math.floor(r*2/10)}return(10-e%10)%10}function bp(n){for(var e=0,t=[2,3,4,5,6,7],r=0;r<n.length;r++){var i=parseInt(n[n.length-1-r]);e+=t[r%t.length]*i}return(11-e%11)%11}Object.defineProperty(Mr,"__esModule",{value:!0});var wp=_t,$p=Op(wp),Sp=bt;function Op(n){return n&&n.__esModule?n:{default:n}}function Cp(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Ep(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function kp(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var xp=function(n){kp(e,n);function e(t,r){return Cp(this,e),Ep(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,Sp.mod10)(t),r))}return e}($p.default);Mr.default=xp;var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0});var Ap=_t,Rp=Pp(Ap),Dp=bt;function Pp(n){return n&&n.__esModule?n:{default:n}}function Vp(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Tp(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function Mp(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var Fp=function(n){Mp(e,n);function e(t,r){return Vp(this,e),Tp(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,Dp.mod11)(t),r))}return e}(Rp.default);Fr.default=Fp;var jr={};Object.defineProperty(jr,"__esModule",{value:!0});var jp=_t,Ip=Bp(jp),qo=bt;function Bp(n){return n&&n.__esModule?n:{default:n}}function Np(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Lp(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function zp(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var Up=function(n){zp(e,n);function e(t,r){return Np(this,e),t+=(0,qo.mod10)(t),t+=(0,qo.mod10)(t),Lp(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r))}return e}(Ip.default);jr.default=Up;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0});var qp=_t,Gp=Hp(qp),Go=bt;function Hp(n){return n&&n.__esModule?n:{default:n}}function Wp(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Yp(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function Xp(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var Jp=function(n){Xp(e,n);function e(t,r){return Wp(this,e),t+=(0,Go.mod11)(t),t+=(0,Go.mod10)(t),Yp(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r))}return e}(Gp.default);Ir.default=Jp,Object.defineProperty(He,"__esModule",{value:!0}),He.MSI1110=He.MSI1010=He.MSI11=He.MSI10=He.MSI=void 0;var Kp=_t,Zp=Ht(Kp),Qp=Mr,em=Ht(Qp),tm=Fr,nm=Ht(tm),rm=jr,im=Ht(rm),om=Ir,am=Ht(om);function Ht(n){return n&&n.__esModule?n:{default:n}}He.MSI=Zp.default,He.MSI10=em.default,He.MSI11=nm.default,He.MSI1010=im.default,He.MSI1110=am.default;var kn={};Object.defineProperty(kn,"__esModule",{value:!0}),kn.pharmacode=void 0;var sm=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),lm=Ve,um=cm(lm);function cm(n){return n&&n.__esModule?n:{default:n}}function fm(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function dm(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function hm(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var pm=function(n){hm(e,n);function e(t,r){fm(this,e);var i=dm(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return i.number=parseInt(t,10),i}return sm(e,[{key:"encode",value:function(){for(var r=this.number,i="";!isNaN(r)&&r!=0;)r%2===0?(i="11100"+i,r=(r-2)/2):(i="100"+i,r=(r-1)/2);return i=i.slice(0,-2),{data:i,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(um.default);kn.pharmacode=pm;var xn={};Object.defineProperty(xn,"__esModule",{value:!0}),xn.codabar=void 0;var mm=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),gm=Ve,vm=ym(gm);function ym(n){return n&&n.__esModule?n:{default:n}}function _m(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function bm(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function wm(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var $m=function(n){wm(e,n);function e(t,r){_m(this,e),t.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(t="A"+t+"A");var i=bm(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.toUpperCase(),r));return i.text=i.options.text||i.text.replace(/[A-D]/g,""),i}return mm(e,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var r=[],i=this.getEncodings(),o=0;o<this.data.length;o++)r.push(i[this.data.charAt(o)]),o!==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"}}}]),e}(vm.default);xn.codabar=$m;var An={};Object.defineProperty(An,"__esModule",{value:!0}),An.GenericBarcode=void 0;var Sm=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),Om=Ve,Cm=Em(Om);function Em(n){return n&&n.__esModule?n:{default:n}}function km(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function xm(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function Am(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var Rm=function(n){Am(e,n);function e(t,r){return km(this,e),xm(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r))}return Sm(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(Cm.default);An.GenericBarcode=Rm,Object.defineProperty(vr,"__esModule",{value:!0});var Dm=wn,Rn=tt,Rt=Te,Ho=At,Wt=He,Pm=kn,Vm=xn,Tm=An;vr.default={CODE39:Dm.CODE39,CODE128:Rn.CODE128,CODE128A:Rn.CODE128A,CODE128B:Rn.CODE128B,CODE128C:Rn.CODE128C,EAN13:Rt.EAN13,EAN8:Rt.EAN8,EAN5:Rt.EAN5,EAN2:Rt.EAN2,UPC:Rt.UPC,UPCE:Rt.UPCE,ITF14:Ho.ITF14,ITF:Ho.ITF,MSI:Wt.MSI,MSI10:Wt.MSI10,MSI11:Wt.MSI11,MSI1010:Wt.MSI1010,MSI1110:Wt.MSI1110,pharmacode:Pm.pharmacode,codabar:Vm.codabar,GenericBarcode:Tm.GenericBarcode};var Dt={};Object.defineProperty(Dt,"__esModule",{value:!0});var Mm=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};Dt.default=function(n,e){return Mm({},n,e)};var Br={};Object.defineProperty(Br,"__esModule",{value:!0}),Br.default=Fm;function Fm(n){var e=[];function t(r){if(Array.isArray(r))for(var i=0;i<r.length;i++)t(r[i]);else r.text=r.text||"",r.data=r.data||"",e.push(r)}return t(n),e}var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.default=jm;function jm(n){return n.marginTop=n.marginTop||n.margin,n.marginBottom=n.marginBottom||n.margin,n.marginRight=n.marginRight||n.margin,n.marginLeft=n.marginLeft||n.margin,n}var Lr={},zr={},Dn={};Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.default=Im;function Im(n){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var t in e)e.hasOwnProperty(t)&&(t=e[t],typeof n[t]=="string"&&(n[t]=parseInt(n[t],10)));return typeof n.displayValue=="string"&&(n.displayValue=n.displayValue!="false"),n}var Pn={};Object.defineProperty(Pn,"__esModule",{value:!0});var Bm={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(){}};Pn.default=Bm,Object.defineProperty(zr,"__esModule",{value:!0});var Nm=Dn,Lm=Yo(Nm),zm=Pn,Wo=Yo(zm);function Yo(n){return n&&n.__esModule?n:{default:n}}function Um(n){var e={};for(var t in Wo.default)Wo.default.hasOwnProperty(t)&&(n.hasAttribute("jsbarcode-"+t.toLowerCase())&&(e[t]=n.getAttribute("jsbarcode-"+t.toLowerCase())),n.hasAttribute("data-"+t.toLowerCase())&&(e[t]=n.getAttribute("data-"+t.toLowerCase())));return e.value=n.getAttribute("jsbarcode-value")||n.getAttribute("data-value"),e=(0,Lm.default)(e),e}zr.default=Um;var Ur={},qr={},Be={};Object.defineProperty(Be,"__esModule",{value:!0}),Be.getTotalWidthOfEncodings=Be.calculateEncodingAttributes=Be.getBarcodePadding=Be.getEncodingHeight=Be.getMaximumHeightOfEncodings=void 0;var qm=Dt,Gm=Hm(qm);function Hm(n){return n&&n.__esModule?n:{default:n}}function Xo(n,e){return e.height+(e.displayValue&&n.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function Jo(n,e,t){if(t.displayValue&&e<n){if(t.textAlign=="center")return Math.floor((n-e)/2);if(t.textAlign=="left")return 0;if(t.textAlign=="right")return Math.floor(n-e)}return 0}function Wm(n,e,t){for(var r=0;r<n.length;r++){var i=n[r],o=(0,Gm.default)(e,i.options),a;o.displayValue?a=Jm(i.text,o,t):a=0;var s=i.data.length*o.width;i.width=Math.ceil(Math.max(a,s)),i.height=Xo(i,o),i.barcodePadding=Jo(a,s,o)}}function Ym(n){for(var e=0,t=0;t<n.length;t++)e+=n[t].width;return e}function Xm(n){for(var e=0,t=0;t<n.length;t++)n[t].height>e&&(e=n[t].height);return e}function Jm(n,e,t){var r;if(t)r=t;else if(typeof document<"u")r=document.createElement("canvas").getContext("2d");else return 0;r.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var i=r.measureText(n);if(!i)return 0;var o=i.width;return o}Be.getMaximumHeightOfEncodings=Xm,Be.getEncodingHeight=Xo,Be.getBarcodePadding=Jo,Be.calculateEncodingAttributes=Wm,Be.getTotalWidthOfEncodings=Ym,Object.defineProperty(qr,"__esModule",{value:!0});var Km=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),Zm=Dt,Qm=eg(Zm),Gr=Be;function eg(n){return n&&n.__esModule?n:{default:n}}function tg(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}var ng=function(){function n(e,t,r){tg(this,n),this.canvas=e,this.encodings=t,this.options=r}return Km(n,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var t=0;t<this.encodings.length;t++){var r=(0,Qm.default)(this.options,this.encodings[t].options);this.drawCanvasBarcode(r,this.encodings[t]),this.drawCanvasText(r,this.encodings[t]),this.moveCanvasDrawing(this.encodings[t])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var t=this.canvas.getContext("2d");t.save(),(0,Gr.calculateEncodingAttributes)(this.encodings,this.options,t);var r=(0,Gr.getTotalWidthOfEncodings)(this.encodings),i=(0,Gr.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=r+this.options.marginLeft+this.options.marginRight,this.canvas.height=i,t.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(t.fillStyle=this.options.background,t.fillRect(0,0,this.canvas.width,this.canvas.height)),t.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(t,r){var i=this.canvas.getContext("2d"),o=r.data,a;t.textPosition=="top"?a=t.marginTop+t.fontSize+t.textMargin:a=t.marginTop,i.fillStyle=t.lineColor;for(var s=0;s<o.length;s++){var l=s*t.width+r.barcodePadding;o[s]==="1"?i.fillRect(l,a,t.width,t.height):o[s]&&i.fillRect(l,a,t.width,t.height*o[s])}}},{key:"drawCanvasText",value:function(t,r){var i=this.canvas.getContext("2d"),o=t.fontOptions+" "+t.fontSize+"px "+t.font;if(t.displayValue){var a,s;t.textPosition=="top"?s=t.marginTop+t.fontSize-t.textMargin:s=t.height+t.textMargin+t.marginTop+t.fontSize,i.font=o,t.textAlign=="left"||r.barcodePadding>0?(a=0,i.textAlign="left"):t.textAlign=="right"?(a=r.width-1,i.textAlign="right"):(a=r.width/2,i.textAlign="center"),i.fillText(r.text,a,s)}}},{key:"moveCanvasDrawing",value:function(t){var r=this.canvas.getContext("2d");r.translate(t.width,0)}},{key:"restoreCanvas",value:function(){var t=this.canvas.getContext("2d");t.restore()}}]),n}();qr.default=ng;var Hr={};Object.defineProperty(Hr,"__esModule",{value:!0});var rg=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),ig=Dt,og=ag(ig),Wr=Be;function ag(n){return n&&n.__esModule?n:{default:n}}function sg(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}var Vn="http://www.w3.org/2000/svg",lg=function(){function n(e,t,r){sg(this,n),this.svg=e,this.encodings=t,this.options=r,this.document=r.xmlDocument||document}return rg(n,[{key:"render",value:function(){var t=this.options.marginLeft;this.prepareSVG();for(var r=0;r<this.encodings.length;r++){var i=this.encodings[r],o=(0,og.default)(this.options,i.options),a=this.createGroup(t,o.marginTop,this.svg);this.setGroupOptions(a,o),this.drawSvgBarcode(a,o,i),this.drawSVGText(a,o,i),t+=i.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,Wr.calculateEncodingAttributes)(this.encodings,this.options);var t=(0,Wr.getTotalWidthOfEncodings)(this.encodings),r=(0,Wr.getMaximumHeightOfEncodings)(this.encodings),i=t+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(i,r),this.options.background&&this.drawRect(0,0,i,r,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(t,r,i){var o=i.data,a;r.textPosition=="top"?a=r.fontSize+r.textMargin:a=0;for(var s=0,l=0,f=0;f<o.length;f++)l=f*r.width+i.barcodePadding,o[f]==="1"?s++:s>0&&(this.drawRect(l-r.width*s,a,r.width*s,r.height,t),s=0);s>0&&this.drawRect(l-r.width*(s-1),a,r.width*s,r.height,t)}},{key:"drawSVGText",value:function(t,r,i){var o=this.document.createElementNS(Vn,"text");if(r.displayValue){var a,s;o.setAttribute("style","font:"+r.fontOptions+" "+r.fontSize+"px "+r.font),r.textPosition=="top"?s=r.fontSize-r.textMargin:s=r.height+r.textMargin+r.fontSize,r.textAlign=="left"||i.barcodePadding>0?(a=0,o.setAttribute("text-anchor","start")):r.textAlign=="right"?(a=i.width-1,o.setAttribute("text-anchor","end")):(a=i.width/2,o.setAttribute("text-anchor","middle")),o.setAttribute("x",a),o.setAttribute("y",s),o.appendChild(this.document.createTextNode(i.text)),t.appendChild(o)}}},{key:"setSvgAttributes",value:function(t,r){var i=this.svg;i.setAttribute("width",t+"px"),i.setAttribute("height",r+"px"),i.setAttribute("x","0px"),i.setAttribute("y","0px"),i.setAttribute("viewBox","0 0 "+t+" "+r),i.setAttribute("xmlns",Vn),i.setAttribute("version","1.1"),i.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(t,r,i){var o=this.document.createElementNS(Vn,"g");return o.setAttribute("transform","translate("+t+", "+r+")"),i.appendChild(o),o}},{key:"setGroupOptions",value:function(t,r){t.setAttribute("style","fill:"+r.lineColor+";")}},{key:"drawRect",value:function(t,r,i,o,a){var s=this.document.createElementNS(Vn,"rect");return s.setAttribute("x",t),s.setAttribute("y",r),s.setAttribute("width",i),s.setAttribute("height",o),a.appendChild(s),s}}]),n}();Hr.default=lg;var Yr={};Object.defineProperty(Yr,"__esModule",{value:!0});var ug=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}();function cg(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}var fg=function(){function n(e,t,r){cg(this,n),this.object=e,this.encodings=t,this.options=r}return ug(n,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),n}();Yr.default=fg,Object.defineProperty(Ur,"__esModule",{value:!0});var dg=qr,hg=Xr(dg),pg=Hr,mg=Xr(pg),gg=Yr,vg=Xr(gg);function Xr(n){return n&&n.__esModule?n:{default:n}}Ur.default={CanvasRenderer:hg.default,SVGRenderer:mg.default,ObjectRenderer:vg.default};var Pt={};Object.defineProperty(Pt,"__esModule",{value:!0});function Jr(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Kr(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function Zr(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var yg=function(n){Zr(e,n);function e(t,r){Jr(this,e);var i=Kr(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.name="InvalidInputException",i.symbology=t,i.input=r,i.message='"'+i.input+'" is not a valid input for '+i.symbology,i}return e}(Error),_g=function(n){Zr(e,n);function e(){Jr(this,e);var t=Kr(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="InvalidElementException",t.message="Not supported type to render on",t}return e}(Error),bg=function(n){Zr(e,n);function e(){Jr(this,e);var t=Kr(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="NoElementException",t.message="No element to render on.",t}return e}(Error);Pt.InvalidInputException=yg,Pt.InvalidElementException=_g,Pt.NoElementException=bg,Object.defineProperty(Lr,"__esModule",{value:!0});var wg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$g=zr,Qr=Ko($g),Sg=Ur,Yt=Ko(Sg),Og=Pt;function Ko(n){return n&&n.__esModule?n:{default:n}}function ei(n){if(typeof n=="string")return Cg(n);if(Array.isArray(n)){for(var e=[],t=0;t<n.length;t++)e.push(ei(n[t]));return e}else{if(typeof HTMLCanvasElement<"u"&&n instanceof HTMLImageElement)return Eg(n);if(n&&n.nodeName&&n.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&n instanceof SVGElement)return{element:n,options:(0,Qr.default)(n),renderer:Yt.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&n instanceof HTMLCanvasElement)return{element:n,options:(0,Qr.default)(n),renderer:Yt.default.CanvasRenderer};if(n&&n.getContext)return{element:n,renderer:Yt.default.CanvasRenderer};if(n&&(typeof n>"u"?"undefined":wg(n))==="object"&&!n.nodeName)return{element:n,renderer:Yt.default.ObjectRenderer};throw new Og.InvalidElementException}}function Cg(n){var e=document.querySelectorAll(n);if(e.length!==0){for(var t=[],r=0;r<e.length;r++)t.push(ei(e[r]));return t}}function Eg(n){var e=document.createElement("canvas");return{element:e,options:(0,Qr.default)(n),renderer:Yt.default.CanvasRenderer,afterRender:function(){n.setAttribute("src",e.toDataURL())}}}Lr.default=ei;var ti={};Object.defineProperty(ti,"__esModule",{value:!0});var kg=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}();function xg(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}var Ag=function(){function n(e){xg(this,n),this.api=e}return kg(n,[{key:"handleCatch",value:function(t){if(t.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw t.message;else throw t;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(t){try{var r=t.apply(void 0,arguments);return this.api._options.valid(!0),r}catch(i){return this.handleCatch(i),this.api}}}]),n}();ti.default=Ag;var Rg=vr,wt=ft(Rg),Dg=Dt,Xt=ft(Dg),Pg=Br,Zo=ft(Pg),Vg=Nr,Qo=ft(Vg),Tg=Lr,Mg=ft(Tg),Fg=Dn,jg=ft(Fg),Ig=ti,Bg=ft(Ig),ea=Pt,Ng=Pn,ta=ft(Ng);function ft(n){return n&&n.__esModule?n:{default:n}}var at=function(){},Tn=function(e,t,r){var i=new at;if(typeof e>"u")throw Error("No element to render on was provided.");return i._renderProperties=(0,Mg.default)(e),i._encodings=[],i._options=ta.default,i._errorHandler=new Bg.default(i),typeof t<"u"&&(r=r||{},r.format||(r.format=ia()),i.options(r)[r.format](t,r).render()),i};Tn.getModule=function(n){return wt.default[n]};for(var na in wt.default)wt.default.hasOwnProperty(na)&&Lg(wt.default,na);function Lg(n,e){at.prototype[e]=at.prototype[e.toUpperCase()]=at.prototype[e.toLowerCase()]=function(t,r){var i=this;return i._errorHandler.wrapBarcodeCall(function(){r.text=typeof r.text>"u"?void 0:""+r.text;var o=(0,Xt.default)(i._options,r);o=(0,jg.default)(o);var a=n[e],s=ra(t,a,o);return i._encodings.push(s),i})}}function ra(n,e,t){n=""+n;var r=new e(n,t);if(!r.valid())throw new ea.InvalidInputException(r.constructor.name,n);var i=r.encode();i=(0,Zo.default)(i);for(var o=0;o<i.length;o++)i[o].options=(0,Xt.default)(t,i[o].options);return i}function ia(){return wt.default.CODE128?"CODE128":Object.keys(wt.default)[0]}at.prototype.options=function(n){return this._options=(0,Xt.default)(this._options,n),this},at.prototype.blank=function(n){var e=new Array(n+1).join("0");return this._encodings.push({data:e}),this},at.prototype.init=function(){if(!!this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var n;for(var e in this._renderProperties){n=this._renderProperties[e];var t=(0,Xt.default)(this._options,n.options);t.format=="auto"&&(t.format=ia()),this._errorHandler.wrapBarcodeCall(function(){var r=t.value,i=wt.default[t.format.toUpperCase()],o=ra(r,i,t);ni(n,o,t)})}}},at.prototype.render=function(){if(!this._renderProperties)throw new ea.NoElementException;if(Array.isArray(this._renderProperties))for(var n=0;n<this._renderProperties.length;n++)ni(this._renderProperties[n],this._encodings,this._options);else ni(this._renderProperties,this._encodings,this._options);return this},at.prototype._defaults=ta.default;function ni(n,e,t){e=(0,Zo.default)(e);for(var r=0;r<e.length;r++)e[r].options=(0,Xt.default)(t,e[r].options),(0,Qo.default)(e[r].options);(0,Qo.default)(t);var i=n.renderer,o=new i(n.element,e,t);o.render(),n.afterRender&&n.afterRender()}typeof window<"u"&&(window.JsBarcode=Tn),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(n,e){var t=[];return jQuery(this).each(function(){t.push(this)}),Tn(t,n,e)});var zg=Tn;const Ug=u.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 n=this.value,e={};Object.keys(this.$props).forEach(t=>{this.$props[t]!=null&&this.$props[t]!==""&&(e[t]=this.$props[t])}),delete e.value,delete e.formCreateInject,this.$nextTick(()=>{zg(this.$refs.bar,n||"",e)})},deep:!0,immediate:!0}}}),qg={class:"_fc-barcode",ref:"bar"};function Gg(n,e,t,r,i,o){return u.openBlock(),u.createElementBlock("img",qg,null,512)}const Hg=Se(Ug,[["render",Gg]]),R0="",Wg=u.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(()=>{ot.ready("mpegts",()=>{const n=this.$refs.video,e=window.mpegts.createPlayer({isLive:this.isLive,type:this.type,url:this.src});e.attachMediaElement(n),e.on("error",t=>{this.$emit("error",t)}),e.load(),this.autoplay&&e.play().catch(t=>{this.$emit("error",t)}),this.player=e})})},immediate:!0}},created(){window.mpegts?ot.done("mpegts"):ot.isDefined("mpegts")||ot.loadNpm("mpegts.js@1.8.0/dist/mpegts.js","mpegts")}}),Yg=["controls","loop"];function Xg(n,e,t,r,i,o){return u.openBlock(),u.createElementBlock("video",{ref:"video",class:"_fc-video-box",controls:n.controls,loop:n.loop,onPause:e[0]||(e[0]=a=>n.$emit("pause",a)),onPlay:e[1]||(e[1]=a=>n.$emit("play",a)),onEnded:e[2]||(e[2]=a=>n.$emit("ended",a))},null,40,Yg)}const Jg=Se(Wg,[["render",Xg]]);var oa={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Yi,()=>(()=>{var t={873:(a,s)=>{var l,f,c=function(){var p=function(A,w){var _=A,h=q[w],d=null,m=0,y=null,v=[],k={},T=function(b,E){d=function(C){for(var P=new Array(C),F=0;F<C;F+=1){P[F]=new Array(C);for(var Y=0;Y<C;Y+=1)P[F][Y]=null}return P}(m=4*_+17),V(0,0),V(m-7,0),V(0,m-7),I(),z(),L(b,E),_>=7&&B(b),y==null&&(y=x(_,h,v)),R(y,E)},V=function(b,E){for(var C=-1;C<=7;C+=1)if(!(b+C<=-1||m<=b+C))for(var P=-1;P<=7;P+=1)E+P<=-1||m<=E+P||(d[b+C][E+P]=0<=C&&C<=6&&(P==0||P==6)||0<=P&&P<=6&&(C==0||C==6)||2<=C&&C<=4&&2<=P&&P<=4)},z=function(){for(var b=8;b<m-8;b+=1)d[b][6]==null&&(d[b][6]=b%2==0);for(var E=8;E<m-8;E+=1)d[6][E]==null&&(d[6][E]=E%2==0)},I=function(){for(var b=U.getPatternPosition(_),E=0;E<b.length;E+=1)for(var C=0;C<b.length;C+=1){var P=b[E],F=b[C];if(d[P][F]==null)for(var Y=-2;Y<=2;Y+=1)for(var X=-2;X<=2;X+=1)d[P+Y][F+X]=Y==-2||Y==2||X==-2||X==2||Y==0&&X==0}},B=function(b){for(var E=U.getBCHTypeNumber(_),C=0;C<18;C+=1){var P=!b&&(E>>C&1)==1;d[Math.floor(C/3)][C%3+m-8-3]=P}for(C=0;C<18;C+=1)P=!b&&(E>>C&1)==1,d[C%3+m-8-3][Math.floor(C/3)]=P},L=function(b,E){for(var C=h<<3|E,P=U.getBCHTypeInfo(C),F=0;F<15;F+=1){var Y=!b&&(P>>F&1)==1;F<6?d[F][8]=Y:F<8?d[F+1][8]=Y:d[m-15+F][8]=Y}for(F=0;F<15;F+=1)Y=!b&&(P>>F&1)==1,F<8?d[8][m-F-1]=Y:F<9?d[8][15-F-1+1]=Y:d[8][15-F-1]=Y;d[m-8][8]=!b},R=function(b,E){for(var C=-1,P=m-1,F=7,Y=0,X=U.getMaskFunction(E),ne=m-1;ne>0;ne-=2)for(ne==6&&(ne-=1);;){for(var oe=0;oe<2;oe+=1)if(d[P][ne-oe]==null){var ae=!1;Y<b.length&&(ae=(b[Y]>>>F&1)==1),X(P,ne-oe)&&(ae=!ae),d[P][ne-oe]=ae,(F-=1)==-1&&(Y+=1,F=7)}if((P+=C)<0||m<=P){P-=C,C=-C;break}}},x=function(b,E,C){for(var P=Z.getRSBlocks(b,E),F=G(),Y=0;Y<C.length;Y+=1){var X=C[Y];F.put(X.getMode(),4),F.put(X.getLength(),U.getLengthInBits(X.getMode(),b)),X.write(F)}var ne=0;for(Y=0;Y<P.length;Y+=1)ne+=P[Y].dataCount;if(F.getLengthInBits()>8*ne)throw"code length overflow. ("+F.getLengthInBits()+">"+8*ne+")";for(F.getLengthInBits()+4<=8*ne&&F.put(0,4);F.getLengthInBits()%8!=0;)F.putBit(!1);for(;!(F.getLengthInBits()>=8*ne||(F.put(236,8),F.getLengthInBits()>=8*ne));)F.put(17,8);return function(oe,ae){for(var de=0,$e=0,ve=0,ce=new Array(ae.length),he=new Array(ae.length),Q=0;Q<ae.length;Q+=1){var Oe=ae[Q].dataCount,Ee=ae[Q].totalCount-Oe;$e=Math.max($e,Oe),ve=Math.max(ve,Ee),ce[Q]=new Array(Oe);for(var ie=0;ie<ce[Q].length;ie+=1)ce[Q][ie]=255&oe.getBuffer()[ie+de];de+=Oe;var Fe=U.getErrorCorrectPolynomial(Ee),Pe=K(ce[Q],Fe.getLength()-1).mod(Fe);for(he[Q]=new Array(Fe.getLength()-1),ie=0;ie<he[Q].length;ie+=1){var Ae=ie+Pe.getLength()-he[Q].length;he[Q][ie]=Ae>=0?Pe.getAt(Ae):0}}var Fn=0;for(ie=0;ie<ae.length;ie+=1)Fn+=ae[ie].totalCount;var Jt=new Array(Fn),Xe=0;for(ie=0;ie<$e;ie+=1)for(Q=0;Q<ae.length;Q+=1)ie<ce[Q].length&&(Jt[Xe]=ce[Q][ie],Xe+=1);for(ie=0;ie<ve;ie+=1)for(Q=0;Q<ae.length;Q+=1)ie<he[Q].length&&(Jt[Xe]=he[Q][ie],Xe+=1);return Jt}(F,P)};k.addData=function(b,E){var C=null;switch(E=E||"Byte"){case"Numeric":C=le(b);break;case"Alphanumeric":C=te(b);break;case"Byte":C=re(b);break;case"Kanji":C=J(b);break;default:throw"mode:"+E}v.push(C),y=null},k.isDark=function(b,E){if(b<0||m<=b||E<0||m<=E)throw b+","+E;return d[b][E]},k.getModuleCount=function(){return m},k.make=function(){if(_<1){for(var b=1;b<40;b++){for(var E=Z.getRSBlocks(b,h),C=G(),P=0;P<v.length;P++){var F=v[P];C.put(F.getMode(),4),C.put(F.getLength(),U.getLengthInBits(F.getMode(),b)),F.write(C)}var Y=0;for(P=0;P<E.length;P++)Y+=E[P].dataCount;if(C.getLengthInBits()<=8*Y)break}_=b}T(!1,function(){for(var X=0,ne=0,oe=0;oe<8;oe+=1){T(!0,oe);var ae=U.getLostPoint(k);(oe==0||X>ae)&&(X=ae,ne=oe)}return ne}())},k.createTableTag=function(b,E){b=b||2;var C="";C+='<table style="',C+=" border-width: 0px; border-style: none;",C+=" border-collapse: collapse;",C+=" padding: 0px; margin: "+(E=E===void 0?4*b:E)+"px;",C+='">',C+="<tbody>";for(var P=0;P<k.getModuleCount();P+=1){C+="<tr>";for(var F=0;F<k.getModuleCount();F+=1)C+='<td style="',C+=" border-width: 0px; border-style: none;",C+=" border-collapse: collapse;",C+=" padding: 0px; margin: 0px;",C+=" width: "+b+"px;",C+=" height: "+b+"px;",C+=" background-color: ",C+=k.isDark(P,F)?"#000000":"#ffffff",C+=";",C+='"/>';C+="</tr>"}return(C+="</tbody>")+"</table>"},k.createSvgTag=function(b,E,C,P){var F={};typeof arguments[0]=="object"&&(b=(F=arguments[0]).cellSize,E=F.margin,C=F.alt,P=F.title),b=b||2,E=E===void 0?4*b:E,(C=typeof C=="string"?{text:C}:C||{}).text=C.text||null,C.id=C.text?C.id||"qrcode-description":null,(P=typeof P=="string"?{text:P}:P||{}).text=P.text||null,P.id=P.text?P.id||"qrcode-title":null;var Y,X,ne,oe,ae=k.getModuleCount()*b+2*E,de="";for(oe="l"+b+",0 0,"+b+" -"+b+",0 0,-"+b+"z ",de+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',de+=F.scalable?"":' width="'+ae+'px" height="'+ae+'px"',de+=' viewBox="0 0 '+ae+" "+ae+'" ',de+=' preserveAspectRatio="xMinYMin meet"',de+=P.text||C.text?' role="img" aria-labelledby="'+D([P.id,C.id].join(" ").trim())+'"':"",de+=">",de+=P.text?'<title id="'+D(P.id)+'">'+D(P.text)+"</title>":"",de+=C.text?'<description id="'+D(C.id)+'">'+D(C.text)+"</description>":"",de+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',de+='<path d="',X=0;X<k.getModuleCount();X+=1)for(ne=X*b+E,Y=0;Y<k.getModuleCount();Y+=1)k.isDark(X,Y)&&(de+="M"+(Y*b+E)+","+ne+oe);return(de+='" stroke="transparent" fill="black"/>')+"</svg>"},k.createDataURL=function(b,E){b=b||2,E=E===void 0?4*b:E;var C=k.getModuleCount()*b+2*E,P=E,F=C-E;return Me(C,C,function(Y,X){if(P<=Y&&Y<F&&P<=X&&X<F){var ne=Math.floor((Y-P)/b),oe=Math.floor((X-P)/b);return k.isDark(oe,ne)?0:1}return 1})},k.createImgTag=function(b,E,C){b=b||2,E=E===void 0?4*b:E;var P=k.getModuleCount()*b+2*E,F="";return F+="<img",F+=' src="',F+=k.createDataURL(b,E),F+='"',F+=' width="',F+=P,F+='"',F+=' height="',F+=P,F+='"',C&&(F+=' alt="',F+=D(C),F+='"'),F+"/>"};var D=function(b){for(var E="",C=0;C<b.length;C+=1){var P=b.charAt(C);switch(P){case"<":E+="&lt;";break;case">":E+="&gt;";break;case"&":E+="&amp;";break;case'"':E+="&quot;";break;default:E+=P}}return E};return k.createASCII=function(b,E){if((b=b||1)<2)return function(ce){ce=ce===void 0?2:ce;var he,Q,Oe,Ee,ie,Fe=1*k.getModuleCount()+2*ce,Pe=ce,Ae=Fe-ce,Fn={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},Jt={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},Xe="";for(he=0;he<Fe;he+=2){for(Oe=Math.floor((he-Pe)/1),Ee=Math.floor((he+1-Pe)/1),Q=0;Q<Fe;Q+=1)ie="\u2588",Pe<=Q&&Q<Ae&&Pe<=he&&he<Ae&&k.isDark(Oe,Math.floor((Q-Pe)/1))&&(ie=" "),Pe<=Q&&Q<Ae&&Pe<=he+1&&he+1<Ae&&k.isDark(Ee,Math.floor((Q-Pe)/1))?ie+=" ":ie+="\u2588",Xe+=ce<1&&he+1>=Ae?Jt[ie]:Fn[ie];Xe+=`
`}return Fe%2&&ce>0?Xe.substring(0,Xe.length-Fe-1)+Array(Fe+1).join("\u2580"):Xe.substring(0,Xe.length-1)}(E);b-=1,E=E===void 0?2*b:E;var C,P,F,Y,X=k.getModuleCount()*b+2*E,ne=E,oe=X-E,ae=Array(b+1).join("\u2588\u2588"),de=Array(b+1).join(" "),$e="",ve="";for(C=0;C<X;C+=1){for(F=Math.floor((C-ne)/b),ve="",P=0;P<X;P+=1)Y=1,ne<=P&&P<oe&&ne<=C&&C<oe&&k.isDark(F,Math.floor((P-ne)/b))&&(Y=0),ve+=Y?ae:de;for(F=0;F<b;F+=1)$e+=ve+`
`}return $e.substring(0,$e.length-1)},k.renderTo2dContext=function(b,E){E=E||2;for(var C=k.getModuleCount(),P=0;P<C;P++)for(var F=0;F<C;F++)b.fillStyle=k.isDark(P,F)?"black":"white",b.fillRect(P*E,F*E,E,E)},k};p.stringToBytes=(p.stringToBytesFuncs={default:function(A){for(var w=[],_=0;_<A.length;_+=1){var h=A.charCodeAt(_);w.push(255&h)}return w}}).default,p.createStringToBytes=function(A,w){var _=function(){for(var d=we(A),m=function(){var z=d.read();if(z==-1)throw"eof";return z},y=0,v={};;){var k=d.read();if(k==-1)break;var T=m(),V=m()<<8|m();v[String.fromCharCode(k<<8|T)]=V,y+=1}if(y!=w)throw y+" != "+w;return v}(),h="?".charCodeAt(0);return function(d){for(var m=[],y=0;y<d.length;y+=1){var v=d.charCodeAt(y);if(v<128)m.push(v);else{var k=_[d.charAt(y)];typeof k=="number"?(255&k)==k?m.push(k):(m.push(k>>>8),m.push(255&k)):m.push(h)}}return m}};var g,$,S,O,M,q={L:1,M:0,Q:3,H:2},U=(g=[[],[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]],$=1335,S=7973,M=function(A){for(var w=0;A!=0;)w+=1,A>>>=1;return w},(O={}).getBCHTypeInfo=function(A){for(var w=A<<10;M(w)-M($)>=0;)w^=$<<M(w)-M($);return 21522^(A<<10|w)},O.getBCHTypeNumber=function(A){for(var w=A<<12;M(w)-M(S)>=0;)w^=S<<M(w)-M(S);return A<<12|w},O.getPatternPosition=function(A){return g[A-1]},O.getMaskFunction=function(A){switch(A){case 0:return function(w,_){return(w+_)%2==0};case 1:return function(w,_){return w%2==0};case 2:return function(w,_){return _%3==0};case 3:return function(w,_){return(w+_)%3==0};case 4:return function(w,_){return(Math.floor(w/2)+Math.floor(_/3))%2==0};case 5:return function(w,_){return w*_%2+w*_%3==0};case 6:return function(w,_){return(w*_%2+w*_%3)%2==0};case 7:return function(w,_){return(w*_%3+(w+_)%2)%2==0};default:throw"bad maskPattern:"+A}},O.getErrorCorrectPolynomial=function(A){for(var w=K([1],0),_=0;_<A;_+=1)w=w.multiply(K([1,N.gexp(_)],0));return w},O.getLengthInBits=function(A,w){if(1<=w&&w<10)switch(A){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+A}else if(w<27)switch(A){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+A}else{if(!(w<41))throw"type:"+w;switch(A){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+A}}},O.getLostPoint=function(A){for(var w=A.getModuleCount(),_=0,h=0;h<w;h+=1)for(var d=0;d<w;d+=1){for(var m=0,y=A.isDark(h,d),v=-1;v<=1;v+=1)if(!(h+v<0||w<=h+v))for(var k=-1;k<=1;k+=1)d+k<0||w<=d+k||v==0&&k==0||y==A.isDark(h+v,d+k)&&(m+=1);m>5&&(_+=3+m-5)}for(h=0;h<w-1;h+=1)for(d=0;d<w-1;d+=1){var T=0;A.isDark(h,d)&&(T+=1),A.isDark(h+1,d)&&(T+=1),A.isDark(h,d+1)&&(T+=1),A.isDark(h+1,d+1)&&(T+=1),T!=0&&T!=4||(_+=3)}for(h=0;h<w;h+=1)for(d=0;d<w-6;d+=1)A.isDark(h,d)&&!A.isDark(h,d+1)&&A.isDark(h,d+2)&&A.isDark(h,d+3)&&A.isDark(h,d+4)&&!A.isDark(h,d+5)&&A.isDark(h,d+6)&&(_+=40);for(d=0;d<w;d+=1)for(h=0;h<w-6;h+=1)A.isDark(h,d)&&!A.isDark(h+1,d)&&A.isDark(h+2,d)&&A.isDark(h+3,d)&&A.isDark(h+4,d)&&!A.isDark(h+5,d)&&A.isDark(h+6,d)&&(_+=40);var V=0;for(d=0;d<w;d+=1)for(h=0;h<w;h+=1)A.isDark(h,d)&&(V+=1);return _+Math.abs(100*V/w/w-50)/5*10},O),N=function(){for(var A=new Array(256),w=new Array(256),_=0;_<8;_+=1)A[_]=1<<_;for(_=8;_<256;_+=1)A[_]=A[_-4]^A[_-5]^A[_-6]^A[_-8];for(_=0;_<255;_+=1)w[A[_]]=_;return{glog:function(h){if(h<1)throw"glog("+h+")";return w[h]},gexp:function(h){for(;h<0;)h+=255;for(;h>=256;)h-=255;return A[h]}}}();function K(A,w){if(A.length===void 0)throw A.length+"/"+w;var _=function(){for(var d=0;d<A.length&&A[d]==0;)d+=1;for(var m=new Array(A.length-d+w),y=0;y<A.length-d;y+=1)m[y]=A[y+d];return m}(),h={getAt:function(d){return _[d]},getLength:function(){return _.length},multiply:function(d){for(var m=new Array(h.getLength()+d.getLength()-1),y=0;y<h.getLength();y+=1)for(var v=0;v<d.getLength();v+=1)m[y+v]^=N.gexp(N.glog(h.getAt(y))+N.glog(d.getAt(v)));return K(m,0)},mod:function(d){if(h.getLength()-d.getLength()<0)return h;for(var m=N.glog(h.getAt(0))-N.glog(d.getAt(0)),y=new Array(h.getLength()),v=0;v<h.getLength();v+=1)y[v]=h.getAt(v);for(v=0;v<d.getLength();v+=1)y[v]^=N.gexp(N.glog(d.getAt(v))+m);return K(y,0).mod(d)}};return h}var Z=function(){var A=[[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]],w=function(h,d){var m={};return m.totalCount=h,m.dataCount=d,m},_={getRSBlocks:function(h,d){var m=function(B,L){switch(L){case q.L:return A[4*(B-1)+0];case q.M:return A[4*(B-1)+1];case q.Q:return A[4*(B-1)+2];case q.H:return A[4*(B-1)+3];default:return}}(h,d);if(m===void 0)throw"bad rs block @ typeNumber:"+h+"/errorCorrectionLevel:"+d;for(var y=m.length/3,v=[],k=0;k<y;k+=1)for(var T=m[3*k+0],V=m[3*k+1],z=m[3*k+2],I=0;I<T;I+=1)v.push(w(V,z));return v}};return _}(),G=function(){var A=[],w=0,_={getBuffer:function(){return A},getAt:function(h){var d=Math.floor(h/8);return(A[d]>>>7-h%8&1)==1},put:function(h,d){for(var m=0;m<d;m+=1)_.putBit((h>>>d-m-1&1)==1)},getLengthInBits:function(){return w},putBit:function(h){var d=Math.floor(w/8);A.length<=d&&A.push(0),h&&(A[d]|=128>>>w%8),w+=1}};return _},le=function(A){var w=A,_={getMode:function(){return 1},getLength:function(m){return w.length},write:function(m){for(var y=w,v=0;v+2<y.length;)m.put(h(y.substring(v,v+3)),10),v+=3;v<y.length&&(y.length-v==1?m.put(h(y.substring(v,v+1)),4):y.length-v==2&&m.put(h(y.substring(v,v+2)),7))}},h=function(m){for(var y=0,v=0;v<m.length;v+=1)y=10*y+d(m.charAt(v));return y},d=function(m){if("0"<=m&&m<="9")return m.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+m};return _},te=function(A){var w=A,_={getMode:function(){return 2},getLength:function(d){return w.length},write:function(d){for(var m=w,y=0;y+1<m.length;)d.put(45*h(m.charAt(y))+h(m.charAt(y+1)),11),y+=2;y<m.length&&d.put(h(m.charAt(y)),6)}},h=function(d){if("0"<=d&&d<="9")return d.charCodeAt(0)-"0".charCodeAt(0);if("A"<=d&&d<="Z")return d.charCodeAt(0)-"A".charCodeAt(0)+10;switch(d){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 :"+d}};return _},re=function(A){var w=p.stringToBytes(A);return{getMode:function(){return 4},getLength:function(_){return w.length},write:function(_){for(var h=0;h<w.length;h+=1)_.put(w[h],8)}}},J=function(A){var w=p.stringToBytesFuncs.SJIS;if(!w)throw"sjis not supported.";(function(){var d=w("\u53CB");if(d.length!=2||(d[0]<<8|d[1])!=38726)throw"sjis not supported."})();var _=w(A),h={getMode:function(){return 8},getLength:function(d){return~~(_.length/2)},write:function(d){for(var m=_,y=0;y+1<m.length;){var v=(255&m[y])<<8|255&m[y+1];if(33088<=v&&v<=40956)v-=33088;else{if(!(57408<=v&&v<=60351))throw"illegal char at "+(y+1)+"/"+v;v-=49472}v=192*(v>>>8&255)+(255&v),d.put(v,13),y+=2}if(y<m.length)throw"illegal char at "+(y+1)}};return h},H=function(){var A=[],w={writeByte:function(_){A.push(255&_)},writeShort:function(_){w.writeByte(_),w.writeByte(_>>>8)},writeBytes:function(_,h,d){h=h||0,d=d||_.length;for(var m=0;m<d;m+=1)w.writeByte(_[m+h])},writeString:function(_){for(var h=0;h<_.length;h+=1)w.writeByte(_.charCodeAt(h))},toByteArray:function(){return A},toString:function(){var _="";_+="[";for(var h=0;h<A.length;h+=1)h>0&&(_+=","),_+=A[h];return _+"]"}};return w},we=function(A){var w=A,_=0,h=0,d=0,m={read:function(){for(;d<8;){if(_>=w.length){if(d==0)return-1;throw"unexpected end of file./"+d}var v=w.charAt(_);if(_+=1,v=="=")return d=0,-1;v.match(/^\s$/)||(h=h<<6|y(v.charCodeAt(0)),d+=6)}var k=h>>>d-8&255;return d-=8,k}},y=function(v){if(65<=v&&v<=90)return v-65;if(97<=v&&v<=122)return v-97+26;if(48<=v&&v<=57)return v-48+52;if(v==43)return 62;if(v==47)return 63;throw"c:"+v};return m},Me=function(A,w,_){for(var h=function(V,z){var I=V,B=z,L=new Array(V*z),R={setPixel:function(b,E,C){L[E*I+b]=C},write:function(b){b.writeString("GIF87a"),b.writeShort(I),b.writeShort(B),b.writeByte(128),b.writeByte(0),b.writeByte(0),b.writeByte(0),b.writeByte(0),b.writeByte(0),b.writeByte(255),b.writeByte(255),b.writeByte(255),b.writeString(","),b.writeShort(0),b.writeShort(0),b.writeShort(I),b.writeShort(B),b.writeByte(0);var E=x(2);b.writeByte(2);for(var C=0;E.length-C>255;)b.writeByte(255),b.writeBytes(E,C,255),C+=255;b.writeByte(E.length-C),b.writeBytes(E,C,E.length-C),b.writeByte(0),b.writeString(";")}},x=function(b){for(var E=1<<b,C=1+(1<<b),P=b+1,F=D(),Y=0;Y<E;Y+=1)F.add(String.fromCharCode(Y));F.add(String.fromCharCode(E)),F.add(String.fromCharCode(C));var X,ne,oe,ae=H(),de=(X=ae,ne=0,oe=0,{write:function(he,Q){if(he>>>Q!=0)throw"length over";for(;ne+Q>=8;)X.writeByte(255&(he<<ne|oe)),Q-=8-ne,he>>>=8-ne,oe=0,ne=0;oe|=he<<ne,ne+=Q},flush:function(){ne>0&&X.writeByte(oe)}});de.write(E,P);var $e=0,ve=String.fromCharCode(L[$e]);for($e+=1;$e<L.length;){var ce=String.fromCharCode(L[$e]);$e+=1,F.contains(ve+ce)?ve+=ce:(de.write(F.indexOf(ve),P),F.size()<4095&&(F.size()==1<<P&&(P+=1),F.add(ve+ce)),ve=ce)}return de.write(F.indexOf(ve),P),de.write(C,P),de.flush(),ae.toByteArray()},D=function(){var b={},E=0,C={add:function(P){if(C.contains(P))throw"dup key:"+P;b[P]=E,E+=1},size:function(){return E},indexOf:function(P){return b[P]},contains:function(P){return b[P]!==void 0}};return C};return R}(A,w),d=0;d<w;d+=1)for(var m=0;m<A;m+=1)h.setPixel(m,d,_(m,d));var y=H();h.write(y);for(var v=function(){var V=0,z=0,I=0,B="",L={},R=function(D){B+=String.fromCharCode(x(63&D))},x=function(D){if(!(D<0)){if(D<26)return 65+D;if(D<52)return D-26+97;if(D<62)return D-52+48;if(D==62)return 43;if(D==63)return 47}throw"n:"+D};return L.writeByte=function(D){for(V=V<<8|255&D,z+=8,I+=1;z>=6;)R(V>>>z-6),z-=6},L.flush=function(){if(z>0&&(R(V<<6-z),V=0,z=0),I%3!=0)for(var D=3-I%3,b=0;b<D;b+=1)B+="="},L.toString=function(){return B},L}(),k=y.toByteArray(),T=0;T<k.length;T+=1)v.writeByte(k[T]);return v.flush(),"data:image/gif;base64,"+v};return p}();c.stringToBytesFuncs["UTF-8"]=function(p){return function(g){for(var $=[],S=0;S<g.length;S++){var O=g.charCodeAt(S);O<128?$.push(O):O<2048?$.push(192|O>>6,128|63&O):O<55296||O>=57344?$.push(224|O>>12,128|O>>6&63,128|63&O):(S++,O=65536+((1023&O)<<10|1023&g.charCodeAt(S)),$.push(240|O>>18,128|O>>12&63,128|O>>6&63,128|63&O))}return $}(p)},(f=typeof(l=function(){return c})=="function"?l.apply(s,[]):l)===void 0||(a.exports=f)}},r={};function i(a){var s=r[a];if(s!==void 0)return s.exports;var l=r[a]={exports:{}};return t[a](l,l.exports,i),l.exports}i.n=a=>{var s=a&&a.__esModule?()=>a.default:()=>a;return i.d(s,{a:s}),s},i.d=(a,s)=>{for(var l in s)i.o(s,l)&&!i.o(a,l)&&Object.defineProperty(a,l,{enumerable:!0,get:s[l]})},i.o=(a,s)=>Object.prototype.hasOwnProperty.call(a,s);var o={};return(()=>{i.d(o,{default:()=>w});const a=_=>!!_&&typeof _=="object"&&!Array.isArray(_);function s(_,...h){if(!h.length)return _;const d=h.shift();return d!==void 0&&a(_)&&a(d)?(_=Object.assign({},_),Object.keys(d).forEach(m=>{const y=_[m],v=d[m];Array.isArray(y)&&Array.isArray(v)?_[m]=v:a(y)&&a(v)?_[m]=s(Object.assign({},y),v):_[m]=v}),s(_,...h)):_}function l(_,h){const d=document.createElement("a");d.download=h,d.href=_,document.body.appendChild(d),d.click(),document.body.removeChild(d)}const f={L:.07,M:.15,Q:.25,H:.3};class c{constructor({svg:h,type:d,window:m}){this._svg=h,this._type=d,this._window=m}draw(h,d,m,y){let v;switch(this._type){case"dots":v=this._drawDot;break;case"classy":v=this._drawClassy;break;case"classy-rounded":v=this._drawClassyRounded;break;case"rounded":v=this._drawRounded;break;case"extra-rounded":v=this._drawExtraRounded;break;default:v=this._drawSquare}v.call(this,{x:h,y:d,size:m,getNeighbor:y})}_rotateFigure({x:h,y:d,size:m,rotation:y=0,draw:v}){var k;const T=h+m/2,V=d+m/2;v(),(k=this._element)===null||k===void 0||k.setAttribute("transform",`rotate(${180*y/Math.PI},${T},${V})`)}_basicDot(h){const{size:d,x:m,y}=h;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(m+d/2)),this._element.setAttribute("cy",String(y+d/2)),this._element.setAttribute("r",String(d/2))}}))}_basicSquare(h){const{size:d,x:m,y}=h;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(m)),this._element.setAttribute("y",String(y)),this._element.setAttribute("width",String(d)),this._element.setAttribute("height",String(d))}}))}_basicSideRounded(h){const{size:d,x:m,y}=h;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${m} ${y}v ${d}h `+d/2+`a ${d/2} ${d/2}, 0, 0, 0, 0 ${-d}`)}}))}_basicCornerRounded(h){const{size:d,x:m,y}=h;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${m} ${y}v ${d}h ${d}v `+-d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${-d/2} ${-d/2}`)}}))}_basicCornerExtraRounded(h){const{size:d,x:m,y}=h;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${m} ${y}v ${d}h ${d}a ${d} ${d}, 0, 0, 0, ${-d} ${-d}`)}}))}_basicCornersRounded(h){const{size:d,x:m,y}=h;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${m} ${y}v `+d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${d/2} ${d/2}h `+d/2+"v "+-d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${-d/2} ${-d/2}`)}}))}_drawDot({x:h,y:d,size:m}){this._basicDot({x:h,y:d,size:m,rotation:0})}_drawSquare({x:h,y:d,size:m}){this._basicSquare({x:h,y:d,size:m,rotation:0})}_drawRounded({x:h,y:d,size:m,getNeighbor:y}){const v=y?+y(-1,0):0,k=y?+y(1,0):0,T=y?+y(0,-1):0,V=y?+y(0,1):0,z=v+k+T+V;if(z!==0)if(z>2||v&&k||T&&V)this._basicSquare({x:h,y:d,size:m,rotation:0});else{if(z===2){let I=0;return v&&T?I=Math.PI/2:T&&k?I=Math.PI:k&&V&&(I=-Math.PI/2),void this._basicCornerRounded({x:h,y:d,size:m,rotation:I})}if(z===1){let I=0;return T?I=Math.PI/2:k?I=Math.PI:V&&(I=-Math.PI/2),void this._basicSideRounded({x:h,y:d,size:m,rotation:I})}}else this._basicDot({x:h,y:d,size:m,rotation:0})}_drawExtraRounded({x:h,y:d,size:m,getNeighbor:y}){const v=y?+y(-1,0):0,k=y?+y(1,0):0,T=y?+y(0,-1):0,V=y?+y(0,1):0,z=v+k+T+V;if(z!==0)if(z>2||v&&k||T&&V)this._basicSquare({x:h,y:d,size:m,rotation:0});else{if(z===2){let I=0;return v&&T?I=Math.PI/2:T&&k?I=Math.PI:k&&V&&(I=-Math.PI/2),void this._basicCornerExtraRounded({x:h,y:d,size:m,rotation:I})}if(z===1){let I=0;return T?I=Math.PI/2:k?I=Math.PI:V&&(I=-Math.PI/2),void this._basicSideRounded({x:h,y:d,size:m,rotation:I})}}else this._basicDot({x:h,y:d,size:m,rotation:0})}_drawClassy({x:h,y:d,size:m,getNeighbor:y}){const v=y?+y(-1,0):0,k=y?+y(1,0):0,T=y?+y(0,-1):0,V=y?+y(0,1):0;v+k+T+V!==0?v||T?k||V?this._basicSquare({x:h,y:d,size:m,rotation:0}):this._basicCornerRounded({x:h,y:d,size:m,rotation:Math.PI/2}):this._basicCornerRounded({x:h,y:d,size:m,rotation:-Math.PI/2}):this._basicCornersRounded({x:h,y:d,size:m,rotation:Math.PI/2})}_drawClassyRounded({x:h,y:d,size:m,getNeighbor:y}){const v=y?+y(-1,0):0,k=y?+y(1,0):0,T=y?+y(0,-1):0,V=y?+y(0,1):0;v+k+T+V!==0?v||T?k||V?this._basicSquare({x:h,y:d,size:m,rotation:0}):this._basicCornerExtraRounded({x:h,y:d,size:m,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:h,y:d,size:m,rotation:-Math.PI/2}):this._basicCornersRounded({x:h,y:d,size:m,rotation:Math.PI/2})}}const p={dot:"dot",square:"square",extraRounded:"extra-rounded"},g=Object.values(p);class ${constructor({svg:h,type:d,window:m}){this._svg=h,this._type=d,this._window=m}draw(h,d,m,y){let v;switch(this._type){case p.square:v=this._drawSquare;break;case p.extraRounded:v=this._drawExtraRounded;break;default:v=this._drawDot}v.call(this,{x:h,y:d,size:m,rotation:y})}_rotateFigure({x:h,y:d,size:m,rotation:y=0,draw:v}){var k;const T=h+m/2,V=d+m/2;v(),(k=this._element)===null||k===void 0||k.setAttribute("transform",`rotate(${180*y/Math.PI},${T},${V})`)}_basicDot(h){const{size:d,x:m,y}=h,v=d/7;this._rotateFigure(Object.assign(Object.assign({},h),{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 ${m+d/2} ${y}a ${d/2} ${d/2} 0 1 0 0.1 0zm 0 ${v}a ${d/2-v} ${d/2-v} 0 1 1 -0.1 0Z`)}}))}_basicSquare(h){const{size:d,x:m,y}=h,v=d/7;this._rotateFigure(Object.assign(Object.assign({},h),{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 ${m} ${y}v ${d}h ${d}v `+-d+`zM ${m+v} ${y+v}h `+(d-2*v)+"v "+(d-2*v)+"h "+(2*v-d)+"z")}}))}_basicExtraRounded(h){const{size:d,x:m,y}=h,v=d/7;this._rotateFigure(Object.assign(Object.assign({},h),{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 ${m} ${y+2.5*v}v `+2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*v} ${2.5*v}h `+2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*v} ${2.5*-v}v `+-2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*-v} ${2.5*-v}h `+-2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*-v} ${2.5*v}M ${m+2.5*v} ${y+v}h `+2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*v} ${1.5*v}v `+2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*-v} ${1.5*v}h `+-2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*-v} ${1.5*-v}v `+-2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*v} ${1.5*-v}`)}}))}_drawDot({x:h,y:d,size:m,rotation:y}){this._basicDot({x:h,y:d,size:m,rotation:y})}_drawSquare({x:h,y:d,size:m,rotation:y}){this._basicSquare({x:h,y:d,size:m,rotation:y})}_drawExtraRounded({x:h,y:d,size:m,rotation:y}){this._basicExtraRounded({x:h,y:d,size:m,rotation:y})}}const S={dot:"dot",square:"square"},O=Object.values(S);class M{constructor({svg:h,type:d,window:m}){this._svg=h,this._type=d,this._window=m}draw(h,d,m,y){let v;v=this._type===S.square?this._drawSquare:this._drawDot,v.call(this,{x:h,y:d,size:m,rotation:y})}_rotateFigure({x:h,y:d,size:m,rotation:y=0,draw:v}){var k;const T=h+m/2,V=d+m/2;v(),(k=this._element)===null||k===void 0||k.setAttribute("transform",`rotate(${180*y/Math.PI},${T},${V})`)}_basicDot(h){const{size:d,x:m,y}=h;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(m+d/2)),this._element.setAttribute("cy",String(y+d/2)),this._element.setAttribute("r",String(d/2))}}))}_basicSquare(h){const{size:d,x:m,y}=h;this._rotateFigure(Object.assign(Object.assign({},h),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(m)),this._element.setAttribute("y",String(y)),this._element.setAttribute("width",String(d)),this._element.setAttribute("height",String(d))}}))}_drawDot({x:h,y:d,size:m,rotation:y}){this._basicDot({x:h,y:d,size:m,rotation:y})}_drawSquare({x:h,y:d,size:m,rotation:y}){this._basicSquare({x:h,y:d,size:m,rotation:y})}}const q="circle",U=[[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]],N=[[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 K{constructor(h,d){this._roundSize=m=>this._options.dotsOptions.roundSize?Math.floor(m):m,this._window=d,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(h.width)),this._element.setAttribute("height",String(h.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),h.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${h.width} ${h.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=h.image,this._instanceId=K.instanceCount++,this._options=h}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(h){const d=h.getModuleCount(),m=Math.min(this._options.width,this._options.height)-2*this._options.margin,y=this._options.shape===q?m/Math.sqrt(2):m,v=this._roundSize(y/d);let k={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=h,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:T,qrOptions:V}=this._options,z=T.imageSize*f[V.errorCorrectionLevel],I=Math.floor(z*d*d);k=function({originalHeight:B,originalWidth:L,maxHiddenDots:R,maxHiddenAxisDots:x,dotSize:D}){const b={x:0,y:0},E={x:0,y:0};if(B<=0||L<=0||R<=0||D<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const C=B/L;return b.x=Math.floor(Math.sqrt(R/C)),b.x<=0&&(b.x=1),x&&x<b.x&&(b.x=x),b.x%2==0&&b.x--,E.x=b.x*D,b.y=1+2*Math.ceil((b.x*C-1)/2),E.y=Math.round(E.x*C),(b.y*b.x>R||x&&x<b.y)&&(x&&x<b.y?(b.y=x,b.y%2==0&&b.x--):b.y-=2,E.y=b.y*D,b.x=1+2*Math.ceil((b.y/C-1)/2),E.x=Math.round(E.y/C)),{height:E.y,width:E.x,hideYDots:b.y,hideXDots:b.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:I,maxHiddenAxisDots:d-14,dotSize:v})}this.drawBackground(),this.drawDots((T,V)=>{var z,I,B,L,R,x;return!(this._options.imageOptions.hideBackgroundDots&&T>=(d-k.hideYDots)/2&&T<(d+k.hideYDots)/2&&V>=(d-k.hideXDots)/2&&V<(d+k.hideXDots)/2||((z=U[T])===null||z===void 0?void 0:z[V])||((I=U[T-d+7])===null||I===void 0?void 0:I[V])||((B=U[T])===null||B===void 0?void 0:B[V-d+7])||((L=N[T])===null||L===void 0?void 0:L[V])||((R=N[T-d+7])===null||R===void 0?void 0:R[V])||((x=N[T])===null||x===void 0?void 0:x[V-d+7]))}),this.drawCorners(),this._options.image&&await this.drawImage({width:k.width,height:k.height,count:d,dotSize:v})}drawBackground(){var h,d,m;const y=this._element,v=this._options;if(y){const k=(h=v.backgroundOptions)===null||h===void 0?void 0:h.gradient,T=(d=v.backgroundOptions)===null||d===void 0?void 0:d.color;let V=v.height,z=v.width;if(k||T){const I=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),!((m=v.backgroundOptions)===null||m===void 0)&&m.round&&(V=z=Math.min(v.width,v.height),I.setAttribute("rx",String(V/2*v.backgroundOptions.round))),I.setAttribute("x",String(this._roundSize((v.width-z)/2))),I.setAttribute("y",String(this._roundSize((v.height-V)/2))),I.setAttribute("width",String(z)),I.setAttribute("height",String(V)),this._backgroundClipPath.appendChild(I),this._createColor({options:k,color:T,additionalRotation:0,x:0,y:0,height:v.height,width:v.width,name:`background-color-${this._instanceId}`})}}}drawDots(h){var d,m;if(!this._qr)throw"QR code is not defined";const y=this._options,v=this._qr.getModuleCount();if(v>y.width||v>y.height)throw"The canvas is too small.";const k=Math.min(y.width,y.height)-2*y.margin,T=y.shape===q?k/Math.sqrt(2):k,V=this._roundSize(T/v),z=this._roundSize((y.width-v*V)/2),I=this._roundSize((y.height-v*V)/2),B=new c({svg:this._element,type:y.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:(d=y.dotsOptions)===null||d===void 0?void 0:d.gradient,color:y.dotsOptions.color,additionalRotation:0,x:0,y:0,height:y.height,width:y.width,name:`dot-color-${this._instanceId}`});for(let L=0;L<v;L++)for(let R=0;R<v;R++)h&&!h(L,R)||!((m=this._qr)===null||m===void 0)&&m.isDark(L,R)&&(B.draw(z+R*V,I+L*V,V,(x,D)=>!(R+x<0||L+D<0||R+x>=v||L+D>=v)&&!(h&&!h(L+D,R+x))&&!!this._qr&&this._qr.isDark(L+D,R+x)),B._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(B._element));if(y.shape===q){const L=this._roundSize((k/V-v)/2),R=v+2*L,x=z-L*V,D=I-L*V,b=[],E=this._roundSize(R/2);for(let C=0;C<R;C++){b[C]=[];for(let P=0;P<R;P++)C>=L-1&&C<=R-L&&P>=L-1&&P<=R-L||Math.sqrt((C-E)*(C-E)+(P-E)*(P-E))>E?b[C][P]=0:b[C][P]=this._qr.isDark(P-2*L<0?P:P>=v?P-2*L:P-L,C-2*L<0?C:C>=v?C-2*L:C-L)?1:0}for(let C=0;C<R;C++)for(let P=0;P<R;P++)b[C][P]&&(B.draw(x+P*V,D+C*V,V,(F,Y)=>{var X;return!!(!((X=b[C+Y])===null||X===void 0)&&X[P+F])}),B._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(B._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const h=this._element,d=this._options;if(!h)throw"Element code is not defined";const m=this._qr.getModuleCount(),y=Math.min(d.width,d.height)-2*d.margin,v=d.shape===q?y/Math.sqrt(2):y,k=this._roundSize(v/m),T=7*k,V=3*k,z=this._roundSize((d.width-m*k)/2),I=this._roundSize((d.height-m*k)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([B,L,R])=>{var x,D,b,E,C,P,F,Y,X,ne,oe,ae,de,$e;const ve=z+B*k*(m-7),ce=I+L*k*(m-7);let he=this._dotsClipPath,Q=this._dotsClipPath;if((((x=d.cornersSquareOptions)===null||x===void 0?void 0:x.gradient)||((D=d.cornersSquareOptions)===null||D===void 0?void 0:D.color))&&(he=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),he.setAttribute("id",`clip-path-corners-square-color-${B}-${L}-${this._instanceId}`),this._defs.appendChild(he),this._cornersSquareClipPath=this._cornersDotClipPath=Q=he,this._createColor({options:(b=d.cornersSquareOptions)===null||b===void 0?void 0:b.gradient,color:(E=d.cornersSquareOptions)===null||E===void 0?void 0:E.color,additionalRotation:R,x:ve,y:ce,height:T,width:T,name:`corners-square-color-${B}-${L}-${this._instanceId}`})),((C=d.cornersSquareOptions)===null||C===void 0?void 0:C.type)&&g.includes(d.cornersSquareOptions.type)){const Oe=new $({svg:this._element,type:d.cornersSquareOptions.type,window:this._window});Oe.draw(ve,ce,T,R),Oe._element&&he&&he.appendChild(Oe._element)}else{const Oe=new c({svg:this._element,type:((P=d.cornersSquareOptions)===null||P===void 0?void 0:P.type)||d.dotsOptions.type,window:this._window});for(let Ee=0;Ee<U.length;Ee++)for(let ie=0;ie<U[Ee].length;ie++)!((F=U[Ee])===null||F===void 0)&&F[ie]&&(Oe.draw(ve+ie*k,ce+Ee*k,k,(Fe,Pe)=>{var Ae;return!!(!((Ae=U[Ee+Pe])===null||Ae===void 0)&&Ae[ie+Fe])}),Oe._element&&he&&he.appendChild(Oe._element))}if((((Y=d.cornersDotOptions)===null||Y===void 0?void 0:Y.gradient)||((X=d.cornersDotOptions)===null||X===void 0?void 0:X.color))&&(Q=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Q.setAttribute("id",`clip-path-corners-dot-color-${B}-${L}-${this._instanceId}`),this._defs.appendChild(Q),this._cornersDotClipPath=Q,this._createColor({options:(ne=d.cornersDotOptions)===null||ne===void 0?void 0:ne.gradient,color:(oe=d.cornersDotOptions)===null||oe===void 0?void 0:oe.color,additionalRotation:R,x:ve+2*k,y:ce+2*k,height:V,width:V,name:`corners-dot-color-${B}-${L}-${this._instanceId}`})),((ae=d.cornersDotOptions)===null||ae===void 0?void 0:ae.type)&&O.includes(d.cornersDotOptions.type)){const Oe=new M({svg:this._element,type:d.cornersDotOptions.type,window:this._window});Oe.draw(ve+2*k,ce+2*k,V,R),Oe._element&&Q&&Q.appendChild(Oe._element)}else{const Oe=new c({svg:this._element,type:((de=d.cornersDotOptions)===null||de===void 0?void 0:de.type)||d.dotsOptions.type,window:this._window});for(let Ee=0;Ee<N.length;Ee++)for(let ie=0;ie<N[Ee].length;ie++)!(($e=N[Ee])===null||$e===void 0)&&$e[ie]&&(Oe.draw(ve+ie*k,ce+Ee*k,k,(Fe,Pe)=>{var Ae;return!!(!((Ae=N[Ee+Pe])===null||Ae===void 0)&&Ae[ie+Fe])}),Oe._element&&Q&&Q.appendChild(Oe._element))}})}loadImage(){return new Promise((h,d)=>{var m;const y=this._options;if(!y.image)return d("Image is not defined");if(!((m=y.nodeCanvas)===null||m===void 0)&&m.loadImage)y.nodeCanvas.loadImage(y.image).then(v=>{var k,T;if(this._image=v,this._options.imageOptions.saveAsBlob){const V=(k=y.nodeCanvas)===null||k===void 0?void 0:k.createCanvas(this._image.width,this._image.height);(T=V==null?void 0:V.getContext("2d"))===null||T===void 0||T.drawImage(v,0,0),this._imageUri=V==null?void 0:V.toDataURL()}h()}).catch(d);else{const v=new this._window.Image;typeof y.imageOptions.crossOrigin=="string"&&(v.crossOrigin=y.imageOptions.crossOrigin),this._image=v,v.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(k,T){return new Promise(V=>{const z=new T.XMLHttpRequest;z.onload=function(){const I=new T.FileReader;I.onloadend=function(){V(I.result)},I.readAsDataURL(z.response)},z.open("GET",k),z.responseType="blob",z.send()})}(y.image||"",this._window)),h()},v.src=y.image}})}async drawImage({width:h,height:d,count:m,dotSize:y}){const v=this._options,k=this._roundSize((v.width-m*y)/2),T=this._roundSize((v.height-m*y)/2),V=k+this._roundSize(v.imageOptions.margin+(m*y-h)/2),z=T+this._roundSize(v.imageOptions.margin+(m*y-d)/2),I=h-2*v.imageOptions.margin,B=d-2*v.imageOptions.margin,L=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");L.setAttribute("href",this._imageUri||""),L.setAttribute("xlink:href",this._imageUri||""),L.setAttribute("x",String(V)),L.setAttribute("y",String(z)),L.setAttribute("width",`${I}px`),L.setAttribute("height",`${B}px`),this._element.appendChild(L)}_createColor({options:h,color:d,additionalRotation:m,x:y,y:v,height:k,width:T,name:V}){const z=T>k?T:k,I=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(I.setAttribute("x",String(y)),I.setAttribute("y",String(v)),I.setAttribute("height",String(k)),I.setAttribute("width",String(T)),I.setAttribute("clip-path",`url('#clip-path-${V}')`),h){let B;if(h.type==="radial")B=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),B.setAttribute("id",V),B.setAttribute("gradientUnits","userSpaceOnUse"),B.setAttribute("fx",String(y+T/2)),B.setAttribute("fy",String(v+k/2)),B.setAttribute("cx",String(y+T/2)),B.setAttribute("cy",String(v+k/2)),B.setAttribute("r",String(z/2));else{const L=((h.rotation||0)+m)%(2*Math.PI),R=(L+2*Math.PI)%(2*Math.PI);let x=y+T/2,D=v+k/2,b=y+T/2,E=v+k/2;R>=0&&R<=.25*Math.PI||R>1.75*Math.PI&&R<=2*Math.PI?(x-=T/2,D-=k/2*Math.tan(L),b+=T/2,E+=k/2*Math.tan(L)):R>.25*Math.PI&&R<=.75*Math.PI?(D-=k/2,x-=T/2/Math.tan(L),E+=k/2,b+=T/2/Math.tan(L)):R>.75*Math.PI&&R<=1.25*Math.PI?(x+=T/2,D+=k/2*Math.tan(L),b-=T/2,E-=k/2*Math.tan(L)):R>1.25*Math.PI&&R<=1.75*Math.PI&&(D+=k/2,x+=T/2/Math.tan(L),E-=k/2,b-=T/2/Math.tan(L)),B=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),B.setAttribute("id",V),B.setAttribute("gradientUnits","userSpaceOnUse"),B.setAttribute("x1",String(Math.round(x))),B.setAttribute("y1",String(Math.round(D))),B.setAttribute("x2",String(Math.round(b))),B.setAttribute("y2",String(Math.round(E)))}h.colorStops.forEach(({offset:L,color:R})=>{const x=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");x.setAttribute("offset",100*L+"%"),x.setAttribute("stop-color",R),B.appendChild(x)}),I.setAttribute("fill",`url('#${V}')`),this._defs.appendChild(B)}else d&&I.setAttribute("fill",d);this._element.appendChild(I)}}K.instanceCount=0;const Z=K,G="canvas",le={};for(let _=0;_<=40;_++)le[_]=_;const te={type:G,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:le[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 re(_){const h=Object.assign({},_);if(!h.colorStops||!h.colorStops.length)throw"Field 'colorStops' is required in gradient";return h.rotation?h.rotation=Number(h.rotation):h.rotation=0,h.colorStops=h.colorStops.map(d=>Object.assign(Object.assign({},d),{offset:Number(d.offset)})),h}function J(_){const h=Object.assign({},_);return h.width=Number(h.width),h.height=Number(h.height),h.margin=Number(h.margin),h.imageOptions=Object.assign(Object.assign({},h.imageOptions),{hideBackgroundDots:Boolean(h.imageOptions.hideBackgroundDots),imageSize:Number(h.imageOptions.imageSize),margin:Number(h.imageOptions.margin)}),h.margin>Math.min(h.width,h.height)&&(h.margin=Math.min(h.width,h.height)),h.dotsOptions=Object.assign({},h.dotsOptions),h.dotsOptions.gradient&&(h.dotsOptions.gradient=re(h.dotsOptions.gradient)),h.cornersSquareOptions&&(h.cornersSquareOptions=Object.assign({},h.cornersSquareOptions),h.cornersSquareOptions.gradient&&(h.cornersSquareOptions.gradient=re(h.cornersSquareOptions.gradient))),h.cornersDotOptions&&(h.cornersDotOptions=Object.assign({},h.cornersDotOptions),h.cornersDotOptions.gradient&&(h.cornersDotOptions.gradient=re(h.cornersDotOptions.gradient))),h.backgroundOptions&&(h.backgroundOptions=Object.assign({},h.backgroundOptions),h.backgroundOptions.gradient&&(h.backgroundOptions.gradient=re(h.backgroundOptions.gradient))),h}var H=i(873),we=i.n(H);function Me(_){if(!_)throw new Error("Extension must be defined");_[0]==="."&&(_=_.substring(1));const h={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"}[_.toLowerCase()];if(!h)throw new Error(`Extension "${_}" is not supported`);return h}class A{constructor(h){h!=null&&h.jsdom?this._window=new h.jsdom("",{resources:"usable"}).window:this._window=window,this._options=h?J(s(te,h)):te,this.update()}static _clearContainer(h){h&&(h.innerHTML="")}_setupSvg(){if(!this._qr)return;const h=new Z(this._options,this._window);this._svg=h.getElement(),this._svgDrawingPromise=h.drawQR(this._qr).then(()=>{var d;this._svg&&((d=this._extension)===null||d===void 0||d.call(this,h.getElement(),this._options))})}_setupCanvas(){var h,d;this._qr&&(!((h=this._options.nodeCanvas)===null||h===void 0)&&h.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=(d=this._svgDrawingPromise)===null||d===void 0?void 0:d.then(()=>{var m;if(!this._svg)return;const y=this._svg,v=new this._window.XMLSerializer().serializeToString(y),k=btoa(v),T=`data:${Me("svg")};base64,${k}`;if(!((m=this._options.nodeCanvas)===null||m===void 0)&&m.loadImage)return this._options.nodeCanvas.loadImage(T).then(V=>{var z,I;V.width=this._options.width,V.height=this._options.height,(I=(z=this._nodeCanvas)===null||z===void 0?void 0:z.getContext("2d"))===null||I===void 0||I.drawImage(V,0,0)});{const V=new this._window.Image;return new Promise(z=>{V.onload=()=>{var I,B;(B=(I=this._domCanvas)===null||I===void 0?void 0:I.getContext("2d"))===null||B===void 0||B.drawImage(V,0,0),z()},V.src=T})}}))}async _getElement(h="png"){if(!this._qr)throw"QR code is empty";return h.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(h){A._clearContainer(this._container),this._options=h?J(s(this._options,h)):this._options,this._options.data&&(this._qr=we()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(d){switch(!0){case/^[0-9]*$/.test(d):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(d):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===G?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(h){if(h){if(typeof h.appendChild!="function")throw"Container should be a single DOM node";this._options.type===G?this._domCanvas&&h.appendChild(this._domCanvas):this._svg&&h.appendChild(this._svg),this._container=h}}applyExtension(h){if(!h)throw"Extension function should be defined.";this._extension=h,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(h="png"){if(!this._qr)throw"QR code is empty";const d=await this._getElement(h),m=Me(h);if(!d)return null;if(h.toLowerCase()==="svg"){const y=`<?xml version="1.0" standalone="no"?>\r
${new this._window.XMLSerializer().serializeToString(d)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(y):new Blob([y],{type:m})}return new Promise(y=>{const v=d;if("toBuffer"in v)if(m==="image/png")y(v.toBuffer(m));else if(m==="image/jpeg")y(v.toBuffer(m));else{if(m!=="application/pdf")throw Error("Unsupported extension");y(v.toBuffer(m))}else"toBlob"in v&&v.toBlob(y,m,1)})}async download(h){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let d="png",m="qr";typeof h=="string"?(d=h,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof h=="object"&&h!==null&&(h.name&&(m=h.name),h.extension&&(d=h.extension));const y=await this._getElement(d);if(y)if(d.toLowerCase()==="svg"){let v=new XMLSerializer().serializeToString(y);v=`<?xml version="1.0" standalone="no"?>\r
`+v,l(`data:${Me(d)};charset=utf-8,${encodeURIComponent(v)}`,`${m}.svg`)}else l(y.toDataURL(Me(d)),`${m}.${d}`)}}const w=A})(),o.default})())})(oa);const Kg=Ml(oa.exports),Zg=u.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 n={dotsOptions:{}};Object.keys(this.$props).forEach(e=>{this.$props[e]!=null&&this.$props[e]!==""&&(n[e]=this.$props[e])}),delete n.formCreateInject,n.circleType&&(n.dotsOptions.type=n.circleType),n.circleColor&&(n.dotsOptions.color=n.circleColor),delete n.circleColor,delete n.circleType,this.$nextTick(()=>{this.qrcode?this.qrcode.update(n):(this.qrcode=u.markRaw(new Kg(n)),this.qrcode.append(this.$refs.qr))})},deep:!0,immediate:!0}}}),Qg={class:"_fc-qrcode",ref:"qr"};function e0(n,e,t,r,i,o){return u.openBlock(),u.createElementBlock("div",Qg,null,512)}const t0=Se(Zg,[["render",e0]]),D0="",P0="",n0=(n,e)=>{let t=[n];const r=e.split(".");let i=1;for(;r[i];){let o=[];t.forEach(a=>{Object.values(a.ctxs).forEach(s=>{if(s.rule._fc_id===r[i-1]){const l=a.subForm[s.id];o.push(...Array.isArray(l)?l:[l])}})}),t=o.map(a=>a.rule[0].__fc__.$handle),i++}return[t,r[i-1]]},Mn=(n,e,t)=>{const r=n.vm.setupState.top.setupState.fc.$handle;let i=[n.$handle];n.$handle!==r&&i.push(r);let o=e;e.indexOf(".")>-1&&([i,o]=n0(r,e)),i.forEach(a=>{Object.values(a.ctxs).forEach(s=>{s.rule._fc_id===o&&t(s.rule,a.api)})})},aa={openModel(n,e){e.api.open(n.model)},closeModel(n,e){e.api.close(n.model)},hidden(n,e,t){const r=typeof n.id=="string"?[n.id]:n.id||[];let i=!!n.status;n.compute&&(i=!!t.$handle.compute(e.self.__fc__,n.formula)),r.forEach(o=>{Mn(t,o,a=>{a.hidden=i})})},disabled(n,e,t){const r=typeof n.id=="string"?[n.id]:n.id||[];let i=!!n.status;n.compute&&(i=!!t.$handle.compute(e.self.__fc__,n.formula)),r.forEach(o=>{Mn(t,o,a=>{a.props||(a.props={}),a.props.disabled=i})})},resetFields(n,e){e.api.top.resetFields()},clearFields(n,e){e.api.top.coverValue({})},validate(n,e){return e.api.top.validate()},validateFields(n,e,t){const r=typeof n.id=="string"?[n.id]:n.id||[],i=[];return r.forEach(o=>{Mn(t,o,(a,s)=>{a.field&&i.push(s.validateField(a.field))})}),i.length?Promise.all(i):void 0},submit(n,e){return e.api.top.submit()},setValue(n,e,t){(n.formData||[]).forEach(r=>{let i=r.value;r.compute&&(i=t.$handle.compute(e.self.__fc__,r.formula)),Mn(t,r.id,o=>{o.value=i})})},fetch(n,e){const{append:t,response:r,fetch:i}=n;return t&&(i.data={...e.api.formData(),...i.data||{}}),new Promise((o,a)=>{e.api.fetch(n.fetch).then(s=>{r&&e.api.setData(r,s),o(s)}).catch(s=>{a(s)})})},copy(n,e,t){let r=n.content||"";n.compute&&(r=t.$handle.compute(e.self.__fc__,n.formula)),Wc(r)},callback(n,e){return n.callback&&n.callback(e)},message(n){oi.ElMessage(n||{})}};function r0(n,e){return n.reduce((t,r)=>t.then(()=>r(e)),Promise.resolve())}const i0=function(n){return{name:"behavior",load(e,t){const r=e.getValue(),i={},o={};r&&Object.keys(r).forEach(a=>{if(Array.isArray(r[a])){const s=[];if(r[a].forEach(l=>{const{method:f,config:c,expression:p,stopPropagation:g,ignoreError:$}=l;s.push(S=>new Promise(O=>{if(p&&n.$handle.compute(t.__fc__,p)===!1){O();return}const M=(...U)=>{(!g||n.$handle.compute(t.__fc__,g)!==!0)&&O(...U)};let q;try{q=aa[f](c||{},S,n)}catch(U){console.error(U),$!==!1&&M();return}q&&q.then?q.then(M).catch(()=>{$!==!1&&M()}):M(q)}))}),s.length){const l=n.$handle.inject(t,function(f){r0(s,f)},t.inject||n.$handle.options.injectEvent);a.indexOf("hook_")>-1?o[a.replace("hook_","")]=l:i[a]=l}}}),e.getProp().on=i,e.getProp().hook=o}}};function o0(n){n.__proto__.setBehavior=e=>{eo(aa,e)},n.extendApi(e=>({open(t,...r){(e.el(t)||e.top.el(t)).open(...r)},close(t){t?(e.el(t)||e.top.el(t)).close():(e.top.bus.$emit("fc.closeDialog"),e!==e.top&&e.bus.$emit("fc.closeDialog"))}}))}const ri={name:"easySlots",load(n){const e=n.getValue(),t={};e&&Object.keys(e).forEach(r=>{t[r]=e[r].type==="icon"?{type:"i",class:"fc-icon iconfont "+e[r].value}:{type:"div",children:[""+(e[r].value||"")]}}),n.getProp().renderSlots=t}};ri.watch=ri.load;const sa={date:"YYYY-MM-DD",month:"YYYY-MM",datetime:"YYYY-MM-DD HH:mm:ss",timerange:"HH:mm:ss",daterange:"YYYY-MM-DD",monthrange:"YYYY-MM",datetimerange:"YYYY-MM-DD HH:mm:ss",year:"YYYY"};function a0(n){return n/20+"em"}function s0(n){var e;!((e=n.wrap)!=null&&e.class)||(n.wrap.class==="fc-wrap-top"?(n.wrap.labelAlign="top",delete n.wrap.class):n.wrap.class==="fc-wrap-left"?(n.wrap.labelAlign="left",delete n.wrap.class):n.wrap.class==="fc-wrap-right"&&(n.wrap.labelAlign="right",delete n.wrap.class))}const la=function(n,e,t,r){const i=r||{};return e.forEach(o=>{n.indexOf(o[t||"id"])>-1&&n.splice(n.indexOf(o[t||"id"]),1,o[i.label||"label"]||o.text),ze.trueArray(o[i.children||"children"])&&la(n,o[i.children||"children"],t,r)}),n},l0=function(n,e){return e.forEach(t=>{n.indexOf(t.value)>-1&&(n[n.indexOf(t.value)]=t.label||t.text)}),n};function ii(n){if(n){if(!Array.isArray(n))return[n]}else return[];return n}function ua(n){Object.keys(Ce).forEach(e=>{n.setFormula(e,Ce[e])}),o0(n),n.register("behavior",i0),n.register("easySlots",ri),n.extendApi(e=>({message(t){Je.showNotify({type:"warning",...t||{}})}})),n.setDriver("elm",{defaultPreview(e,t){let r=e.rule.value;const i=e.$render.vNode.h,o=e.type,a=e.$handle.subForm[e.id],s=e.prop.readMode;if(s===!1||s==="custom"||!e.input||e.rule.subForm||(Array.isArray(a)?a.length:a)||["fcGroup","fcSubForm","tableForm","stepForm","nestedTableForm","infiniteTableForm","upload","fcDialog","fcDrawer","fcPopup"].indexOf(e.trueType)>-1)return e.parser.render(t,e);if(["radio","select","checkbox"].indexOf(o)>-1)r=l0([...ii(r)],e.prop.props.options||e.prop.props.formCreateInject.options||[]).join(", ");else if(["timePicker","datePicker","slider"].indexOf(o)>-1)r=Array.isArray(r)?r.join(" - "):r;else if(o==="cascader")r=[...ii(r)],Array.isArray(r[0])||(r=[r]),r=r.map(l=>la(l,e.prop.props.options||e.prop.props.formCreateInject.options||[],"value").join("/")).join(", ");else{if(o==="fcEditor"||s==="html")return i("div",{innerHTML:r});if(o==="uploader"||s==="image")return r=ii(r),i("div",{class:"_fc-upload"},r.map(function(l){return i("div",{class:"_fc-upload-preview"},[i("van-image",{src:l,fit:"cover"})])}));if(o==="signaturePad"&&r)return i("van-image",{src:r,fit:"cover",style:{height:"90px"}});(typeof r=="boolean"||o==="switch")&&(r=r?"\u662F":"\u5426")}return i("span",{class:"_fc-read-view"},[""+(r==null?"":r)])},updateWrap(e){var r,i;let t=(i=(r=e.prop)==null?void 0:r.wrap)==null?void 0:i.style;e.prop.col&&e.prop.col.span&&(e.prop.col.span=24),t&&(t=Array.isArray(t)?t:[t],t.forEach(o=>{delete o.marginBottom})),s0(e.prop)},updateOptions(e){var t,r,i;((t=e.form)==null?void 0:t.labelWidth)&&e.form.labelWidth.indexOf("px")>-1&&(e.form.labelWidth=a0(parseInt(e.form.labelWidth))),(r=e.form)!=null&&r.labelPosition&&(e.form.labelAlign=e.form.labelPosition,delete e.form.labelPosition),(i=e.form)!=null&&i.hideRequiredAsterisk&&(e.form.colon=e.form.hideRequiredAsterisk,delete e.form.hideRequiredAsterisk)},parsers:{inputNumber:{mergeProp(e){e.prop.component="vanStepper";const t=e.prop.props;t.decimalLength=t.precision,t.integer=t.precision===0,delete t.precision}},radio:{mergeProp(e){e.prop.options&&(e.prop.props.options=e.prop.options)}},checkbox:{mergeProp(e){e.prop.options&&(e.prop.props.options=e.prop.options)}},select:{mergeProp(e){e.prop.props.multiple===!0?e.prop.component=bl:(e.prop.options&&(e.prop.props.options=e.prop.options),e.prop.props.options=(e.prop.props.options||[]).map(t=>({text:t.label,value:t.value})))}},rate:{mergeProp(e){e.prop.props.count=e.prop.props.max,delete e.prop.props.max}},timePicker:{mergeProp(e){e.prop.component="elTimePicker";const t=e.prop.props;t.valueFormat||(t.valueFormat="HH:mm:ss")}},datePicker:{mergeProp(e){e.prop.component="elDatePicker";const t=e.prop.props;t.valueFormat||(t.valueFormat=sa[t.type]||sa.date)}},colorPicker:{mergeProp(e){e.prop.component="elColorPicker"}},cascader:{mergeProp(e){e.prop.component="elCascader"}},elDivider:{mergeProp(e){e.prop.component="vanDivider"}},upload:{mergeProp(e){e.prop.component=Tl}},tree:{mergeProp(e){e.prop.component=Sl}},row:{mergeProp(e){e.prop.component="vanRow"}},col:{mergeProp(e){e.prop.component="vanCol",e.prop.props.xs&&(e.prop.props={...e.prop.props,...e.prop.props.xs})}},fcDialog:{mergeProp(e){e.prop.component="FcPopup"}},fcDrawer:{mergeProp(e){e.prop.component="FcPopup"}}}})}ua(pe),pe.component("FcSlot",ku),pe.component("FcJson",xu),pe.component("StepForm",Ll),pe.component("FcPopup",Wl),pe.component("FcTable",Ql),pe.component("FcCell",yu),pe.component("FcInlineForm",Pu),pe.component("TableForm",nu),pe.component("TableFormPro",lu),pe.component("NestedTableForm",pu),pe.component("InfiniteTableForm",fu),pe.component("DataTable",Jl),pe.component("FcValue",$u),pe.component("FcCity",Eu),pe.component("AudioBox",rf),pe.component("VideoBox",Jg),pe.component("BarCodeBox",Hg),pe.component("IframeBox",lf),pe.component("QrCodeBox",t0),pe.component("SignaturePad",Gu),pe.component("FcEcharts",Fu),pe.component("FcTitle",tc),pe.component("FcDataSelect",Zc),pe.component("FcMarkdown",Bc),pe.component("FcId",Zu),pe.loadjs=ot,xe.default=pe,xe.useAdvanced=ua,Object.defineProperties(xe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});