g-ai-robot3 0.1.89 → 0.1.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/g-ai-robot3.es.js +3 -3
- package/dist/g-ai-robot3.umd.js +10 -10
- package/dist/index.css +1 -1
- package/package.json +1 -1
package/dist/g-ai-robot3.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(o,ia){typeof exports=="object"&&typeof module<"u"?module.exports=ia(require("vue")):typeof define=="function"&&define.amd?define(["vue"],ia):(o=typeof globalThis<"u"?globalThis:o||self,o["g-ai-robot3"]=ia(o.Vue))})(this,function(o){"use strict";var Mht=Object.defineProperty;var Kht=(o,ia,Tn)=>ia in o?Mht(o,ia,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):o[ia]=Tn;var ll=(o,ia,Tn)=>(Kht(o,typeof ia!="symbol"?ia+"":ia,Tn),Tn);var ia=document.createElement("style");ia.textContent=`.digital-human[data-v-fc8faaf3]{z-index:0;position:relative;display:flex;align-items:center;justify-content:center}.digital-human #video[data-v-fc8faaf3]{position:absolute;left:0;top:0}.digital-human #output-canvas[data-v-fc8faaf3]{opacity:1;transition:opacity 6s ease;width:300px;height:150px}.digital-human #output-canvas.fade-out[data-v-fc8faaf3]{opacity:0;pointer-events:none}.digital-human .xiaogVideo[data-v-fc8faaf3],.digital-human img[data-v-fc8faaf3]{position:absolute;left:0;top:0}.digital-human .statusImg[data-v-fc8faaf3]{z-index:9998;position:absolute;width:30%;height:30%;top:0%;left:0%;-webkit-user-select:auto!important;user-select:auto!important;pointer-events:auto!important}.digital-human .QstatusImg[data-v-fc8faaf3]{width:29%!important;height:20%!important}[data-v-8448adae] .table-container{width:188px!important;overflow-x:auto}[data-v-8448adae] .markdown-table .ant-table-tbody>tr>td{padding:8px 16px;height:40px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}[data-v-8448adae] .markdown-table .ant-table-thead>tr>th{background-color:#f5f5f5;font-weight:700;padding:8px 16px;height:40px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.suspension-content[data-v-8448adae]{overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none;position:absolute;left:72%;bottom:85%;width:220px;display:flex;flex-direction:column-reverse}.useCustom-dialog[data-v-8448adae]{pointer-events:none;z-index:1}.useCustom-dialog .bubble-item[data-v-8448adae]{margin-bottom:6px}.useCustom-dialog p[data-v-8448adae]{margin:0!important;padding:0}.useCustom-dialog[data-v-8448adae] .ant-bubble .ant-bubble-content-filled,.useCustom-dialog[data-v-8448adae] .ant-bubble .ant-bubble-content-outlined{background:#062e404d;border:1px solid rgba(220,237,255,.3);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:12px;color:#fff}.useCustom-dialog[data-v-8448adae] .ant-bubble-content.ant-bubble-content-outlined p,.useCustom-dialog[data-v-8448adae] .ant-bubble-content.ant-bubble-content-filled p{margin:0!important;padding:0}.suspension-msg-bubble[data-v-8448adae]{pointer-events:none;z-index:1}.suspension-msg-bubble .bubble-item[data-v-8448adae]{margin-bottom:5px}.suspension-msg-bubble p[data-v-8448adae],.suspension-msg-bubble[data-v-8448adae] .ant-bubble-content.ant-bubble-content-filled p,.suspension-msg-bubble[data-v-8448adae] .ant-bubble-content.ant-bubble-content-outlined p{margin:0!important;padding:0}.bubble-move[data-v-8448adae],.bubble-enter-active[data-v-8448adae],.bubble-leave-active[data-v-8448adae]{transition:all .5s ease}.bubble-enter-from[data-v-8448adae],.bubble-leave-to[data-v-8448adae]{opacity:0;transform:translate(30px)}.bubble-leave-active[data-v-8448adae]{position:absolute}.ellipsisText{display:inline-block;width:20px;height:24px;position:relative}.ellipsisText:after{position:absolute;left:0;top:4px;content:"···";animation:loading-animation 1s infinite linear}@keyframes loading-animation{0%{content:"·"}50%{content:"··"}to{content:"···"}}#g-ai-robot[data-v-cc5cde6c]{position:fixed}#g-ai-robot .robot[data-v-cc5cde6c]{cursor:pointer;z-index:9990;touch-action:none}#g-ai-robot .robot .digital-human-wrap[data-v-cc5cde6c]{position:relative}#g-ai-robot .robot .digital-human-wrap .dialogImg[data-v-cc5cde6c]{z-index:9998;position:absolute;width:15%;height:auto;top:18%;left:73%;-webkit-user-select:auto!important;user-select:auto!important;pointer-events:auto!important}#g-ai-robot .robot .digital-human-wrap .disabled[data-v-cc5cde6c]{cursor:not-allowed}#g-ai-robot .robot .digital-human-wrap .statusImg[data-v-cc5cde6c]{z-index:9998;position:absolute;width:30%;height:30%}#g-ai-robot .robot .digital-human-wrap .QstatusImg[data-v-cc5cde6c]{width:29%!important;height:20%!important}#g-ai-robot .robot.disabled[data-v-cc5cde6c]{cursor:not-allowed}#g-ai-robot .robot img[data-v-cc5cde6c]{height:100px;width:100px}#g-ai-robot .talk_main[data-v-cc5cde6c]{position:absolute;width:400px;z-index:10000;height:600px;background:#f5f6f7}#g-ai-robot .talk_main header[data-v-cc5cde6c]{height:44px;background:linear-gradient(to right,#ebf1ff,#e5faf8,#f2ebfe);display:flex;padding:0 16px;align-items:center;justify-content:space-between;cursor:move}#g-ai-robot .talk_main header span[data-v-cc5cde6c]{font-size:16px;font-weight:700}#g-ai-robot .talk_main header span.close[data-v-cc5cde6c]{color:#999}#g-ai-robot .talk_main header i[data-v-cc5cde6c]{cursor:pointer}#g-ai-robot .talk_main header i.disabled[data-v-cc5cde6c]{cursor:not-allowed}#g-ai-robot .talk_main .clickable-image[data-v-cc5cde6c]{cursor:pointer;width:80px;height:auto;border-radius:5px;transition:transform .2s}#g-ai-robot .talk_main .clickable-image[data-v-cc5cde6c]:hover{transform:scale(1.1)}#g-ai-robot .talk_main .image-viewer-overlay[data-v-cc5cde6c]{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000b3;display:flex;justify-content:center;align-items:center;z-index:9999}#g-ai-robot .talk_main .image-viewer[data-v-cc5cde6c]{position:relative}#g-ai-robot .talk_main .large-image[data-v-cc5cde6c]{max-width:90%;max-height:90%;border-radius:8px}#g-ai-robot .talk_main .qa_body[data-v-cc5cde6c]{list-style:none;padding:16px;box-sizing:border-box;margin:0;height:calc(100% - 116px);overflow-y:auto;overflow-x:hidden}#g-ai-robot .talk_main .qa_body[data-v-cc5cde6c]::-webkit-scrollbar{width:8px;background-color:#f9f9f9}#g-ai-robot .talk_main .qa_body[data-v-cc5cde6c]::-webkit-scrollbar-track{background:#e1e1e1;border-radius:10px}#g-ai-robot .talk_main .qa_body[data-v-cc5cde6c]::-webkit-scrollbar-thumb{background-color:#c1c1c1;border-radius:10px}#g-ai-robot .talk_main .qa_body li[data-v-cc5cde6c]{margin-bottom:24px;justify-content:flex-end;gap:10px;display:flex}#g-ai-robot .talk_main .qa_body li[data-v-cc5cde6c] .ant-bubble-content.ant-bubble-content-filled{box-shadow:0 4px 20px #0476ed29;border:1px solid;border-image-source:linear-gradient(180deg,#ffffff 0%,rgba(255,255,255,.5) 104.31%);background:linear-gradient(92.03deg,#77f1ff39 -2.18%,#edfaff99 48.06%,#5ba8ff2c 107.05%)}#g-ai-robot .talk_main .qa_body li[data-v-cc5cde6c] .ant-bubble-content.ant-bubble-content-filled p,#g-ai-robot .talk_main .qa_body li[data-v-cc5cde6c] .ant-bubble-content.ant-bubble-content-outlined p{margin:0!important;padding:0}#g-ai-robot .talk_main .qa_body li[data-v-cc5cde6c] .table-container{width:294px!important;overflow-x:auto}#g-ai-robot .talk_main .qa_body li[data-v-cc5cde6c] .markdown-table .ant-table-tbody>tr>td{padding:8px 16px;height:40px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#g-ai-robot .talk_main .qa_body li[data-v-cc5cde6c] .markdown-table .ant-table-thead>tr>th{background-color:#f5f5f5;font-weight:700;padding:8px 16px;height:40px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#g-ai-robot .talk_main .qa_body li .copyBtn[data-v-cc5cde6c]{font-size:18px;cursor:pointer;margin-right:10px}#g-ai-robot .talk_main .qa_body li .copyBtn[data-v-cc5cde6c]:hover{color:#1890ff;transform:scale(1.1)}#g-ai-robot .talk_main .qa_body li .is_icon[data-v-cc5cde6c]{width:30px;height:30px;border-radius:50%;color:#fff;display:flex}#g-ai-robot .talk_main .qa_body li.is_ai[data-v-cc5cde6c]{justify-content:flex-start;overflow:hidden}#g-ai-robot .talk_main .qa_body li.is_ai .text_main[data-v-cc5cde6c]{box-shadow:0 4px 20px #0476ed29;border:1px solid;border-image-source:linear-gradient(180deg,#ffffff 0%,rgba(255,255,255,.5) 104.31%);background:linear-gradient(92.03deg,#77f1ff39 -2.18%,#edfaff99 48.06%,#5ba8ff2c 107.05%)}#g-ai-robot .talk_main .qa_body li.is_ai .text_main>.value[data-v-cc5cde6c]{white-space:pre-wrap}#g-ai-robot .talk_main .qa_body li .text_main[data-v-cc5cde6c]{padding:10px;max-width:calc(100% - 100px);border:1px solid;margin:0 8px;border-image-source:linear-gradient(90deg,#ffffff 0%,rgba(255,255,255,.5) 100%);box-shadow:0 4px 20px #0476ed29;background:linear-gradient(90.81deg,#f4fcff99 1.75%,#fff9 32.33%,#eef6ff99 102.86%);border-radius:6px}#g-ai-robot .talk_main .qa_body li .text_main>.value[data-v-cc5cde6c]{display:flex;align-items:center;overflow-wrap:break-word;word-wrap:break-word;font-size:14px;font-weight:400}#g-ai-robot .talk_main .qa_body li .text_main .btn i[data-v-cc5cde6c]{font-size:14px;font-weight:400;color:#037aff;margin-right:10px;cursor:pointer;text-decoration:underline}#g-ai-robot .talk_main .qa_body li .text_main .btn i.open[data-v-cc5cde6c]{filter:hue-rotate(180deg);animation:opacityCss 2s linear infinite}#g-ai-robot .talk_main #playChart[data-v-cc5cde6c]{width:calc(100% - 32px);height:40px;left:16px;display:inline-block;bottom:100px;position:absolute;visibility:hidden;border:1px solid #ccc;vertical-align:bottom}#g-ai-robot .talk_main #playChart.show[data-v-cc5cde6c]{visibility:visible}#g-ai-robot .talk_main #playChart.hiddle[data-v-cc5cde6c]{visibility:hidden}#g-ai-robot .talk_main .qa_input[data-v-cc5cde6c]{padding:10px 16px;display:flex;align-items:center;justify-content:space-between;position:absolute;bottom:0;left:0;right:0;box-sizing:border-box}#g-ai-robot .talk_main .qa_input textarea[data-v-cc5cde6c]{width:100%;max-height:68px;resize:none;background-color:#fff;border:1px solid #dcdfe6;color:#606266;padding:6px}#g-ai-robot .talk_main .qa_input textarea[data-v-cc5cde6c]:focus{outline:none;border-color:#409eff}#g-ai-robot .talk_main .qa_input .clear[data-v-cc5cde6c]{margin-right:5px}#g-ai-robot .talk_main .qa_input .clear img[data-v-cc5cde6c]{height:30px;width:30px;cursor:pointer}#g-ai-robot .talk_main .qa_input .clear img.disabled[data-v-cc5cde6c]{cursor:not-allowed}#g-ai-robot .talk_main .qa_input .is_icon[data-v-cc5cde6c]{width:30px}#g-ai-robot .talk_main .qa_input .is_icon p[data-v-cc5cde6c]{display:flex;align-items:center;justify-content:flex-end;margin:6px 0}#g-ai-robot .talk_main .qa_input .is_icon p[data-v-cc5cde6c]:nth-of-type(1){position:relative}#g-ai-robot .talk_main .qa_input .is_icon p i[data-v-cc5cde6c]{animation:rotateCss-cc5cde6c 2s linear infinite;font-size:20px;color:#606266}#g-ai-robot .talk_main .qa_input .is_icon p img[data-v-cc5cde6c]{width:20px;height:20px;cursor:pointer}#g-ai-robot .talk_main .qa_input .is_icon p img.close[data-v-cc5cde6c]{filter:hue-rotate(180deg);animation:opacityCss 2s linear infinite}#g-ai-robot .talk_main .qa_input .is_icon p.send img.disabled[data-v-cc5cde6c]{cursor:not-allowed}#g-ai-robot .talk_main .qa_input .is_icon p i[data-v-cc5cde6c]{cursor:pointer}@keyframes rotateCss-cc5cde6c{0%{transform:rotate(0)}25%{transform:rotate(90deg)}50%{transform:rotate(180deg)}70%{transform:rotate(270deg)}to{transform:rotate(360deg)}}@font-face{font-family:iconfont;src:url(//at.alicdn.com/t/c/font_4633255_xm549qw7rxj.woff2?t=1721900327001) format("woff2"),url(//at.alicdn.com/t/c/font_4633255_xm549qw7rxj.woff?t=1721900327001) format("woff"),url(//at.alicdn.com/t/c/font_4633255_xm549qw7rxj.ttf?t=1721900327001) format("truetype")}.iconfont[data-v-cc5cde6c]{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-guanbi[data-v-cc5cde6c]:before{content:""}.icon-nvsheng[data-v-cc5cde6c]:before{content:""}.icon-nansheng[data-v-cc5cde6c]:before{content:""}.icon-fuzhi[data-v-cc5cde6c]:before{content:""}.icon-zhongxinhuida[data-v-cc5cde6c]:before{content:""}
|
|
1
|
+
(function(o,ia){typeof exports=="object"&&typeof module<"u"?module.exports=ia(require("vue")):typeof define=="function"&&define.amd?define(["vue"],ia):(o=typeof globalThis<"u"?globalThis:o||self,o["g-ai-robot3"]=ia(o.Vue))})(this,function(o){"use strict";var Mht=Object.defineProperty;var Kht=(o,ia,Tn)=>ia in o?Mht(o,ia,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):o[ia]=Tn;var ll=(o,ia,Tn)=>(Kht(o,typeof ia!="symbol"?ia+"":ia,Tn),Tn);var ia=document.createElement("style");ia.textContent=`.digital-human[data-v-fc8faaf3]{z-index:0;position:relative;display:flex;align-items:center;justify-content:center}.digital-human #video[data-v-fc8faaf3]{position:absolute;left:0;top:0}.digital-human #output-canvas[data-v-fc8faaf3]{opacity:1;transition:opacity 6s ease;width:300px;height:150px}.digital-human #output-canvas.fade-out[data-v-fc8faaf3]{opacity:0;pointer-events:none}.digital-human .xiaogVideo[data-v-fc8faaf3],.digital-human img[data-v-fc8faaf3]{position:absolute;left:0;top:0}.digital-human .statusImg[data-v-fc8faaf3]{z-index:9998;position:absolute;width:30%;height:30%;top:0%;left:0%;-webkit-user-select:auto!important;user-select:auto!important;pointer-events:auto!important}.digital-human .QstatusImg[data-v-fc8faaf3]{width:29%!important;height:20%!important}[data-v-8448adae] .table-container{width:188px!important;overflow-x:auto}[data-v-8448adae] .markdown-table .ant-table-tbody>tr>td{padding:8px 16px;height:40px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}[data-v-8448adae] .markdown-table .ant-table-thead>tr>th{background-color:#f5f5f5;font-weight:700;padding:8px 16px;height:40px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.suspension-content[data-v-8448adae]{overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none;position:absolute;left:72%;bottom:85%;width:220px;display:flex;flex-direction:column-reverse}.useCustom-dialog[data-v-8448adae]{pointer-events:none;z-index:1}.useCustom-dialog .bubble-item[data-v-8448adae]{margin-bottom:6px}.useCustom-dialog p[data-v-8448adae]{margin:0!important;padding:0}.useCustom-dialog[data-v-8448adae] .ant-bubble .ant-bubble-content-filled,.useCustom-dialog[data-v-8448adae] .ant-bubble .ant-bubble-content-outlined{background:#062e404d;border:1px solid rgba(220,237,255,.3);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:12px;color:#fff}.useCustom-dialog[data-v-8448adae] .ant-bubble-content.ant-bubble-content-outlined p,.useCustom-dialog[data-v-8448adae] .ant-bubble-content.ant-bubble-content-filled p{margin:0!important;padding:0}.suspension-msg-bubble[data-v-8448adae]{pointer-events:none;z-index:1}.suspension-msg-bubble .bubble-item[data-v-8448adae]{margin-bottom:5px}.suspension-msg-bubble p[data-v-8448adae],.suspension-msg-bubble[data-v-8448adae] .ant-bubble-content.ant-bubble-content-filled p,.suspension-msg-bubble[data-v-8448adae] .ant-bubble-content.ant-bubble-content-outlined p{margin:0!important;padding:0}.bubble-move[data-v-8448adae],.bubble-enter-active[data-v-8448adae],.bubble-leave-active[data-v-8448adae]{transition:all .5s ease}.bubble-enter-from[data-v-8448adae],.bubble-leave-to[data-v-8448adae]{opacity:0;transform:translate(30px)}.bubble-leave-active[data-v-8448adae]{position:absolute}.ellipsisText{display:inline-block;width:20px;height:24px;position:relative}.ellipsisText:after{position:absolute;left:0;top:4px;content:"···";animation:loading-animation 1s infinite linear}@keyframes loading-animation{0%{content:"·"}50%{content:"··"}to{content:"···"}}#g-ai-robot[data-v-a61f2c37]{position:fixed}#g-ai-robot .robot[data-v-a61f2c37]{cursor:pointer;z-index:9990;touch-action:none}#g-ai-robot .robot .digital-human-wrap[data-v-a61f2c37]{position:relative}#g-ai-robot .robot .digital-human-wrap .dialogImg[data-v-a61f2c37]{z-index:9998;position:absolute;width:15%;height:auto;top:18%;left:73%;-webkit-user-select:auto!important;user-select:auto!important;pointer-events:auto!important}#g-ai-robot .robot .digital-human-wrap .disabled[data-v-a61f2c37]{cursor:not-allowed}#g-ai-robot .robot .digital-human-wrap .statusImg[data-v-a61f2c37]{z-index:9998;position:absolute;width:30%;height:30%}#g-ai-robot .robot .digital-human-wrap .QstatusImg[data-v-a61f2c37]{width:29%!important;height:20%!important}#g-ai-robot .robot.disabled[data-v-a61f2c37]{cursor:not-allowed}#g-ai-robot .robot img[data-v-a61f2c37]{height:100px;width:100px}#g-ai-robot .talk_main[data-v-a61f2c37]{position:absolute;width:400px;z-index:10000;height:600px;background:#f5f6f7}#g-ai-robot .talk_main header[data-v-a61f2c37]{height:44px;background:linear-gradient(to right,#ebf1ff,#e5faf8,#f2ebfe);display:flex;padding:0 16px;align-items:center;justify-content:space-between;cursor:move}#g-ai-robot .talk_main header span[data-v-a61f2c37]{font-size:16px;font-weight:700}#g-ai-robot .talk_main header span.close[data-v-a61f2c37]{color:#999}#g-ai-robot .talk_main header i[data-v-a61f2c37]{cursor:pointer}#g-ai-robot .talk_main header i.disabled[data-v-a61f2c37]{cursor:not-allowed}#g-ai-robot .talk_main .clickable-image[data-v-a61f2c37]{cursor:pointer;width:80px;height:auto;border-radius:5px;transition:transform .2s}#g-ai-robot .talk_main .clickable-image[data-v-a61f2c37]:hover{transform:scale(1.1)}#g-ai-robot .talk_main .image-viewer-overlay[data-v-a61f2c37]{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000b3;display:flex;justify-content:center;align-items:center;z-index:9999}#g-ai-robot .talk_main .image-viewer[data-v-a61f2c37]{position:relative}#g-ai-robot .talk_main .large-image[data-v-a61f2c37]{max-width:90%;max-height:90%;border-radius:8px}#g-ai-robot .talk_main .qa_body[data-v-a61f2c37]{list-style:none;padding:16px;box-sizing:border-box;margin:0;height:calc(100% - 116px);overflow-y:auto;overflow-x:hidden}#g-ai-robot .talk_main .qa_body[data-v-a61f2c37]::-webkit-scrollbar{width:8px;background-color:#f9f9f9}#g-ai-robot .talk_main .qa_body[data-v-a61f2c37]::-webkit-scrollbar-track{background:#e1e1e1;border-radius:10px}#g-ai-robot .talk_main .qa_body[data-v-a61f2c37]::-webkit-scrollbar-thumb{background-color:#c1c1c1;border-radius:10px}#g-ai-robot .talk_main .qa_body li[data-v-a61f2c37]{margin-bottom:24px;justify-content:flex-end;gap:10px;display:flex}#g-ai-robot .talk_main .qa_body li[data-v-a61f2c37] .ant-bubble-content.ant-bubble-content-filled{box-shadow:0 4px 20px #0476ed29;border:1px solid;border-image-source:linear-gradient(180deg,#ffffff 0%,rgba(255,255,255,.5) 104.31%);background:linear-gradient(92.03deg,#77f1ff39 -2.18%,#edfaff99 48.06%,#5ba8ff2c 107.05%)}#g-ai-robot .talk_main .qa_body li[data-v-a61f2c37] .ant-bubble-content.ant-bubble-content-filled p,#g-ai-robot .talk_main .qa_body li[data-v-a61f2c37] .ant-bubble-content.ant-bubble-content-outlined p{margin:0!important;padding:0}#g-ai-robot .talk_main .qa_body li[data-v-a61f2c37] .table-container{width:294px!important;overflow-x:auto}#g-ai-robot .talk_main .qa_body li[data-v-a61f2c37] .markdown-table .ant-table-tbody>tr>td{padding:8px 16px;height:40px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#g-ai-robot .talk_main .qa_body li[data-v-a61f2c37] .markdown-table .ant-table-thead>tr>th{background-color:#f5f5f5;font-weight:700;padding:8px 16px;height:40px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#g-ai-robot .talk_main .qa_body li .copyBtn[data-v-a61f2c37]{font-size:18px;cursor:pointer;margin-right:10px}#g-ai-robot .talk_main .qa_body li .copyBtn[data-v-a61f2c37]:hover{color:#1890ff;transform:scale(1.1)}#g-ai-robot .talk_main .qa_body li .is_icon[data-v-a61f2c37]{width:30px;height:30px;border-radius:50%;color:#fff;display:flex}#g-ai-robot .talk_main .qa_body li.is_ai[data-v-a61f2c37]{justify-content:flex-start;overflow:hidden}#g-ai-robot .talk_main .qa_body li.is_ai .text_main[data-v-a61f2c37]{box-shadow:0 4px 20px #0476ed29;border:1px solid;border-image-source:linear-gradient(180deg,#ffffff 0%,rgba(255,255,255,.5) 104.31%);background:linear-gradient(92.03deg,#77f1ff39 -2.18%,#edfaff99 48.06%,#5ba8ff2c 107.05%)}#g-ai-robot .talk_main .qa_body li.is_ai .text_main>.value[data-v-a61f2c37]{white-space:pre-wrap}#g-ai-robot .talk_main .qa_body li .text_main[data-v-a61f2c37]{padding:10px;max-width:calc(100% - 100px);border:1px solid;margin:0 8px;border-image-source:linear-gradient(90deg,#ffffff 0%,rgba(255,255,255,.5) 100%);box-shadow:0 4px 20px #0476ed29;background:linear-gradient(90.81deg,#f4fcff99 1.75%,#fff9 32.33%,#eef6ff99 102.86%);border-radius:6px}#g-ai-robot .talk_main .qa_body li .text_main>.value[data-v-a61f2c37]{display:flex;align-items:center;overflow-wrap:break-word;word-wrap:break-word;font-size:14px;font-weight:400}#g-ai-robot .talk_main .qa_body li .text_main .btn i[data-v-a61f2c37]{font-size:14px;font-weight:400;color:#037aff;margin-right:10px;cursor:pointer;text-decoration:underline}#g-ai-robot .talk_main .qa_body li .text_main .btn i.open[data-v-a61f2c37]{filter:hue-rotate(180deg);animation:opacityCss 2s linear infinite}#g-ai-robot .talk_main #playChart[data-v-a61f2c37]{width:calc(100% - 32px);height:40px;left:16px;display:inline-block;bottom:100px;position:absolute;visibility:hidden;border:1px solid #ccc;vertical-align:bottom}#g-ai-robot .talk_main #playChart.show[data-v-a61f2c37]{visibility:visible}#g-ai-robot .talk_main #playChart.hiddle[data-v-a61f2c37]{visibility:hidden}#g-ai-robot .talk_main .qa_input[data-v-a61f2c37]{padding:10px 16px;display:flex;align-items:center;justify-content:space-between;position:absolute;bottom:0;left:0;right:0;box-sizing:border-box}#g-ai-robot .talk_main .qa_input textarea[data-v-a61f2c37]{width:100%;max-height:68px;resize:none;background-color:#fff;border:1px solid #dcdfe6;color:#606266;padding:6px}#g-ai-robot .talk_main .qa_input textarea[data-v-a61f2c37]:focus{outline:none;border-color:#409eff}#g-ai-robot .talk_main .qa_input .clear[data-v-a61f2c37]{margin-right:5px}#g-ai-robot .talk_main .qa_input .clear img[data-v-a61f2c37]{height:30px;width:30px;cursor:pointer}#g-ai-robot .talk_main .qa_input .clear img.disabled[data-v-a61f2c37]{cursor:not-allowed}#g-ai-robot .talk_main .qa_input .is_icon[data-v-a61f2c37]{width:30px}#g-ai-robot .talk_main .qa_input .is_icon p[data-v-a61f2c37]{display:flex;align-items:center;justify-content:flex-end;margin:6px 0}#g-ai-robot .talk_main .qa_input .is_icon p[data-v-a61f2c37]:nth-of-type(1){position:relative}#g-ai-robot .talk_main .qa_input .is_icon p i[data-v-a61f2c37]{animation:rotateCss-a61f2c37 2s linear infinite;font-size:20px;color:#606266}#g-ai-robot .talk_main .qa_input .is_icon p img[data-v-a61f2c37]{width:20px;height:20px;cursor:pointer}#g-ai-robot .talk_main .qa_input .is_icon p img.close[data-v-a61f2c37]{filter:hue-rotate(180deg);animation:opacityCss 2s linear infinite}#g-ai-robot .talk_main .qa_input .is_icon p.send img.disabled[data-v-a61f2c37]{cursor:not-allowed}#g-ai-robot .talk_main .qa_input .is_icon p i[data-v-a61f2c37]{cursor:pointer}@keyframes rotateCss-a61f2c37{0%{transform:rotate(0)}25%{transform:rotate(90deg)}50%{transform:rotate(180deg)}70%{transform:rotate(270deg)}to{transform:rotate(360deg)}}@font-face{font-family:iconfont;src:url(//at.alicdn.com/t/c/font_4633255_xm549qw7rxj.woff2?t=1721900327001) format("woff2"),url(//at.alicdn.com/t/c/font_4633255_xm549qw7rxj.woff?t=1721900327001) format("woff"),url(//at.alicdn.com/t/c/font_4633255_xm549qw7rxj.ttf?t=1721900327001) format("truetype")}.iconfont[data-v-a61f2c37]{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-guanbi[data-v-a61f2c37]:before{content:""}.icon-nvsheng[data-v-a61f2c37]:before{content:""}.icon-nansheng[data-v-a61f2c37]:before{content:""}.icon-fuzhi[data-v-a61f2c37]:before{content:""}.icon-zhongxinhuida[data-v-a61f2c37]:before{content:""}
|
|
2
2
|
`,document.head.appendChild(ia);const Tn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA1pJREFUWEftll+I3FQUxr/vzkgtaJOxbDKLomKL/8qWKhUW6YMFqQp9XsG2oFBWqtjdJLSlKP570eomUdCHsipFq/gPH9pa6ZOCtIiwYlGKDz7YSnfnRmgyoCBt5x6ZkRmma3ZmdxosiHkKyb3f+Z3vnnvvIa7wwyscH0sGsGJ9C0VGAIwQGBFwGYRnRMkZGJ6+2MDXf+x2aotNbNEAdpw8BUEIyJ8AZwCZIdWMMea8gtwu5G0kbhXh3QLzbN2vvrwYiL4Adpw8KiIvEfid5M7Uc77oJXxdlDzYgDwH4GaSezPPOdBrfE8AK0rGCPmIgm1p4B5cTEbtMZVYbxHBQRE1Xg+GpheauyCAFelNBI6hYTZmu4a/Wkrw9tgVU3P3KKW+FXB73XfeztPIBehMFI7VA+eTQYK357QTIdXm1Bv6fL5WLkAl0scEOJ757ouXE7yzHKHeYYgNdd/d0hegEtWaW+tE5rvXFhG8rWFH+jQhm1O/+kO37j8csCJ9lOSnmee8UyzAbx4oazPPeSwXoBInD4lIc+9ek/nuqiKDd7kgAEKW5EA6Uf2x+b3jgBXqOUL2CdQyUsaLhrCj2hE0ZAqlskBMmAXu+ksA7EhL5rstoO73opxYSL/jwP8AdpycFYNJwgyDnCi8BkJ9HMY83awB0uxLPXf00iKM9TgFewEoCj5OA3dXUevf1Km8dvZGMeVTJI6mnjvW1u57G3ZD2K/O3dfvXqiEemvexbUynr2jIaXpzHc39DyIemVdiZMPIVJJffeBvHF2WJsGsTrzqxvn/7cj/W6zh8j86usDA7SsjPR+Ie+CMd/AyGctMcV1AjwO8ru8896KZtcTpS+VXLzzXHD9r5cF8DdE7RERjIJqRChzAL4n1U/Z5NChXGei5LAITtYD55m+l1GRhdc61EL9hpCs+86TedpLKsKlwtlR7S0Bl+cty0C7YD6AFev7FdXV6eTQke5/nW5KzAtZMPx8L/CBHbDC2gck1wJYQ2Jr6rnvt/pAcAIiN4DYk3nue/1cGwhgRZSsLkHebG5He2r2JqjSLwASgIch5lAWVHOLsbAasF7Rq1jGz6pcXtNoXLiXokYz39neL9vCAFrVHettEHm42cCo8lVPnNu58tS/CjBIsEId+M8A/AU+pnMwZo1a/QAAAABJRU5ErkJggg==",Rj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAgAElEQVR4nOxdB3Qc1dm9M9ubem+Wi+QKNjbYGAMGgzFgAwYMJGDs0FuAEEggdJIACQkJ8BNqgNBCJ5gS040h4IJ7k2RLtnqXtvfdmf98b2aktZAsWRo1W/ecPZJWu7OzM+++99X7OFEUMQLVwAHQyAcT5L+5Tg5OF52XX2MEYAGg6/CaMAAvgIB8TKHD/7mY5zj5mLGPEaiAEYL0Hpw8yBUoRODlQRqN+Z8ycNX8bIUUXAciKj9jPy+q8ucfNhghSM/RcVAq5FBmcbVJoMa58jHnrJPPNSL/3XFFGkFnF3KEID2GQoihRISDAR/zHWKJLsiPkYHQCUYIcvgidoXhYggyYo7FYIQgI1DAx/hPQocgwGGLEYKMoDMo0TguhjCHJVlGCDKCA4Hr4LsIHaJzhzxGCDKCnoKPyfGIh4uvMkKQERwsFPOLj1lRDtlBNEKQEfQF2pjEZORQJMoIQUagBpQymUPORxkhyAjUhFY2vyKHClH4HrzmkMPWrVvx8ccfH45fvb9BxAgdSqbWYUkQjUaDa669FitWrBgCZ3PI4ZCq8zosCZKUmAiLxYL7H3gAtbW1Q+CMRjBUcVgSJBKNIiEhATabjZlbDodjCJzVCIYiDkuCEARBgNlshk6nw44dO9DU1DQEzmoEQw3aw/GOECl4nmckMRgM0Gq1KC0thdFoZKtKfyISicDn88FutyMQDMLpcLDPDIfD8Pv9SEtLA0UWyU+Ki4tj50fnRec7goHHYUkQGoihUIgNOhqMRBgahD/88ANSUlIwY8aMPn8GHb+5uZmtTMUlJYiPi0N8QgK+/PJLrFq1Ci6XC8nJydizZw/7vKbGRhQXF2PZ8uUQRBF+nw9z5sxBY0MDwpEIMjMzkZiYiOSkJOTn5yMjI0OVazGCA2MoE0Sp+1E9nv7jjz+yWZxWDgKRhAhiMBrx9NNP46orr8SsY489qGPSalRdXY3y8nIEg0Hs3LmT+TZ2h4MN/OPnzMHMWbPQ0NDASKPRamEymRghaaUIh0KMMFarlZ2PEI0yAtN5trS2orW1lRGbHllZWRg7diw7JhGHVpkR9A+GKkF0cglDuD8OToOOTJhY0AC32mzMeX/4z3/GTTfdhHknn9ztsUrLylBWWgqP14uSkhI2+AsLChg5aOAmJSUhNzeX/aS/iQBECGXlovNQHkRYZVWj3+k5Ii69h6Ju9D4iiE6rRWVFBVonTmR/b968GcfMnImCceP643Id1hiKBFHKFkL99gG6jgIiEmjWJjOIBuIf//hH5ObkoKCg4CevI9OpsrKSmUstLS3M2R+Vn88GMS/7Dm63m72Wi0RUP3+tvPqwz+N57CktRX19PU4//XR4PB7mx9CDzmsEfbzWQ+j6cfL5DGo9T5RIEh8Ph92OtWvXst9psBEqKirQKPsKTc3NqKmpQWpqKjOTaKZnpBjA0h1aaTiOY34JkaW+oQGPP/44phxxBMYXFqKivBxx8fGYNXMmxhUUICU5ecDO7VDBUCGI0msQHQpZWCIJmVt6vZ7lSbQ6HXOWg6EQM8GIDEnJyYxEikk0mFCIYjQYGFmtFguLlu3ctYuRmHwj8m/o3CdNmoQpkyez30ciY91jKBBE6S0YUuXS5JMwx91gwNp16xAMBDBt2jRGHHKoB3KlOBjQoKcHmZHk99DvaenpVJWK7du2Yc/u3ey7EGEomJCdnY309PQRR78LDPYUMiTJoUCZmSm8qjjWw7L6WXb6iTBkLhIZKAxNQQUif1VVlfyyIffdOorzDTgGcwVRyNEvkaoRdA0iPRGGSE9mGf2NmAlhCEGMKaEflHEyWOzUjpBjiIDjhhopOkIZI4MyVgeLIMIIOUZwEFDGyoAzeTAJMoIRHOyY4Qd6zI7E+UYwnBAdaJKMEGQEww2RmABPv2OEICMYjgjHBHr6FSMEGUG/gxKSVJ2gMsIddLn6BSMEGQKIDbMO8ZBrr0DkUIo3VYQom1udV56qhMOyYWqgoXQIUnUtla5TjRc9RwWG9Dv99Ho87DVUIwW54pj6PtwuF3x+/7AmDn0vqg3zer3su6oIpbBV119pgxGC9ANo8PMcxxqwzBYLmz2prsvr9Rqrq6vHt7a2jolGozmBQCDJ6XQa16xZEx8MBuOcTqf2gw8+CPI879Bqta1NTU11PMftsMXFrU9ISIhQXRX1mxBZhlvJC5GETC2lx0VFKJEtfX+0SIwQRCUoA5ZWCGqQotmyqakpvWzv3uPKy8uPW7169Uyv1zuxsbExVSnpoBooWimo2pYGDq0m3377bduK8+mnn7J+9dTU1NrMzMz1ubm5n2dnZX06fvz4fUovyHAiCn0navCin1315PQSYXkV0ajdKjFCkD6Cqn4Vc4gG7LZt2/J37dy5ZMOmTQvqamuPb2lpYdMlvY7+TwRSBofyk4ihIDmmZ4O13goC9aBklZeXL16zZs1iMsHGFRS8P2f27CcXL168il5D5stwIIpiJtJKojJBEEMSVYXrRgjSS9CApIGdk5PDugi/+uqrxd+uXn3Zjp07z25pboaO2mstFtZw1Vv/gd5Hsy2tFortTlW4a9esOW/d2rXnVVVXf3zD9df/trCwsIh634lMQx00SdD3ohWWfDKVfauoPKZVM7VGCHKQUKSCchMSUFdbq1u5cuV1RcXFV+/atWsyRWtoBcjKzmYl5v0xpxMpqYeDZILefuutRR999NHCZcuW3XjBkiX/IDL2QzhVdRDpSReAyE6tBCpCiCGJKr3OQ5YgtAzT7BJrfgwmmN8AYNSoUaiuqsJrr71206pVq27dt29fnkFWJ6EbPxA9I0RS+qyc3FxSO+GefeaZJ6urqo574oknLklLTWXXrB9MGFVB5fYkbKFE8lREVM30xZAkCC2/pBtFg24ogGZl0vPNy8/H6tWrT3r66af/umnjxhlmqxXZOTltpBhoP4DOi2Zg8ms++eSTiwHYsnNybkxJTW3UarV+6vcgMtnkLsih5KfQ5EfmFq0iiqqLijh0fRBaesl8wBBImikOOAm17dq1K+P+++9/5MMPP7yU1E+YGSW/ZrDPkWbjjKwsrPz007MSEhLOSklJaYmLi6vkeX6n0Wj8ITkp6dvRo0fvpNZa5XyHAlkUf4RUJonEQ7Htd8gQhCIxJKFDA5KW3MEWFKDZmVYwalF97/33L3322Wf/z+1yxZNYA0nuDCWHWMm7EAHovOvr65MrKiqSeZ4/iuf5pTt37EDeqFFr8vPzXz921qxXR40a5aKZm0TuBhtKyHdXURFTXaEQ+VDCkCAI+RskqUMDT1EWHEzQ55Ocj9/vN959zz3Pv/Hvfy+lhB+ZU0SMoRgtUq5Zx6gXzdBEhp07d87esmXL7DVr1vy+vLz8qSuuuOKvBQUFTpIxGszvo6hahoJBbN22jU1KNA6GCga9Fov8DZrJyKyiCzWY5GAzMc+zm+Sw26ddd/31O4gcqWlpzNYfDmHUjlAUHOk7Ua7G4/UmPf3003efe955u//zwQdL6TkScxhMKAoyZpMJtNqR/zlUMOgEIUVAmuEGmxzKTaKBtHPnzks/WLFic01NzdjMrCw2wIYjOWKhJB3jbDa2EtbW1qb9/oEHXr3jjjteHQqRQoXIZGqTRTFUMOgEoRmbnMzBJAfdFDKp0tPS8OGHH9734YcfvkIOIz2HoSmH02soRCF1eFoZP/nkk6UnnHDCrtKysqmD7fcxTWKNZkg564NOkMGOVBE5KLdBs9YNv/zle599+un9VM5BNvxwXzUOBCVCR6vJli1bJk4/6qjN69evP6M/Pqun95j5S+HwkAgeKDisM+lEjsLCQkpYJSxduvSLTZs2HZ2ekcFWtEOZHAqU3E1uXh6qKiu5Y2fP/u9LL710xvJlyz5VTB01JjClDq070GdFBYFt9TBUcFhvwUYlG5s3b5583vnnbyVyUG6DokCHAzliQWQgkoiCgF8sX77y66+/Po4mCQqcEEnIR+zLg0LPB7OKDJXqCRyuBKFZkyI39fX1R192+eVbiouK8qhsY9hKi6oAhSQkJLdgwYLVu4qKRikC1319HOwqpHJWvU84LAlCRX3hcHj8d99994Pf79eSHT4civz6G4wkubn0U3vWokVfeb1enq4Vraix5TR9ffQU/dCme9AY0gTpLwfe7fGM27xp0wae53U0Sx5uJtWBQCTJzs3F3r17xy654ILP6KUUsFBqpwZyRSkrK+uv3Yd7PLCGrJNOF5JmdbUGr1KmXlNTk3L3XXet02q1Vrrxh6tJdSCQL0LBik9Xrjz1r48++rvbbr31YTXbfOnekm/T3fFoJy/Kri9ftkyVz+0Aric7Cgw5grBIRjTKLiBlVNUyfaimyh8I4NRTT/2+vLw8ieztSD9sj3YoQNkjkfZC+c1ttz00Z86cD2Yfe2wRzeZq5EqUluPuSvLps/rJzBJl62n4EYQIQZ1mPQ0NdgelfIRuyFmLFn1eXFxcSD7HCDkODLr+VF7jcbtx3fXXf/DtqlXj6TrSHoh9Rew9UfZd6Qz0/35MGnI96WEfcgRR+qup/FmNJV1pW/3zI4888NVXX83PyMwcMat6CLoXVGqzdfPmwmeff/6G39x22z8CgYAqx1bK9IkogzRZRWO2Gu8SQ4ogSoJOLceMjkU949//8MPkO26//V5bXNywy3MQwSORKFweDwJeafamfA09PxDfQ5nFH3300b9fc/XVL2dnZ3voc9UIoCgTldL/M0jgD9RgNWQIophUVDBItmlfb4BSRk248cYbV0AO7w71cC771hyHQDCI1lYHIEQAXouxY/Iw97izIHh9eOWjz5CanAR+AKp06DqmpKWhpqpKd+999z322N//fiVlutWKMCpFioNUByZ0F9HqjiA98vQPFp1t9UWrB3WWqTk7jRkzBn/5y1+u37xp01gyrYYyOVhkJxRCc2Mzu28mqw1zZk7HCcdMw/EzpmL65PHInDge0PDYM/dsfL9+I+tJH4jvRFEtWn2ffPLJK664/PL7JkyYUKOWww5ZiGKQzF4xhgOdriLdEUTVs6abSfZmR8dLme3pQlFpghoEIR+mqqpK97fHHvsLzVBD0bTi5O3PHC43vC4noNXh+NnH4MyT5+DU2Udj+uQJ0KSnAuEIYHfAXboXtlG5eOHhu3HEmT8HSf0kUN95Pw8uuj+0+pIM6gO///0L777zzulUiaCWaUT3nQIzFAAYhHskHMjMGnATq+OMp8xCtOMqp9J+eXSRR48ejeeee+7a+tpaM9nsA2Wv0+fYXW7EWy1dlvEr37G+qQVCKMD2XF9+2SW44MxTcdLM6UBaCmUzEWq1w7NnLzO55DfCVV6J8XPn4E+33YBbH3yUTQQDUQ/NhCuSk/Heu+8ueOedd46cNWvWtvqGBtbq21fQdaJ2a5okB8HUisaoxP/kZnVFEOVbqzo1UUy74wVQQn60qii/9xW08T/NRv9dufLXA3XB6XPCkQga6+tx2kknoNXlRml5FUzG9tVSIUZtXQPzLcYXjMPS8xbiooWnoWDGkeStIljXCH9JaftE0WEAClQSXlGFX998Nd75bBXWbtgklYcMgKmltMI+/sQT91x11VUX1NXWqnJcquAly+KUefMGS65IPFiC9AtIpdzUQbiYSEGzEzXwqOX40bE+/+KLmUVFRfmJSUn9bt9qeB5efwD2lmbc++vrceqso3HudbdCo5Eubxsx6huAaARHTJ6Iay5ZgkvPPRNxY/KBFjtce/ZBgNjtKspUCR0u6JMS8eqjv8fkBUvQ0NyCtOQkNtD6E7Q6JiQmYvv27UvSUlMzTzjhhDpSkVTjvhFBKO/S0NAwGNW8QldlV10RRKOWMl0seF7zk4tJduymzZvZIFOjipPIQCbV+++/fzYJARhSUvqVIHTOTpcbbqcDd95wJR549G9YuuQitLTaWTMSfd/G5laE/F5MHF+I65dfiKsuOheGnCxaSuDYVdK2FTPXQ2OJ12rg3FeJcbOPxvMP3o3lt94NX8AMk8HQ7/4I+Qq1NTVY9c03vz7jjDN+o+lFtW5nUI4xSH6ictF+sop0RpABXVWopKS2tpZtaM+rQBAasJTM2rZt2ymK2dZfINu5sakZQb8Pf77zVvz2wb9i4ydv4vX3ViA1IwOBQBAtzU1ITkrGb2+7Djf94ucw5mZBrKqFfWcJeA0PrpcmoMhz8JXtw7Jrf4E1m7bhmdffZkm9gQD5Cu+9997Vpy9Y8BvleqsBIgcdizo8BwGdmlmdkUHsj9BuV2hpbWUSlKSJBBUyqmQn19TWJjY3N880mc39ddrQajWob2xCOODHS489hF/88gog1IBH//k6+39zcyvESAi/uOg8/P62G5A7bQpQXQv7DokY9OgLaMYN+oMwNrfg6SceQlHZPqxe+2O/h35pwiGzdW9ZWdynn312/s9//vP3nE6nOmYWNVZ1ULsfYPzkS3RFkAFb55oaG1kPcsDvV+V4pKtVU1MzKhgM8v3l8DFyNDQjHPTjPy88gcWXX8z8iIrtu/De56vYazJSEvF/f7gT5y+/iIVoHduLQJm9vhIjFnQsZ3MrEuOsePOpRzD+pMWorq1DblZmvzrtjAwch61bt15+0YUXvkeTkhqk1BsMJLfE1DUHAUJn0ayOBOmXxGBXHpBSczVl8uS2rcf6Cip+i0Qi8ZSJ7hgQUAOx5Hjvn09g8aUXwrNtF6yTxuPB519DyOfF1ZdehD/97ldIzM+Fb3cZguGwqsSIBfkjjn2VyJhYiHeeegQLll4Du8OJhPi4fnPaWXY9JYUIcsoDDzwQZzKbXaT9qwZoM6HrrrsOM2fO7Jdz7+6ryUO1je0dCdIvppUg4idlEYpvoJU3n6GZXw3EJyRgX3l5fKgfCEKSNA1NLYwc7//zCZx72c/g2bUblsQE/PjfL/HOp1/jmT/fh2t+dQ3Q6oC9eA84XtP/sX0qC9+zF6ddtBiP79mLmx/4M/RGA0x6fb857bJWmKGiomKMyWTaolbSsLS0dDBFG8SOZla/O+Q/+UQZSgMOhffUHEAkLO31eCh0pWpHIjmjTa12hPw+vPn0o23kIFMmKgqoqq3Hu//3EE654Bz49uxlZSNqBB16AlbQGBUQ2FuOm353M/bsq8STr7yBNFJokbdkUBvkTNNxH3zwQc348eMRUYkgtPJnK8LgA19+InSs8O1XgkTFA1eCkd1q0OuZQJtajhmVRASCwUw1iUehTIfTxappX/zrH3DR1ZfCW7RHcio5Du7mViyadzz0VgscO4uZfT7QGWGe5+D3+qBvaMT/PfEgqurqseKLVciUK3/VJoky+TQ1N/PUjKZWYxP5Hzq9njW4DaJiWpurMajVvJTtLioqYkTRqUSQxIQE0njKU2v2poHu9fnhcTnx5O/vxGW/uga+klKEwxFwst3Ia7UIBEPwB4K9Dtuqcq6Uk2m2I1GnwwevP4O5iy7Gt+s3tu1hoibIxKIQ/XfffWelzUh9Xq8qRycx7fnz5zO/dBBFBdv8kEEjiFLRS3tv0I1VY8aluiDyZVxud6EaURVF6c/e2oI7rrsCN9xxM4Jl+xAMhjotmRkKIKfdXteAxPw8fPLvZ3HMggtRXLa3X8K/NNtPnDgxce7cuXA6HOoc0+9H9gDlc7rAfiXwg7qCUJRlVH4+c6bVGGBkpoUjEb65peVITR8Jx8wSMiEaGrB08SI8/Nf7Eamugc/r77eIlFqgFc1eXonEcaPx7Qev4OgFF6Kyqgo5eXmIqtS9p2gHuF2uTJ1Wq1oNlVGWGAL6T9WmG4gHCvMOKCj3QdEmtS4DZbb37N49aW9ZWRIJDvQFtELQXoQnHDMDrz7/N8DhhNvhHDDHu69gJCndh9TCcfj+o9dwzOkXobqyUjWSMIJEIuTv5WdmZsKiUhSSSNfmjw6ybjMGmyB0kalATa0aLHLQS8vKjqe+BWqQ6i2IaFWVlRiVm4OPX3uaxajt9Y1s0A0n0Pk6dpchZ0IBfvj435i98OcSSVQyt+j+VVVW5pP6jBpiDpCtCmV1GgoKi4N2x6kxSqnhUcN6V+aaDT/+eBL6sDxTWLSmrh46gxGfvfYM4rIzYS/ZM+zIoYCjRGJxKUZPmYB1K9/C3MWXooLMLRVIQgO4srKysNVuZ/dSUIF0NNHR2KCNlXRD4JoPKkHatJFUWEopXEzJqg0bN56i6eWFJbPK7nRBCIfw4Uv/wPjZM+CkosIDHI/Cq6wKl2Nbow+Kvi87B/kadnYOCklGTSrA+pVvYfaii7G3smq/HXp7A4PRiPqGhgK/z2eyWq3+kErZdDofP5UeHc4mFtXvqNkDQkRbs2bNCTt27EihzfwPFkrEisK5f7/7N1i4/EK4dxRD5KQidLpp5PjbrBYgPg6gRigKBITC7UWW5Lzr9NJy5vMj3GKH1+dTNfQrMrkcDazJSVRXI33mfuegoYshDa5wCHB74Xe5EBRF2ItLkTZuNDZ89g7mnf8LbNlVzCqAe5snoXtYV1dnampqOjI3N3edV6VQL8vSUwJ2cLXLmGaWNvaPgfhUhQ9q25g0+/935cqlNIB6IwJAg4QiVhcvXohf3XUzgqX72qpL421WIDOdDcSWfRXYvn4jSsrKUVldh6aWVnh8PgiCyKJxSYlxyM/NwZETC3HCMUchIT8P9r0VbBbv61QQDYeRlJrCCFq8cQvWbt7GsuaNTS3weH0s82wxGZGYEI/sjDSMzsvBlMJxKBg/FiYiVIsdjj37kDgmj5lbCy++Bl9+vxap6enQ92KbORrIfp+PtqybNX3GjHVuj0eVgAtZAi12u7SH+uDllWhwCtouKkH6Hb2Rxe8Kci+45p133vk51XYdLDmIqNVV1Rg3ZjRefOyPgN0Ft8OFpORE8LnZ8Owtx3vP/Asff7kaazdtRXV9Y4+OO23SePz5zlsw7+Tj4aPy9z5+T0tCPOpaWvHbX92JNz/8tEcVuxajAdOPnIwz5p2ACxaehnEzpgFOJ/QGPb744BX84rrf4OV3V8AaFy8VOPbCj9i6bdspVxkMT5hV2p2WJji6J+Lg7kAWZR8viqJCUdVLP5VSE/qiGg6ob2iE0aBn0abOpH96A6WPnTb4P+ecc14h0eWDSTqyFlafnyW61r33L8xcMA8tO3YhuWAsZcLw6HOv4MkXX0d59U/7rzVycrIj2ZmjGY2y7x1vNMK+ez3Cfj/LtPcF8VMm4varb8EjL7zGjqKX1dJjP5dWEVpFOzNODDodLj5vEX5zzS8wkcQhaDdZiwUPP/w47vzT36HRG5GVkXZQSocUwUpNSws/89RTyTabzR1QaQNOMrFqamoYUZYuXarKMQ8SzLzRyr8MWA+IYs+r5cwqgnPPv/DCryALQ9AMRGX0PbnRVC7itLfiV1dciplnnw7PrhLEZ2Zi7Q/rcfay61mBYleIsklAJHuxy9csPn0eOIsZYZcKtUoOJ0468bg2goTIJDoIs4jK7l966z/s8dDtN+PX118OXWsrfvfw3SgYMwoXXncbawLLSEthao49AbUXVOzbp/viiy/mnX/++Suon0MNMPOW51XLr/QCbbVYwkB1EFrMFtisZlWjEzTDbNiwYcbHH344nf4eN27cXp1Opy8rK8vpbkN6mv2bmppZuf29N18NsaERGi3pZ0Vx/4N/Y/+/5mfnYcbUKSjIz0VmWgrirBY2Ewss0hJAi8OFuqZmlJZXYufuMpSU7WNyPhRJO+OkOfjj726G3+Fkiid9XTFdVTU4Y+F8vPf0X/H3F15HQ2MTLGYTstLTMConC6NzszEqJxMZKcnMb6Jrw7LdHi/qmlpQWVvHVsIfNm7F35/9F848aQ4mHzERvh1FWHLZz/F9UgIWXvVr2J1u2Czdd2PS8WmWp4muoqLi0mg0uoJtttOnbymBopKUi1LL8e8tyMTqlyYpdGJibdu+A+X79rIBqYZgMQ1Cq8VivO766zeUlZbqLl227I8LzzzznXvvu2/HN998MzY9Pf2A76fzqq+txVO/vxPX/e5mOLbtZH0UZnLKaeZKTKC6boRr61G2rwJVNfVsRSGTjMa6xWxGSlICMtPTmFOcmJxIoR26u4CFZj4LUL0brXUN0Bj6Xowpykm0+Pw8ipNLq0dSIqBLadfZiNoBp4uZh6wRhwIhNgsQl0hGmnwkD1BRxlQcdUYDO65eo4F5UiGW/exqvPrOB+weHWhQKPmKE44/vsnldgtr1qxxaDSaI7RarSp170wrq7kZV151FZ5/7jk1Dnmw4FiuNSaC1e+rCJk/55xzDivXoJr/vpKEZiuP16s79ZRTbn/5lVc+KSwowLp168auXbt2LCn/HQi0OpAMz7Qjj8BVS88HWu1ImDQe8PpQsm0XNu4swjc/rMf36zejZG+5ZEp1g7SkRBSOGYUjJxTiiImFmDZ5PI6dMRVJUydDrK6Fw+FixYS9AQ1imlVNmWkSAf1+VFdUYcenX7OVi1awvVXVaGhsZiuAz+eHCGnfcQpNk5YvrTKTCsdi5rQjcMLM6UiZPF4aB80tcNodgD+AmVMmMoJ0922ZQF5rK6699tpL586du2rG0UfnFhcX891d956AyNFQX8+iZP20eU7Pz2WgRBpoMptz3Gy8/c67uPCCJWz5JI2lvpBE3nnVfcQRR3xSMG4c8z1KS0tPptJrso0PhKggQoxGcNc1y6AdPR3e4rV489W38e7Hn2PV9+uYvX6waGy1s8f/Nmxpe+cx06bg0vPPwrVLL2TFg47SvWxW76m5xfw00qMaPYoMc/zvm+/x4effYNUP67G9aHePzrPB7kBpVQ3WbNne9lxWWgpOPPYYnH7yHCw48TjWsguTBTMmFkBnMiMYCsOg77oAkUw3Em/YsnVrZVJSUijOZiujb0RKMn2R7iFyUA0cBXK+//57TJ48udfH6iMYJ8jE6rccSKyJBUhtt/T3ys8+w5mnnw6T2YJkEjzrZYkCEYRIsWTJEpZCpvLrPaWl927ZsuUB2l7tQPa8kmMAACAASURBVCBn9Njp0/DDmv/irRf/jTv/8Bfsraz+yTvofI+dPhVTJ49HbnoakuLjWK6BwMTinC7UN7eivLoG20tKsa+qptNPnVQwFv/+xyOYetIcOHcUSaZPN2hLTk4sxKYvv8FvH/w7vvrf2gO+yajTITHOhqSEeGh0WslPsjuY0mNXSElMwHkL5+P+39yEzCnjcdRRp2Bb8R6kp3S9GlCmm1oL7r3nnpzcvLyaFStW4Jmnn2b/0/SyspeuNXUmxtlsWL9+HcZPmNir46gIzYASBDEkefPtt3HZ8uUgaZ7e7iJEqw/NNHSjtm6RZm2jyXR/amrqfQdamWjgNTe34E/U3xHw466/PLnf/5MT4nHSnJk4efYxLNl35KQJAPkXFFKl40bC7dEjymTTFwxH4Kxvwh4ye0pKsW7LDnyx+nuUxZBOx/P47sPXMWveiXAUlYDrpiSGE0XETRqP/7zyFs678uaf/H9sXg6mTp6ACWPzMSYnC6My05CRkoTk+DjE2SzQ6PQIRaJwuL1oaLGjrKIK20r24IcNW7BmwxaEOlyjeJMJ//7nY/jq27X423MvIzMzo8tzo6RgZkZG629uuy3DZrOFaZJbvXo1mby97g6l+1Jf34Bbrr8Kp599Xq+OoTI0Sh6kX0K8nREEssNOoK6xnbt29T6URyUSJDZGCoryTTEYDLR63HugZV5RkzfxYHpSCo6cUIAbLr8EZ51yIjILxlDGijm8wVYHAj4vouEgOI0WvMEErcEEvdEklaj4fRCCPhh5QEvqLMkpbCbwV9fi7U++wG/veQiN5DiT6rxBj30bVyEpJQmOuoa2PEbHcg8xEmE+0Xcff44TL7is7Xkjz+Pqyy7BuaefjBlTJsGWmiR5kZwG4HWSWxkVAK8HUb8PiISgodtLK2pCEkBmU6sdxUV78PUP6/GfT7/El9/tvypNHDcGdl/ggBlk0sIaN25c0RWXXz5JqTigHBSteL01sSgySAGQc047Gel5owcrhx0LRhBtf8iMogcE+dXNN6N4zx4kJSb2/kOUQUXdhBYLdhUV3b59+/Y/HcjEouiX3+tliuIK7rvpatx/z60AOZk1daz3Q5BzNULAC43JCl1iGgyJadBYuzhfZyNc1WUIu+3QGi2Ip5qt0WNRt30bZs4/D9UN0s5ZF8w/GW9/+jbTywIpr9AqRIOKk/eVpIQi9bo3NSN/+jy0yqXk8445Ci8++zeMmjqFBRMilRXwh6PQpWTDmFPQxfWJINBYg1BrPSKuVvBaPQxmC0yJ8QCVn7g9WLt2Ax569B/46Ovv2t6WRjoBpHfVxUrc2tKCGUcfvfraa689iXw+NSRDqdSdujUvWHQa8gomytdjUMFrByoHEgtF6eT4449nuxclxMf3/M0HAIk/8BpN9Y8//sg0ZLtyhNmq4/W2he/u/eWVuP/xx4GKEtirdkhNUWx1ikII+mFMHwVj9ljwOskULNpdhpdeeg3FRSXyNm/ZOOfcs3DG/JMQF58GX0URAnX7wJpQN29C5lFH4sNn/4bpiy9l73/ni1XYsGIlkrOz8PXXq1FV28BME61Oi8y0VBZpOnXxIvzpr/9oI8eUcWPw1cp3ALMRzu27EAl4obMlIm7KTEBrQFV9M/753IvYtnU7QqEgsrKyMX/+ybhwydnS+aePQqCxEv6qPQh43cy8EusbodfrcOxJc/DhGafg9qukLD1dF7fTiQR5p69OE7ocR/un1yu9G2okfcks1uu0UofpUFg/yA4QRZGm2n7JxnS1gtCTdBM2/rgem7duY6JxarA0Pi4OxcXFE++9775dFA3pzBZWbrijuRn+UAhxZhOq1n6OuLRU2Ovq20s3SHU+4IN51AQYM/Lb3v9/Tz6Pm268Rb5kVlht8fC4W9m3XLZsOV5++Rn2On9NGfzVu9nKQ9/VeuQULFt8CV5dsZJdkySbDW7qqOxihh6bm8MCCV65dGPzB69i2pnzYSeFxmgIGrMNcZNns/+9+OJruPW2u+Cw18BgTGbfMeBvYP9bdNZFeOPfL8BqlVbUqN8Dd8kGFsHj9Ub2PamsIzElmflZxx+/EN9v3gYd5VuSk8mn6zSIQjmKs84++7GfXXTRLXaVsudkKpMVcOGiBbAkp5MKhSrH7QOstIKY+4sg3YGca4fLJW00o8LxKKqVkJhYlJWVVV9eXp7RFUEoq63cdNo2gFUVezzt5KBZ0e+BITV3P3I8+Y8XcNONVyMuPgenzFuMDRs3s+Pk5eWwvMMrrzzLyiP+9dJTMGWPRcRjR9jZAtFgAjxu3LDsIkYQysG0yDI5ndVThaNRlFW1O/cL5szCtNNOZmoqVBojChysBUex/7311vu44opLkZCYh4mTZrBZmAIQ8+f/DA6HEx9/9BbOPS+ILz7/D3s9EdY6bhpcu9bKZh0nqaG0tCI+Mw2zp09lBOHklbarqgc6Z71e30jOulpSoVSRbGFBm0HT5u0IPRFk0M4mLy8Peq0ODY2NqqggEskoe56VlfVR0a5dV1HSyucPwOv1MaEFKhOhG67XamGgCE/Uz3pAaOZSQrfsOGx2NcCUW9j23LZtO3HjL38JkzkZK1a8gZPmHo+PP/kMl1xyFVup6DFm7DS8/K+nceaZ83HhBefCnDseTtcPbLCFa+oxa8Y0TBk3GjtK98FEUkGRSJf1VPR/ssnp/0sWzqcEASuAZMGAjHw2+9fW1uOaa3/FyJGRkc6kiCorK/HLX16DR//6R0aWhYsuwOeffYC//f0f+PUtN7Bja60JMKRkI9hcC41RKinhaJIIhn/iSyhmqtvrY/oBpJ9rNkqq+Tk5OY1Z1I+ukkg49c5kZWaA12iZecsN/gqiHTQviG6EyWLF+PEFLCJCA7WvD9KHJSGIGdOnP0WfUVNdzRQOCwtGIzc7E40NDairqcGEsaMwJk9S73M63axWCTEhVzEUhC4hDbyufe545JHHyAjAaaedzshBWLRwAY45Zrqk5M52a9XCaEzDI488zv5PZpAuPgVCOIgAlYbEx2FKoeRMswAAgBmTJmD5BefguouX4Kqfn4/5J86GUatFUCYPDc+jJk9k0TSODWQtjOl57BiPPf4UnI4aFo6V9n8MQ6vV4ZZbrmf/p5X5yiuXS6997Gm2oijQJ2fulyNmNCBVSl+7iDg1ZtHftJMU1WYVFo5jWXm6jqSJlZqaUkd6ZpTxVuNB50tFprRX48EUYfYjuEHVxaKbc+oppyAjI5OZOWrsd0fmwsJFZ23ZVbr3WZ276Zq7brsRY7IyWHXoD1t34rJb7oaG16BwdB627i5lfgAl+/JjssaiKEBraQ8cUFHg6m+/h9mchpKS3W0VxGRW7d27Dxa5sI857LnZ2LxpK776+lucMu9EaC0JCNsbpRGo4ZEYL6mtBKNR/OP+23H97TexDDmLxjEhOg47vluD05ZdxwoM4y1mKWFHpSPRMDOReKOF5Tc+//xrJCTmtFUjsJ1ygwFs3LAZOdmSttSP6zcBnA1VlXvx6adf4mc/O589z45jMEGkEK1GK60UkQhanRKJmGKkx4tgVMQDt/0Syy88BzazBQ6nk4WFf/9//0RFdX1peloVy4moAbbpUHYWa3EWouJQcNLFQe2Kp1i/RqvD1KlTVT/2G4891GwN2gHaYarFzkyIc5b9DJ/YrNiwbSfWbtjMXkfzVGNLKyVQlLOSBKd17SbXls3b0NDQhFGj8lBTU4uf/fxyLFp4Ot5//0Nm72dlZbaZJjzLAwTxzSqJIMyEocEnSo5/bJPTsUcdyVYu1+6yNh2uuIQ4TDlyMuItFkYQssdZ3z6VxghR8HqpQrmkeA8qK6ulULIMmoGp3fjOu/7AVgvaZ/2VV99Afv5olO8rw5Yt29sIwml04LU6CKFg23lTLZZS3k9nGfT58PQf7sK1d/8OaKiC6PYgKT8XV884EvNmTYcrPi+SnZONCO3Cq8JoJhORKgAiAT94be+Sx2qDCKKO6nCvIMq2ppqWHoeo13Gc0dN4l1/kECyvaju+uHkrZh89FbMXzMPGpde0vaO+qRnQxc4VIltFFDQ1t8iztMhCuitXfol3qQvPZkVubs5+9WSsEYw3oNUuKQ1S2QX7fOaIRNFsb1cg9NPgdDhl7kimTjQURijQXhbi8wVYuQizhkWxzS4niU4q90iMySHRMVJTU1h+57LLb2CkowCCyWQEr9GjOSbvwxgbExmhuqugy822iyNEBAEnHjcL1950FcKlRfB6fJLUqs8PoaEJ43LSgbzRV0Iff2efb9l+EBCyN7WF1AcZEe1gRbAY5EQQkUQViJKNHmisuS3ockJjjmvLaUAeQNRKa8vJRm5MGUV9Y0tMbZSUnRdC7bZ4rOlHZMjMTG/riOxM9n+/bknmhIsw0Srg8aCsvJI9bTUYkJOWymbtWIRCYZji4li5C8EdCKC+uRn5kwolT0EmrkT6nwbRKZJHdryynQRTfqecB/se7ROREAkz9Rbl2hCRG5pb0djcTqKli04DTEZ43B6WXJVWQpH97nD5wBVvu8GUPe5eEVwEolr3UC7RH/wkISFIZ6HO1k4HC46HEAkh6vOwfIMaDxrUEY/DHHHbzyJThA3gUAhuh4MVwZGfwyT1/QHWWqqghnrMWa+F9AQNvqivfRYnJ7ijEERXSUiS4IEYREa6dPxI0A+BfJrkZGzdvgs7S6XSloLReWx2D3n3D5FSCJr6UPJzs9ueK6L32KwQ6ZqFJZMoJyeH5Ta6qjmL3S2XmW/RINLT279z1O9me7S3RYqMBrZbbotc1FiYn4ufnXMGotW1zCegScPrdrMKBDYBkJ8QDsVF/Z4FnEIeNR5E+qHhoBMCfFfb3w4ExEiYOZ4UVlXjQdNkxG0/XQj5tZxWko4hYlBoMuj3t4cwIxFkp6e2fcMa2p7ZHwAnz1qcVo+wq4XNsoTp06ciOzuT7WbbHUKhCPQGGxacMZ+9MuyVarCQlICPvvq2ra+EejK4jHT4g/trSTESajWYO2tG23P/I0dbpN4OLaIBacEvGJePsWNGo4X8q26CGxKxecyc2X7MsKN5f7/BaEBdY3PbenTSzKNhGzcaXpe0tz1FB5UdbSncq+Ruon732WIoACEYZNG/vj5oAqDJTjWroo8YlFITBkFA1OeSGkVUacHlIOr0iPjcx0LeUjmq9DXbrHDZnezGUmaYugSzYmbTatrY3+1h+REKx5KZRitIqLmG5RzIET7jjPn4x5OPITVlepezNq1QpaV7MXfuHBxD6iEQEXG1wGaLBxqa8NZHn7W99vQTZ7Owqsh14t+2tOLMucdBz2sQEqL4+Ovv4CsrhzUxAY76WoRbaqBLzsbixQuxbt1X0Giyu+whZxrD1TWYOGkS5p92snTpw0GEW+ukTLoCnV6aKGSkUeRMFJgumBCJsMnFGhfHrqEQlc08muzD4RPoOOr5DKLcOTkkTKzBOwtRjLIoFs0Uqj1oNYqECulrUZaBqY0wLoosgirIG97QapGTkYqUOCnkWlFdx3IZBmP7TaabHqjbK61MAG7/7c0sSUiDTdtJmTrbR4TMD8GNe++9gz0XrK9AxOuBftwYfPbfL7BDrhzOTE7C6fNORKS+odPgj9fuRPaRkzDvuGPY3412B95b+RX4vGyIvAa+ugr2/A2/vBp5o6agrKy803NS/A+vpw533XUb22qb4K/ew/wPmgjaoOFRWVPf9mduVjqrFVJEqjkWIOClwavsp8dp6PqMEkIBM6tbI7+mz48Ii6wpq/dggx+MmjBWsxoJIdRah7C9HmF7gwqPejbjC6FgHGViId9QxGxOr5ROhAMBpKemIDdLctQbHA5U0ewZI1TA6fTsRnn37WB/U7Tq1Veeg9vViH37ytlqoZg29Lvd7kBV5S7ceed9OPmk45n56Kspg5kKMSNR/PGpF9uOfem5C2Ek88Xdef6AMubU2/7zsxa0Pff4i68DLjes8YnkZyHYVMWSdlTWEgq6sHt36X7yQxoNzyoIykq3YPnya3HJxRew58OORgQbq6ExWtoqodl7gqH9pI1YEIMCELJjrmhUKX3xUrsd+59ODPptZGap9aBqAUQHVVWxDfygVfPyGmiMUtJLrQclvziNxq2EaDllK7QOTp8/FAaXkoyC/Ly256jvnJzjNj+FojUmKyvH8FeVsKfOP/9sfPzxx0hLS0Vx0RbsLinBnt2l7HePx4vf/+ERPPjgPewbuovXMyfYPGUKPnz5Dfxv01Z2DGqauvnKSyGSvd+Vo08krqxmlbjZqZKM6saiErz/ytswjC9kOQzvvl2sfP3kk0/AqtVfY8L4ApQUb8PukmLs2VOG4iLK3TTixpt+i3/9S+r0Czua4N6zWaoQiAmtGynE7XRh156ytnMcS5UGsQEEuaiRrikTdWu/pmFBiPqFaBhCNKLKQxQig2b5d4A4YKom+4Fjxf8It1ST3SM1+6gASnyFWuufCrtar2ODgEVvotIWaVQcyHEw2WzMN0mYUIC/3PMwfvvIE+yDz5t/Et77/D8IFBcjEAhJZoRc8h71e2FMy4UlfyLrEPCFonj15dexc+cuRKO0CVAezj1vMQpG5wDRAJy7NiLssiNl0iQEHC7kHzOPdfQR7r5mOf7wzKNwbdkB8QD5HzrvhKmT8c+H/o6r7nmYPZedmoLSdZ/DaLOiZe9eFjGzjp4CXbKUNX/13+9h08bNCAUDyMnNwWmnz8eMqVJPd6C+HL6qEnC8ltWZKasHTQi0G1XNzmKMnrsI4aiASaNHYdsX7zFCUBCBAh0hvx9GCh3TykxhWFFUKoIrDGm5+ZJDosIw4qQEsi4xVVrlBg+cUu6urCKqk6RLgsgXItJSx5bU/WzhPoBFn5xNN4da6x+LdRopF+Jzu9mW0zo5XBufloLdO4sx/tT21s4XH7wbl935O4T37GQrgrRZjvQNqLqXbpghNQfGrDGdnmSwejd8DZWIhkJIKSgArBYsmHcOPl+zgf2/MDcbu9Z9jmgwBB/VVilh0Y6QBy8FFAxJCZh8zKnYtU/yO86YMwv//eZD1svRWlcHToxCn5AG65jxgPanA0pwNcFbW0HXhflVFN1rI0c0Clt8HLRjJuC6i5fhmTfeY89fueQcPP/aM3CW7G6zwKl/hhqoeJkc7P3hELTW+M+NmaMXiFGVhHHkigNdQopq46IP4DX333+/Mo2pTpADNr1wcpg3Emy/EH2Mo3NSsi8U9bmv4ZTjyT/J+WN7IcoJwYjHh8xpR8BZUY2123ay51Z8/S0SEMGcRafBFGdD2OFieRNmqukN7HxD9gYEm6qZuRJ1NTPfx1+3j83OQUcztHoDEo+YAgSDWLLkF/j42zVtX/m7/7yKtHFjmACcdB6ilPgT2/Yt2O+isb3e09Nw7IRxeO6N99lzpE7SXLoPC5dfBLNGg4AvAMHvgb+uEqGWOkRdLYg6m9g5+mv3wt9QySYhIreU85A+g8TxEnOywKel4v5f/RaPko8j45kH70Z2VjoCTrdEYjKvBIElCPeTWI2GoY1Lek1jsn5Dv+//PXr5ECLMd9SabYO9/QHV9JgUEwuDsYIIfh+i9jq5krbvF4NTZrvGqjoxHMxQiMeiOeEwi2bpZaE0+t0cb4OBIkpnXIjPfljfdpyzTp2LP99zGyZSLoJs7YYmeD1eVn7BQOqBZCvLvg4FBajFV0uOrdWC9Z9+hStuvKMtakV49dE/YOkt18FJ0jtkw9PeKOEINFGh3Rchs4V2LSCfgJdLS0QBcVOPwJ9uvQe/+9tTbcdbfu5C/OufjwNxNoTKytnmlywsK8iFjzRh8Jr9ZmGmY8xxiCOxuZwseMvKccVNv8Nb//287TW3XXYx/vLs35gEa1RONrJMvCC0rb7KuZLfYcmfNFtrS1rLsvJqgEqPdHpoDOqU0PcBYxQfZEDEq38CTooqCY5GaRZVKeJMZkSwseqxUEvdzTwVCsZkv6ORKOsLUWZBWlUSs7PYoDpn6bX79WTTKy45/ywsWXga5syYipScLMAsS5mSOcFyb7zUT042emML1m7Zhlff/xj/fP3d/c7pr3fdilvv/w28u/ey0hT2+fTeZjt4ihTpdDIZRHYThKT4djufBCbMZhizM3H5suvw0nsftR13+sRC/OGuX+PMU+dKqitUqu5yQwiGmG/EFC15TpLhoQgdKUZGBTTu2Ys3P/oUf3niOVRTHZqMC08/BW+9+TxCrQ54na62qBjbc15urBLbzKsgBVmqLWOm5ELFciG2/4nZygIRgwzSHHIrBOH6Q/rngARREk1UIuJ1SraxCosYp9EjGvDk+itLKmkQ/qTpRtw/Mcn23KDScJMRf/rz47jnT08gIu4/V1DWnXoySOA5Oy0FCXE2aKncPRhCQ0sL9lbWYNOOYuzcXbrf++KtFvzz0T9gyRVL4S/di4A/0JaB1hgM8FRXw1lcAo3ZzAIJYbcb5swMJEyaBIH6R5TBGIkiLiUJmpQkPHD3Q7j/70/v9znHTJ2CM085gXUDFubnISUxHia9nq2oJCxnd3tQUVuHbUW78f2GLfhs1f/QZN9/2+Y7brgCDz90D8lforWhCQfcpYtyIz43NZT9ypCa+zgLy6phDtEKrdFAaz6w6N8AgfRcg5w8I/SLNlZ3BFH+KVBPtxij6tEXUFuFwYxA/b6Hgw2Vd1Cotrtj0gC0xtmgy89FyQ/r8eizL+OtD1fC5eldHafZYMDyi87FXTdeieypU+ApKWWzcGzVMhGXzCn7nj3w1tYyh1lrMiJ1yhEwJiQwR7/jOdribdDm52HlG+/jlvv+JIWmOyDOYmbi1VaLmRHEFwiwCuKOhFBw6gnH4v5bb8CcM05FtLoOLofjwPsxkj8X8IE3Wb1xk2YlcrwmDBUEGyDl0IdKBp0iPFSLVK0QpF9Cvd0SRPnkcBii3y3Z4n2diVghndSR5inb2iAG/WkdTa3O3yaZOPFkSlnMqNq2Cx9/tRqfr/4BP27diZqGA2+aYzObcNSUSTj95ONx4VkLMPboaYDdCXttPThNJ5sFyQV/vE7HVo4IaXvZbOzvaDDY6XUg84NyELaCsQjV1ePpV9/Gy+98gM07ig/qEiXYbFhw8hwsW3I2zlx4GtP/cpP+MMuSdzNAae8Rvwdxk45drItPXnFQHzx8UCibWCs4NeRaOkNsSLzbTyBesCSUSufCYvU6RHyuo9xF6zexyladoVuSoKMjS0offj+ayytRXFaOiupaNDQ1w+n2sFwK7aiUnJiAnKwMpm44lsTm6H2tdrgam5k/0RMNXl7uGSGfSOyBDCutJgmJ8eCyMyHWNeB/P27G9xs2Y+vOEmbmkQq9PxhgF54artJSkjF+3GhMLhyL6VMmMlMsb8pERkJ/VTXL+5BvdmBIpfYRnwvmvAlPmrLH3ahca9UghR7VO17vQap1ZOdtVZ0gdLgwFaTGfM8efYIsBaQ2Ag2V5/srS94lp5eiIwdzQ0VRUkcnc4WiRUxVnXwaOYnIZgGym8nR9njhd7tZP8dAhSdpRSGS6inbTgGEYAihhibUNTYxkQX6rmaziW3REJeRziJsLMDQ6mDCeMqe5N1CTrhSO4E+JfsV65gjlg/IFxw8TJBdjj2qEyQiiIiKHHQxE9LBfALfWXVrb0EzXsBH9UcLArXlKyBEDNSHPVxBYWXKMtvk7Zs9tXX7+QuUWaeCRB0pxCjPMyWUEPyBQI/2NPwJiBysLSEKfWLaQ6acwrt4Q98VaIY4SFmD+hQa+oUggsjtp5dysJ+gGklEAWGXJOomhELjQq31L4VdLcdTSYoURhwS9T4/hbI9nZzXYGaXKMKQlATLuPHY995/EHI6kXvS8Qh71dGk6uo8qKmN02gdxrS8a7S2hLepLEhjiRvMzTUHAqOo0ZSiWIOey+8M5NxrVFxJhCDLJJdaRk85IdBQcWO4tf4BIeRPZGZXP8XbWWLNamF1XBHWjIV2+7otciERVFR+l/piWSSHKY1oddDobTAkJEOfPhpCyIvtT/8TX910C8accjzGnn0GO7bYDx14jBjgSJXlVV188m0aW2IjFV+qJabATPGoAJ2WHxpeRztoaqeIDGvdHJIE4dQmCYUmQ0Hwej0MyRn/pzFbX484W26NuO03CuGgTVIwUXc1oZ2kPDX1SDpyBivtD3s9UgZeKS2Rs9QsIUgZbyoipJWNHpRJNprbFEwI5StXYsvjj6Lqi6+o4RDG5GREA51Hu3oF2ZSSesK1Ea0l/m2dLfEfnEbHlO9EavVV0doIhqNScEa1I6oGfWykYEgSBPIZCqKK5haniDGwPuxWfULqXabcwicC9eWrA3X7xrN8iYoDwJqZgR0vvoKd73yOeU8+AX1qD97UAbQ6VKz8GDtfeBbVX34JjVGPlCMmwFVeAa3RyJKNEJ0HdcyuQOTgDaYop9FeLoSDX+sT0qp5owkRj1MqWVFxoSVyUOuxVlU1G9Wgja0qGbIEUaAqSWQwp5MpIRoajJljlgQbq7ZTbZWaUpeU44jLH4Vvb76btbfOuP1OpEw96oDvCft8cJWVomnLJtSvW4OGdWvQsmM7NHo9EgrGSasNtSqHQkgsHAsNqytTp8Q8GiSh7on38zrDK56ybXJ3pvrDQyIHVBEJ7CcIsVJYQ54gUJkkzPnleGhMZjYoeK1+hy4hdXW4tX4up2KBXNDhQvqM6cgpzEPxG++i9n+rkTrtKMTlj4EpNQ1as5S8DHnc8DU1wV1dBWf5PngqK+BzSFJApngDjBmZLFLFVFlItb25BXGj8pA/fx6CB9jDvccg8zPoJ73eVl1C6h/J/9HaKJMfAG9Ut2CwnRzqpk9UhEb2QYYXQaCmT0IObTTC5IaoL54aqzR602/DvGadOmcqIeh0ImXyROScdCIc+16DzmJF3Q/fo/qrLyFGBZBmXFi+I0YzD3NCAqypqUiedhTbRJP8E+quY81KgQB7eFta4alvxaw7fo3EwnFwlO3rs+geRchoRTXnFC5VKlVRygAAH5hJREFUVlBj2igEW2pUld+JJccQBt+x5GrYEKTXjrsoqzdK0s+SHq02xqDmAH1K1vqI3/NN2NF0ksZkUWV6Y/uIezw46oarUb36e3jrGxCfPwpBrxfhYJApIiZlZCI+NRXmuDgYzGbW0MXs/dgkK5lUtOGP3QFneQVsV/4C4y48F+7qWhVCrZykFp855hldQupKQXbSNRYbtKFEiCqVsA8TcigIxv4xJPMg3UEqP+7BUUUBIcqDyJq2LELUoZyBqZ/ojYi4Hfme3Rv3sfCqSp1sVICYMDof9Rs24b/Lroa3sQWpkwqRM2Ei0nJzYbLa2OdHQiGmHEJkkCK+spiCrCISlfdXTz97ARJPmA1PfQOiPp/SINY7yHugaK0JJXGTjp3AroQsZySJwoWZ70Q/6XOYuUWi3TojNLaEHpOzK3IwrW6eg2HwNhjoDDp5O8K2wTUsCUJXl2eVn928TH4tqxCVo1gMHd8nSoMxUFf+sLd85x1ai3rl1vSZcfl5qPtxE3Y+9xJSdCYkpKYhSi3HEDtvu2XRtjCiXqmM3DRmFBLmHgtzwRhEHC6I4T6Ws7CwNxPKi9omzRqjMVoqWUdgW55GarYK076GFMXS6XtFkGAkyvaj78whH4IE4TozsYYnQeRvw4mRbovbOLmE/sBfs51E7pIN34YdjSeQrq8qniQz8URYsjJYL0jLxi1w7yhGuLEZUbcXYijEfJL2LkAOnF4Hrc0KfUY6zBPGwTKxAJxOi4jd+ZN+loOGnO8gglgLp8/VJ6Z/K3YisUOraNjZLPWy64wHTRAllNtVtGoIEkTuR96/cXDYEkQ6sAANEV7skcHVzbGkMnkhHNK7S34sFgK+0fspD6pwfKra1caRqkoE4RY7Iq0OtiIIfj9EUkbUUHTNCG18HHQpSdAlJ7FS+YjTLZk/ffU5iBzhEPPJLKOnLNInZ37S1qLb8aUaLSJeFzOzqAmNN/WcIIFQlI2yA/kcQ5AgWnn1EDs+OSzBnHaORyAswsx3vZdejyFL/PA6fciUNW6Wd9+OtUI4OEY1SU1ZOCJEe5GQKIHFDD2VxnfoFWFjVS4wjJAWsLJPoArfT0qSakV9UtoCXWL6F+0f2MVbeP6gP7fZHYRBx0Ov5YdqKLcztMvXdMCwJQiBSurrQ4Cf55BiatsZoO8QxSZjet7UiMfxZcTdOotXU0BAUQkJhtijR69XAZTr4I3mElPmmPOFcHAnc9C787UOYoST+ktlsw9anoPFMOyGFd+VJsOQzPX3FGxXM5LaFTlEBL5nka0eQJQqWD3GnIJjtXEpH1OLKauoHW4VrDF9HFpL/H9NWeOm8UbzTjEc7MGbDw5VzX44vWG2cgxDiF21nA9rgkAhCUSEwSPKaRhJ+jyMZVudWnBNOQVnGbPG3EXLExGlG7WvoQO2SvnJfBP0Kdm36VNzFnI8HyCNLLXPv8kVhD8UhV43LIfTAWPlw54gCpieO8cjIgcjVCGJvH+JITX3IfOoiUdr45K/JP0nIRzowQEGD+wcSdTNmvgfY9aYCYakzEeVfVjUXAVDEQE7Kp3sp3F4kgPdKfocMgSBbG75BA72EKdOKTUn7XZE2WbebN1ozhs/35iRf47GZGVCaVRCL+VWBn9FoTJ6Oicigdaa8F9jWt5cQ1rOebzOsIecc9WUR8T2Pvv/FTej0RmExaAZqq1n3aHzfexicEgRRMn0OCOAKyyTRK0ix3CADUCdNfFDU/a42Yb03MVaa/wXrFsx6G/vpRhIyGU05DNRxF5rS3hDF5d8giEle6HGEvetKBNGLdDX0xl4toFOUa0HDk8YcWbdcIpWdUSXzrmCYR3F6gwck+8HXBHKyQDxejmGFyPR3bv7KUefyMFl4ma2FfrE9BViNHp0qKV2SdTnvjga8ObSgGSymbJ0aD+BmkAs4Dgtx+uKtLbEFzXmuHc5naFcCHgkwqjQa8GxSKHALBAdT+wQWbTq2+JW9s8E67Amh7whIg44gxxyBEEMSdwRqpjlmBNPw8WkAQyatv36e08YRpQQU5PXmm0bOD5ngxAJ3SVGo/PFUODKYGP1+Uw9pL8agkSRypu+0loT/qwxmldRgpPX6hl5WbStl81NbSst3/5EQNCA0xrgCWkQiGpQ646gxRPG6BQT7D6V9HgHB92uHjhUCaJAI99xvwAEIiKMGg5mDUebPrBol0QYrvd+q0wUQdrCIapLTP6U4zWfhlobfELQa+J4vcrfSPlYMYnTak28VreK7cZIAYVeJoGkjWW5tgmDDhMMC/CHQ/AGNKgLJiNeZ4DTHYHTL4CHAKueH64+R0d0K/NySBMEbWYCoOelnyKbFTnYAwKMGiDBwDETzMADBnk3Y1DhXjTcs7onOQNPr6WdcdmGQBBbwPE5/falRAG8Rsdzej3LziMQkfrb9T3M+tO21MoqwdNe7wKrSAiEBej1WoQjIlwBaddgCp3TTy0vwqyVatqG9bohQdPTyMohT5COiCUMmVohtrpI/RsWHYcEowgYbdKuVxzkAQ9psiGdb+VvUZCVR6Qef+akK//jeE//TrHs3raw+iy2ASqJPmvBUy8J9bqwBGEEXNu5i4zw7Hw5SRfYT/px9iD8wTArohRlmyNRKzJFeJ2GGrZEaCCok1saeuiRSNhhR5BYKJl48lfIoQ9FRYQiIrTxqdLiIUbZhi5szwo2ENs3vaS/g42V0tFIpodVA0OR6HT3tdPvwCfOVi0v2zRT9pKJoFGvk5l7uoQ06OJTpP+x/hYNWzrDvBZaDQ+/LgFNHhFVLR7YjBok2/TQa+SWsqHbDqsWDmrDqMOaILFQyMIceCW3odWAkxOtytXkRakMnqfCRnre55T2CJf1tYgYUb87KASjfW6H7Rq0g6/Gq4h0s/MLB5mjrrEmQpOYAa01ri08o8z+UalgWNo/ngvCrOdZNe0w6fRTCwflrI0QpCuw7cAU5zVmslG2e9NqoU/LhYhciNTf7ndL+lbs/5pgv6o2SiuIT5BL1zkyp8xx1DrLtoqLKqccI05HyhecLOTPsRbkEfQEIwQ5WLRtQSZXuBEhtAZwkRapB0LyARz9mV0nc0obl+LTJaUDIT/C0IBPyoRGw0nkEJTgwqFtKw0ERgjSVwgiNHodONo2jLS24lIo9OukdlWNtp9kTaNRaMxWB8nzRMRECBoNNGJ7i/EI1MMIQVQA8zSoG9Fp14ZF7hcRV+vpnFqNVp2BRaK0SeRUhCiGoNNIe6toRgwntTFCkF6ibShyXFokFJwSrSufG3I7LhPCwVxyzlm7rmodXLHgoNEb4S/fcW04KTPEjZr8HSupFFHHAbt4lfbzH4GEEYIcBGLDoBERiwRBvFjgsVgUORPtKit4HeBIXojtZqU2OVh4DWLQL0WxrEnx0aTMezQcD56kgUTAHxG/1HDcCxyHNxWijHClbxghSDdok9GSSDFVFHGBIIg/E4CxTC4oKjJZHF3BNEQT0yFU74ZIu/ZSwaJWp4JPwEnJwJBfip7ZksCn5UKTlMH+K4bbpYwiAk6NQDxVw+F+QcSrPPAax6FixPDqPUYIcgCw1QJIjwiMFJdERRwrxpQutScYaKMbHpqUTPBxyYjW7YXQWgv4XFKmXafvaWVDO9huUiGAsuU6A4tScclZ4BNSpfOKyPmamMMq+QwBGB+Nin/kOTzAc3hTy3EvAFg1ENfsUMMIQTpAKl7k4IsIx4ajwnVRWjFEmLjuektoQJP2ml4P7agJENLyILTUQnQ2STkSKvvgtXIpCN+BYUreRe7toDIWrR6cOZ4RjotPA2e1SQtZFF0L4KH9abmETBMVcEmUEy/hgG9EEbcbNNz6sG5YKY4MKkYIIs+8TKNJw6HFH52i03DXmHX8L6n0hOMOUlM2LLDKJc5khjZnHMSMMRDdrRA9dog+F8SAl9VFSQWOYLYbbe0ssMy9XiKEJQGcJZ4RhJM7psWIiN5omCm1loKIk4xabp0nFL3X7Y88kmjRBV3+cHdvP+xxWBOEJGqoBikcFfXesHB2i19Y2uiLnGPV8ZieYYKO55g64MFD2uqXvZMiWokpQGKK5LcH/GA1VLRSRCNMeTBCm9eYLOBMNvDG9vAwWy3C6jj7VHxI32fljqbfV7X4r5mYZXtVy3OvZiYad8WZtIiyOrT+iLoNbxx2BKHVgIhBD19YmOUJiZe6Q9HFgYiYTd1yBg0PV1BAhTOEMYkG+MJ9tEVIkFoZd2RamUzgzdLWaooQbE1FHTKSk2E1UOm5qHoGnDhOvTAl9V4U1Xhg1GmyN5U77zDp+TtqHcEvspOMb+UkGVekWPXNNpMW7kBkxASTcdgQhDaf0fMcjVebPRS92BmMXuqPCHNIFlfDSEMDSbJH9BpgnyOIeIMGyWYtvCFBHTEQYkqkrZGRyeTYW+ywN9TCatAiLiO1X8hh0fPwRwR8W9TCVA/NJLIg8qyCubrVP7+8yTc/3qx9LCvB8P6kHNvbWYnGT5JtOvgDUSVQMVzAtcXDVcIhTRCR9X5wbNUIRKKT3SHxKn9EXOqPCMm8TBqqbhVlcWtp62WRPUcDuaQ5gKOzzTBoOQSj6vZEUM9FOCrC0WqH0WiE0+lke4bodGTuqHN/2feX21pW7WxGizuEFJueKa6L8hYSTJFEZHq61u1VrmVFte5lGXGG3Xmp5jfT4w0fGHWazQlmHUKRKMurDPGQsbanfR4Hc8BDEpwckQpFxTGtwch9npCwjGZMnvV/cG3Vrh3JISomiZZMrQiKGgOYmmmmSG4v/ZHOQT5Bc4sDPr8fBoMBgUAALqcT6WnJ6M1+/52BroFRw2NrlRtbK1xItOiY6IIob/DT9nVEEXotB71Wh0hURK0jUFje7L/XoufvTbTqVxVkWF9OsupeTrBo4fYPWfPLIJNDVUfqkJL9gTxr0spAPoYrJFxd7Q0XO4LCMmoH0mti9seLJUfMexWC0AAy6zSocYVQ1hqAUcupNntSxIzI6nA4WDcfQavVwuVysaYtXoUGDWZa6Xg0ukP4ekcTWynasusdyKFcB6UImLR1iUwU7q53BE/+ekfTv77d1byjosm3XKvhYDFqWHBhCPFE2ZlWPY0jGYccQZifIcJS74283eSPPEt71et5KRUuDY4uVo6Y1UP5nUDmVUmTH9WuEMwqqAcybSkNB6fDBa/XC51Oqvglgvhol1uni/2/L6DvScIKvrCADzbUM5PKpOc7J4fYPkm0/S5KxV1kBpr1GlCUq9UTnvzjHvu/1pa07Kpp8V9qMvCMdEMASn95v8SsDxmCKPc8Ioo51d7wNkcoeoGOfAwO+w3+juQQOyEHYn5nES+Ox9ZaH+rcYTYr9wXUs0Grh93e+pM9Nuhvp8PB/t/b/QeJBDY9z3ymd9fVwu4JIt6shbRHTycrR+ykoEwg2P8aEEx6DVs5Wj3hiUU1rle+2dH0v3p74JgEi445/sLg2F18x11p++MDhj1ESGHMYFTMLbGHNkai4hi9bKZ0Rw50MKvQyYAh+5zKyX+scjOTi0jSm+HbcfXQ6/eXBaK/6Xm32wOd9uA/QSEHmWlvralFTasfSRZ91+SQv1/s74h9Xn6DEPN+RhSDFlUtvjnr9rSu31Da+id6TbJVPxgk4fvDrOr4AcMaCjl8YXHqjtbQZl9ESKPkX6yp1JVZhW7IofxN5gb1bpPJQSSpckrm1sEOYcX36Gz1iIXDbpdK1g9iFYklx9tra1HT4kOKVc+qfPtKDnRccQFQvoSI8mOp/fbnv9i7rarZf3RaXD/2wOwPTnbKhf5umxz2BCFyeMLisUX20KZgREg29YQcnTjk6IIcihkikYRjAYD1lW5UOoKMJPxB5AloJXI53W2rh8gUIEUY+PbAi16ng8fjgdfrZ6/vCRRyhAURb62tQWWLjymVRGOug/KFOieH+BNySBMD9icH2n0VpjREGxfF6VHe6DviX6vKfyyt856dFm8ciG1U9DI5+j31P+wJEhLEuTXeyPcRQeAprCsciBzyew7kc7Q7rB3NMWnAGLQaFgj4sdKNspYATFqemU3dWRe0YtCAbV89OJj4KDwRDRqDehg1UWg4tt0uBEGAvbVVOt9uRhubzSkRGBbwJplVLX62cuznkIsdyIGOKwd+snLsv6K0f7l201Nk50kTR0q8gZHlre8rV2zaa19i1ElRLqmOjev8wfdB0VLSrhuQQrJhmwehmdsTFqZWusPfsEw418OVoxtySE909j7lkwW2klAmemOlG75gBEdkWaHVc/B3kXGn9xp0HFpaXXC73TAaDTBpInCEdShxW+CP8ghEeeRbAojQNgY6PQv5ejxJsFlNCHVS7qKEs01aDs3uED7YWI9mV5D5Ap2ZVYKsMtExWtXxGqATswro+L79/TcSmCOTy+kV8cJX+97hOcydNjrxW9oaoWPRsgKq/WJ7GVp7Jc86YM7OgK0g7TNXHx+ioogo2ort4dW0q66WQ7fk6C5atf9MKnYyYNAmZUJOL+VUTDoO2+s8+K7MyRJsXWnWSpErES2tLWyLMrNGQEPQiF1u6/+3d/UxcpRl/Df7vXsfe3e0vWtLr59QKQi0RpFgwBiECAk2/kNiIiiRxEQ0UfyIiP6jSDAWY9T4h38QDFFAo6SI2vChBrBCKC0tpbW0XO9aetfbu9vbu9vvnXnM887M7jsfuzt3O3fsXfsk09uZnb4z+877m+f5PR/vKwZzPKhhaC6GdzJ6jlYiDBFN5ziJLtYRJhwHQR0cJ8ayeOLVs0jPlXFJV7Qu5wDZfxtcvVXzBodxjF3JXfGwCMI+9tLpF0+NzfV3xUIoVjQxGZ994/l/tWWQG7kky0D7ZZOShOjj6dIrqbx6QyLUXHPIdrgncKA+OGqmV+37TL6CZCyI67cmcUkizLUk1bQMPi0WCSA1mcH4uRF0xKIYyccxko8hBA1hxeQ4GrKVALpDKq7oySMRrCBbVrBx02bE4xFUjExbM8bBbe8/mRZLEURF8C6kp5A0CALKPAMuLws3zoEm4LC3w6bTuakCtq3teOv+Oy6/VtX0NdPtYVbOSmANwuZYO8uiaxDNeOP6sZmDNZVX7x3PqTd4I+Sy/dwaODQJHLL9nowHMVtQ8fyxNE5NFJAI6TMWkrEWOGes52cmxbSf72Y7MZKLI6qoAhz6G1i/UEdQw0wpiDcnEkiXI4iihNlMuuoIMPkGD669B8/jn0cn0ckBu1iwITjsHiq4xD/8AAeJ4krCmmQUR0cy1zx3YPTHEcHRAgiFFOsW1B0e7S6LrkFE875kwhorohElDk0U01zDoedUNSDkHswq09KwE/LqvUvgAMgdVMayZPlSRcyQvmNdJ3Zu6BJBSnbS52encfL0+xgu92G6HEIsoIpZDk1w2K9XqOiEfltXHluSKgYGt4gkRiaMqbkS/vFWCmcncujriuipq41cuTbO4cWViyZmlf2lZAGUmLWVkCuq4vgXPrmpvzMeHp/j4iwDEEzsGfRXbkgKLdLOsih3Z3aWotcL6RV7rW5GO6NZdU+2rDUGhzECFgKO2jnewQFjnXDWGpyacfjsLP52JIVUtiIG9Xvn53BsthuZckh4rmptag7Tj49HgyQ8Wsen4zhwTkMxOyPaeWMogz+8+j7OTxewqjs6b3C4kXO/wUFGSk88GsRMroz/HJ/4RU8ihEQ0JOYC5o0X/OyMhZbFktGLp0F8Ni25K4sqDRxKFUa5biOotBYhh+Nh1zerGoHDboqYg20mr4o4ybqeCM6kS2ArPKxoEvhqJNVp1uj/sBaZK6gY7A0hGgnjyJlZEckWeVUq6VEyH4OAaAKOemaV8XOk1BX9b6GopyX/8M4dm/o6o8OmNWHmeS0HWRSAqKSv4uSfKGKJgqGZ8uMjM5W7OkJGCLWe5lhCcNRMOdtgZWc9r9RU0cSgDlgGa2NwyAOTfzuDpKyqYK8QX1GkfrQ5OIRJDIVTUnDrtf2/3n3d+vvSc2KxUVRUDWv74qJfbGIe8LWmoxXxHSD81qto8gNuXUR5bIU2HZ0sDimok7LuMzhqg8weULNqDk0j53H7AKL5g8PtemR8aBfNAcmssoPDvI9sQeUKxvxXbt3aF48EC/miKtzeg6sTImAoSUhaVNPfQdmC+G4Emh1bN4K6gI3Vcbqg3l+skJGda1wL1je2Z3BIXhxIf928VfbfZrme/XuzCetJ0gBtDg6r182a3gEp+cgVHGgdHHAcd4Kjen8SOGB5OaAae2EtMT5diA+nsrs5/YU9WL0dETs4zFm+y+0EDixGJJ3f9gEfSzO5H8sadaTylS+ymaW5cQ64P0S7OeTmrXIDBxpoDri8bSFpIOugt4LDoSls++K6svnk0HZ2sNv5lhMQzcChmX3nk1klazDdzNIXTH17OHP3toGuJzPZMvqTserjlYqd2sasksV3gKSLqjCx/FJNrD0yRfVLhQp1ho2AgN3r1Awc+gF3b5X0pSvngItZZTVFbCCqY1ZZBpArOFAfHJJ2YHcy14fP5svCc6YYJi1LN0eyQ4pu9slmWQPNUQ8cbpqj2iVNwGF2gqmFO+MhvDc2d8vIRDY5uCqRiencIyhN7NK2MXXfAfLedAmZsoaov16Kf4UDyn4Qrm8Xb5UriMwdTTbhvJhV+qI3Fi1g/6xPRycmXohHFOzclMS63phwlRZKKs5M5nF4OCPO7U1EuHBsSQm5DA6SwEGiBiaAsXQ+UCip9wyu7vi5RMbbfuY630n6oVQBs7ycsN9uPP1BfYcIj1SJrPnVEhBy59vWm+bw5K2SAeGmOTiFQ1EwPlPEpX1R3L5zAG61F8OpLJ7afxaFkiZqNZxcZOERcoI5Yf38wGH2ybmpPG68cs27X73tsu21zm9/8Z2kK4u0GfJTAq4motfNA35oDvJgVjnAIZ/XAjjIAzhYprNlrOmO4O4bB6vgyOTKODA0JRICWTau7sDdN21EJl9CuaLVeE2L4NA7DvXBQY3BQSKbOfjG5Gzxy7XOXx6y7NLdFeAIAdcR4UcEPNiUkAOOwe/VrKqebSPktcFBLgCCI32kHiG3tO/2xpba5IS/m68aqHp/Dg2n8fjLQ0hny1jXG8fXb7kM4VAAfz80KjxHVe8SFKvnaQGco5kr19LfLuAg4GEieiASXH7lR8uzHkSfpOQHRPRHIjwM4DY/CLlDA7mAw+6tctMcDk1h2wc8EHLpPgqlCvp7ItiypkPsp7Ml/O6V0+I3rEsmMJYuYM9zJ0QwMTVTwo71SQSqa3g25xxWTTtPcJATHGb/gLCPgO8BOOjvAFg6WdYTxynAYQJuJ6LdRHiIgB2wPOz6ZtVCCLmdc+iNLwIht4CdkxdVbOiIVevYT4zOijyn/u44br6qH+t74/p8uiAxW+O+Q2PQlAAiIvCuLCohd2gOff84CN8H8OflvtbuSplZ8RmxEb7BqpyAVV7B4ZmQQzrP9rklQt4EHGTERmQpiwspoujoE9tXCdPKFOYefz1wTizxHgoGq797vpxjQYScMAXQTwDswXJHhiErbeI4diFuI6KHiDDn5q1qBg6Yb3g3TlOHH/hJyB3gIIjaCSbkpmxe1SHq4Lme4oUj43jx7XGMZwri28m5Esoaz6Or1cyfxQdHlnkGQFsZHCtpybcVN7MiO3cAPAjgMgC/EqtsePBWyfuwg6YJIV9Q+kgdwFXbl9JHOD2c57g6b4BgfV8Cn7lmLaayJTzx8jAe2XscwxM5/f9yEZZG1tJbm4PBKyGH5fe7goNjlb8BcLkCPMDONp+f5QcuK3l29zEAXwNhDxHuI6J7AeqeDyF3A4ddczQn5A3SR+ppDhtwxHxaKrDvrfO468aN4rQ7PrIem9d0YiSVw+ruKK4e7BHHOZrO9fGhgF6XETDrfj1qDi+EXCNtDsBvAfwSwNDiPsYPVlaiBrHLaQDfArCFCPcT4ahjgLoQck3zaFZRI3DYvFXkARxwAZEGsWzBkZEZPLn/jEgXZ/nwhiRu37UWH9vWV63Me/bA+8iXVRG91m9Oq7bZKjiIcIxA3+a+BPDNlQ4OXEgL6CjAJAGPAniUiO4gwj0EfNaNkJuy1N4qaSA6PrM3aiAZxevvTuHsZA67Nvdg46oEOK+JyTofe+3UJN4+k8HanrjIepYcTa0mHu4F4TGAntH7UoHUMytaLtQ1Cvca2zYQ3UmEzxHRLof5JXu0lsJb5QKOmoOBxNBc35vA5EwBf/rvWYTDeikAry2YK1SE1tjQm0AwEKjOItJMczjAUeuDgwT6CwhPsWd5qR5Mu8mFvsrtSQAPGdt1AD5PhDuJqL8eIZcOeweHm6kmt+8KDpLalcFFop6C56Di6HpZ1RAPAn3xCBQloM9maLzlzf9f16wih+YYB/A0EX7Pswot0TNoa7nQASLLa7wR0XcBfBrArUR0MxG2m+CwmB4NvFV1wWE342zeKqvmsILD3Nf/6svK8TSorDWq3jYDmUr1HtzvAwbnMH7RCSJ6AcA+EPhvbqk7vp3lIkCcwr7UZ42NZRdAnyLCTZwDBsJqT4Tcg7eq1elAObIeMMEASVM0AAcBE6Txy4D+DeAlAAc+uK5uf7kIkObyJm+Kgp9BQ1wDriXg4wR8FISdRPQhqxnjnZC7eIlqWqgJOCxtkhUcNs7xPyI6SMDrQkuSyIvKA1gpwe5FlYsAmZ/kFd02318bptgI0OUEXElEVxCBP28monVECM+XkNu1iMcZDznMPkrAEAMCRMcIeAcCHBhu6x5tc7kIkNZl2NieN1syBvEAgEs54ZaD32KfaA0R9RLQS4QuAiV4rVBeZJaIRAmqMeh53HNRYAmgHBFyRDRLeqR6iohSRBjlOiRAbGcAnK9SkYuqwR8B8H86RKKd6+HeKAAAAABJRU5ErkJggg==",Ej="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAMh0lEQVRogc2Ze3RV1Z3HP+e+b94PwiOEBBJe5dFSFcgwUCIKGBwBS1tQKTIVpJaOrdrpdGbNLKxtV7us4mjBwsioTGd11Y71D4sGtVQEy0NQkLchhEQgidzk5nFv7vOc/Zt1Tu7NACtA7g1t57vWWffec8/+ne93//Zv79/+bU1EuEGYCFQCU4CxQAlQAGQkzIeBNuAC8AlwGNgPHLsRrx+okPHAMuDLwOQ0bRwFXgN+A5xKm4kpJI1ruoi8Kjceps3KdDil2qBYRLb+GQRcia2Jd/1ZhKwQka6/gIgkAol33lAhz/8FBVyJX/aH4/WCXQPeBm5POwhvDHYA8wB1VaLXEbIPmP5XFpHEB4npvU/Ctms0fPf/kQgT0xKc+sTVPLIZeDDdNx49epS9e/dy5swZurq6sNvtVFRUsGjRIsrLy9M1m8QLfXLrI3C+lm5U1tTUyLz588XldktiCFx2ud1uefLJJyUQCAx0Alh6vVkrV0T0VK1Go1G5//77e0nnFRTIsOLiy67hJSXi8Xqt/8srKuSuhQtl27Zt6QoxRCTvWrPWb4GvpuLnhoYGqqurOXXqFAWFhWRkZGAYRp/P2mw2dF2nvaODWCRi3Xvk0UdZ//TTqQ8wePVSrpcKmQAcT8XS8ePHmTFjhhUHJSNGoJSiv7mbGTfBYJCO9nYe+973eOrnP09NRg8mJTlfKqQGuKO/FlpaWpg4cSJ+v58RpaVWT18J0wPRWIxWXxuIgdObwdCiQb3Pmv+HQiHa/X5ef/117rrrrlSFvJXknBRiptznUrFQvWAB22tqLhNh9nJHVwCHw47Dbqf14kU0h5OqGdOorp7LW2+8zY7391jeSw4/s8358+cpKSnhTF0dLpcrVTGlFvdEsDyRSqTt2rXLCtrCQYN6A3pEaalgd8roigqpKC+3/l+x9Mvy7qsvi5w7KiIxqX+/Rhwut7g8XikZUdLbtnj4cOv5DRs2pBP4PzI1JBfE+1Lpgnd37rQ+PR6P9elwODjf1ExhXg6P/8MDzJ85nW0vb2TrS89RNbeKaDBI16E/MWrqFP57/Y+IRcIEgiFraCWh2Wz854svYvQxRK+Dey0OwBggpVXKDFITZnCbQ6Plog9Ripr/2sjUSeOZN7OSovGjCdadRTcMi6TYbHTXnWXp6uWcOF3PE89usoagx+227Hi9Xi40NdHR2UlhYWEqdEzuY80uqUq1Cz5tbLQ+zR7t7AoQj4SpeekXTF2wBAoKKKoYScfp+l4RJkyhXrcLDOGH//4c//TQN2jz+QiFI5Yds0PMWEt2UoqoMj3yxVTadHZ28t577+HNyEDXDQKdHWz62TruWLGM91/ZSmtnJ4Py8vjcuNG4nA6UbqBpGk6Ph+On66l964/k5OXy+A8exu318sT6jUh+AVmZmTQ3N1N35gxlZWWpCrnJDPQ/9DeqlFKyefNmKzCHDB1qff7rdx4SMXyyZvnXpLy0RPKys6RyymSJ1R0Udf6Y+A/tlMDHu0S6GmXdww/K2FGlMm3yBHno/mWin/lQfv/yRiv4i4YMseytXbs2nYDfYUtMvf3GbXPmMHPWLFp9PkaXj6J8+FC+vmQlHx44yN3zb2XZ392Gxw6bf/07tLwc8kuKyRo3mvpjJzl9pp6pE8cw90vTaThdy+KVaykqzGfh3Cp8F30MHjyYxYsXpzO0ih2Jkk2/YA6RitGjicXj1joQDof5n23bWbRgDhvW/5SPTpzFZjcDWFi1cg1t7R3MvfMO4oFO/nndz/jSrVXMnT+PI0eO89N77mP/gf08veEFjtadNYOI3IICbr89rT1cHom9cUpY9eCa3gRxx0vPWk1r6xrksX/5iUyZfodc+PScSPMJ6//ioT1D5pkffNt6bsk9a2T5yjVy+ERdzyvrD0huVqb1zLzqalHpDCyR9rSE+BtrpXH/drl77q3y5HdXWfe+9dg6mTa1SpzuInlg1cMi0VZZPLtS/PUH5d4758nOV7bIJwc/sAhXL1gq1YtXiIqHpe3AOzJpTLls3/KM+I7vl7hhpCOkw4yRSKp+zLfFKZ02lWmfn0Bji8+6N2XSeD44sJN41MfSryxi31tvo9DIH3Uz48rL2L1nP2M/PwFndhk1b76CLqA5PBw49DE3TRjP/K8uZpBLwx4LpzO0Io5EGXNQKq26OjrJUVFGjijmt2+8DV0NrF65DImGcLg9zK26iS+Mn8wj31oNegfL7/0KC5Z8nZWrVnJ435u8+MIW1n3/u5atd/Yc7FnNzdystZW8IVEcnsxUhbSbHjmfaitHZg6dTU0sW7aEylu+yKyZ1Wx56nFmTCphVJGdypunM2v2LFY+uAL/O9spnzCORx75NtNnzqfx+H4ef3Q1jScO8v019/Hm7v18Z+0DxC9exOHJwJ6RkyodE01m9vs88FAqrVQkRPuxPWS4HXiLS3jxpV+ze+8Bq1ajxWPMmTObFd+4h1DjOTouNOHNyyW/chY73tjGpvUb0bweRAl52dn849oHGDu+At+pU+RMmIZ70PB0hGwyhawG/iPVlirSTbD+GESC5IwcaeYrEAhCdiYEuzFcmdgLC8xsED0SpXnXn8hs/4yCBfMInmvC7XLiLB4GFz/D3xEgs2w87sJh6YgwscYUYiaNtelaCJ7+iFhbC47MXDQNHBleOhsaOflqDTnlo8ktLqartpYPn32OUXfexu0bnyLc/BnmNijS5ceZW0TWuFusNWoAGJfcWJ1JNQNOwoh003lkN5rdgc3lQdNsuHJzOLTheVr/sJuiIUOwOezkVk6leMlCq3RpxGIY4W5sDgc5k2dic7oHIuKsyT0p5Ang39K1FOvw0X36EGIY2DxeNJuDzKGDMbqChJpbsGV48Qwfhh7sJtbejugR7BnZZI29Gbs3ayAiTPzY5J4UMsLMzgdizQgFCJ+vIx5os7yiOV3YXE40lxPRDVQkhsQiYLfhyh+Ct2Ss5cUbAGurm3bx4aqCursIfXoKIxxAc/zf/lviUezZ+WSOnGgNwRsEs8A+nytqv4/dCNv2zBwcuYNQ8ehl95Uex5mVdyNFcCnnS4WcSBS9BgQjEkL3N6Np9ktUGBCLYISDfZfS08PvLj1IvbLSmJdIWa5Vpe8TcSVW/mTOYkZTHQTbwYhbab2h2bFl5aMNKsGWXYAmkOEY0HRrkjY39u1XE2JiaeKE9boI6YrzXToOG5TmuojEFZrDZq6BqO5uJNRl7VtcuYWI12uZUzGDDJedzrDO/lo/FYMzGDMsixRl3XMlx6sdK5gr/eqrWTF7v74zTmtIJxg1rMLClKEZDM1y0h1XCBoup0YwBi3NzYwsG4amwNAVHqcN0xnbDl9k96k2slw2irJdjB2Wxd+OK8TtvO5g2NIXt2udWJnFq9lX3owYwtHWKIGogUuzDNAdM9ANxc0lWQzJdBLSBadD47OmJi62NFFWPoasvFyr9mRGzo4Tbeyr9ZOX4bAqLR1BnY7uGIWZThZNK2ZyWe7VOO3qixPXiYWqxHFXL6KG8LEvQjiu8No1q0oZN5TVw7ou7KnvpMEfsca/XY9Q7wtTHy3E19aOOyFi+xEfez/xk+2xYyiFYQgZLhvD8tx0hmI8s62Ww2c7+uJz4Fqlq+udIdoSc/Vt5o8T/igtQd0SYXrAMHqIGEqsbLY7ohOOKW4qy0aPhDj4aYSIuMi3h7ilPJ8TLTE+bmi3PGG+V9cT7Q1BVwolQmtX1ArlH983iRyvM8njj8DcgRyGJrHJHzHWHPFFcWk9xC0RqoeEMhK/RYjFlSXI3B2antKUQUTX8AcihKI62W67lVyaPRRPClHK8qzVIQK1TQGWzy5l4VQrpTePAb95PYL9nWa/6Q8bK+O6CqqkCONyEbo5/eo9p0cuhw0nYk0CcbO3dd2aqe6cMphbynPNYzIiMaPXE0kR5mV+z3Lb+ajO361E/r4/IlIRYp64b9WQ8bqufqVbBHpE6AkRyZ7tEaeseq45S5nPtgaiTK/II8trQzTF8AIPgbBuPa9fIsISpiszHftVKGqMM5S83F96/RaS2C5cEFihlPyNMtRrvSQujZfkd9Uj1hTisGk0+LoR0RgzNJuYYRCN65eJ0Hs65TUlaoZSrHA6bBdSWVvSSj81jX0IS5TI5wxDlhmG3G0omWx5wAzaXmImSYNMl42T5wNW7BhiUN/STZbHmfTmMaXkNVHyG5CTmrk0prHoDzSPPqlprBNhnWHIJEOkUimZoutqrK6k2DBUvqGU15pinfbw6aZgeyyuN2V5HLVK1GGF7APpyZdM8ukmYsD/Ah4wycKHYT3IAAAAAElFTkSuQmCC",Pj="data:image/png;base64,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",Yj="data:image/png;base64,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",vA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJdSURBVHgBnZS/cxJBFMff2wM9bDxLK+EPcEJtI7GwNf4BDkmldrRWYGmVYCGx0xn7UNsAjW3wLwA7raBIjoO73ed3944ICYdMdmZvd2/3ffb92sf0n/buj9SVUM3ODVPfGBp8eMjjvPOct9EYScCKeujVa1ujMKFnp5XN0EIeMIrNCXlqj8RdK4KR0+vLmPcwVmhXDQ/PJTBFmaQERxQgeUm0zZhk/9vjYn8nDacJVT04jB3MXcuUrtIfYheFPcx2A0YRkfJSuauv5TkQPtAU9wWbZNeAT75L9U6RxhcJNpLMealXJEM6WGYz13oSLGIq/3jOw43AWMt5rM2RJN6YiyzWzjQazuTUjynV/RbRNaW8M1qJxRowXOCggblWJZ0pRsvA0MpcgLQrLzAs+SaHkbAFkkdTMhCymjijnUp8Za51BfOEcCkr2ga0ycrVkqFu6PEEYg9k6UrnzKU2QkrxT23MgWI1WmWs8S8X1L2cc318xNNwZj5iLuGcaAbNZxjdPO3j36+4DwVehJEZ5ALnmr4kmoK7n+T44rXXimNqa+RHDNNiRB576DyMNe/7HWlqQ+VYq/erjBsvpfRZN8TwMXx0An+38auM/jTbHvg+DaFhE05tQLwVveXtQNv8TnII5ZtG6L6neAA/Dl2tIXqE2ByktnFr/obb12Vzqw1MKhPpGiTrAFYR4ABjF8nXL91TX6fwM922+R3d8jtmtMvZAu3UlPyrFNtbrsmlUzkzIgEy2D6LCg4GoA5tpmPNvs8vN5mdq6ENBF5IOasNv8RlmMGbUa7SoiLZanMD+BffNCuVbxy3eAAAAABJRU5ErkJggg==",Gj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADFklEQVR4nO2WTVLbQBCFe2QMlFlgFknwCnICzAkwJ4huELkqUtihnABxAsSOyFTZOUHsE2BOgDkBsDKQBbBIisS2Jq8VCUZGNhKYyoavqmt+pOl+7pkeS9B/5lXAiwrYqHeX/b7YRJjrwtT0rltduMZ0jBcRwIEHPW2LSBp0T6tmLepoY0xUgF2/Kv7q/9mUUjoUIA+JcjbRwEWoFQhYwGQMAXs2SmAbwyIHzgly9sxSm4DpddsEalapQkMI2JN5LHDExAWkDRxheueS35mIAGv/8qP0fRfdIpyeCU2zvU/vmhjfYXo/1mrWm0N0A1iAEPKbZ5YMGkLAUhEGdohomQMTkYNf1KAhTO+ijudGTsj1KCOBACm3vc8lh4YQsLGkDcwgkItmU/21pndZJvKPMgvIEpjBQTPgrk5D9b5R61YGUhwIQV88c9HFVAwBixEu2EG3DLuBcjdJuUoUHM6OC/mZinrjhf4O1C1RwZp7ov2jMHBhetZVnSUxLjhj7V/o0pffUwrgcqHWXH7GGHaURLi/B3BylhScsb52HSnEVkoB3VNMLWGySZrWLOTyrSSnTBQcXbyuVWrW2w4lEAnAucB7D4lN8p+I3ydHSqFjOA9jOrBGLi9be9XSKQG+iH72fp+gi/WjgzOZBKjw3pH09bgYWeVKiJyOSqsKstpGmLXMAlRYDErSxuuBozsBefk+ysooWIAgUfSsxTKGD0glgIEjA6/X+Vf7JMpS0g7302WACJmrUAIClgo+H4OeOEF5bmsatcfVtgoq6wpbd/xsAQycXcNZh51ZtXO7MDXTuO3fln2RWxpVMVgj0bSwdTraB2QV0ETD5yD4skF6Dbio0z86qAgc0nhFYI3krI26TTMJiA4fAq0KTS7zDQcHx/DSwJlwCOnBs/VIhLptExEQXj5HWNZALB12M5efLXPqw2dtwmQkIvofmJgABiltovmAOGf44NQ5EMYBioh5PK/iK+mUBYw7rAKWGU7tqPrnZ35PNCXRCoYdWBkZWVWFqjxJwGOEV3WDgkzRLg6tjTaRFxGQhVcBfwHJ1ugwiHKPWwAAAABJRU5ErkJggg==";function Xj(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var IA={exports:{}};(function(t){(function(e){var a=typeof window=="object"&&!!window.document,l=a?window:Object;e(l,a),t.exports&&(t.exports=l.Recorder)})(function(e,a){var l=function(){},n=function(K){return typeof K=="number"},i=function(K){return JSON.stringify(K)},r=function(K){return new J(K)},p=r.LM="2024-10-20 22:15",u="https://github.com/xiangyuecn/Recorder",s="Recorder",c="getUserMedia",d="srcSampleRate",W="sampleRate",f="bitRate",S="catch",h=e[s];if(h&&h.LM==p){h.CLog(h.i18n.$T("K8zP::重复导入{1}",0,s),3);return}r.IsOpen=function(){var K=r.Stream;if(K){var T=z(K),q=T[0];if(q){var R=q.readyState;return R=="live"||R==q.LIVE}}return!1},r.BufferSize=4096,r.Destroy=function(){Y(s+" Destroy"),Z();for(var K in m)m[K]()};var m={};r.BindDestroy=function(K,T){m[K]=T},r.Support=function(){if(!a)return!1;var K=navigator.mediaDevices||{};return K[c]||(K=navigator,K[c]||(K[c]=K.webkitGetUserMedia||K.mozGetUserMedia||K.msGetUserMedia)),!(!K[c]||(r.Scope=K,!r.GetContext()))},r.GetContext=function(K){if(!a)return null;var T=window.AudioContext;if(T||(T=window.webkitAudioContext),!T)return null;var q=r.Ctx,R=0;return q||(q=r.Ctx=new T,R=1,r.NewCtxs=r.NewCtxs||[],r.BindDestroy("Ctx",function(){var P=r.Ctx;P&&P.close&&(g(P),r.Ctx=0);var N=r.NewCtxs;r.NewCtxs=[];for(var X=0;X<N.length;X++)g(N[X])})),K&&q.close&&(R||(q._useC||g(q),q=new T),q._useC=1,r.NewCtxs.push(q)),q},r.CloseNewCtx=function(K){if(K&&K.close){g(K);for(var T=r.NewCtxs||[],q=T.length,R=0;R<T.length;R++)if(T[R]==K){T.splice(R,1);break}Y(H("mSxV::剩{1}个GetContext未close",0,q+"-1="+T.length),T.length?3:0)}};var g=function(K){if(K&&K.close&&!K._isC&&(K._isC=1,K.state!="closed"))try{K.close()}catch(T){Y("ctx close err",1,T)}},A=r.ResumeCtx=function(K,T,q,R){var P=0,N=0,X=0,Q=0,$="EventListener",ot="ResumeCtx ",at=function(tt,nt){N&&it(),P||(P=1,tt&&R(tt,Q),nt&&q(Q)),nt&&(!K._LsSC&&K["add"+$]&&K["add"+$]("statechange",et),K._LsSC=1,X=1)},it=function(tt){if(!(tt&&N)){N=tt?1:0;for(var nt=["focus","mousedown","mouseup","touchstart","touchend"],bt=0;bt<nt.length;bt++)window[(tt?"add":"remove")+$](nt[bt],et,!0)}},et=function(){var tt=K.state,nt=b(tt);if(!P&&!T(nt?++Q:Q))return at();nt?(X&&Y(ot+"sc "+tt,3),it(1),K.resume().then(function(){X&&Y(ot+"sc "+K.state),at(0,1)})[S](function(bt){Y(ot+"error",1,bt),b(K.state)||at(bt.message||"error")})):tt=="closed"?(X&&!K._isC&&Y(ot+"sc "+tt,1),at("ctx closed")):at(0,1)};et()},b=r.CtxSpEnd=function(K){return K=="suspended"||K=="interrupted"},v=function(K){var T=K.state,q="ctx.state="+T;return b(T)&&(q+=H("nMIy::(注意:ctx不是running状态,rec.open和start至少要有一个在用户操作(触摸、点击等)时进行调用,否则将在rec.start时尝试进行ctx.resume,可能会产生兼容性问题(仅iOS),请参阅文档中runningContext配置)")),q},y="ConnectEnableWebM";r[y]=!0;var I="ConnectEnableWorklet";r[I]=!1;var L=function(K){var T=K.BufferSize||r.BufferSize,q=K.Stream,R=q._c,P=R[W],N={},X=z(q),Q=X[0],$=null,ot="";if(Q&&Q.getSettings){$=Q.getSettings();var at=$[W];at&&at!=P&&(ot=H("eS8i::Stream的采样率{1}不等于{2},将进行采样率转换(注意:音质不会变好甚至可能变差),主要在移动端未禁用回声消除时会产生此现象,浏览器有回声消除时可能只会返回16k采样率的音频数据,",0,at,P))}q._ts=$,Y(ot+"Stream TrackSet: "+i($),ot?3:0);var it=function(Ot){var zt=q._m=R.createMediaStreamSource(q),jt=R.destination,Lt="createMediaStreamDestination";R[Lt]&&(jt=q._d=R[Lt]()),zt.connect(Ot),Ot.connect(jt)},et,tt,nt,bt="",Wt=q._call,yt=function(Ot,zt){for(var jt in Wt){if(zt!=P){N.index=0,N=r.SampleData([Ot],zt,P,N,{_sum:1});var Lt=N.data,vt=N._sum}else{N={};for(var mt=Ot.length,Lt=new Int16Array(mt),vt=0,Ct=0;Ct<mt;Ct++){var kt=Math.max(-1,Math.min(1,Ot[Ct]));kt=kt<0?kt*32768:kt*32767,Lt[Ct]=kt,vt+=Math.abs(kt)}}for(var Tt in Wt)Wt[Tt](Lt,vt);return}},It="ScriptProcessor",ut="audioWorklet",_=s+" "+ut,dt="RecProc",At="MediaRecorder",Zt=At+".WebM.PCM",Nt=R.createScriptProcessor||R.createJavaScriptNode,ft=H("ZGlf::。由于{1}内部1秒375次回调,在移动端可能会有性能问题导致回调丢失录音变短,PC端无影响,暂不建议开启{1}。",0,ut),st=function(){tt=q.isWorklet=!1,C(q),Y(H("7TU0::Connect采用老的{1},",0,It)+B.get(r[I]?H("JwCL::但已设置{1}尝试启用{2}",2):H("VGjB::可设置{1}尝试启用{2}",2),[s+"."+I+"=true",ut])+bt+ft,3);var Ot=q._p=Nt.call(R,T,1,1);it(Ot),Ot.onaudioprocess=function(zt){var jt=zt.inputBuffer.getChannelData(0);yt(jt,P)}},gt=function(){et=q.isWebM=!1,k(q),tt=q.isWorklet=!Nt||r[I];var Ot=window.AudioWorkletNode;if(!(tt&&R[ut]&&Ot)){st();return}var zt=function(){var Ct=function(Tt){return Tt.toString().replace(/^function|DEL_/g,"").replace(/\$RA/g,_)},kt="class "+dt+" extends AudioWorkletProcessor{";return kt+="constructor "+Ct(function(Tt){DEL_super(Tt);var Rt=this,Vt=Tt.processorOptions.bufferSize;Rt.bufferSize=Vt,Rt.buffer=new Float32Array(Vt*2),Rt.pos=0,Rt.port.onmessage=function(Kt){Kt.data.kill&&(Rt.kill=!0,$C.log("$RA kill call"))},$C.log("$RA .ctor call",Tt)}),kt+="process "+Ct(function(Tt,Rt,Vt){var Kt=this,te=Kt.bufferSize,ae=Kt.buffer,ee=Kt.pos;if(Tt=(Tt[0]||[])[0]||[],Tt.length){ae.set(Tt,ee),ee+=Tt.length;var he=~~(ee/te)*te;if(he){this.port.postMessage({val:ae.slice(0,he)});var Xe=ae.subarray(he,ee);ae=new Float32Array(te*2),ae.set(Xe),ee=Xe.length,Kt.buffer=ae}Kt.pos=ee}return!Kt.kill}),kt+='}try{registerProcessor("'+dt+'", '+dt+')}catch(e){$C.error("'+_+' Reg Error",e)}',kt=kt.replace(/\$C\./g,"console."),"data:text/javascript;base64,"+btoa(unescape(encodeURIComponent(kt)))},jt=function(){return tt&&q._na},Lt=q._na=function(){nt!==""&&(clearTimeout(nt),nt=setTimeout(function(){nt=0,jt()&&(Y(H("MxX1::{1}未返回任何音频,恢复使用{2}",0,ut,It),3),Nt&&st())},500))},vt=function(){if(jt()){var Ct=q._n=new Ot(R,dt,{processorOptions:{bufferSize:T}});it(Ct),Ct.port.onmessage=function(kt){nt&&(clearTimeout(nt),nt=""),jt()?yt(kt.data.val,P):tt||Y(H("XUap::{1}多余回调",0,ut),3)},Y(H("yOta::Connect采用{1},设置{2}可恢复老式{3}",0,ut,s+"."+I+"=false",It)+bt+ft,3)}},mt=function(){if(jt()){if(R[dt]){vt();return}var Ct=zt();R[ut].addModule(Ct).then(function(kt){jt()&&(R[dt]=1,vt(),nt&&Lt())})[S](function(kt){Y(ut+".addModule Error",1,kt),jt()&&st()})}};A(R,function(){return jt()},mt,mt)},wt=function(){var Ot=window[At],zt="ondataavailable",jt="audio/webm; codecs=pcm";et=q.isWebM=r[y];var Lt=Ot&&zt in Ot.prototype&&Ot.isTypeSupported(jt);if(bt=Lt?"":H("VwPd::(此浏览器不支持{1})",0,Zt),!et||!Lt){gt();return}var vt=function(){return et&&q._ra};q._ra=function(){nt!==""&&(clearTimeout(nt),nt=setTimeout(function(){vt()&&(Y(H("vHnb::{1}未返回任何音频,降级使用{2}",0,At,ut),3),gt())},500))};var mt=Object.assign({mimeType:jt},r.ConnectWebMOptions),Ct=q._r=new Ot(q,mt),kt=q._rd={};Ct[zt]=function(Tt){var Rt=new FileReader;Rt.onloadend=function(){if(vt()){var Vt=F(new Uint8Array(Rt.result),kt);if(!Vt)return;if(Vt==-1){gt();return}nt&&(clearTimeout(nt),nt=""),yt(Vt,kt.webmSR)}else et||Y(H("O9P7::{1}多余回调",0,At),3)},Rt.readAsArrayBuffer(Tt.data)},Ct.start(~~(T/48)),Y(H("LMEm::Connect采用{1},设置{2}可恢复使用{3}或老式{4}",0,Zt,s+"."+y+"=false",ut,It))};wt()},w=function(K){K._na&&K._na(),K._ra&&K._ra()},C=function(K){K._na=null,K._n&&(K._n.port.postMessage({kill:!0}),K._n.disconnect(),K._n=null)},k=function(K){if(K._ra=null,K._r){try{K._r.stop()}catch(T){Y("mr stop err",1,T)}K._r=null}},Z=function(K){K=K||r;var T=K==r,q=K.Stream;q&&(q._m&&(q._m.disconnect(),q._m=null),!q._RC&&q._c&&r.CloseNewCtx(q._c),q._RC=null,q._c=null,q._d&&(E(q._d.stream),q._d=null),q._p&&(q._p.disconnect(),q._p.onaudioprocess=q._p=null),C(q),k(q),T&&E(q)),K.Stream=0},E=r.StopS_=function(K){for(var T=z(K),q=0;q<T.length;q++){var R=T[q];R.stop&&R.stop()}K.stop&&K.stop()},z=function(K){var T=0,q=0,R=[];K.getAudioTracks&&(T=K.getAudioTracks(),q=K.getVideoTracks()),T||(T=K.audioTracks,q=K.videoTracks);for(var P=0,N=T?T.length:0;P<N;P++)R.push(T[P]);for(var P=0,N=q?q.length:0;P<N;P++)R.push(q[P]);return R};r.SampleData=function(K,T,q,R,P){var N="SampleData";R||(R={});var X=R.index||0,Q=R.offset||0,$=R.raisePrev||0,ot=R.filter;if(ot&&ot.fn&&(ot.sr&&ot.sr!=T||ot.srn&&ot.srn!=q)&&(ot=null,Y(H("d48C::{1}的filter采样率变了,重设滤波",0,N),3)),!ot)if(q<=T){var at=q>T*3/4?0:q/2*3/4;ot={fn:at?r.IIRFilter(!0,T,at):0}}else{var at=T>q*3/4?0:T/2*3/4;ot={fn:at?r.IIRFilter(!0,q,at):0}}ot.sr=T,ot.srn=q;var it=ot.fn,et=R.frameNext||[];P||(P={});var tt=P.frameSize||1;P.frameType&&(tt=P.frameType=="mp3"?1152:1);var nt=P._sum,bt=0,Wt=K.length;X>Wt+1&&Y(H("tlbC::{1}似乎传入了未重置chunk {2}",0,N,X+">"+Wt),3);for(var yt=0,It=X;It<Wt;It++)yt+=K[It].length;var ut=T/q;if(ut>1)yt=Math.max(0,yt-Math.floor(Q)),yt=Math.floor(yt/ut);else if(ut<1){var _=1/ut;yt=Math.floor(yt*_)}yt+=et.length;for(var dt=new Int16Array(yt),At=0,It=0;It<et.length;It++)dt[At]=et[It],At++;for(;X<Wt;X++){var Zt=K[X],Nt=Zt instanceof Float32Array,It=Q,ft=Zt.length,st=it&&it.Embed,gt=0,wt=0,Ot=0,zt=0;if(ut<1){for(var jt=At+It,Lt=$,vt=0;vt<ft;vt++){var mt=Zt[vt];Nt&&(mt=Math.max(-1,Math.min(1,mt)),mt=mt<0?mt*32768:mt*32767);var Ct=Math.floor(jt);jt+=_;for(var kt=Math.floor(jt),Tt=(mt-Lt)/(kt-Ct),Rt=1;Ct<kt;Ct++,Rt++){var Vt=Math.floor(Lt+Rt*Tt);st?(Ot=Vt,zt=st.b0*Ot+st.b1*st.x1+st.b0*st.x2-st.a1*st.y1-st.a2*st.y2,st.x2=st.x1,st.x1=Ot,st.y2=st.y1,st.y1=zt,Vt=zt):Vt=it?it(Vt):Vt,Vt>32767?Vt=32767:Vt<-32768&&(Vt=-32768),nt&&(bt+=Math.abs(Vt)),dt[Ct]=Vt,At++}Lt=$=mt,It+=_}Q=It%1;continue}for(var vt=0,Kt=0;vt<ft;vt++,Kt++){if(Kt<ft){var mt=Zt[Kt];Nt&&(mt=Math.max(-1,Math.min(1,mt)),mt=mt<0?mt*32768:mt*32767),st?(Ot=mt,zt=st.b0*Ot+st.b1*st.x1+st.b0*st.x2-st.a1*st.y1-st.a2*st.y2,st.x2=st.x1,st.x1=Ot,st.y2=st.y1,st.y1=zt):zt=it?it(mt):mt}if(gt=wt,wt=zt,Kt==0){vt--;continue}var te=Math.floor(It);if(vt==te){var ae=Math.ceil(It),ee=It-te,he=gt,Xe=ae<ft?wt:he,da=he+(Xe-he)*ee;da>32767?da=32767:da<-32768&&(da=-32768),nt&&(bt+=Math.abs(da)),dt[At]=da,At++,It+=ut}}Q=Math.max(0,It-ft)}ut<1&&At+1==yt&&(yt--,dt=new Int16Array(dt.buffer.slice(0,yt*2))),At-1!=yt&&At!=yt&&Y(N+" idx:"+At+" != size:"+yt,3),et=null;var al=yt%tt;if(al>0){var Ma=(yt-al)*2;et=new Int16Array(dt.buffer.slice(Ma)),dt=new Int16Array(dt.buffer.slice(0,Ma))}var Ql={index:X,offset:Q,raisePrev:$,filter:ot,frameNext:et,sampleRate:q,data:dt};return nt&&(Ql._sum=bt),Ql},r.IIRFilter=function(K,T,q){var R=2*Math.PI*q/T,P=Math.sin(R),N=Math.cos(R),X=P/2,Q=1+X,$=-2*N/Q,ot=(1-X)/Q;if(K)var at=(1-N)/2/Q,it=(1-N)/Q;else var at=(1+N)/2/Q,it=-(1+N)/Q;var et=0,tt=0,nt=0,bt=0,Wt=0,yt=function(It){return nt=at*It+it*et+at*tt-$*bt-ot*Wt,tt=et,et=It,Wt=bt,bt=nt,nt};return yt.Embed={x1:0,x2:0,y1:0,y2:0,b0:at,b1:it,a1:$,a2:ot},yt},r.PowerLevel=function(K,T){var q=K/T||0,R;return q<1251?R=Math.round(q/1250*10):R=Math.round(Math.min(100,Math.max(0,(1+Math.log(q/1e4)/Math.log(10))*100))),R},r.PowerDBFS=function(K){var T=Math.max(.1,K||0),q=32767;return T=Math.min(T,q),T=20*Math.log(T/q)/Math.log(10),Math.max(-100,Math.round(T))},r.CLog=function(K,T){if(typeof console=="object"){var q=new Date,R=("0"+q.getMinutes()).substr(-2)+":"+("0"+q.getSeconds()).substr(-2)+"."+("00"+q.getMilliseconds()).substr(-3),P=this&&this.envIn&&this.envCheck&&this.id,N=["["+R+" "+s+(P?":"+P:"")+"]"+K],X=arguments,Q=r.CLog,$=2,ot=Q.log||console.log;for(n(T)?ot=T==1?Q.error||console.error:T==3?Q.warn||console.warn:ot:$=1;$<X.length;$++)N.push(X[$]);O?ot&&ot("[IsLoser]"+N[0],N.length>1?N:""):ot.apply(console,N)}};var Y=function(){r.CLog.apply(this,arguments)},O=!0;try{O=!console.log.apply}catch{}var M=0;function J(K){var T=this;T.id=++M,pt();var q={type:"mp3",onProcess:l};for(var R in K)q[R]=K[R];T.set=q;var P=q[f],N=q[W];(P&&!n(P)||N&&!n(N))&&T.CLog(H.G("IllegalArgs-1",[H("VtS4::{1}和{2}必须是数值",0,W,f)]),1,K),q[f]=+P||16,q[W]=+N||16e3,T.state=0,T._S=9,T.Sync={O:9,C:9}}r.Sync={O:9,C:9},r.prototype=J.prototype={CLog:Y,_streamStore:function(){return this.set.sourceStream?this:r},_streamGet:function(){return this._streamStore().Stream},_streamCtx:function(){var K=this._streamGet();return K&&K._c},open:function(K,T){var q=this,R=q.set,P=q._streamStore(),N=0;K=K||l;var X=function(At,Zt){Zt=!!Zt,q.CLog(H("5tWi::录音open失败:")+At+",isUserNotAllow:"+Zt,1),N&&r.CloseNewCtx(N),T&&T(At,Zt)};q._streamTag=c;var Q=function(){q.CLog("open ok, id:"+q.id+" stream:"+q._streamTag),K(),q._SO=0},$=P.Sync,ot=++$.O,at=$.C;q._O=q._O_=ot,q._SO=q._S;var it=function(){if(at!=$.C||!q._O){var At=H("dFm8::open被取消");return ot==$.O?q.close():At=H("VtJO::open被中断"),X(At),!0}};if(!a){X(H.G("NonBrowser-1",["open"])+H("EMJq::,可尝试使用RecordApp解决方案")+"("+u+"/tree/master/app-support-sample)");return}var et=q.envCheck({envName:"H5",canProcess:!0});if(et){X(H("A5bm::不能录音:")+et);return}var tt,nt=function(){tt=R.runningContext,tt||(tt=N=r.GetContext(!0))};if(R.sourceStream){if(q._streamTag="set.sourceStream",!r.GetContext()){X(H("1iU7::不支持此浏览器从流中获取录音"));return}nt(),Z(P);var bt=q.Stream=R.sourceStream;bt._c=tt,bt._RC=R.runningContext,bt._call={};try{L(P)}catch(At){Z(P),X(H("BTW2::从流中打开录音失败:")+At.message);return}Q();return}var Wt=function(At,Zt){try{window.top.a}catch{X(H("Nclz::无权录音(跨域,请尝试给iframe添加麦克风访问策略,如{1})",0,'allow="camera;microphone"'));return}yt(1,At)&&(/Found/i.test(At)?X(Zt+H("jBa9::,无可用麦克风")):X(Zt))},yt=function(At,Zt){if(/Permission|Allow/i.test(Zt))At&&X(H("gyO5::用户拒绝了录音权限"),!0);else if(window.isSecureContext===!1)At&&X(H("oWNo::浏览器禁止不安全页面录音,可开启https解决"));else return 1};if(r.IsOpen()){Q();return}if(!r.Support()){Wt("",H("COxc::此浏览器不支持录音"));return}nt();var It=function(At){setTimeout(function(){At._call={};var Zt=r.Stream;Zt&&(Z(),At._call=Zt._call),r.Stream=At,At._c=tt,At._RC=R.runningContext,!it()&&(r.IsOpen()?(Zt&&q.CLog(H("upb8::发现同时多次调用open"),1),L(P),Q()):X(H("Q1GA::录音功能无效:无音频流")))},100)},ut=function(At){var Zt=At.name||At.message||At.code+":"+At,Nt="";_==1&&yt(0,Zt)&&(Nt=H("KxE2::,将尝试禁用回声消除后重试")),q.CLog(H("xEQR::请求录音权限错误")+Nt+"|"+At,Nt?3:1,At),Nt?dt(1):Wt(Zt,H("bDOG::无法录音:")+At)},_=0,dt=function(At){_++;var Zt="audioTrackSet",Nt="autoGainControl",ft="echoCancellation",st="noiseSuppression",gt=Zt+":{"+ft+","+st+","+Nt+"}",wt=JSON.parse(i(R[Zt]||!0));q.CLog("open... "+_+" "+Zt+":"+i(wt)),At&&(typeof wt!="object"&&(wt={}),wt[Nt]=!1,wt[ft]=!1,wt[st]=!1),wt[W]&&q.CLog(H("IjL3::注意:已配置{1}参数,可能会出现浏览器不能正确选用麦克风、移动端无法启用回声消除等现象",0,Zt+"."+W),3);var Ot={audio:wt,video:R.videoTrackSet||!1};try{var zt=r.Scope[c](Ot,It,ut)}catch(jt){q.CLog(c,3,jt),Ot={audio:!0,video:!1},zt=r.Scope[c](Ot,It,ut)}q.CLog(c+"("+i(Ot)+") "+v(tt)+H("RiWe::,未配置 {1} 时浏览器可能会自动启用回声消除,移动端未禁用回声消除时可能会降低系统播放音量(关闭录音后可恢复)和仅提供16k采样率的音频流(不需要回声消除时可明确配置成禁用来获得48k高音质的流),请参阅文档中{2}配置",0,gt,Zt)+"("+u+") LM:"+p+" UA:"+navigator.userAgent),zt&&zt.then&&zt.then(It)[S](ut)};dt()},close:function(K){K=K||l;var T=this,q=T._streamStore();T._stop();var R=" stream:"+T._streamTag,P=q.Sync;if(T._O=0,T._O_!=P.O){T.CLog(H("hWVz::close被忽略(因为同时open了多个rec,只有最后一个会真正close)")+R,3),K();return}P.C++,Z(q),T.CLog("close,"+R),K()},mock:function(K,T){var q=this;return q._stop(),q.isMock=1,q.mockEnvInfo=null,q.buffers=[K],q.recSize=K.length,q._setSrcSR(T),q._streamTag="mock",q},_setSrcSR:function(K){var T=this,q=T.set,R=q[W];R>K?q[W]=K:R=0,T[d]=K,T.CLog(d+": "+K+" set."+W+": "+q[W]+(R?" "+H("UHvm::忽略")+": "+R:""),R?3:0)},envCheck:function(K){var T,q=this,R=q.set,P="CPU_BE";if(!T&&!r[P]&&typeof Int8Array=="function"&&!new Int8Array(new Int32Array([1]).buffer)[0]&&(pt(P),T=H("Essp::不支持{1}架构",0,P)),!T){var N=R.type,X=q[N+"_envCheck"];R.takeoffEncodeChunk&&(X?K.canProcess||(T=H("7uMV::{1}环境不支持实时处理",0,K.envName)):T=H("2XBl::{1}类型不支持设置takeoffEncodeChunk",0,N)+(q[N]?"":H("LG7e::(未加载编码器)"))),!T&&X&&(T=q[N+"_envCheck"](K,R))}return T||""},envStart:function(K,T){var q=this,R=q.set;if(q.isMock=K?1:0,q.mockEnvInfo=K,q.buffers=[],q.recSize=0,K&&(q._streamTag="env$"+K.envName),q.state=1,q.envInLast=0,q.envInFirst=0,q.envInFix=0,q.envInFixTs=[],q._setSrcSR(T),q.engineCtx=0,q[R.type+"_start"]){var P=q.engineCtx=q[R.type+"_start"](R);P&&(P.pcmDatas=[],P.pcmSize=0)}},envResume:function(){this.envInFixTs=[]},envIn:function(K,T){var q=this,R=q.set,P=q.engineCtx;if(q.state!=1){q.state||q.CLog("envIn at state=0",3);return}var N=q[d],X=K.length,Q=r.PowerLevel(T,X),$=q.buffers,ot=$.length;$.push(K);var at=$,it=ot,et=Date.now(),tt=Math.round(X/N*1e3);q.envInLast=et,q.buffers.length==1&&(q.envInFirst=et-tt);var nt=q.envInFixTs;nt.splice(0,0,{t:et,d:tt});for(var bt=et,Wt=0,yt=0;yt<nt.length;yt++){var It=nt[yt];if(et-It.t>3e3){nt.length=yt;break}bt=It.t,Wt+=It.d}var ut=nt[1],_=et-bt,dt=_-Wt;if(dt>_/3&&(ut&&_>1e3||nt.length>=6)){var At=et-ut.t-tt;if(At>tt/5){var Zt=!R.disableEnvInFix;if(q.CLog("["+et+"]"+B.get(H(Zt?"4Kfd::补偿{1}ms":"bM5i::未补偿{1}ms",1),[At]),3),q.envInFix+=At,Zt){var Nt=new Int16Array(At*N/1e3);X+=Nt.length,$.push(Nt)}}}var ft=q.recSize,st=X,gt=ft+st;if(q.recSize=gt,P){var wt=r.SampleData($,N,R[W],P.chunkInfo);P.chunkInfo=wt,ft=P.pcmSize,st=wt.data.length,gt=ft+st,P.pcmSize=gt,$=P.pcmDatas,ot=$.length,$.push(wt.data),N=wt[W]}var Ot=Math.round(gt/N*1e3),zt=$.length,jt=at.length,Lt=function(){for(var Tt=vt?0:-st,Rt=$[0]==null,Vt=ot;Vt<zt;Vt++){var Kt=$[Vt];Kt==null?Rt=1:(Tt+=Kt.length,P&&Kt.length&&q[R.type+"_encode"](P,Kt))}if(Rt&&P){var Vt=it;for(at[0]&&(Vt=0);Vt<jt;Vt++)at[Vt]=null}Rt&&(Tt=vt?st:0,$[0]=null),P?P.pcmSize+=Tt:q.recSize+=Tt},vt=0,mt="rec.set.onProcess";try{vt=R.onProcess($,Q,Ot,N,ot,Lt)}catch(Tt){console.error(mt+H("gFUF::回调出错是不允许的,需保证不会抛异常"),Tt)}var Ct=Date.now()-et;if(Ct>10&&q.envInFirst-et>1e3&&q.CLog(mt+H("2ghS::低性能,耗时{1}ms",0,Ct),3),vt===!0){for(var kt=0,yt=ot;yt<zt;yt++)$[yt]==null?kt=1:$[yt]=new Int16Array(0);kt?q.CLog(H("ufqH::未进入异步前不能清除buffers"),3):P?P.pcmSize-=st:q.recSize-=st}else Lt()},start:function(){var K=this,T=1;if(K.set.sourceStream?K.Stream||(T=0):r.IsOpen()||(T=0),!T){K.CLog(H("6WmN::start失败:未open"),1);return}var q=K._streamCtx();if(K.CLog(H("kLDN::start 开始录音,")+v(q)+" stream:"+K._streamTag),K._stop(),K.envStart(null,q[W]),K.state=3,K._SO&&K._SO+1!=K._S){K.CLog(H("Bp2y::start被中断"),3);return}K._SO=0;var R=function(){K.state==3&&(K.state=1,K.resume())},P="AudioContext resume: ",N=K._streamGet();N._call[K.id]=function(){K.CLog(P+q.state+"|stream ok"),R()},A(q,function(X){return X&&K.CLog(P+"wait..."),K.state==3},function(X){X&&K.CLog(P+q.state),R()},function(X){K.CLog(P+q.state+H("upkE::,可能无法录音:")+X,1),R()})},pause:function(){var K=this,T=K._streamGet();K.state&&(K.state=2,K.CLog("pause"),T&&delete T._call[K.id])},resume:function(){var K=this,T=K._streamGet(),q="resume",R=q+"(wait ctx)";if(K.state==3)K.CLog(R);else if(K.state){K.state=1,K.CLog(q),K.envResume(),T&&(T._call[K.id]=function(N,X){K.state==1&&K.envIn(N,X)},w(T));var P=K._streamCtx();P&&A(P,function(N){return N&&K.CLog(R+"..."),K.state==1},function(N){N&&K.CLog(R+P.state),w(T)},function(N){K.CLog(R+P.state+"[err]"+N,1)})}},_stop:function(K){var T=this,q=T.set;T.isMock||T._S++,T.state&&(T.pause(),T.state=0),!K&&T[q.type+"_stop"]&&(T[q.type+"_stop"](T.engineCtx),T.engineCtx=0)},stop:function(K,T,q){var R=this,P=R.set,N,X=R.envInLast-R.envInFirst,Q=X&&R.buffers.length;R.CLog(H("Xq4s::stop 和start时差:")+(X?X+"ms "+H("3CQP::补偿:")+R.envInFix+"ms envIn:"+Q+" fps:"+(Q/X*1e3).toFixed(1):"-")+" stream:"+R._streamTag+" ("+u+") LM:"+p);var $=function(){R._stop(),q&&R.close()},ot=function(It){R.CLog(H("u8JG::结束录音失败:")+It,1),T&&T(It),$()},at=function(It,ut,_){var dt="blob",At="arraybuffer",Zt="dataType",Nt="DefaultDataType",ft=R[Zt]||r[Nt]||dt,st=Zt+"="+ft,gt=It instanceof ArrayBuffer,wt=0,Ot=gt?It.byteLength:It.size;if(ft==At?gt||(wt=1):ft==dt?typeof Blob!="function"?wt=H.G("NonBrowser-1",[st])+H("1skY::,请设置{1}",0,s+"."+Nt+'="'+At+'"'):(gt&&(It=new Blob([It],{type:ut})),It instanceof Blob||(wt=1),ut=It.type||ut):wt=H.G("NotSupport-1",[st]),R.CLog(H("Wv7l::结束录音 编码花{1}ms 音频时长{2}ms 文件大小{3}b",0,Date.now()-N,_,Ot)+" "+st+","+ut),wt){ot(wt!=1?wt:H("Vkbd::{1}编码器返回的不是{2}",0,P.type,ft)+", "+st);return}if(P.takeoffEncodeChunk)R.CLog(H("QWnr::启用takeoffEncodeChunk后stop返回的blob长度为0不提供音频数据"),3);else if(Ot<Math.max(50,_/5)){ot(H("Sz2H::生成的{1}无效",0,P.type));return}K&&K(It,_,ut),$()};if(!R.isMock){var it=R.state==3;if(!R.state||it){ot(H("wf9t::未开始录音")+(it?H("Dl2c::,开始录音前无用户交互导致AudioContext未运行"):""));return}}R._stop(!0);var et=R.recSize;if(!et){ot(H("Ltz3::未采集到录音"));return}if(!R[P.type]){ot(H("xGuI::未加载{1}编码器,请尝试到{2}的src/engine内找到{1}的编码器并加载",0,P.type,s));return}if(R.isMock){var tt=R.envCheck(R.mockEnvInfo||{envName:"mock",canProcess:!1});if(tt){ot(H("AxOH::录音错误:")+tt);return}}var nt=R.engineCtx;if(R[P.type+"_complete"]&&nt){var yt=Math.round(nt.pcmSize/P[W]*1e3);N=Date.now(),R[P.type+"_complete"](nt,function(ut,_){at(ut,_,yt)},ot);return}if(N=Date.now(),!R.buffers[0]){ot(H("xkKd::音频buffers被释放"));return}var bt=r.SampleData(R.buffers,R[d],P[W]);P[W]=bt[W];var Wt=bt.data,yt=Math.round(Wt.length/P[W]*1e3);R.CLog(H("CxeT::采样:{1} 花:{2}ms",0,et+"->"+Wt.length,Date.now()-N)),setTimeout(function(){N=Date.now(),R[P.type](Wt,function(It,ut){at(It,ut,yt)},function(It){ot(It)})})}};var F=function(K,T){T.pos||(T.pos=[0],T.tracks={},T.bytes=[]);var q=T.tracks,R=[T.pos[0]],P=function(){T.pos[0]=R[0]},N=T.bytes.length,X=new Uint8Array(N+K.length);if(X.set(T.bytes),X.set(K,N),T.bytes=X,!T._ht){if(U(X,R),D(X,R),!V(U(X,R),[24,83,128,103]))return;for(U(X,R);R[0]<X.length;){var Q=U(X,R),$=D(X,R),ot=[0],at=0;if(!$)return;if(V(Q,[22,84,174,107])){for(;ot[0]<$.length;){var it=U($,ot),et=D($,ot),tt=[0],nt={channels:0,sampleRate:0};if(V(it,[174]))for(;tt[0]<et.length;){var bt=U(et,tt),Wt=D(et,tt),yt=[0];if(V(bt,[215])){var It=G(Wt);nt.number=It,q[It]=nt}else if(V(bt,[131])){var It=G(Wt);It==1?nt.type="video":It==2?(nt.type="audio",at||(T.track0=nt),nt.idx=at++):nt.type="Type-"+It}else if(V(bt,[134])){for(var ut="",_=0;_<Wt.length;_++)ut+=String.fromCharCode(Wt[_]);nt.codec=ut}else if(V(bt,[225]))for(;yt[0]<Wt.length;){var dt=U(Wt,yt),At=D(Wt,yt);if(V(dt,[181])){var It=0,Zt=new Uint8Array(At.reverse()).buffer;At.length==4?It=new Float32Array(Zt)[0]:At.length==8?It=new Float64Array(Zt)[0]:Y("WebM Track !Float",1,At),nt[W]=Math.round(It)}else V(dt,[98,100])?nt.bitDepth=G(At):V(dt,[159])&&(nt.channels=G(At))}}}T._ht=1,Y("WebM Tracks",q),P();break}}}var Nt=T.track0;if(Nt){var ft=Nt[W];if(T.webmSR=ft,Nt.bitDepth==16&&/FLOAT/i.test(Nt.codec)&&(Nt.bitDepth=32,Y("WebM 16->32 bit",3)),ft<8e3||Nt.bitDepth!=32||Nt.channels<1||!/(\b|_)PCM\b/i.test(Nt.codec))return T.bytes=[],T.bad||Y("WebM Track Unexpected",3,T),T.bad=1,-1;for(var st=[],gt=0;R[0]<X.length;){var it=U(X,R),et=D(X,R);if(!et)break;if(V(it,[163])){var wt=et[0]&15,nt=q[wt];if(!nt)Y("WebM !Track"+wt,1,q);else if(nt.idx===0){for(var Ot=new Uint8Array(et.length-4),_=4;_<et.length;_++)Ot[_-4]=et[_];st.push(Ot),gt+=Ot.length}}P()}if(gt){var zt=new Uint8Array(X.length-T.pos[0]);zt.set(X.subarray(T.pos[0])),T.bytes=zt,T.pos[0]=0;for(var Ot=new Uint8Array(gt),_=0,jt=0;_<st.length;_++)Ot.set(st[_],jt),jt+=st[_].length;var Zt=new Float32Array(Ot.buffer);if(Nt.channels>1){for(var Lt=[],_=0;_<Zt.length;)Lt.push(Zt[_]),_+=Nt.channels;Zt=new Float32Array(Lt)}return Zt}}},V=function(K,T){if(!K||K.length!=T.length)return!1;if(K.length==1)return K[0]==T[0];for(var q=0;q<K.length;q++)if(K[q]!=T[q])return!1;return!0},G=function(K){for(var T="",q=0;q<K.length;q++){var R=K[q];T+=(R<16?"0":"")+R.toString(16)}return parseInt(T,16)||0},U=function(K,T,q){var R=T[0];if(!(R>=K.length)){var P=K[R],N=("0000000"+P.toString(2)).substr(-8),X=/^(0*1)(\d*)$/.exec(N);if(X){var Q=X[1].length,$=[];if(!(R+Q>K.length)){for(var ot=0;ot<Q;ot++)$[ot]=K[R],R++;return q&&($[0]=parseInt(X[2]||"0",2)),T[0]=R,$}}}},D=function(K,T){var q=U(K,T,1);if(q){var R=G(q),P=T[0],N=[];if(R<2147483647){if(P+R>K.length)return;for(var X=0;X<R;X++)N[X]=K[P],P++}return T[0]=P,N}},B=r.i18n={lang:"zh-CN",alias:{"zh-CN":"zh","en-US":"en"},locales:{},data:{},put:function(K,T){var q=s+".i18n.put: ",R=K.overwrite;R=R==null||R;var P=K.lang;if(P=B.alias[P]||P,!P)throw new Error(q+"set.lang?");var N=B.locales[P];N||(N={},B.locales[P]=N);for(var X=/^([\w\-]+):/,Q,$=0;$<T.length;$++){var at=T[$];if(Q=X.exec(at),!Q){Y(q+"'key:'? "+at,3,K);continue}var ot=Q[1],at=at.substr(ot.length+1);!R&&N[ot]||(N[ot]=at)}},get:function(){return B.v_G.apply(null,arguments)},v_G:function(K,T,q){T=T||[],q=q||B.lang,q=B.alias[q]||q;var R=B.locales[q],P=R&&R[K]||"";return!P&&q!="zh"?q=="en"?B.v_G(K,T,"zh"):B.v_G(K,T,"en"):(B.lastLang=q,P=="=Empty"?"":P.replace(/\{(\d+)(\!?)\}/g,function(N,X,Q){return X=+X||0,N=T[X-1],(X<1||X>T.length)&&(N="{?}",Y("i18n["+K+"] no {"+X+"}: "+P,3)),Q?"":N}))},$T:function(){return B.v_T.apply(null,arguments)},v_T:function(){for(var K=arguments,T="",q=[],R=0,P=s+".i18n.$T:",N=/^([\w\-]*):/,X,Q=0;Q<K.length;Q++){var $=K[Q];if(Q==0){if(X=N.exec($),T=X&&X[1],!T)throw new Error(P+"0 'key:'?");$=$.substr(T.length+1)}if(R===-1)q.push($);else{if(R)throw new Error(P+" bad args");if($===0)R=-1;else if(n($)){if($<1)throw new Error(P+" bad args");R=$}else{var ot=Q==1?"en":Q?"":"zh";if(X=N.exec($),X&&(ot=X[1]||ot,$=$.substr(X[1].length+1)),!X||!ot)throw new Error(P+Q+" 'lang:'?");B.put({lang:ot,overwrite:!1},[T+":"+$])}}}return T?R>0?T:B.v_G(T,q):""}},H=B.$T;H.G=B.get,H("NonBrowser-1::非浏览器环境,不支持{1}",1),H("IllegalArgs-1::参数错误:{1}",1),H("NeedImport-2::调用{1}需要先导入{2}",2),H("NotSupport-1::不支持:{1}",1),r.TrafficImgUrl="//ia.51.la/go1?id=20469973&pvFlag=1";var pt=r.Traffic=function(K){if(a){K=K?"/"+s+"/Report/"+K:"";var T=r.TrafficImgUrl;if(T){var q=r.Traffic,R=/^(https?:..[^\/#]*\/?)[^#]*/i.exec(location.href)||[],P=R[1]||"http://file/",N=(R[0]||P)+K;if(T.indexOf("//")==0&&(/^https:/i.test(N)?T="https:"+T:T="http:"+T),K&&(T=T+"&cu="+encodeURIComponent(P+K)),!q[N]){q[N]=1;var X=new Image;X.src=T,Y("Traffic Analysis Image: "+(K||s+".TrafficImgUrl="+r.TrafficImgUrl))}}}};h&&(Y(H("8HO5::覆盖导入{1}",0,s),1),h.Destroy()),e[s]=r})})(IA);var Fj=IA.exports;const zd=Xj(Fj);function CA(t,e){return function(){return t.apply(e,arguments)}}const{toString:Jj}=Object.prototype,{getPrototypeOf:Vd}=Object,au=(t=>e=>{const a=Jj.call(e);return t[a]||(t[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),Ka=t=>(t=t.toLowerCase(),e=>au(e)===t),lu=t=>e=>typeof e===t,{isArray:Eo}=Array,ir=lu("undefined");function Hj(t){return t!==null&&!ir(t)&&t.constructor!==null&&!ir(t.constructor)&&Wa(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const xA=Ka("ArrayBuffer");function Dj(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&xA(t.buffer),e}const Uj=lu("string"),Wa=lu("function"),wA=lu("number"),nu=t=>t!==null&&typeof t=="object",Bj=t=>t===!0||t===!1,ou=t=>{if(au(t)!=="object")return!1;const e=Vd(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Qj=Ka("Date"),$j=Ka("File"),_j=Ka("Blob"),tq=Ka("FileList"),eq=t=>nu(t)&&Wa(t.pipe),aq=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Wa(t.append)&&((e=au(t))==="formdata"||e==="object"&&Wa(t.toString)&&t.toString()==="[object FormData]"))},lq=Ka("URLSearchParams"),[nq,oq,iq,rq]=["ReadableStream","Request","Response","Headers"].map(Ka),pq=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rr(t,e,{allOwnKeys:a=!1}={}){if(t===null||typeof t>"u")return;let l,n;if(typeof t!="object"&&(t=[t]),Eo(t))for(l=0,n=t.length;l<n;l++)e.call(null,t[l],l,t);else{const i=a?Object.getOwnPropertyNames(t):Object.keys(t),r=i.length;let p;for(l=0;l<r;l++)p=i[l],e.call(null,t[p],p,t)}}function OA(t,e){e=e.toLowerCase();const a=Object.keys(t);let l=a.length,n;for(;l-- >0;)if(n=a[l],e===n.toLowerCase())return n;return null}const Mn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,kA=t=>!ir(t)&&t!==Mn;function Nd(){const{caseless:t}=kA(this)&&this||{},e={},a=(l,n)=>{const i=t&&OA(e,n)||n;ou(e[i])&&ou(l)?e[i]=Nd(e[i],l):ou(l)?e[i]=Nd({},l):Eo(l)?e[i]=l.slice():e[i]=l};for(let l=0,n=arguments.length;l<n;l++)arguments[l]&&rr(arguments[l],a);return e}const uq=(t,e,a,{allOwnKeys:l}={})=>(rr(e,(n,i)=>{a&&Wa(n)?t[i]=CA(n,a):t[i]=n},{allOwnKeys:l}),t),sq=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),cq=(t,e,a,l)=>{t.prototype=Object.create(e.prototype,l),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),a&&Object.assign(t.prototype,a)},dq=(t,e,a,l)=>{let n,i,r;const p={};if(e=e||{},t==null)return e;do{for(n=Object.getOwnPropertyNames(t),i=n.length;i-- >0;)r=n[i],(!l||l(r,t,e))&&!p[r]&&(e[r]=t[r],p[r]=!0);t=a!==!1&&Vd(t)}while(t&&(!a||a(t,e))&&t!==Object.prototype);return e},Wq=(t,e,a)=>{t=String(t),(a===void 0||a>t.length)&&(a=t.length),a-=e.length;const l=t.indexOf(e,a);return l!==-1&&l===a},fq=t=>{if(!t)return null;if(Eo(t))return t;let e=t.length;if(!wA(e))return null;const a=new Array(e);for(;e-- >0;)a[e]=t[e];return a},Sq=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Vd(Uint8Array)),hq=(t,e)=>{const l=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=l.next())&&!n.done;){const i=n.value;e.call(t,i[0],i[1])}},mq=(t,e)=>{let a;const l=[];for(;(a=t.exec(e))!==null;)l.push(a);return l},gq=Ka("HTMLFormElement"),Aq=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,l,n){return l.toUpperCase()+n}),jA=(({hasOwnProperty:t})=>(e,a)=>t.call(e,a))(Object.prototype),Lq=Ka("RegExp"),qA=(t,e)=>{const a=Object.getOwnPropertyDescriptors(t),l={};rr(a,(n,i)=>{let r;(r=e(n,i,t))!==!1&&(l[i]=r||n)}),Object.defineProperties(t,l)},bq=t=>{qA(t,(e,a)=>{if(Wa(t)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const l=t[a];if(Wa(l)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},yq=(t,e)=>{const a={},l=n=>{n.forEach(i=>{a[i]=!0})};return Eo(t)?l(t):l(String(t).split(e)),a},vq=()=>{},Iq=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Td="abcdefghijklmnopqrstuvwxyz",ZA="0123456789",zA={DIGIT:ZA,ALPHA:Td,ALPHA_DIGIT:Td+Td.toUpperCase()+ZA},Cq=(t=16,e=zA.ALPHA_DIGIT)=>{let a="";const{length:l}=e;for(;t--;)a+=e[Math.random()*l|0];return a};function xq(t){return!!(t&&Wa(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const wq=t=>{const e=new Array(10),a=(l,n)=>{if(nu(l)){if(e.indexOf(l)>=0)return;if(!("toJSON"in l)){e[n]=l;const i=Eo(l)?[]:{};return rr(l,(r,p)=>{const u=a(r,n+1);!ir(u)&&(i[p]=u)}),e[n]=void 0,i}}return l};return a(t,0)},Oq=Ka("AsyncFunction"),kq=t=>t&&(nu(t)||Wa(t))&&Wa(t.then)&&Wa(t.catch),VA=((t,e)=>t?setImmediate:e?((a,l)=>(Mn.addEventListener("message",({source:n,data:i})=>{n===Mn&&i===a&&l.length&&l.shift()()},!1),n=>{l.push(n),Mn.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",Wa(Mn.postMessage)),jq=typeof queueMicrotask<"u"?queueMicrotask.bind(Mn):typeof process<"u"&&process.nextTick||VA,ht={isArray:Eo,isArrayBuffer:xA,isBuffer:Hj,isFormData:aq,isArrayBufferView:Dj,isString:Uj,isNumber:wA,isBoolean:Bj,isObject:nu,isPlainObject:ou,isReadableStream:nq,isRequest:oq,isResponse:iq,isHeaders:rq,isUndefined:ir,isDate:Qj,isFile:$j,isBlob:_j,isRegExp:Lq,isFunction:Wa,isStream:eq,isURLSearchParams:lq,isTypedArray:Sq,isFileList:tq,forEach:rr,merge:Nd,extend:uq,trim:pq,stripBOM:sq,inherits:cq,toFlatObject:dq,kindOf:au,kindOfTest:Ka,endsWith:Wq,toArray:fq,forEachEntry:hq,matchAll:mq,isHTMLForm:gq,hasOwnProperty:jA,hasOwnProp:jA,reduceDescriptors:qA,freezeMethods:bq,toObjectSet:yq,toCamelCase:Aq,noop:vq,toFiniteNumber:Iq,findKey:OA,global:Mn,isContextDefined:kA,ALPHABET:zA,generateString:Cq,isSpecCompliantForm:xq,toJSONObject:wq,isAsyncFn:Oq,isThenable:kq,setImmediate:VA,asap:jq};function Ht(t,e,a,l,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),a&&(this.config=a),l&&(this.request=l),n&&(this.response=n,this.status=n.status?n.status:null)}ht.inherits(Ht,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ht.toJSONObject(this.config),code:this.code,status:this.status}}});const NA=Ht.prototype,TA={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{TA[t]={value:t}}),Object.defineProperties(Ht,TA),Object.defineProperty(NA,"isAxiosError",{value:!0}),Ht.from=(t,e,a,l,n,i)=>{const r=Object.create(NA);return ht.toFlatObject(t,r,function(u){return u!==Error.prototype},p=>p!=="isAxiosError"),Ht.call(r,t.message,e,a,l,n),r.cause=t,r.name=t.name,i&&Object.assign(r,i),r};const qq=null;function Md(t){return ht.isPlainObject(t)||ht.isArray(t)}function MA(t){return ht.endsWith(t,"[]")?t.slice(0,-2):t}function KA(t,e,a){return t?t.concat(e).map(function(n,i){return n=MA(n),!a&&i?"["+n+"]":n}).join(a?".":""):e}function Zq(t){return ht.isArray(t)&&!t.some(Md)}const zq=ht.toFlatObject(ht,{},null,function(e){return/^is[A-Z]/.test(e)});function iu(t,e,a){if(!ht.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,a=ht.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,m){return!ht.isUndefined(m[h])});const l=a.metaTokens,n=a.visitor||c,i=a.dots,r=a.indexes,u=(a.Blob||typeof Blob<"u"&&Blob)&&ht.isSpecCompliantForm(e);if(!ht.isFunction(n))throw new TypeError("visitor must be a function");function s(S){if(S===null)return"";if(ht.isDate(S))return S.toISOString();if(!u&&ht.isBlob(S))throw new Ht("Blob is not supported. Use a Buffer instead.");return ht.isArrayBuffer(S)||ht.isTypedArray(S)?u&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function c(S,h,m){let g=S;if(S&&!m&&typeof S=="object"){if(ht.endsWith(h,"{}"))h=l?h:h.slice(0,-2),S=JSON.stringify(S);else if(ht.isArray(S)&&Zq(S)||(ht.isFileList(S)||ht.endsWith(h,"[]"))&&(g=ht.toArray(S)))return h=MA(h),g.forEach(function(b,v){!(ht.isUndefined(b)||b===null)&&e.append(r===!0?KA([h],v,i):r===null?h:h+"[]",s(b))}),!1}return Md(S)?!0:(e.append(KA(m,h,i),s(S)),!1)}const d=[],W=Object.assign(zq,{defaultVisitor:c,convertValue:s,isVisitable:Md});function f(S,h){if(!ht.isUndefined(S)){if(d.indexOf(S)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(S),ht.forEach(S,function(g,A){(!(ht.isUndefined(g)||g===null)&&n.call(e,g,ht.isString(A)?A.trim():A,h,W))===!0&&f(g,h?h.concat(A):[A])}),d.pop()}}if(!ht.isObject(t))throw new TypeError("data must be an object");return f(t),e}function RA(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(l){return e[l]})}function Kd(t,e){this._pairs=[],t&&iu(t,this,e)}const EA=Kd.prototype;EA.append=function(e,a){this._pairs.push([e,a])},EA.toString=function(e){const a=e?function(l){return e.call(this,l,RA)}:RA;return this._pairs.map(function(n){return a(n[0])+"="+a(n[1])},"").join("&")};function Vq(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function PA(t,e,a){if(!e)return t;const l=a&&a.encode||Vq,n=a&&a.serialize;let i;if(n?i=n(e,a):i=ht.isURLSearchParams(e)?e.toString():new Kd(e,a).toString(l),i){const r=t.indexOf("#");r!==-1&&(t=t.slice(0,r)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class YA{constructor(){this.handlers=[]}use(e,a,l){return this.handlers.push({fulfilled:e,rejected:a,synchronous:l?l.synchronous:!1,runWhen:l?l.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ht.forEach(this.handlers,function(l){l!==null&&e(l)})}}const GA={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nq={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Kd,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Rd=typeof window<"u"&&typeof document<"u",Ed=typeof navigator=="object"&&navigator||void 0,Tq=Rd&&(!Ed||["ReactNative","NativeScript","NS"].indexOf(Ed.product)<0),Mq=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Kq=Rd&&window.location.href||"http://localhost",ra={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Rd,hasStandardBrowserEnv:Tq,hasStandardBrowserWebWorkerEnv:Mq,navigator:Ed,origin:Kq},Symbol.toStringTag,{value:"Module"})),...Nq};function Rq(t,e){return iu(t,new ra.classes.URLSearchParams,Object.assign({visitor:function(a,l,n,i){return ra.isNode&&ht.isBuffer(a)?(this.append(l,a.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Eq(t){return ht.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Pq(t){const e={},a=Object.keys(t);let l;const n=a.length;let i;for(l=0;l<n;l++)i=a[l],e[i]=t[i];return e}function XA(t){function e(a,l,n,i){let r=a[i++];if(r==="__proto__")return!0;const p=Number.isFinite(+r),u=i>=a.length;return r=!r&&ht.isArray(n)?n.length:r,u?(ht.hasOwnProp(n,r)?n[r]=[n[r],l]:n[r]=l,!p):((!n[r]||!ht.isObject(n[r]))&&(n[r]=[]),e(a,l,n[r],i)&&ht.isArray(n[r])&&(n[r]=Pq(n[r])),!p)}if(ht.isFormData(t)&&ht.isFunction(t.entries)){const a={};return ht.forEachEntry(t,(l,n)=>{e(Eq(l),n,a,0)}),a}return null}function Yq(t,e,a){if(ht.isString(t))try{return(e||JSON.parse)(t),ht.trim(t)}catch(l){if(l.name!=="SyntaxError")throw l}return(a||JSON.stringify)(t)}const Pd={transitional:GA,adapter:["xhr","http","fetch"],transformRequest:[function(e,a){const l=a.getContentType()||"",n=l.indexOf("application/json")>-1,i=ht.isObject(e);if(i&&ht.isHTMLForm(e)&&(e=new FormData(e)),ht.isFormData(e))return n?JSON.stringify(XA(e)):e;if(ht.isArrayBuffer(e)||ht.isBuffer(e)||ht.isStream(e)||ht.isFile(e)||ht.isBlob(e)||ht.isReadableStream(e))return e;if(ht.isArrayBufferView(e))return e.buffer;if(ht.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let p;if(i){if(l.indexOf("application/x-www-form-urlencoded")>-1)return Rq(e,this.formSerializer).toString();if((p=ht.isFileList(e))||l.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return iu(p?{"files[]":e}:e,u&&new u,this.formSerializer)}}return i||n?(a.setContentType("application/json",!1),Yq(e)):e}],transformResponse:[function(e){const a=this.transitional||Pd.transitional,l=a&&a.forcedJSONParsing,n=this.responseType==="json";if(ht.isResponse(e)||ht.isReadableStream(e))return e;if(e&&ht.isString(e)&&(l&&!this.responseType||n)){const r=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(p){if(r)throw p.name==="SyntaxError"?Ht.from(p,Ht.ERR_BAD_RESPONSE,this,null,this.response):p}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ra.classes.FormData,Blob:ra.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ht.forEach(["delete","get","head","post","put","patch"],t=>{Pd.headers[t]={}});const Yd=Pd,Gq=ht.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Xq=t=>{const e={};let a,l,n;return t&&t.split(`
|
|
3
3
|
`).forEach(function(r){n=r.indexOf(":"),a=r.substring(0,n).trim().toLowerCase(),l=r.substring(n+1).trim(),!(!a||e[a]&&Gq[a])&&(a==="set-cookie"?e[a]?e[a].push(l):e[a]=[l]:e[a]=e[a]?e[a]+", "+l:l)}),e},FA=Symbol("internals");function pr(t){return t&&String(t).trim().toLowerCase()}function ru(t){return t===!1||t==null?t:ht.isArray(t)?t.map(ru):String(t)}function Fq(t){const e=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let l;for(;l=a.exec(t);)e[l[1]]=l[2];return e}const Jq=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Gd(t,e,a,l,n){if(ht.isFunction(l))return l.call(this,e,a);if(n&&(e=a),!!ht.isString(e)){if(ht.isString(l))return e.indexOf(l)!==-1;if(ht.isRegExp(l))return l.test(e)}}function Hq(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,a,l)=>a.toUpperCase()+l)}function Dq(t,e){const a=ht.toCamelCase(" "+e);["get","set","has"].forEach(l=>{Object.defineProperty(t,l+a,{value:function(n,i,r){return this[l].call(this,e,n,i,r)},configurable:!0})})}class pu{constructor(e){e&&this.set(e)}set(e,a,l){const n=this;function i(p,u,s){const c=pr(u);if(!c)throw new Error("header name must be a non-empty string");const d=ht.findKey(n,c);(!d||n[d]===void 0||s===!0||s===void 0&&n[d]!==!1)&&(n[d||u]=ru(p))}const r=(p,u)=>ht.forEach(p,(s,c)=>i(s,c,u));if(ht.isPlainObject(e)||e instanceof this.constructor)r(e,a);else if(ht.isString(e)&&(e=e.trim())&&!Jq(e))r(Xq(e),a);else if(ht.isHeaders(e))for(const[p,u]of e.entries())i(u,p,l);else e!=null&&i(a,e,l);return this}get(e,a){if(e=pr(e),e){const l=ht.findKey(this,e);if(l){const n=this[l];if(!a)return n;if(a===!0)return Fq(n);if(ht.isFunction(a))return a.call(this,n,l);if(ht.isRegExp(a))return a.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,a){if(e=pr(e),e){const l=ht.findKey(this,e);return!!(l&&this[l]!==void 0&&(!a||Gd(this,this[l],l,a)))}return!1}delete(e,a){const l=this;let n=!1;function i(r){if(r=pr(r),r){const p=ht.findKey(l,r);p&&(!a||Gd(l,l[p],p,a))&&(delete l[p],n=!0)}}return ht.isArray(e)?e.forEach(i):i(e),n}clear(e){const a=Object.keys(this);let l=a.length,n=!1;for(;l--;){const i=a[l];(!e||Gd(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){const a=this,l={};return ht.forEach(this,(n,i)=>{const r=ht.findKey(l,i);if(r){a[r]=ru(n),delete a[i];return}const p=e?Hq(i):String(i).trim();p!==i&&delete a[i],a[p]=ru(n),l[p]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const a=Object.create(null);return ht.forEach(this,(l,n)=>{l!=null&&l!==!1&&(a[n]=e&&ht.isArray(l)?l.join(", "):l)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,a])=>e+": "+a).join(`
|
|
4
4
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...a){const l=new this(e);return a.forEach(n=>l.set(n)),l}static accessor(e){const l=(this[FA]=this[FA]={accessors:{}}).accessors,n=this.prototype;function i(r){const p=pr(r);l[p]||(Dq(n,r),l[p]=!0)}return ht.isArray(e)?e.forEach(i):i(e),this}}pu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ht.reduceDescriptors(pu.prototype,({value:t},e)=>{let a=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(l){this[a]=l}}}),ht.freezeMethods(pu);const Ra=pu;function Xd(t,e){const a=this||Yd,l=e||a,n=Ra.from(l.headers);let i=l.data;return ht.forEach(t,function(p){i=p.call(a,i,n.normalize(),e?e.status:void 0)}),n.normalize(),i}function JA(t){return!!(t&&t.__CANCEL__)}function Po(t,e,a){Ht.call(this,t??"canceled",Ht.ERR_CANCELED,e,a),this.name="CanceledError"}ht.inherits(Po,Ht,{__CANCEL__:!0});function HA(t,e,a){const l=a.config.validateStatus;!a.status||!l||l(a.status)?t(a):e(new Ht("Request failed with status code "+a.status,[Ht.ERR_BAD_REQUEST,Ht.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function Uq(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Bq(t,e){t=t||10;const a=new Array(t),l=new Array(t);let n=0,i=0,r;return e=e!==void 0?e:1e3,function(u){const s=Date.now(),c=l[i];r||(r=s),a[n]=u,l[n]=s;let d=i,W=0;for(;d!==n;)W+=a[d++],d=d%t;if(n=(n+1)%t,n===i&&(i=(i+1)%t),s-r<e)return;const f=c&&s-c;return f?Math.round(W*1e3/f):void 0}}function Qq(t,e){let a=0,l=1e3/e,n,i;const r=(s,c=Date.now())=>{a=c,n=null,i&&(clearTimeout(i),i=null),t.apply(null,s)};return[(...s)=>{const c=Date.now(),d=c-a;d>=l?r(s,c):(n=s,i||(i=setTimeout(()=>{i=null,r(n)},l-d)))},()=>n&&r(n)]}const uu=(t,e,a=3)=>{let l=0;const n=Bq(50,250);return Qq(i=>{const r=i.loaded,p=i.lengthComputable?i.total:void 0,u=r-l,s=n(u),c=r<=p;l=r;const d={loaded:r,total:p,progress:p?r/p:void 0,bytes:u,rate:s||void 0,estimated:s&&p&&c?(p-r)/s:void 0,event:i,lengthComputable:p!=null,[e?"download":"upload"]:!0};t(d)},a)},DA=(t,e)=>{const a=t!=null;return[l=>e[0]({lengthComputable:a,total:t,loaded:l}),e[1]]},UA=t=>(...e)=>ht.asap(()=>t(...e)),$q=ra.hasStandardBrowserEnv?function(){const e=ra.navigator&&/(msie|trident)/i.test(ra.navigator.userAgent),a=document.createElement("a");let l;function n(i){let r=i;return e&&(a.setAttribute("href",r),r=a.href),a.setAttribute("href",r),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return l=n(window.location.href),function(r){const p=ht.isString(r)?n(r):r;return p.protocol===l.protocol&&p.host===l.host}}():function(){return function(){return!0}}(),_q=ra.hasStandardBrowserEnv?{write(t,e,a,l,n,i){const r=[t+"="+encodeURIComponent(e)];ht.isNumber(a)&&r.push("expires="+new Date(a).toGMTString()),ht.isString(l)&&r.push("path="+l),ht.isString(n)&&r.push("domain="+n),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function tZ(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function eZ(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function BA(t,e){return t&&!tZ(e)?eZ(t,e):e}const QA=t=>t instanceof Ra?{...t}:t;function Kn(t,e){e=e||{};const a={};function l(s,c,d){return ht.isPlainObject(s)&&ht.isPlainObject(c)?ht.merge.call({caseless:d},s,c):ht.isPlainObject(c)?ht.merge({},c):ht.isArray(c)?c.slice():c}function n(s,c,d){if(ht.isUndefined(c)){if(!ht.isUndefined(s))return l(void 0,s,d)}else return l(s,c,d)}function i(s,c){if(!ht.isUndefined(c))return l(void 0,c)}function r(s,c){if(ht.isUndefined(c)){if(!ht.isUndefined(s))return l(void 0,s)}else return l(void 0,c)}function p(s,c,d){if(d in e)return l(s,c);if(d in t)return l(void 0,s)}const u={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:p,headers:(s,c)=>n(QA(s),QA(c),!0)};return ht.forEach(Object.keys(Object.assign({},t,e)),function(c){const d=u[c]||n,W=d(t[c],e[c],c);ht.isUndefined(W)&&d!==p||(a[c]=W)}),a}const $A=t=>{const e=Kn({},t);let{data:a,withXSRFToken:l,xsrfHeaderName:n,xsrfCookieName:i,headers:r,auth:p}=e;e.headers=r=Ra.from(r),e.url=PA(BA(e.baseURL,e.url),t.params,t.paramsSerializer),p&&r.set("Authorization","Basic "+btoa((p.username||"")+":"+(p.password?unescape(encodeURIComponent(p.password)):"")));let u;if(ht.isFormData(a)){if(ra.hasStandardBrowserEnv||ra.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if((u=r.getContentType())!==!1){const[s,...c]=u?u.split(";").map(d=>d.trim()).filter(Boolean):[];r.setContentType([s||"multipart/form-data",...c].join("; "))}}if(ra.hasStandardBrowserEnv&&(l&&ht.isFunction(l)&&(l=l(e)),l||l!==!1&&$q(e.url))){const s=n&&i&&_q.read(i);s&&r.set(n,s)}return e},aZ=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(a,l){const n=$A(t);let i=n.data;const r=Ra.from(n.headers).normalize();let{responseType:p,onUploadProgress:u,onDownloadProgress:s}=n,c,d,W,f,S;function h(){f&&f(),S&&S(),n.cancelToken&&n.cancelToken.unsubscribe(c),n.signal&&n.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout;function g(){if(!m)return;const b=Ra.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),y={data:!p||p==="text"||p==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:b,config:t,request:m};HA(function(L){a(L),h()},function(L){l(L),h()},y),m=null}"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(g)},m.onabort=function(){m&&(l(new Ht("Request aborted",Ht.ECONNABORTED,t,m)),m=null)},m.onerror=function(){l(new Ht("Network Error",Ht.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let v=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const y=n.transitional||GA;n.timeoutErrorMessage&&(v=n.timeoutErrorMessage),l(new Ht(v,y.clarifyTimeoutError?Ht.ETIMEDOUT:Ht.ECONNABORTED,t,m)),m=null},i===void 0&&r.setContentType(null),"setRequestHeader"in m&&ht.forEach(r.toJSON(),function(v,y){m.setRequestHeader(y,v)}),ht.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),p&&p!=="json"&&(m.responseType=n.responseType),s&&([W,S]=uu(s,!0),m.addEventListener("progress",W)),u&&m.upload&&([d,f]=uu(u),m.upload.addEventListener("progress",d),m.upload.addEventListener("loadend",f)),(n.cancelToken||n.signal)&&(c=b=>{m&&(l(!b||b.type?new Po(null,t,m):b),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(c),n.signal&&(n.signal.aborted?c():n.signal.addEventListener("abort",c)));const A=Uq(n.url);if(A&&ra.protocols.indexOf(A)===-1){l(new Ht("Unsupported protocol "+A+":",Ht.ERR_BAD_REQUEST,t));return}m.send(i||null)})},lZ=(t,e)=>{const{length:a}=t=t?t.filter(Boolean):[];if(e||a){let l=new AbortController,n;const i=function(s){if(!n){n=!0,p();const c=s instanceof Error?s:this.reason;l.abort(c instanceof Ht?c:new Po(c instanceof Error?c.message:c))}};let r=e&&setTimeout(()=>{r=null,i(new Ht(`timeout ${e} of ms exceeded`,Ht.ETIMEDOUT))},e);const p=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(s=>{s.unsubscribe?s.unsubscribe(i):s.removeEventListener("abort",i)}),t=null)};t.forEach(s=>s.addEventListener("abort",i));const{signal:u}=l;return u.unsubscribe=()=>ht.asap(p),u}},nZ=function*(t,e){let a=t.byteLength;if(!e||a<e){yield t;return}let l=0,n;for(;l<a;)n=l+e,yield t.slice(l,n),l=n},oZ=async function*(t,e){for await(const a of iZ(t))yield*nZ(a,e)},iZ=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:a,value:l}=await e.read();if(a)break;yield l}}finally{await e.cancel()}},_A=(t,e,a,l)=>{const n=oZ(t,e);let i=0,r,p=u=>{r||(r=!0,l&&l(u))};return new ReadableStream({async pull(u){try{const{done:s,value:c}=await n.next();if(s){p(),u.close();return}let d=c.byteLength;if(a){let W=i+=d;a(W)}u.enqueue(new Uint8Array(c))}catch(s){throw p(s),s}},cancel(u){return p(u),n.return()}},{highWaterMark:2})},su=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",tL=su&&typeof ReadableStream=="function",rZ=su&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),eL=(t,...e)=>{try{return!!t(...e)}catch{return!1}},pZ=tL&&eL(()=>{let t=!1;const e=new Request(ra.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),aL=64*1024,Fd=tL&&eL(()=>ht.isReadableStream(new Response("").body)),cu={stream:Fd&&(t=>t.body)};su&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!cu[e]&&(cu[e]=ht.isFunction(t[e])?a=>a[e]():(a,l)=>{throw new Ht(`Response type '${e}' is not supported`,Ht.ERR_NOT_SUPPORT,l)})})})(new Response);const uZ=async t=>{if(t==null)return 0;if(ht.isBlob(t))return t.size;if(ht.isSpecCompliantForm(t))return(await new Request(ra.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(ht.isArrayBufferView(t)||ht.isArrayBuffer(t))return t.byteLength;if(ht.isURLSearchParams(t)&&(t=t+""),ht.isString(t))return(await rZ(t)).byteLength},sZ=async(t,e)=>{const a=ht.toFiniteNumber(t.getContentLength());return a??uZ(e)},Jd={http:qq,xhr:aZ,fetch:su&&(async t=>{let{url:e,method:a,data:l,signal:n,cancelToken:i,timeout:r,onDownloadProgress:p,onUploadProgress:u,responseType:s,headers:c,withCredentials:d="same-origin",fetchOptions:W}=$A(t);s=s?(s+"").toLowerCase():"text";let f=lZ([n,i&&i.toAbortSignal()],r),S;const h=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let m;try{if(u&&pZ&&a!=="get"&&a!=="head"&&(m=await sZ(c,l))!==0){let y=new Request(e,{method:"POST",body:l,duplex:"half"}),I;if(ht.isFormData(l)&&(I=y.headers.get("content-type"))&&c.setContentType(I),y.body){const[L,w]=DA(m,uu(UA(u)));l=_A(y.body,aL,L,w)}}ht.isString(d)||(d=d?"include":"omit");const g="credentials"in Request.prototype;S=new Request(e,{...W,signal:f,method:a.toUpperCase(),headers:c.normalize().toJSON(),body:l,duplex:"half",credentials:g?d:void 0});let A=await fetch(S);const b=Fd&&(s==="stream"||s==="response");if(Fd&&(p||b&&h)){const y={};["status","statusText","headers"].forEach(C=>{y[C]=A[C]});const I=ht.toFiniteNumber(A.headers.get("content-length")),[L,w]=p&&DA(I,uu(UA(p),!0))||[];A=new Response(_A(A.body,aL,L,()=>{w&&w(),h&&h()}),y)}s=s||"text";let v=await cu[ht.findKey(cu,s)||"text"](A,t);return!b&&h&&h(),await new Promise((y,I)=>{HA(y,I,{data:v,headers:Ra.from(A.headers),status:A.status,statusText:A.statusText,config:t,request:S})})}catch(g){throw h&&h(),g&&g.name==="TypeError"&&/fetch/i.test(g.message)?Object.assign(new Ht("Network Error",Ht.ERR_NETWORK,t,S),{cause:g.cause||g}):Ht.from(g,g&&g.code,t,S)}})};ht.forEach(Jd,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const lL=t=>`- ${t}`,cZ=t=>ht.isFunction(t)||t===null||t===!1,nL={getAdapter:t=>{t=ht.isArray(t)?t:[t];const{length:e}=t;let a,l;const n={};for(let i=0;i<e;i++){a=t[i];let r;if(l=a,!cZ(a)&&(l=Jd[(r=String(a)).toLowerCase()],l===void 0))throw new Ht(`Unknown adapter '${r}'`);if(l)break;n[r||"#"+i]=l}if(!l){const i=Object.entries(n).map(([p,u])=>`adapter ${p} `+(u===!1?"is not supported by the environment":"is not available in the build"));let r=e?i.length>1?`since :
|
|
@@ -246,9 +246,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
246
246
|
top:0 !important;
|
|
247
247
|
right:0 !important;
|
|
248
248
|
pointer-events: none !important;
|
|
249
|
-
`,RG=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],yf={};let ja;function EG(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const a=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(e&&yf[a])return yf[a];const l=window.getComputedStyle(t),n=l.getPropertyValue("box-sizing")||l.getPropertyValue("-moz-box-sizing")||l.getPropertyValue("-webkit-box-sizing"),i=parseFloat(l.getPropertyValue("padding-bottom"))+parseFloat(l.getPropertyValue("padding-top")),r=parseFloat(l.getPropertyValue("border-bottom-width"))+parseFloat(l.getPropertyValue("border-top-width")),p={sizingStyle:RG.map(u=>`${u}:${l.getPropertyValue(u)}`).join(";"),paddingSize:i,borderSize:r,boxSizing:n};return e&&a&&(yf[a]=p),p}function PG(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ja||(ja=document.createElement("textarea"),ja.setAttribute("tab-index","-1"),ja.setAttribute("aria-hidden","true"),document.body.appendChild(ja)),t.getAttribute("wrap")?ja.setAttribute("wrap",t.getAttribute("wrap")):ja.removeAttribute("wrap");const{paddingSize:n,borderSize:i,boxSizing:r,sizingStyle:p}=EG(t,e);ja.setAttribute("style",`${p};${KG}`),ja.value=t.value||t.placeholder||"";let u,s,c,d=ja.scrollHeight;if(r==="border-box"?d+=i:r==="content-box"&&(d-=n),a!==null||l!==null){ja.value=" ";const f=ja.scrollHeight-n;a!==null&&(u=f*a,r==="border-box"&&(u=u+n+i),d=Math.max(u,d)),l!==null&&(s=f*l,r==="border-box"&&(s=s+n+i),c=d>s?"":"hidden",d=Math.min(s,d))}const W={height:`${d}px`,overflowY:c,resize:"none"};return u&&(W.minHeight=`${u}px`),s&&(W.maxHeight=`${s}px`),W}const vf=0,If=1,Cf=2,YG=o.defineComponent({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:QI(),setup(t,e){let{attrs:a,emit:l,expose:n}=e,i,r;const p=o.ref(),u=o.ref({}),s=o.ref(Cf);o.onBeforeUnmount(()=>{fe.cancel(i),fe.cancel(r)});const c=()=>{try{if(p.value&&document.activeElement===p.value.input){const y=p.value.getSelectionStart(),I=p.value.getSelectionEnd(),L=p.value.getScrollTop();p.value.setSelectionRange(y,I),p.value.setScrollTop(L)}}catch{}},d=o.ref(),W=o.ref();o.watchEffect(()=>{const y=t.autoSize||t.autosize;y?(d.value=y.minRows,W.value=y.maxRows):(d.value=void 0,W.value=void 0)});const f=o.computed(()=>!!(t.autoSize||t.autosize)),S=()=>{s.value=vf};o.watch([()=>t.value,d,W,f],()=>{f.value&&S()},{immediate:!0});const h=o.ref();o.watch([s,p],()=>{if(p.value)if(s.value===vf)s.value=If;else if(s.value===If){const y=PG(p.value.input,!1,d.value,W.value);s.value=Cf,h.value=y}else c()},{immediate:!0,flush:"post"});const m=o.getCurrentInstance(),g=o.ref(),A=()=>{fe.cancel(g.value)},b=y=>{s.value===Cf&&(l("resize",y),f.value&&(A(),g.value=fe(()=>{S()})))};o.onBeforeUnmount(()=>{A()}),n({resizeTextarea:()=>{S()},textArea:o.computed(()=>{var y;return(y=p.value)===null||y===void 0?void 0:y.input}),instance:m}),ea(t.autosize===void 0,"Input.TextArea","autosize is deprecated, please use autoSize instead.");const v=()=>{const{prefixCls:y,disabled:I}=t,L=ye(t,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),w=Mt(y,a.class,{[`${y}-disabled`]:I}),C=f.value?h.value:null,k=[a.style,u.value,C],Z=j(j(j({},L),a),{style:k,class:w});return(s.value===vf||s.value===If)&&k.push({overflowX:"hidden",overflowY:"hidden"}),Z.autofocus||delete Z.autofocus,Z.rows===0&&delete Z.rows,o.createVNode(Sr,{onResize:b,disabled:!f.value},{default:()=>[o.createVNode(WW,ct(ct({},Z),{},{ref:p,tag:"textarea"}),null)]})};return()=>v()}});function _I(t,e){return[...t||""].slice(0,e).join("")}function tC(t,e,a,l){let n=a;return t?n=_I(a,l):[...e||""].length<a.length&&[...a||""].length>l&&(n=e),n}const eC=o.defineComponent({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:QI(),setup(t,e){let{attrs:a,expose:l,emit:n}=e;var i;const r=ns(),p=lo.useInject(),u=o.computed(()=>os(p.status,t.status)),s=o.shallowRef((i=t.value)!==null&&i!==void 0?i:t.defaultValue),c=o.shallowRef(),d=o.shallowRef(""),{prefixCls:W,size:f,direction:S}=re("input",t),[h,m]=pf(W),g=En(),A=o.computed(()=>t.showCount===""||t.showCount||!1),b=o.computed(()=>Number(t.maxlength)>0),v=o.shallowRef(!1),y=o.shallowRef(),I=o.shallowRef(0),L=V=>{v.value=!0,y.value=d.value,I.value=V.currentTarget.selectionStart,n("compositionstart",V)},w=V=>{var G;v.value=!1;let U=V.currentTarget.value;if(b.value){const D=I.value>=t.maxlength+1||I.value===((G=y.value)===null||G===void 0?void 0:G.length);U=tC(D,y.value,U,t.maxlength)}U!==d.value&&(E(U),Br(V.currentTarget,V,O,U)),n("compositionend",V)},C=o.getCurrentInstance();o.watch(()=>t.value,()=>{var V;"value"in C.vnode.props,s.value=(V=t.value)!==null&&V!==void 0?V:""});const k=V=>{var G;DI((G=c.value)===null||G===void 0?void 0:G.textArea,V)},Z=()=>{var V,G;(G=(V=c.value)===null||V===void 0?void 0:V.textArea)===null||G===void 0||G.blur()},E=(V,G)=>{s.value!==V&&(t.value===void 0?s.value=V:o.nextTick(()=>{var U,D,B;c.value.textArea.value!==d.value&&((B=(U=c.value)===null||U===void 0?void 0:(D=U.instance).update)===null||B===void 0||B.call(D))}),o.nextTick(()=>{G&&G()}))},z=V=>{V.keyCode===13&&n("pressEnter",V),n("keydown",V)},Y=V=>{const{onBlur:G}=t;G==null||G(V),r.onFieldBlur()},O=V=>{n("update:value",V.target.value),n("change",V),n("input",V),r.onFieldChange()},M=V=>{Br(c.value.textArea,V,O),E("",()=>{k()})},J=V=>{let G=V.target.value;if(s.value!==G){if(b.value){const U=V.target,D=U.selectionStart>=t.maxlength+1||U.selectionStart===G.length||!U.selectionStart;G=tC(D,d.value,G,t.maxlength)}Br(V.currentTarget,V,O,G),E(G)}},F=()=>{var V,G;const{class:U}=a,{bordered:D=!0}=t,B=j(j(j({},ye(t,["allowClear"])),a),{class:[{[`${W.value}-borderless`]:!D,[`${U}`]:U&&!A.value,[`${W.value}-sm`]:f.value==="small",[`${W.value}-lg`]:f.value==="large"},oi(W.value,u.value),m.value],disabled:g.value,showCount:null,prefixCls:W.value,onInput:J,onChange:J,onBlur:Y,onKeydown:z,onCompositionstart:L,onCompositionend:w});return!((V=t.valueModifiers)===null||V===void 0)&&V.lazy&&delete B.onInput,o.createVNode(YG,ct(ct({},B),{},{id:(G=B==null?void 0:B.id)!==null&&G!==void 0?G:r.id.value,ref:c,maxlength:t.maxlength,lazy:t.lazy}),null)};return l({focus:k,blur:Z,resizableTextArea:c}),o.watchEffect(()=>{let V=bf(s.value);!v.value&&b.value&&(t.value===null||t.value===void 0)&&(V=_I(V,t.maxlength)),d.value=V}),()=>{var V;const{maxlength:G,bordered:U=!0,hidden:D}=t,{style:B,class:H}=a,pt=j(j(j({},t),a),{prefixCls:W.value,inputType:"text",handleReset:M,direction:S.value,bordered:U,style:A.value?void 0:B,hashId:m.value,disabled:(V=t.disabled)!==null&&V!==void 0?V:g.value});let K=o.createVNode(MG,ct(ct({},pt),{},{value:d.value,status:t.status}),{element:F});if(A.value||p.hasFeedback){const T=[...d.value].length;let q="";typeof A.value=="object"?q=A.value.formatter({value:d.value,count:T,maxlength:G}):q=`${T}${b.value?` / ${G}`:""}`,K=o.createVNode("div",{hidden:D,class:Mt(`${W.value}-textarea`,{[`${W.value}-textarea-rtl`]:S.value==="rtl",[`${W.value}-textarea-show-count`]:A.value,[`${W.value}-textarea-in-form-item`]:p.isFormItemInput},`${W.value}-textarea-show-count`,H,m.value),style:B,"data-count":typeof q!="object"?q:void 0},[K,p.hasFeedback&&o.createVNode("span",{class:`${W.value}-textarea-suffix`},[p.feedbackIcon])])}return h(K)}}});var GG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};function aC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){XG(t,n,a[n])})}return t}function XG(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Os=function(t,e){var a=aC({},t,e.attrs);return o.createVNode(Ft,aC({},a,{icon:GG}),null)};Os.displayName="EyeOutlined",Os.inheritAttrs=!1;var FG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};function lC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){JG(t,n,a[n])})}return t}function JG(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var xf=function(t,e){var a=lC({},t,e.attrs);return o.createVNode(Ft,lC({},a,{icon:FG}),null)};xf.displayName="EyeInvisibleOutlined",xf.inheritAttrs=!1;var HG=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const DG={click:"onClick",hover:"onMouseover"},UG=t=>t?o.createVNode(Os,null,null):o.createVNode(xf,null,null),BG=o.defineComponent({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:j(j({},ws()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(t,e){let{slots:a,attrs:l,expose:n,emit:i}=e;const r=o.shallowRef(!1),p=()=>{const{disabled:S}=t;S||(r.value=!r.value,i("update:visible",r.value))};o.watchEffect(()=>{t.visible!==void 0&&(r.value=!!t.visible)});const u=o.shallowRef();n({focus:()=>{var S;(S=u.value)===null||S===void 0||S.focus()},blur:()=>{var S;(S=u.value)===null||S===void 0||S.blur()}});const s=S=>{const{action:h,iconRender:m=a.iconRender||UG}=t,g=DG[h]||"",A=m(r.value),b={[g]:p,class:`${S}-icon`,key:"passwordIcon",onMousedown:v=>{v.preventDefault()},onMouseup:v=>{v.preventDefault()}};return We(wl(A)?A:o.createVNode("span",null,[A]),b)},{prefixCls:c,getPrefixCls:d}=re("input-password",t),W=o.computed(()=>d("input",t.inputPrefixCls)),f=()=>{const{size:S,visibilityToggle:h}=t,m=HG(t,["size","visibilityToggle"]),g=h&&s(c.value),A=Mt(c.value,l.class,{[`${c.value}-${S}`]:!!S}),b=j(j(j({},ye(m,["suffix","iconRender","action"])),l),{type:r.value?"text":"password",class:A,prefixCls:W.value,suffix:g});return S&&(b.size=S),o.createVNode(ze,ct({ref:u},b),a)};return()=>f()}});ze.Group=ZG,ze.Search=VG,ze.TextArea=eC,ze.Password=BG,ze.install=function(t){return t.component(ze.name,ze),t.component(ze.Group.name,ze.Group),t.component(ze.Search.name,ze.Search),t.component(ze.TextArea.name,ze.TextArea),t.component(ze.Password.name,ze.Password),t};var QG=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const $G={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},nC=o.defineComponent({compatConfig:{MODE:3},name:"TransButton",inheritAttrs:!1,props:{noStyle:{type:Boolean,default:void 0},onClick:Function,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0}},setup(t,e){let{slots:a,emit:l,attrs:n,expose:i}=e;const r=o.shallowRef(),p=W=>{const{keyCode:f}=W;f===qt.ENTER&&W.preventDefault()},u=W=>{const{keyCode:f}=W;f===qt.ENTER&&l("click",W)},s=W=>{l("click",W)},c=()=>{r.value&&r.value.focus()},d=()=>{r.value&&r.value.blur()};return o.onMounted(()=>{t.autofocus&&c()}),i({focus:c,blur:d}),()=>{var W;const{noStyle:f,disabled:S}=t,h=QG(t,["noStyle","disabled"]);let m={};return f||(m=j({},$G)),S&&(m.pointerEvents="none"),o.createVNode("div",ct(ct(ct({role:"button",tabindex:0,ref:r},h),n),{},{onClick:s,onKeydown:p,onKeyup:u,style:j(j({},m),n.style||{})}),[(W=a.default)===null||W===void 0?void 0:W.call(a)])}}}),_G=["normal","exception","active","success"],ks=()=>({prefixCls:String,type:qe(),percent:Number,format:Ut(),status:qe(),showInfo:le(),strokeWidth:Number,strokeLinecap:qe(),strokeColor:Fe(),trailColor:String,width:Number,success:_t(),gapDegree:Number,gapPosition:qe(),size:Ea([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:qe()});function uo(t){return!t||t<0?0:t>100?100:t}function js(t){let{success:e,successPercent:a}=t,l=a;return e&&"progress"in e&&(Ae(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),l=e.progress),e&&"percent"in e&&(l=e.percent),l}function tX(t){let{percent:e,success:a,successPercent:l}=t;const n=uo(js({success:a,successPercent:l}));return[n,uo(uo(e)-n)]}function eX(t){let{success:e={},strokeColor:a}=t;const{strokeColor:l}=e;return[l||Qo.green,a||null]}const qs=(t,e,a)=>{var l,n,i,r;let p=-1,u=-1;if(e==="step"){const s=a.steps,c=a.strokeWidth;typeof t=="string"||typeof t>"u"?(p=t==="small"?2:14,u=c??8):typeof t=="number"?[p,u]=[t,t]:[p=14,u=8]=t,p*=s}else if(e==="line"){const s=a==null?void 0:a.strokeWidth;typeof t=="string"||typeof t>"u"?u=s||(t==="small"?6:8):typeof t=="number"?[p,u]=[t,t]:[p=-1,u=8]=t}else(e==="circle"||e==="dashboard")&&(typeof t=="string"||typeof t>"u"?[p,u]=t==="small"?[60,60]:[120,120]:typeof t=="number"?[p,u]=[t,t]:(process.env.NODE_ENV!=="production"&&Ae(!1,"Progress",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'),p=(n=(l=t[0])!==null&&l!==void 0?l:t[1])!==null&&n!==void 0?n:120,u=(r=(i=t[0])!==null&&i!==void 0?i:t[1])!==null&&r!==void 0?r:120));return{width:p,height:u}};var aX=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const lX=()=>j(j({},ks()),{strokeColor:Fe(),direction:qe()}),nX=t=>{let e=[];return Object.keys(t).forEach(a=>{const l=parseFloat(a.replace(/%/g,""));isNaN(l)||e.push({key:l,value:t[a]})}),e=e.sort((a,l)=>a.key-l.key),e.map(a=>{let{key:l,value:n}=a;return`${n} ${l}%`}).join(", ")},oX=(t,e)=>{const{from:a=Qo.blue,to:l=Qo.blue,direction:n=e==="rtl"?"to left":"to right"}=t,i=aX(t,["from","to","direction"]);if(Object.keys(i).length!==0){const r=nX(i);return{backgroundImage:`linear-gradient(${n}, ${r})`}}return{backgroundImage:`linear-gradient(${n}, ${a}, ${l})`}},iX=o.defineComponent({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:lX(),setup(t,e){let{slots:a,attrs:l}=e;const n=o.computed(()=>{const{strokeColor:f,direction:S}=t;return f&&typeof f!="string"?oX(f,S):{backgroundColor:f}}),i=o.computed(()=>t.strokeLinecap==="square"||t.strokeLinecap==="butt"?0:void 0),r=o.computed(()=>t.trailColor?{backgroundColor:t.trailColor}:void 0),p=o.computed(()=>{var f;return(f=t.size)!==null&&f!==void 0?f:[-1,t.strokeWidth||(t.size==="small"?6:8)]}),u=o.computed(()=>qs(p.value,"line",{strokeWidth:t.strokeWidth}));process.env.NODE_ENV!=="production"&&Ae("strokeWidth"in t,"Progress","`strokeWidth` is deprecated. Please use `size` instead.");const s=o.computed(()=>{const{percent:f}=t;return j({width:`${uo(f)}%`,height:`${u.value.height}px`,borderRadius:i.value},n.value)}),c=o.computed(()=>js(t)),d=o.computed(()=>{const{success:f}=t;return{width:`${uo(c.value)}%`,height:`${u.value.height}px`,borderRadius:i.value,backgroundColor:f==null?void 0:f.strokeColor}}),W={width:u.value.width<0?"100%":u.value.width,height:`${u.value.height}px`};return()=>{var f;return o.createVNode(o.Fragment,null,[o.createVNode("div",ct(ct({},l),{},{class:[`${t.prefixCls}-outer`,l.class],style:[l.style,W]}),[o.createVNode("div",{class:`${t.prefixCls}-inner`,style:r.value},[o.createVNode("div",{class:`${t.prefixCls}-bg`,style:s.value},null),c.value!==void 0?o.createVNode("div",{class:`${t.prefixCls}-success-bg`,style:d.value},null):null])]),(f=a.default)===null||f===void 0?void 0:f.call(a)])}}}),rX={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},pX=t=>{const e=o.ref(null);return o.onUpdated(()=>{const a=Date.now();let l=!1;t.value.forEach(n=>{const i=(n==null?void 0:n.$el)||n;if(!i)return;l=!0;const r=i.style;r.transitionDuration=".3s, .3s, .3s, .06s",e.value&&a-e.value<100&&(r.transitionDuration="0s, 0s")}),l&&(e.value=Date.now())}),t},uX={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var sX=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};let oC=0;function iC(t){return+t.replace("%","")}function rC(t){return Array.isArray(t)?t:[t]}function pC(t,e,a,l){let n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0;const r=50-l/2;let p=0,u=-r,s=0,c=-2*r;switch(i){case"left":p=-r,u=0,s=2*r,c=0;break;case"right":p=r,u=0,s=-2*r,c=0;break;case"bottom":u=r,c=2*r;break}const d=`M 50,50 m ${p},${u}
|
|
249
|
+
`,RG=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],yf={};let ja;function EG(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const a=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(e&&yf[a])return yf[a];const l=window.getComputedStyle(t),n=l.getPropertyValue("box-sizing")||l.getPropertyValue("-moz-box-sizing")||l.getPropertyValue("-webkit-box-sizing"),i=parseFloat(l.getPropertyValue("padding-bottom"))+parseFloat(l.getPropertyValue("padding-top")),r=parseFloat(l.getPropertyValue("border-bottom-width"))+parseFloat(l.getPropertyValue("border-top-width")),p={sizingStyle:RG.map(u=>`${u}:${l.getPropertyValue(u)}`).join(";"),paddingSize:i,borderSize:r,boxSizing:n};return e&&a&&(yf[a]=p),p}function PG(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ja||(ja=document.createElement("textarea"),ja.setAttribute("tab-index","-1"),ja.setAttribute("aria-hidden","true"),document.body.appendChild(ja)),t.getAttribute("wrap")?ja.setAttribute("wrap",t.getAttribute("wrap")):ja.removeAttribute("wrap");const{paddingSize:n,borderSize:i,boxSizing:r,sizingStyle:p}=EG(t,e);ja.setAttribute("style",`${p};${KG}`),ja.value=t.value||t.placeholder||"";let u,s,c,d=ja.scrollHeight;if(r==="border-box"?d+=i:r==="content-box"&&(d-=n),a!==null||l!==null){ja.value=" ";const f=ja.scrollHeight-n;a!==null&&(u=f*a,r==="border-box"&&(u=u+n+i),d=Math.max(u,d)),l!==null&&(s=f*l,r==="border-box"&&(s=s+n+i),c=d>s?"":"hidden",d=Math.min(s,d))}const W={height:`${d}px`,overflowY:c,resize:"none"};return u&&(W.minHeight=`${u}px`),s&&(W.maxHeight=`${s}px`),W}const vf=0,If=1,Cf=2,YG=o.defineComponent({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:QI(),setup(t,e){let{attrs:a,emit:l,expose:n}=e,i,r;const p=o.ref(),u=o.ref({}),s=o.ref(Cf);o.onBeforeUnmount(()=>{fe.cancel(i),fe.cancel(r)});const c=()=>{try{if(p.value&&document.activeElement===p.value.input){const y=p.value.getSelectionStart(),I=p.value.getSelectionEnd(),L=p.value.getScrollTop();p.value.setSelectionRange(y,I),p.value.setScrollTop(L)}}catch{}},d=o.ref(),W=o.ref();o.watchEffect(()=>{const y=t.autoSize||t.autosize;y?(d.value=y.minRows,W.value=y.maxRows):(d.value=void 0,W.value=void 0)});const f=o.computed(()=>!!(t.autoSize||t.autosize)),S=()=>{s.value=vf};o.watch([()=>t.value,d,W,f],()=>{f.value&&S()},{immediate:!0});const h=o.ref();o.watch([s,p],()=>{if(p.value)if(s.value===vf)s.value=If;else if(s.value===If){const y=PG(p.value.input,!1,d.value,W.value);s.value=Cf,h.value=y}else c()},{immediate:!0,flush:"post"});const m=o.getCurrentInstance(),g=o.ref(),A=()=>{fe.cancel(g.value)},b=y=>{s.value===Cf&&(l("resize",y),f.value&&(A(),g.value=fe(()=>{S()})))};o.onBeforeUnmount(()=>{A()}),n({resizeTextarea:()=>{S()},textArea:o.computed(()=>{var y;return(y=p.value)===null||y===void 0?void 0:y.input}),instance:m}),ea(t.autosize===void 0,"Input.TextArea","autosize is deprecated, please use autoSize instead.");const v=()=>{const{prefixCls:y,disabled:I}=t,L=ye(t,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),w=Mt(y,a.class,{[`${y}-disabled`]:I}),C=f.value?h.value:null,k=[a.style,u.value,C],Z=j(j(j({},L),a),{style:k,class:w});return(s.value===vf||s.value===If)&&k.push({overflowX:"hidden",overflowY:"hidden"}),Z.autofocus||delete Z.autofocus,Z.rows===0&&delete Z.rows,o.createVNode(Sr,{onResize:b,disabled:!f.value},{default:()=>[o.createVNode(WW,ct(ct({},Z),{},{ref:p,tag:"textarea"}),null)]})};return()=>v()}});function _I(t,e){return[...t||""].slice(0,e).join("")}function t2(t,e,a,l){let n=a;return t?n=_I(a,l):[...e||""].length<a.length&&[...a||""].length>l&&(n=e),n}const e2=o.defineComponent({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:QI(),setup(t,e){let{attrs:a,expose:l,emit:n}=e;var i;const r=ns(),p=lo.useInject(),u=o.computed(()=>os(p.status,t.status)),s=o.shallowRef((i=t.value)!==null&&i!==void 0?i:t.defaultValue),c=o.shallowRef(),d=o.shallowRef(""),{prefixCls:W,size:f,direction:S}=re("input",t),[h,m]=pf(W),g=En(),A=o.computed(()=>t.showCount===""||t.showCount||!1),b=o.computed(()=>Number(t.maxlength)>0),v=o.shallowRef(!1),y=o.shallowRef(),I=o.shallowRef(0),L=V=>{v.value=!0,y.value=d.value,I.value=V.currentTarget.selectionStart,n("compositionstart",V)},w=V=>{var G;v.value=!1;let U=V.currentTarget.value;if(b.value){const D=I.value>=t.maxlength+1||I.value===((G=y.value)===null||G===void 0?void 0:G.length);U=t2(D,y.value,U,t.maxlength)}U!==d.value&&(E(U),Br(V.currentTarget,V,O,U)),n("compositionend",V)},C=o.getCurrentInstance();o.watch(()=>t.value,()=>{var V;"value"in C.vnode.props,s.value=(V=t.value)!==null&&V!==void 0?V:""});const k=V=>{var G;DI((G=c.value)===null||G===void 0?void 0:G.textArea,V)},Z=()=>{var V,G;(G=(V=c.value)===null||V===void 0?void 0:V.textArea)===null||G===void 0||G.blur()},E=(V,G)=>{s.value!==V&&(t.value===void 0?s.value=V:o.nextTick(()=>{var U,D,B;c.value.textArea.value!==d.value&&((B=(U=c.value)===null||U===void 0?void 0:(D=U.instance).update)===null||B===void 0||B.call(D))}),o.nextTick(()=>{G&&G()}))},z=V=>{V.keyCode===13&&n("pressEnter",V),n("keydown",V)},Y=V=>{const{onBlur:G}=t;G==null||G(V),r.onFieldBlur()},O=V=>{n("update:value",V.target.value),n("change",V),n("input",V),r.onFieldChange()},M=V=>{Br(c.value.textArea,V,O),E("",()=>{k()})},J=V=>{let G=V.target.value;if(s.value!==G){if(b.value){const U=V.target,D=U.selectionStart>=t.maxlength+1||U.selectionStart===G.length||!U.selectionStart;G=t2(D,d.value,G,t.maxlength)}Br(V.currentTarget,V,O,G),E(G)}},F=()=>{var V,G;const{class:U}=a,{bordered:D=!0}=t,B=j(j(j({},ye(t,["allowClear"])),a),{class:[{[`${W.value}-borderless`]:!D,[`${U}`]:U&&!A.value,[`${W.value}-sm`]:f.value==="small",[`${W.value}-lg`]:f.value==="large"},oi(W.value,u.value),m.value],disabled:g.value,showCount:null,prefixCls:W.value,onInput:J,onChange:J,onBlur:Y,onKeydown:z,onCompositionstart:L,onCompositionend:w});return!((V=t.valueModifiers)===null||V===void 0)&&V.lazy&&delete B.onInput,o.createVNode(YG,ct(ct({},B),{},{id:(G=B==null?void 0:B.id)!==null&&G!==void 0?G:r.id.value,ref:c,maxlength:t.maxlength,lazy:t.lazy}),null)};return l({focus:k,blur:Z,resizableTextArea:c}),o.watchEffect(()=>{let V=bf(s.value);!v.value&&b.value&&(t.value===null||t.value===void 0)&&(V=_I(V,t.maxlength)),d.value=V}),()=>{var V;const{maxlength:G,bordered:U=!0,hidden:D}=t,{style:B,class:H}=a,pt=j(j(j({},t),a),{prefixCls:W.value,inputType:"text",handleReset:M,direction:S.value,bordered:U,style:A.value?void 0:B,hashId:m.value,disabled:(V=t.disabled)!==null&&V!==void 0?V:g.value});let K=o.createVNode(MG,ct(ct({},pt),{},{value:d.value,status:t.status}),{element:F});if(A.value||p.hasFeedback){const T=[...d.value].length;let q="";typeof A.value=="object"?q=A.value.formatter({value:d.value,count:T,maxlength:G}):q=`${T}${b.value?` / ${G}`:""}`,K=o.createVNode("div",{hidden:D,class:Mt(`${W.value}-textarea`,{[`${W.value}-textarea-rtl`]:S.value==="rtl",[`${W.value}-textarea-show-count`]:A.value,[`${W.value}-textarea-in-form-item`]:p.isFormItemInput},`${W.value}-textarea-show-count`,H,m.value),style:B,"data-count":typeof q!="object"?q:void 0},[K,p.hasFeedback&&o.createVNode("span",{class:`${W.value}-textarea-suffix`},[p.feedbackIcon])])}return h(K)}}});var GG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};function a2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){XG(t,n,a[n])})}return t}function XG(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Os=function(t,e){var a=a2({},t,e.attrs);return o.createVNode(Ft,a2({},a,{icon:GG}),null)};Os.displayName="EyeOutlined",Os.inheritAttrs=!1;var FG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};function l2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){JG(t,n,a[n])})}return t}function JG(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var xf=function(t,e){var a=l2({},t,e.attrs);return o.createVNode(Ft,l2({},a,{icon:FG}),null)};xf.displayName="EyeInvisibleOutlined",xf.inheritAttrs=!1;var HG=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const DG={click:"onClick",hover:"onMouseover"},UG=t=>t?o.createVNode(Os,null,null):o.createVNode(xf,null,null),BG=o.defineComponent({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:j(j({},ws()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(t,e){let{slots:a,attrs:l,expose:n,emit:i}=e;const r=o.shallowRef(!1),p=()=>{const{disabled:S}=t;S||(r.value=!r.value,i("update:visible",r.value))};o.watchEffect(()=>{t.visible!==void 0&&(r.value=!!t.visible)});const u=o.shallowRef();n({focus:()=>{var S;(S=u.value)===null||S===void 0||S.focus()},blur:()=>{var S;(S=u.value)===null||S===void 0||S.blur()}});const s=S=>{const{action:h,iconRender:m=a.iconRender||UG}=t,g=DG[h]||"",A=m(r.value),b={[g]:p,class:`${S}-icon`,key:"passwordIcon",onMousedown:v=>{v.preventDefault()},onMouseup:v=>{v.preventDefault()}};return We(wl(A)?A:o.createVNode("span",null,[A]),b)},{prefixCls:c,getPrefixCls:d}=re("input-password",t),W=o.computed(()=>d("input",t.inputPrefixCls)),f=()=>{const{size:S,visibilityToggle:h}=t,m=HG(t,["size","visibilityToggle"]),g=h&&s(c.value),A=Mt(c.value,l.class,{[`${c.value}-${S}`]:!!S}),b=j(j(j({},ye(m,["suffix","iconRender","action"])),l),{type:r.value?"text":"password",class:A,prefixCls:W.value,suffix:g});return S&&(b.size=S),o.createVNode(ze,ct({ref:u},b),a)};return()=>f()}});ze.Group=ZG,ze.Search=VG,ze.TextArea=e2,ze.Password=BG,ze.install=function(t){return t.component(ze.name,ze),t.component(ze.Group.name,ze.Group),t.component(ze.Search.name,ze.Search),t.component(ze.TextArea.name,ze.TextArea),t.component(ze.Password.name,ze.Password),t};var QG=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const $G={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},n2=o.defineComponent({compatConfig:{MODE:3},name:"TransButton",inheritAttrs:!1,props:{noStyle:{type:Boolean,default:void 0},onClick:Function,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0}},setup(t,e){let{slots:a,emit:l,attrs:n,expose:i}=e;const r=o.shallowRef(),p=W=>{const{keyCode:f}=W;f===qt.ENTER&&W.preventDefault()},u=W=>{const{keyCode:f}=W;f===qt.ENTER&&l("click",W)},s=W=>{l("click",W)},c=()=>{r.value&&r.value.focus()},d=()=>{r.value&&r.value.blur()};return o.onMounted(()=>{t.autofocus&&c()}),i({focus:c,blur:d}),()=>{var W;const{noStyle:f,disabled:S}=t,h=QG(t,["noStyle","disabled"]);let m={};return f||(m=j({},$G)),S&&(m.pointerEvents="none"),o.createVNode("div",ct(ct(ct({role:"button",tabindex:0,ref:r},h),n),{},{onClick:s,onKeydown:p,onKeyup:u,style:j(j({},m),n.style||{})}),[(W=a.default)===null||W===void 0?void 0:W.call(a)])}}}),_G=["normal","exception","active","success"],ks=()=>({prefixCls:String,type:qe(),percent:Number,format:Ut(),status:qe(),showInfo:le(),strokeWidth:Number,strokeLinecap:qe(),strokeColor:Fe(),trailColor:String,width:Number,success:_t(),gapDegree:Number,gapPosition:qe(),size:Ea([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:qe()});function uo(t){return!t||t<0?0:t>100?100:t}function js(t){let{success:e,successPercent:a}=t,l=a;return e&&"progress"in e&&(Ae(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),l=e.progress),e&&"percent"in e&&(l=e.percent),l}function tX(t){let{percent:e,success:a,successPercent:l}=t;const n=uo(js({success:a,successPercent:l}));return[n,uo(uo(e)-n)]}function eX(t){let{success:e={},strokeColor:a}=t;const{strokeColor:l}=e;return[l||Qo.green,a||null]}const qs=(t,e,a)=>{var l,n,i,r;let p=-1,u=-1;if(e==="step"){const s=a.steps,c=a.strokeWidth;typeof t=="string"||typeof t>"u"?(p=t==="small"?2:14,u=c??8):typeof t=="number"?[p,u]=[t,t]:[p=14,u=8]=t,p*=s}else if(e==="line"){const s=a==null?void 0:a.strokeWidth;typeof t=="string"||typeof t>"u"?u=s||(t==="small"?6:8):typeof t=="number"?[p,u]=[t,t]:[p=-1,u=8]=t}else(e==="circle"||e==="dashboard")&&(typeof t=="string"||typeof t>"u"?[p,u]=t==="small"?[60,60]:[120,120]:typeof t=="number"?[p,u]=[t,t]:(process.env.NODE_ENV!=="production"&&Ae(!1,"Progress",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'),p=(n=(l=t[0])!==null&&l!==void 0?l:t[1])!==null&&n!==void 0?n:120,u=(r=(i=t[0])!==null&&i!==void 0?i:t[1])!==null&&r!==void 0?r:120));return{width:p,height:u}};var aX=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const lX=()=>j(j({},ks()),{strokeColor:Fe(),direction:qe()}),nX=t=>{let e=[];return Object.keys(t).forEach(a=>{const l=parseFloat(a.replace(/%/g,""));isNaN(l)||e.push({key:l,value:t[a]})}),e=e.sort((a,l)=>a.key-l.key),e.map(a=>{let{key:l,value:n}=a;return`${n} ${l}%`}).join(", ")},oX=(t,e)=>{const{from:a=Qo.blue,to:l=Qo.blue,direction:n=e==="rtl"?"to left":"to right"}=t,i=aX(t,["from","to","direction"]);if(Object.keys(i).length!==0){const r=nX(i);return{backgroundImage:`linear-gradient(${n}, ${r})`}}return{backgroundImage:`linear-gradient(${n}, ${a}, ${l})`}},iX=o.defineComponent({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:lX(),setup(t,e){let{slots:a,attrs:l}=e;const n=o.computed(()=>{const{strokeColor:f,direction:S}=t;return f&&typeof f!="string"?oX(f,S):{backgroundColor:f}}),i=o.computed(()=>t.strokeLinecap==="square"||t.strokeLinecap==="butt"?0:void 0),r=o.computed(()=>t.trailColor?{backgroundColor:t.trailColor}:void 0),p=o.computed(()=>{var f;return(f=t.size)!==null&&f!==void 0?f:[-1,t.strokeWidth||(t.size==="small"?6:8)]}),u=o.computed(()=>qs(p.value,"line",{strokeWidth:t.strokeWidth}));process.env.NODE_ENV!=="production"&&Ae("strokeWidth"in t,"Progress","`strokeWidth` is deprecated. Please use `size` instead.");const s=o.computed(()=>{const{percent:f}=t;return j({width:`${uo(f)}%`,height:`${u.value.height}px`,borderRadius:i.value},n.value)}),c=o.computed(()=>js(t)),d=o.computed(()=>{const{success:f}=t;return{width:`${uo(c.value)}%`,height:`${u.value.height}px`,borderRadius:i.value,backgroundColor:f==null?void 0:f.strokeColor}}),W={width:u.value.width<0?"100%":u.value.width,height:`${u.value.height}px`};return()=>{var f;return o.createVNode(o.Fragment,null,[o.createVNode("div",ct(ct({},l),{},{class:[`${t.prefixCls}-outer`,l.class],style:[l.style,W]}),[o.createVNode("div",{class:`${t.prefixCls}-inner`,style:r.value},[o.createVNode("div",{class:`${t.prefixCls}-bg`,style:s.value},null),c.value!==void 0?o.createVNode("div",{class:`${t.prefixCls}-success-bg`,style:d.value},null):null])]),(f=a.default)===null||f===void 0?void 0:f.call(a)])}}}),rX={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},pX=t=>{const e=o.ref(null);return o.onUpdated(()=>{const a=Date.now();let l=!1;t.value.forEach(n=>{const i=(n==null?void 0:n.$el)||n;if(!i)return;l=!0;const r=i.style;r.transitionDuration=".3s, .3s, .3s, .06s",e.value&&a-e.value<100&&(r.transitionDuration="0s, 0s")}),l&&(e.value=Date.now())}),t},uX={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var sX=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};let o2=0;function i2(t){return+t.replace("%","")}function r2(t){return Array.isArray(t)?t:[t]}function p2(t,e,a,l){let n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0;const r=50-l/2;let p=0,u=-r,s=0,c=-2*r;switch(i){case"left":p=-r,u=0,s=2*r,c=0;break;case"right":p=r,u=0,s=-2*r,c=0;break;case"bottom":u=r,c=2*r;break}const d=`M 50,50 m ${p},${u}
|
|
250
250
|
a ${r},${r} 0 1 1 ${s},${-c}
|
|
251
|
-
a ${r},${r} 0 1 1 ${-s},${c}`,W=Math.PI*2*r,f={stroke:a,strokeDasharray:`${e/100*(W-n)}px ${W}px`,strokeDashoffset:`-${n/2+t/100*(W-n)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:d,pathStyle:f}}const cX=o.defineComponent({compatConfig:{MODE:3},name:"VCCircle",props:pa(uX,rX),setup(t){oC+=1;const e=o.ref(oC),a=o.computed(()=>rC(t.percent)),l=o.computed(()=>rC(t.strokeColor)),[n,i]=JP();pX(i);const r=()=>{const{prefixCls:p,strokeWidth:u,strokeLinecap:s,gapDegree:c,gapPosition:d}=t;let W=0;return a.value.map((f,S)=>{const h=l.value[S]||l.value[l.value.length-1],m=Object.prototype.toString.call(h)==="[object Object]"?`url(#${p}-gradient-${e.value})`:"",{pathString:g,pathStyle:A}=pC(W,f,h,u,c,d);W+=f;const b={key:S,d:g,stroke:m,"stroke-linecap":s,"stroke-width":u,opacity:f===0?0:1,"fill-opacity":"0",class:`${p}-circle-path`,style:A};return o.createVNode("path",ct({ref:n(S)},b),null)})};return()=>{const{prefixCls:p,strokeWidth:u,trailWidth:s,gapDegree:c,gapPosition:d,trailColor:W,strokeLinecap:f,strokeColor:S}=t,h=sX(t,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:m,pathStyle:g}=pC(0,100,W,u,c,d);delete h.percent;const A=l.value.find(v=>Object.prototype.toString.call(v)==="[object Object]"),b={d:m,stroke:W,"stroke-linecap":f,"stroke-width":s||u,"fill-opacity":"0",class:`${p}-circle-trail`,style:g};return o.createVNode("svg",ct({class:`${p}-circle`,viewBox:"0 0 100 100"},h),[A&&o.createVNode("defs",null,[o.createVNode("linearGradient",{id:`${p}-gradient-${e.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(A).sort((v,y)=>iC(v)-iC(y)).map((v,y)=>o.createVNode("stop",{key:y,offset:v,"stop-color":A[v]},null))])]),o.createVNode("path",b,null),r().reverse()])}}}),dX=()=>j(j({},ks()),{strokeColor:Fe()}),WX=3,fX=t=>WX/t*100,SX=o.defineComponent({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:pa(dX(),{trailColor:null}),setup(t,e){let{slots:a,attrs:l}=e;const n=o.computed(()=>{var h;return(h=t.width)!==null&&h!==void 0?h:120}),i=o.computed(()=>{var h;return(h=t.size)!==null&&h!==void 0?h:[n.value,n.value]}),r=o.computed(()=>qs(i.value,"circle")),p=o.computed(()=>{if(t.gapDegree||t.gapDegree===0)return t.gapDegree;if(t.type==="dashboard")return 75}),u=o.computed(()=>({width:`${r.value.width}px`,height:`${r.value.height}px`,fontSize:`${r.value.width*.15+6}px`})),s=o.computed(()=>{var h;return(h=t.strokeWidth)!==null&&h!==void 0?h:Math.max(fX(r.value.width),6)}),c=o.computed(()=>t.gapPosition||t.type==="dashboard"&&"bottom"||void 0),d=o.computed(()=>tX(t)),W=o.computed(()=>Object.prototype.toString.call(t.strokeColor)==="[object Object]"),f=o.computed(()=>eX({success:t.success,strokeColor:t.strokeColor})),S=o.computed(()=>({[`${t.prefixCls}-inner`]:!0,[`${t.prefixCls}-circle-gradient`]:W.value}));return()=>{var h;const m=o.createVNode(cX,{percent:d.value,strokeWidth:s.value,trailWidth:s.value,strokeColor:f.value,strokeLinecap:t.strokeLinecap,trailColor:t.trailColor,prefixCls:t.prefixCls,gapDegree:p.value,gapPosition:c.value},null);return o.createVNode("div",ct(ct({},l),{},{class:[S.value,l.class],style:[l.style,u.value]}),[r.value.width<=20?o.createVNode(sn,null,{default:()=>[o.createVNode("span",null,[m])],title:a.default}):o.createVNode(o.Fragment,null,[m,(h=a.default)===null||h===void 0?void 0:h.call(a)])])}}}),hX=()=>j(j({},ks()),{steps:Number,strokeColor:Ea(),trailColor:String}),mX=o.defineComponent({compatConfig:{MODE:3},name:"Steps",props:hX(),setup(t,e){let{slots:a}=e;const l=o.computed(()=>Math.round(t.steps*((t.percent||0)/100))),n=o.computed(()=>{var p;return(p=t.size)!==null&&p!==void 0?p:[t.size==="small"?2:14,t.strokeWidth||8]}),i=o.computed(()=>qs(n.value,"step",{steps:t.steps,strokeWidth:t.strokeWidth||8})),r=o.computed(()=>{const{steps:p,strokeColor:u,trailColor:s,prefixCls:c}=t,d=[];for(let W=0;W<p;W+=1){const f=Array.isArray(u)?u[W]:u,S={[`${c}-steps-item`]:!0,[`${c}-steps-item-active`]:W<=l.value-1};d.push(o.createVNode("div",{key:W,class:S,style:{backgroundColor:W<=l.value-1?f:s,width:`${i.value.width/p}px`,height:`${i.value.height}px`}},null))}return d});return()=>{var p;return o.createVNode("div",{class:`${t.prefixCls}-steps-outer`},[r.value,(p=a.default)===null||p===void 0?void 0:p.call(a)])}}}),gX=new Bt("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),AX=t=>{const{componentCls:e,iconCls:a}=t;return{[e]:j(j({},Ye(t)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:t.fontSize,marginInlineEnd:t.marginXS,marginBottom:t.marginXS},[`${e}-outer`]:{display:"inline-block",width:"100%"},[`&${e}-show-info`]:{[`${e}-outer`]:{marginInlineEnd:`calc(-2em - ${t.marginXS}px)`,paddingInlineEnd:`calc(2em + ${t.paddingXS}px)`}},[`${e}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:t.progressRemainingColor,borderRadius:t.progressLineRadius},[`${e}-inner:not(${e}-circle-gradient)`]:{[`${e}-circle-path`]:{stroke:t.colorInfo}},[`${e}-success-bg, ${e}-bg`]:{position:"relative",backgroundColor:t.colorInfo,borderRadius:t.progressLineRadius,transition:`all ${t.motionDurationSlow} ${t.motionEaseInOutCirc}`},[`${e}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:t.colorSuccess},[`${e}-text`]:{display:"inline-block",width:"2em",marginInlineStart:t.marginXS,color:t.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[a]:{fontSize:t.fontSize}},[`&${e}-status-active`]:{[`${e}-bg::before`]:{position:"absolute",inset:0,backgroundColor:t.colorBgContainer,borderRadius:t.progressLineRadius,opacity:0,animationName:gX,animationDuration:t.progressActiveMotionDuration,animationTimingFunction:t.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${e}-status-exception`]:{[`${e}-bg`]:{backgroundColor:t.colorError},[`${e}-text`]:{color:t.colorError}},[`&${e}-status-exception ${e}-inner:not(${e}-circle-gradient)`]:{[`${e}-circle-path`]:{stroke:t.colorError}},[`&${e}-status-success`]:{[`${e}-bg`]:{backgroundColor:t.colorSuccess},[`${e}-text`]:{color:t.colorSuccess}},[`&${e}-status-success ${e}-inner:not(${e}-circle-gradient)`]:{[`${e}-circle-path`]:{stroke:t.colorSuccess}}})}},LX=t=>{const{componentCls:e,iconCls:a}=t;return{[e]:{[`${e}-circle-trail`]:{stroke:t.progressRemainingColor},[`&${e}-circle ${e}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${e}-circle ${e}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:t.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[a]:{fontSize:`${t.fontSize/t.fontSizeSM}em`}},[`${e}-circle&-status-exception`]:{[`${e}-text`]:{color:t.colorError}},[`${e}-circle&-status-success`]:{[`${e}-text`]:{color:t.colorSuccess}}},[`${e}-inline-circle`]:{lineHeight:1,[`${e}-inner`]:{verticalAlign:"bottom"}}}},bX=t=>{const{componentCls:e}=t;return{[e]:{[`${e}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:t.progressStepMinWidth,marginInlineEnd:t.progressStepMarginInlineEnd,backgroundColor:t.progressRemainingColor,transition:`all ${t.motionDurationSlow}`,"&-active":{backgroundColor:t.colorInfo}}}}}},yX=t=>{const{componentCls:e,iconCls:a}=t;return{[e]:{[`${e}-small&-line, ${e}-small&-line ${e}-text ${a}`]:{fontSize:t.fontSizeSM}}}},vX=Ze("Progress",t=>{const e=t.marginXXS/2,a=ne(t,{progressLineRadius:100,progressInfoTextColor:t.colorText,progressDefaultColor:t.colorInfo,progressRemainingColor:t.colorFillSecondary,progressStepMarginInlineEnd:e,progressStepMinWidth:e,progressActiveMotionDuration:"2.4s"});return[AX(a),LX(a),bX(a),yX(a)]});var IX=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const CX=o.defineComponent({compatConfig:{MODE:3},name:"AProgress",inheritAttrs:!1,props:pa(ks(),{type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",strokeLinecap:"round"}),slots:Object,setup(t,e){let{slots:a,attrs:l}=e;const{prefixCls:n,direction:i}=re("progress",t),[r,p]=vX(n);process.env.NODE_ENV!=="production"&&(Ae("successPercent"in t,"Progress","`successPercent` is deprecated. Please use `success.percent` instead."),Ae("width"in t,"Progress","`width` is deprecated. Please use `size` instead."));const u=o.computed(()=>Array.isArray(t.strokeColor)?t.strokeColor[0]:t.strokeColor),s=o.computed(()=>{const{percent:S=0}=t,h=js(t);return parseInt(h!==void 0?h.toString():S.toString(),10)}),c=o.computed(()=>{const{status:S}=t;return!_G.includes(S)&&s.value>=100?"success":S||"normal"}),d=o.computed(()=>{const{type:S,showInfo:h,size:m}=t,g=n.value;return{[g]:!0,[`${g}-inline-circle`]:S==="circle"&&qs(m,"circle").width<=20,[`${g}-${S==="dashboard"&&"circle"||S}`]:!0,[`${g}-status-${c.value}`]:!0,[`${g}-show-info`]:h,[`${g}-${m}`]:m,[`${g}-rtl`]:i.value==="rtl",[p.value]:!0}}),W=o.computed(()=>typeof t.strokeColor=="string"||Array.isArray(t.strokeColor)?t.strokeColor:void 0),f=()=>{const{showInfo:S,format:h,type:m,percent:g,title:A}=t,b=js(t);if(!S)return null;let v;const y=h||(a==null?void 0:a.format)||(L=>`${L}%`),I=m==="line";return h||a!=null&&a.format||c.value!=="exception"&&c.value!=="success"?v=y(uo(g),uo(b)):c.value==="exception"?v=I?o.createVNode(Ja,null,null):o.createVNode(un,null,null):c.value==="success"&&(v=I?o.createVNode(no,null,null):o.createVNode(Er,null,null)),o.createVNode("span",{class:`${n.value}-text`,title:A===void 0&&typeof v=="string"?v:void 0},[v])};return()=>{const{type:S,steps:h,title:m}=t,{class:g}=l,A=IX(l,["class"]),b=f();let v;return S==="line"?v=h?o.createVNode(mX,ct(ct({},t),{},{strokeColor:W.value,prefixCls:n.value,steps:h}),{default:()=>[b]}):o.createVNode(iX,ct(ct({},t),{},{strokeColor:u.value,prefixCls:n.value,direction:i.value}),{default:()=>[b]}):(S==="circle"||S==="dashboard")&&(v=o.createVNode(SX,ct(ct({},t),{},{prefixCls:n.value,strokeColor:u.value,progressStatus:c.value}),{default:()=>[b]})),r(o.createVNode("div",ct(ct({role:"progressbar"},A),{},{class:[d.value,g],title:m}),[v]))}}}),uC=an(CX);var xX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function sC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){wX(t,n,a[n])})}return t}function wX(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var wf=function(t,e){var a=sC({},t,e.attrs);return o.createVNode(Ft,sC({},a,{icon:xX}),null)};wf.displayName="DeleteOutlined",wf.inheritAttrs=!1;var OX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function cC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){kX(t,n,a[n])})}return t}function kX(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Of=function(t,e){var a=cC({},t,e.attrs);return o.createVNode(Ft,cC({},a,{icon:OX}),null)};Of.displayName="EnterOutlined",Of.inheritAttrs=!1;const jX=(t,e,a,l)=>{const{sizeMarginHeadingVerticalEnd:n,fontWeightStrong:i}=l;return{marginBottom:n,color:a,fontWeight:i,fontSize:t,lineHeight:e}},qX=t=>{const e=[1,2,3,4,5],a={};return e.forEach(l=>{a[`
|
|
251
|
+
a ${r},${r} 0 1 1 ${-s},${c}`,W=Math.PI*2*r,f={stroke:a,strokeDasharray:`${e/100*(W-n)}px ${W}px`,strokeDashoffset:`-${n/2+t/100*(W-n)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:d,pathStyle:f}}const cX=o.defineComponent({compatConfig:{MODE:3},name:"VCCircle",props:pa(uX,rX),setup(t){o2+=1;const e=o.ref(o2),a=o.computed(()=>r2(t.percent)),l=o.computed(()=>r2(t.strokeColor)),[n,i]=JP();pX(i);const r=()=>{const{prefixCls:p,strokeWidth:u,strokeLinecap:s,gapDegree:c,gapPosition:d}=t;let W=0;return a.value.map((f,S)=>{const h=l.value[S]||l.value[l.value.length-1],m=Object.prototype.toString.call(h)==="[object Object]"?`url(#${p}-gradient-${e.value})`:"",{pathString:g,pathStyle:A}=p2(W,f,h,u,c,d);W+=f;const b={key:S,d:g,stroke:m,"stroke-linecap":s,"stroke-width":u,opacity:f===0?0:1,"fill-opacity":"0",class:`${p}-circle-path`,style:A};return o.createVNode("path",ct({ref:n(S)},b),null)})};return()=>{const{prefixCls:p,strokeWidth:u,trailWidth:s,gapDegree:c,gapPosition:d,trailColor:W,strokeLinecap:f,strokeColor:S}=t,h=sX(t,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:m,pathStyle:g}=p2(0,100,W,u,c,d);delete h.percent;const A=l.value.find(v=>Object.prototype.toString.call(v)==="[object Object]"),b={d:m,stroke:W,"stroke-linecap":f,"stroke-width":s||u,"fill-opacity":"0",class:`${p}-circle-trail`,style:g};return o.createVNode("svg",ct({class:`${p}-circle`,viewBox:"0 0 100 100"},h),[A&&o.createVNode("defs",null,[o.createVNode("linearGradient",{id:`${p}-gradient-${e.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(A).sort((v,y)=>i2(v)-i2(y)).map((v,y)=>o.createVNode("stop",{key:y,offset:v,"stop-color":A[v]},null))])]),o.createVNode("path",b,null),r().reverse()])}}}),dX=()=>j(j({},ks()),{strokeColor:Fe()}),WX=3,fX=t=>WX/t*100,SX=o.defineComponent({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:pa(dX(),{trailColor:null}),setup(t,e){let{slots:a,attrs:l}=e;const n=o.computed(()=>{var h;return(h=t.width)!==null&&h!==void 0?h:120}),i=o.computed(()=>{var h;return(h=t.size)!==null&&h!==void 0?h:[n.value,n.value]}),r=o.computed(()=>qs(i.value,"circle")),p=o.computed(()=>{if(t.gapDegree||t.gapDegree===0)return t.gapDegree;if(t.type==="dashboard")return 75}),u=o.computed(()=>({width:`${r.value.width}px`,height:`${r.value.height}px`,fontSize:`${r.value.width*.15+6}px`})),s=o.computed(()=>{var h;return(h=t.strokeWidth)!==null&&h!==void 0?h:Math.max(fX(r.value.width),6)}),c=o.computed(()=>t.gapPosition||t.type==="dashboard"&&"bottom"||void 0),d=o.computed(()=>tX(t)),W=o.computed(()=>Object.prototype.toString.call(t.strokeColor)==="[object Object]"),f=o.computed(()=>eX({success:t.success,strokeColor:t.strokeColor})),S=o.computed(()=>({[`${t.prefixCls}-inner`]:!0,[`${t.prefixCls}-circle-gradient`]:W.value}));return()=>{var h;const m=o.createVNode(cX,{percent:d.value,strokeWidth:s.value,trailWidth:s.value,strokeColor:f.value,strokeLinecap:t.strokeLinecap,trailColor:t.trailColor,prefixCls:t.prefixCls,gapDegree:p.value,gapPosition:c.value},null);return o.createVNode("div",ct(ct({},l),{},{class:[S.value,l.class],style:[l.style,u.value]}),[r.value.width<=20?o.createVNode(sn,null,{default:()=>[o.createVNode("span",null,[m])],title:a.default}):o.createVNode(o.Fragment,null,[m,(h=a.default)===null||h===void 0?void 0:h.call(a)])])}}}),hX=()=>j(j({},ks()),{steps:Number,strokeColor:Ea(),trailColor:String}),mX=o.defineComponent({compatConfig:{MODE:3},name:"Steps",props:hX(),setup(t,e){let{slots:a}=e;const l=o.computed(()=>Math.round(t.steps*((t.percent||0)/100))),n=o.computed(()=>{var p;return(p=t.size)!==null&&p!==void 0?p:[t.size==="small"?2:14,t.strokeWidth||8]}),i=o.computed(()=>qs(n.value,"step",{steps:t.steps,strokeWidth:t.strokeWidth||8})),r=o.computed(()=>{const{steps:p,strokeColor:u,trailColor:s,prefixCls:c}=t,d=[];for(let W=0;W<p;W+=1){const f=Array.isArray(u)?u[W]:u,S={[`${c}-steps-item`]:!0,[`${c}-steps-item-active`]:W<=l.value-1};d.push(o.createVNode("div",{key:W,class:S,style:{backgroundColor:W<=l.value-1?f:s,width:`${i.value.width/p}px`,height:`${i.value.height}px`}},null))}return d});return()=>{var p;return o.createVNode("div",{class:`${t.prefixCls}-steps-outer`},[r.value,(p=a.default)===null||p===void 0?void 0:p.call(a)])}}}),gX=new Bt("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),AX=t=>{const{componentCls:e,iconCls:a}=t;return{[e]:j(j({},Ye(t)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:t.fontSize,marginInlineEnd:t.marginXS,marginBottom:t.marginXS},[`${e}-outer`]:{display:"inline-block",width:"100%"},[`&${e}-show-info`]:{[`${e}-outer`]:{marginInlineEnd:`calc(-2em - ${t.marginXS}px)`,paddingInlineEnd:`calc(2em + ${t.paddingXS}px)`}},[`${e}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:t.progressRemainingColor,borderRadius:t.progressLineRadius},[`${e}-inner:not(${e}-circle-gradient)`]:{[`${e}-circle-path`]:{stroke:t.colorInfo}},[`${e}-success-bg, ${e}-bg`]:{position:"relative",backgroundColor:t.colorInfo,borderRadius:t.progressLineRadius,transition:`all ${t.motionDurationSlow} ${t.motionEaseInOutCirc}`},[`${e}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:t.colorSuccess},[`${e}-text`]:{display:"inline-block",width:"2em",marginInlineStart:t.marginXS,color:t.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[a]:{fontSize:t.fontSize}},[`&${e}-status-active`]:{[`${e}-bg::before`]:{position:"absolute",inset:0,backgroundColor:t.colorBgContainer,borderRadius:t.progressLineRadius,opacity:0,animationName:gX,animationDuration:t.progressActiveMotionDuration,animationTimingFunction:t.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${e}-status-exception`]:{[`${e}-bg`]:{backgroundColor:t.colorError},[`${e}-text`]:{color:t.colorError}},[`&${e}-status-exception ${e}-inner:not(${e}-circle-gradient)`]:{[`${e}-circle-path`]:{stroke:t.colorError}},[`&${e}-status-success`]:{[`${e}-bg`]:{backgroundColor:t.colorSuccess},[`${e}-text`]:{color:t.colorSuccess}},[`&${e}-status-success ${e}-inner:not(${e}-circle-gradient)`]:{[`${e}-circle-path`]:{stroke:t.colorSuccess}}})}},LX=t=>{const{componentCls:e,iconCls:a}=t;return{[e]:{[`${e}-circle-trail`]:{stroke:t.progressRemainingColor},[`&${e}-circle ${e}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${e}-circle ${e}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:t.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[a]:{fontSize:`${t.fontSize/t.fontSizeSM}em`}},[`${e}-circle&-status-exception`]:{[`${e}-text`]:{color:t.colorError}},[`${e}-circle&-status-success`]:{[`${e}-text`]:{color:t.colorSuccess}}},[`${e}-inline-circle`]:{lineHeight:1,[`${e}-inner`]:{verticalAlign:"bottom"}}}},bX=t=>{const{componentCls:e}=t;return{[e]:{[`${e}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:t.progressStepMinWidth,marginInlineEnd:t.progressStepMarginInlineEnd,backgroundColor:t.progressRemainingColor,transition:`all ${t.motionDurationSlow}`,"&-active":{backgroundColor:t.colorInfo}}}}}},yX=t=>{const{componentCls:e,iconCls:a}=t;return{[e]:{[`${e}-small&-line, ${e}-small&-line ${e}-text ${a}`]:{fontSize:t.fontSizeSM}}}},vX=Ze("Progress",t=>{const e=t.marginXXS/2,a=ne(t,{progressLineRadius:100,progressInfoTextColor:t.colorText,progressDefaultColor:t.colorInfo,progressRemainingColor:t.colorFillSecondary,progressStepMarginInlineEnd:e,progressStepMinWidth:e,progressActiveMotionDuration:"2.4s"});return[AX(a),LX(a),bX(a),yX(a)]});var IX=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const CX=o.defineComponent({compatConfig:{MODE:3},name:"AProgress",inheritAttrs:!1,props:pa(ks(),{type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",strokeLinecap:"round"}),slots:Object,setup(t,e){let{slots:a,attrs:l}=e;const{prefixCls:n,direction:i}=re("progress",t),[r,p]=vX(n);process.env.NODE_ENV!=="production"&&(Ae("successPercent"in t,"Progress","`successPercent` is deprecated. Please use `success.percent` instead."),Ae("width"in t,"Progress","`width` is deprecated. Please use `size` instead."));const u=o.computed(()=>Array.isArray(t.strokeColor)?t.strokeColor[0]:t.strokeColor),s=o.computed(()=>{const{percent:S=0}=t,h=js(t);return parseInt(h!==void 0?h.toString():S.toString(),10)}),c=o.computed(()=>{const{status:S}=t;return!_G.includes(S)&&s.value>=100?"success":S||"normal"}),d=o.computed(()=>{const{type:S,showInfo:h,size:m}=t,g=n.value;return{[g]:!0,[`${g}-inline-circle`]:S==="circle"&&qs(m,"circle").width<=20,[`${g}-${S==="dashboard"&&"circle"||S}`]:!0,[`${g}-status-${c.value}`]:!0,[`${g}-show-info`]:h,[`${g}-${m}`]:m,[`${g}-rtl`]:i.value==="rtl",[p.value]:!0}}),W=o.computed(()=>typeof t.strokeColor=="string"||Array.isArray(t.strokeColor)?t.strokeColor:void 0),f=()=>{const{showInfo:S,format:h,type:m,percent:g,title:A}=t,b=js(t);if(!S)return null;let v;const y=h||(a==null?void 0:a.format)||(L=>`${L}%`),I=m==="line";return h||a!=null&&a.format||c.value!=="exception"&&c.value!=="success"?v=y(uo(g),uo(b)):c.value==="exception"?v=I?o.createVNode(Ja,null,null):o.createVNode(un,null,null):c.value==="success"&&(v=I?o.createVNode(no,null,null):o.createVNode(Er,null,null)),o.createVNode("span",{class:`${n.value}-text`,title:A===void 0&&typeof v=="string"?v:void 0},[v])};return()=>{const{type:S,steps:h,title:m}=t,{class:g}=l,A=IX(l,["class"]),b=f();let v;return S==="line"?v=h?o.createVNode(mX,ct(ct({},t),{},{strokeColor:W.value,prefixCls:n.value,steps:h}),{default:()=>[b]}):o.createVNode(iX,ct(ct({},t),{},{strokeColor:u.value,prefixCls:n.value,direction:i.value}),{default:()=>[b]}):(S==="circle"||S==="dashboard")&&(v=o.createVNode(SX,ct(ct({},t),{},{prefixCls:n.value,strokeColor:u.value,progressStatus:c.value}),{default:()=>[b]})),r(o.createVNode("div",ct(ct({role:"progressbar"},A),{},{class:[d.value,g],title:m}),[v]))}}}),u2=an(CX);var xX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function s2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){wX(t,n,a[n])})}return t}function wX(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var wf=function(t,e){var a=s2({},t,e.attrs);return o.createVNode(Ft,s2({},a,{icon:xX}),null)};wf.displayName="DeleteOutlined",wf.inheritAttrs=!1;var OX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function c2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){kX(t,n,a[n])})}return t}function kX(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Of=function(t,e){var a=c2({},t,e.attrs);return o.createVNode(Ft,c2({},a,{icon:OX}),null)};Of.displayName="EnterOutlined",Of.inheritAttrs=!1;const jX=(t,e,a,l)=>{const{sizeMarginHeadingVerticalEnd:n,fontWeightStrong:i}=l;return{marginBottom:n,color:a,fontWeight:i,fontSize:t,lineHeight:e}},qX=t=>{const e=[1,2,3,4,5],a={};return e.forEach(l=>{a[`
|
|
252
252
|
h${l}&,
|
|
253
253
|
div&-h${l},
|
|
254
254
|
div&-h${l} > textarea,
|
|
@@ -263,18 +263,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
263
263
|
${e}-expand,
|
|
264
264
|
${e}-edit,
|
|
265
265
|
${e}-copy
|
|
266
|
-
`]:j(j({},Ob(t)),{marginInlineStart:t.marginXXS})}),VX(t)),NX(t)),TX()),{"&-rtl":{direction:"rtl"}})}},dC=Ze("Typography",t=>[MX(t)],{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),KX=()=>({prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String}),RX=o.defineComponent({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:KX(),setup(t,e){let{emit:a,slots:l,attrs:n}=e;const{prefixCls:i}=o.toRefs(t),r=o.reactive({current:t.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});o.watch(()=>t.value,A=>{r.current=A});const p=o.ref();o.onMounted(()=>{var A;if(p.value){const b=(A=p.value)===null||A===void 0?void 0:A.resizableTextArea,v=b==null?void 0:b.textArea;v.focus();const{length:y}=v.value;v.setSelectionRange(y,y)}});function u(A){p.value=A}function s(A){let{target:{value:b}}=A;r.current=b.replace(/[\r\n]/g,""),a("change",r.current)}function c(){r.inComposition=!0}function d(){r.inComposition=!1}function W(A){const{keyCode:b}=A;b===qt.ENTER&&A.preventDefault(),!r.inComposition&&(r.lastKeyCode=b)}function f(A){const{keyCode:b,ctrlKey:v,altKey:y,metaKey:I,shiftKey:L}=A;r.lastKeyCode===b&&!r.inComposition&&!v&&!y&&!I&&!L&&(b===qt.ENTER?(h(),a("end")):b===qt.ESC&&(r.current=t.originContent,a("cancel")))}function S(){h()}function h(){a("save",r.current.trim())}const[m,g]=dC(i);return()=>{const A=Mt({[`${i.value}`]:!0,[`${i.value}-edit-content`]:!0,[`${i.value}-rtl`]:t.direction==="rtl",[t.component?`${i.value}-${t.component}`:""]:!0},n.class,g.value);return m(o.createVNode("div",ct(ct({},n),{},{class:A}),[o.createVNode(eC,{ref:u,maxlength:t.maxlength,value:r.current,onChange:s,onKeydown:W,onKeyup:f,onCompositionstart:c,onCompositionend:d,onBlur:S,rows:1,autoSize:t.autoSize===void 0||t.autoSize},null),l.enterIcon?l.enterIcon({className:`${t.prefixCls}-edit-content-confirm`}):o.createVNode(Of,{class:`${t.prefixCls}-edit-content-confirm`},null)]))}}}),EX=3,PX=8;let ua;const kf={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function WC(t,e){t.setAttribute("aria-hidden","true");const a=window.getComputedStyle(e),l=uM(a);t.setAttribute("style",l),t.style.position="fixed",t.style.left="0",t.style.height="auto",t.style.minHeight="auto",t.style.maxHeight="auto",t.style.paddingTop="0",t.style.paddingBottom="0",t.style.borderTopWidth="0",t.style.borderBottomWidth="0",t.style.top="-999999px",t.style.zIndex="-1000",t.style.textOverflow="clip",t.style.whiteSpace="normal",t.style.webkitLineClamp="none"}function YX(t){const e=document.createElement("div");WC(e,t),e.appendChild(document.createTextNode("text")),document.body.appendChild(e);const a=e.getBoundingClientRect().height;return document.body.removeChild(e),a}const GX=(t,e,a,l,n)=>{ua||(ua=document.createElement("div"),ua.setAttribute("aria-hidden","true"),document.body.appendChild(ua));const{rows:i,suffix:r=""}=e,p=YX(t),u=Math.round(p*i*100)/100;WC(ua,t);const s=o.createApp({render(){return o.createVNode("div",{style:kf},[o.createVNode("span",{style:kf},[a,r]),o.createVNode("span",{style:kf},[l])])}});s.mount(ua);function c(){return Math.round(ua.getBoundingClientRect().height*100)/100-.1<=u}if(c())return s.unmount(),{content:a,text:ua.innerHTML,ellipsis:!1};const d=Array.prototype.slice.apply(ua.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(b=>{let{nodeType:v,data:y}=b;return v!==PX&&y!==""}),W=Array.prototype.slice.apply(ua.childNodes[0].childNodes[1].cloneNode(!0).childNodes);s.unmount();const f=[];ua.innerHTML="";const S=document.createElement("span");ua.appendChild(S);const h=document.createTextNode(n+r);S.appendChild(h),W.forEach(b=>{ua.appendChild(b)});function m(b){S.insertBefore(b,h)}function g(b,v){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:v.length,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const w=Math.floor((y+I)/2),C=v.slice(0,w);if(b.textContent=C,y>=I-1)for(let k=I;k>=y;k-=1){const Z=v.slice(0,k);if(b.textContent=Z,c()||!Z)return k===v.length?{finished:!1,vNode:v}:{finished:!0,vNode:Z}}return c()?g(b,v,w,I,w):g(b,v,y,w,L)}function A(b){if(b.nodeType===EX){const v=b.textContent||"",y=document.createTextNode(v);return m(y),g(y,v)}return{finished:!1,vNode:null}}return d.some(b=>{const{finished:v,vNode:y}=A(b);return y&&f.push(y),v}),{content:f,text:ua.innerHTML,ellipsis:!0}};var XX=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const FX=()=>({prefixCls:String,direction:String,component:String}),Se=o.defineComponent({name:"ATypography",inheritAttrs:!1,props:FX(),setup(t,e){let{slots:a,attrs:l}=e;const{prefixCls:n,direction:i}=re("typography",t),[r,p]=dC(n);return()=>{var u;const s=j(j({},t),l),{prefixCls:c,direction:d,component:W="article"}=s,f=XX(s,["prefixCls","direction","component"]);return r(o.createVNode(W,ct(ct({},f),{},{class:Mt(n.value,{[`${n.value}-rtl`]:i.value==="rtl"},l.class,p.value)}),{default:()=>[(u=a.default)===null||u===void 0?void 0:u.call(a)]}))}}}),JX=()=>{const t=document.getSelection();if(!t.rangeCount)return function(){};let e=document.activeElement;const a=[];for(let l=0;l<t.rangeCount;l++)a.push(t.getRangeAt(l));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||a.forEach(function(l){t.addRange(l)}),e&&e.focus()}},fC={"text/plain":"Text","text/html":"Url",default:"Text"},HX="Copy to clipboard: #{key}, Enter";function DX(t){const e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}function UX(t,e){let a,l,n,i,r,p=!1;e||(e={});const u=e.debug||!1;try{if(l=JX(),n=document.createRange(),i=document.getSelection(),r=document.createElement("span"),r.textContent=t,r.style.all="unset",r.style.position="fixed",r.style.top=0,r.style.clip="rect(0, 0, 0, 0)",r.style.whiteSpace="pre",r.style.webkitUserSelect="text",r.style.MozUserSelect="text",r.style.msUserSelect="text",r.style.userSelect="text",r.addEventListener("copy",function(s){if(s.stopPropagation(),e.format)if(s.preventDefault(),typeof s.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();const c=fC[e.format]||fC.default;window.clipboardData.setData(c,t)}else s.clipboardData.clearData(),s.clipboardData.setData(e.format,t);e.onCopy&&(s.preventDefault(),e.onCopy(s.clipboardData))}),document.body.appendChild(r),n.selectNodeContents(r),i.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");p=!0}catch(s){u&&console.error("unable to copy using execCommand: ",s),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),p=!0}catch(c){u&&console.error("unable to copy using clipboardData: ",c),u&&console.error("falling back to prompt"),a=DX("message"in e?e.message:HX),window.prompt(a,t)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(n):i.removeAllRanges()),r&&document.body.removeChild(r),l()}return p}var BX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};function SC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){QX(t,n,a[n])})}return t}function QX(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var jf=function(t,e){var a=SC({},t,e.attrs);return o.createVNode(Ft,SC({},a,{icon:BX}),null)};jf.displayName="CopyOutlined",jf.inheritAttrs=!1;var $X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function hC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){_X(t,n,a[n])})}return t}function _X(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var qf=function(t,e){var a=hC({},t,e.attrs);return o.createVNode(Ft,hC({},a,{icon:$X}),null)};qf.displayName="EditOutlined",qf.inheritAttrs=!1;var tF=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const eF=gI("webkitLineClamp"),aF=gI("textOverflow"),mC="...",Qr=()=>({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),$r=o.defineComponent({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:Qr(),setup(t,e){let{slots:a,attrs:l,emit:n}=e;const{prefixCls:i,direction:r}=re("typography",t),p=o.reactive({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),u=o.ref(),s=o.ref(),c=o.computed(()=>{const O=t.ellipsis;return O?j({rows:1,expandable:!1},typeof O=="object"?O:null):{}});o.onMounted(()=>{p.clientRendered=!0,w()}),o.onBeforeUnmount(()=>{clearTimeout(p.copyId),fe.cancel(p.rafId)}),o.watch([()=>c.value.rows,()=>t.content],()=>{o.nextTick(()=>{I()})},{flush:"post",deep:!0}),o.watchEffect(()=>{t.content===void 0&&(ea(!t.editable,"Typography","When `editable` is enabled, please use `content` instead of children"),ea(!t.ellipsis,"Typography","When `ellipsis` is enabled, please use `content` instead of children"))});function d(){var O;return t.ellipsis||t.editable?t.content:(O=Pa(u.value))===null||O===void 0?void 0:O.innerText}function W(O){const{onExpand:M}=c.value;p.expanded=!0,M==null||M(O)}function f(O){O.preventDefault(),p.originContent=t.content,y(!0)}function S(O){h(O),y(!1)}function h(O){const{onChange:M}=A.value;O!==t.content&&(n("update:content",O),M==null||M(O))}function m(){var O,M;(M=(O=A.value).onCancel)===null||M===void 0||M.call(O),y(!1)}function g(O){O.preventDefault(),O.stopPropagation();const{copyable:M}=t,J=j({},typeof M=="object"?M:null);J.text===void 0&&(J.text=d()),UX(J.text||""),p.copied=!0,o.nextTick(()=>{J.onCopy&&J.onCopy(O),p.copyId=setTimeout(()=>{p.copied=!1},3e3)})}const A=o.computed(()=>{const O=t.editable;return O?j({},typeof O=="object"?O:null):{editing:!1}}),[b,v]=es(!1,{value:o.computed(()=>A.value.editing)});function y(O){const{onStart:M}=A.value;O&&M&&M(),v(O)}o.watch(b,O=>{var M;O||(M=s.value)===null||M===void 0||M.focus()},{flush:"post"});function I(O){if(O){const{width:M,height:J}=O;if(!M||!J)return}fe.cancel(p.rafId),p.rafId=fe(()=>{w()})}const L=o.computed(()=>{const{rows:O,expandable:M,suffix:J,onEllipsis:F,tooltip:V}=c.value;return J||V||t.editable||t.copyable||M||F?!1:O===1?aF:eF}),w=()=>{const{ellipsisText:O,isEllipsis:M}=p,{rows:J,suffix:F,onEllipsis:V}=c.value;if(!J||J<0||!Pa(u.value)||p.expanded||t.content===void 0||L.value)return;const{content:G,text:U,ellipsis:D}=GX(Pa(u.value),{rows:J,suffix:F},t.content,Y(!0),mC);(O!==U||p.isEllipsis!==D)&&(p.ellipsisText=U,p.ellipsisContent=G,p.isEllipsis=D,M!==D&&V&&V(D))};function C(O,M){let{mark:J,code:F,underline:V,delete:G,strong:U,keyboard:D}=O,B=M;function H(pt,K){if(!pt)return;const T=function(){return B}();B=o.createVNode(K,null,{default:()=>[T]})}return H(U,"strong"),H(V,"u"),H(G,"del"),H(F,"code"),H(J,"mark"),H(D,"kbd"),B}function k(O){const{expandable:M,symbol:J}=c.value;if(!M||!O&&(p.expanded||!p.isEllipsis))return null;const F=(a.ellipsisSymbol?a.ellipsisSymbol():J)||p.expandStr;return o.createVNode("a",{key:"expand",class:`${i.value}-expand`,onClick:W,"aria-label":p.expandStr},[F])}function Z(){if(!t.editable)return;const{tooltip:O,triggerType:M=["icon"]}=t.editable,J=a.editableIcon?a.editableIcon():o.createVNode(qf,{role:"button"},null),F=a.editableTooltip?a.editableTooltip():p.editStr,V=typeof F=="string"?F:"";return M.indexOf("icon")!==-1?o.createVNode(sn,{key:"edit",title:O===!1?"":F},{default:()=>[o.createVNode(nC,{ref:s,class:`${i.value}-edit`,onClick:f,"aria-label":V},{default:()=>[J]})]}):null}function E(){if(!t.copyable)return;const{tooltip:O}=t.copyable,M=p.copied?p.copiedStr:p.copyStr,J=a.copyableTooltip?a.copyableTooltip({copied:p.copied}):M,F=typeof J=="string"?J:"",V=p.copied?o.createVNode(Er,null,null):o.createVNode(jf,null,null),G=a.copyableIcon?a.copyableIcon({copied:!!p.copied}):V;return o.createVNode(sn,{key:"copy",title:O===!1?"":J},{default:()=>[o.createVNode(nC,{class:[`${i.value}-copy`,{[`${i.value}-copy-success`]:p.copied}],onClick:g,"aria-label":F},{default:()=>[G]})]})}function z(){const{class:O,style:M}=l,{maxlength:J,autoSize:F,onEnd:V}=A.value;return o.createVNode(RX,{class:O,style:M,prefixCls:i.value,value:t.content,originContent:p.originContent,maxlength:J,autoSize:F,onSave:S,onChange:h,onCancel:m,onEnd:V,direction:r.value,component:t.component},{enterIcon:a.editableEnterIcon})}function Y(O){return[k(O),Z(),E()].filter(M=>M)}return()=>{var O;const{triggerType:M=["icon"]}=A.value,J=t.ellipsis||t.editable?t.content!==void 0?t.content:(O=a.default)===null||O===void 0?void 0:O.call(a):a.default?a.default():t.content;return b.value?z():o.createVNode(o0,{componentName:"Text",children:F=>{const V=j(j({},t),l),{type:G,disabled:U,content:D,class:B,style:H}=V,pt=tF(V,["type","disabled","content","class","style"]),{rows:K,suffix:T,tooltip:q}=c.value,{edit:R,copy:P,copied:N,expand:X}=F;p.editStr=R,p.copyStr=P,p.copiedStr=N,p.expandStr=X;const Q=ye(pt,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),$=L.value,ot=K===1&&$,at=K&&K>1&&$;let it=J,et;if(K&&p.isEllipsis&&!p.expanded&&!$){const{title:bt}=pt;let Wt=bt||"";!bt&&(typeof J=="string"||typeof J=="number")&&(Wt=String(J)),Wt=Wt==null?void 0:Wt.slice(String(p.ellipsisContent||"").length),it=o.createVNode(o.Fragment,null,[o.toRaw(p.ellipsisContent),o.createVNode("span",{title:Wt,"aria-hidden":"true"},[mC]),T])}else it=o.createVNode(o.Fragment,null,[J,T]);it=C(t,it);const tt=q&&K&&p.isEllipsis&&!p.expanded&&!$,nt=a.ellipsisTooltip?a.ellipsisTooltip():q;return o.createVNode(Sr,{onResize:I,disabled:!K},{default:()=>[o.createVNode(Se,ct({ref:u,class:[{[`${i.value}-${G}`]:G,[`${i.value}-disabled`]:U,[`${i.value}-ellipsis`]:K,[`${i.value}-single-line`]:K===1&&!p.isEllipsis,[`${i.value}-ellipsis-single-line`]:ot,[`${i.value}-ellipsis-multiple-line`]:at},B],style:j(j({},H),{WebkitLineClamp:at?K:void 0}),"aria-label":et,direction:r.value,onClick:M.indexOf("text")!==-1?f:()=>{}},Q),{default:()=>[tt?o.createVNode(sn,{title:q===!0?J:nt},{default:()=>[o.createVNode("span",null,[it])]}):it,Y()]})]})}},null)}}});var lF=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const nF=()=>ye(j(j({},Qr()),{ellipsis:{type:Boolean,default:void 0}}),["component"]),_r=(t,e)=>{let{slots:a,attrs:l}=e;const n=j(j({},t),l),{ellipsis:i,rel:r}=n,p=lF(n,["ellipsis","rel"]);ea(typeof i!="object","Typography.Link","`ellipsis` only supports boolean value.");const u=j(j({},p),{rel:r===void 0&&p.target==="_blank"?"noopener noreferrer":r,ellipsis:!!i,component:"a"});return delete u.navigate,o.createVNode($r,u,a)};_r.displayName="ATypographyLink",_r.inheritAttrs=!1,_r.props=nF();const oF=()=>ye(Qr(),["component"]),tp=(t,e)=>{let{slots:a,attrs:l}=e;const n=j(j(j({},t),{component:"div"}),l);return o.createVNode($r,n,a)};tp.displayName="ATypographyParagraph",tp.inheritAttrs=!1,tp.props=oF();const iF=()=>j(j({},ye(Qr(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}}),ep=(t,e)=>{let{slots:a,attrs:l}=e;const{ellipsis:n}=t;ea(typeof n!="object"||!n||!("expandable"in n)&&!("rows"in n),"Typography.Text","`ellipsis` do not support `expandable` or `rows` props.");const i=j(j(j({},t),{ellipsis:n&&typeof n=="object"?ye(n,["expandable","rows"]):n,component:"span"}),l);return o.createVNode($r,i,a)};ep.displayName="ATypographyText",ep.inheritAttrs=!1,ep.props=iF();var rF=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const pF=AZ(1,2,3,4,5),uF=()=>j(j({},ye(Qr(),["component","strong"])),{level:Number}),ap=(t,e)=>{let{slots:a,attrs:l}=e;const{level:n=1}=t,i=rF(t,["level"]);let r;pF.includes(n)?r=`h${n}`:(ea(!1,"Typography","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value."),r="h1");const p=j(j(j({},i),{component:r}),l);return o.createVNode($r,p,a)};ap.displayName="ATypographyTitle",ap.inheritAttrs=!1,ap.props=uF(),Se.Text=ep,Se.Title=ap,Se.Paragraph=tp,Se.Link=_r,Se.Base=$r,Se.install=function(t){return t.component(Se.name,Se),t.component(Se.Text.displayName,ep),t.component(Se.Title.displayName,ap),t.component(Se.Paragraph.displayName,tp),t.component(Se.Link.displayName,_r),t};function sF(t,e){const a=`cannot ${t.method} ${t.action} ${e.status}'`,l=new Error(a);return l.status=e.status,l.method=t.method,l.url=t.action,l}function gC(t){const e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch{return e}}function cF(t){const e=new XMLHttpRequest;t.onProgress&&e.upload&&(e.upload.onprogress=function(n){n.total>0&&(n.percent=n.loaded/n.total*100),t.onProgress(n)});const a=new FormData;t.data&&Object.keys(t.data).forEach(n=>{const i=t.data[n];if(Array.isArray(i)){i.forEach(r=>{a.append(`${n}[]`,r)});return}a.append(n,i)}),t.file instanceof Blob?a.append(t.filename,t.file,t.file.name):a.append(t.filename,t.file),e.onerror=function(n){t.onError(n)},e.onload=function(){return e.status<200||e.status>=300?t.onError(sF(t,e),gC(e)):t.onSuccess(gC(e),e)},e.open(t.method,t.action,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);const l=t.headers||{};return l["X-Requested-With"]!==null&&e.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(l).forEach(n=>{l[n]!==null&&e.setRequestHeader(n,l[n])}),e.send(a),{abort(){e.abort()}}}const dF=+new Date;let WF=0;function Zf(){return`vc-upload-${dF}-${++WF}`}const zf=(t,e)=>{if(t&&e){const a=Array.isArray(e)?e:e.split(","),l=t.name||"",n=t.type||"",i=n.replace(/\/.*$/,"");return a.some(r=>{const p=r.trim();if(/^\*(\/\*)?$/.test(r))return!0;if(p.charAt(0)==="."){const u=l.toLowerCase(),s=p.toLowerCase();let c=[s];return(s===".jpg"||s===".jpeg")&&(c=[".jpg",".jpeg"]),c.some(d=>u.endsWith(d))}return/\/\*$/.test(p)?i===p.replace(/\/.*$/,""):n===p?!0:/^\w+$/.test(p)?(s0(!1,`Upload takes an invalidate 'accept' type '${p}'.Skip for check.`),!0):!1})}return!0};function fF(t,e){const a=t.createReader();let l=[];function n(){a.readEntries(i=>{const r=Array.prototype.slice.apply(i);l=l.concat(r),r.length?n():e(l)})}n()}const SF=(t,e,a)=>{const l=(n,i)=>{n.path=i||"",n.isFile?n.file(r=>{a(r)&&(n.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=n.fullPath.replace(/^\//,""),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),e([r]))}):n.isDirectory&&fF(n,r=>{r.forEach(p=>{l(p,`${i}${n.name}/`)})})};t.forEach(n=>{l(n.webkitGetAsEntry())})},AC=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var hF=function(t,e,a,l){function n(i){return i instanceof a?i:new a(function(r){r(i)})}return new(a||(a=Promise))(function(i,r){function p(c){try{s(l.next(c))}catch(d){r(d)}}function u(c){try{s(l.throw(c))}catch(d){r(d)}}function s(c){c.done?i(c.value):n(c.value).then(p,u)}s((l=l.apply(t,e||[])).next())})},mF=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const gF=o.defineComponent({compatConfig:{MODE:3},name:"AjaxUploader",inheritAttrs:!1,props:AC(),setup(t,e){let{slots:a,attrs:l,expose:n}=e;const i=o.ref(Zf()),r={},p=o.ref();let u=!1;const s=(A,b)=>hF(this,void 0,void 0,function*(){const{beforeUpload:v}=t;let y=A;if(v){try{y=yield v(A,b)}catch{y=!1}if(y===!1)return{origin:A,parsedFile:null,action:null,data:null}}const{action:I}=t;let L;typeof I=="function"?L=yield I(A):L=I;const{data:w}=t;let C;typeof w=="function"?C=yield w(A):C=w;const k=(typeof y=="object"||typeof y=="string")&&y?y:A;let Z;k instanceof File?Z=k:Z=new File([k],A.name,{type:A.type});const E=Z;return E.uid=A.uid,{origin:A,data:C,parsedFile:E,action:L}}),c=A=>{let{data:b,origin:v,action:y,parsedFile:I}=A;if(!u)return;const{onStart:L,customRequest:w,name:C,headers:k,withCredentials:Z,method:E}=t,{uid:z}=v,Y=w||cF,O={action:y,filename:C,data:b,file:I,headers:k,withCredentials:Z,method:E||"post",onProgress:M=>{const{onProgress:J}=t;J==null||J(M,I)},onSuccess:(M,J)=>{const{onSuccess:F}=t;F==null||F(M,I,J),delete r[z]},onError:(M,J)=>{const{onError:F}=t;F==null||F(M,J,I),delete r[z]}};L(v),r[z]=Y(O)},d=()=>{i.value=Zf()},W=A=>{if(A){const b=A.uid?A.uid:A;r[b]&&r[b].abort&&r[b].abort(),delete r[b]}else Object.keys(r).forEach(b=>{r[b]&&r[b].abort&&r[b].abort(),delete r[b]})};o.onMounted(()=>{u=!0}),o.onBeforeUnmount(()=>{u=!1,W()});const f=A=>{const b=[...A],v=b.map(y=>(y.uid=Zf(),s(y,b)));Promise.all(v).then(y=>{const{onBatchStart:I}=t;I==null||I(y.map(L=>{let{origin:w,parsedFile:C}=L;return{file:w,parsedFile:C}})),y.filter(L=>L.parsedFile!==null).forEach(L=>{c(L)})})},S=A=>{const{accept:b,directory:v}=t,{files:y}=A.target,I=[...y].filter(L=>!v||zf(L,b));f(I),d()},h=A=>{const b=p.value;if(!b)return;const{onClick:v}=t;b.click(),v&&v(A)},m=A=>{A.key==="Enter"&&h(A)},g=A=>{const{multiple:b}=t;if(A.preventDefault(),A.type!=="dragover")if(t.directory)SF(Array.prototype.slice.call(A.dataTransfer.items),f,v=>zf(v,t.accept));else{const v=P8(Array.prototype.slice.call(A.dataTransfer.files),L=>zf(L,t.accept));let y=v[0];const I=v[1];b===!1&&(y=y.slice(0,1)),f(y),I.length&&t.onReject&&t.onReject(I)}};return n({abort:W}),()=>{var A;const{componentTag:b,prefixCls:v,disabled:y,id:I,multiple:L,accept:w,capture:C,directory:k,openFileDialogOnClick:Z,onMouseenter:E,onMouseleave:z}=t,Y=mF(t,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),O={[v]:!0,[`${v}-disabled`]:y,[l.class]:!!l.class},M=k?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return o.createVNode(b,ct(ct({},y?{}:{onClick:Z?h:()=>{},onKeydown:Z?m:()=>{},onMouseenter:E,onMouseleave:z,onDrop:g,onDragover:g,tabindex:"0"}),{},{class:O,role:"button",style:l.style}),{default:()=>[o.createVNode("input",ct(ct(ct({},fW(Y,{aria:!0,data:!0})),{},{id:I,type:"file",ref:p,onClick:J=>J.stopPropagation(),onCancel:J=>J.stopPropagation(),key:i.value,style:{display:"none"},accept:w},M),{},{multiple:L,onChange:S},C!=null?{capture:C}:{}),null),(A=a.default)===null||A===void 0?void 0:A.call(a)]})}}});function Vf(){}const LC=o.defineComponent({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:pa(AC(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Vf,onError:Vf,onSuccess:Vf,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(t,e){let{slots:a,attrs:l,expose:n}=e;const i=o.ref();return n({abort:r=>{var p;(p=i.value)===null||p===void 0||p.abort(r)}}),()=>o.createVNode(gF,ct(ct(ct({},t),l),{},{ref:i}),a)}});var AF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};function bC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){LF(t,n,a[n])})}return t}function LF(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Nf=function(t,e){var a=bC({},t,e.attrs);return o.createVNode(Ft,bC({},a,{icon:AF}),null)};Nf.displayName="PaperClipOutlined",Nf.inheritAttrs=!1;var bF={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:e}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:e}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"};function yC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){yF(t,n,a[n])})}return t}function yF(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Tf=function(t,e){var a=yC({},t,e.attrs);return o.createVNode(Ft,yC({},a,{icon:bF}),null)};Tf.displayName="PictureTwoTone",Tf.inheritAttrs=!1;var vF={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:e}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"};function vC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){IF(t,n,a[n])})}return t}function IF(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Mf=function(t,e){var a=vC({},t,e.attrs);return o.createVNode(Ft,vC({},a,{icon:vF}),null)};Mf.displayName="FileTwoTone",Mf.inheritAttrs=!1;function IC(){return{capture:Ea([Boolean,String]),type:qe(),name:String,defaultFileList:Yo(),fileList:Yo(),action:Ea([String,Function]),directory:le(),data:Ea([Object,Function]),method:qe(),headers:_t(),showUploadList:Ea([Boolean,Object]),multiple:le(),accept:String,beforeUpload:Ut(),onChange:Ut(),"onUpdate:fileList":Ut(),onDrop:Ut(),listType:qe(),onPreview:Ut(),onDownload:Ut(),onReject:Ut(),onRemove:Ut(),remove:Ut(),supportServerRender:le(),disabled:le(),prefixCls:String,customRequest:Ut(),withCredentials:le(),openFileDialogOnClick:le(),locale:_t(),id:String,previewFile:Ut(),transformFile:Ut(),iconRender:Ut(),isImageUrl:Ut(),progress:_t(),itemRender:Ut(),maxCount:Number,height:Ea([Number,String]),removeIcon:Ut(),downloadIcon:Ut(),previewIcon:Ut()}}function CF(){return{listType:qe(),onPreview:Ut(),onDownload:Ut(),onRemove:Ut(),items:Yo(),progress:_t(),prefixCls:qe(),showRemoveIcon:le(),showDownloadIcon:le(),showPreviewIcon:le(),removeIcon:Ut(),downloadIcon:Ut(),previewIcon:Ut(),locale:_t(void 0),previewFile:Ut(),iconRender:Ut(),isImageUrl:Ut(),appendAction:Ut(),appendActionVisible:le(),itemRender:Ut()}}function Zs(t){return j(j({},t),{lastModified:t.lastModified,lastModifiedDate:t.lastModifiedDate,name:t.name,size:t.size,type:t.type,uid:t.uid,percent:0,originFileObj:t})}function zs(t,e){const a=[...e],l=a.findIndex(n=>{let{uid:i}=n;return i===t.uid});return l===-1?a.push(t):a[l]=t,a}function Kf(t,e){const a=t.uid!==void 0?"uid":"name";return e.filter(l=>l[a]===t[a])[0]}function xF(t,e){const a=t.uid!==void 0?"uid":"name",l=e.filter(n=>n[a]!==t[a]);return l.length===e.length?null:l}const wF=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),e=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(e)||[""])[0]},CC=t=>t.indexOf("image/")===0,OF=t=>{if(t.type&&!t.thumbUrl)return CC(t.type);const e=t.thumbUrl||t.url||"",a=wF(e);return/^data:image\//.test(e)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(a)?!0:!(/^data:/.test(e)||a)},fn=200;function kF(t){return new Promise(e=>{if(!t.type||!CC(t.type)){e("");return}const a=document.createElement("canvas");a.width=fn,a.height=fn,a.style.cssText=`position: fixed; left: 0; top: 0; width: ${fn}px; height: ${fn}px; z-index: 9999; display: none;`,document.body.appendChild(a);const l=a.getContext("2d"),n=new Image;if(n.onload=()=>{const{width:i,height:r}=n;let p=fn,u=fn,s=0,c=0;i>r?(u=r*(fn/i),c=-(u-p)/2):(p=i*(fn/r),s=-(p-u)/2),l.drawImage(n,s,c,p,u);const d=a.toDataURL();document.body.removeChild(a),e(d)},n.crossOrigin="anonymous",t.type.startsWith("image/svg+xml")){const i=new FileReader;i.addEventListener("load",()=>{i.result&&(n.src=i.result)}),i.readAsDataURL(t)}else n.src=window.URL.createObjectURL(t)})}var jF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};function xC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){qF(t,n,a[n])})}return t}function qF(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Rf=function(t,e){var a=xC({},t,e.attrs);return o.createVNode(Ft,xC({},a,{icon:jF}),null)};Rf.displayName="DownloadOutlined",Rf.inheritAttrs=!1;const ZF=()=>({prefixCls:String,locale:_t(void 0),file:_t(),items:Yo(),listType:qe(),isImgUrl:Ut(),showRemoveIcon:le(),showDownloadIcon:le(),showPreviewIcon:le(),removeIcon:Ut(),downloadIcon:Ut(),previewIcon:Ut(),iconRender:Ut(),actionIconRender:Ut(),itemRender:Ut(),onPreview:Ut(),onClose:Ut(),onDownload:Ut(),progress:_t()}),zF=o.defineComponent({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:ZF(),setup(t,e){let{slots:a,attrs:l}=e;var n;const i=o.shallowRef(!1),r=o.shallowRef();o.onMounted(()=>{r.value=setTimeout(()=>{i.value=!0},300)}),o.onBeforeUnmount(()=>{clearTimeout(r.value)});const p=o.shallowRef((n=t.file)===null||n===void 0?void 0:n.status);o.watch(()=>{var c;return(c=t.file)===null||c===void 0?void 0:c.status},c=>{c!=="removed"&&(p.value=c)});const{rootPrefixCls:u}=re("upload",t),s=o.computed(()=>sW(`${u.value}-fade`));return()=>{var c,d;const{prefixCls:W,locale:f,listType:S,file:h,items:m,progress:g,iconRender:A=a.iconRender,actionIconRender:b=a.actionIconRender,itemRender:v=a.itemRender,isImgUrl:y,showPreviewIcon:I,showRemoveIcon:L,showDownloadIcon:w,previewIcon:C=a.previewIcon,removeIcon:k=a.removeIcon,downloadIcon:Z=a.downloadIcon,onPreview:E,onDownload:z,onClose:Y}=t,{class:O,style:M}=l,J=A({file:h});let F=o.createVNode("div",{class:`${W}-text-icon`},[J]);if(S==="picture"||S==="picture-card")if(p.value==="uploading"||!h.thumbUrl&&!h.url){const Q={[`${W}-list-item-thumbnail`]:!0,[`${W}-list-item-file`]:p.value!=="uploading"};F=o.createVNode("div",{class:Q},[J])}else{const Q=y!=null&&y(h)?o.createVNode("img",{src:h.thumbUrl||h.url,alt:h.name,class:`${W}-list-item-image`,crossorigin:h.crossOrigin},null):J,$={[`${W}-list-item-thumbnail`]:!0,[`${W}-list-item-file`]:y&&!y(h)};F=o.createVNode("a",{class:$,onClick:ot=>E(h,ot),href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[Q])}const V={[`${W}-list-item`]:!0,[`${W}-list-item-${p.value}`]:!0},G=typeof h.linkProps=="string"?JSON.parse(h.linkProps):h.linkProps,U=L?b({customIcon:k?k({file:h}):o.createVNode(wf,null,null),callback:()=>Y(h),prefixCls:W,title:f.removeFile}):null,D=w&&p.value==="done"?b({customIcon:Z?Z({file:h}):o.createVNode(Rf,null,null),callback:()=>z(h),prefixCls:W,title:f.downloadFile}):null,B=S!=="picture-card"&&o.createVNode("span",{key:"download-delete",class:[`${W}-list-item-actions`,{picture:S==="picture"}]},[D,U]),H=`${W}-list-item-name`,pt=h.url?[o.createVNode("a",ct(ct({key:"view",target:"_blank",rel:"noopener noreferrer",class:H,title:h.name},G),{},{href:h.url,onClick:Q=>E(h,Q)}),[h.name]),B]:[o.createVNode("span",{key:"view",class:H,onClick:Q=>E(h,Q),title:h.name},[h.name]),B],K={pointerEvents:"none",opacity:.5},T=I?o.createVNode("a",{href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:h.url||h.thumbUrl?void 0:K,onClick:Q=>E(h,Q),title:f.previewFile},[C?C({file:h}):o.createVNode(Os,null,null)]):null,q=S==="picture-card"&&p.value!=="uploading"&&o.createVNode("span",{class:`${W}-list-item-actions`},[T,p.value==="done"&&D,U]),R=o.createVNode("div",{class:V},[F,pt,q,i.value&&o.createVNode(o.Transition,s.value,{default:()=>[o.withDirectives(o.createVNode("div",{class:`${W}-list-item-progress`},["percent"in h?o.createVNode(uC,ct(ct({},g),{},{type:"line",percent:h.percent}),null):null]),[[o.vShow,p.value==="uploading"]])]})]),P={[`${W}-list-item-container`]:!0,[`${O}`]:!!O},N=h.response&&typeof h.response=="string"?h.response:((c=h.error)===null||c===void 0?void 0:c.statusText)||((d=h.error)===null||d===void 0?void 0:d.message)||f.uploadError,X=p.value==="error"?o.createVNode(sn,{title:N,getPopupContainer:Q=>Q.parentNode},{default:()=>[R]}):R;return o.createVNode("div",{class:P,style:M},[v?v({originNode:X,file:h,fileList:m,actions:{download:z.bind(null,h),preview:E.bind(null,h),remove:Y.bind(null,h)}}):X])}}}),VF=(t,e)=>{let{slots:a}=e;var l;return nl((l=a.default)===null||l===void 0?void 0:l.call(a))[0]},NF=o.defineComponent({compatConfig:{MODE:3},name:"AUploadList",props:pa(CF(),{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:kF,isImageUrl:OF,items:[],appendActionVisible:!0}),setup(t,e){let{slots:a,expose:l}=e;const n=o.shallowRef(!1);o.onMounted(()=>{n.value==!0});const i=o.shallowRef([]);o.watch(()=>t.items,function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.value=h.slice()},{immediate:!0,deep:!0}),o.watchEffect(()=>{if(t.listType!=="picture"&&t.listType!=="picture-card")return;let h=!1;(t.items||[]).forEach((m,g)=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(m.originFileObj instanceof File||m.originFileObj instanceof Blob)||m.thumbUrl!==void 0||(m.thumbUrl="",t.previewFile&&t.previewFile(m.originFileObj).then(A=>{const b=A||"";b!==m.thumbUrl&&(i.value[g].thumbUrl=b,h=!0)}))}),h&&o.triggerRef(i)});const r=(h,m)=>{if(t.onPreview)return m==null||m.preventDefault(),t.onPreview(h)},p=h=>{typeof t.onDownload=="function"?t.onDownload(h):h.url&&window.open(h.url)},u=h=>{var m;(m=t.onRemove)===null||m===void 0||m.call(t,h)},s=h=>{let{file:m}=h;const g=t.iconRender||a.iconRender;if(g)return g({file:m,listType:t.listType});const A=m.status==="uploading",b=t.isImageUrl&&t.isImageUrl(m)?o.createVNode(Tf,null,null):o.createVNode(Mf,null,null);let v=A?o.createVNode(Fa,null,null):o.createVNode(Nf,null,null);return t.listType==="picture"?v=A?o.createVNode(Fa,null,null):b:t.listType==="picture-card"&&(v=A?t.locale.uploading:b),v},c=h=>{const{customIcon:m,callback:g,prefixCls:A,title:b}=h,v={type:"text",size:"small",title:b,onClick:()=>{g()},class:`${A}-list-item-action`};return wl(m)?o.createVNode(aa,v,{icon:()=>m}):o.createVNode(aa,v,{default:()=>[o.createVNode("span",null,[m])]})};l({handlePreview:r,handleDownload:p});const{prefixCls:d,rootPrefixCls:W}=re("upload",t),f=o.computed(()=>({[`${d.value}-list`]:!0,[`${d.value}-list-${t.listType}`]:!0})),S=o.computed(()=>{const h=j({},U1(`${W.value}-motion-collapse`));delete h.onAfterAppear,delete h.onAfterEnter,delete h.onAfterLeave;const m=j(j({},cW(`${d.value}-${t.listType==="picture-card"?"animate-inline":"animate"}`)),{class:f.value,appear:n.value});return t.listType!=="picture-card"?j(j({},h),m):m});return()=>{const{listType:h,locale:m,isImageUrl:g,showPreviewIcon:A,showRemoveIcon:b,showDownloadIcon:v,removeIcon:y,previewIcon:I,downloadIcon:L,progress:w,appendAction:C,itemRender:k,appendActionVisible:Z}=t,E=C==null?void 0:C(),z=i.value;return o.createVNode(o.TransitionGroup,ct(ct({},S.value),{},{tag:"div"}),{default:()=>[z.map(Y=>{const{uid:O}=Y;return o.createVNode(zF,{key:O,locale:m,prefixCls:d.value,file:Y,items:z,progress:w,listType:h,isImgUrl:g,showPreviewIcon:A,showRemoveIcon:b,showDownloadIcon:v,onPreview:r,onDownload:p,onClose:u,removeIcon:y,previewIcon:I,downloadIcon:L,itemRender:k},j(j({},a),{iconRender:s,actionIconRender:c}))}),C?o.withDirectives(o.createVNode(VF,{key:"__ant_upload_appendAction"},{default:()=>E}),[[o.vShow,!!Z]]):null]})}}}),TF=t=>{const{componentCls:e,iconCls:a}=t;return{[`${e}-wrapper`]:{[`${e}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:t.colorFillAlter,border:`${t.lineWidth}px dashed ${t.colorBorder}`,borderRadius:t.borderRadiusLG,cursor:"pointer",transition:`border-color ${t.motionDurationSlow}`,[e]:{padding:`${t.padding}px 0`},[`${e}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${e}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${e}-disabled):hover`]:{borderColor:t.colorPrimaryHover},[`p${e}-drag-icon`]:{marginBottom:t.margin,[a]:{color:t.colorPrimary,fontSize:t.uploadThumbnailSize}},[`p${e}-text`]:{margin:`0 0 ${t.marginXXS}px`,color:t.colorTextHeading,fontSize:t.fontSizeLG},[`p${e}-hint`]:{color:t.colorTextDescription,fontSize:t.fontSize},[`&${e}-disabled`]:{cursor:"not-allowed",[`p${e}-drag-icon ${a},
|
|
266
|
+
`]:j(j({},Ob(t)),{marginInlineStart:t.marginXXS})}),VX(t)),NX(t)),TX()),{"&-rtl":{direction:"rtl"}})}},d2=Ze("Typography",t=>[MX(t)],{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),KX=()=>({prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String}),RX=o.defineComponent({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:KX(),setup(t,e){let{emit:a,slots:l,attrs:n}=e;const{prefixCls:i}=o.toRefs(t),r=o.reactive({current:t.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});o.watch(()=>t.value,A=>{r.current=A});const p=o.ref();o.onMounted(()=>{var A;if(p.value){const b=(A=p.value)===null||A===void 0?void 0:A.resizableTextArea,v=b==null?void 0:b.textArea;v.focus();const{length:y}=v.value;v.setSelectionRange(y,y)}});function u(A){p.value=A}function s(A){let{target:{value:b}}=A;r.current=b.replace(/[\r\n]/g,""),a("change",r.current)}function c(){r.inComposition=!0}function d(){r.inComposition=!1}function W(A){const{keyCode:b}=A;b===qt.ENTER&&A.preventDefault(),!r.inComposition&&(r.lastKeyCode=b)}function f(A){const{keyCode:b,ctrlKey:v,altKey:y,metaKey:I,shiftKey:L}=A;r.lastKeyCode===b&&!r.inComposition&&!v&&!y&&!I&&!L&&(b===qt.ENTER?(h(),a("end")):b===qt.ESC&&(r.current=t.originContent,a("cancel")))}function S(){h()}function h(){a("save",r.current.trim())}const[m,g]=d2(i);return()=>{const A=Mt({[`${i.value}`]:!0,[`${i.value}-edit-content`]:!0,[`${i.value}-rtl`]:t.direction==="rtl",[t.component?`${i.value}-${t.component}`:""]:!0},n.class,g.value);return m(o.createVNode("div",ct(ct({},n),{},{class:A}),[o.createVNode(e2,{ref:u,maxlength:t.maxlength,value:r.current,onChange:s,onKeydown:W,onKeyup:f,onCompositionstart:c,onCompositionend:d,onBlur:S,rows:1,autoSize:t.autoSize===void 0||t.autoSize},null),l.enterIcon?l.enterIcon({className:`${t.prefixCls}-edit-content-confirm`}):o.createVNode(Of,{class:`${t.prefixCls}-edit-content-confirm`},null)]))}}}),EX=3,PX=8;let ua;const kf={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function W2(t,e){t.setAttribute("aria-hidden","true");const a=window.getComputedStyle(e),l=uM(a);t.setAttribute("style",l),t.style.position="fixed",t.style.left="0",t.style.height="auto",t.style.minHeight="auto",t.style.maxHeight="auto",t.style.paddingTop="0",t.style.paddingBottom="0",t.style.borderTopWidth="0",t.style.borderBottomWidth="0",t.style.top="-999999px",t.style.zIndex="-1000",t.style.textOverflow="clip",t.style.whiteSpace="normal",t.style.webkitLineClamp="none"}function YX(t){const e=document.createElement("div");W2(e,t),e.appendChild(document.createTextNode("text")),document.body.appendChild(e);const a=e.getBoundingClientRect().height;return document.body.removeChild(e),a}const GX=(t,e,a,l,n)=>{ua||(ua=document.createElement("div"),ua.setAttribute("aria-hidden","true"),document.body.appendChild(ua));const{rows:i,suffix:r=""}=e,p=YX(t),u=Math.round(p*i*100)/100;W2(ua,t);const s=o.createApp({render(){return o.createVNode("div",{style:kf},[o.createVNode("span",{style:kf},[a,r]),o.createVNode("span",{style:kf},[l])])}});s.mount(ua);function c(){return Math.round(ua.getBoundingClientRect().height*100)/100-.1<=u}if(c())return s.unmount(),{content:a,text:ua.innerHTML,ellipsis:!1};const d=Array.prototype.slice.apply(ua.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(b=>{let{nodeType:v,data:y}=b;return v!==PX&&y!==""}),W=Array.prototype.slice.apply(ua.childNodes[0].childNodes[1].cloneNode(!0).childNodes);s.unmount();const f=[];ua.innerHTML="";const S=document.createElement("span");ua.appendChild(S);const h=document.createTextNode(n+r);S.appendChild(h),W.forEach(b=>{ua.appendChild(b)});function m(b){S.insertBefore(b,h)}function g(b,v){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:v.length,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const w=Math.floor((y+I)/2),C=v.slice(0,w);if(b.textContent=C,y>=I-1)for(let k=I;k>=y;k-=1){const Z=v.slice(0,k);if(b.textContent=Z,c()||!Z)return k===v.length?{finished:!1,vNode:v}:{finished:!0,vNode:Z}}return c()?g(b,v,w,I,w):g(b,v,y,w,L)}function A(b){if(b.nodeType===EX){const v=b.textContent||"",y=document.createTextNode(v);return m(y),g(y,v)}return{finished:!1,vNode:null}}return d.some(b=>{const{finished:v,vNode:y}=A(b);return y&&f.push(y),v}),{content:f,text:ua.innerHTML,ellipsis:!0}};var XX=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const FX=()=>({prefixCls:String,direction:String,component:String}),Se=o.defineComponent({name:"ATypography",inheritAttrs:!1,props:FX(),setup(t,e){let{slots:a,attrs:l}=e;const{prefixCls:n,direction:i}=re("typography",t),[r,p]=d2(n);return()=>{var u;const s=j(j({},t),l),{prefixCls:c,direction:d,component:W="article"}=s,f=XX(s,["prefixCls","direction","component"]);return r(o.createVNode(W,ct(ct({},f),{},{class:Mt(n.value,{[`${n.value}-rtl`]:i.value==="rtl"},l.class,p.value)}),{default:()=>[(u=a.default)===null||u===void 0?void 0:u.call(a)]}))}}}),JX=()=>{const t=document.getSelection();if(!t.rangeCount)return function(){};let e=document.activeElement;const a=[];for(let l=0;l<t.rangeCount;l++)a.push(t.getRangeAt(l));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||a.forEach(function(l){t.addRange(l)}),e&&e.focus()}},f2={"text/plain":"Text","text/html":"Url",default:"Text"},HX="Copy to clipboard: #{key}, Enter";function DX(t){const e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}function UX(t,e){let a,l,n,i,r,p=!1;e||(e={});const u=e.debug||!1;try{if(l=JX(),n=document.createRange(),i=document.getSelection(),r=document.createElement("span"),r.textContent=t,r.style.all="unset",r.style.position="fixed",r.style.top=0,r.style.clip="rect(0, 0, 0, 0)",r.style.whiteSpace="pre",r.style.webkitUserSelect="text",r.style.MozUserSelect="text",r.style.msUserSelect="text",r.style.userSelect="text",r.addEventListener("copy",function(s){if(s.stopPropagation(),e.format)if(s.preventDefault(),typeof s.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();const c=f2[e.format]||f2.default;window.clipboardData.setData(c,t)}else s.clipboardData.clearData(),s.clipboardData.setData(e.format,t);e.onCopy&&(s.preventDefault(),e.onCopy(s.clipboardData))}),document.body.appendChild(r),n.selectNodeContents(r),i.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");p=!0}catch(s){u&&console.error("unable to copy using execCommand: ",s),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),p=!0}catch(c){u&&console.error("unable to copy using clipboardData: ",c),u&&console.error("falling back to prompt"),a=DX("message"in e?e.message:HX),window.prompt(a,t)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(n):i.removeAllRanges()),r&&document.body.removeChild(r),l()}return p}var BX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};function S2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){QX(t,n,a[n])})}return t}function QX(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var jf=function(t,e){var a=S2({},t,e.attrs);return o.createVNode(Ft,S2({},a,{icon:BX}),null)};jf.displayName="CopyOutlined",jf.inheritAttrs=!1;var $X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function h2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){_X(t,n,a[n])})}return t}function _X(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var qf=function(t,e){var a=h2({},t,e.attrs);return o.createVNode(Ft,h2({},a,{icon:$X}),null)};qf.displayName="EditOutlined",qf.inheritAttrs=!1;var tF=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const eF=gI("webkitLineClamp"),aF=gI("textOverflow"),m2="...",Qr=()=>({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),$r=o.defineComponent({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:Qr(),setup(t,e){let{slots:a,attrs:l,emit:n}=e;const{prefixCls:i,direction:r}=re("typography",t),p=o.reactive({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),u=o.ref(),s=o.ref(),c=o.computed(()=>{const O=t.ellipsis;return O?j({rows:1,expandable:!1},typeof O=="object"?O:null):{}});o.onMounted(()=>{p.clientRendered=!0,w()}),o.onBeforeUnmount(()=>{clearTimeout(p.copyId),fe.cancel(p.rafId)}),o.watch([()=>c.value.rows,()=>t.content],()=>{o.nextTick(()=>{I()})},{flush:"post",deep:!0}),o.watchEffect(()=>{t.content===void 0&&(ea(!t.editable,"Typography","When `editable` is enabled, please use `content` instead of children"),ea(!t.ellipsis,"Typography","When `ellipsis` is enabled, please use `content` instead of children"))});function d(){var O;return t.ellipsis||t.editable?t.content:(O=Pa(u.value))===null||O===void 0?void 0:O.innerText}function W(O){const{onExpand:M}=c.value;p.expanded=!0,M==null||M(O)}function f(O){O.preventDefault(),p.originContent=t.content,y(!0)}function S(O){h(O),y(!1)}function h(O){const{onChange:M}=A.value;O!==t.content&&(n("update:content",O),M==null||M(O))}function m(){var O,M;(M=(O=A.value).onCancel)===null||M===void 0||M.call(O),y(!1)}function g(O){O.preventDefault(),O.stopPropagation();const{copyable:M}=t,J=j({},typeof M=="object"?M:null);J.text===void 0&&(J.text=d()),UX(J.text||""),p.copied=!0,o.nextTick(()=>{J.onCopy&&J.onCopy(O),p.copyId=setTimeout(()=>{p.copied=!1},3e3)})}const A=o.computed(()=>{const O=t.editable;return O?j({},typeof O=="object"?O:null):{editing:!1}}),[b,v]=es(!1,{value:o.computed(()=>A.value.editing)});function y(O){const{onStart:M}=A.value;O&&M&&M(),v(O)}o.watch(b,O=>{var M;O||(M=s.value)===null||M===void 0||M.focus()},{flush:"post"});function I(O){if(O){const{width:M,height:J}=O;if(!M||!J)return}fe.cancel(p.rafId),p.rafId=fe(()=>{w()})}const L=o.computed(()=>{const{rows:O,expandable:M,suffix:J,onEllipsis:F,tooltip:V}=c.value;return J||V||t.editable||t.copyable||M||F?!1:O===1?aF:eF}),w=()=>{const{ellipsisText:O,isEllipsis:M}=p,{rows:J,suffix:F,onEllipsis:V}=c.value;if(!J||J<0||!Pa(u.value)||p.expanded||t.content===void 0||L.value)return;const{content:G,text:U,ellipsis:D}=GX(Pa(u.value),{rows:J,suffix:F},t.content,Y(!0),m2);(O!==U||p.isEllipsis!==D)&&(p.ellipsisText=U,p.ellipsisContent=G,p.isEllipsis=D,M!==D&&V&&V(D))};function C(O,M){let{mark:J,code:F,underline:V,delete:G,strong:U,keyboard:D}=O,B=M;function H(pt,K){if(!pt)return;const T=function(){return B}();B=o.createVNode(K,null,{default:()=>[T]})}return H(U,"strong"),H(V,"u"),H(G,"del"),H(F,"code"),H(J,"mark"),H(D,"kbd"),B}function k(O){const{expandable:M,symbol:J}=c.value;if(!M||!O&&(p.expanded||!p.isEllipsis))return null;const F=(a.ellipsisSymbol?a.ellipsisSymbol():J)||p.expandStr;return o.createVNode("a",{key:"expand",class:`${i.value}-expand`,onClick:W,"aria-label":p.expandStr},[F])}function Z(){if(!t.editable)return;const{tooltip:O,triggerType:M=["icon"]}=t.editable,J=a.editableIcon?a.editableIcon():o.createVNode(qf,{role:"button"},null),F=a.editableTooltip?a.editableTooltip():p.editStr,V=typeof F=="string"?F:"";return M.indexOf("icon")!==-1?o.createVNode(sn,{key:"edit",title:O===!1?"":F},{default:()=>[o.createVNode(n2,{ref:s,class:`${i.value}-edit`,onClick:f,"aria-label":V},{default:()=>[J]})]}):null}function E(){if(!t.copyable)return;const{tooltip:O}=t.copyable,M=p.copied?p.copiedStr:p.copyStr,J=a.copyableTooltip?a.copyableTooltip({copied:p.copied}):M,F=typeof J=="string"?J:"",V=p.copied?o.createVNode(Er,null,null):o.createVNode(jf,null,null),G=a.copyableIcon?a.copyableIcon({copied:!!p.copied}):V;return o.createVNode(sn,{key:"copy",title:O===!1?"":J},{default:()=>[o.createVNode(n2,{class:[`${i.value}-copy`,{[`${i.value}-copy-success`]:p.copied}],onClick:g,"aria-label":F},{default:()=>[G]})]})}function z(){const{class:O,style:M}=l,{maxlength:J,autoSize:F,onEnd:V}=A.value;return o.createVNode(RX,{class:O,style:M,prefixCls:i.value,value:t.content,originContent:p.originContent,maxlength:J,autoSize:F,onSave:S,onChange:h,onCancel:m,onEnd:V,direction:r.value,component:t.component},{enterIcon:a.editableEnterIcon})}function Y(O){return[k(O),Z(),E()].filter(M=>M)}return()=>{var O;const{triggerType:M=["icon"]}=A.value,J=t.ellipsis||t.editable?t.content!==void 0?t.content:(O=a.default)===null||O===void 0?void 0:O.call(a):a.default?a.default():t.content;return b.value?z():o.createVNode(o0,{componentName:"Text",children:F=>{const V=j(j({},t),l),{type:G,disabled:U,content:D,class:B,style:H}=V,pt=tF(V,["type","disabled","content","class","style"]),{rows:K,suffix:T,tooltip:q}=c.value,{edit:R,copy:P,copied:N,expand:X}=F;p.editStr=R,p.copyStr=P,p.copiedStr=N,p.expandStr=X;const Q=ye(pt,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),$=L.value,ot=K===1&&$,at=K&&K>1&&$;let it=J,et;if(K&&p.isEllipsis&&!p.expanded&&!$){const{title:bt}=pt;let Wt=bt||"";!bt&&(typeof J=="string"||typeof J=="number")&&(Wt=String(J)),Wt=Wt==null?void 0:Wt.slice(String(p.ellipsisContent||"").length),it=o.createVNode(o.Fragment,null,[o.toRaw(p.ellipsisContent),o.createVNode("span",{title:Wt,"aria-hidden":"true"},[m2]),T])}else it=o.createVNode(o.Fragment,null,[J,T]);it=C(t,it);const tt=q&&K&&p.isEllipsis&&!p.expanded&&!$,nt=a.ellipsisTooltip?a.ellipsisTooltip():q;return o.createVNode(Sr,{onResize:I,disabled:!K},{default:()=>[o.createVNode(Se,ct({ref:u,class:[{[`${i.value}-${G}`]:G,[`${i.value}-disabled`]:U,[`${i.value}-ellipsis`]:K,[`${i.value}-single-line`]:K===1&&!p.isEllipsis,[`${i.value}-ellipsis-single-line`]:ot,[`${i.value}-ellipsis-multiple-line`]:at},B],style:j(j({},H),{WebkitLineClamp:at?K:void 0}),"aria-label":et,direction:r.value,onClick:M.indexOf("text")!==-1?f:()=>{}},Q),{default:()=>[tt?o.createVNode(sn,{title:q===!0?J:nt},{default:()=>[o.createVNode("span",null,[it])]}):it,Y()]})]})}},null)}}});var lF=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const nF=()=>ye(j(j({},Qr()),{ellipsis:{type:Boolean,default:void 0}}),["component"]),_r=(t,e)=>{let{slots:a,attrs:l}=e;const n=j(j({},t),l),{ellipsis:i,rel:r}=n,p=lF(n,["ellipsis","rel"]);ea(typeof i!="object","Typography.Link","`ellipsis` only supports boolean value.");const u=j(j({},p),{rel:r===void 0&&p.target==="_blank"?"noopener noreferrer":r,ellipsis:!!i,component:"a"});return delete u.navigate,o.createVNode($r,u,a)};_r.displayName="ATypographyLink",_r.inheritAttrs=!1,_r.props=nF();const oF=()=>ye(Qr(),["component"]),tp=(t,e)=>{let{slots:a,attrs:l}=e;const n=j(j(j({},t),{component:"div"}),l);return o.createVNode($r,n,a)};tp.displayName="ATypographyParagraph",tp.inheritAttrs=!1,tp.props=oF();const iF=()=>j(j({},ye(Qr(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}}),ep=(t,e)=>{let{slots:a,attrs:l}=e;const{ellipsis:n}=t;ea(typeof n!="object"||!n||!("expandable"in n)&&!("rows"in n),"Typography.Text","`ellipsis` do not support `expandable` or `rows` props.");const i=j(j(j({},t),{ellipsis:n&&typeof n=="object"?ye(n,["expandable","rows"]):n,component:"span"}),l);return o.createVNode($r,i,a)};ep.displayName="ATypographyText",ep.inheritAttrs=!1,ep.props=iF();var rF=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const pF=AZ(1,2,3,4,5),uF=()=>j(j({},ye(Qr(),["component","strong"])),{level:Number}),ap=(t,e)=>{let{slots:a,attrs:l}=e;const{level:n=1}=t,i=rF(t,["level"]);let r;pF.includes(n)?r=`h${n}`:(ea(!1,"Typography","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value."),r="h1");const p=j(j(j({},i),{component:r}),l);return o.createVNode($r,p,a)};ap.displayName="ATypographyTitle",ap.inheritAttrs=!1,ap.props=uF(),Se.Text=ep,Se.Title=ap,Se.Paragraph=tp,Se.Link=_r,Se.Base=$r,Se.install=function(t){return t.component(Se.name,Se),t.component(Se.Text.displayName,ep),t.component(Se.Title.displayName,ap),t.component(Se.Paragraph.displayName,tp),t.component(Se.Link.displayName,_r),t};function sF(t,e){const a=`cannot ${t.method} ${t.action} ${e.status}'`,l=new Error(a);return l.status=e.status,l.method=t.method,l.url=t.action,l}function g2(t){const e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch{return e}}function cF(t){const e=new XMLHttpRequest;t.onProgress&&e.upload&&(e.upload.onprogress=function(n){n.total>0&&(n.percent=n.loaded/n.total*100),t.onProgress(n)});const a=new FormData;t.data&&Object.keys(t.data).forEach(n=>{const i=t.data[n];if(Array.isArray(i)){i.forEach(r=>{a.append(`${n}[]`,r)});return}a.append(n,i)}),t.file instanceof Blob?a.append(t.filename,t.file,t.file.name):a.append(t.filename,t.file),e.onerror=function(n){t.onError(n)},e.onload=function(){return e.status<200||e.status>=300?t.onError(sF(t,e),g2(e)):t.onSuccess(g2(e),e)},e.open(t.method,t.action,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);const l=t.headers||{};return l["X-Requested-With"]!==null&&e.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(l).forEach(n=>{l[n]!==null&&e.setRequestHeader(n,l[n])}),e.send(a),{abort(){e.abort()}}}const dF=+new Date;let WF=0;function Zf(){return`vc-upload-${dF}-${++WF}`}const zf=(t,e)=>{if(t&&e){const a=Array.isArray(e)?e:e.split(","),l=t.name||"",n=t.type||"",i=n.replace(/\/.*$/,"");return a.some(r=>{const p=r.trim();if(/^\*(\/\*)?$/.test(r))return!0;if(p.charAt(0)==="."){const u=l.toLowerCase(),s=p.toLowerCase();let c=[s];return(s===".jpg"||s===".jpeg")&&(c=[".jpg",".jpeg"]),c.some(d=>u.endsWith(d))}return/\/\*$/.test(p)?i===p.replace(/\/.*$/,""):n===p?!0:/^\w+$/.test(p)?(s0(!1,`Upload takes an invalidate 'accept' type '${p}'.Skip for check.`),!0):!1})}return!0};function fF(t,e){const a=t.createReader();let l=[];function n(){a.readEntries(i=>{const r=Array.prototype.slice.apply(i);l=l.concat(r),r.length?n():e(l)})}n()}const SF=(t,e,a)=>{const l=(n,i)=>{n.path=i||"",n.isFile?n.file(r=>{a(r)&&(n.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=n.fullPath.replace(/^\//,""),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),e([r]))}):n.isDirectory&&fF(n,r=>{r.forEach(p=>{l(p,`${i}${n.name}/`)})})};t.forEach(n=>{l(n.webkitGetAsEntry())})},A2=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var hF=function(t,e,a,l){function n(i){return i instanceof a?i:new a(function(r){r(i)})}return new(a||(a=Promise))(function(i,r){function p(c){try{s(l.next(c))}catch(d){r(d)}}function u(c){try{s(l.throw(c))}catch(d){r(d)}}function s(c){c.done?i(c.value):n(c.value).then(p,u)}s((l=l.apply(t,e||[])).next())})},mF=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const gF=o.defineComponent({compatConfig:{MODE:3},name:"AjaxUploader",inheritAttrs:!1,props:A2(),setup(t,e){let{slots:a,attrs:l,expose:n}=e;const i=o.ref(Zf()),r={},p=o.ref();let u=!1;const s=(A,b)=>hF(this,void 0,void 0,function*(){const{beforeUpload:v}=t;let y=A;if(v){try{y=yield v(A,b)}catch{y=!1}if(y===!1)return{origin:A,parsedFile:null,action:null,data:null}}const{action:I}=t;let L;typeof I=="function"?L=yield I(A):L=I;const{data:w}=t;let C;typeof w=="function"?C=yield w(A):C=w;const k=(typeof y=="object"||typeof y=="string")&&y?y:A;let Z;k instanceof File?Z=k:Z=new File([k],A.name,{type:A.type});const E=Z;return E.uid=A.uid,{origin:A,data:C,parsedFile:E,action:L}}),c=A=>{let{data:b,origin:v,action:y,parsedFile:I}=A;if(!u)return;const{onStart:L,customRequest:w,name:C,headers:k,withCredentials:Z,method:E}=t,{uid:z}=v,Y=w||cF,O={action:y,filename:C,data:b,file:I,headers:k,withCredentials:Z,method:E||"post",onProgress:M=>{const{onProgress:J}=t;J==null||J(M,I)},onSuccess:(M,J)=>{const{onSuccess:F}=t;F==null||F(M,I,J),delete r[z]},onError:(M,J)=>{const{onError:F}=t;F==null||F(M,J,I),delete r[z]}};L(v),r[z]=Y(O)},d=()=>{i.value=Zf()},W=A=>{if(A){const b=A.uid?A.uid:A;r[b]&&r[b].abort&&r[b].abort(),delete r[b]}else Object.keys(r).forEach(b=>{r[b]&&r[b].abort&&r[b].abort(),delete r[b]})};o.onMounted(()=>{u=!0}),o.onBeforeUnmount(()=>{u=!1,W()});const f=A=>{const b=[...A],v=b.map(y=>(y.uid=Zf(),s(y,b)));Promise.all(v).then(y=>{const{onBatchStart:I}=t;I==null||I(y.map(L=>{let{origin:w,parsedFile:C}=L;return{file:w,parsedFile:C}})),y.filter(L=>L.parsedFile!==null).forEach(L=>{c(L)})})},S=A=>{const{accept:b,directory:v}=t,{files:y}=A.target,I=[...y].filter(L=>!v||zf(L,b));f(I),d()},h=A=>{const b=p.value;if(!b)return;const{onClick:v}=t;b.click(),v&&v(A)},m=A=>{A.key==="Enter"&&h(A)},g=A=>{const{multiple:b}=t;if(A.preventDefault(),A.type!=="dragover")if(t.directory)SF(Array.prototype.slice.call(A.dataTransfer.items),f,v=>zf(v,t.accept));else{const v=P8(Array.prototype.slice.call(A.dataTransfer.files),L=>zf(L,t.accept));let y=v[0];const I=v[1];b===!1&&(y=y.slice(0,1)),f(y),I.length&&t.onReject&&t.onReject(I)}};return n({abort:W}),()=>{var A;const{componentTag:b,prefixCls:v,disabled:y,id:I,multiple:L,accept:w,capture:C,directory:k,openFileDialogOnClick:Z,onMouseenter:E,onMouseleave:z}=t,Y=mF(t,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),O={[v]:!0,[`${v}-disabled`]:y,[l.class]:!!l.class},M=k?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return o.createVNode(b,ct(ct({},y?{}:{onClick:Z?h:()=>{},onKeydown:Z?m:()=>{},onMouseenter:E,onMouseleave:z,onDrop:g,onDragover:g,tabindex:"0"}),{},{class:O,role:"button",style:l.style}),{default:()=>[o.createVNode("input",ct(ct(ct({},fW(Y,{aria:!0,data:!0})),{},{id:I,type:"file",ref:p,onClick:J=>J.stopPropagation(),onCancel:J=>J.stopPropagation(),key:i.value,style:{display:"none"},accept:w},M),{},{multiple:L,onChange:S},C!=null?{capture:C}:{}),null),(A=a.default)===null||A===void 0?void 0:A.call(a)]})}}});function Vf(){}const L2=o.defineComponent({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:pa(A2(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Vf,onError:Vf,onSuccess:Vf,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(t,e){let{slots:a,attrs:l,expose:n}=e;const i=o.ref();return n({abort:r=>{var p;(p=i.value)===null||p===void 0||p.abort(r)}}),()=>o.createVNode(gF,ct(ct(ct({},t),l),{},{ref:i}),a)}});var AF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};function b2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){LF(t,n,a[n])})}return t}function LF(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Nf=function(t,e){var a=b2({},t,e.attrs);return o.createVNode(Ft,b2({},a,{icon:AF}),null)};Nf.displayName="PaperClipOutlined",Nf.inheritAttrs=!1;var bF={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:e}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:e}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"};function y2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){yF(t,n,a[n])})}return t}function yF(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Tf=function(t,e){var a=y2({},t,e.attrs);return o.createVNode(Ft,y2({},a,{icon:bF}),null)};Tf.displayName="PictureTwoTone",Tf.inheritAttrs=!1;var vF={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:e}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"};function v2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){IF(t,n,a[n])})}return t}function IF(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Mf=function(t,e){var a=v2({},t,e.attrs);return o.createVNode(Ft,v2({},a,{icon:vF}),null)};Mf.displayName="FileTwoTone",Mf.inheritAttrs=!1;function I2(){return{capture:Ea([Boolean,String]),type:qe(),name:String,defaultFileList:Yo(),fileList:Yo(),action:Ea([String,Function]),directory:le(),data:Ea([Object,Function]),method:qe(),headers:_t(),showUploadList:Ea([Boolean,Object]),multiple:le(),accept:String,beforeUpload:Ut(),onChange:Ut(),"onUpdate:fileList":Ut(),onDrop:Ut(),listType:qe(),onPreview:Ut(),onDownload:Ut(),onReject:Ut(),onRemove:Ut(),remove:Ut(),supportServerRender:le(),disabled:le(),prefixCls:String,customRequest:Ut(),withCredentials:le(),openFileDialogOnClick:le(),locale:_t(),id:String,previewFile:Ut(),transformFile:Ut(),iconRender:Ut(),isImageUrl:Ut(),progress:_t(),itemRender:Ut(),maxCount:Number,height:Ea([Number,String]),removeIcon:Ut(),downloadIcon:Ut(),previewIcon:Ut()}}function CF(){return{listType:qe(),onPreview:Ut(),onDownload:Ut(),onRemove:Ut(),items:Yo(),progress:_t(),prefixCls:qe(),showRemoveIcon:le(),showDownloadIcon:le(),showPreviewIcon:le(),removeIcon:Ut(),downloadIcon:Ut(),previewIcon:Ut(),locale:_t(void 0),previewFile:Ut(),iconRender:Ut(),isImageUrl:Ut(),appendAction:Ut(),appendActionVisible:le(),itemRender:Ut()}}function Zs(t){return j(j({},t),{lastModified:t.lastModified,lastModifiedDate:t.lastModifiedDate,name:t.name,size:t.size,type:t.type,uid:t.uid,percent:0,originFileObj:t})}function zs(t,e){const a=[...e],l=a.findIndex(n=>{let{uid:i}=n;return i===t.uid});return l===-1?a.push(t):a[l]=t,a}function Kf(t,e){const a=t.uid!==void 0?"uid":"name";return e.filter(l=>l[a]===t[a])[0]}function xF(t,e){const a=t.uid!==void 0?"uid":"name",l=e.filter(n=>n[a]!==t[a]);return l.length===e.length?null:l}const wF=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),e=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(e)||[""])[0]},C2=t=>t.indexOf("image/")===0,OF=t=>{if(t.type&&!t.thumbUrl)return C2(t.type);const e=t.thumbUrl||t.url||"",a=wF(e);return/^data:image\//.test(e)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(a)?!0:!(/^data:/.test(e)||a)},fn=200;function kF(t){return new Promise(e=>{if(!t.type||!C2(t.type)){e("");return}const a=document.createElement("canvas");a.width=fn,a.height=fn,a.style.cssText=`position: fixed; left: 0; top: 0; width: ${fn}px; height: ${fn}px; z-index: 9999; display: none;`,document.body.appendChild(a);const l=a.getContext("2d"),n=new Image;if(n.onload=()=>{const{width:i,height:r}=n;let p=fn,u=fn,s=0,c=0;i>r?(u=r*(fn/i),c=-(u-p)/2):(p=i*(fn/r),s=-(p-u)/2),l.drawImage(n,s,c,p,u);const d=a.toDataURL();document.body.removeChild(a),e(d)},n.crossOrigin="anonymous",t.type.startsWith("image/svg+xml")){const i=new FileReader;i.addEventListener("load",()=>{i.result&&(n.src=i.result)}),i.readAsDataURL(t)}else n.src=window.URL.createObjectURL(t)})}var jF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};function x2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){qF(t,n,a[n])})}return t}function qF(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Rf=function(t,e){var a=x2({},t,e.attrs);return o.createVNode(Ft,x2({},a,{icon:jF}),null)};Rf.displayName="DownloadOutlined",Rf.inheritAttrs=!1;const ZF=()=>({prefixCls:String,locale:_t(void 0),file:_t(),items:Yo(),listType:qe(),isImgUrl:Ut(),showRemoveIcon:le(),showDownloadIcon:le(),showPreviewIcon:le(),removeIcon:Ut(),downloadIcon:Ut(),previewIcon:Ut(),iconRender:Ut(),actionIconRender:Ut(),itemRender:Ut(),onPreview:Ut(),onClose:Ut(),onDownload:Ut(),progress:_t()}),zF=o.defineComponent({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:ZF(),setup(t,e){let{slots:a,attrs:l}=e;var n;const i=o.shallowRef(!1),r=o.shallowRef();o.onMounted(()=>{r.value=setTimeout(()=>{i.value=!0},300)}),o.onBeforeUnmount(()=>{clearTimeout(r.value)});const p=o.shallowRef((n=t.file)===null||n===void 0?void 0:n.status);o.watch(()=>{var c;return(c=t.file)===null||c===void 0?void 0:c.status},c=>{c!=="removed"&&(p.value=c)});const{rootPrefixCls:u}=re("upload",t),s=o.computed(()=>sW(`${u.value}-fade`));return()=>{var c,d;const{prefixCls:W,locale:f,listType:S,file:h,items:m,progress:g,iconRender:A=a.iconRender,actionIconRender:b=a.actionIconRender,itemRender:v=a.itemRender,isImgUrl:y,showPreviewIcon:I,showRemoveIcon:L,showDownloadIcon:w,previewIcon:C=a.previewIcon,removeIcon:k=a.removeIcon,downloadIcon:Z=a.downloadIcon,onPreview:E,onDownload:z,onClose:Y}=t,{class:O,style:M}=l,J=A({file:h});let F=o.createVNode("div",{class:`${W}-text-icon`},[J]);if(S==="picture"||S==="picture-card")if(p.value==="uploading"||!h.thumbUrl&&!h.url){const Q={[`${W}-list-item-thumbnail`]:!0,[`${W}-list-item-file`]:p.value!=="uploading"};F=o.createVNode("div",{class:Q},[J])}else{const Q=y!=null&&y(h)?o.createVNode("img",{src:h.thumbUrl||h.url,alt:h.name,class:`${W}-list-item-image`,crossorigin:h.crossOrigin},null):J,$={[`${W}-list-item-thumbnail`]:!0,[`${W}-list-item-file`]:y&&!y(h)};F=o.createVNode("a",{class:$,onClick:ot=>E(h,ot),href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[Q])}const V={[`${W}-list-item`]:!0,[`${W}-list-item-${p.value}`]:!0},G=typeof h.linkProps=="string"?JSON.parse(h.linkProps):h.linkProps,U=L?b({customIcon:k?k({file:h}):o.createVNode(wf,null,null),callback:()=>Y(h),prefixCls:W,title:f.removeFile}):null,D=w&&p.value==="done"?b({customIcon:Z?Z({file:h}):o.createVNode(Rf,null,null),callback:()=>z(h),prefixCls:W,title:f.downloadFile}):null,B=S!=="picture-card"&&o.createVNode("span",{key:"download-delete",class:[`${W}-list-item-actions`,{picture:S==="picture"}]},[D,U]),H=`${W}-list-item-name`,pt=h.url?[o.createVNode("a",ct(ct({key:"view",target:"_blank",rel:"noopener noreferrer",class:H,title:h.name},G),{},{href:h.url,onClick:Q=>E(h,Q)}),[h.name]),B]:[o.createVNode("span",{key:"view",class:H,onClick:Q=>E(h,Q),title:h.name},[h.name]),B],K={pointerEvents:"none",opacity:.5},T=I?o.createVNode("a",{href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:h.url||h.thumbUrl?void 0:K,onClick:Q=>E(h,Q),title:f.previewFile},[C?C({file:h}):o.createVNode(Os,null,null)]):null,q=S==="picture-card"&&p.value!=="uploading"&&o.createVNode("span",{class:`${W}-list-item-actions`},[T,p.value==="done"&&D,U]),R=o.createVNode("div",{class:V},[F,pt,q,i.value&&o.createVNode(o.Transition,s.value,{default:()=>[o.withDirectives(o.createVNode("div",{class:`${W}-list-item-progress`},["percent"in h?o.createVNode(u2,ct(ct({},g),{},{type:"line",percent:h.percent}),null):null]),[[o.vShow,p.value==="uploading"]])]})]),P={[`${W}-list-item-container`]:!0,[`${O}`]:!!O},N=h.response&&typeof h.response=="string"?h.response:((c=h.error)===null||c===void 0?void 0:c.statusText)||((d=h.error)===null||d===void 0?void 0:d.message)||f.uploadError,X=p.value==="error"?o.createVNode(sn,{title:N,getPopupContainer:Q=>Q.parentNode},{default:()=>[R]}):R;return o.createVNode("div",{class:P,style:M},[v?v({originNode:X,file:h,fileList:m,actions:{download:z.bind(null,h),preview:E.bind(null,h),remove:Y.bind(null,h)}}):X])}}}),VF=(t,e)=>{let{slots:a}=e;var l;return nl((l=a.default)===null||l===void 0?void 0:l.call(a))[0]},NF=o.defineComponent({compatConfig:{MODE:3},name:"AUploadList",props:pa(CF(),{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:kF,isImageUrl:OF,items:[],appendActionVisible:!0}),setup(t,e){let{slots:a,expose:l}=e;const n=o.shallowRef(!1);o.onMounted(()=>{n.value==!0});const i=o.shallowRef([]);o.watch(()=>t.items,function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.value=h.slice()},{immediate:!0,deep:!0}),o.watchEffect(()=>{if(t.listType!=="picture"&&t.listType!=="picture-card")return;let h=!1;(t.items||[]).forEach((m,g)=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(m.originFileObj instanceof File||m.originFileObj instanceof Blob)||m.thumbUrl!==void 0||(m.thumbUrl="",t.previewFile&&t.previewFile(m.originFileObj).then(A=>{const b=A||"";b!==m.thumbUrl&&(i.value[g].thumbUrl=b,h=!0)}))}),h&&o.triggerRef(i)});const r=(h,m)=>{if(t.onPreview)return m==null||m.preventDefault(),t.onPreview(h)},p=h=>{typeof t.onDownload=="function"?t.onDownload(h):h.url&&window.open(h.url)},u=h=>{var m;(m=t.onRemove)===null||m===void 0||m.call(t,h)},s=h=>{let{file:m}=h;const g=t.iconRender||a.iconRender;if(g)return g({file:m,listType:t.listType});const A=m.status==="uploading",b=t.isImageUrl&&t.isImageUrl(m)?o.createVNode(Tf,null,null):o.createVNode(Mf,null,null);let v=A?o.createVNode(Fa,null,null):o.createVNode(Nf,null,null);return t.listType==="picture"?v=A?o.createVNode(Fa,null,null):b:t.listType==="picture-card"&&(v=A?t.locale.uploading:b),v},c=h=>{const{customIcon:m,callback:g,prefixCls:A,title:b}=h,v={type:"text",size:"small",title:b,onClick:()=>{g()},class:`${A}-list-item-action`};return wl(m)?o.createVNode(aa,v,{icon:()=>m}):o.createVNode(aa,v,{default:()=>[o.createVNode("span",null,[m])]})};l({handlePreview:r,handleDownload:p});const{prefixCls:d,rootPrefixCls:W}=re("upload",t),f=o.computed(()=>({[`${d.value}-list`]:!0,[`${d.value}-list-${t.listType}`]:!0})),S=o.computed(()=>{const h=j({},U1(`${W.value}-motion-collapse`));delete h.onAfterAppear,delete h.onAfterEnter,delete h.onAfterLeave;const m=j(j({},cW(`${d.value}-${t.listType==="picture-card"?"animate-inline":"animate"}`)),{class:f.value,appear:n.value});return t.listType!=="picture-card"?j(j({},h),m):m});return()=>{const{listType:h,locale:m,isImageUrl:g,showPreviewIcon:A,showRemoveIcon:b,showDownloadIcon:v,removeIcon:y,previewIcon:I,downloadIcon:L,progress:w,appendAction:C,itemRender:k,appendActionVisible:Z}=t,E=C==null?void 0:C(),z=i.value;return o.createVNode(o.TransitionGroup,ct(ct({},S.value),{},{tag:"div"}),{default:()=>[z.map(Y=>{const{uid:O}=Y;return o.createVNode(zF,{key:O,locale:m,prefixCls:d.value,file:Y,items:z,progress:w,listType:h,isImgUrl:g,showPreviewIcon:A,showRemoveIcon:b,showDownloadIcon:v,onPreview:r,onDownload:p,onClose:u,removeIcon:y,previewIcon:I,downloadIcon:L,itemRender:k},j(j({},a),{iconRender:s,actionIconRender:c}))}),C?o.withDirectives(o.createVNode(VF,{key:"__ant_upload_appendAction"},{default:()=>E}),[[o.vShow,!!Z]]):null]})}}}),TF=t=>{const{componentCls:e,iconCls:a}=t;return{[`${e}-wrapper`]:{[`${e}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:t.colorFillAlter,border:`${t.lineWidth}px dashed ${t.colorBorder}`,borderRadius:t.borderRadiusLG,cursor:"pointer",transition:`border-color ${t.motionDurationSlow}`,[e]:{padding:`${t.padding}px 0`},[`${e}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${e}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${e}-disabled):hover`]:{borderColor:t.colorPrimaryHover},[`p${e}-drag-icon`]:{marginBottom:t.margin,[a]:{color:t.colorPrimary,fontSize:t.uploadThumbnailSize}},[`p${e}-text`]:{margin:`0 0 ${t.marginXXS}px`,color:t.colorTextHeading,fontSize:t.fontSizeLG},[`p${e}-hint`]:{color:t.colorTextDescription,fontSize:t.fontSize},[`&${e}-disabled`]:{cursor:"not-allowed",[`p${e}-drag-icon ${a},
|
|
267
267
|
p${e}-text,
|
|
268
268
|
p${e}-hint
|
|
269
269
|
`]:{color:t.colorTextDisabled}}}}}},MF=t=>{const{componentCls:e,antCls:a,iconCls:l,fontSize:n,lineHeight:i}=t,r=`${e}-list-item`,p=`${r}-actions`,u=`${r}-action`,s=Math.round(n*i);return{[`${e}-wrapper`]:{[`${e}-list`]:j(j({},Cr()),{lineHeight:t.lineHeight,[r]:{position:"relative",height:t.lineHeight*n,marginTop:t.marginXS,fontSize:n,display:"flex",alignItems:"center",transition:`background-color ${t.motionDurationSlow}`,"&:hover":{backgroundColor:t.controlItemBgHover},[`${r}-name`]:j(j({},Hn),{padding:`0 ${t.paddingXS}px`,lineHeight:i,flex:"auto",transition:`all ${t.motionDurationSlow}`}),[p]:{[u]:{opacity:0},[`${u}${a}-btn-sm`]:{height:s,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
270
270
|
${u}:focus,
|
|
271
271
|
&.picture ${u}
|
|
272
|
-
`]:{opacity:1},[l]:{color:t.colorTextDescription,transition:`all ${t.motionDurationSlow}`},[`&:hover ${l}`]:{color:t.colorText}},[`${e}-icon ${l}`]:{color:t.colorTextDescription,fontSize:n},[`${r}-progress`]:{position:"absolute",bottom:-t.uploadProgressOffset,width:"100%",paddingInlineStart:n+t.paddingXS,fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${r}:hover ${u}`]:{opacity:1,color:t.colorText},[`${r}-error`]:{color:t.colorError,[`${r}-name, ${e}-icon ${l}`]:{color:t.colorError},[p]:{[`${l}, ${l}:hover`]:{color:t.colorError},[u]:{opacity:1}}},[`${e}-list-item-container`]:{transition:`opacity ${t.motionDurationSlow}, height ${t.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},wC=new Bt("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),OC=new Bt("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),KF=t=>{const{componentCls:e}=t,a=`${e}-animate-inline`;return[{[`${e}-wrapper`]:{[`${a}-appear, ${a}-enter, ${a}-leave`]:{animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseInOutCirc,animationFillMode:"forwards"},[`${a}-appear, ${a}-enter`]:{animationName:wC},[`${a}-leave`]:{animationName:OC}}},wC,OC]},RF=t=>{const{componentCls:e,iconCls:a,uploadThumbnailSize:l,uploadProgressOffset:n}=t,i=`${e}-list`,r=`${i}-item`;return{[`${e}-wrapper`]:{[`${i}${i}-picture, ${i}${i}-picture-card`]:{[r]:{position:"relative",height:l+t.lineWidth*2+t.paddingXS*2,padding:t.paddingXS,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadiusLG,"&:hover":{background:"transparent"},[`${r}-thumbnail`]:j(j({},Hn),{width:l,height:l,lineHeight:`${l+t.paddingSM}px`,textAlign:"center",flex:"none",[a]:{fontSize:t.fontSizeHeading2,color:t.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${r}-progress`]:{bottom:n,width:`calc(100% - ${t.paddingSM*2}px)`,marginTop:0,paddingInlineStart:l+t.paddingXS}},[`${r}-error`]:{borderColor:t.colorError,[`${r}-thumbnail ${a}`]:{"svg path[fill='#e6f7ff']":{fill:t.colorErrorBg},"svg path[fill='#1890ff']":{fill:t.colorError}}},[`${r}-uploading`]:{borderStyle:"dashed",[`${r}-name`]:{marginBottom:n}}}}}},EF=t=>{const{componentCls:e,iconCls:a,fontSizeLG:l,colorTextLightSolid:n}=t,i=`${e}-list`,r=`${i}-item`,p=t.uploadPicCardSize;return{[`${e}-wrapper${e}-picture-card-wrapper`]:j(j({},Cr()),{display:"inline-block",width:"100%",[`${e}${e}-select`]:{width:p,height:p,marginInlineEnd:t.marginXS,marginBottom:t.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:t.colorFillAlter,border:`${t.lineWidth}px dashed ${t.colorBorder}`,borderRadius:t.borderRadiusLG,cursor:"pointer",transition:`border-color ${t.motionDurationSlow}`,[`> ${e}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${e}-disabled):hover`]:{borderColor:t.colorPrimary}},[`${i}${i}-picture-card`]:{[`${i}-item-container`]:{display:"inline-block",width:p,height:p,marginBlock:`0 ${t.marginXS}px`,marginInline:`0 ${t.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[r]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${t.paddingXS*2}px)`,height:`calc(100% - ${t.paddingXS*2}px)`,backgroundColor:t.colorBgMask,opacity:0,transition:`all ${t.motionDurationSlow}`,content:'" "'}},[`${r}:hover`]:{[`&::before, ${r}-actions`]:{opacity:1}},[`${r}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${t.motionDurationSlow}`,[`${a}-eye, ${a}-download, ${a}-delete`]:{zIndex:10,width:l,margin:`0 ${t.marginXXS}px`,fontSize:l,cursor:"pointer",transition:`all ${t.motionDurationSlow}`}},[`${r}-actions, ${r}-actions:hover`]:{[`${a}-eye, ${a}-download, ${a}-delete`]:{color:new ge(n).setAlpha(.65).toRgbString(),"&:hover":{color:n}}},[`${r}-thumbnail, ${r}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${r}-name`]:{display:"none",textAlign:"center"},[`${r}-file + ${r}-name`]:{position:"absolute",bottom:t.margin,display:"block",width:`calc(100% - ${t.paddingXS*2}px)`},[`${r}-uploading`]:{[`&${r}`]:{backgroundColor:t.colorFillAlter},[`&::before, ${a}-eye, ${a}-download, ${a}-delete`]:{display:"none"}},[`${r}-progress`]:{bottom:t.marginXL,width:`calc(100% - ${t.paddingXS*2}px)`,paddingInlineStart:0}}})}},PF=t=>{const{componentCls:e}=t;return{[`${e}-rtl`]:{direction:"rtl"}}},YF=t=>{const{componentCls:e,colorTextDisabled:a}=t;return{[`${e}-wrapper`]:j(j({},Ye(t)),{[e]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${e}-select`]:{display:"inline-block"},[`${e}-disabled`]:{color:a,cursor:"not-allowed"}})}},GF=Ze("Upload",t=>{const{fontSizeHeading3:e,fontSize:a,lineHeight:l,lineWidth:n,controlHeightLG:i}=t,r=Math.round(a*l),p=ne(t,{uploadThumbnailSize:e*2,uploadProgressOffset:r/2+n,uploadPicCardSize:i*2.55});return[YF(p),TF(p),RF(p),EF(p),MF(p),KF(p),PF(p),Qv(p)]});var XF=function(t,e,a,l){function n(i){return i instanceof a?i:new a(function(r){r(i)})}return new(a||(a=Promise))(function(i,r){function p(c){try{s(l.next(c))}catch(d){r(d)}}function u(c){try{s(l.throw(c))}catch(d){r(d)}}function s(c){c.done?i(c.value):n(c.value).then(p,u)}s((l=l.apply(t,e||[])).next())})},FF=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const lp=`__LIST_IGNORE_${Date.now()}__`,Vs=o.defineComponent({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:pa(IC(),{type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",supportServerRender:!0}),setup(t,e){let{slots:a,attrs:l,expose:n}=e;const i=ns(),{prefixCls:r,direction:p,disabled:u}=re("upload",t),[s,c]=GF(r),d=En(),W=o.computed(()=>{var Z;return(Z=u.value)!==null&&Z!==void 0?Z:d.value}),[f,S]=es(t.defaultFileList||[],{value:o.toRef(t,"fileList"),postState:Z=>{const E=Date.now();return(Z??[]).map((z,Y)=>(!z.uid&&!Object.isFrozen(z)&&(z.uid=`__AUTO__${E}_${Y}__`),z))}}),h=o.ref("drop"),m=o.ref(null);o.onMounted(()=>{Ae(t.fileList!==void 0||l.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Ae(t.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Ae(t.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const g=(Z,E,z)=>{var Y,O;let M=[...E];t.maxCount===1?M=M.slice(-1):t.maxCount&&(M=M.slice(0,t.maxCount)),S(M);const J={file:Z,fileList:M};z&&(J.event=z),(Y=t["onUpdate:fileList"])===null||Y===void 0||Y.call(t,J.fileList),(O=t.onChange)===null||O===void 0||O.call(t,J),i.onFieldChange()},A=(Z,E)=>XF(this,void 0,void 0,function*(){const{beforeUpload:z,transformFile:Y}=t;let O=Z;if(z){const M=yield z(Z,E);if(M===!1)return!1;if(delete Z[lp],M===lp)return Object.defineProperty(Z,lp,{value:!0,configurable:!0}),!1;typeof M=="object"&&M&&(O=M)}return Y&&(O=yield Y(O)),O}),b=Z=>{const E=Z.filter(O=>!O.file[lp]);if(!E.length)return;const z=E.map(O=>Zs(O.file));let Y=[...f.value];z.forEach(O=>{Y=zs(O,Y)}),z.forEach((O,M)=>{let J=O;if(E[M].parsedFile)O.status="uploading";else{const{originFileObj:F}=O;let V;try{V=new File([F],F.name,{type:F.type})}catch{V=new Blob([F],{type:F.type}),V.name=F.name,V.lastModifiedDate=new Date,V.lastModified=new Date().getTime()}V.uid=O.uid,J=V}g(J,Y)})},v=(Z,E,z)=>{try{typeof Z=="string"&&(Z=JSON.parse(Z))}catch{}if(!Kf(E,f.value))return;const Y=Zs(E);Y.status="done",Y.percent=100,Y.response=Z,Y.xhr=z;const O=zs(Y,f.value);g(Y,O)},y=(Z,E)=>{if(!Kf(E,f.value))return;const z=Zs(E);z.status="uploading",z.percent=Z.percent;const Y=zs(z,f.value);g(z,Y,Z)},I=(Z,E,z)=>{if(!Kf(z,f.value))return;const Y=Zs(z);Y.error=Z,Y.response=E,Y.status="error";const O=zs(Y,f.value);g(Y,O)},L=Z=>{let E;const z=t.onRemove||t.remove;Promise.resolve(typeof z=="function"?z(Z):z).then(Y=>{var O,M;if(Y===!1)return;const J=xF(Z,f.value);J&&(E=j(j({},Z),{status:"removed"}),(O=f.value)===null||O===void 0||O.forEach(F=>{const V=E.uid!==void 0?"uid":"name";F[V]===E[V]&&!Object.isFrozen(F)&&(F.status="removed")}),(M=m.value)===null||M===void 0||M.abort(E),g(E,J))})},w=Z=>{var E;h.value=Z.type,Z.type==="drop"&&((E=t.onDrop)===null||E===void 0||E.call(t,Z))};n({onBatchStart:b,onSuccess:v,onProgress:y,onError:I,fileList:f,upload:m});const[C]=gz("Upload",Pn.Upload,o.computed(()=>t.locale)),k=(Z,E)=>{const{removeIcon:z,previewIcon:Y,downloadIcon:O,previewFile:M,onPreview:J,onDownload:F,isImageUrl:V,progress:G,itemRender:U,iconRender:D,showUploadList:B}=t,{showDownloadIcon:H,showPreviewIcon:pt,showRemoveIcon:K}=typeof B=="boolean"?{}:B;return B?o.createVNode(NF,{prefixCls:r.value,listType:t.listType,items:f.value,previewFile:M,onPreview:J,onDownload:F,onRemove:L,showRemoveIcon:!W.value&&K,showPreviewIcon:pt,showDownloadIcon:H,removeIcon:z,previewIcon:Y,downloadIcon:O,iconRender:D,locale:C.value,isImageUrl:V,progress:G,itemRender:U,appendActionVisible:E,appendAction:Z},j({},a)):Z==null?void 0:Z()};return()=>{var Z,E,z;const{listType:Y,type:O}=t,{class:M,style:J}=l,F=FF(l,["class","style"]),V=j(j(j({onBatchStart:b,onError:I,onProgress:y,onSuccess:v},F),t),{id:(Z=t.id)!==null&&Z!==void 0?Z:i.id.value,prefixCls:r.value,beforeUpload:A,onChange:void 0,disabled:W.value});delete V.remove,(!a.default||W.value)&&delete V.id;const G={[`${r.value}-rtl`]:p.value==="rtl"};if(O==="drag"){const H=Mt(r.value,{[`${r.value}-drag`]:!0,[`${r.value}-drag-uploading`]:f.value.some(pt=>pt.status==="uploading"),[`${r.value}-drag-hover`]:h.value==="dragover",[`${r.value}-disabled`]:W.value,[`${r.value}-rtl`]:p.value==="rtl"},l.class,c.value);return s(o.createVNode("span",ct(ct({},l),{},{class:Mt(`${r.value}-wrapper`,G,M,c.value)}),[o.createVNode("div",{class:H,onDrop:w,onDragover:w,onDragleave:w,style:l.style},[o.createVNode(LC,ct(ct({},V),{},{ref:m,class:`${r.value}-btn`}),ct({default:()=>[o.createVNode("div",{class:`${r.value}-drag-container`},[(E=a.default)===null||E===void 0?void 0:E.call(a)])]},a))]),k()]))}const U=Mt(r.value,{[`${r.value}-select`]:!0,[`${r.value}-select-${Y}`]:!0,[`${r.value}-disabled`]:W.value,[`${r.value}-rtl`]:p.value==="rtl"}),D=ta((z=a.default)===null||z===void 0?void 0:z.call(a)),B=H=>o.createVNode("div",{class:U,style:H},[o.createVNode(LC,ct(ct({},V),{},{ref:m}),a)]);return s(Y==="picture-card"?o.createVNode("span",ct(ct({},l),{},{class:Mt(`${r.value}-wrapper`,`${r.value}-picture-card-wrapper`,G,l.class,c.value)}),[k(B,!!D.length)]):o.createVNode("span",ct(ct({},l),{},{class:Mt(`${r.value}-wrapper`,G,l.class,c.value)}),[B(D.length?void 0:{display:"none"}),k()]))}}});var kC=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const Ef=o.defineComponent({compatConfig:{MODE:3},name:"AUploadDragger",inheritAttrs:!1,props:IC(),setup(t,e){let{slots:a,attrs:l}=e;return()=>{const{height:n}=t,i=kC(t,["height"]),{style:r}=l,p=kC(l,["style"]),u=j(j(j({},i),p),{type:"drag",style:j(j({},r),{height:typeof n=="number"?`${n}px`:n})});return o.createVNode(Vs,u,a)}}}),jC=j(Vs,{Dragger:Ef,LIST_IGNORE:lp,install(t){return t.component(Vs.name,Vs),t.component(Ef.name,Ef),t}});var JF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};function qC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){HF(t,n,a[n])})}return t}function HF(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Pf=function(t,e){var a=qC({},t,e.attrs);return o.createVNode(Ft,qC({},a,{icon:JF}),null)};Pf.displayName="ArrowUpOutlined",Pf.inheritAttrs=!1;var DF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"};function ZC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){UF(t,n,a[n])})}return t}function UF(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Yf=function(t,e){var a=ZC({},t,e.attrs);return o.createVNode(Ft,ZC({},a,{icon:DF}),null)};Yf.displayName="AudioMutedOutlined",Yf.inheritAttrs=!1;var BF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"};function zC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){QF(t,n,a[n])})}return t}function QF(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Gf=function(t,e){var a=zC({},t,e.attrs);return o.createVNode(Ft,zC({},a,{icon:BF}),null)};Gf.displayName="AudioOutlined",Gf.inheritAttrs=!1;var $F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};function VC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){_F(t,n,a[n])})}return t}function _F(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Xf=function(t,e){var a=VC({},t,e.attrs);return o.createVNode(Ft,VC({},a,{icon:$F}),null)};Xf.displayName="ClearOutlined",Xf.inheritAttrs=!1;var tJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"};function NC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){eJ(t,n,a[n])})}return t}function eJ(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Ff=function(t,e){var a=NC({},t,e.attrs);return o.createVNode(Ft,NC({},a,{icon:tJ}),null)};Ff.displayName="FileExcelFilled",Ff.inheritAttrs=!1;var aJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"};function TC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){lJ(t,n,a[n])})}return t}function lJ(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Jf=function(t,e){var a=TC({},t,e.attrs);return o.createVNode(Ft,TC({},a,{icon:aJ}),null)};Jf.displayName="FileImageFilled",Jf.inheritAttrs=!1;var nJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"};function MC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){oJ(t,n,a[n])})}return t}function oJ(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Hf=function(t,e){var a=MC({},t,e.attrs);return o.createVNode(Ft,MC({},a,{icon:nJ}),null)};Hf.displayName="FileMarkdownFilled",Hf.inheritAttrs=!1;var iJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"};function KC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){rJ(t,n,a[n])})}return t}function rJ(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Df=function(t,e){var a=KC({},t,e.attrs);return o.createVNode(Ft,KC({},a,{icon:iJ}),null)};Df.displayName="FilePdfFilled",Df.inheritAttrs=!1;var pJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"};function RC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){uJ(t,n,a[n])})}return t}function uJ(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Uf=function(t,e){var a=RC({},t,e.attrs);return o.createVNode(Ft,RC({},a,{icon:pJ}),null)};Uf.displayName="FilePptFilled",Uf.inheritAttrs=!1;var sJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"};function EC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){cJ(t,n,a[n])})}return t}function cJ(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Bf=function(t,e){var a=EC({},t,e.attrs);return o.createVNode(Ft,EC({},a,{icon:sJ}),null)};Bf.displayName="FileTextFilled",Bf.inheritAttrs=!1;var dJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"};function PC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){WJ(t,n,a[n])})}return t}function WJ(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Qf=function(t,e){var a=PC({},t,e.attrs);return o.createVNode(Ft,PC({},a,{icon:dJ}),null)};Qf.displayName="FileWordFilled",Qf.inheritAttrs=!1;var fJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"};function YC(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){SJ(t,n,a[n])})}return t}function SJ(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var $f=function(t,e){var a=YC({},t,e.attrs);return o.createVNode(Ft,YC({},a,{icon:fJ}),null)};$f.displayName="FileZipFilled",$f.inheritAttrs=!1;const GC=["wrap","nowrap","wrap-reverse"],XC=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],FC=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],hJ=(t,e)=>{const a={};return GC.forEach(l=>{a[`${t}-wrap-${l}`]=e.wrap===l}),a},mJ=(t,e)=>{const a={};return FC.forEach(l=>{a[`${t}-align-${l}`]=e.align===l}),a[`${t}-align-stretch`]=!e.align&&!!e.vertical,a},gJ=(t,e)=>{const a={};return XC.forEach(l=>{a[`${t}-justify-${l}`]=e.justify===l}),a};function AJ(t,e){return Mt(j(j(j({},hJ(t,e)),mJ(t,e)),gJ(t,e)))}const LJ=t=>{const{componentCls:e}=t;return{[e]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},bJ=t=>{const{componentCls:e}=t;return{[e]:{"&-gap-small":{gap:t.flexGapSM},"&-gap-middle":{gap:t.flexGap},"&-gap-large":{gap:t.flexGapLG}}}},yJ=t=>{const{componentCls:e}=t,a={};return GC.forEach(l=>{a[`${e}-wrap-${l}`]={flexWrap:l}}),a},vJ=t=>{const{componentCls:e}=t,a={};return FC.forEach(l=>{a[`${e}-align-${l}`]={alignItems:l}}),a},IJ=t=>{const{componentCls:e}=t,a={};return XC.forEach(l=>{a[`${e}-justify-${l}`]={justifyContent:l}}),a},CJ=Ze("Flex",t=>{const e=ne(t,{flexGapSM:t.paddingXS,flexGap:t.padding,flexGapLG:t.paddingLG});return[LJ(e),bJ(e),yJ(e),vJ(e),IJ(e)]});function JC(t){return["small","middle","large"].includes(t)}const xJ=()=>({prefixCls:qe(),vertical:le(),wrap:qe(),justify:qe(),align:qe(),flex:Ea([Number,String]),gap:Ea([Number,String]),component:Fe()});var wJ=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const OJ=o.defineComponent({name:"AFlex",inheritAttrs:!1,props:xJ(),setup(t,e){let{slots:a,attrs:l}=e;const{flex:n,direction:i}=dr(),{prefixCls:r}=re("flex",t),[p,u]=CJ(r),s=o.computed(()=>{var c;return[r.value,u.value,AJ(r.value,t),{[`${r.value}-rtl`]:i.value==="rtl",[`${r.value}-gap-${t.gap}`]:JC(t.gap),[`${r.value}-vertical`]:(c=t.vertical)!==null&&c!==void 0?c:n==null?void 0:n.value.vertical}]});return()=>{var c;const{flex:d,gap:W,component:f="div"}=t,S=wJ(t,["flex","gap","component"]),h={};return d&&(h.flex=d),W&&!JC(W)&&(h.gap=`${W}px`),p(o.createVNode(f,ct({class:[l.class,s.value],style:[l.style,h]},ye(S,["justify","wrap","align","vertical"])),{default:()=>[(c=a.default)===null||c===void 0?void 0:c.call(a)]}))}}}),np=an(OJ),Sn=(t,e)=>new ge(t).setAlpha(e).toRgbString(),mi=(t,e)=>new ge(t).lighten(e).toHexString(),kJ=t=>{const e=kl(t,{theme:"dark"});return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[6],6:e[5],7:e[4],8:e[6],9:e[5],10:e[4]}},jJ=(t,e)=>{const a=t||"#000",l=e||"#fff";return{colorBgBase:a,colorTextBase:l,colorText:Sn(l,.85),colorTextSecondary:Sn(l,.65),colorTextTertiary:Sn(l,.45),colorTextQuaternary:Sn(l,.25),colorFill:Sn(l,.18),colorFillSecondary:Sn(l,.12),colorFillTertiary:Sn(l,.08),colorFillQuaternary:Sn(l,.04),colorBgElevated:mi(a,12),colorBgContainer:mi(a,8),colorBgLayout:mi(a,0),colorBgSpotlight:mi(a,26),colorBorder:mi(a,26),colorBorderSecondary:mi(a,19)}},qJ=(t,e)=>{const a=Object.keys(w0).map(n=>{const i=kl(t[n],{theme:"dark"});return new Array(10).fill(1).reduce((r,p,u)=>(r[`${n}-${u+1}`]=i[u],r),{})}).reduce((n,i)=>(n=j(j({},n),i),n),{}),l=e??zu(t);return j(j(j({},l),a),Cb(t,{generateColorPalettes:kJ,generateNeutralColorPalettes:jJ}))};function ZJ(t){const{sizeUnit:e,sizeStep:a}=t,l=a-2;return{sizeXXL:e*(l+10),sizeXL:e*(l+6),sizeLG:e*(l+2),sizeMD:e*(l+2),sizeMS:e*(l+1),size:e*l,sizeSM:e*l,sizeXS:e*(l-1),sizeXXS:e*(l-1)}}const zJ=(t,e)=>{const a=e??zu(t),l=a.fontSizeSM,n=a.controlHeight-4;return j(j(j(j(j({},a),ZJ(e??t)),xb(l)),{controlHeight:n}),Ib(j(j({},a),{controlHeight:n})))};function VJ(){const[t,e,a]=Dn();return{theme:t,token:e,hashId:a}}const hn={defaultConfig:xr,defaultSeed:xr.token,useToken:VJ,defaultAlgorithm:zu,darkAlgorithm:qJ,compactAlgorithm:zJ},HC=o.defineComponent({name:"AXConfigProvider",inheritAttrs:!1,__name:"index",props:{bubble:{},conversations:{},prompts:{},sender:{},suggestion:{},thoughtChain:{},attachments:{},welcome:{},iconPrefixCls:{},getTargetContainer:{},getPopupContainer:{},prefixCls:{},getPrefixCls:{},renderEmpty:{},transformCellText:{},csp:{},input:{},autoInsertSpaceInButton:{type:Boolean},locale:{},pageHeader:{},componentSize:{},componentDisabled:{type:Boolean},direction:{},space:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{},form:{},pagination:{},theme:{},select:{},wave:{}},setup(t){const e=_e(t,["attachments","bubble","conversations","prompts","suggestion","thoughtChain","welcome"]),a=o.useSlots(),l=o.computed(()=>({attachments:t.attachments,bubble:t.bubble,conversations:t.conversations,prompts:t.prompts,suggestion:t.suggestion,thoughtChain:t.thoughtChain,welcome:t.welcome})),{theme:n}=fa(),i=o.computed(()=>({...(n==null?void 0:n.value)||{},...e.theme})),r=o.computed(()=>{var p;return(p=a.default)==null?void 0:p.call(a)});return()=>o.createVNode(kZ,{value:l.value},{default:()=>[o.createVNode(hi,o.mergeProps(e,{theme:i.value}),{default:()=>[r.value]})]})}}),NJ={classNames:{},styles:{},className:"",style:{}},mn=t=>{const e=OZ();return o.computed(()=>({...NJ,...o.unref(e)[t]}))};function we(t){const e=typeof t=="function"?t():t,a=o.ref(e);function l(n){a.value=n}return[a,l]}function so(t){return typeof t=="string"}const TJ=(t,e,a,l)=>{const[n,i]=we(""),[r,p]=we(1),u=o.computed(()=>e.value&&so(t.value));return o.watch(t,()=>{const s=o.unref(n);i(t.value),!u.value&&so(t.value)?p(t.value.length):so(t.value)&&so(s)&&t.value.indexOf(s)!==0&&p(1)}),o.watch([r,e,t],()=>{if(u.value&&so(t.value)&&o.unref(r)<t.value.length){const s=setTimeout(()=>{p(o.unref(r)+a.value)},l.value);o.onWatcherCleanup(()=>{clearTimeout(s)})}},{immediate:!0}),[o.computed(()=>u.value&&so(t.value)?t.value.slice(0,o.unref(r)):t.value),o.computed(()=>u.value&&so(t.value)&&o.unref(r)<t.value.length)]};function MJ(t){const e=o.computed(()=>!!o.toValue(t)),a={step:1,interval:50,suffix:null},l=o.computed(()=>{const n=o.toValue(t);return{...a,...typeof n=="object"?n:{}}});return[e,o.computed(()=>l.value.step),o.computed(()=>l.value.interval),o.computed(()=>l.value.suffix)]}const KJ=o.defineComponent({name:"AXBubbleLoading",__name:"loading",props:{prefixCls:null},setup(t){return()=>o.createVNode("span",{class:`${t.prefixCls}-dot`},[o.createVNode("i",{class:`${t.prefixCls}-dot-item`,key:"item-1"},null),o.createVNode("i",{class:`${t.prefixCls}-dot-item`,key:"item-2"},null),o.createVNode("i",{class:`${t.prefixCls}-dot-item`,key:"item-3"},null)])}}),DC="%";class RJ{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join(DC):e)||null}update(e,a){const l=Array.isArray(e)?e.join(DC):e,n=this.cache.get(l),i=a(n);i===null?this.cache.delete(l):this.cache.set(l,i)}}const UC="data-token-hash",gn="data-css-hash",EJ="data-cache-path",gi="__cssinjs_instance__";function op(){const t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const e=document.body.querySelectorAll(`style[${gn}]`)||[],{firstChild:a}=document.head;Array.from(e).forEach(n=>{n[gi]=n[gi]||t,n[gi]===t&&document.head.insertBefore(n,a)});const l={};Array.from(document.querySelectorAll(`style[${gn}]`)).forEach(n=>{var i;const r=n.getAttribute(gn);l[r]?n[gi]===t&&((i=n.parentNode)==null||i.removeChild(n)):l[r]=!0})}return new RJ(t)}const BC=Symbol("StyleContextKey"),PJ=()=>{var t,e,a;const l=o.getCurrentInstance();let n;if(l&&l.appContext){const i=(a=(e=(t=l.appContext)==null?void 0:t.config)==null?void 0:e.globalProperties)==null?void 0:a.__ANTDV_CSSINJS_CACHE__;i?n=i:(n=op(),l.appContext.config.globalProperties&&(l.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=n))}else n=op();return n},QC={cache:op(),defaultCache:!0,hashPriority:"low"},ip=()=>{const t=PJ();return o.inject(BC,o.shallowRef({...QC,cache:t}))},_C=t=>{const e=ip(),a=o.shallowRef({...QC,cache:op()});return o.watch([()=>o.unref(t),e],()=>{const l={...e.value},n=o.unref(t);Object.keys(n).forEach(r=>{const p=n[r];n[r]!==void 0&&(l[r]=p)});const{cache:i}=n;l.cache=l.cache||op(),l.defaultCache=!i&&e.value.defaultCache,a.value=l},{immediate:!0}),o.provide(BC,a),a},YJ=()=>({autoClear:t0(),mock:cL(),cache:xl(),defaultCache:t0(),hashPriority:cL(),container:xZ(),ssrInline:t0(),transformers:sL(),linters:sL()}),GJ=IZ(o.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:YJ(),setup(t,{slots:e}){return _C(t),()=>{var a;return(a=e.default)==null?void 0:a.call(e)}}})),XJ={useStyleInject:ip,useStyleProvider:_C,StyleProvider:GJ};function FJ(){return!1}let _f=!1;function JJ(){return _f}const HJ=process.env.NODE_ENV==="production"?FJ:JJ;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){const t=window;if(typeof t.webpackHotUpdate=="function"){const e=t.webpackHotUpdate;t.webpackHotUpdate=(...a)=>(_f=!0,setTimeout(()=>{_f=!1},0),e(...a))}}function tS(t,e,a,l){const n=ip(),i=o.shallowRef(""),r=o.shallowRef();o.watchEffect(()=>{i.value=[t,...e.value].join("%")});const p=HJ(),u=s=>{n.value.cache.update(s,c=>{const[d=0,W]=c||[];return d-1===0?(l==null||l(W,!1),null):[d-1,W]})};return o.watch(i,(s,c)=>{c&&u(c),n.value.cache.update(s,d=>{const[W=0,f]=d||[];let S=f;process.env.NODE_ENV!=="production"&&f&&p&&(l==null||l(S,p),S=null);const h=S||a();return[W+1,h]}),r.value=n.value.cache.get(i.value)[1]},{immediate:!0}),o.onBeforeUnmount(()=>{u(i.value)}),r}function Ai(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function DJ(t,e){return t&&t.contains?t.contains(e):!1}const t2="data-vc-order",UJ="vc-util-key",eS=new Map;function e2({mark:t}={}){return t?t.startsWith("data-")?t:`data-${t}`:UJ}function Ns(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}function BJ(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function a2(t){return Array.from((eS.get(t)||t).children).filter(e=>e.tagName==="STYLE")}function l2(t,e={}){if(!Ai())return null;const{csp:a,prepend:l}=e,n=document.createElement("style");n.setAttribute(t2,BJ(l)),a!=null&&a.nonce&&(n.nonce=a==null?void 0:a.nonce),n.innerHTML=t;const i=Ns(e),{firstChild:r}=i;if(l){if(l==="queue"){const p=a2(i).filter(u=>["prepend","prependQueue"].includes(u.getAttribute(t2)));if(p.length)return i.insertBefore(n,p[p.length-1].nextSibling),n}i.insertBefore(n,r)}else i.appendChild(n);return n}function n2(t,e={}){const a=Ns(e);return a2(a).find(l=>l.getAttribute(e2(e))===t)}function aS(t,e={}){const a=n2(t,e);a&&Ns(e).removeChild(a)}function QJ(t,e){const a=eS.get(t);if(!a||!DJ(document,a)){const l=l2("",e),{parentNode:n}=l;eS.set(t,n),t.removeChild(l)}}function lS(t,e,a={}){var l,n,i;const r=Ns(a);QJ(r,a);const p=n2(e,a);if(p)return(l=a.csp)!=null&&l.nonce&&p.nonce!==((n=a.csp)==null?void 0:n.nonce)&&(p.nonce=(i=a.csp)==null?void 0:i.nonce),p.innerHTML!==t&&(p.innerHTML=t),p;const u=l2(t,a);return u.setAttribute(e2(a),e),u}function $J(t,e){if(t.length!==e.length)return!1;for(let a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}const nS=class yA{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e,a=!1){let l={map:this.cache};return e.forEach(n=>{var i;l?l=(i=l==null?void 0:l.map)==null?void 0:i.get(n):l=void 0}),l!=null&&l.value&&a&&(l.value[1]=this.cacheCallTimes++),l==null?void 0:l.value}get(e){var a;return(a=this.internalGet(e,!0))==null?void 0:a[0]}has(e){return!!this.internalGet(e)}set(e,a){if(!this.has(e)){if(this.size()+1>yA.MAX_CACHE_SIZE+yA.MAX_CACHE_OFFSET){const[n]=this.keys.reduce((i,r)=>{const[,p]=i;return this.internalGet(r)[1]<p?[r,this.internalGet(r)[1]]:i},[this.keys[0],this.cacheCallTimes]);this.delete(n)}this.keys.push(e)}let l=this.cache;e.forEach((n,i)=>{if(i===e.length-1)l.set(n,{value:[a,this.cacheCallTimes++]});else{const r=l.get(n);r?r.map||(r.map=new Map):l.set(n,{map:new Map}),l=l.get(n).map}})}deleteByPath(e,a){var l;const n=e.get(a[0]);if(a.length===1)return n.map?e.set(a[0],{map:n.map}):e.delete(a[0]),(l=n.value)==null?void 0:l[0];const i=this.deleteByPath(n.map,a.slice(1));return(!n.map||n.map.size===0)&&!n.value&&e.delete(a[0]),i}delete(e){if(this.has(e))return this.keys=this.keys.filter(a=>!$J(a,e)),this.deleteByPath(this.cache,e)}};nS.MAX_CACHE_SIZE=20,nS.MAX_CACHE_OFFSET=5;let _J=nS,oS={};function o2(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error(`Warning: ${e}`)}function tH(){oS={}}function eH(t,e,a){!e&&!oS[a]&&(t(!1,a),oS[a]=!0)}function i2(t,e){eH(o2,t,e)}function aH(){}function lH(){tH()}let r2=aH;process.env.NODE_ENV!=="production"&&(r2=(t,e,a)=>{i2(t,`[antd: ${e}] ${a}`),process.env.NODE_ENV==="test"&&lH()});const nH=Symbol("WarningContext"),p2=o.shallowRef(),oH=t=>{o.provide(nH,t),o.watch(t,()=>{p2.value=o.unref(t),o.triggerRef(p2)},{immediate:!0,deep:!0})};o.defineComponent({props:{value:xl()},setup(t,{slots:e}){return oH(o.computed(()=>t.value)),()=>{var a;return(a=e.default)==null?void 0:a.call(e)}}}),process.env.NODE_ENV;const iH=r2;let u2=0;class s2{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=u2,e.length===0&&iH(e.length>0,"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."),u2+=1}getDerivativeToken(e){return this.derivatives.reduce((a,l)=>l(e,a),void 0)}}const iS=new _J;function rH(t){const e=Array.isArray(t)?t:[t];return iS.has(e)||iS.set(e,new s2(e)),iS.get(e)}const c2=new WeakMap;function Ts(t){let e=c2.get(t)||"";return e||(Object.keys(t).forEach(a=>{const l=t[a];e+=a,l instanceof s2?e+=l.id:l&&typeof l=="object"?e+=Ts(l):e+=l}),c2.set(t,e)),e}function pH(t,e){return Fo(`${e}_${Ts(t)}`)}const rp=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),d2="_bAmBoO_";function uH(t,e,a){var l,n;if(Ai()){lS(t,rp);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",e==null||e(i),document.body.appendChild(i),process.env.NODE_ENV!=="production"&&(i.innerHTML="Test",i.style.zIndex="9999999");const r=a?a(i):(l=getComputedStyle(i).content)==null?void 0:l.includes(d2);return(n=i.parentNode)==null||n.removeChild(i),aS(rp),r}return!1}let rS;function sH(){return rS===void 0&&(rS=uH(`@layer ${rp} { .${rp} { content: "${d2}"!important; } }`,t=>{t.className=rp})),rS}const cH=Ai();function Ha(t){return typeof t=="number"?`${t}px`:t}const Ms=(t,e="")=>`--${e?`${e}-`:""}${t}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),dH=(t,e,a)=>Object.keys(t).length?`.${e}${a!=null&&a.scope?`.${a.scope}`:""}{${Object.entries(t).map(([l,n])=>`${l}:${n};`).join("")}}`:"",WH=(t,e,a)=>{const l={},n={};return Object.entries(t).forEach(([i,r])=>{var p,u,s;if((p=a==null?void 0:a.preserve)!=null&&p[i])n[i]=r;else if((typeof r=="string"||typeof r=="number")&&!((u=a==null?void 0:a.ignore)!=null&&u[i])){const c=Ms(i,a==null?void 0:a.prefix);l[c]=typeof r=="number"&&!((s=a==null?void 0:a.unitless)!=null&&s[i])?`${r}px`:String(r),n[i]=`var(${c})`}}),[n,dH(l,e,{scope:a==null?void 0:a.scope})]},W2={},fH=process.env.NODE_ENV==="production",SH=process.env.NODE_ENV==="prerender",hH=!fH&&!SH?"css-dev-only-do-not-override":"css",co=new Map;function mH(t){co.set(t,(co.get(t)||0)+1)}function gH(t,e){typeof document<"u"&&document.querySelectorAll(`style[${UC}="${t}"]`).forEach(a=>{var l;a[gi]===e&&((l=a.parentNode)==null||l.removeChild(a))})}const AH=0;function LH(t,e){co.set(t,(co.get(t)||0)-1);const a=Array.from(co.keys()),l=a.filter(n=>(co.get(n)||0)<=0);a.length-l.length>AH&&l.forEach(n=>{gH(n,e),co.delete(n)})}const bH=(t,e,a,l)=>{let n={...a==null?void 0:a.getDerivativeToken(t),...e};return l&&(n=l(n)),n};function yH(t,e,a=o.ref({})){const l=ip(),n=o.computed(()=>Object.assign({},...e.value||[])),i=o.computed(()=>Ts(n.value)),r=o.computed(()=>{var p;return Ts(((p=a.value)==null?void 0:p.override)||W2)});return tS("token",o.computed(()=>{var p,u;return[((p=a.value)==null?void 0:p.salt)||"",(u=t.value)==null?void 0:u.id,i.value,r.value]}),()=>{const{salt:p="",override:u=W2,formatToken:s,getComputedToken:c}=a.value||{},d=c?c(n.value,u,t.value):bH(n.value,u,t.value,s),W=pH(d,p);d._tokenKey=W,mH(W);const f=`${hH}-${Fo(W)}`;return d._hashId=f,[d,f]},p=>{var u;LH(p[0]._tokenKey,(u=l.value)==null?void 0:u.cache.instanceId)})}var vH={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function f2(t,e){const{path:a,parentSelectors:l}=e;i2(!1,`[Ant Design Vue CSS-in-JS] ${a?`Error in '${a}': `:""}${t}${l.length?` Selector info: ${l.join(" -> ")}`:""}`)}const IH=(t,e,a)=>{if(t==="content"){const l=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof e!="string"||["normal","none","initial","inherit","unset"].indexOf(e)===-1&&!l.test(e)&&(e.charAt(0)!==e.charAt(e.length-1)||e.charAt(0)!=='"'&&e.charAt(0)!=="'"))&&f2(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${e}"'\`.`,a)}},CH=(t,e,a)=>{t==="animation"&&a.hashId&&e!=="none"&&f2(`You seem to be using hashed animation '${e}', in which case 'animationName' with Keyframe as value is recommended.`,a)},S2="data-ant-cssinjs-cache-path",xH="_FILE_STYLE__";let Wo,h2=!0;function wH(){var t;if(!Wo&&(Wo={},Ai())){const e=document.createElement("div");e.className=S2,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let a=getComputedStyle(e).content||"";a=a.replace(/^"/,"").replace(/"$/,""),a.split(";").forEach(n=>{const[i,r]=n.split(":");Wo[i]=r});const l=document.querySelector(`style[${S2}]`);l&&(h2=!1,(t=l.parentNode)==null||t.removeChild(l)),document.body.removeChild(e)}}function OH(t){return wH(),!!Wo[t]}function kH(t){const e=Wo[t];let a=null;if(e&&Ai())if(h2)a=xH;else{const l=document.querySelector(`style[${gn}="${Wo[t]}"]`);l?a=l.innerHTML:delete Wo[t]}return[a,e]}const m2=Ai(),g2="_skip_check_",A2="_multi_value_";function L2(t){return wu(ab(t),ob).replace(/\{%%%\:[^;];}/g,";")}function jH(t){return typeof t=="object"&&t&&(g2 in t||A2 in t)}function qH(t,e,a){if(!e)return t;const l=`.${e}`,n=a==="low"?`:where(${l})`:l;return t.split(",").map(i=>{var r;const p=i.trim().split(/\s+/);let u=p[0]||"";const s=((r=u.match(/^\w+/))==null?void 0:r[0])||"";return u=`${s}${n}${u.slice(s.length)}`,[u,...p.slice(1)].join(" ")}).join(",")}const b2=new Set;process.env.NODE_ENV;const pS=(t,e={},{root:a,injectHash:l,parentSelectors:n}={root:!0,parentSelectors:[]})=>{const{hashId:i,layer:r,path:p,hashPriority:u,transformers:s=[],linters:c=[]}=e;let d="",W={};function f(h){const m=h.getName(i);if(!W[m]){const[g]=pS(h.style,e,{root:!1,parentSelectors:n});W[m]=`@keyframes ${h.getName(i)}${g}`}}function S(h,m=[]){return h.forEach(g=>{Array.isArray(g)?S(g,m):g&&m.push(g)}),m}return S(Array.isArray(t)?t:[t]).forEach(h=>{const m=typeof h=="string"&&!a?{}:h;if(typeof m=="string")d+=`${m}
|
|
273
|
-
`;else if(m._keyframe)f(m);else{const g=s.reduce((A,b)=>{var v;return((v=b==null?void 0:b.visit)==null?void 0:v.call(b,A))||A},m);Object.keys(g).forEach(A=>{const b=g[A];if(typeof b=="object"&&b&&(A!=="animationName"||!b._keyframe)&&!jH(b)){let v=!1,y=A.trim(),I=!1;(a||l)&&i?y.startsWith("@")?v=!0:y=qH(A,i,u):a&&!i&&(y==="&"||y==="")&&(y="",I=!0);const[L,w]=pS(b,e,{root:I,injectHash:v,parentSelectors:[...n,y]});W={...W,...w},d+=`${y}${L}`}else{let v=function(I,L){process.env.NODE_ENV!=="production"&&(typeof b!="object"||!(b!=null&&b[g2]))&&[IH,CH,...c].forEach(k=>k(I,L,{path:p,hashId:i,parentSelectors:n}));const w=I.replace(/[A-Z]/g,k=>`-${k.toLowerCase()}`);let C=L;!vH[I]&&typeof C=="number"&&C!==0&&(C=`${C}px`),I==="animationName"&&L!=null&&L._keyframe&&(f(L),C=L.getName(i)),d+=`${w}:${C};`};const y=(b==null?void 0:b.value)??b;typeof b=="object"&&b!=null&&b[A2]&&Array.isArray(y)?y.forEach(I=>{v(A,I)}):v(A,y)}})}}),a?r&&sH():d=`{${d}}`,[d,W]};function y2(t,e){return Fo(`${t.join("%")}${e}`)}function v2(t,e){const a=ip(),l=o.computed(()=>{var r;return(r=t.value)==null?void 0:r.token._tokenKey}),n=o.computed(()=>{var r;return[l.value,...((r=t.value)==null?void 0:r.path)||[]]});let i=m2;return process.env.NODE_ENV!=="production"&&a.value.mock!==void 0&&(i=a.value.mock==="client"),tS("style",n,()=>{const{path:r,hashId:p,layer:u,nonce:s,clientOnly:c,order:d=0}=t.value||{},W=n.value.join("|");if(OH(W)){const[L,w]=kH(W);if(L)return[L,l.value,w,{},c,d]}const f=e(),{hashPriority:S,container:h,transformers:m,linters:g,cache:A}=a.value,[b,v]=pS(f,{hashId:p,hashPriority:S,layer:u,path:r==null?void 0:r.join("-"),transformers:m,linters:g}),y=L2(b),I=y2(n.value,y);if(i){const L={mark:gn,prepend:"queue",attachTo:h,priority:d},w=typeof s=="function"?s():s;w&&(L.csp={nonce:w});const C=lS(y,I,L);C[gi]=A.instanceId,C.setAttribute(UC,l.value),process.env.NODE_ENV!=="production"&&C.setAttribute(EJ,n.value.join("|")),Object.keys(v).forEach(k=>{b2.has(k)||(b2.add(k),lS(L2(v[k]),`_effect-${k}`,{mark:gn,prepend:"queue",attachTo:h}))})}return[y,l.value,I,v,c,d]},([,,r],p)=>{(p||a.value.autoClear)&&m2&&aS(r,{mark:gn})}),r=>r}const ZH="cssVar",zH=(t,e)=>{const{key:a,prefix:l,unitless:n,ignore:i,token:r,scope:p=""}=t;useContext(XJ);const{_tokenKey:u}=r,s=[...t.path,a,p,u];return tS(ZH,s,()=>{const c=e(),[d,W]=WH(c,a,{prefix:l,unitless:n,ignore:i,scope:p}),f=y2(s,W);return[d,W,f,a]},([,,c])=>{cH&&aS(c,{mark:gn})})};class I2{constructor(e,a){this._keyframe=!0,this.name=e,this.style=a}getName(e=""){return e?`${e}-${this.name}`:this.name}}function Li(t){return t.notSplit=!0,t}Li(["borderTop","borderBottom"]),Li(["borderTop"]),Li(["borderBottom"]),Li(["borderLeft","borderRight"]),Li(["borderLeft"]),Li(["borderRight"]);class C2{}const x2="CALC_UNIT",VH=new RegExp(x2,"g");function uS(t){return typeof t=="number"?`${t}${x2}`:t}class fo extends C2{constructor(e,a){super(),this.result="";const l=typeof e;this.unitlessCssVar=a,e instanceof fo?this.result=`(${e.result})`:l==="number"?this.result=uS(e):l==="string"&&(this.result=e)}add(e){return e instanceof fo?this.result=`${this.result} + ${e.getResult()}`:(typeof e=="number"||typeof e=="string")&&(this.result=`${this.result} + ${uS(e)}`),this.lowPriority=!0,this}sub(e){return e instanceof fo?this.result=`${this.result} - ${e.getResult()}`:(typeof e=="number"||typeof e=="string")&&(this.result=`${this.result} - ${uS(e)}`),this.lowPriority=!0,this}mul(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof fo?this.result=`${this.result} * ${e.getResult(!0)}`:(typeof e=="number"||typeof e=="string")&&(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}div(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof fo?this.result=`${this.result} / ${e.getResult(!0)}`:(typeof e=="number"||typeof e=="string")&&(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}getResult(e){return this.lowPriority||e?`(${this.result})`:this.result}equal(e){const{unit:a}=e||{};let l=!0;return typeof a=="boolean"?l=a:Array.from(this.unitlessCssVar).some(n=>this.result.includes(n))&&(l=!1),this.result=this.result.replace(VH,l?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}class So extends C2{constructor(e){super(),this.result=0,e instanceof So?this.result=e.result:typeof e=="number"&&(this.result=e)}add(e){return e instanceof So?this.result+=e.result:typeof e=="number"&&(this.result+=e),this}sub(e){return e instanceof So?this.result-=e.result:typeof e=="number"&&(this.result-=e),this}mul(e){return e instanceof So?this.result*=e.result:typeof e=="number"&&(this.result*=e),this}div(e){return e instanceof So?this.result/=e.result:typeof e=="number"&&(this.result/=e),this}equal(){return this.result}}const NH=(t,e)=>{const a=t==="css"?fo:So;return l=>new a(l,e)},w2=(t,e)=>`${[e,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function O2(t,e={},a,l){const n={...e[t]};if(l!=null&&l.deprecatedTokens){const{deprecatedTokens:r}=l;r.forEach(([p,u])=>{process.env.NODE_ENV!=="production"&&o2(!(n!=null&&n[p]),`Component Token \`${String(p)}\` of ${String(t)} is deprecated. Please use \`${String(u)}\` instead.`),(n!=null&&n[p]||n!=null&&n[u])&&(n[u]??(n[u]=n==null?void 0:n[p]))})}const i={...a,...n};return Object.keys(i).forEach(r=>{i[r]===e[r]&&delete i[r]}),i}const k2=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let sS=!0;function ul(...t){if(!k2)return Object.assign({},...t);sS=!1;const e={};return t.forEach(a=>{typeof a=="object"&&Object.keys(a).forEach(l=>{Object.defineProperty(e,l,{configurable:!0,enumerable:!0,get:()=>a[l]})})}),sS=!0,e}const j2={};function TH(){}const MH=t=>{let e,a=t,l=TH;return k2&&typeof Proxy<"u"&&(e=new Set,a=new Proxy(t,{get(n,i){return sS&&(e==null||e.add(i)),n[i]}}),l=(n,i)=>{var r;j2[n]={global:Array.from(e),component:{...(r=j2[n])==null?void 0:r.component,...i}}}),{token:a,keys:e,flush:l}};function q2(t,e={},a){return typeof a=="function"?a(ul(e,e[t]??{})):a??{}}function KH(t){return t==="js"?{max:Math.max,min:Math.min}:{max:(...e)=>`max(${e.map(a=>Ha(a)).join(",")})`,min:(...e)=>`min(${e.map(a=>Ha(a)).join(",")})`}}const RH=1e3*60*10;class EH{constructor(){ur(this,"map",new Map),ur(this,"objectIDMap",new WeakMap),ur(this,"nextID",0),ur(this,"lastAccessBeat",new Map),ur(this,"accessBeat",0)}set(e,a){this.clear();const l=this.getCompositeKey(e);this.map.set(l,a),this.lastAccessBeat.set(l,Date.now())}get(e){const a=this.getCompositeKey(e),l=this.map.get(a);return this.lastAccessBeat.set(a,Date.now()),this.accessBeat+=1,l}getCompositeKey(e){return e.map(a=>a&&typeof a=="object"?`obj_${this.getObjectID(a)}`:`${typeof a}_${a}`).join("|")}getObjectID(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);const a=this.nextID;return this.objectIDMap.set(e,a),this.nextID+=1,a}clear(){if(this.accessBeat>1e4){const e=Date.now();this.lastAccessBeat.forEach((a,l)=>{e-a>RH&&(this.map.delete(l),this.lastAccessBeat.delete(l))}),this.accessBeat=0}}}const Z2=new EH;function PH(t,e){return o.computed(()=>{const a=Z2.get(e);if(a)return a;const l=t();return Z2.set(e,l),l})}const YH=()=>({});function GH(t){const{useCSP:e=YH,useToken:a,usePrefix:l,getResetStyles:n,getCommonStyle:i,getCompUnitless:r}=t;function p(d,W,f,S){const h=Array.isArray(d)?d[0]:d;function m(I){return`${String(h)}${I.slice(0,1).toUpperCase()}${I.slice(1)}`}const g=(S==null?void 0:S.unitless)||{},A={...typeof r=="function"?r(d):{},[m("zIndexPopup")]:!0};Object.keys(g).forEach(I=>{A[m(I)]=g[I]});const b={...S,unitless:A,prefixToken:m},v=s(d,W,f,b),y=u(h,f,b);return(I,L=o.toValue(I))=>{const[,w]=v(o.toValue(I),L),[C,k]=y(L);return[C,w,k]}}function u(d,W,f){const{unitless:S,injectStyle:h=!0,prefixToken:m,ignore:g}=f,A=({rootCls:b,cssVar:v={}})=>{const{realToken:y}=a();return zH({path:[d],prefix:v.prefix,key:v.key,unitless:S,ignore:g,token:y,scope:b},()=>{const I=q2(d,y,W),L=O2(d,y,I,{deprecatedTokens:f==null?void 0:f.deprecatedTokens});return Object.keys(I).forEach(w=>{L[m(w)]=L[w],delete L[w]}),L}),null};return b=>{const{cssVar:v}=a();return[y=>h&&v?o.createVNode(o.Fragment,null,[o.createVNode(A,{rootCls:b,cssVar:v,component:d},null),y]):y,v==null?void 0:v.key]}}function s(d,W,f,S={}){const h=Array.isArray(d)?d:[d,d],[m]=h,g=h.join("-"),A=t.layer||{name:"antd"};return(b,v=b)=>{const{theme:y,realToken:I,hashId:L,token:w,cssVar:C}=a(),{rootPrefixCls:k,iconPrefixCls:Z}=l(),E=e(),z=C?"css":"js",Y=o.unref(PH(()=>{const F=new Set;return C&&Object.keys(S.unitless||{}).forEach(V=>{F.add(Ms(V,C.prefix)),F.add(Ms(V,w2(m,C.prefix)))}),NH(z,F)},[z,m,C==null?void 0:C.prefix])),{max:O,min:M}=KH(z),J=o.computed(()=>({theme:y.value,token:w.value,hashId:L.value,nonce:()=>E.nonce,clientOnly:S.clientOnly,layer:A,order:S.order||-999}));return typeof n=="function"&&v2(o.computed(()=>({...J.value,clientOnly:!1,path:["Shared",k]})),()=>n(w.value,{prefix:{rootPrefixCls:k,iconPrefixCls:Z},csp:E})),[v2(o.computed(()=>({...J.value,path:[g,b,Z]})),()=>{if(S.injectStyle===!1)return[];const{token:F,flush:V}=MH(w),G=q2(m,I,f),U=`.${b}`,D=O2(m,I,G,{deprecatedTokens:S.deprecatedTokens});C&&G&&typeof G=="object"&&Object.keys(G).forEach(K=>{G[K]=`var(${Ms(K,w2(m,C.prefix))})`});const B=o.computed(()=>ul(F.value,{componentCls:U,prefixCls:b,iconCls:`.${Z}`,antCls:`.${k}`,calc:Y,max:O,min:M},C?G:D)),H=o.computed(()=>W(B.value,{hashId:L.value,prefixCls:b,rootPrefixCls:k,iconPrefixCls:Z}));V(m,D);const pt=typeof i=="function"?i(B.value,b,v,S.resetFont):null;return[S.resetStyle===!1?null:pt,H.value]}),L]}}function c(d,W,f,S={}){const h=s(d,W,f,{resetStyle:!1,order:-998,...S});return({prefixCls:m,rootCls:g=m})=>(h(m,g),null)}return{genStyleHooks:p,genSubStyleComponent:c,genComponentStyleHook:s}}const XH={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},FH={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},JH="1.0.3",HH=rH(hn.defaultAlgorithm),DH={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},z2=(t,e,a)=>{const l=a.getDerivativeToken(t),{override:n,...i}=e;let r={...l,override:n};return r=wb(r),i&&Object.entries(i).forEach(([p,u])=>{const{theme:s,...c}=u;let d=c;s&&(d=z2({...r,...c},{override:c},s)),r[p]=d}),r};function UH(){const t=BV(),{override:e,cssVar:a}=o.unref(t),l=o.computed(()=>t.value.token),n=o.computed(()=>t.value.hashed),i=o.computed(()=>t.value.theme??HH),r=yH(o.computed(()=>i.value),o.computed(()=>[hn.defaultSeed,l.value]),o.computed(()=>({salt:`${JH}-${n.value||""}`,override:e,getComputedToken:z2,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:FH,ignore:XH,preserve:DH}}))),[p,u,s]=o.unref(r),c=o.computed(()=>r.value[0]),d=o.computed(()=>n.value?r.value[1]:"");return[i,s,d,c,a]}const{genStyleHooks:An,genComponentStyleHook:Hht,genSubStyleComponent:Dht}=GH({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:e}=fa();return{iconPrefixCls:o.unref(e),rootPrefixCls:t()}},useToken:()=>{const[t,e,a,l,n]=UH();return{theme:t,realToken:e,hashId:a,token:l,cssVar:n}},useCSP:()=>{const{csp:t}=fa();return(t==null?void 0:t.value)??{}},layer:{name:"antdx",dependencies:["antd"]}}),BH=t=>{const{componentCls:e,paddingSM:a,padding:l}=t;return{[e]:{[`${e}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${Ha(a)} ${Ha(l)}`,borderRadius:t.borderRadiusLG},"&-filled":{backgroundColor:t.colorFillContent},"&-outlined":{border:`1px solid ${t.colorBorderSecondary}`},"&-shadow":{boxShadow:t.boxShadowTertiary}}}}},QH=t=>{const{componentCls:e,fontSize:a,lineHeight:l,paddingSM:n,padding:i,calc:r}=t,p=r(a).mul(l).div(2).add(n).equal(),u=`${e}-content`;return{[e]:{[u]:{"&-round":{borderRadius:{_skip_check_:!0,value:p},paddingInline:r(i).mul(1.25).equal()}},[`&-start ${u}-corner`]:{borderStartStartRadius:t.borderRadiusXS},[`&-end ${u}-corner`]:{borderStartEndRadius:t.borderRadiusXS}}}},$H=t=>{const{componentCls:e,padding:a}=t;return{[`${e}-list`]:{display:"flex",flexDirection:"column",gap:a,overflowY:"auto"}}},_H=new I2("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),tD=new I2("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),eD=t=>{const{componentCls:e,fontSize:a,lineHeight:l,paddingSM:n,colorText:i,calc:r}=t;return{[e]:{display:"flex",columnGap:n,[`&${e}-end`]:{justifyContent:"end",flexDirection:"row-reverse",[`& ${e}-content-wrapper`]:{alignItems:"flex-end"}},[`&${e}-rtl`]:{direction:"rtl"},[`&${e}-typing ${e}-content:last-child::after`]:{content:'"|"',fontWeight:900,userSelect:"none",opacity:1,marginInlineStart:"0.1em",animationName:tD,animationDuration:"0.8s",animationIterationCount:"infinite",animationTimingFunction:"linear"},[`& ${e}-avatar`]:{display:"inline-flex",justifyContent:"center",alignSelf:"flex-start"},[`& ${e}-header, & ${e}-footer`]:{fontSize:a,lineHeight:l,color:t.colorText},[`& ${e}-header`]:{marginBottom:t.paddingXXS},[`& ${e}-footer`]:{marginTop:n},[`& ${e}-content-wrapper`]:{flex:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:0,maxWidth:"100%"},[`& ${e}-content`]:{position:"relative",boxSizing:"border-box",minWidth:0,maxWidth:"100%",color:i,fontSize:t.fontSize,lineHeight:t.lineHeight,minHeight:r(n).mul(2).add(r(l).mul(a)).equal(),wordBreak:"break-word",[`& ${e}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:t.marginXS,padding:`0 ${Ha(t.paddingXXS)}`,"&-item":{backgroundColor:t.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:_H,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},aD=()=>({}),V2=An("Bubble",t=>{const e=ul(t,{});return[eD(e),$H(e),BH(e),QH(e)]},aD),N2=Symbol("BubbleContext"),cS=o.shallowRef(),lD=t=>{o.provide(N2,t),o.watch(t,()=>{cS.value=o.unref(t),o.triggerRef(cS)},{immediate:!0,deep:!0})},nD=()=>o.inject(N2,o.computed(()=>cS.value||{})),oD=o.defineComponent({props:{value:xl()},setup(t,{slots:e}){return lD(o.computed(()=>t.value)),()=>{var a;return(a=e.default)==null?void 0:a.call(e)}}}),T2=o.defineComponent({name:"AXBubble",__name:"Bubble",props:o.mergeDefaults({prefixCls:null,rootClassName:null,styles:null,classNames:null,avatar:null,placement:null,loading:{type:Boolean},typing:null,content:null,messageRender:{type:Function},loadingRender:{type:Function},variant:null,shape:null,onTypingComplete:null,header:null,footer:null},{classNames:()=>({}),styles:()=>({}),placement:"start",loading:!1,content:"",variant:"filled"}),setup(t,{expose:e}){const a=_e(t,["prefixCls","rootClassName","classNames","styles","avatar","placement","loading","loadingRender","typing","content","messageRender","variant","shape","onTypingComplete","header","footer"]);o.toRef(t,"content"),o.toRef(t,"prefixCls");const l=o.useSlots(),n=o.ref(t.content);o.watch(()=>t.content,()=>{n.value=t.content});const{onUpdate:i}=o.unref(nD()),r=o.ref(null),{direction:p,getPrefixCls:u}=fa(),s=u("bubble",t.prefixCls),c=mn("bubble"),[d,W,f,S]=MJ(()=>t.typing),[h,m]=TJ(n,d,W,f),g=o.ref(!1);o.watch(h,()=>{i==null||i()}),o.watchEffect(()=>{var k;!m.value&&!t.loading?g.value||(g.value=!0,(k=t.onTypingComplete)==null||k.call(t)):g.value=!1});const[A,b,v]=V2(()=>s),y=o.computed(()=>[s,t.rootClassName,c.value.className,b.value,v,`${s}-${t.placement}`,{[`${s}-rtl`]:p.value==="rtl"},{[`${s}-typing`]:m.value&&!t.loading&&!t.messageRender&&!l.message&&!S.value}]),I=o.computed(()=>l.avatar?l.avatar():o.isVNode(t.avatar)?t.avatar:o.createVNode(oo,t.avatar,null)),L=o.computed(()=>l.message?l.message({content:h.value}):t.messageRender?t.messageRender(h.value):h.value),w=o.computed(()=>t.loading?l.loading?l.loading():t.loadingRender?t.loadingRender():o.createVNode(KJ,{prefixCls:s},null):o.createVNode(o.Fragment,null,[L.value,m.value&&o.toValue(S)])),C=o.computed(()=>{const k=o.createVNode("div",{style:{...c.value.styles.content,...t.styles.content},class:[`${s}-content`,`${s}-content-${t.variant}`,{[`${s}-content-${t.shape}`]:t.shape},c.value.classNames.content,t.classNames.content]},[o.toValue(w)]),Z=l.header?l.header():t.header,E=l.footer?l.footer():t.footer;return Z||E?o.createVNode("div",{class:`${s}-content-wrapper`},[Z&&o.createVNode("div",{class:[`${s}-header`,c.value.classNames.header,t.classNames.header],style:{...c.value.styles.header,...t.styles.header}},[Z]),k,E&&o.createVNode("div",{class:[`${s}-footer`,c.value.classNames.footer,t.classNames.footer],style:{...c.value.styles.footer,...t.styles.footer}},[E])]):k});return e({nativeElement:r}),()=>A(o.createVNode("div",o.mergeProps({style:{...c.value.style},class:o.toValue(y)},a,{ref:r}),[t.avatar&&o.createVNode("div",{style:{...c.value.styles.avatar,...t.styles.avatar},class:[`${s}-avatar`,c.value.classNames.avatar,t.classNames.avatar]},[o.toValue(I)]),o.toValue(C)]))}});var M2={exports:{}};/*!
|
|
272
|
+
`]:{opacity:1},[l]:{color:t.colorTextDescription,transition:`all ${t.motionDurationSlow}`},[`&:hover ${l}`]:{color:t.colorText}},[`${e}-icon ${l}`]:{color:t.colorTextDescription,fontSize:n},[`${r}-progress`]:{position:"absolute",bottom:-t.uploadProgressOffset,width:"100%",paddingInlineStart:n+t.paddingXS,fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${r}:hover ${u}`]:{opacity:1,color:t.colorText},[`${r}-error`]:{color:t.colorError,[`${r}-name, ${e}-icon ${l}`]:{color:t.colorError},[p]:{[`${l}, ${l}:hover`]:{color:t.colorError},[u]:{opacity:1}}},[`${e}-list-item-container`]:{transition:`opacity ${t.motionDurationSlow}, height ${t.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},w2=new Bt("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),O2=new Bt("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),KF=t=>{const{componentCls:e}=t,a=`${e}-animate-inline`;return[{[`${e}-wrapper`]:{[`${a}-appear, ${a}-enter, ${a}-leave`]:{animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseInOutCirc,animationFillMode:"forwards"},[`${a}-appear, ${a}-enter`]:{animationName:w2},[`${a}-leave`]:{animationName:O2}}},w2,O2]},RF=t=>{const{componentCls:e,iconCls:a,uploadThumbnailSize:l,uploadProgressOffset:n}=t,i=`${e}-list`,r=`${i}-item`;return{[`${e}-wrapper`]:{[`${i}${i}-picture, ${i}${i}-picture-card`]:{[r]:{position:"relative",height:l+t.lineWidth*2+t.paddingXS*2,padding:t.paddingXS,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadiusLG,"&:hover":{background:"transparent"},[`${r}-thumbnail`]:j(j({},Hn),{width:l,height:l,lineHeight:`${l+t.paddingSM}px`,textAlign:"center",flex:"none",[a]:{fontSize:t.fontSizeHeading2,color:t.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${r}-progress`]:{bottom:n,width:`calc(100% - ${t.paddingSM*2}px)`,marginTop:0,paddingInlineStart:l+t.paddingXS}},[`${r}-error`]:{borderColor:t.colorError,[`${r}-thumbnail ${a}`]:{"svg path[fill='#e6f7ff']":{fill:t.colorErrorBg},"svg path[fill='#1890ff']":{fill:t.colorError}}},[`${r}-uploading`]:{borderStyle:"dashed",[`${r}-name`]:{marginBottom:n}}}}}},EF=t=>{const{componentCls:e,iconCls:a,fontSizeLG:l,colorTextLightSolid:n}=t,i=`${e}-list`,r=`${i}-item`,p=t.uploadPicCardSize;return{[`${e}-wrapper${e}-picture-card-wrapper`]:j(j({},Cr()),{display:"inline-block",width:"100%",[`${e}${e}-select`]:{width:p,height:p,marginInlineEnd:t.marginXS,marginBottom:t.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:t.colorFillAlter,border:`${t.lineWidth}px dashed ${t.colorBorder}`,borderRadius:t.borderRadiusLG,cursor:"pointer",transition:`border-color ${t.motionDurationSlow}`,[`> ${e}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${e}-disabled):hover`]:{borderColor:t.colorPrimary}},[`${i}${i}-picture-card`]:{[`${i}-item-container`]:{display:"inline-block",width:p,height:p,marginBlock:`0 ${t.marginXS}px`,marginInline:`0 ${t.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[r]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${t.paddingXS*2}px)`,height:`calc(100% - ${t.paddingXS*2}px)`,backgroundColor:t.colorBgMask,opacity:0,transition:`all ${t.motionDurationSlow}`,content:'" "'}},[`${r}:hover`]:{[`&::before, ${r}-actions`]:{opacity:1}},[`${r}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${t.motionDurationSlow}`,[`${a}-eye, ${a}-download, ${a}-delete`]:{zIndex:10,width:l,margin:`0 ${t.marginXXS}px`,fontSize:l,cursor:"pointer",transition:`all ${t.motionDurationSlow}`}},[`${r}-actions, ${r}-actions:hover`]:{[`${a}-eye, ${a}-download, ${a}-delete`]:{color:new ge(n).setAlpha(.65).toRgbString(),"&:hover":{color:n}}},[`${r}-thumbnail, ${r}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${r}-name`]:{display:"none",textAlign:"center"},[`${r}-file + ${r}-name`]:{position:"absolute",bottom:t.margin,display:"block",width:`calc(100% - ${t.paddingXS*2}px)`},[`${r}-uploading`]:{[`&${r}`]:{backgroundColor:t.colorFillAlter},[`&::before, ${a}-eye, ${a}-download, ${a}-delete`]:{display:"none"}},[`${r}-progress`]:{bottom:t.marginXL,width:`calc(100% - ${t.paddingXS*2}px)`,paddingInlineStart:0}}})}},PF=t=>{const{componentCls:e}=t;return{[`${e}-rtl`]:{direction:"rtl"}}},YF=t=>{const{componentCls:e,colorTextDisabled:a}=t;return{[`${e}-wrapper`]:j(j({},Ye(t)),{[e]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${e}-select`]:{display:"inline-block"},[`${e}-disabled`]:{color:a,cursor:"not-allowed"}})}},GF=Ze("Upload",t=>{const{fontSizeHeading3:e,fontSize:a,lineHeight:l,lineWidth:n,controlHeightLG:i}=t,r=Math.round(a*l),p=ne(t,{uploadThumbnailSize:e*2,uploadProgressOffset:r/2+n,uploadPicCardSize:i*2.55});return[YF(p),TF(p),RF(p),EF(p),MF(p),KF(p),PF(p),Qv(p)]});var XF=function(t,e,a,l){function n(i){return i instanceof a?i:new a(function(r){r(i)})}return new(a||(a=Promise))(function(i,r){function p(c){try{s(l.next(c))}catch(d){r(d)}}function u(c){try{s(l.throw(c))}catch(d){r(d)}}function s(c){c.done?i(c.value):n(c.value).then(p,u)}s((l=l.apply(t,e||[])).next())})},FF=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const lp=`__LIST_IGNORE_${Date.now()}__`,Vs=o.defineComponent({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:pa(I2(),{type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",supportServerRender:!0}),setup(t,e){let{slots:a,attrs:l,expose:n}=e;const i=ns(),{prefixCls:r,direction:p,disabled:u}=re("upload",t),[s,c]=GF(r),d=En(),W=o.computed(()=>{var Z;return(Z=u.value)!==null&&Z!==void 0?Z:d.value}),[f,S]=es(t.defaultFileList||[],{value:o.toRef(t,"fileList"),postState:Z=>{const E=Date.now();return(Z??[]).map((z,Y)=>(!z.uid&&!Object.isFrozen(z)&&(z.uid=`__AUTO__${E}_${Y}__`),z))}}),h=o.ref("drop"),m=o.ref(null);o.onMounted(()=>{Ae(t.fileList!==void 0||l.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Ae(t.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Ae(t.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const g=(Z,E,z)=>{var Y,O;let M=[...E];t.maxCount===1?M=M.slice(-1):t.maxCount&&(M=M.slice(0,t.maxCount)),S(M);const J={file:Z,fileList:M};z&&(J.event=z),(Y=t["onUpdate:fileList"])===null||Y===void 0||Y.call(t,J.fileList),(O=t.onChange)===null||O===void 0||O.call(t,J),i.onFieldChange()},A=(Z,E)=>XF(this,void 0,void 0,function*(){const{beforeUpload:z,transformFile:Y}=t;let O=Z;if(z){const M=yield z(Z,E);if(M===!1)return!1;if(delete Z[lp],M===lp)return Object.defineProperty(Z,lp,{value:!0,configurable:!0}),!1;typeof M=="object"&&M&&(O=M)}return Y&&(O=yield Y(O)),O}),b=Z=>{const E=Z.filter(O=>!O.file[lp]);if(!E.length)return;const z=E.map(O=>Zs(O.file));let Y=[...f.value];z.forEach(O=>{Y=zs(O,Y)}),z.forEach((O,M)=>{let J=O;if(E[M].parsedFile)O.status="uploading";else{const{originFileObj:F}=O;let V;try{V=new File([F],F.name,{type:F.type})}catch{V=new Blob([F],{type:F.type}),V.name=F.name,V.lastModifiedDate=new Date,V.lastModified=new Date().getTime()}V.uid=O.uid,J=V}g(J,Y)})},v=(Z,E,z)=>{try{typeof Z=="string"&&(Z=JSON.parse(Z))}catch{}if(!Kf(E,f.value))return;const Y=Zs(E);Y.status="done",Y.percent=100,Y.response=Z,Y.xhr=z;const O=zs(Y,f.value);g(Y,O)},y=(Z,E)=>{if(!Kf(E,f.value))return;const z=Zs(E);z.status="uploading",z.percent=Z.percent;const Y=zs(z,f.value);g(z,Y,Z)},I=(Z,E,z)=>{if(!Kf(z,f.value))return;const Y=Zs(z);Y.error=Z,Y.response=E,Y.status="error";const O=zs(Y,f.value);g(Y,O)},L=Z=>{let E;const z=t.onRemove||t.remove;Promise.resolve(typeof z=="function"?z(Z):z).then(Y=>{var O,M;if(Y===!1)return;const J=xF(Z,f.value);J&&(E=j(j({},Z),{status:"removed"}),(O=f.value)===null||O===void 0||O.forEach(F=>{const V=E.uid!==void 0?"uid":"name";F[V]===E[V]&&!Object.isFrozen(F)&&(F.status="removed")}),(M=m.value)===null||M===void 0||M.abort(E),g(E,J))})},w=Z=>{var E;h.value=Z.type,Z.type==="drop"&&((E=t.onDrop)===null||E===void 0||E.call(t,Z))};n({onBatchStart:b,onSuccess:v,onProgress:y,onError:I,fileList:f,upload:m});const[C]=gz("Upload",Pn.Upload,o.computed(()=>t.locale)),k=(Z,E)=>{const{removeIcon:z,previewIcon:Y,downloadIcon:O,previewFile:M,onPreview:J,onDownload:F,isImageUrl:V,progress:G,itemRender:U,iconRender:D,showUploadList:B}=t,{showDownloadIcon:H,showPreviewIcon:pt,showRemoveIcon:K}=typeof B=="boolean"?{}:B;return B?o.createVNode(NF,{prefixCls:r.value,listType:t.listType,items:f.value,previewFile:M,onPreview:J,onDownload:F,onRemove:L,showRemoveIcon:!W.value&&K,showPreviewIcon:pt,showDownloadIcon:H,removeIcon:z,previewIcon:Y,downloadIcon:O,iconRender:D,locale:C.value,isImageUrl:V,progress:G,itemRender:U,appendActionVisible:E,appendAction:Z},j({},a)):Z==null?void 0:Z()};return()=>{var Z,E,z;const{listType:Y,type:O}=t,{class:M,style:J}=l,F=FF(l,["class","style"]),V=j(j(j({onBatchStart:b,onError:I,onProgress:y,onSuccess:v},F),t),{id:(Z=t.id)!==null&&Z!==void 0?Z:i.id.value,prefixCls:r.value,beforeUpload:A,onChange:void 0,disabled:W.value});delete V.remove,(!a.default||W.value)&&delete V.id;const G={[`${r.value}-rtl`]:p.value==="rtl"};if(O==="drag"){const H=Mt(r.value,{[`${r.value}-drag`]:!0,[`${r.value}-drag-uploading`]:f.value.some(pt=>pt.status==="uploading"),[`${r.value}-drag-hover`]:h.value==="dragover",[`${r.value}-disabled`]:W.value,[`${r.value}-rtl`]:p.value==="rtl"},l.class,c.value);return s(o.createVNode("span",ct(ct({},l),{},{class:Mt(`${r.value}-wrapper`,G,M,c.value)}),[o.createVNode("div",{class:H,onDrop:w,onDragover:w,onDragleave:w,style:l.style},[o.createVNode(L2,ct(ct({},V),{},{ref:m,class:`${r.value}-btn`}),ct({default:()=>[o.createVNode("div",{class:`${r.value}-drag-container`},[(E=a.default)===null||E===void 0?void 0:E.call(a)])]},a))]),k()]))}const U=Mt(r.value,{[`${r.value}-select`]:!0,[`${r.value}-select-${Y}`]:!0,[`${r.value}-disabled`]:W.value,[`${r.value}-rtl`]:p.value==="rtl"}),D=ta((z=a.default)===null||z===void 0?void 0:z.call(a)),B=H=>o.createVNode("div",{class:U,style:H},[o.createVNode(L2,ct(ct({},V),{},{ref:m}),a)]);return s(Y==="picture-card"?o.createVNode("span",ct(ct({},l),{},{class:Mt(`${r.value}-wrapper`,`${r.value}-picture-card-wrapper`,G,l.class,c.value)}),[k(B,!!D.length)]):o.createVNode("span",ct(ct({},l),{},{class:Mt(`${r.value}-wrapper`,G,l.class,c.value)}),[B(D.length?void 0:{display:"none"}),k()]))}}});var k2=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const Ef=o.defineComponent({compatConfig:{MODE:3},name:"AUploadDragger",inheritAttrs:!1,props:I2(),setup(t,e){let{slots:a,attrs:l}=e;return()=>{const{height:n}=t,i=k2(t,["height"]),{style:r}=l,p=k2(l,["style"]),u=j(j(j({},i),p),{type:"drag",style:j(j({},r),{height:typeof n=="number"?`${n}px`:n})});return o.createVNode(Vs,u,a)}}}),j2=j(Vs,{Dragger:Ef,LIST_IGNORE:lp,install(t){return t.component(Vs.name,Vs),t.component(Ef.name,Ef),t}});var JF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};function q2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){HF(t,n,a[n])})}return t}function HF(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Pf=function(t,e){var a=q2({},t,e.attrs);return o.createVNode(Ft,q2({},a,{icon:JF}),null)};Pf.displayName="ArrowUpOutlined",Pf.inheritAttrs=!1;var DF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"};function Z2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){UF(t,n,a[n])})}return t}function UF(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Yf=function(t,e){var a=Z2({},t,e.attrs);return o.createVNode(Ft,Z2({},a,{icon:DF}),null)};Yf.displayName="AudioMutedOutlined",Yf.inheritAttrs=!1;var BF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"};function z2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){QF(t,n,a[n])})}return t}function QF(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Gf=function(t,e){var a=z2({},t,e.attrs);return o.createVNode(Ft,z2({},a,{icon:BF}),null)};Gf.displayName="AudioOutlined",Gf.inheritAttrs=!1;var $F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};function V2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){_F(t,n,a[n])})}return t}function _F(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Xf=function(t,e){var a=V2({},t,e.attrs);return o.createVNode(Ft,V2({},a,{icon:$F}),null)};Xf.displayName="ClearOutlined",Xf.inheritAttrs=!1;var tJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"};function N2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){eJ(t,n,a[n])})}return t}function eJ(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Ff=function(t,e){var a=N2({},t,e.attrs);return o.createVNode(Ft,N2({},a,{icon:tJ}),null)};Ff.displayName="FileExcelFilled",Ff.inheritAttrs=!1;var aJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"};function T2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){lJ(t,n,a[n])})}return t}function lJ(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Jf=function(t,e){var a=T2({},t,e.attrs);return o.createVNode(Ft,T2({},a,{icon:aJ}),null)};Jf.displayName="FileImageFilled",Jf.inheritAttrs=!1;var nJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"};function M2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){oJ(t,n,a[n])})}return t}function oJ(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Hf=function(t,e){var a=M2({},t,e.attrs);return o.createVNode(Ft,M2({},a,{icon:nJ}),null)};Hf.displayName="FileMarkdownFilled",Hf.inheritAttrs=!1;var iJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"};function K2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){rJ(t,n,a[n])})}return t}function rJ(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Df=function(t,e){var a=K2({},t,e.attrs);return o.createVNode(Ft,K2({},a,{icon:iJ}),null)};Df.displayName="FilePdfFilled",Df.inheritAttrs=!1;var pJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"};function R2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){uJ(t,n,a[n])})}return t}function uJ(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Uf=function(t,e){var a=R2({},t,e.attrs);return o.createVNode(Ft,R2({},a,{icon:pJ}),null)};Uf.displayName="FilePptFilled",Uf.inheritAttrs=!1;var sJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"};function E2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){cJ(t,n,a[n])})}return t}function cJ(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Bf=function(t,e){var a=E2({},t,e.attrs);return o.createVNode(Ft,E2({},a,{icon:sJ}),null)};Bf.displayName="FileTextFilled",Bf.inheritAttrs=!1;var dJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"};function P2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){WJ(t,n,a[n])})}return t}function WJ(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Qf=function(t,e){var a=P2({},t,e.attrs);return o.createVNode(Ft,P2({},a,{icon:dJ}),null)};Qf.displayName="FileWordFilled",Qf.inheritAttrs=!1;var fJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"};function Y2(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),l.forEach(function(n){SJ(t,n,a[n])})}return t}function SJ(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var $f=function(t,e){var a=Y2({},t,e.attrs);return o.createVNode(Ft,Y2({},a,{icon:fJ}),null)};$f.displayName="FileZipFilled",$f.inheritAttrs=!1;const G2=["wrap","nowrap","wrap-reverse"],X2=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],F2=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],hJ=(t,e)=>{const a={};return G2.forEach(l=>{a[`${t}-wrap-${l}`]=e.wrap===l}),a},mJ=(t,e)=>{const a={};return F2.forEach(l=>{a[`${t}-align-${l}`]=e.align===l}),a[`${t}-align-stretch`]=!e.align&&!!e.vertical,a},gJ=(t,e)=>{const a={};return X2.forEach(l=>{a[`${t}-justify-${l}`]=e.justify===l}),a};function AJ(t,e){return Mt(j(j(j({},hJ(t,e)),mJ(t,e)),gJ(t,e)))}const LJ=t=>{const{componentCls:e}=t;return{[e]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},bJ=t=>{const{componentCls:e}=t;return{[e]:{"&-gap-small":{gap:t.flexGapSM},"&-gap-middle":{gap:t.flexGap},"&-gap-large":{gap:t.flexGapLG}}}},yJ=t=>{const{componentCls:e}=t,a={};return G2.forEach(l=>{a[`${e}-wrap-${l}`]={flexWrap:l}}),a},vJ=t=>{const{componentCls:e}=t,a={};return F2.forEach(l=>{a[`${e}-align-${l}`]={alignItems:l}}),a},IJ=t=>{const{componentCls:e}=t,a={};return X2.forEach(l=>{a[`${e}-justify-${l}`]={justifyContent:l}}),a},CJ=Ze("Flex",t=>{const e=ne(t,{flexGapSM:t.paddingXS,flexGap:t.padding,flexGapLG:t.paddingLG});return[LJ(e),bJ(e),yJ(e),vJ(e),IJ(e)]});function J2(t){return["small","middle","large"].includes(t)}const xJ=()=>({prefixCls:qe(),vertical:le(),wrap:qe(),justify:qe(),align:qe(),flex:Ea([Number,String]),gap:Ea([Number,String]),component:Fe()});var wJ=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};const OJ=o.defineComponent({name:"AFlex",inheritAttrs:!1,props:xJ(),setup(t,e){let{slots:a,attrs:l}=e;const{flex:n,direction:i}=dr(),{prefixCls:r}=re("flex",t),[p,u]=CJ(r),s=o.computed(()=>{var c;return[r.value,u.value,AJ(r.value,t),{[`${r.value}-rtl`]:i.value==="rtl",[`${r.value}-gap-${t.gap}`]:J2(t.gap),[`${r.value}-vertical`]:(c=t.vertical)!==null&&c!==void 0?c:n==null?void 0:n.value.vertical}]});return()=>{var c;const{flex:d,gap:W,component:f="div"}=t,S=wJ(t,["flex","gap","component"]),h={};return d&&(h.flex=d),W&&!J2(W)&&(h.gap=`${W}px`),p(o.createVNode(f,ct({class:[l.class,s.value],style:[l.style,h]},ye(S,["justify","wrap","align","vertical"])),{default:()=>[(c=a.default)===null||c===void 0?void 0:c.call(a)]}))}}}),np=an(OJ),Sn=(t,e)=>new ge(t).setAlpha(e).toRgbString(),mi=(t,e)=>new ge(t).lighten(e).toHexString(),kJ=t=>{const e=kl(t,{theme:"dark"});return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[6],6:e[5],7:e[4],8:e[6],9:e[5],10:e[4]}},jJ=(t,e)=>{const a=t||"#000",l=e||"#fff";return{colorBgBase:a,colorTextBase:l,colorText:Sn(l,.85),colorTextSecondary:Sn(l,.65),colorTextTertiary:Sn(l,.45),colorTextQuaternary:Sn(l,.25),colorFill:Sn(l,.18),colorFillSecondary:Sn(l,.12),colorFillTertiary:Sn(l,.08),colorFillQuaternary:Sn(l,.04),colorBgElevated:mi(a,12),colorBgContainer:mi(a,8),colorBgLayout:mi(a,0),colorBgSpotlight:mi(a,26),colorBorder:mi(a,26),colorBorderSecondary:mi(a,19)}},qJ=(t,e)=>{const a=Object.keys(w0).map(n=>{const i=kl(t[n],{theme:"dark"});return new Array(10).fill(1).reduce((r,p,u)=>(r[`${n}-${u+1}`]=i[u],r),{})}).reduce((n,i)=>(n=j(j({},n),i),n),{}),l=e??zu(t);return j(j(j({},l),a),Cb(t,{generateColorPalettes:kJ,generateNeutralColorPalettes:jJ}))};function ZJ(t){const{sizeUnit:e,sizeStep:a}=t,l=a-2;return{sizeXXL:e*(l+10),sizeXL:e*(l+6),sizeLG:e*(l+2),sizeMD:e*(l+2),sizeMS:e*(l+1),size:e*l,sizeSM:e*l,sizeXS:e*(l-1),sizeXXS:e*(l-1)}}const zJ=(t,e)=>{const a=e??zu(t),l=a.fontSizeSM,n=a.controlHeight-4;return j(j(j(j(j({},a),ZJ(e??t)),xb(l)),{controlHeight:n}),Ib(j(j({},a),{controlHeight:n})))};function VJ(){const[t,e,a]=Dn();return{theme:t,token:e,hashId:a}}const hn={defaultConfig:xr,defaultSeed:xr.token,useToken:VJ,defaultAlgorithm:zu,darkAlgorithm:qJ,compactAlgorithm:zJ},H2=o.defineComponent({name:"AXConfigProvider",inheritAttrs:!1,__name:"index",props:{bubble:{},conversations:{},prompts:{},sender:{},suggestion:{},thoughtChain:{},attachments:{},welcome:{},iconPrefixCls:{},getTargetContainer:{},getPopupContainer:{},prefixCls:{},getPrefixCls:{},renderEmpty:{},transformCellText:{},csp:{},input:{},autoInsertSpaceInButton:{type:Boolean},locale:{},pageHeader:{},componentSize:{},componentDisabled:{type:Boolean},direction:{},space:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{},form:{},pagination:{},theme:{},select:{},wave:{}},setup(t){const e=_e(t,["attachments","bubble","conversations","prompts","suggestion","thoughtChain","welcome"]),a=o.useSlots(),l=o.computed(()=>({attachments:t.attachments,bubble:t.bubble,conversations:t.conversations,prompts:t.prompts,suggestion:t.suggestion,thoughtChain:t.thoughtChain,welcome:t.welcome})),{theme:n}=fa(),i=o.computed(()=>({...(n==null?void 0:n.value)||{},...e.theme})),r=o.computed(()=>{var p;return(p=a.default)==null?void 0:p.call(a)});return()=>o.createVNode(kZ,{value:l.value},{default:()=>[o.createVNode(hi,o.mergeProps(e,{theme:i.value}),{default:()=>[r.value]})]})}}),NJ={classNames:{},styles:{},className:"",style:{}},mn=t=>{const e=OZ();return o.computed(()=>({...NJ,...o.unref(e)[t]}))};function we(t){const e=typeof t=="function"?t():t,a=o.ref(e);function l(n){a.value=n}return[a,l]}function so(t){return typeof t=="string"}const TJ=(t,e,a,l)=>{const[n,i]=we(""),[r,p]=we(1),u=o.computed(()=>e.value&&so(t.value));return o.watch(t,()=>{const s=o.unref(n);i(t.value),!u.value&&so(t.value)?p(t.value.length):so(t.value)&&so(s)&&t.value.indexOf(s)!==0&&p(1)}),o.watch([r,e,t],()=>{if(u.value&&so(t.value)&&o.unref(r)<t.value.length){const s=setTimeout(()=>{p(o.unref(r)+a.value)},l.value);o.onWatcherCleanup(()=>{clearTimeout(s)})}},{immediate:!0}),[o.computed(()=>u.value&&so(t.value)?t.value.slice(0,o.unref(r)):t.value),o.computed(()=>u.value&&so(t.value)&&o.unref(r)<t.value.length)]};function MJ(t){const e=o.computed(()=>!!o.toValue(t)),a={step:1,interval:50,suffix:null},l=o.computed(()=>{const n=o.toValue(t);return{...a,...typeof n=="object"?n:{}}});return[e,o.computed(()=>l.value.step),o.computed(()=>l.value.interval),o.computed(()=>l.value.suffix)]}const KJ=o.defineComponent({name:"AXBubbleLoading",__name:"loading",props:{prefixCls:null},setup(t){return()=>o.createVNode("span",{class:`${t.prefixCls}-dot`},[o.createVNode("i",{class:`${t.prefixCls}-dot-item`,key:"item-1"},null),o.createVNode("i",{class:`${t.prefixCls}-dot-item`,key:"item-2"},null),o.createVNode("i",{class:`${t.prefixCls}-dot-item`,key:"item-3"},null)])}}),D2="%";class RJ{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join(D2):e)||null}update(e,a){const l=Array.isArray(e)?e.join(D2):e,n=this.cache.get(l),i=a(n);i===null?this.cache.delete(l):this.cache.set(l,i)}}const U2="data-token-hash",gn="data-css-hash",EJ="data-cache-path",gi="__cssinjs_instance__";function op(){const t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const e=document.body.querySelectorAll(`style[${gn}]`)||[],{firstChild:a}=document.head;Array.from(e).forEach(n=>{n[gi]=n[gi]||t,n[gi]===t&&document.head.insertBefore(n,a)});const l={};Array.from(document.querySelectorAll(`style[${gn}]`)).forEach(n=>{var i;const r=n.getAttribute(gn);l[r]?n[gi]===t&&((i=n.parentNode)==null||i.removeChild(n)):l[r]=!0})}return new RJ(t)}const B2=Symbol("StyleContextKey"),PJ=()=>{var t,e,a;const l=o.getCurrentInstance();let n;if(l&&l.appContext){const i=(a=(e=(t=l.appContext)==null?void 0:t.config)==null?void 0:e.globalProperties)==null?void 0:a.__ANTDV_CSSINJS_CACHE__;i?n=i:(n=op(),l.appContext.config.globalProperties&&(l.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=n))}else n=op();return n},Q2={cache:op(),defaultCache:!0,hashPriority:"low"},ip=()=>{const t=PJ();return o.inject(B2,o.shallowRef({...Q2,cache:t}))},$2=t=>{const e=ip(),a=o.shallowRef({...Q2,cache:op()});return o.watch([()=>o.unref(t),e],()=>{const l={...e.value},n=o.unref(t);Object.keys(n).forEach(r=>{const p=n[r];n[r]!==void 0&&(l[r]=p)});const{cache:i}=n;l.cache=l.cache||op(),l.defaultCache=!i&&e.value.defaultCache,a.value=l},{immediate:!0}),o.provide(B2,a),a},YJ=()=>({autoClear:t0(),mock:cL(),cache:xl(),defaultCache:t0(),hashPriority:cL(),container:xZ(),ssrInline:t0(),transformers:sL(),linters:sL()}),GJ=IZ(o.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:YJ(),setup(t,{slots:e}){return $2(t),()=>{var a;return(a=e.default)==null?void 0:a.call(e)}}})),XJ={useStyleInject:ip,useStyleProvider:$2,StyleProvider:GJ};function FJ(){return!1}let _f=!1;function JJ(){return _f}const HJ=process.env.NODE_ENV==="production"?FJ:JJ;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){const t=window;if(typeof t.webpackHotUpdate=="function"){const e=t.webpackHotUpdate;t.webpackHotUpdate=(...a)=>(_f=!0,setTimeout(()=>{_f=!1},0),e(...a))}}function tS(t,e,a,l){const n=ip(),i=o.shallowRef(""),r=o.shallowRef();o.watchEffect(()=>{i.value=[t,...e.value].join("%")});const p=HJ(),u=s=>{n.value.cache.update(s,c=>{const[d=0,W]=c||[];return d-1===0?(l==null||l(W,!1),null):[d-1,W]})};return o.watch(i,(s,c)=>{c&&u(c),n.value.cache.update(s,d=>{const[W=0,f]=d||[];let S=f;process.env.NODE_ENV!=="production"&&f&&p&&(l==null||l(S,p),S=null);const h=S||a();return[W+1,h]}),r.value=n.value.cache.get(i.value)[1]},{immediate:!0}),o.onBeforeUnmount(()=>{u(i.value)}),r}function Ai(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function DJ(t,e){return t&&t.contains?t.contains(e):!1}const _2="data-vc-order",UJ="vc-util-key",eS=new Map;function tC({mark:t}={}){return t?t.startsWith("data-")?t:`data-${t}`:UJ}function Ns(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}function BJ(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function eC(t){return Array.from((eS.get(t)||t).children).filter(e=>e.tagName==="STYLE")}function aC(t,e={}){if(!Ai())return null;const{csp:a,prepend:l}=e,n=document.createElement("style");n.setAttribute(_2,BJ(l)),a!=null&&a.nonce&&(n.nonce=a==null?void 0:a.nonce),n.innerHTML=t;const i=Ns(e),{firstChild:r}=i;if(l){if(l==="queue"){const p=eC(i).filter(u=>["prepend","prependQueue"].includes(u.getAttribute(_2)));if(p.length)return i.insertBefore(n,p[p.length-1].nextSibling),n}i.insertBefore(n,r)}else i.appendChild(n);return n}function lC(t,e={}){const a=Ns(e);return eC(a).find(l=>l.getAttribute(tC(e))===t)}function aS(t,e={}){const a=lC(t,e);a&&Ns(e).removeChild(a)}function QJ(t,e){const a=eS.get(t);if(!a||!DJ(document,a)){const l=aC("",e),{parentNode:n}=l;eS.set(t,n),t.removeChild(l)}}function lS(t,e,a={}){var l,n,i;const r=Ns(a);QJ(r,a);const p=lC(e,a);if(p)return(l=a.csp)!=null&&l.nonce&&p.nonce!==((n=a.csp)==null?void 0:n.nonce)&&(p.nonce=(i=a.csp)==null?void 0:i.nonce),p.innerHTML!==t&&(p.innerHTML=t),p;const u=aC(t,a);return u.setAttribute(tC(a),e),u}function $J(t,e){if(t.length!==e.length)return!1;for(let a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}const nS=class yA{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e,a=!1){let l={map:this.cache};return e.forEach(n=>{var i;l?l=(i=l==null?void 0:l.map)==null?void 0:i.get(n):l=void 0}),l!=null&&l.value&&a&&(l.value[1]=this.cacheCallTimes++),l==null?void 0:l.value}get(e){var a;return(a=this.internalGet(e,!0))==null?void 0:a[0]}has(e){return!!this.internalGet(e)}set(e,a){if(!this.has(e)){if(this.size()+1>yA.MAX_CACHE_SIZE+yA.MAX_CACHE_OFFSET){const[n]=this.keys.reduce((i,r)=>{const[,p]=i;return this.internalGet(r)[1]<p?[r,this.internalGet(r)[1]]:i},[this.keys[0],this.cacheCallTimes]);this.delete(n)}this.keys.push(e)}let l=this.cache;e.forEach((n,i)=>{if(i===e.length-1)l.set(n,{value:[a,this.cacheCallTimes++]});else{const r=l.get(n);r?r.map||(r.map=new Map):l.set(n,{map:new Map}),l=l.get(n).map}})}deleteByPath(e,a){var l;const n=e.get(a[0]);if(a.length===1)return n.map?e.set(a[0],{map:n.map}):e.delete(a[0]),(l=n.value)==null?void 0:l[0];const i=this.deleteByPath(n.map,a.slice(1));return(!n.map||n.map.size===0)&&!n.value&&e.delete(a[0]),i}delete(e){if(this.has(e))return this.keys=this.keys.filter(a=>!$J(a,e)),this.deleteByPath(this.cache,e)}};nS.MAX_CACHE_SIZE=20,nS.MAX_CACHE_OFFSET=5;let _J=nS,oS={};function nC(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error(`Warning: ${e}`)}function tH(){oS={}}function eH(t,e,a){!e&&!oS[a]&&(t(!1,a),oS[a]=!0)}function oC(t,e){eH(nC,t,e)}function aH(){}function lH(){tH()}let iC=aH;process.env.NODE_ENV!=="production"&&(iC=(t,e,a)=>{oC(t,`[antd: ${e}] ${a}`),process.env.NODE_ENV==="test"&&lH()});const nH=Symbol("WarningContext"),rC=o.shallowRef(),oH=t=>{o.provide(nH,t),o.watch(t,()=>{rC.value=o.unref(t),o.triggerRef(rC)},{immediate:!0,deep:!0})};o.defineComponent({props:{value:xl()},setup(t,{slots:e}){return oH(o.computed(()=>t.value)),()=>{var a;return(a=e.default)==null?void 0:a.call(e)}}}),process.env.NODE_ENV;const iH=iC;let pC=0;class uC{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=pC,e.length===0&&iH(e.length>0,"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."),pC+=1}getDerivativeToken(e){return this.derivatives.reduce((a,l)=>l(e,a),void 0)}}const iS=new _J;function rH(t){const e=Array.isArray(t)?t:[t];return iS.has(e)||iS.set(e,new uC(e)),iS.get(e)}const sC=new WeakMap;function Ts(t){let e=sC.get(t)||"";return e||(Object.keys(t).forEach(a=>{const l=t[a];e+=a,l instanceof uC?e+=l.id:l&&typeof l=="object"?e+=Ts(l):e+=l}),sC.set(t,e)),e}function pH(t,e){return Fo(`${e}_${Ts(t)}`)}const rp=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),cC="_bAmBoO_";function uH(t,e,a){var l,n;if(Ai()){lS(t,rp);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",e==null||e(i),document.body.appendChild(i),process.env.NODE_ENV!=="production"&&(i.innerHTML="Test",i.style.zIndex="9999999");const r=a?a(i):(l=getComputedStyle(i).content)==null?void 0:l.includes(cC);return(n=i.parentNode)==null||n.removeChild(i),aS(rp),r}return!1}let rS;function sH(){return rS===void 0&&(rS=uH(`@layer ${rp} { .${rp} { content: "${cC}"!important; } }`,t=>{t.className=rp})),rS}const cH=Ai();function Ha(t){return typeof t=="number"?`${t}px`:t}const Ms=(t,e="")=>`--${e?`${e}-`:""}${t}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),dH=(t,e,a)=>Object.keys(t).length?`.${e}${a!=null&&a.scope?`.${a.scope}`:""}{${Object.entries(t).map(([l,n])=>`${l}:${n};`).join("")}}`:"",WH=(t,e,a)=>{const l={},n={};return Object.entries(t).forEach(([i,r])=>{var p,u,s;if((p=a==null?void 0:a.preserve)!=null&&p[i])n[i]=r;else if((typeof r=="string"||typeof r=="number")&&!((u=a==null?void 0:a.ignore)!=null&&u[i])){const c=Ms(i,a==null?void 0:a.prefix);l[c]=typeof r=="number"&&!((s=a==null?void 0:a.unitless)!=null&&s[i])?`${r}px`:String(r),n[i]=`var(${c})`}}),[n,dH(l,e,{scope:a==null?void 0:a.scope})]},dC={},fH=process.env.NODE_ENV==="production",SH=process.env.NODE_ENV==="prerender",hH=!fH&&!SH?"css-dev-only-do-not-override":"css",co=new Map;function mH(t){co.set(t,(co.get(t)||0)+1)}function gH(t,e){typeof document<"u"&&document.querySelectorAll(`style[${U2}="${t}"]`).forEach(a=>{var l;a[gi]===e&&((l=a.parentNode)==null||l.removeChild(a))})}const AH=0;function LH(t,e){co.set(t,(co.get(t)||0)-1);const a=Array.from(co.keys()),l=a.filter(n=>(co.get(n)||0)<=0);a.length-l.length>AH&&l.forEach(n=>{gH(n,e),co.delete(n)})}const bH=(t,e,a,l)=>{let n={...a==null?void 0:a.getDerivativeToken(t),...e};return l&&(n=l(n)),n};function yH(t,e,a=o.ref({})){const l=ip(),n=o.computed(()=>Object.assign({},...e.value||[])),i=o.computed(()=>Ts(n.value)),r=o.computed(()=>{var p;return Ts(((p=a.value)==null?void 0:p.override)||dC)});return tS("token",o.computed(()=>{var p,u;return[((p=a.value)==null?void 0:p.salt)||"",(u=t.value)==null?void 0:u.id,i.value,r.value]}),()=>{const{salt:p="",override:u=dC,formatToken:s,getComputedToken:c}=a.value||{},d=c?c(n.value,u,t.value):bH(n.value,u,t.value,s),W=pH(d,p);d._tokenKey=W,mH(W);const f=`${hH}-${Fo(W)}`;return d._hashId=f,[d,f]},p=>{var u;LH(p[0]._tokenKey,(u=l.value)==null?void 0:u.cache.instanceId)})}var vH={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function WC(t,e){const{path:a,parentSelectors:l}=e;oC(!1,`[Ant Design Vue CSS-in-JS] ${a?`Error in '${a}': `:""}${t}${l.length?` Selector info: ${l.join(" -> ")}`:""}`)}const IH=(t,e,a)=>{if(t==="content"){const l=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof e!="string"||["normal","none","initial","inherit","unset"].indexOf(e)===-1&&!l.test(e)&&(e.charAt(0)!==e.charAt(e.length-1)||e.charAt(0)!=='"'&&e.charAt(0)!=="'"))&&WC(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${e}"'\`.`,a)}},CH=(t,e,a)=>{t==="animation"&&a.hashId&&e!=="none"&&WC(`You seem to be using hashed animation '${e}', in which case 'animationName' with Keyframe as value is recommended.`,a)},fC="data-ant-cssinjs-cache-path",xH="_FILE_STYLE__";let Wo,SC=!0;function wH(){var t;if(!Wo&&(Wo={},Ai())){const e=document.createElement("div");e.className=fC,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let a=getComputedStyle(e).content||"";a=a.replace(/^"/,"").replace(/"$/,""),a.split(";").forEach(n=>{const[i,r]=n.split(":");Wo[i]=r});const l=document.querySelector(`style[${fC}]`);l&&(SC=!1,(t=l.parentNode)==null||t.removeChild(l)),document.body.removeChild(e)}}function OH(t){return wH(),!!Wo[t]}function kH(t){const e=Wo[t];let a=null;if(e&&Ai())if(SC)a=xH;else{const l=document.querySelector(`style[${gn}="${Wo[t]}"]`);l?a=l.innerHTML:delete Wo[t]}return[a,e]}const hC=Ai(),mC="_skip_check_",gC="_multi_value_";function AC(t){return wu(ab(t),ob).replace(/\{%%%\:[^;];}/g,";")}function jH(t){return typeof t=="object"&&t&&(mC in t||gC in t)}function qH(t,e,a){if(!e)return t;const l=`.${e}`,n=a==="low"?`:where(${l})`:l;return t.split(",").map(i=>{var r;const p=i.trim().split(/\s+/);let u=p[0]||"";const s=((r=u.match(/^\w+/))==null?void 0:r[0])||"";return u=`${s}${n}${u.slice(s.length)}`,[u,...p.slice(1)].join(" ")}).join(",")}const LC=new Set;process.env.NODE_ENV;const pS=(t,e={},{root:a,injectHash:l,parentSelectors:n}={root:!0,parentSelectors:[]})=>{const{hashId:i,layer:r,path:p,hashPriority:u,transformers:s=[],linters:c=[]}=e;let d="",W={};function f(h){const m=h.getName(i);if(!W[m]){const[g]=pS(h.style,e,{root:!1,parentSelectors:n});W[m]=`@keyframes ${h.getName(i)}${g}`}}function S(h,m=[]){return h.forEach(g=>{Array.isArray(g)?S(g,m):g&&m.push(g)}),m}return S(Array.isArray(t)?t:[t]).forEach(h=>{const m=typeof h=="string"&&!a?{}:h;if(typeof m=="string")d+=`${m}
|
|
273
|
+
`;else if(m._keyframe)f(m);else{const g=s.reduce((A,b)=>{var v;return((v=b==null?void 0:b.visit)==null?void 0:v.call(b,A))||A},m);Object.keys(g).forEach(A=>{const b=g[A];if(typeof b=="object"&&b&&(A!=="animationName"||!b._keyframe)&&!jH(b)){let v=!1,y=A.trim(),I=!1;(a||l)&&i?y.startsWith("@")?v=!0:y=qH(A,i,u):a&&!i&&(y==="&"||y==="")&&(y="",I=!0);const[L,w]=pS(b,e,{root:I,injectHash:v,parentSelectors:[...n,y]});W={...W,...w},d+=`${y}${L}`}else{let v=function(I,L){process.env.NODE_ENV!=="production"&&(typeof b!="object"||!(b!=null&&b[mC]))&&[IH,CH,...c].forEach(k=>k(I,L,{path:p,hashId:i,parentSelectors:n}));const w=I.replace(/[A-Z]/g,k=>`-${k.toLowerCase()}`);let C=L;!vH[I]&&typeof C=="number"&&C!==0&&(C=`${C}px`),I==="animationName"&&L!=null&&L._keyframe&&(f(L),C=L.getName(i)),d+=`${w}:${C};`};const y=(b==null?void 0:b.value)??b;typeof b=="object"&&b!=null&&b[gC]&&Array.isArray(y)?y.forEach(I=>{v(A,I)}):v(A,y)}})}}),a?r&&sH():d=`{${d}}`,[d,W]};function bC(t,e){return Fo(`${t.join("%")}${e}`)}function yC(t,e){const a=ip(),l=o.computed(()=>{var r;return(r=t.value)==null?void 0:r.token._tokenKey}),n=o.computed(()=>{var r;return[l.value,...((r=t.value)==null?void 0:r.path)||[]]});let i=hC;return process.env.NODE_ENV!=="production"&&a.value.mock!==void 0&&(i=a.value.mock==="client"),tS("style",n,()=>{const{path:r,hashId:p,layer:u,nonce:s,clientOnly:c,order:d=0}=t.value||{},W=n.value.join("|");if(OH(W)){const[L,w]=kH(W);if(L)return[L,l.value,w,{},c,d]}const f=e(),{hashPriority:S,container:h,transformers:m,linters:g,cache:A}=a.value,[b,v]=pS(f,{hashId:p,hashPriority:S,layer:u,path:r==null?void 0:r.join("-"),transformers:m,linters:g}),y=AC(b),I=bC(n.value,y);if(i){const L={mark:gn,prepend:"queue",attachTo:h,priority:d},w=typeof s=="function"?s():s;w&&(L.csp={nonce:w});const C=lS(y,I,L);C[gi]=A.instanceId,C.setAttribute(U2,l.value),process.env.NODE_ENV!=="production"&&C.setAttribute(EJ,n.value.join("|")),Object.keys(v).forEach(k=>{LC.has(k)||(LC.add(k),lS(AC(v[k]),`_effect-${k}`,{mark:gn,prepend:"queue",attachTo:h}))})}return[y,l.value,I,v,c,d]},([,,r],p)=>{(p||a.value.autoClear)&&hC&&aS(r,{mark:gn})}),r=>r}const ZH="cssVar",zH=(t,e)=>{const{key:a,prefix:l,unitless:n,ignore:i,token:r,scope:p=""}=t;useContext(XJ);const{_tokenKey:u}=r,s=[...t.path,a,p,u];return tS(ZH,s,()=>{const c=e(),[d,W]=WH(c,a,{prefix:l,unitless:n,ignore:i,scope:p}),f=bC(s,W);return[d,W,f,a]},([,,c])=>{cH&&aS(c,{mark:gn})})};class vC{constructor(e,a){this._keyframe=!0,this.name=e,this.style=a}getName(e=""){return e?`${e}-${this.name}`:this.name}}function Li(t){return t.notSplit=!0,t}Li(["borderTop","borderBottom"]),Li(["borderTop"]),Li(["borderBottom"]),Li(["borderLeft","borderRight"]),Li(["borderLeft"]),Li(["borderRight"]);class IC{}const CC="CALC_UNIT",VH=new RegExp(CC,"g");function uS(t){return typeof t=="number"?`${t}${CC}`:t}class fo extends IC{constructor(e,a){super(),this.result="";const l=typeof e;this.unitlessCssVar=a,e instanceof fo?this.result=`(${e.result})`:l==="number"?this.result=uS(e):l==="string"&&(this.result=e)}add(e){return e instanceof fo?this.result=`${this.result} + ${e.getResult()}`:(typeof e=="number"||typeof e=="string")&&(this.result=`${this.result} + ${uS(e)}`),this.lowPriority=!0,this}sub(e){return e instanceof fo?this.result=`${this.result} - ${e.getResult()}`:(typeof e=="number"||typeof e=="string")&&(this.result=`${this.result} - ${uS(e)}`),this.lowPriority=!0,this}mul(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof fo?this.result=`${this.result} * ${e.getResult(!0)}`:(typeof e=="number"||typeof e=="string")&&(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}div(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof fo?this.result=`${this.result} / ${e.getResult(!0)}`:(typeof e=="number"||typeof e=="string")&&(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}getResult(e){return this.lowPriority||e?`(${this.result})`:this.result}equal(e){const{unit:a}=e||{};let l=!0;return typeof a=="boolean"?l=a:Array.from(this.unitlessCssVar).some(n=>this.result.includes(n))&&(l=!1),this.result=this.result.replace(VH,l?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}class So extends IC{constructor(e){super(),this.result=0,e instanceof So?this.result=e.result:typeof e=="number"&&(this.result=e)}add(e){return e instanceof So?this.result+=e.result:typeof e=="number"&&(this.result+=e),this}sub(e){return e instanceof So?this.result-=e.result:typeof e=="number"&&(this.result-=e),this}mul(e){return e instanceof So?this.result*=e.result:typeof e=="number"&&(this.result*=e),this}div(e){return e instanceof So?this.result/=e.result:typeof e=="number"&&(this.result/=e),this}equal(){return this.result}}const NH=(t,e)=>{const a=t==="css"?fo:So;return l=>new a(l,e)},xC=(t,e)=>`${[e,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function wC(t,e={},a,l){const n={...e[t]};if(l!=null&&l.deprecatedTokens){const{deprecatedTokens:r}=l;r.forEach(([p,u])=>{process.env.NODE_ENV!=="production"&&nC(!(n!=null&&n[p]),`Component Token \`${String(p)}\` of ${String(t)} is deprecated. Please use \`${String(u)}\` instead.`),(n!=null&&n[p]||n!=null&&n[u])&&(n[u]??(n[u]=n==null?void 0:n[p]))})}const i={...a,...n};return Object.keys(i).forEach(r=>{i[r]===e[r]&&delete i[r]}),i}const OC=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let sS=!0;function ul(...t){if(!OC)return Object.assign({},...t);sS=!1;const e={};return t.forEach(a=>{typeof a=="object"&&Object.keys(a).forEach(l=>{Object.defineProperty(e,l,{configurable:!0,enumerable:!0,get:()=>a[l]})})}),sS=!0,e}const kC={};function TH(){}const MH=t=>{let e,a=t,l=TH;return OC&&typeof Proxy<"u"&&(e=new Set,a=new Proxy(t,{get(n,i){return sS&&(e==null||e.add(i)),n[i]}}),l=(n,i)=>{var r;kC[n]={global:Array.from(e),component:{...(r=kC[n])==null?void 0:r.component,...i}}}),{token:a,keys:e,flush:l}};function jC(t,e={},a){return typeof a=="function"?a(ul(e,e[t]??{})):a??{}}function KH(t){return t==="js"?{max:Math.max,min:Math.min}:{max:(...e)=>`max(${e.map(a=>Ha(a)).join(",")})`,min:(...e)=>`min(${e.map(a=>Ha(a)).join(",")})`}}const RH=1e3*60*10;class EH{constructor(){ur(this,"map",new Map),ur(this,"objectIDMap",new WeakMap),ur(this,"nextID",0),ur(this,"lastAccessBeat",new Map),ur(this,"accessBeat",0)}set(e,a){this.clear();const l=this.getCompositeKey(e);this.map.set(l,a),this.lastAccessBeat.set(l,Date.now())}get(e){const a=this.getCompositeKey(e),l=this.map.get(a);return this.lastAccessBeat.set(a,Date.now()),this.accessBeat+=1,l}getCompositeKey(e){return e.map(a=>a&&typeof a=="object"?`obj_${this.getObjectID(a)}`:`${typeof a}_${a}`).join("|")}getObjectID(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);const a=this.nextID;return this.objectIDMap.set(e,a),this.nextID+=1,a}clear(){if(this.accessBeat>1e4){const e=Date.now();this.lastAccessBeat.forEach((a,l)=>{e-a>RH&&(this.map.delete(l),this.lastAccessBeat.delete(l))}),this.accessBeat=0}}}const qC=new EH;function PH(t,e){return o.computed(()=>{const a=qC.get(e);if(a)return a;const l=t();return qC.set(e,l),l})}const YH=()=>({});function GH(t){const{useCSP:e=YH,useToken:a,usePrefix:l,getResetStyles:n,getCommonStyle:i,getCompUnitless:r}=t;function p(d,W,f,S){const h=Array.isArray(d)?d[0]:d;function m(I){return`${String(h)}${I.slice(0,1).toUpperCase()}${I.slice(1)}`}const g=(S==null?void 0:S.unitless)||{},A={...typeof r=="function"?r(d):{},[m("zIndexPopup")]:!0};Object.keys(g).forEach(I=>{A[m(I)]=g[I]});const b={...S,unitless:A,prefixToken:m},v=s(d,W,f,b),y=u(h,f,b);return(I,L=o.toValue(I))=>{const[,w]=v(o.toValue(I),L),[C,k]=y(L);return[C,w,k]}}function u(d,W,f){const{unitless:S,injectStyle:h=!0,prefixToken:m,ignore:g}=f,A=({rootCls:b,cssVar:v={}})=>{const{realToken:y}=a();return zH({path:[d],prefix:v.prefix,key:v.key,unitless:S,ignore:g,token:y,scope:b},()=>{const I=jC(d,y,W),L=wC(d,y,I,{deprecatedTokens:f==null?void 0:f.deprecatedTokens});return Object.keys(I).forEach(w=>{L[m(w)]=L[w],delete L[w]}),L}),null};return b=>{const{cssVar:v}=a();return[y=>h&&v?o.createVNode(o.Fragment,null,[o.createVNode(A,{rootCls:b,cssVar:v,component:d},null),y]):y,v==null?void 0:v.key]}}function s(d,W,f,S={}){const h=Array.isArray(d)?d:[d,d],[m]=h,g=h.join("-"),A=t.layer||{name:"antd"};return(b,v=b)=>{const{theme:y,realToken:I,hashId:L,token:w,cssVar:C}=a(),{rootPrefixCls:k,iconPrefixCls:Z}=l(),E=e(),z=C?"css":"js",Y=o.unref(PH(()=>{const F=new Set;return C&&Object.keys(S.unitless||{}).forEach(V=>{F.add(Ms(V,C.prefix)),F.add(Ms(V,xC(m,C.prefix)))}),NH(z,F)},[z,m,C==null?void 0:C.prefix])),{max:O,min:M}=KH(z),J=o.computed(()=>({theme:y.value,token:w.value,hashId:L.value,nonce:()=>E.nonce,clientOnly:S.clientOnly,layer:A,order:S.order||-999}));return typeof n=="function"&&yC(o.computed(()=>({...J.value,clientOnly:!1,path:["Shared",k]})),()=>n(w.value,{prefix:{rootPrefixCls:k,iconPrefixCls:Z},csp:E})),[yC(o.computed(()=>({...J.value,path:[g,b,Z]})),()=>{if(S.injectStyle===!1)return[];const{token:F,flush:V}=MH(w),G=jC(m,I,f),U=`.${b}`,D=wC(m,I,G,{deprecatedTokens:S.deprecatedTokens});C&&G&&typeof G=="object"&&Object.keys(G).forEach(K=>{G[K]=`var(${Ms(K,xC(m,C.prefix))})`});const B=o.computed(()=>ul(F.value,{componentCls:U,prefixCls:b,iconCls:`.${Z}`,antCls:`.${k}`,calc:Y,max:O,min:M},C?G:D)),H=o.computed(()=>W(B.value,{hashId:L.value,prefixCls:b,rootPrefixCls:k,iconPrefixCls:Z}));V(m,D);const pt=typeof i=="function"?i(B.value,b,v,S.resetFont):null;return[S.resetStyle===!1?null:pt,H.value]}),L]}}function c(d,W,f,S={}){const h=s(d,W,f,{resetStyle:!1,order:-998,...S});return({prefixCls:m,rootCls:g=m})=>(h(m,g),null)}return{genStyleHooks:p,genSubStyleComponent:c,genComponentStyleHook:s}}const XH={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},FH={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},JH="1.0.3",HH=rH(hn.defaultAlgorithm),DH={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},ZC=(t,e,a)=>{const l=a.getDerivativeToken(t),{override:n,...i}=e;let r={...l,override:n};return r=wb(r),i&&Object.entries(i).forEach(([p,u])=>{const{theme:s,...c}=u;let d=c;s&&(d=ZC({...r,...c},{override:c},s)),r[p]=d}),r};function UH(){const t=BV(),{override:e,cssVar:a}=o.unref(t),l=o.computed(()=>t.value.token),n=o.computed(()=>t.value.hashed),i=o.computed(()=>t.value.theme??HH),r=yH(o.computed(()=>i.value),o.computed(()=>[hn.defaultSeed,l.value]),o.computed(()=>({salt:`${JH}-${n.value||""}`,override:e,getComputedToken:ZC,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:FH,ignore:XH,preserve:DH}}))),[p,u,s]=o.unref(r),c=o.computed(()=>r.value[0]),d=o.computed(()=>n.value?r.value[1]:"");return[i,s,d,c,a]}const{genStyleHooks:An,genComponentStyleHook:Hht,genSubStyleComponent:Dht}=GH({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:e}=fa();return{iconPrefixCls:o.unref(e),rootPrefixCls:t()}},useToken:()=>{const[t,e,a,l,n]=UH();return{theme:t,realToken:e,hashId:a,token:l,cssVar:n}},useCSP:()=>{const{csp:t}=fa();return(t==null?void 0:t.value)??{}},layer:{name:"antdx",dependencies:["antd"]}}),BH=t=>{const{componentCls:e,paddingSM:a,padding:l}=t;return{[e]:{[`${e}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${Ha(a)} ${Ha(l)}`,borderRadius:t.borderRadiusLG},"&-filled":{backgroundColor:t.colorFillContent},"&-outlined":{border:`1px solid ${t.colorBorderSecondary}`},"&-shadow":{boxShadow:t.boxShadowTertiary}}}}},QH=t=>{const{componentCls:e,fontSize:a,lineHeight:l,paddingSM:n,padding:i,calc:r}=t,p=r(a).mul(l).div(2).add(n).equal(),u=`${e}-content`;return{[e]:{[u]:{"&-round":{borderRadius:{_skip_check_:!0,value:p},paddingInline:r(i).mul(1.25).equal()}},[`&-start ${u}-corner`]:{borderStartStartRadius:t.borderRadiusXS},[`&-end ${u}-corner`]:{borderStartEndRadius:t.borderRadiusXS}}}},$H=t=>{const{componentCls:e,padding:a}=t;return{[`${e}-list`]:{display:"flex",flexDirection:"column",gap:a,overflowY:"auto"}}},_H=new vC("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),tD=new vC("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),eD=t=>{const{componentCls:e,fontSize:a,lineHeight:l,paddingSM:n,colorText:i,calc:r}=t;return{[e]:{display:"flex",columnGap:n,[`&${e}-end`]:{justifyContent:"end",flexDirection:"row-reverse",[`& ${e}-content-wrapper`]:{alignItems:"flex-end"}},[`&${e}-rtl`]:{direction:"rtl"},[`&${e}-typing ${e}-content:last-child::after`]:{content:'"|"',fontWeight:900,userSelect:"none",opacity:1,marginInlineStart:"0.1em",animationName:tD,animationDuration:"0.8s",animationIterationCount:"infinite",animationTimingFunction:"linear"},[`& ${e}-avatar`]:{display:"inline-flex",justifyContent:"center",alignSelf:"flex-start"},[`& ${e}-header, & ${e}-footer`]:{fontSize:a,lineHeight:l,color:t.colorText},[`& ${e}-header`]:{marginBottom:t.paddingXXS},[`& ${e}-footer`]:{marginTop:n},[`& ${e}-content-wrapper`]:{flex:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:0,maxWidth:"100%"},[`& ${e}-content`]:{position:"relative",boxSizing:"border-box",minWidth:0,maxWidth:"100%",color:i,fontSize:t.fontSize,lineHeight:t.lineHeight,minHeight:r(n).mul(2).add(r(l).mul(a)).equal(),wordBreak:"break-word",[`& ${e}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:t.marginXS,padding:`0 ${Ha(t.paddingXXS)}`,"&-item":{backgroundColor:t.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:_H,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},aD=()=>({}),zC=An("Bubble",t=>{const e=ul(t,{});return[eD(e),$H(e),BH(e),QH(e)]},aD),VC=Symbol("BubbleContext"),cS=o.shallowRef(),lD=t=>{o.provide(VC,t),o.watch(t,()=>{cS.value=o.unref(t),o.triggerRef(cS)},{immediate:!0,deep:!0})},nD=()=>o.inject(VC,o.computed(()=>cS.value||{})),oD=o.defineComponent({props:{value:xl()},setup(t,{slots:e}){return lD(o.computed(()=>t.value)),()=>{var a;return(a=e.default)==null?void 0:a.call(e)}}}),NC=o.defineComponent({name:"AXBubble",__name:"Bubble",props:o.mergeDefaults({prefixCls:null,rootClassName:null,styles:null,classNames:null,avatar:null,placement:null,loading:{type:Boolean},typing:null,content:null,messageRender:{type:Function},loadingRender:{type:Function},variant:null,shape:null,onTypingComplete:null,header:null,footer:null},{classNames:()=>({}),styles:()=>({}),placement:"start",loading:!1,content:"",variant:"filled"}),setup(t,{expose:e}){const a=_e(t,["prefixCls","rootClassName","classNames","styles","avatar","placement","loading","loadingRender","typing","content","messageRender","variant","shape","onTypingComplete","header","footer"]);o.toRef(t,"content"),o.toRef(t,"prefixCls");const l=o.useSlots(),n=o.ref(t.content);o.watch(()=>t.content,()=>{n.value=t.content});const{onUpdate:i}=o.unref(nD()),r=o.ref(null),{direction:p,getPrefixCls:u}=fa(),s=u("bubble",t.prefixCls),c=mn("bubble"),[d,W,f,S]=MJ(()=>t.typing),[h,m]=TJ(n,d,W,f),g=o.ref(!1);o.watch(h,()=>{i==null||i()}),o.watchEffect(()=>{var k;!m.value&&!t.loading?g.value||(g.value=!0,(k=t.onTypingComplete)==null||k.call(t)):g.value=!1});const[A,b,v]=zC(()=>s),y=o.computed(()=>[s,t.rootClassName,c.value.className,b.value,v,`${s}-${t.placement}`,{[`${s}-rtl`]:p.value==="rtl"},{[`${s}-typing`]:m.value&&!t.loading&&!t.messageRender&&!l.message&&!S.value}]),I=o.computed(()=>l.avatar?l.avatar():o.isVNode(t.avatar)?t.avatar:o.createVNode(oo,t.avatar,null)),L=o.computed(()=>l.message?l.message({content:h.value}):t.messageRender?t.messageRender(h.value):h.value),w=o.computed(()=>t.loading?l.loading?l.loading():t.loadingRender?t.loadingRender():o.createVNode(KJ,{prefixCls:s},null):o.createVNode(o.Fragment,null,[L.value,m.value&&o.toValue(S)])),C=o.computed(()=>{const k=o.createVNode("div",{style:{...c.value.styles.content,...t.styles.content},class:[`${s}-content`,`${s}-content-${t.variant}`,{[`${s}-content-${t.shape}`]:t.shape},c.value.classNames.content,t.classNames.content]},[o.toValue(w)]),Z=l.header?l.header():t.header,E=l.footer?l.footer():t.footer;return Z||E?o.createVNode("div",{class:`${s}-content-wrapper`},[Z&&o.createVNode("div",{class:[`${s}-header`,c.value.classNames.header,t.classNames.header],style:{...c.value.styles.header,...t.styles.header}},[Z]),k,E&&o.createVNode("div",{class:[`${s}-footer`,c.value.classNames.footer,t.classNames.footer],style:{...c.value.styles.footer,...t.styles.footer}},[E])]):k});return e({nativeElement:r}),()=>A(o.createVNode("div",o.mergeProps({style:{...c.value.style},class:o.toValue(y)},a,{ref:r}),[t.avatar&&o.createVNode("div",{style:{...c.value.styles.avatar,...t.styles.avatar},class:[`${s}-avatar`,c.value.classNames.avatar,t.classNames.avatar]},[o.toValue(I)]),o.toValue(C)]))}});var TC={exports:{}};/*!
|
|
274
274
|
Copyright (c) 2018 Jed Watson.
|
|
275
275
|
Licensed under the MIT License (MIT), see
|
|
276
276
|
http://jedwatson.github.io/classnames
|
|
277
|
-
*/(function(t){(function(){var e={}.hasOwnProperty;function a(){for(var i="",r=0;r<arguments.length;r++){var p=arguments[r];p&&(i=n(i,l(p)))}return i}function l(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return a.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var r="";for(var p in i)e.call(i,p)&&i[p]&&(r=n(r,p));return r}function n(i,r){return r?i?i+" "+r:i+r:i}t.exports?(a.default=a,t.exports=a):window.classNames=a})()})(
|
|
277
|
+
*/(function(t){(function(){var e={}.hasOwnProperty;function a(){for(var i="",r=0;r<arguments.length;r++){var p=arguments[r];p&&(i=n(i,l(p)))}return i}function l(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return a.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var r="";for(var p in i)e.call(i,p)&&i[p]&&(r=n(r,p));return r}function n(i,r){return r?i?i+" "+r:i+r:i}t.exports?(a.default=a,t.exports=a):window.classNames=a})()})(TC);var iD=TC.exports;const Gt=TP(iD);function dS(t){const e=o.ref(t),a=o.ref(l=>{e.value&&e.value(l)});return e.value=t,a.value}const rD=`accept acceptcharset accesskey action allowfullscreen allowtransparency
|
|
278
278
|
alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
|
|
279
279
|
charset checked classid class colspan cols content contenteditable contextmenu
|
|
280
280
|
controls coords crossorigin data datetime default defer dir disabled download draggable
|
|
@@ -291,7 +291,7 @@ summary tabindex target title type usemap value width wmode wrap`,pD=`onCopy onC
|
|
|
291
291
|
onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
|
|
292
292
|
onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
|
|
293
293
|
onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
|
|
294
|
-
onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,K2=`${rD} ${pD}`.split(/[\s\n]+/),uD="aria-",sD="data-";function R2(t,e){return t.indexOf(e)===0}function bi(t,e=!1){let a;e===!1?a={aria:!0,data:!0,attr:!0}:e===!0?a={aria:!0}:a={...e};const l={};return Object.keys(t).forEach(n=>{(a.aria&&(n==="role"||R2(n,uD))||a.data&&R2(n,sD)||a.attr&&(K2.includes(n)||K2.includes(n.toLowerCase())))&&(l[n]=t[n])}),l}function cD(t){const[e,a]=we(t.value.length),l=o.computed(()=>t.value.slice(0,o.unref(e))),n=o.computed(()=>{const r=o.unref(l)[o.unref(l).length-1];return r?r.key:null});o.watch(t,()=>{var r;if(!(o.unref(l).length&&o.unref(l).every((p,u)=>{var s;return p.key===((s=t.value[u])==null?void 0:s.key)}))){if(o.unref(l).length===0)a(1);else for(let p=0;p<o.unref(l).length;p+=1)if(o.unref(l)[p].key!==((r=t.value[p])==null?void 0:r.key)){a(p);break}}},{immediate:!0,deep:!0});const i=dS(r=>{r===o.unref(n)&&a(o.unref(e)+1)});return[l,i]}function dD(t,e){const a=(l,n)=>typeof e.value=="function"?e.value(l,n):e?e.value[l.role]||{}:{};return o.computed(()=>(t.value||[]).map((l,n)=>{const i=l.key??`preset_${n}`;return{...a(l,n),...l,key:i}}))}const WD=1,fD=o.defineComponent({name:"AXBubbleList",inheritAttrs:!1,__name:"BubbleList",props:o.mergeDefaults({prefixCls:null,rootClassName:null,items:null,autoScroll:{type:Boolean},roles:null},{autoScroll:!0}),setup(t,{expose:e}){const a=_e(t,["prefixCls","rootClassName","items","autoScroll","roles"]);o.toRef(t,"roles"),o.toRef(t,"items"),o.toRef(t,"prefixCls");const l=o.useAttrs(),n=bi(o.mergeProps(a,l),{attr:!0,aria:!0}),i=o.ref(t.items),r=o.ref(t.roles);o.watch(()=>t.items,()=>{i.value=t.items}),o.watch(()=>t.roles,()=>{r.value=t.roles});const p=o.ref(null),u=o.ref({}),{getPrefixCls:s}=fa(),c=s("bubble",t.prefixCls),d=`${c}-list`,[W,f,S]=V2(c),[h,m]=we(!1);o.watchEffect(()=>{m(!0),o.onWatcherCleanup(()=>{m(!1)})});const g=dD(i,r),[A,b]=cD(g),[v,y]=we(!0),[I,L]=we(0),w=Z=>{const E=Z.target;y(E.scrollHeight-Math.abs(E.scrollTop)-E.clientHeight<=WD)};o.watch(I,()=>{t.autoScroll&&o.unref(p)&&o.unref(v)&&o.nextTick(()=>{o.unref(p).scrollTo({top:o.unref(p).scrollHeight})})}),o.watch(()=>o.unref(A).length,()=>{var Z;if(t.autoScroll){const E=(Z=o.unref(A)[o.unref(A).length-2])==null?void 0:Z.key,z=o.unref(u)[E];if(z){const{nativeElement:Y}=z,{top:O=0,bottom:M=0}=(Y==null?void 0:Y.getBoundingClientRect())??{},{top:J,bottom:F}=o.unref(p).getBoundingClientRect();O<F&&M>J&&(L(o.unref(I)+1),y(!0))}}});const C=dS(()=>{t.autoScroll&&L(o.unref(I)+1)}),k=o.computed(()=>({onUpdate:C}));return e({nativeElement:p,scrollTo:({key:Z,offset:E,behavior:z="smooth",block:Y})=>{if(typeof E=="number")o.unref(p).scrollTo({top:E,behavior:z});else if(Z!==void 0){const O=o.unref(u)[Z];if(O){const M=o.unref(A).findIndex(J=>J.key===Z);y(M===o.unref(A).length-1),O.nativeElement.scrollIntoView({behavior:z,block:Y})}}}}),()=>W(o.createVNode(oD,{value:k.value},{default:()=>[o.createVNode("div",o.mergeProps(n,{class:Gt(d,t.rootClassName,f.value,S,{[`${d}-reach-end`]:v.value}),ref:p,onScroll:w}),[o.unref(A).map(({key:Z,onTypingComplete:E,...z})=>o.createVNode(T2,o.mergeProps(z,{key:Z,ref:Y=>{Y?u.value[Z]=Y:delete u.value[Z]},typing:h.value?z.typing:!1,onTypingComplete:()=>{E==null||E(),b(Z)}}),null))])]}))}}),E2=Object.assign(T2,{List:fD}),SD=o.defineComponent({name:"AXConversationsItem",__name:"ConversationsItem",props:{info:null,prefixCls:null,direction:null,menu:null,active:{type:Boolean},onClick:{type:Function}},setup(t){const e=_e(t,["prefixCls","info","class","direction","onClick","active","menu"]);o.toRef(t,"class");const a=o.computed(()=>bi(e,{aria:!0,data:!0,attr:!0})),l=W=>{W.stopPropagation()},n=o.computed(()=>t.info.disabled),[i,r]=we(!1),[p,u]=we(!1),s=o.computed(()=>Gt(t.class,`${t.prefixCls}-item`,{[`${t.prefixCls}-item-active`]:t.active&&!n.value},{[`${t.prefixCls}-item-disabled`]:n.value})),c=()=>{!n.value&&t.onClick&&t.onClick(t.info)},d=W=>{W&&u(!W)};return()=>o.createVNode(sn,{title:t.info.label,open:i.value&&p.value,onOpenChange:u,placement:t.direction==="rtl"?"left":"right"},{default:()=>[o.createVNode("li",o.mergeProps(a.value,{class:s.value,onClick:c}),[t.info.icon&&o.createVNode("div",{class:`${t.prefixCls}-icon`},[t.info.icon]),o.createVNode(Se.Text,{class:`${t.prefixCls}-label`,ellipsis:{onEllipsis:r}},{default:()=>[t.info.label]}),t.menu&&!n.value&&o.createVNode(ro,{placement:t.direction==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:n.value,onOpenChange:d},{default:()=>o.createVNode(Pr,{onClick:l,disabled:n.value,class:`${t.prefixCls}-menu-icon`},null),overlay:()=>o.createVNode(dn,t.menu,null)})])]})}}),P2=Symbol("GroupTitleContext"),WS=o.shallowRef(),hD=t=>{o.provide(P2,t),o.watch(t,()=>{WS.value=o.unref(t),o.triggerRef(WS)},{immediate:!0,deep:!0})},mD=()=>o.inject(P2,o.computed(()=>WS.value||{})),gD=o.defineComponent({props:{value:xl()},setup(t,{slots:e}){return hD(o.computed(()=>t.value)),()=>{var a;return(a=e.default)==null?void 0:a.call(e)}}}),Y2=o.defineComponent({name:"AXConversationsGroupTitle",__name:"GroupTitle",setup(t){const e=o.useSlots(),a=mD(),l=o.computed(()=>{var n;return(n=e.default)==null?void 0:n.call(e)});return()=>o.createVNode("div",{class:Gt(`${a.value.prefixCls}-group-title`)},[l.value&&o.createVNode(Se.Text,null,{default:()=>[l.value]})])}});function G2(t,e){const{defaultValue:a,value:l=o.ref()}=e||{};let n=typeof t=="function"?t():t;l.value!==void 0&&(n=o.unref(l)),a!==void 0&&(n=typeof a=="function"?a():a);const i=o.ref(n),r=o.ref(n);o.watchEffect(()=>{let u=l.value!==void 0?l.value:i.value;e.postState&&(u=e.postState(u)),r.value=u});function p(u){const s=r.value;i.value=u,o.toRaw(r.value)!==u&&e.onChange&&e.onChange(u,s)}return o.watch(l,()=>{i.value=l.value}),[r,p]}const fS="__ungrouped",AD=(t,e=[])=>{const a=o.computed(()=>{if(!o.toValue(t))return{enableGroup:!1,sort:void 0,title:void 0};let l={sort:void 0,title:void 0};return typeof o.toValue(t)=="object"&&(l={...l,...o.toValue(t)}),{enableGroup:!0,sort:l.sort,title:l.title}});return o.computed(()=>{if(!a.value.enableGroup)return{groupList:[{name:fS,data:o.toValue(e),title:void 0}],enableGroup:a.value.enableGroup};const l=o.toValue(e).reduce((n,i)=>{const r=i.group||fS;return n[r]||(n[r]=[]),n[r].push(i),n},{});return{groupList:(a.value.sort?Object.keys(l).sort(a.value.sort):Object.keys(l)).map(n=>({name:n===fS?void 0:n,title:a.value.title,data:l[n]})),enableGroup:a.value.enableGroup}})},LD=t=>{const{componentCls:e}=t;return{[e]:{display:"flex",flexDirection:"column",gap:t.paddingXXS,overflowY:"auto",padding:t.paddingSM,[`&${e}-rtl`]:{direction:"rtl"},[`& ${e}-list`]:{display:"flex",gap:t.paddingXXS,flexDirection:"column",paddingLeft:0,[`& ${e}-item`]:{paddingInlineStart:t.paddingXL},[`& ${e}-label`]:{color:t.colorTextDescription}},[`& ${e}-item`]:{display:"flex",height:t.controlHeightLG,minHeight:t.controlHeightLG,gap:t.paddingXS,padding:`0 ${Ha(t.paddingXS)}`,alignItems:"center",borderRadius:t.borderRadiusLG,cursor:"pointer",transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,"&:hover":{backgroundColor:t.colorBgTextHover},"&-active":{backgroundColor:t.colorBgTextHover,[`& ${e}-label, ${e}-menu-icon`]:{color:t.colorText}},"&-disabled":{cursor:"not-allowed",[`& ${e}-label`]:{color:t.colorTextDisabled}},"&:hover, &-active":{[`& ${e}-menu-icon`]:{opacity:1}}},[`& ${e}-label`]:{flex:1,color:t.colorText},[`& ${e}-menu-icon`]:{opacity:0,fontSize:t.fontSizeXL},[`& ${e}-group-title`]:{display:"flex",alignItems:"center",height:t.controlHeightLG,minHeight:t.controlHeightLG,padding:`0 ${Ha(t.paddingXS)}`}}}},bD=()=>({}),yD=An("Conversations",t=>{const e=ul(t,{});return LD(e)},bD);o.mergeDefaults({items:null,activeKey:null,defaultActiveKey:null,onActiveChange:{type:Function},menu:{type:Function},groupable:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})});const vD=t=>{const{componentCls:e,calc:a}=t,l=a(t.fontSizeHeading3).mul(t.lineHeightHeading3).equal(),n=a(t.fontSize).mul(t.lineHeight).equal();return{[e]:{gap:t.padding,[`${e}-icon`]:{height:a(l).add(n).add(t.paddingXXS).equal(),display:"flex",img:{height:"100%"}},[`${e}-content-wrapper`]:{gap:t.paddingXS,flex:"auto",minWidth:0,[`${e}-title-wrapper`]:{gap:t.paddingXS},[`${e}-title`]:{margin:0},[`${e}-extra`]:{marginInlineStart:"auto"}}}}},ID=t=>{const{componentCls:e}=t;return{[e]:{"&-filled":{paddingInline:t.padding,paddingBlock:t.paddingSM,background:t.colorFillContent,borderRadius:t.borderRadiusLG},"&-borderless":{[`${e}-title`]:{fontSize:t.fontSizeHeading3,lineHeight:t.lineHeightHeading3}}}}},CD=()=>({}),xD=An("Welcome",t=>{const e=ul(t,{});return[vD(e),ID(e)]},CD);function wD(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!o.isVNode(t)}o.mergeDefaults({prefixCls:null,rootClassName:null,className:null,style:null,variant:null,classNames:null,styles:null,icon:null,title:null,description:null,extra:null},{variant:"filled",classNames:()=>({}),styles:()=>({})});const OD=t=>{const{componentCls:e}=t;return{[e]:{"&, & *":{boxSizing:"border-box"},maxWidth:"100%",[`&${e}-rtl`]:{direction:"rtl"},[`& ${e}-title`]:{marginBlockStart:0,fontWeight:"normal",color:t.colorTextTertiary},[`& ${e}-list`]:{display:"flex",gap:t.paddingSM,overflowX:"scroll","&::-webkit-scrollbar":{display:"none"},listStyle:"none",paddingInlineStart:0,marginBlock:0,alignItems:"stretch","&-wrap":{flexWrap:"wrap"},"&-vertical":{flexDirection:"column",alignItems:"flex-start"}},[`${e}-item`]:{flex:"none",display:"flex",gap:t.paddingXS,height:"auto",paddingBlock:t.paddingSM,paddingInline:t.padding,alignItems:"flex-start",justifyContent:"flex-start",background:t.colorBgContainer,borderRadius:t.borderRadiusLG,transition:["border","background"].map(a=>`${a} ${t.motionDurationSlow}`).join(","),border:`${Ha(t.lineWidth)} ${t.lineType} ${t.colorBorderSecondary}`,[`&:not(${e}-item-has-nest)`]:{"&:hover":{cursor:"pointer",background:t.colorFillTertiary},"&:active":{background:t.colorFill}},[`${e}-content`]:{flex:"auto",minWidth:0,display:"flex",gap:t.paddingXXS,flexDirection:"column",alignItems:"flex-start"},[`${e}-icon, ${e}-label, ${e}-desc`]:{margin:0,padding:0,fontSize:t.fontSize,lineHeight:t.lineHeight,textAlign:"start",whiteSpace:"normal"},[`${e}-label`]:{color:t.colorTextHeading,fontWeight:500},[`${e}-label + ${e}-desc`]:{color:t.colorTextTertiary},[`&${e}-item-disabled`]:{pointerEvents:"none",background:t.colorBgContainerDisabled,[`${e}-label, ${e}-desc`]:{color:t.colorTextTertiary}}}}}},kD=t=>{const{componentCls:e}=t;return{[e]:{[`${e}-item-has-nest`]:{[`> ${e}-content`]:{[`> ${e}-label`]:{fontSize:t.fontSizeLG,lineHeight:t.lineHeightLG}}},[`&${e}-nested`]:{marginTop:t.paddingXS,alignSelf:"stretch",[`${e}-list`]:{alignItems:"stretch"},[`${e}-item`]:{border:0,background:t.colorFillQuaternary}}}}},jD=()=>({}),qD=An("Prompts",t=>{const e=ul(t,{});return[OD(e),kD(e)]},jD),X2=o.defineComponent({name:"AXPrompts",__name:"Prompts",props:o.mergeDefaults({items:null,title:null,onItemClick:{type:Function},vertical:{type:Boolean},wrap:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(t){const e=_e(t,["prefixCls","title","class","items","onItemClick","vertical","wrap","rootClassName","styles","classNames","style"]);o.toRef(t,"class"),o.toRef(t,"prefixCls");const a=o.useSlots(),{getPrefixCls:l,direction:n}=fa(),i=l("prompts",t.prefixCls),r=mn("prompts"),[p,u,s]=qD(i),c=o.computed(()=>Gt(i,r.value.className,t.class,t.rootClassName,u.value,s,{[`${i}-rtl`]:n.value==="rtl"})),d=o.computed(()=>Gt(`${i}-list`,r.value.classNames.list,t.classNames.list,{[`${i}-list-wrap`]:t.wrap},{[`${i}-list-vertical`]:t.vertical})),W=o.computed(()=>a.title?a.title():t.title);return()=>{var f;return p(o.createVNode("div",o.mergeProps(e,{class:c.value,style:{...typeof t.style=="object"?t.style:{},...typeof r.value.style=="object"?r.value.style:{}}}),[W.value&&o.createVNode(Se.Title,{level:5,class:Gt(`${i}-title`,r.value.classNames.title,t.classNames.title),style:{...r.value.styles.title,...t.styles.title}},{default:()=>[W.value]}),o.createVNode("div",{class:d.value,style:{...r.value.styles.list,...t.styles.list}},[(f=t.items)==null?void 0:f.map((S,h)=>{const m=S.children&&S.children.length>0;return o.createVNode("div",{key:S.key||`key_${h}`,style:{...r.value.styles.item,...t.styles.item},class:Gt(`${i}-item`,r.value.classNames.item,t.classNames.item,{[`${i}-item-disabled`]:S.disabled,[`${i}-item-has-nest`]:m}),onClick:()=>{!m&&t.onItemClick&&t.onItemClick({data:S})}},[S.icon&&o.createVNode("div",{class:`${i}-icon`},[S.icon]),o.createVNode("div",{class:Gt(`${i}-content`,r.value.classNames.itemContent,t.classNames.itemContent),style:{...r.value.styles.itemContent,...t.styles.itemContent}},[S.label&&o.createVNode("h6",{class:`${i}-label`},[S.label]),S.description&&o.createVNode("p",{class:`${i}-desc`},[S.description]),m&&o.createVNode(X2,{class:`${i}-nested`,items:S.children,vertical:!0,onItemClick:t.onItemClick,classNames:{list:t.classNames.subList,item:t.classNames.subItem},styles:{list:t.styles.subList,item:t.styles.subItem}},null)])])})])]))}}}),ZD=t=>{const{componentCls:e,antCls:a}=t;return{[e]:{[`${a}-cascader-menus ${a}-cascader-menu`]:{height:"auto"},[`${e}-item`]:{"&-icon":{marginInlineEnd:t.paddingXXS},"&-extra":{marginInlineStart:t.padding}},[`&${e}-block`]:{[`${e}-item-extra`]:{marginInlineStart:"auto"}}}}},zD=()=>({}),VD=An("Suggestion",t=>{const e=ul(t,{});return ZD(e)},zD);function ND(t,e,a,l,n){const[i,r]=we([]),p=(f,S=i.value)=>{let h=o.toValue(t);for(let m=0;m<f-1;m+=1){const g=S[m],A=h.find(b=>b.value===g);if(!A)break;h=A.children||[]}return h},u=f=>f.map((S,h)=>{const m=p(h+1,f).find(g=>g.value===S);return m==null?void 0:m.value}),s=f=>{const S=i.value.length||1,h=p(S),m=h.findIndex(b=>b.value===i.value[S-1]),g=h.length,A=h[(m+f+g)%g];r([...i.value.slice(0,S-1),A.value])},c=()=>{i.value.length>1&&r(i.value.slice(0,i.value.length-1))},d=()=>{const f=p(i.value.length+1);f.length&&r([...i.value,f[0].value])},W=dS(f=>{if(o.toValue(e))switch(console.log("e.key",f),f.key){case"ArrowDown":s(1),f.preventDefault();break;case"ArrowUp":s(-1),f.preventDefault();break;case"ArrowRight":o.toValue(a)?c():d(),f.preventDefault();break;case"ArrowLeft":o.toValue(a)?d():c(),f.preventDefault();break;case"Enter":p(i.value.length+1).length||l(u(i.value)),f.preventDefault();break;case"Escape":n(),f.preventDefault();break}});return o.watch(()=>o.toValue(e),()=>{o.toValue(e)&&r([o.toValue(t)[0].value])},{immediate:!0}),[i,W]}o.mergeDefaults({prefixCls:null,className:null,rootClassName:null,style:null,children:{type:Function},open:{type:Boolean},onOpenChange:{type:Function},items:{type:Function},onSelect:{type:Function},block:{type:Boolean},styles:null,classNames:null},{open:!1});const F2=Symbol("SenderHeaderContext"),SS=o.shallowRef(),TD=t=>{o.provide(F2,t),o.watch(t,()=>{SS.value=o.unref(t),o.triggerRef(SS)},{immediate:!0,deep:!0})},MD=()=>o.inject(F2,o.computed(()=>SS.value||{})),KD=o.defineComponent({props:{value:xl()},setup(t,{slots:e}){return TD(o.computed(()=>t.value)),()=>{var a;return(a=e.default)==null?void 0:a.call(e)}}}),J2=Symbol("ActionButtonContext"),hS=o.shallowRef(),RD=t=>{o.provide(J2,t),o.watch(t,()=>{hS.value=o.unref(t),o.triggerRef(hS)},{immediate:!0,deep:!0})},mS=()=>o.inject(J2,o.computed(()=>hS.value||{})),ED=o.defineComponent({props:{value:xl()},setup(t,{slots:e}){return RD(o.computed(()=>t.value)),()=>{var a;return(a=e.default)==null?void 0:a.call(e)}}}),Ks=o.defineComponent({name:"AXSenderActionButton",__name:"index",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,action:null},{type:"text",disabled:void 0}),setup(t){const e=_e(t,["action","type","disabled","onClick"]);o.toRef(t,"onClick"),o.toRef(t,"disabled");const a=o.useSlots(),l=mS(),n=o.computed(()=>{var p;const u=l.value.disabled,s=(p=l.value)==null?void 0:p[`${t.action}Disabled`];return u??t.disabled??s}),i=o.computed(()=>l.value.prefixCls),r=o.computed(()=>{var p;return(p=l.value)==null?void 0:p[t.action]});return()=>o.createVNode(aa,o.mergeProps({type:t.type},e,{onClick:p=>{n.value||(r.value&&r.value(),t.onClick&&!Array.isArray(t.onClick)&&t.onClick(p))},class:Gt(i.value,{[`${i.value}-disabled`]:n.value})}),{icon:()=>a.default()})}}),PD=o.defineComponent({name:"AXSenderClearButton",__name:"ClearButton",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{disabled:void 0}),setup(t){const e=_e(t,["disabled"]);return()=>o.createVNode(Ks,o.mergeProps({disabled:t.disabled},e,{action:"onClear"}),{default:()=>[o.createVNode(Xf,null,null)]})}}),YD=o.defineComponent({name:"AXSenderStopLoading",__name:"StopLoading",props:{className:null},setup(t){const e=t;return()=>o.createVNode("svg",{color:"currentColor",viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:e.className},[o.createVNode("title",null,[o.createTextVNode("Stop Loading")]),o.createVNode("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"},null),o.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100",opacity:"0.45"},null),o.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100","stroke-dasharray":"600 9999999"},[o.createVNode("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"},null)])])}}),H2=o.defineComponent({name:"AXSenderLoadingButton",__name:"LoadingButton",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{type:"primary",shape:"circle",icon:null,disabled:void 0}),setup(t){const e=_e(t,["type","shape","icon","disabled"]),a=mS(),{token:l}=hn.useToken();return()=>o.createVNode(Ks,o.mergeProps({type:t.type,disabled:t.disabled,shape:t.shape},e,{style:{backgroundColor:"transparent",color:l.value.colorPrimary},class:Gt(`${a.value.prefixCls}-loading-button`),action:"onCancel"}),{default:()=>[o.createVNode(YD,{className:`${a.value.prefixCls}-loading-icon`},null)]})}}),D2=o.defineComponent({name:"AXSenderLoadingButton",__name:"SendButton",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{type:"primary",shape:"circle",disabled:void 0}),setup(t){const e=_e(t,["type","shape","disabled"]);return()=>o.createVNode(Ks,o.mergeProps({type:t.type,shape:t.shape,disabled:t.disabled},e,{action:"onSend"}),{default:()=>[o.createVNode(Pf,null,null)]})}}),pp=1e3,up=4,Rs=140,Es=250,U2=500,Ps=.8,GD=o.defineComponent({name:"AXSenderRecordingIcon",__name:"RecordingIcon",props:{className:null},setup(t){const e=Rs/2;return()=>o.createVNode("svg",{color:"currentColor",viewBox:`0 0 ${pp} ${pp}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:t.className},[o.createVNode("title",null,[o.createTextVNode("Speech Recording")]),Array.from({length:up}).map((a,l)=>{const n=(pp-Rs*up)/(up-1),i=l*(n+Rs),r=pp/2-Es/2,p=pp/2-U2/2;return o.createVNode("rect",{fill:"currentColor",rx:e,ry:e,height:Es,width:Rs,x:i,y:r,key:l},[o.createVNode("animate",{attributeName:"height",values:`${Es}; ${U2}; ${Es}`,keyTimes:"0; 0.5; 1",dur:`${Ps}s`,begin:`${Ps/up*l}s`,repeatCount:"indefinite"},null),o.createVNode("animate",{attributeName:"y",values:`${r}; ${p}; ${r}`,keyTimes:"0; 0.5; 1",dur:`${Ps}s`,begin:`${Ps/up*l}s`,repeatCount:"indefinite"},null)])})])}}),XD=o.defineComponent({name:"AXSenderSpeechButton",__name:"index",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{type:"text",disabled:void 0}),setup(t){const e=_e(t,["type","disabled"]),a=mS(),{token:l}=hn.useToken(),n=o.computed(()=>a.value.speechRecording),i=o.computed(()=>a.value.prefixCls),r=o.computed(()=>{let p;return n.value?p=o.createVNode(GD,{className:`${i.value}-recording-icon`},null):a.value.onSpeechDisabled?p=o.createVNode(Yf,null,null):p=o.createVNode(Gf,null,null),p});return()=>o.createVNode(Ks,o.mergeProps({type:t.type,disabled:t.disabled},e,{style:{display:"flex",justifyContent:"center",alignItems:"center",color:l.value.colorPrimary},action:"onSpeech"}),{default:()=>[r.value]})}}),FD=t=>{const{componentCls:e,calc:a}=t,l=`${e}-header`;return{[e]:{[l]:{borderBottomWidth:t.lineWidth,borderBottomStyle:"solid",borderBottomColor:t.colorBorder,"&-header":{background:t.colorFillAlter,fontSize:t.fontSize,lineHeight:t.lineHeight,paddingBlock:a(t.paddingSM).sub(t.lineWidthBold).equal(),paddingInlineStart:t.padding,paddingInlineEnd:t.paddingXS,display:"flex",[`${l}-title`]:{flex:"auto"}},"&-content":{padding:t.padding},"&-motion":{transition:["height","border"].map(n=>`${n} ${t.motionDurationSlow}`).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}},"&-collapse-transition":{"&-enter-active":{transition:["max-height","padding-top","padding-bottom"].map(n=>`${n} ${t.motionDurationSlow} ${t.motionEaseInOut}`).join(",")},"&-leave-active":{transition:["max-height","padding-top","padding-bottom"].map(n=>`${n} ${t.motionDurationSlow} ${t.motionEaseInOut}`).join(",")}}}}}},JD=t=>{const{componentCls:e,padding:a,paddingSM:l,paddingXS:n,lineWidth:i,lineWidthBold:r,calc:p}=t;return{[e]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${t.boxShadowTertiary}`,transition:`background ${t.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:p(t.borderRadius).mul(2).equal()},borderColor:t.colorBorder,borderWidth:0,borderStyle:"solid","&:after":{content:'""',position:"absolute",inset:0,pointerEvents:"none",transition:`border-color ${t.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:"inherit"},borderStyle:"inherit",borderColor:"inherit",borderWidth:i},"&:focus-within":{boxShadow:`${t.boxShadowSecondary}`,borderColor:t.colorPrimary,"&:after":{borderWidth:r}},"&-disabled":{background:t.colorBgContainerDisabled},[`&${e}-rtl`]:{direction:"rtl"},[`${e}-content`]:{display:"flex",gap:n,width:"100%",paddingBlock:l,paddingInlineStart:a,paddingInlineEnd:l,boxSizing:"border-box",alignItems:"flex-end"},[`${e}-prefix`]:{flex:"none"},[`${e}-input`]:{padding:0,borderRadius:0,flex:"auto",alignSelf:"center",minHeight:"auto"},[`${e}-actions-list`]:{flex:"none",display:"flex","&-presets":{gap:t.paddingXS}},[`${e}-actions-btn`]:{"&-disabled":{opacity:.45},"&-loading-button":{padding:0,border:0},"&-loading-icon":{height:t.controlHeight,width:t.controlHeight,verticalAlign:"top"},"&-recording-icon":{height:"1.2em",width:"1.2em",verticalAlign:"top"}}}}},HD=()=>({}),DD=An("Sender",t=>{const{paddingXS:e,calc:a}=t,l=ul(t,{SenderContentMaxWidth:`calc(100% - ${Ha(a(e).add(32).equal())})`});return[JD(l),FD(l)]},HD);let Ys;!Ys&&typeof window<"u"&&(Ys=window.SpeechRecognition||window.webkitSpeechRecognition);function UD(t,e){const a=t,l=o.computed(()=>{const S=o.toValue(e);return typeof S=="object"?{controlledRecording:S.recording,onControlledRecordingChange:S.onRecordingChange,speechInControlled:typeof S.recording=="boolean"}:{controlledRecording:void 0,onControlledRecordingChange:void 0,speechInControlled:!1}}),n=o.computed(()=>l.value.controlledRecording),i=l.value.onControlledRecordingChange,r=l.value.speechInControlled,p=o.ref(null);o.watchEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let S=null;navigator.permissions.query({name:"microphone"}).then(h=>{p.value=h.state,h.onchange=function(){p.value=this.state},S=h}),o.onWatcherCleanup(()=>{S&&(S.onchange=null)})}});const u=o.computed(()=>Ys&&p.value!=="denied"),s=o.ref(null),[c,d]=G2(!1,{value:n}),W=o.ref(!1),f=()=>{if(u.value&&!s.value){const S=new Ys;S.onstart=()=>{d(!0)},S.onend=()=>{d(!1)},S.onresult=h=>{var m,g,A;if(!W.value){const b=(A=(g=(m=h.results)==null?void 0:m[0])==null?void 0:g[0])==null?void 0:A.transcript;a(b)}W.value=!1},s.value=S}};return{speechPermission:u,triggerSpeech:S=>{S&&!c.value||(W.value=S,r?i==null||i(!c.value):(f(),s.value&&(c.value?(s.value.stop(),i==null||i(!1)):(s.value.start(),i==null||i(!0)))))},recording:c}}function BD(t,e){for(var a=t,l=0;l<e.length;l+=1){if(a==null)return;a=a[e[l]]}return a}const QD=o.defineComponent({name:"AXSender",__name:"Sender",props:o.mergeDefaults({onKeyPress:{type:Function},prefixCls:null,defaultValue:null,value:null,loading:{type:Boolean},placeholder:null,readOnly:{type:Boolean},submitType:{type:[String,Boolean]},disabled:{type:Boolean},onSubmit:{type:Function},onChange:{type:Function},onCancel:null,onKeyDown:{type:Function},onPaste:{type:Function},onPasteFile:{type:Function},components:null,styles:null,rootClassName:null,classNames:null,style:null,className:null,actions:{type:Function},allowSpeech:null,prefix:null,header:null},{styles:()=>({}),classNames:()=>({}),submitType:"enter",disabled:void 0}),emits:["update:value"],setup(t,{expose:e,emit:a}){const l=_e(t,["prefixCls","styles","classNames","className","rootClassName","style","defaultValue","value","placeholder","readOnly","submitType","onSubmit","loading","components","onCancel","onChange","actions","onKeyPress","onKeyDown","disabled","allowSpeech","prefix","header","onPaste","onPasteFile"]);o.toRef(t,"prefixCls");function n(H,pt,K){return BD(H,pt)||K}const i=a,r=o.useSlots(),{direction:p,getPrefixCls:u}=fa(),s=o.computed(()=>u("sender",t.prefixCls)),c=o.ref(null),d=o.ref(null),W=mn("sender"),f=o.computed(()=>`${s.value}-input`),[S,h,m]=DD(s.value),g=o.computed(()=>Gt(s.value,W.value.className,t.className,t.rootClassName,h.value,m,{[`${s.value}-rtl`]:p.value==="rtl",[`${s.value}-disabled`]:t.disabled})),A=o.computed(()=>`${s.value}-actions-btn`),b=o.computed(()=>`${s.value}-actions-list`),v=o.ref(t.value??t.defaultValue??""),y=H=>{v.value=H};o.watch(()=>t.value,()=>{y(t.value)});const I=(H,pt)=>{y(H),i("update:value",H),t.onChange&&t.onChange(H,pt)},{speechPermission:L,triggerSpeech:w,recording:C}=UD(H=>{I(`${v.value} ${H}`)},()=>t.allowSpeech),k=n(t.components,["input"],ze.TextArea),Z=o.computed(()=>bi(l,{attr:!0,aria:!0,data:!0})),E=o.computed(()=>({...Z.value,ref:d})),z=()=>{v.value&&t.onSubmit&&!t.loading&&t.onSubmit(v.value)},Y=()=>{I("")},O=o.ref(!1),M=()=>{O.value=!0},J=()=>{O.value=!1},F=H=>{const pt=H.key==="Enter"&&!O.value;switch(t.submitType){case"enter":pt&&!H.shiftKey&&(H.preventDefault(),z());break;case"shiftEnter":pt&&H.shiftKey&&(H.preventDefault(),z());break}t.onKeyPress&&t.onKeyPress(H)},V=H=>{var pt,K;const T=(pt=H.clipboardData)==null?void 0:pt.files[0];T&&t.onPasteFile&&(t.onPasteFile(T),H.preventDefault()),(K=t.onPaste)==null||K.call(t,H)},G=H=>{var pt,K;H.target!==((pt=c.value)==null?void 0:pt.querySelector(`.${f.value}`))&&H.preventDefault(),(K=d.value)==null||K.focus()},U=o.computed(()=>{let H=o.createVNode(np,{class:`${b.value}-presets`},{default:()=>[t.allowSpeech&&o.createVNode(XD,null,null),t.loading?o.createVNode(H2,null,null):o.createVNode(D2,null,null)]});const pt={components:{SendButton:D2,ClearButton:PD,LoadingButton:H2}};return r.actions?H=r.actions({ori:H,info:pt}):typeof t.actions=="function"?H=t.actions(H,pt):t.actions&&(H=t.actions),H}),D=o.computed(()=>r.header?r.header():t.header),B=o.computed(()=>r.prefix?r.prefix():t.prefix);return e({nativeElement:c.value,focus:H=>{var pt;return(pt=d.value)==null?void 0:pt.focus(H)},blur:()=>{var H;return(H=d.value)==null?void 0:H.blur()}}),()=>S(o.createVNode("div",{ref:c,class:g.value,style:{...W.value.style,...t.style}},[D.value&&o.createVNode(KD,{value:{prefixCls:s.value}},{default:()=>[D.value]}),o.createVNode("div",{class:`${s.value}-content`,onMousedown:G},[B.value&&o.createVNode("div",{class:Gt(`${s.value}-prefix`,W.value.classNames.prefix,t.classNames.prefix),style:{...W.value.styles.prefix,...t.styles.prefix}},[B.value]),o.createVNode(k,o.mergeProps(E.value,{disabled:t.disabled,style:{...W.value.styles.input,...t.styles.input},class:Gt(f.value,W.value.classNames.input,t.classNames.input),autoSize:{maxRows:8},value:v.value,onChange:H=>{I(H.target.value,H),w(!0)},onPressEnter:F,onCompositionstart:M,onCompositionend:J,onKeydown:t.onKeyDown,placeholder:t.placeholder,onPaste:V,bordered:!1,readOnly:t.readOnly}),null),o.createVNode("div",{class:Gt(b.value,W.value.classNames.actions,t.classNames.actions),style:{...W.value.styles.actions,...t.styles.actions}},[o.createVNode(ED,{value:{prefixCls:A.value,onSend:z,onSendDisabled:!v.value,onClear:Y,onClearDisabled:!v.value,onCancel:t.onCancel,onCancelDisabled:!t.loading,onSpeech:()=>w(!1),onSpeechDisabled:!L.value,speechRecording:C.value,disabled:t.disabled}},{default:()=>[U.value]})])])]))}}),$D=o.defineComponent({name:"AXCollapseTransition",__name:"CollapseTransition",props:{prefixCls:null},setup(t){const e=t,a=o.computed(()=>e.prefixCls+"-collapse-transition"),l={beforeEnter(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0},enter(n){n.dataset.oldOverflow=n.style.overflow,n.scrollHeight!==0?(n.style.maxHeight=`${n.scrollHeight}px`,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom):(n.style.maxHeight=`${n.dataset.oldMaxHeight||999}px`,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom),n.style.overflow="hidden"},afterEnter(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow},beforeLeave(n){n.dataset||(n.dataset={}),n.dataset.oldMaxHeight=n.scrollHeight,n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.dataset.oldOverflow=n.style.overflow,n.style.overflow="hidden",n.style.maxHeight=`${n.scrollHeight}px`},leave(n){n.scrollHeight!==0&&(n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0)},afterLeave(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom}};return(n,i)=>(o.openBlock(),o.createBlock(o.Transition,o.mergeProps({name:a.value},o.toHandlers(l)),{default:o.withCtx(()=>[o.renderSlot(n.$slots,"default")]),_:3},16,["name"]))}}),_D=o.defineComponent({name:"AXSenderHeader",inheritAttrs:!1,__name:"SenderHeader",props:o.mergeDefaults({forceRender:{type:Boolean},open:{type:Boolean},onOpenChange:{type:Function},title:null,children:null,className:null,style:null,classNames:null,styles:null,closable:{type:Boolean}},{classNames:()=>({}),styles:()=>({})}),setup(t){o.toRef(t,"classNames");const e=o.useSlots(),a=MD(),l=o.computed(()=>`${a.value.prefixCls}-header`),n=o.useAttrs();return()=>o.createVNode($D,{prefixCls:l.value},{default:()=>{var i;return[t.open&&o.createVNode("div",o.mergeProps(n,{class:Gt(l.value,t.className),style:{...t.style}}),[(t.closable!==!1||t.title)&&o.createVNode("div",{class:Gt(`${l.value}-header`,t.classNames.header),style:{...t.styles.header}},[o.createVNode("div",{class:`${l.value}-title`},[t.title]),t.closable!==!1&&o.createVNode("div",{class:`${l.value}-close`},[o.createVNode(aa,{type:"text",icon:o.createVNode(un,null,null),size:"small",onClick:()=>{var r;(r=t.onOpenChange)==null||r.call(t,!t.open)}},null)])]),e.default&&o.createVNode("div",{class:Gt(`${l.value}-content`,t.classNames.content),style:{...t.styles.content}},[(i=e.default)==null?void 0:i.call(e)])])]}})}});Object.assign(QD,{Header:_D});const B2=Symbol("AttachmentContext"),gS=o.shallowRef(),tU=t=>{o.provide(B2,t),o.watch(t,()=>{gS.value=o.unref(t),o.triggerRef(gS)},{immediate:!0,deep:!0})},Gs=()=>o.inject(B2,o.computed(()=>gS.value||{})),eU=o.defineComponent({inheritAttrs:!1,props:{value:xl()},setup(t,{slots:e}){return tU(o.computed(()=>t.value)),()=>{var a;return(a=e.default)==null?void 0:a.call(e)}}}),aU=o.defineComponent({name:"AXAttachmentsPlaceholderUploader",__name:"PlaceholderUploader",props:o.mergeDefaults({prefixCls:null,placeholder:null,upload:null,className:null,style:null},{placeholder:()=>({})}),setup(t,{expose:e}){const a=`${t.prefixCls}-placeholder`,l=o.computed(()=>t.placeholder||{}),n=o.useTemplateRef("upload-dragger"),i=Gs(),[r,p]=we(!1),u=()=>{p(!0)},s=W=>{W.currentTarget.contains(W.relatedTarget)||p(!1)},c=()=>{p(!1)};e({nativeElement:n});const d=o.computed(()=>o.isVNode(t.placeholder)?t.placeholder:o.createVNode(np,{align:"center",justify:"center",vertical:!0,class:`${a}-inner`},{default:()=>[o.createVNode(Se.Text,{class:`${a}-icon`},{default:()=>[l.value.icon]}),o.createVNode(Se.Title,{class:`${a}-title`,level:5},{default:()=>[l.value.title]}),o.createVNode(Se.Text,{class:`${a}-description`,type:"secondary"},{default:()=>[l.value.description]})]}));return()=>o.createVNode("div",{class:Gt(a,{[`${a}-drag-in`]:r.value,[`${a}-disabled`]:i.value.disabled},t.className),onDragenter:u,onDragleave:s,onDrop:c,"aria-hidden":i.value.disabled,style:t.style},[o.createVNode(jC.Dragger,o.mergeProps({showUploadList:!1},t.upload,{ref:"upload-dragger",style:{padding:0,border:0,background:"transparent"}}),{default:()=>[d.value]})])}}),Q2=o.defineComponent({name:"AXAttachmentsDropArea",__name:"DropArea",props:{prefixCls:null,className:null,getDropContainer:{type:Function},children:null},setup(t){const e=Gs(),[a,l]=we(),[n,i]=we(null);o.watch(()=>t.getDropContainer,()=>{var u;const s=(u=t.getDropContainer)==null?void 0:u.call(t);a.value!==s&&l(s)}),o.watch(()=>!!a.value,()=>{if(a.value){const u=()=>{i(!0)},s=W=>{W.preventDefault()},c=W=>{W.relatedTarget||i(!1)},d=W=>{i(!1),W.preventDefault()};document.addEventListener("dragenter",u),document.addEventListener("dragover",s),document.addEventListener("dragleave",c),document.addEventListener("drop",d),o.onWatcherCleanup(()=>{document.removeEventListener("dragenter",u),document.removeEventListener("dragover",s),document.removeEventListener("dragleave",c),document.removeEventListener("drop",d)})}});const r=o.computed(()=>t.getDropContainer&&a.value&&!e.value.disabled),p=`${t.prefixCls}-drop-area`;return()=>r.value?o.createVNode(o.Teleport,{to:a.value},{default:()=>[o.createVNode("div",{class:Gt(p,t.className,{[`${p}-on-body`]:a.value.tagName==="BODY"}),style:{display:n.value?"block":"none"}},[t.children])]}):null}}),$2=o.defineComponent({name:"AXAttachmentsSilentUploader",__name:"SilentUploader",props:{children:null,upload:null,rootClassName:null},setup(t,{expose:e}){const a=o.useTemplateRef("upload");return e({nativeElement:a}),()=>o.createVNode(jC,o.mergeProps(t.upload,{showUploadList:!1,ref:"upload"}),{default:()=>[t.children]})}}),_2=(t,e)=>{const a=t.__vccOpts||t;for(const[l,n]of e)a[l]=n;return a},lU={},nU={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function oU(t,e){return o.openBlock(),o.createElementBlock("svg",nU,e[0]||(e[0]=[o.createElementVNode("title",null,"audio",-1),o.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[o.createElementVNode("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",fill:"currentColor"})],-1)]))}const iU=_2(lU,[["render",oU]]),rU={},pU={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function uU(t,e){return o.openBlock(),o.createElementBlock("svg",pU,e[0]||(e[0]=[o.createElementVNode("title",null,"video",-1),o.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[o.createElementVNode("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",fill:"currentColor"})],-1)]))}const sU=_2(rU,[["render",uU]]),cU=t=>t.indexOf("image/")===0,Xs=200;function dU(t){return new Promise(e=>{if(!t||!t.type||!cU(t.type)){e("");return}const a=new Image;if(a.onload=()=>{const{width:l,height:n}=a,i=l/n,r=i>1?Xs:Xs*i,p=i>1?Xs/i:Xs,u=document.createElement("canvas");u.width=r,u.height=p,u.style.cssText=`position: fixed; left: 0; top: 0; width: ${r}px; height: ${p}px; z-index: 9999; display: none;`,document.body.appendChild(u),u.getContext("2d").drawImage(a,0,0,r,p);const s=u.toDataURL();document.body.removeChild(u),window.URL.revokeObjectURL(a.src),e(s)},a.crossOrigin="anonymous",t.type.startsWith("image/svg+xml")){const l=new FileReader;l.onload=()=>{l.result&&typeof l.result=="string"&&(a.src=l.result)},l.readAsDataURL(t)}else if(t.type.startsWith("image/gif")){const l=new FileReader;l.onload=()=>{l.result&&e(l.result)},l.readAsDataURL(t)}else a.src=window.URL.createObjectURL(t)})}const Ve=Math.round;function AS(t,e){const a=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],l=a.map(n=>parseFloat(n));for(let n=0;n<3;n+=1)l[n]=e(l[n]||0,a[n]||"",n);return a[3]?l[3]=a[3].includes("%")?l[3]/100:l[3]:l[3]=1,l}const tx=(t,e,a)=>a===0?t:t/100;function sp(t,e){const a=e||255;return t>a?a:t<0?0:t}class LS{constructor(e){Sa(this,"isValid",!0),Sa(this,"r",0),Sa(this,"g",0),Sa(this,"b",0),Sa(this,"a",1),Sa(this,"_h",void 0),Sa(this,"_s",void 0),Sa(this,"_l",void 0),Sa(this,"_v",void 0),Sa(this,"_max",void 0),Sa(this,"_min",void 0),Sa(this,"_brightness",void 0);function a(l){return l[0]in e&&l[1]in e&&l[2]in e}if(e)if(typeof e=="string"){let l=function(i){return n.startsWith(i)};const n=e.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):l("rgb")?this.fromRgbString(n):l("hsl")?this.fromHslString(n):(l("hsv")||l("hsb"))&&this.fromHsvString(n)}else if(e instanceof LS)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(a("rgb"))this.r=sp(e.r),this.g=sp(e.g),this.b=sp(e.b),this.a=typeof e.a=="number"?sp(e.a,1):1;else if(a("hsl"))this.fromHsl(e);else if(a("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const a=this.toHsv();return a.h=e,this._c(a)}getLuminance(){function e(i){const r=i/255;return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}const a=e(this.r),l=e(this.g),n=e(this.b);return .2126*a+.7152*l+.0722*n}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=Ve(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const a=this.getHue(),l=this.getSaturation();let n=this.getLightness()-e/100;return n<0&&(n=0),this._c({h:a,s:l,l:n,a:this.a})}lighten(e=10){const a=this.getHue(),l=this.getSaturation();let n=this.getLightness()+e/100;return n>1&&(n=1),this._c({h:a,s:l,l:n,a:this.a})}mix(e,a=50){const l=this._c(e),n=a/100,i=p=>(l[p]-this[p])*n+this[p],r={r:Ve(i("r")),g:Ve(i("g")),b:Ve(i("b")),a:Ve(i("a")*100)/100};return this._c(r)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const a=this._c(e),l=this.a+a.a*(1-this.a),n=i=>Ve((this[i]*this.a+a[i]*a.a*(1-this.a))/l);return this._c({r:n("r"),g:n("g"),b:n("b"),a:l})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const a=(this.r||0).toString(16);e+=a.length===2?a:"0"+a;const l=(this.g||0).toString(16);e+=l.length===2?l:"0"+l;const n=(this.b||0).toString(16);if(e+=n.length===2?n:"0"+n,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=Ve(this.a*255).toString(16);e+=i.length===2?i:"0"+i}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),a=Ve(this.getSaturation()*100),l=Ve(this.getLightness()*100);return this.a!==1?`hsla(${e},${a}%,${l}%,${this.a})`:`hsl(${e},${a}%,${l}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,a,l){const n=this.clone();return n[e]=sp(a,l),n}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const a=e.replace("#","");function l(n,i){return parseInt(a[n]+a[i||n],16)}a.length<6?(this.r=l(0),this.g=l(1),this.b=l(2),this.a=a[3]?l(3)/255:1):(this.r=l(0,1),this.g=l(2,3),this.b=l(4,5),this.a=a[6]?l(6,7)/255:1)}fromHsl({h:e,s:a,l,a:n}){if(this._h=e%360,this._s=a,this._l=l,this.a=typeof n=="number"?n:1,a<=0){const W=Ve(l*255);this.r=W,this.g=W,this.b=W}let i=0,r=0,p=0;const u=e/60,s=(1-Math.abs(2*l-1))*a,c=s*(1-Math.abs(u%2-1));u>=0&&u<1?(i=s,r=c):u>=1&&u<2?(i=c,r=s):u>=2&&u<3?(r=s,p=c):u>=3&&u<4?(r=c,p=s):u>=4&&u<5?(i=c,p=s):u>=5&&u<6&&(i=s,p=c);const d=l-s/2;this.r=Ve((i+d)*255),this.g=Ve((r+d)*255),this.b=Ve((p+d)*255)}fromHsv({h:e,s:a,v:l,a:n}){this._h=e%360,this._s=a,this._v=l,this.a=typeof n=="number"?n:1;const i=Ve(l*255);if(this.r=i,this.g=i,this.b=i,a<=0)return;const r=e/60,p=Math.floor(r),u=r-p,s=Ve(l*(1-a)*255),c=Ve(l*(1-a*u)*255),d=Ve(l*(1-a*(1-u))*255);switch(p){case 0:this.g=d,this.b=s;break;case 1:this.r=c,this.b=s;break;case 2:this.r=s,this.b=d;break;case 3:this.r=s,this.g=c;break;case 4:this.r=d,this.g=s;break;case 5:default:this.g=s,this.b=c;break}}fromHsvString(e){const a=AS(e,tx);this.fromHsv({h:a[0],s:a[1],v:a[2],a:a[3]})}fromHslString(e){const a=AS(e,tx);this.fromHsl({h:a[0],s:a[1],l:a[2],a:a[3]})}fromRgbString(e){const a=AS(e,(l,n)=>n.includes("%")?Ve(l/100*255):l);this.r=a[0],this.g=a[1],this.b=a[2],this.a=a[3]}}const WU=t=>{const{componentCls:e,calc:a}=t,l=`${e}-list-card`,n=a(t.fontSize).mul(t.lineHeight).mul(2).add(t.paddingSM).add(t.paddingSM).equal();return{[l]:{borderRadius:t.borderRadius,position:"relative",background:t.colorFillContent,borderWidth:t.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${l}-name,${l}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${l}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${l}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:a(t.paddingSM).sub(t.lineWidth).equal(),paddingInlineStart:a(t.padding).add(t.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:t.paddingXS,alignItems:"flex-start",width:236,[`${l}-icon`]:{fontSize:a(t.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:a(t.paddingXXS).mul(1.5).equal(),flex:"none"},[`${l}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${l}-desc`]:{color:t.colorTextTertiary}},"&-type-preview":{width:n,height:n,lineHeight:1,[`&:not(${l}-status-error)`]:{border:0},img:{width:"100%",height:"100%",verticalAlign:"top",objectFit:"cover",borderRadius:"inherit"},[`${l}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${t.opacityLoading})`,borderRadius:"inherit"},[`&${l}-status-error`]:{[`img, ${l}-img-mask`]:{borderRadius:a(t.borderRadius).sub(t.lineWidth).equal()},[`${l}-desc`]:{paddingInline:t.paddingXXS}},[`${l}-progress`]:{}},[`${l}-remove`]:{position:"absolute",top:0,insetInlineEnd:0,border:0,padding:t.paddingXXS,background:"transparent",lineHeight:1,transform:"translate(50%, -50%)",fontSize:t.fontSize,cursor:"pointer",opacity:t.opacityLoading,display:"none","&:dir(rtl)":{transform:"translate(-50%, -50%)"},"&:hover":{opacity:1},"&:active":{opacity:t.opacityLoading}},[`&:hover ${l}-remove`]:{display:"block"},"&-status-error":{borderColor:t.colorError,[`${l}-desc`]:{color:t.colorError}},"&-motion":{overflow:"hidden",transition:["opacity","width","margin","padding"].map(i=>`${i} ${t.motionDurationSlow}`).join(","),[`${l}-remove`]:{display:"none !important"},"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:a(t.paddingSM).mul(-1).equal()}}}}},bS={"&, *":{boxSizing:"border-box"}},fU=t=>{const{componentCls:e,calc:a,antCls:l}=t,n=`${e}-drop-area`,i=`${e}-placeholder`;return{[n]:{position:"absolute",inset:0,zIndex:t.zIndexPopupBase,...bS,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${i}-inner`]:{display:"none"}},[i]:{padding:0}},"&":{[i]:{height:"100%",borderRadius:t.borderRadius,borderWidth:t.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:t.padding,position:"relative",backdropFilter:"blur(10px)",...bS,[`${l}-upload-wrapper ${l}-upload${l}-upload-btn`]:{padding:0},[`&${i}-drag-in`]:{borderColor:t.colorPrimaryHover},[`&${i}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${i}-inner`]:{gap:a(t.paddingXXS).div(2).equal()},[`${i}-icon`]:{fontSize:t.fontSizeHeading2,lineHeight:1},[`${i}-title${i}-title`]:{margin:0,fontSize:t.fontSize,lineHeight:t.lineHeight},[`${i}-description`]:{}}}}},SU=t=>{const{componentCls:e,calc:a}=t,l=`${e}-list`,n=a(t.fontSize).mul(t.lineHeight).mul(2).add(t.paddingSM).add(t.paddingSM).equal();return{[e]:{position:"relative",width:"100%",...bS,[l]:{display:"flex",flexWrap:"wrap",gap:t.paddingSM,fontSize:t.fontSize,lineHeight:t.lineHeight,color:t.colorText,paddingBlock:t.paddingSM,paddingInline:t.padding,width:"100%",background:t.colorBgContainer,scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},"&-overflow-scrollX, &-overflow-scrollY":{"&:before, &:after":{content:'""',position:"absolute",opacity:0,transition:`opacity ${t.motionDurationSlow}`,zIndex:1}},"&-overflow-ping-start:before":{opacity:1},"&-overflow-ping-end:after":{opacity:1},"&-overflow-scrollX":{overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap","&:before, &:after":{insetBlock:0,width:8},"&:before":{insetInlineStart:0,background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetInlineEnd:0,background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:dir(rtl)":{"&:before":{background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"}}},"&-overflow-scrollY":{overflowX:"hidden",overflowY:"auto",maxHeight:a(n).mul(3).equal(),"&:before, &:after":{insetInline:0,height:8},"&:before":{insetBlockStart:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetBlockEnd:0,background:"linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"}},"&-upload-btn":{width:n,height:n,fontSize:t.fontSizeHeading2,color:"#999"},"&-prev-btn, &-next-btn":{position:"absolute",top:"50%",transform:"translateY(-50%)",boxShadow:t.boxShadowTertiary,opacity:0,pointerEvents:"none"},"&-prev-btn":{left:{_skip_check_:!0,value:t.padding}},"&-next-btn":{right:{_skip_check_:!0,value:t.padding}},"&:dir(ltr)":{[`&${l}-overflow-ping-start ${l}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${l}-overflow-ping-end ${l}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${l}-overflow-ping-end ${l}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${l}-overflow-ping-start ${l}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},hU=t=>{const{colorBgContainer:e}=t;return{colorBgPlaceholderHover:new LS(e).setA(.85).toRgbString()}},ex=An("Attachments",t=>{const e=ul(t,{});return[fU(e),SU(e),WU(e)]},hU),yS=" ",vS="#8c8c8c",ax=o.defineComponent({name:"AXAttachmentsFileListCard",__name:"FileListCard",props:{prefixCls:null,item:null,onRemove:{type:Function},className:null,style:null},setup(t,{expose:e}){o.toRef(t,"prefixCls");const a=["png","jpg","jpeg","gif","bmp","webp","svg"],l=[{icon:o.createVNode(Ff,null,null),color:"#22b35e",ext:["xlsx","xls"]},{icon:o.createVNode(Jf,null,null),color:vS,ext:a},{icon:o.createVNode(Hf,null,null),color:vS,ext:["md","mdx"]},{icon:o.createVNode(Df,null,null),color:"#ff4d4f",ext:["pdf"]},{icon:o.createVNode(Uf,null,null),color:"#ff6e31",ext:["ppt","pptx"]},{icon:o.createVNode(Qf,null,null),color:"#1677ff",ext:["doc","docx"]},{icon:o.createVNode($f,null,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:o.createVNode(sU,null,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:o.createVNode(iU,null,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function n(z,Y){return Y.some(O=>z.toLowerCase()===`.${O}`)}function i(z){let Y=z;const O=["B","KB","MB","GB","TB","PB","EB"];let M=0;for(;Y>=1024&&M<O.length-1;)Y/=1024,M++;return`${Y.toFixed(0)} ${O[M]}`}const r=Gs(),p=o.computed(()=>r.value.disabled),u=o.computed(()=>t.item.name),s=o.computed(()=>t.item.size),c=o.computed(()=>t.item.percent),d=o.computed(()=>t.item.status||"done"),W=o.computed(()=>t.item.description),{getPrefixCls:f}=fa(),S=o.computed(()=>f("attachment",t.prefixCls)),h=`${S.value}-list-card`,[m,g,A]=ex(S),b=o.useTemplateRef("file-list-card-container"),v=o.computed(()=>{const z=u.value||"",Y=z.match(/^(.*)\.[^.]+$/);return{namePrefix:Y?Y[1]:z,nameSuffix:Y?z.slice(Y[1].length):""}}),y=o.computed(()=>n(v.value.nameSuffix,a)),I=o.computed(()=>W.value?W.value:d.value==="uploading"?`${c.value||0}%`:d.value==="error"?t.item.response||yS:s.value?i(s.value):yS),L=o.computed(()=>{for(const{ext:z,icon:Y,color:O}of l)if(n(v.value.nameSuffix,z))return{icon:Y,iconColor:O};return{icon:o.createVNode(Bf,{key:"defaultIcon"},null),iconColor:vS}}),[w,C]=we();o.watch(()=>t.item.originFileObj,()=>{if(t.item.originFileObj){let z=!0;dU(t.item.originFileObj).then(Y=>{z&&C(Y)}),o.onWatcherCleanup(()=>{z=!1})}C(void 0)},{immediate:!0});const k=o.computed(()=>t.item.thumbUrl||t.item.url||w.value),Z=o.computed(()=>y.value&&(t.item.originFileObj||k.value)),E=o.computed(()=>Z.value?o.createVNode(o.Fragment,null,[k.value&&o.createVNode("img",{alt:"preview",src:k.value},null),d.value!=="done"&&o.createVNode("div",{class:`${h}-img-mask`},[d.value==="uploading"&&c.value!==void 0&&o.createVNode(uC,{percent:c.value,prefixCls:h},null),d.value==="error"&&o.createVNode("div",{class:`${h}-desc`},[o.createVNode("div",{class:`${h}-ellipsis-prefix`},[I.value])])])]):o.createVNode(o.Fragment,null,[o.createVNode("div",{class:`${h}-icon`,style:{color:L.value.iconColor}},[L.value.icon]),o.createVNode("div",{class:`${h}-content`},[o.createVNode("div",{class:`${h}-name`},[o.createVNode("div",{class:`${h}-ellipsis-prefix`},[v.value.namePrefix??yS]),o.createVNode("div",{class:`${h}-ellipsis-suffix`},[v.value.nameSuffix])]),o.createVNode("div",{class:`${h}-desc`},[o.createVNode("div",{class:`${h}-ellipsis-prefix`},[I.value])])])]));return e({nativeElement:b}),()=>m(o.createVNode("div",{class:Gt(h,{[`${h}-status-${d.value}`]:d.value,[`${h}-type-preview`]:Z.value,[`${h}-type-overview`]:!Z.value},t.className,g.value,A),style:t.style,ref:"file-list-card-container"},[E.value,!p.value&&t.onRemove&&o.createVNode("button",{type:"button",class:`${h}-remove`,onClick:()=>{t.onRemove(t.item)}},[o.createVNode(Ja,null,null)])]))}}),lx=1,mU=o.defineComponent({name:"AXAttachmentsFileList",__name:"FileList",props:{prefixCls:null,items:null,onRemove:{type:Function},overflow:null,upload:null,listClassName:null,listStyle:null,itemClassName:null,itemStyle:null},setup(t){const e=o.computed(()=>`${t.prefixCls}-list`),a=o.useTemplateRef("file-list-container"),[l,n]=we(!1),i=Gs();o.watchEffect(()=>{n(!0),o.onWatcherCleanup(()=>{n(!1)})});const[r,p]=we(!1),[u,s]=we(!1),c=()=>{const S=a.value;S&&(t.overflow==="scrollX"?(p(Math.abs(S.scrollLeft)>=lx),s(S.scrollWidth-S.clientWidth-Math.abs(S.scrollLeft)>=lx)):t.overflow==="scrollY"&&(p(S.scrollTop!==0),s(S.scrollHeight-S.clientHeight!==S.scrollTop)))};o.watch(()=>t.overflow,()=>{c()},{immediate:!0});const d=S=>{const h=a.value;h&&h.scrollTo({left:h.scrollLeft+S*h.clientWidth,behavior:"smooth"})},W=()=>{d(-1)},f=()=>{d(1)};return()=>o.createVNode("div",{class:Gt(e.value,{[`${e.value}-overflow-${t.overflow}`]:t.overflow,[`${e.value}-overflow-ping-start`]:r.value,[`${e.value}-overflow-ping-end`]:u.value},t.listClassName),ref:"file-list-container",onScroll:c,style:t.listStyle},[t.items.map(S=>o.createVNode(ax,{key:S.uid,prefixCls:t.prefixCls,item:S,onRemove:t.onRemove,className:Gt(t.itemClassName),style:{...t.itemStyle}},null)),!i.value.disabled&&o.createVNode($2,{upload:t.upload,children:o.createVNode(aa,{class:`${e.value}-upload-btn`,type:"dashed"},{default:()=>[o.createVNode(uf,{class:`${e.value}-upload-btn-icon`},null)]})},null),t.overflow==="scrollX"&&o.createVNode(o.Fragment,null,[o.createVNode(aa,{size:"small",shape:"circle",class:`${e.value}-prev-btn`,icon:o.createVNode(Hr,null,null),onClick:W},null),o.createVNode(aa,{size:"small",shape:"circle",class:`${e.value}-next-btn`,icon:o.createVNode(io,null,null),onClick:f},null)])])}});function gU(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!o.isVNode(t)}const AU=o.defineComponent({name:"AXAttachments",__name:"Attachments",props:o.mergeDefaults({capture:null,type:null,name:null,defaultFileList:null,action:null,directory:null,data:null,method:null,headers:null,showUploadList:null,multiple:null,accept:null,beforeUpload:null,onChange:{type:Function},"onUpdate:fileList":null,onDrop:null,listType:null,onPreview:null,onDownload:null,onReject:null,onRemove:null,remove:null,supportServerRender:null,disabled:{type:Boolean},prefixCls:null,customRequest:null,withCredentials:null,openFileDialogOnClick:null,locale:null,id:null,previewFile:null,transformFile:null,iconRender:null,isImageUrl:null,progress:null,itemRender:null,maxCount:null,height:null,removeIcon:null,downloadIcon:null,previewIcon:null,rootClassName:null,rootStyle:null,style:null,className:null,classNames:null,styles:null,children:null,placeholder:{type:Function},getDropContainer:{type:Function},items:null,overflow:null},{items:()=>[],classNames:()=>({}),styles:()=>({})}),setup(t,{expose:e}){const a=_e(t,["prefixCls","rootClassName","rootStyle","className","style","items","children","getDropContainer","placeholder","onChange","overflow","disabled","classNames","styles"]);o.toRef(t,"prefixCls");const l=o.useSlots(),{getPrefixCls:n,direction:i}=fa(),r=n("attachment",t.prefixCls),p=mn("attachments"),u=o.computed(()=>p.value.classNames),s=o.computed(()=>p.value.styles),c=o.useTemplateRef("attachments-container"),d=o.useTemplateRef("attachments-upload"),[W,f,S]=ex(r),h=o.computed(()=>Gt(f.value,S)),[m,g]=we(t.items);o.watch(()=>t.items,()=>{g(t.items)});const A=L=>{var w;g(L.fileList),(w=t.onChange)==null||w.call(t,L)},b=o.computed(()=>({...a,fileList:m.value,onChange:A})),v=L=>{const w=m.value.filter(C=>C.uid!==L.uid);A({file:L,fileList:w})},y=(L,w,C)=>{const k=l.placeholder?l.placeholder({type:L}):typeof t.placeholder=="function"?t.placeholder(L):t.placeholder;return o.createVNode(aU,{placeholder:k,upload:b.value,prefixCls:r,className:Gt(u.value.placeholder,t.classNames.placeholder),style:{...s.value.placeholder,...t.styles.placeholder,...w==null?void 0:w.style}},null)},I=o.computed(()=>m.value.length>0);return e({nativeElement:c.value,upload:L=>{var w,C;const k=(C=(w=d.value)==null?void 0:w.nativeElement)==null?void 0:C.querySelector('input[type="file"]');if(k){const Z=new DataTransfer;Z.items.add(L),k.files=Z.files,k.dispatchEvent(new Event("change",{bubbles:!0}))}}}),()=>{let L;return W(o.createVNode(eU,{value:{disabled:t.disabled}},{default:()=>[t.children?o.createVNode(o.Fragment,null,[o.createVNode($2,{upload:b.value,rootClassName:t.rootClassName,ref:"attachments-upload",children:t.children},null),o.createVNode(Q2,{getDropContainer:t.getDropContainer,prefixCls:r,className:Gt(h.value,t.rootClassName),children:y("drop")},null)]):o.createVNode("div",{class:Gt(r,h.value,{[`${r}-rtl`]:i.value==="rtl"},t.className,t.rootClassName),style:{...t.rootStyle,...t.style},dir:i.value||"ltr",ref:"attachments-container"},[o.createVNode(mU,{prefixCls:r,items:m.value,onRemove:v,overflow:t.overflow,upload:b.value,listClassName:Gt(u.value.list,t.classNames.list),listStyle:{...s.value.list,...t.styles.list,...!I.value&&{display:"none"}},itemClassName:Gt(u.value.item,t.classNames.item),itemStyle:{...s.value.item,...t.styles.item}},null),y("inline",I.value?{style:{display:"none"}}:{},d.value),o.createVNode(Q2,{getDropContainer:t.getDropContainer||(()=>c.value),prefixCls:r,className:h.value},gU(L=y("drop"))?L:{default:()=>[L]})])]}))}}});Object.assign(AU,{FileCard:ax});const LU=(t,e,a)=>{const l=o.computed(()=>{const p=o.toValue(t);let u={expandedKeys:[],onExpand:()=>{}};return p?(typeof p=="object"&&(u={...u,...p}),{enableCollapse:!0,customizeExpandedKeys:u.expandedKeys,customizeOnExpand:u.onExpand}):{enableCollapse:!1,customizeExpandedKeys:u.expandedKeys,customizeOnExpand:u.onExpand}}),[n,i]=we(l.value.customizeExpandedKeys),r=p=>{var u,s;if(!l.value.enableCollapse)return;const c=n.value.includes(p)?n.value.filter(d=>d!==p):[...n.value,p];(s=(u=l.value).customizeOnExpand)==null||s.call(u,c),i(c)};return[o.computed(()=>l.value.enableCollapse),n,r]};var Fs=(t=>(t.PENDING="pending",t.SUCCESS="success",t.ERROR="error",t))(Fs||{});const bU=t=>{const{componentCls:e}=t,a=`${e}-item`,l={[Fs.PENDING]:t.colorPrimaryText,[Fs.SUCCESS]:t.colorSuccessText,[Fs.ERROR]:t.colorErrorText},n=Object.keys(l);return n.reduce((i,r)=>{const p=l[r];return n.forEach(u=>{const s=`& ${a}-${r}-${u}`,c=r===u?{}:{backgroundColor:"none !important",backgroundImage:`linear-gradient(${p}, ${l[u]})`};i[s]={[`& ${a}-icon, & > *::before`]:{backgroundColor:`${p} !important`},"& > :last-child::before":c}}),i},{})},yU=t=>{const{calc:e,componentCls:a}=t,l=`${a}-item`,n={content:'""',width:e(t.lineWidth).mul(2).equal(),display:"block",position:"absolute",insetInlineEnd:"none",backgroundColor:t.colorTextPlaceholder};return{"& > :last-child > :last-child":{"&::before":{display:"none !important"},[`&${l}-footer`]:{"&::before":{display:"block !important",bottom:0}}},[`& > ${l}`]:{[`& ${l}-header, & ${l}-content, & ${l}-footer`]:{position:"relative","&::before":{bottom:e(t.itemGap).mul(-1).equal()}},[`& ${l}-header, & ${l}-content`]:{marginInlineStart:e(t.itemSize).mul(-1).equal(),"&::before":{...n,insetInlineStart:e(t.itemSize).div(2).sub(t.lineWidth).equal()}},[`& ${l}-header::before`]:{top:t.itemSize,bottom:e(t.itemGap).mul(-2).equal()},[`& ${l}-content::before`]:{top:"100%"},[`& ${l}-footer::before`]:{...n,top:0,insetInlineStart:e(t.itemSize).div(-2).sub(t.lineWidth).equal()}}}},vU=t=>{const{componentCls:e}=t,a=`${e}-item`;return{[a]:{display:"flex",flexDirection:"column",[`& ${a}-collapsible`]:{cursor:"pointer"},[`& ${a}-header`]:{display:"flex",marginBottom:t.itemGap,gap:t.itemGap,alignItems:"flex-start",[`& ${a}-icon`]:{height:t.itemSize,width:t.itemSize,fontSize:t.itemFontSize,display:"flex",justifyContent:"center",alignItems:"center"},[`& ${a}-extra`]:{height:t.itemSize,maxHeight:t.itemSize},[`& ${a}-header-box`]:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",[`& ${a}-title`]:{height:t.itemSize,lineHeight:`${Ha(t.itemSize)}`,maxHeight:t.itemSize,fontSize:t.itemFontSize,[`& ${a}-collapse-icon`]:{marginInlineEnd:t.marginXS}},[`& ${a}-desc`]:{fontSize:t.itemFontSize}}},[`& ${a}-content`]:{[`& ${a}-content-hidden`]:{display:"none"},[`& ${a}-content-box`]:{padding:t.itemGap,display:"inline-block",maxWidth:`calc(100% - ${t.itemSize})`,borderRadius:t.borderRadiusLG,backgroundColor:t.colorBgContainer,border:`${Ha(t.lineWidth)} ${t.lineType} ${t.colorBorderSecondary}`}},[`& ${a}-footer`]:{marginTop:t.itemGap,display:"inline-flex"}}}},IS=(t,e="middle")=>{const{componentCls:a}=t,l={large:{itemSize:t.itemSizeLG,itemGap:t.itemGapLG,itemFontSize:t.itemFontSizeLG},middle:{itemSize:t.itemSize,itemGap:t.itemGap,itemFontSize:t.itemFontSize},small:{itemSize:t.itemSizeSM,itemGap:t.itemGapSM,itemFontSize:t.itemFontSizeSM}}[e];return{[`&${a}-${e}`]:{paddingInlineStart:l.itemSize,gap:l.itemGap,...vU({...t,...l}),...yU({...t,...l})}}},IU=t=>{const{componentCls:e}=t;return{[e]:{display:"flex",flexDirection:"column",...bU(t),...IS(t),...IS(t,"large"),...IS(t,"small"),[`&${e}-rtl`]:{direction:"rtl"}}}},CU=An("ThoughtChain",t=>{const e=ul(t,{itemFontSizeSM:t.fontSizeSM,itemSizeSM:t.calc(t.controlHeightXS).add(t.controlHeightSM).div(2).equal(),itemGapSM:t.marginSM,itemFontSize:t.fontSize,itemSize:t.calc(t.controlHeightSM).add(t.controlHeight).div(2).equal(),itemGap:t.margin,itemFontSizeLG:t.fontSizeLG,itemSizeLG:t.calc(t.controlHeight).add(t.controlHeightLG).div(2).equal(),itemGapLG:t.marginLG});return[IU(e)]}),nx=Symbol("ThoughtChainNodeContext"),CS=o.shallowRef(),xU=t=>{o.provide(nx,t),o.watch(t,()=>{CS.value=o.unref(t),o.triggerRef(CS)},{immediate:!0,deep:!0})},wU=()=>o.inject(nx,o.computed(()=>CS.value||{})),OU=o.defineComponent({props:{value:xl()},setup(t,{slots:e}){return xU(o.computed(()=>t.value)),()=>{var a;return(a=e.default)==null?void 0:a.call(e)}}}),kU=o.defineComponent({name:"AXThoughtChainNode",__name:"item",props:o.mergeDefaults({info:null,nextStatus:null,onClick:{type:Function}},{info:()=>({})}),setup(t){const e=_e(t,["info","nextStatus","onClick"]),a=o.computed(()=>bi(e,{attr:!0,aria:!0,data:!0})),l=wU(),n=o.computed(()=>l.value.prefixCls),i=o.computed(()=>l.value.enableCollapse),r=o.computed(()=>l.value.expandedKeys),p=o.computed(()=>l.value.direction),u=o.computed(()=>l.value.classNames),s=o.computed(()=>l.value.styles),c=o.useId(),d=o.computed(()=>t.info.key??c),W=o.computed(()=>t.info.icon),f=o.computed(()=>t.info.title),S=o.computed(()=>t.info.extra),h=o.computed(()=>t.info.content),m=o.computed(()=>t.info.footer),g=o.computed(()=>t.info.status),A=o.computed(()=>t.info.description),b=o.computed(()=>`${n.value}-item`),v=()=>{var L;return(L=t.onClick)==null?void 0:L.call(t,d.value)},y=o.computed(()=>{var L;return(L=r.value)==null?void 0:L.includes(d.value)}),I=o.computed(()=>i.value?y.value:!0);return()=>o.createVNode("div",o.mergeProps(a.value,{class:Gt(b.value,{[`${b.value}-${g.value}${t.nextStatus?`-${t.nextStatus}`:""}`]:g.value},e.class),style:e.style}),[o.createVNode("div",{class:Gt(`${b.value}-header`,u.value.itemHeader),style:s.value.itemHeader,onClick:v},[o.createVNode(oo,{icon:W.value,class:`${b.value}-icon`},null),o.createVNode("div",{class:Gt(`${b.value}-header-box`,{[`${b.value}-collapsible`]:i.value&&h.value})},[o.createVNode(Se.Text,{strong:!0,ellipsis:{tooltip:{placement:p.value==="rtl"?"topRight":"topLeft",title:f.value}},class:`${b.value}-title`},{default:()=>[i.value&&h.value&&(p.value==="rtl"?o.createVNode(Hr,{class:`${b.value}-collapse-icon`,rotate:y.value?-90:0},null):o.createVNode(io,{class:`${b.value}-collapse-icon`,rotate:y.value?90:0},null)),f.value]}),A.value&&o.createVNode(Se.Text,{class:`${b.value}-desc`,ellipsis:{tooltip:{placement:p.value==="rtl"?"topRight":"topLeft",title:A.value}},type:"secondary"},{default:()=>[A.value]})]),S.value&&o.createVNode("div",{class:`${b.value}-extra`},[S.value])]),h.value&&o.withDirectives(o.createVNode("div",{class:Gt(`${b.value}-content`)},[o.createVNode("div",{class:Gt(`${b.value}-content-box`,u.value.itemContent),style:s.value.itemContent},[h.value])]),[[o.vShow,I.value]]),m.value&&o.createVNode("div",{class:Gt(`${b.value}-footer`,u.value.itemFooter),style:s.value.itemFooter},[m.value])])}});o.mergeDefaults({items:null,collapsible:{type:Boolean},size:null,styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({}),size:"middle"});function cp(t){"@babel/helpers - typeof";return cp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cp(t)}function jU(t,e){if(cp(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var l=a.call(t,e||"default");if(cp(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function qU(t){var e=jU(t,"string");return cp(e)=="symbol"?e:e+""}function ZU(t,e,a){return(e=qU(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function ox(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);e&&(l=l.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,l)}return a}function lt(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?ox(Object(a),!0).forEach(function(l){ZU(t,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ox(Object(a)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(a,l))})}return t}function x(){return x=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var l in a)({}).hasOwnProperty.call(a,l)&&(t[l]=a[l])}return t},x.apply(null,arguments)}const zU=t=>typeof t=="function",VU=Array.isArray,NU=t=>typeof t=="string",TU=t=>t!==null&&typeof t=="object",MU=/^on[^a-z]/,KU=t=>MU.test(t),ix=t=>{const e=Object.create(null);return a=>e[a]||(e[a]=t(a))},RU=/-(\w)/g,dp=ix(t=>t.replace(RU,(e,a)=>a?a.toUpperCase():"")),EU=/\B([A-Z])/g,PU=ix(t=>t.replace(EU,"-$1").toLowerCase()),YU=Object.prototype.hasOwnProperty,rx=(t,e)=>YU.call(t,e);function GU(t,e,a,l){const n=t[a];if(n!=null){const i=rx(n,"default");if(i&&l===void 0){const r=n.default;l=n.type!==Function&&zU(r)?r():r}n.type===Boolean&&(!rx(e,a)&&!i?l=!1:l===""&&(l=!0))}return l}function px(t){return typeof t=="number"?`${t}px`:t}function xt(){const t=[];for(let e=0;e<arguments.length;e++){const a=e<0||arguments.length<=e?void 0:arguments[e];if(a){if(NU(a))t.push(a);else if(VU(a))for(let l=0;l<a.length;l++){const n=xt(a[l]);n&&t.push(n)}else if(TU(a))for(const l in a)a[l]&&t.push(l)}}return t.join(" ")}var ux=function(){if(typeof Map<"u")return Map;function t(e,a){var l=-1;return e.some(function(n,i){return n[0]===a?(l=i,!0):!1}),l}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(a){var l=t(this.__entries__,a),n=this.__entries__[l];return n&&n[1]},e.prototype.set=function(a,l){var n=t(this.__entries__,a);~n?this.__entries__[n][1]=l:this.__entries__.push([a,l])},e.prototype.delete=function(a){var l=this.__entries__,n=t(l,a);~n&&l.splice(n,1)},e.prototype.has=function(a){return!!~t(this.__entries__,a)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(a,l){l===void 0&&(l=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];a.call(l,r[1],r[0])}},e}()}(),xS=typeof window<"u"&&typeof document<"u"&&window.document===document,Js=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),XU=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Js):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),FU=2;function JU(t,e){var a=!1,l=!1,n=0;function i(){a&&(a=!1,t()),l&&p()}function r(){XU(i)}function p(){var u=Date.now();if(a){if(u-n<FU)return;l=!0}else a=!0,l=!1,setTimeout(r,e);n=u}return p}var HU=20,DU=["top","right","bottom","left","width","height","size","weight"],UU=typeof MutationObserver<"u",BU=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=JU(this.refresh.bind(this),HU)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var a=this.observers_,l=a.indexOf(e);~l&&a.splice(l,1),!a.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(a){return a.gatherActive(),a.hasActive()});return e.forEach(function(a){return a.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!xS||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),UU?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!xS||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var a=e.propertyName,l=a===void 0?"":a,n=DU.some(function(i){return!!~l.indexOf(i)});n&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),sx=function(t,e){for(var a=0,l=Object.keys(e);a<l.length;a++){var n=l[a];Object.defineProperty(t,n,{value:e[n],enumerable:!1,writable:!1,configurable:!0})}return t},yi=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||Js},cx=Ds(0,0,0,0);function Hs(t){return parseFloat(t)||0}function dx(t){for(var e=[],a=1;a<arguments.length;a++)e[a-1]=arguments[a];return e.reduce(function(l,n){var i=t["border-"+n+"-width"];return l+Hs(i)},0)}function QU(t){for(var e=["top","right","bottom","left"],a={},l=0,n=e;l<n.length;l++){var i=n[l],r=t["padding-"+i];a[i]=Hs(r)}return a}function $U(t){var e=t.getBBox();return Ds(0,0,e.width,e.height)}function _U(t){var e=t.clientWidth,a=t.clientHeight;if(!e&&!a)return cx;var l=yi(t).getComputedStyle(t),n=QU(l),i=n.left+n.right,r=n.top+n.bottom,p=Hs(l.width),u=Hs(l.height);if(l.boxSizing==="border-box"&&(Math.round(p+i)!==e&&(p-=dx(l,"left","right")+i),Math.round(u+r)!==a&&(u-=dx(l,"top","bottom")+r)),!eB(t)){var s=Math.round(p+i)-e,c=Math.round(u+r)-a;Math.abs(s)!==1&&(p-=s),Math.abs(c)!==1&&(u-=c)}return Ds(n.left,n.top,p,u)}var tB=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof yi(t).SVGGraphicsElement}:function(t){return t instanceof yi(t).SVGElement&&typeof t.getBBox=="function"}}();function eB(t){return t===yi(t).document.documentElement}function aB(t){return xS?tB(t)?$U(t):_U(t):cx}function lB(t){var e=t.x,a=t.y,l=t.width,n=t.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,r=Object.create(i.prototype);return sx(r,{x:e,y:a,width:l,height:n,top:a,right:e+l,bottom:n+a,left:e}),r}function Ds(t,e,a,l){return{x:t,y:e,width:a,height:l}}var nB=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ds(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=aB(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),oB=function(){function t(e,a){var l=lB(a);sx(this,{target:e,contentRect:l})}return t}(),iB=function(){function t(e,a,l){if(this.activeObservations_=[],this.observations_=new ux,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=a,this.callbackCtx_=l}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof yi(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(e)||(a.set(e,new nB(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof yi(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(e)&&(a.delete(e),a.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(a){a.isActive()&&e.activeObservations_.push(a)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,a=this.activeObservations_.map(function(l){return new oB(l.target,l.broadcastRect())});this.callback_.call(e,a,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Wx=typeof WeakMap<"u"?new WeakMap:new ux,fx=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var a=BU.getInstance(),l=new iB(e,a,this);Wx.set(this,l)}return t}();["observe","unobserve","disconnect"].forEach(function(t){fx.prototype[t]=function(){var e;return(e=Wx.get(this))[t].apply(e,arguments)}});var Sx=function(){return typeof Js.ResizeObserver<"u"?Js.ResizeObserver:fx}();const wS=t=>t!=null&&t!=="",De=(t,e)=>{const a=x({},t);return Object.keys(e).forEach(l=>{const n=a[l];if(n)n.type||n.default?n.default=e[l]:n.def?n.def(e[l]):a[l]={type:n,default:e[l]};else throw new Error(`not have ${l} prop`)}),a},hx=t=>{const e=Object.keys(t),a={},l={},n={};for(let i=0,r=e.length;i<r;i++){const p=e[i];KU(p)?(a[p[2].toLowerCase()+p.slice(3)]=t[p],l[p]=t[p]):n[p]=t[p]}return{onEvents:l,events:a,extraAttrs:n}},rB=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const a={},l=/;(?![^(]*\))/g,n=/:(.+)/;return typeof t=="object"?t:(t.split(l).forEach(function(i){if(i){const r=i.split(n);if(r.length>1){const p=e?dp(r[0].trim()):r[0].trim();a[p]=r[1].trim()}}}),a)},vi=(t,e)=>t[e]!==void 0,mx=Symbol("skipFlatten"),Ne=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const a=Array.isArray(t)?t:[t],l=[];return a.forEach(n=>{Array.isArray(n)?l.push(...Ne(n,e)):n&&n.type===o.Fragment?n.key===mx?l.push(n):l.push(...Ne(n.children,e)):n&&o.isVNode(n)?e&&!Lx(n)?l.push(n):e||l.push(n):wS(n)&&l.push(n)}),l},pB=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(o.isVNode(t))return t.type===o.Fragment?e==="default"?Ne(t.children):[]:t.children&&t.children[e]?Ne(t.children[e](a)):[];{const l=t.$slots[e]&&t.$slots[e](a);return Ne(l)}},Rl=t=>{var e;let a=((e=t==null?void 0:t.vnode)===null||e===void 0?void 0:e.el)||t&&(t.$el||t);for(;a&&!a.tagName;)a=a.nextSibling;return a},uB=t=>{const e={};if(t.$&&t.$.vnode){const a=t.$.vnode.props||{};Object.keys(t.$props).forEach(l=>{const n=t.$props[l],i=PU(l);(n!==void 0||i in a)&&(e[l]=n)})}else if(o.isVNode(t)&&typeof t.type=="object"){const a=t.props||{},l={};Object.keys(a).forEach(i=>{l[dp(i)]=a[i]});const n=t.type.props||{};Object.keys(n).forEach(i=>{const r=GU(n,l,i,l[i]);(r!==void 0||i in l)&&(e[i]=r)})}return e},gx=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n;if(t.$){const i=t[e];if(i!==void 0)return typeof i=="function"&&l?i(a):i;n=t.$slots[e],n=l&&n?n(a):n}else if(o.isVNode(t)){const i=t.props&&t.props[e];if(i!==void 0&&t.props!==null)return typeof i=="function"&&l?i(a):i;t.type===o.Fragment?n=t.children:t.children&&t.children[e]&&(n=t.children[e],n=l&&n?n(a):n)}return Array.isArray(n)&&(n=Ne(n),n=n.length===1?n[0]:n,n=n.length===0?void 0:n),n};function Ax(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a={};return t.$?a=x(x({},a),t.$attrs):a=x(x({},a),t.props),hx(a)[e?"onEvents":"events"]}function sB(t,e){let l=((o.isVNode(t)?t.props:t.$attrs)||{}).style||{};if(typeof l=="string")l=rB(l,e);else if(e&&l){const n={};return Object.keys(l).forEach(i=>n[dp(i)]=l[i]),n}return l}function cB(t){return t.length===1&&t[0].type===o.Fragment}function Lx(t){return t&&(t.type===o.Comment||t.type===o.Fragment&&t.children.length===0||t.type===o.Text&&t.children.trim()==="")}function Aa(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const e=[];return t.forEach(a=>{Array.isArray(a)?e.push(...a):(a==null?void 0:a.type)===o.Fragment?e.push(...Aa(a.children)):e.push(a)}),e.filter(a=>!Lx(a))}function na(t){return Array.isArray(t)&&t.length===1&&(t=t[0]),t&&t.__v_isVNode&&typeof t.type!="symbol"}function Us(t,e){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";var l,n;return(l=e[a])!==null&&l!==void 0?l:(n=t[a])===null||n===void 0?void 0:n.call(t)}const Ii=o.defineComponent({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(t,e){let{slots:a}=e;const l=o.reactive({width:0,height:0,offsetHeight:0,offsetWidth:0});let n=null,i=null;const r=()=>{i&&(i.disconnect(),i=null)},p=c=>{const{onResize:d}=t,W=c[0].target,{width:f,height:S}=W.getBoundingClientRect(),{offsetWidth:h,offsetHeight:m}=W,g=Math.floor(f),A=Math.floor(S);if(l.width!==g||l.height!==A||l.offsetWidth!==h||l.offsetHeight!==m){const b={width:g,height:A,offsetWidth:h,offsetHeight:m};x(l,b),d&&Promise.resolve().then(()=>{d(x(x({},b),{offsetWidth:h,offsetHeight:m}),W)})}},u=o.getCurrentInstance(),s=()=>{const{disabled:c}=t;if(c){r();return}const d=Rl(u);d!==n&&(r(),n=d),!i&&d&&(i=new Sx(p),i.observe(d))};return o.onMounted(()=>{s()}),o.onUpdated(()=>{s()}),o.onUnmounted(()=>{r()}),o.watch(()=>t.disabled,()=>{s()},{flush:"post"}),()=>{var c;return(c=a.default)===null||c===void 0?void 0:c.call(a)[0]}}});let bx=t=>setTimeout(t,16),yx=t=>clearTimeout(t);typeof window<"u"&&"requestAnimationFrame"in window&&(bx=t=>window.requestAnimationFrame(t),yx=t=>window.cancelAnimationFrame(t));let vx=0;const OS=new Map;function Ix(t){OS.delete(t)}function Qt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;vx+=1;const a=vx;function l(n){if(n===0)Ix(a),t();else{const i=bx(()=>{l(n-1)});OS.set(a,i)}}return l(e),a}Qt.cancel=t=>{const e=OS.get(t);return Ix(e),yx(e)};const Wp=function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];return e},Bs=t=>{const e=t;return e.install=function(a){a.component(e.displayName||e.name,t)},t};function fp(){return{type:[Function,Array]}}function ve(t){return{type:Object,default:t}}function Pt(t){return{type:Boolean,default:t}}function Dt(t){return{type:Function,default:t}}function Da(t,e){const a={validator:()=>!0,default:t};return a}function Te(t){return{type:Array,default:t}}function Ie(t){return{type:String,default:t}}function Ue(t,e){return t?{type:t,default:e}:Da(e)}let Cx=!1;try{const t=Object.defineProperty({},"passive",{get(){Cx=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch{}const oa=Cx;function Me(t,e,a,l){if(t&&t.addEventListener){let n=l;n===void 0&&oa&&(e==="touchstart"||e==="touchmove"||e==="wheel")&&(n={passive:!1}),t.addEventListener(e,a,n)}return{remove:()=>{t&&t.removeEventListener&&t.removeEventListener(e,a)}}}const dB="anticon",xx=Symbol("configProvider"),wx={getPrefixCls:(t,e)=>e||(t?`ant-${t}`:"ant"),iconPrefixCls:o.computed(()=>dB),getPopupContainer:o.computed(()=>()=>document.body),direction:o.computed(()=>"ltr")},WB=()=>o.inject(xx,wx),fB=Symbol("DisabledContextKey"),Ln=()=>o.inject(fB,o.ref(void 0)),Ox={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},SB={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},kx={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},jx={lang:x({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},SB),timePickerLocale:x({},kx)},La="${label} is not a valid ${type}",Sp={locale:"en",Pagination:Ox,DatePicker:jx,TimePicker:kx,Calendar:jx,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:La,method:La,array:La,object:La,number:La,date:La,boolean:La,integer:La,float:La,regexp:La,email:La,url:La,hex:La},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}},hB=o.defineComponent({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(t,e){let{slots:a}=e;const l=o.inject("localeData",{}),n=o.computed(()=>{const{componentName:r="global",defaultLocale:p}=t,u=p||Sp[r||"global"],{antLocale:s}=l,c=r&&s?s[r]:{};return x(x({},typeof u=="function"?u():u),c||{})}),i=o.computed(()=>{const{antLocale:r}=l,p=r&&r.locale;return r&&r.exist&&!p?Sp.locale:p});return()=>{const r=t.children||a.default,{antLocale:p}=l;return r==null?void 0:r(n.value,i.value,p)}}});function qx(t,e,a){const l=o.inject("localeData",{});return[o.computed(()=>{const{antLocale:i}=l,r=o.unref(e)||Sp[t||"global"],p=t&&i?i[t]:{};return x(x(x({},typeof r=="function"?r():r),p||{}),o.unref(a)||{})})]}function kS(t){for(var e=0,a,l=0,n=t.length;n>=4;++l,n-=4)a=t.charCodeAt(l)&255|(t.charCodeAt(++l)&255)<<8|(t.charCodeAt(++l)&255)<<16|(t.charCodeAt(++l)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,e=(a&65535)*1540483477+((a>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(n){case 3:e^=(t.charCodeAt(l+2)&255)<<16;case 2:e^=(t.charCodeAt(l+1)&255)<<8;case 1:e^=t.charCodeAt(l)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}const Zx="%";class mB{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join(Zx):e)||null}update(e,a){const l=Array.isArray(e)?e.join(Zx):e,n=this.cache.get(l),i=a(n);i===null?this.cache.delete(l):this.cache.set(l,i)}}const gB=mB,zx="data-token-hash",ho="data-css-hash",AB="data-cache-path",Ci="__cssinjs_instance__";function hp(){const t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const e=document.body.querySelectorAll(`style[${ho}]`)||[],{firstChild:a}=document.head;Array.from(e).forEach(n=>{n[Ci]=n[Ci]||t,n[Ci]===t&&document.head.insertBefore(n,a)});const l={};Array.from(document.querySelectorAll(`style[${ho}]`)).forEach(n=>{var i;const r=n.getAttribute(ho);l[r]?n[Ci]===t&&((i=n.parentNode)===null||i===void 0||i.removeChild(n)):l[r]=!0})}return new gB(t)}const Vx=Symbol("StyleContextKey"),LB=()=>{var t,e,a;const l=o.getCurrentInstance();let n;if(l&&l.appContext){const i=(a=(e=(t=l.appContext)===null||t===void 0?void 0:t.config)===null||e===void 0?void 0:e.globalProperties)===null||a===void 0?void 0:a.__ANTDV_CSSINJS_CACHE__;i?n=i:(n=hp(),l.appContext.config.globalProperties&&(l.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=n))}else n=hp();return n},Nx={cache:hp(),defaultCache:!0,hashPriority:"low"},Qs=()=>{const t=LB();return o.inject(Vx,o.shallowRef(x(x({},Nx),{cache:t})))},bB=t=>{const e=Qs(),a=o.shallowRef(x(x({},Nx),{cache:hp()}));return o.watch([()=>o.unref(t),e],()=>{const l=x({},e.value),n=o.unref(t);Object.keys(n).forEach(r=>{const p=n[r];n[r]!==void 0&&(l[r]=p)});const{cache:i}=n;l.cache=l.cache||hp(),l.defaultCache=!i&&e.value.defaultCache,a.value=l},{immediate:!0}),o.provide(Vx,a),a},yB=()=>({autoClear:Pt(),mock:Ie(),cache:ve(),defaultCache:Pt(),hashPriority:Ie(),container:Ue(),ssrInline:Pt(),transformers:Te(),linters:Te()});Bs(o.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:yB(),setup(t,e){let{slots:a}=e;return bB(t),()=>{var l;return(l=a.default)===null||l===void 0?void 0:l.call(a)}}}));function vB(){return!1}let jS=!1;function IB(){return jS}const CB=process.env.NODE_ENV==="production"?vB:IB;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){const t=window;if(typeof t.webpackHotUpdate=="function"){const e=t.webpackHotUpdate;t.webpackHotUpdate=function(){return jS=!0,setTimeout(()=>{jS=!1},0),e(...arguments)}}}function Tx(t,e,a,l){const n=Qs(),i=o.shallowRef(""),r=o.shallowRef();o.watchEffect(()=>{i.value=[t,...e.value].join("%")});const p=CB(),u=s=>{n.value.cache.update(s,c=>{const[d=0,W]=c||[];return d-1===0?(l==null||l(W,!1),null):[d-1,W]})};return o.watch(i,(s,c)=>{c&&u(c),n.value.cache.update(s,d=>{const[W=0,f]=d||[];let S=f;process.env.NODE_ENV!=="production"&&f&&p&&(l==null||l(S,p),S=null);const h=S||a();return[W+1,h]}),r.value=n.value.cache.get(i.value)[1]},{immediate:!0}),o.onBeforeUnmount(()=>{u(i.value)}),r}function qa(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function bn(t,e){return t&&t.contains?t.contains(e):!1}const Mx="data-vc-order",xB="vc-util-key",qS=new Map;function Kx(){let{mark:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t?t.startsWith("data-")?t:`data-${t}`:xB}function $s(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}function wB(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function Rx(t){return Array.from((qS.get(t)||t).children).filter(e=>e.tagName==="STYLE")}function Ex(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!qa())return null;const{csp:a,prepend:l}=e,n=document.createElement("style");n.setAttribute(Mx,wB(l)),a!=null&&a.nonce&&(n.nonce=a==null?void 0:a.nonce),n.innerHTML=t;const i=$s(e),{firstChild:r}=i;if(l){if(l==="queue"){const p=Rx(i).filter(u=>["prepend","prependQueue"].includes(u.getAttribute(Mx)));if(p.length)return i.insertBefore(n,p[p.length-1].nextSibling),n}i.insertBefore(n,r)}else i.appendChild(n);return n}function Px(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=$s(e);return Rx(a).find(l=>l.getAttribute(Kx(e))===t)}function _s(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=Px(t,e);a&&$s(e).removeChild(a)}function OB(t,e){const a=qS.get(t);if(!a||!bn(document,a)){const l=Ex("",e),{parentNode:n}=l;qS.set(t,n),t.removeChild(l)}}function tc(t,e){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var l,n,i;const r=$s(a);OB(r,a);const p=Px(e,a);if(p)return!((l=a.csp)===null||l===void 0)&&l.nonce&&p.nonce!==((n=a.csp)===null||n===void 0?void 0:n.nonce)&&(p.nonce=(i=a.csp)===null||i===void 0?void 0:i.nonce),p.innerHTML!==t&&(p.innerHTML=t),p;const u=Ex(t,a);return u.setAttribute(Kx(a),e),u}function kB(t,e){if(t.length!==e.length)return!1;for(let a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}class xi{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l={map:this.cache};return e.forEach(n=>{var i;l?l=(i=l==null?void 0:l.map)===null||i===void 0?void 0:i.get(n):l=void 0}),l!=null&&l.value&&a&&(l.value[1]=this.cacheCallTimes++),l==null?void 0:l.value}get(e){var a;return(a=this.internalGet(e,!0))===null||a===void 0?void 0:a[0]}has(e){return!!this.internalGet(e)}set(e,a){if(!this.has(e)){if(this.size()+1>xi.MAX_CACHE_SIZE+xi.MAX_CACHE_OFFSET){const[n]=this.keys.reduce((i,r)=>{const[,p]=i;return this.internalGet(r)[1]<p?[r,this.internalGet(r)[1]]:i},[this.keys[0],this.cacheCallTimes]);this.delete(n)}this.keys.push(e)}let l=this.cache;e.forEach((n,i)=>{if(i===e.length-1)l.set(n,{value:[a,this.cacheCallTimes++]});else{const r=l.get(n);r?r.map||(r.map=new Map):l.set(n,{map:new Map}),l=l.get(n).map}})}deleteByPath(e,a){var l;const n=e.get(a[0]);if(a.length===1)return n.map?e.set(a[0],{map:n.map}):e.delete(a[0]),(l=n.value)===null||l===void 0?void 0:l[0];const i=this.deleteByPath(n.map,a.slice(1));return(!n.map||n.map.size===0)&&!n.value&&e.delete(a[0]),i}delete(e){if(this.has(e))return this.keys=this.keys.filter(a=>!kB(a,e)),this.deleteByPath(this.cache,e)}}xi.MAX_CACHE_SIZE=20,xi.MAX_CACHE_OFFSET=5;let ZS={};function Ce(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error(`Warning: ${e}`)}function Yx(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.warn(`Note: ${e}`)}function jB(){ZS={}}function Gx(t,e,a){!e&&!ZS[a]&&(t(!1,a),ZS[a]=!0)}function ba(t,e){Gx(Ce,t,e)}function Xx(t,e){Gx(Yx,t,e)}function qB(){}let yn=qB;process.env.NODE_ENV!=="production"&&(yn=(t,e,a)=>{ba(t,`[ant-design-vue: ${e}] ${a}`),process.env.NODE_ENV==="test"&&jB()});let Fx=0;class Jx{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=Fx,e.length===0&&yn(e.length>0,"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."),Fx+=1}getDerivativeToken(e){return this.derivatives.reduce((a,l)=>l(e,a),void 0)}}const zS=new xi;function ZB(t){const e=Array.isArray(t)?t:[t];return zS.has(e)||zS.set(e,new Jx(e)),zS.get(e)}const Hx=new WeakMap;function ec(t){let e=Hx.get(t)||"";return e||(Object.keys(t).forEach(a=>{const l=t[a];e+=a,l instanceof Jx?e+=l.id:l&&typeof l=="object"?e+=ec(l):e+=l}),Hx.set(t,e)),e}function zB(t,e){return kS(`${e}_${ec(t)}`)}const mp=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),Dx="_bAmBoO_";function VB(t,e,a){var l,n;if(qa()){tc(t,mp);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",e==null||e(i),document.body.appendChild(i),process.env.NODE_ENV!=="production"&&(i.innerHTML="Test",i.style.zIndex="9999999");const r=a?a(i):(l=getComputedStyle(i).content)===null||l===void 0?void 0:l.includes(Dx);return(n=i.parentNode)===null||n===void 0||n.removeChild(i),_s(mp),r}return!1}let VS;function NB(){return VS===void 0&&(VS=VB(`@layer ${mp} { .${mp} { content: "${Dx}"!important; } }`,t=>{t.className=mp})),VS}const Ux={},TB=process.env.NODE_ENV==="production",MB=process.env.NODE_ENV==="prerender",KB=!TB&&!MB?"css-dev-only-do-not-override":"css",mo=new Map;function RB(t){mo.set(t,(mo.get(t)||0)+1)}function EB(t,e){typeof document<"u"&&document.querySelectorAll(`style[${zx}="${t}"]`).forEach(l=>{var n;l[Ci]===e&&((n=l.parentNode)===null||n===void 0||n.removeChild(l))})}const PB=0;function YB(t,e){mo.set(t,(mo.get(t)||0)-1);const a=Array.from(mo.keys()),l=a.filter(n=>(mo.get(n)||0)<=0);a.length-l.length>PB&&l.forEach(n=>{EB(n,e),mo.delete(n)})}const GB=(t,e,a,l)=>{const n=a.getDerivativeToken(t);let i=x(x({},n),e);return l&&(i=l(i)),i};function XB(t,e){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:o.ref({});const l=Qs(),n=o.computed(()=>x({},...e.value)),i=o.computed(()=>ec(n.value)),r=o.computed(()=>ec(a.value.override||Ux));return Tx("token",o.computed(()=>[a.value.salt||"",t.value.id,i.value,r.value]),()=>{const{salt:u="",override:s=Ux,formatToken:c,getComputedToken:d}=a.value,W=d?d(n.value,s,t.value):GB(n.value,s,t.value,c),f=zB(W,u);W._tokenKey=f,RB(f);const S=`${KB}-${kS(f)}`;return W._hashId=S,[W,S]},u=>{var s;YB(u[0]._tokenKey,(s=l.value)===null||s===void 0?void 0:s.cache.instanceId)})}var FB={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Bx="comm",Qx="rule",$x="decl",JB="@import",HB="@namespace",DB="@keyframes",UB="@layer",_x=Math.abs,NS=String.fromCharCode;function t3(t){return t.trim()}function ac(t,e,a){return t.replace(e,a)}function BB(t,e,a){return t.indexOf(e,a)}function wi(t,e){return t.charCodeAt(e)|0}function Oi(t,e,a){return t.slice(e,a)}function sl(t){return t.length}function QB(t){return t.length}function lc(t,e){return e.push(t),t}var nc=1,ki=1,e3=0,Za=0,Oe=0,ji="";function TS(t,e,a,l,n,i,r,p){return{value:t,root:e,parent:a,type:l,props:n,children:i,line:nc,column:ki,length:r,return:"",siblings:p}}function $B(){return Oe}function _B(){return Oe=Za>0?wi(ji,--Za):0,ki--,Oe===10&&(ki=1,nc--),Oe}function Ua(){return Oe=Za<e3?wi(ji,Za++):0,ki++,Oe===10&&(ki=1,nc++),Oe}function vn(){return wi(ji,Za)}function oc(){return Za}function ic(t,e){return Oi(ji,t,e)}function gp(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tQ(t){return nc=ki=1,e3=sl(ji=t),Za=0,[]}function eQ(t){return ji="",t}function MS(t){return t3(ic(Za-1,KS(t===91?t+2:t===40?t+1:t)))}function aQ(t){for(;(Oe=vn())&&Oe<33;)Ua();return gp(t)>2||gp(Oe)>3?"":" "}function lQ(t,e){for(;--e&&Ua()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return ic(t,oc()+(e<6&&vn()==32&&Ua()==32))}function KS(t){for(;Ua();)switch(Oe){case t:return Za;case 34:case 39:t!==34&&t!==39&&KS(Oe);break;case 40:t===41&&KS(t);break;case 92:Ua();break}return Za}function nQ(t,e){for(;Ua()&&t+Oe!==57;)if(t+Oe===84&&vn()===47)break;return"/*"+ic(e,Za-1)+"*"+NS(t===47?t:Ua())}function oQ(t){for(;!gp(vn());)Ua();return ic(t,Za)}function iQ(t){return eQ(rc("",null,null,null,[""],t=tQ(t),0,[0],t))}function rc(t,e,a,l,n,i,r,p,u){for(var s=0,c=0,d=r,W=0,f=0,S=0,h=1,m=1,g=1,A=0,b="",v=n,y=i,I=l,L=b;m;)switch(S=A,A=Ua()){case 40:if(S!=108&&wi(L,d-1)==58){BB(L+=ac(MS(A),"&","&\f"),"&\f",_x(s?p[s-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:L+=MS(A);break;case 9:case 10:case 13:case 32:L+=aQ(S);break;case 92:L+=lQ(oc()-1,7);continue;case 47:switch(vn()){case 42:case 47:lc(rQ(nQ(Ua(),oc()),e,a,u),u),(gp(S||1)==5||gp(vn()||1)==5)&&sl(L)&&Oi(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*h:p[s++]=sl(L)*g;case 125*h:case 59:case 0:switch(A){case 0:case 125:m=0;case 59+c:g==-1&&(L=ac(L,/\f/g,"")),f>0&&(sl(L)-d||h===0&&S===47)&&lc(f>32?l3(L+";",l,a,d-1,u):l3(ac(L," ","")+";",l,a,d-2,u),u);break;case 59:L+=";";default:if(lc(I=a3(L,e,a,s,c,n,p,b,v=[],y=[],d,i),i),A===123)if(c===0)rc(L,e,I,I,v,i,d,p,y);else{switch(W){case 99:if(wi(L,3)===110)break;case 108:if(wi(L,2)===97)break;default:c=0;case 100:case 109:case 115:}c?rc(t,I,I,l&&lc(a3(t,I,I,0,0,n,p,b,n,v=[],d,y),y),n,y,d,p,l?v:y):rc(L,I,I,I,[""],y,0,p,y)}}s=c=f=0,h=g=1,b=L="",d=r;break;case 58:d=1+sl(L),f=S;default:if(h<1){if(A==123)--h;else if(A==125&&h++==0&&_B()==125)continue}switch(L+=NS(A),A*h){case 38:g=c>0?1:(L+="\f",-1);break;case 44:p[s++]=(sl(L)-1)*g,g=1;break;case 64:vn()===45&&(L+=MS(Ua())),W=vn(),c=d=sl(b=L+=oQ(oc())),A++;break;case 45:S===45&&sl(L)==2&&(h=0)}}return i}function a3(t,e,a,l,n,i,r,p,u,s,c,d){for(var W=n-1,f=n===0?i:[""],S=QB(f),h=0,m=0,g=0;h<l;++h)for(var A=0,b=Oi(t,W+1,W=_x(m=r[h])),v=t;A<S;++A)(v=t3(m>0?f[A]+" "+b:ac(b,/&\f/g,f[A])))&&(u[g++]=v);return TS(t,e,a,n===0?Qx:p,u,s,c,d)}function rQ(t,e,a,l){return TS(t,e,a,Bx,NS($B()),Oi(t,2,-2),0,l)}function l3(t,e,a,l,n){return TS(t,e,a,$x,Oi(t,0,l),Oi(t,l+1,-1),l,n)}function RS(t,e){for(var a="",l=0;l<t.length;l++)a+=e(t[l],l,t,e)||"";return a}function pQ(t,e,a,l){switch(t.type){case UB:if(t.children.length)break;case JB:case HB:case $x:return t.return=t.return||t.value;case Bx:return"";case DB:return t.return=t.value+"{"+RS(t.children,l)+"}";case Qx:if(!sl(t.value=t.props.join(",")))return""}return sl(a=RS(t.children,l))?t.return=t.value+"{"+a+"}":""}function n3(t,e){const{path:a,parentSelectors:l}=e;ba(!1,`[Ant Design Vue CSS-in-JS] ${a?`Error in '${a}': `:""}${t}${l.length?` Selector info: ${l.join(" -> ")}`:""}`)}const uQ=(t,e,a)=>{if(t==="content"){const l=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof e!="string"||["normal","none","initial","inherit","unset"].indexOf(e)===-1&&!l.test(e)&&(e.charAt(0)!==e.charAt(e.length-1)||e.charAt(0)!=='"'&&e.charAt(0)!=="'"))&&n3(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${e}"'\`.`,a)}},sQ=(t,e,a)=>{t==="animation"&&a.hashId&&e!=="none"&&n3(`You seem to be using hashed animation '${e}', in which case 'animationName' with Keyframe as value is recommended.`,a)},o3="data-ant-cssinjs-cache-path",cQ="_FILE_STYLE__";let go,i3=!0;function dQ(){var t;if(!go&&(go={},qa())){const e=document.createElement("div");e.className=o3,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let a=getComputedStyle(e).content||"";a=a.replace(/^"/,"").replace(/"$/,""),a.split(";").forEach(n=>{const[i,r]=n.split(":");go[i]=r});const l=document.querySelector(`style[${o3}]`);l&&(i3=!1,(t=l.parentNode)===null||t===void 0||t.removeChild(l)),document.body.removeChild(e)}}function WQ(t){return dQ(),!!go[t]}function fQ(t){const e=go[t];let a=null;if(e&&qa())if(i3)a=cQ;else{const l=document.querySelector(`style[${ho}="${go[t]}"]`);l?a=l.innerHTML:delete go[t]}return[a,e]}const r3=qa(),p3="_skip_check_",u3="_multi_value_";function s3(t){return RS(iQ(t),pQ).replace(/\{%%%\:[^;];}/g,";")}function SQ(t){return typeof t=="object"&&t&&(p3 in t||u3 in t)}function hQ(t,e,a){if(!e)return t;const l=`.${e}`,n=a==="low"?`:where(${l})`:l;return t.split(",").map(r=>{var p;const u=r.trim().split(/\s+/);let s=u[0]||"";const c=((p=s.match(/^\w+/))===null||p===void 0?void 0:p[0])||"";return s=`${c}${n}${s.slice(c.length)}`,[s,...u.slice(1)].join(" ")}).join(",")}const ES=new Set;process.env.NODE_ENV;const PS=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:a,injectHash:l,parentSelectors:n}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:i,layer:r,path:p,hashPriority:u,transformers:s=[],linters:c=[]}=e;let d="",W={};function f(m){const g=m.getName(i);if(!W[g]){const[A]=PS(m.style,e,{root:!1,parentSelectors:n});W[g]=`@keyframes ${m.getName(i)}${A}`}}function S(m){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return m.forEach(A=>{Array.isArray(A)?S(A,g):A&&g.push(A)}),g}if(S(Array.isArray(t)?t:[t]).forEach(m=>{const g=typeof m=="string"&&!a?{}:m;if(typeof g=="string")d+=`${g}
|
|
294
|
+
onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,MC=`${rD} ${pD}`.split(/[\s\n]+/),uD="aria-",sD="data-";function KC(t,e){return t.indexOf(e)===0}function bi(t,e=!1){let a;e===!1?a={aria:!0,data:!0,attr:!0}:e===!0?a={aria:!0}:a={...e};const l={};return Object.keys(t).forEach(n=>{(a.aria&&(n==="role"||KC(n,uD))||a.data&&KC(n,sD)||a.attr&&(MC.includes(n)||MC.includes(n.toLowerCase())))&&(l[n]=t[n])}),l}function cD(t){const[e,a]=we(t.value.length),l=o.computed(()=>t.value.slice(0,o.unref(e))),n=o.computed(()=>{const r=o.unref(l)[o.unref(l).length-1];return r?r.key:null});o.watch(t,()=>{var r;if(!(o.unref(l).length&&o.unref(l).every((p,u)=>{var s;return p.key===((s=t.value[u])==null?void 0:s.key)}))){if(o.unref(l).length===0)a(1);else for(let p=0;p<o.unref(l).length;p+=1)if(o.unref(l)[p].key!==((r=t.value[p])==null?void 0:r.key)){a(p);break}}},{immediate:!0,deep:!0});const i=dS(r=>{r===o.unref(n)&&a(o.unref(e)+1)});return[l,i]}function dD(t,e){const a=(l,n)=>typeof e.value=="function"?e.value(l,n):e?e.value[l.role]||{}:{};return o.computed(()=>(t.value||[]).map((l,n)=>{const i=l.key??`preset_${n}`;return{...a(l,n),...l,key:i}}))}const WD=1,fD=o.defineComponent({name:"AXBubbleList",inheritAttrs:!1,__name:"BubbleList",props:o.mergeDefaults({prefixCls:null,rootClassName:null,items:null,autoScroll:{type:Boolean},roles:null},{autoScroll:!0}),setup(t,{expose:e}){const a=_e(t,["prefixCls","rootClassName","items","autoScroll","roles"]);o.toRef(t,"roles"),o.toRef(t,"items"),o.toRef(t,"prefixCls");const l=o.useAttrs(),n=bi(o.mergeProps(a,l),{attr:!0,aria:!0}),i=o.ref(t.items),r=o.ref(t.roles);o.watch(()=>t.items,()=>{i.value=t.items}),o.watch(()=>t.roles,()=>{r.value=t.roles});const p=o.ref(null),u=o.ref({}),{getPrefixCls:s}=fa(),c=s("bubble",t.prefixCls),d=`${c}-list`,[W,f,S]=zC(c),[h,m]=we(!1);o.watchEffect(()=>{m(!0),o.onWatcherCleanup(()=>{m(!1)})});const g=dD(i,r),[A,b]=cD(g),[v,y]=we(!0),[I,L]=we(0),w=Z=>{const E=Z.target;y(E.scrollHeight-Math.abs(E.scrollTop)-E.clientHeight<=WD)};o.watch(I,()=>{t.autoScroll&&o.unref(p)&&o.unref(v)&&o.nextTick(()=>{o.unref(p).scrollTo({top:o.unref(p).scrollHeight})})}),o.watch(()=>o.unref(A).length,()=>{var Z;if(t.autoScroll){const E=(Z=o.unref(A)[o.unref(A).length-2])==null?void 0:Z.key,z=o.unref(u)[E];if(z){const{nativeElement:Y}=z,{top:O=0,bottom:M=0}=(Y==null?void 0:Y.getBoundingClientRect())??{},{top:J,bottom:F}=o.unref(p).getBoundingClientRect();O<F&&M>J&&(L(o.unref(I)+1),y(!0))}}});const C=dS(()=>{t.autoScroll&&L(o.unref(I)+1)}),k=o.computed(()=>({onUpdate:C}));return e({nativeElement:p,scrollTo:({key:Z,offset:E,behavior:z="smooth",block:Y})=>{if(typeof E=="number")o.unref(p).scrollTo({top:E,behavior:z});else if(Z!==void 0){const O=o.unref(u)[Z];if(O){const M=o.unref(A).findIndex(J=>J.key===Z);y(M===o.unref(A).length-1),O.nativeElement.scrollIntoView({behavior:z,block:Y})}}}}),()=>W(o.createVNode(oD,{value:k.value},{default:()=>[o.createVNode("div",o.mergeProps(n,{class:Gt(d,t.rootClassName,f.value,S,{[`${d}-reach-end`]:v.value}),ref:p,onScroll:w}),[o.unref(A).map(({key:Z,onTypingComplete:E,...z})=>o.createVNode(NC,o.mergeProps(z,{key:Z,ref:Y=>{Y?u.value[Z]=Y:delete u.value[Z]},typing:h.value?z.typing:!1,onTypingComplete:()=>{E==null||E(),b(Z)}}),null))])]}))}}),RC=Object.assign(NC,{List:fD}),SD=o.defineComponent({name:"AXConversationsItem",__name:"ConversationsItem",props:{info:null,prefixCls:null,direction:null,menu:null,active:{type:Boolean},onClick:{type:Function}},setup(t){const e=_e(t,["prefixCls","info","class","direction","onClick","active","menu"]);o.toRef(t,"class");const a=o.computed(()=>bi(e,{aria:!0,data:!0,attr:!0})),l=W=>{W.stopPropagation()},n=o.computed(()=>t.info.disabled),[i,r]=we(!1),[p,u]=we(!1),s=o.computed(()=>Gt(t.class,`${t.prefixCls}-item`,{[`${t.prefixCls}-item-active`]:t.active&&!n.value},{[`${t.prefixCls}-item-disabled`]:n.value})),c=()=>{!n.value&&t.onClick&&t.onClick(t.info)},d=W=>{W&&u(!W)};return()=>o.createVNode(sn,{title:t.info.label,open:i.value&&p.value,onOpenChange:u,placement:t.direction==="rtl"?"left":"right"},{default:()=>[o.createVNode("li",o.mergeProps(a.value,{class:s.value,onClick:c}),[t.info.icon&&o.createVNode("div",{class:`${t.prefixCls}-icon`},[t.info.icon]),o.createVNode(Se.Text,{class:`${t.prefixCls}-label`,ellipsis:{onEllipsis:r}},{default:()=>[t.info.label]}),t.menu&&!n.value&&o.createVNode(ro,{placement:t.direction==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:n.value,onOpenChange:d},{default:()=>o.createVNode(Pr,{onClick:l,disabled:n.value,class:`${t.prefixCls}-menu-icon`},null),overlay:()=>o.createVNode(dn,t.menu,null)})])]})}}),EC=Symbol("GroupTitleContext"),WS=o.shallowRef(),hD=t=>{o.provide(EC,t),o.watch(t,()=>{WS.value=o.unref(t),o.triggerRef(WS)},{immediate:!0,deep:!0})},mD=()=>o.inject(EC,o.computed(()=>WS.value||{})),gD=o.defineComponent({props:{value:xl()},setup(t,{slots:e}){return hD(o.computed(()=>t.value)),()=>{var a;return(a=e.default)==null?void 0:a.call(e)}}}),PC=o.defineComponent({name:"AXConversationsGroupTitle",__name:"GroupTitle",setup(t){const e=o.useSlots(),a=mD(),l=o.computed(()=>{var n;return(n=e.default)==null?void 0:n.call(e)});return()=>o.createVNode("div",{class:Gt(`${a.value.prefixCls}-group-title`)},[l.value&&o.createVNode(Se.Text,null,{default:()=>[l.value]})])}});function YC(t,e){const{defaultValue:a,value:l=o.ref()}=e||{};let n=typeof t=="function"?t():t;l.value!==void 0&&(n=o.unref(l)),a!==void 0&&(n=typeof a=="function"?a():a);const i=o.ref(n),r=o.ref(n);o.watchEffect(()=>{let u=l.value!==void 0?l.value:i.value;e.postState&&(u=e.postState(u)),r.value=u});function p(u){const s=r.value;i.value=u,o.toRaw(r.value)!==u&&e.onChange&&e.onChange(u,s)}return o.watch(l,()=>{i.value=l.value}),[r,p]}const fS="__ungrouped",AD=(t,e=[])=>{const a=o.computed(()=>{if(!o.toValue(t))return{enableGroup:!1,sort:void 0,title:void 0};let l={sort:void 0,title:void 0};return typeof o.toValue(t)=="object"&&(l={...l,...o.toValue(t)}),{enableGroup:!0,sort:l.sort,title:l.title}});return o.computed(()=>{if(!a.value.enableGroup)return{groupList:[{name:fS,data:o.toValue(e),title:void 0}],enableGroup:a.value.enableGroup};const l=o.toValue(e).reduce((n,i)=>{const r=i.group||fS;return n[r]||(n[r]=[]),n[r].push(i),n},{});return{groupList:(a.value.sort?Object.keys(l).sort(a.value.sort):Object.keys(l)).map(n=>({name:n===fS?void 0:n,title:a.value.title,data:l[n]})),enableGroup:a.value.enableGroup}})},LD=t=>{const{componentCls:e}=t;return{[e]:{display:"flex",flexDirection:"column",gap:t.paddingXXS,overflowY:"auto",padding:t.paddingSM,[`&${e}-rtl`]:{direction:"rtl"},[`& ${e}-list`]:{display:"flex",gap:t.paddingXXS,flexDirection:"column",paddingLeft:0,[`& ${e}-item`]:{paddingInlineStart:t.paddingXL},[`& ${e}-label`]:{color:t.colorTextDescription}},[`& ${e}-item`]:{display:"flex",height:t.controlHeightLG,minHeight:t.controlHeightLG,gap:t.paddingXS,padding:`0 ${Ha(t.paddingXS)}`,alignItems:"center",borderRadius:t.borderRadiusLG,cursor:"pointer",transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,"&:hover":{backgroundColor:t.colorBgTextHover},"&-active":{backgroundColor:t.colorBgTextHover,[`& ${e}-label, ${e}-menu-icon`]:{color:t.colorText}},"&-disabled":{cursor:"not-allowed",[`& ${e}-label`]:{color:t.colorTextDisabled}},"&:hover, &-active":{[`& ${e}-menu-icon`]:{opacity:1}}},[`& ${e}-label`]:{flex:1,color:t.colorText},[`& ${e}-menu-icon`]:{opacity:0,fontSize:t.fontSizeXL},[`& ${e}-group-title`]:{display:"flex",alignItems:"center",height:t.controlHeightLG,minHeight:t.controlHeightLG,padding:`0 ${Ha(t.paddingXS)}`}}}},bD=()=>({}),yD=An("Conversations",t=>{const e=ul(t,{});return LD(e)},bD);o.mergeDefaults({items:null,activeKey:null,defaultActiveKey:null,onActiveChange:{type:Function},menu:{type:Function},groupable:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})});const vD=t=>{const{componentCls:e,calc:a}=t,l=a(t.fontSizeHeading3).mul(t.lineHeightHeading3).equal(),n=a(t.fontSize).mul(t.lineHeight).equal();return{[e]:{gap:t.padding,[`${e}-icon`]:{height:a(l).add(n).add(t.paddingXXS).equal(),display:"flex",img:{height:"100%"}},[`${e}-content-wrapper`]:{gap:t.paddingXS,flex:"auto",minWidth:0,[`${e}-title-wrapper`]:{gap:t.paddingXS},[`${e}-title`]:{margin:0},[`${e}-extra`]:{marginInlineStart:"auto"}}}}},ID=t=>{const{componentCls:e}=t;return{[e]:{"&-filled":{paddingInline:t.padding,paddingBlock:t.paddingSM,background:t.colorFillContent,borderRadius:t.borderRadiusLG},"&-borderless":{[`${e}-title`]:{fontSize:t.fontSizeHeading3,lineHeight:t.lineHeightHeading3}}}}},CD=()=>({}),xD=An("Welcome",t=>{const e=ul(t,{});return[vD(e),ID(e)]},CD);function wD(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!o.isVNode(t)}o.mergeDefaults({prefixCls:null,rootClassName:null,className:null,style:null,variant:null,classNames:null,styles:null,icon:null,title:null,description:null,extra:null},{variant:"filled",classNames:()=>({}),styles:()=>({})});const OD=t=>{const{componentCls:e}=t;return{[e]:{"&, & *":{boxSizing:"border-box"},maxWidth:"100%",[`&${e}-rtl`]:{direction:"rtl"},[`& ${e}-title`]:{marginBlockStart:0,fontWeight:"normal",color:t.colorTextTertiary},[`& ${e}-list`]:{display:"flex",gap:t.paddingSM,overflowX:"scroll","&::-webkit-scrollbar":{display:"none"},listStyle:"none",paddingInlineStart:0,marginBlock:0,alignItems:"stretch","&-wrap":{flexWrap:"wrap"},"&-vertical":{flexDirection:"column",alignItems:"flex-start"}},[`${e}-item`]:{flex:"none",display:"flex",gap:t.paddingXS,height:"auto",paddingBlock:t.paddingSM,paddingInline:t.padding,alignItems:"flex-start",justifyContent:"flex-start",background:t.colorBgContainer,borderRadius:t.borderRadiusLG,transition:["border","background"].map(a=>`${a} ${t.motionDurationSlow}`).join(","),border:`${Ha(t.lineWidth)} ${t.lineType} ${t.colorBorderSecondary}`,[`&:not(${e}-item-has-nest)`]:{"&:hover":{cursor:"pointer",background:t.colorFillTertiary},"&:active":{background:t.colorFill}},[`${e}-content`]:{flex:"auto",minWidth:0,display:"flex",gap:t.paddingXXS,flexDirection:"column",alignItems:"flex-start"},[`${e}-icon, ${e}-label, ${e}-desc`]:{margin:0,padding:0,fontSize:t.fontSize,lineHeight:t.lineHeight,textAlign:"start",whiteSpace:"normal"},[`${e}-label`]:{color:t.colorTextHeading,fontWeight:500},[`${e}-label + ${e}-desc`]:{color:t.colorTextTertiary},[`&${e}-item-disabled`]:{pointerEvents:"none",background:t.colorBgContainerDisabled,[`${e}-label, ${e}-desc`]:{color:t.colorTextTertiary}}}}}},kD=t=>{const{componentCls:e}=t;return{[e]:{[`${e}-item-has-nest`]:{[`> ${e}-content`]:{[`> ${e}-label`]:{fontSize:t.fontSizeLG,lineHeight:t.lineHeightLG}}},[`&${e}-nested`]:{marginTop:t.paddingXS,alignSelf:"stretch",[`${e}-list`]:{alignItems:"stretch"},[`${e}-item`]:{border:0,background:t.colorFillQuaternary}}}}},jD=()=>({}),qD=An("Prompts",t=>{const e=ul(t,{});return[OD(e),kD(e)]},jD),GC=o.defineComponent({name:"AXPrompts",__name:"Prompts",props:o.mergeDefaults({items:null,title:null,onItemClick:{type:Function},vertical:{type:Boolean},wrap:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(t){const e=_e(t,["prefixCls","title","class","items","onItemClick","vertical","wrap","rootClassName","styles","classNames","style"]);o.toRef(t,"class"),o.toRef(t,"prefixCls");const a=o.useSlots(),{getPrefixCls:l,direction:n}=fa(),i=l("prompts",t.prefixCls),r=mn("prompts"),[p,u,s]=qD(i),c=o.computed(()=>Gt(i,r.value.className,t.class,t.rootClassName,u.value,s,{[`${i}-rtl`]:n.value==="rtl"})),d=o.computed(()=>Gt(`${i}-list`,r.value.classNames.list,t.classNames.list,{[`${i}-list-wrap`]:t.wrap},{[`${i}-list-vertical`]:t.vertical})),W=o.computed(()=>a.title?a.title():t.title);return()=>{var f;return p(o.createVNode("div",o.mergeProps(e,{class:c.value,style:{...typeof t.style=="object"?t.style:{},...typeof r.value.style=="object"?r.value.style:{}}}),[W.value&&o.createVNode(Se.Title,{level:5,class:Gt(`${i}-title`,r.value.classNames.title,t.classNames.title),style:{...r.value.styles.title,...t.styles.title}},{default:()=>[W.value]}),o.createVNode("div",{class:d.value,style:{...r.value.styles.list,...t.styles.list}},[(f=t.items)==null?void 0:f.map((S,h)=>{const m=S.children&&S.children.length>0;return o.createVNode("div",{key:S.key||`key_${h}`,style:{...r.value.styles.item,...t.styles.item},class:Gt(`${i}-item`,r.value.classNames.item,t.classNames.item,{[`${i}-item-disabled`]:S.disabled,[`${i}-item-has-nest`]:m}),onClick:()=>{!m&&t.onItemClick&&t.onItemClick({data:S})}},[S.icon&&o.createVNode("div",{class:`${i}-icon`},[S.icon]),o.createVNode("div",{class:Gt(`${i}-content`,r.value.classNames.itemContent,t.classNames.itemContent),style:{...r.value.styles.itemContent,...t.styles.itemContent}},[S.label&&o.createVNode("h6",{class:`${i}-label`},[S.label]),S.description&&o.createVNode("p",{class:`${i}-desc`},[S.description]),m&&o.createVNode(GC,{class:`${i}-nested`,items:S.children,vertical:!0,onItemClick:t.onItemClick,classNames:{list:t.classNames.subList,item:t.classNames.subItem},styles:{list:t.styles.subList,item:t.styles.subItem}},null)])])})])]))}}}),ZD=t=>{const{componentCls:e,antCls:a}=t;return{[e]:{[`${a}-cascader-menus ${a}-cascader-menu`]:{height:"auto"},[`${e}-item`]:{"&-icon":{marginInlineEnd:t.paddingXXS},"&-extra":{marginInlineStart:t.padding}},[`&${e}-block`]:{[`${e}-item-extra`]:{marginInlineStart:"auto"}}}}},zD=()=>({}),VD=An("Suggestion",t=>{const e=ul(t,{});return ZD(e)},zD);function ND(t,e,a,l,n){const[i,r]=we([]),p=(f,S=i.value)=>{let h=o.toValue(t);for(let m=0;m<f-1;m+=1){const g=S[m],A=h.find(b=>b.value===g);if(!A)break;h=A.children||[]}return h},u=f=>f.map((S,h)=>{const m=p(h+1,f).find(g=>g.value===S);return m==null?void 0:m.value}),s=f=>{const S=i.value.length||1,h=p(S),m=h.findIndex(b=>b.value===i.value[S-1]),g=h.length,A=h[(m+f+g)%g];r([...i.value.slice(0,S-1),A.value])},c=()=>{i.value.length>1&&r(i.value.slice(0,i.value.length-1))},d=()=>{const f=p(i.value.length+1);f.length&&r([...i.value,f[0].value])},W=dS(f=>{if(o.toValue(e))switch(console.log("e.key",f),f.key){case"ArrowDown":s(1),f.preventDefault();break;case"ArrowUp":s(-1),f.preventDefault();break;case"ArrowRight":o.toValue(a)?c():d(),f.preventDefault();break;case"ArrowLeft":o.toValue(a)?d():c(),f.preventDefault();break;case"Enter":p(i.value.length+1).length||l(u(i.value)),f.preventDefault();break;case"Escape":n(),f.preventDefault();break}});return o.watch(()=>o.toValue(e),()=>{o.toValue(e)&&r([o.toValue(t)[0].value])},{immediate:!0}),[i,W]}o.mergeDefaults({prefixCls:null,className:null,rootClassName:null,style:null,children:{type:Function},open:{type:Boolean},onOpenChange:{type:Function},items:{type:Function},onSelect:{type:Function},block:{type:Boolean},styles:null,classNames:null},{open:!1});const XC=Symbol("SenderHeaderContext"),SS=o.shallowRef(),TD=t=>{o.provide(XC,t),o.watch(t,()=>{SS.value=o.unref(t),o.triggerRef(SS)},{immediate:!0,deep:!0})},MD=()=>o.inject(XC,o.computed(()=>SS.value||{})),KD=o.defineComponent({props:{value:xl()},setup(t,{slots:e}){return TD(o.computed(()=>t.value)),()=>{var a;return(a=e.default)==null?void 0:a.call(e)}}}),FC=Symbol("ActionButtonContext"),hS=o.shallowRef(),RD=t=>{o.provide(FC,t),o.watch(t,()=>{hS.value=o.unref(t),o.triggerRef(hS)},{immediate:!0,deep:!0})},mS=()=>o.inject(FC,o.computed(()=>hS.value||{})),ED=o.defineComponent({props:{value:xl()},setup(t,{slots:e}){return RD(o.computed(()=>t.value)),()=>{var a;return(a=e.default)==null?void 0:a.call(e)}}}),Ks=o.defineComponent({name:"AXSenderActionButton",__name:"index",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,action:null},{type:"text",disabled:void 0}),setup(t){const e=_e(t,["action","type","disabled","onClick"]);o.toRef(t,"onClick"),o.toRef(t,"disabled");const a=o.useSlots(),l=mS(),n=o.computed(()=>{var p;const u=l.value.disabled,s=(p=l.value)==null?void 0:p[`${t.action}Disabled`];return u??t.disabled??s}),i=o.computed(()=>l.value.prefixCls),r=o.computed(()=>{var p;return(p=l.value)==null?void 0:p[t.action]});return()=>o.createVNode(aa,o.mergeProps({type:t.type},e,{onClick:p=>{n.value||(r.value&&r.value(),t.onClick&&!Array.isArray(t.onClick)&&t.onClick(p))},class:Gt(i.value,{[`${i.value}-disabled`]:n.value})}),{icon:()=>a.default()})}}),PD=o.defineComponent({name:"AXSenderClearButton",__name:"ClearButton",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{disabled:void 0}),setup(t){const e=_e(t,["disabled"]);return()=>o.createVNode(Ks,o.mergeProps({disabled:t.disabled},e,{action:"onClear"}),{default:()=>[o.createVNode(Xf,null,null)]})}}),YD=o.defineComponent({name:"AXSenderStopLoading",__name:"StopLoading",props:{className:null},setup(t){const e=t;return()=>o.createVNode("svg",{color:"currentColor",viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:e.className},[o.createVNode("title",null,[o.createTextVNode("Stop Loading")]),o.createVNode("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"},null),o.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100",opacity:"0.45"},null),o.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100","stroke-dasharray":"600 9999999"},[o.createVNode("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"},null)])])}}),JC=o.defineComponent({name:"AXSenderLoadingButton",__name:"LoadingButton",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{type:"primary",shape:"circle",icon:null,disabled:void 0}),setup(t){const e=_e(t,["type","shape","icon","disabled"]),a=mS(),{token:l}=hn.useToken();return()=>o.createVNode(Ks,o.mergeProps({type:t.type,disabled:t.disabled,shape:t.shape},e,{style:{backgroundColor:"transparent",color:l.value.colorPrimary},class:Gt(`${a.value.prefixCls}-loading-button`),action:"onCancel"}),{default:()=>[o.createVNode(YD,{className:`${a.value.prefixCls}-loading-icon`},null)]})}}),HC=o.defineComponent({name:"AXSenderLoadingButton",__name:"SendButton",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{type:"primary",shape:"circle",disabled:void 0}),setup(t){const e=_e(t,["type","shape","disabled"]);return()=>o.createVNode(Ks,o.mergeProps({type:t.type,shape:t.shape,disabled:t.disabled},e,{action:"onSend"}),{default:()=>[o.createVNode(Pf,null,null)]})}}),pp=1e3,up=4,Rs=140,Es=250,DC=500,Ps=.8,GD=o.defineComponent({name:"AXSenderRecordingIcon",__name:"RecordingIcon",props:{className:null},setup(t){const e=Rs/2;return()=>o.createVNode("svg",{color:"currentColor",viewBox:`0 0 ${pp} ${pp}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:t.className},[o.createVNode("title",null,[o.createTextVNode("Speech Recording")]),Array.from({length:up}).map((a,l)=>{const n=(pp-Rs*up)/(up-1),i=l*(n+Rs),r=pp/2-Es/2,p=pp/2-DC/2;return o.createVNode("rect",{fill:"currentColor",rx:e,ry:e,height:Es,width:Rs,x:i,y:r,key:l},[o.createVNode("animate",{attributeName:"height",values:`${Es}; ${DC}; ${Es}`,keyTimes:"0; 0.5; 1",dur:`${Ps}s`,begin:`${Ps/up*l}s`,repeatCount:"indefinite"},null),o.createVNode("animate",{attributeName:"y",values:`${r}; ${p}; ${r}`,keyTimes:"0; 0.5; 1",dur:`${Ps}s`,begin:`${Ps/up*l}s`,repeatCount:"indefinite"},null)])})])}}),XD=o.defineComponent({name:"AXSenderSpeechButton",__name:"index",props:o.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{type:"text",disabled:void 0}),setup(t){const e=_e(t,["type","disabled"]),a=mS(),{token:l}=hn.useToken(),n=o.computed(()=>a.value.speechRecording),i=o.computed(()=>a.value.prefixCls),r=o.computed(()=>{let p;return n.value?p=o.createVNode(GD,{className:`${i.value}-recording-icon`},null):a.value.onSpeechDisabled?p=o.createVNode(Yf,null,null):p=o.createVNode(Gf,null,null),p});return()=>o.createVNode(Ks,o.mergeProps({type:t.type,disabled:t.disabled},e,{style:{display:"flex",justifyContent:"center",alignItems:"center",color:l.value.colorPrimary},action:"onSpeech"}),{default:()=>[r.value]})}}),FD=t=>{const{componentCls:e,calc:a}=t,l=`${e}-header`;return{[e]:{[l]:{borderBottomWidth:t.lineWidth,borderBottomStyle:"solid",borderBottomColor:t.colorBorder,"&-header":{background:t.colorFillAlter,fontSize:t.fontSize,lineHeight:t.lineHeight,paddingBlock:a(t.paddingSM).sub(t.lineWidthBold).equal(),paddingInlineStart:t.padding,paddingInlineEnd:t.paddingXS,display:"flex",[`${l}-title`]:{flex:"auto"}},"&-content":{padding:t.padding},"&-motion":{transition:["height","border"].map(n=>`${n} ${t.motionDurationSlow}`).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}},"&-collapse-transition":{"&-enter-active":{transition:["max-height","padding-top","padding-bottom"].map(n=>`${n} ${t.motionDurationSlow} ${t.motionEaseInOut}`).join(",")},"&-leave-active":{transition:["max-height","padding-top","padding-bottom"].map(n=>`${n} ${t.motionDurationSlow} ${t.motionEaseInOut}`).join(",")}}}}}},JD=t=>{const{componentCls:e,padding:a,paddingSM:l,paddingXS:n,lineWidth:i,lineWidthBold:r,calc:p}=t;return{[e]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${t.boxShadowTertiary}`,transition:`background ${t.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:p(t.borderRadius).mul(2).equal()},borderColor:t.colorBorder,borderWidth:0,borderStyle:"solid","&:after":{content:'""',position:"absolute",inset:0,pointerEvents:"none",transition:`border-color ${t.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:"inherit"},borderStyle:"inherit",borderColor:"inherit",borderWidth:i},"&:focus-within":{boxShadow:`${t.boxShadowSecondary}`,borderColor:t.colorPrimary,"&:after":{borderWidth:r}},"&-disabled":{background:t.colorBgContainerDisabled},[`&${e}-rtl`]:{direction:"rtl"},[`${e}-content`]:{display:"flex",gap:n,width:"100%",paddingBlock:l,paddingInlineStart:a,paddingInlineEnd:l,boxSizing:"border-box",alignItems:"flex-end"},[`${e}-prefix`]:{flex:"none"},[`${e}-input`]:{padding:0,borderRadius:0,flex:"auto",alignSelf:"center",minHeight:"auto"},[`${e}-actions-list`]:{flex:"none",display:"flex","&-presets":{gap:t.paddingXS}},[`${e}-actions-btn`]:{"&-disabled":{opacity:.45},"&-loading-button":{padding:0,border:0},"&-loading-icon":{height:t.controlHeight,width:t.controlHeight,verticalAlign:"top"},"&-recording-icon":{height:"1.2em",width:"1.2em",verticalAlign:"top"}}}}},HD=()=>({}),DD=An("Sender",t=>{const{paddingXS:e,calc:a}=t,l=ul(t,{SenderContentMaxWidth:`calc(100% - ${Ha(a(e).add(32).equal())})`});return[JD(l),FD(l)]},HD);let Ys;!Ys&&typeof window<"u"&&(Ys=window.SpeechRecognition||window.webkitSpeechRecognition);function UD(t,e){const a=t,l=o.computed(()=>{const S=o.toValue(e);return typeof S=="object"?{controlledRecording:S.recording,onControlledRecordingChange:S.onRecordingChange,speechInControlled:typeof S.recording=="boolean"}:{controlledRecording:void 0,onControlledRecordingChange:void 0,speechInControlled:!1}}),n=o.computed(()=>l.value.controlledRecording),i=l.value.onControlledRecordingChange,r=l.value.speechInControlled,p=o.ref(null);o.watchEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let S=null;navigator.permissions.query({name:"microphone"}).then(h=>{p.value=h.state,h.onchange=function(){p.value=this.state},S=h}),o.onWatcherCleanup(()=>{S&&(S.onchange=null)})}});const u=o.computed(()=>Ys&&p.value!=="denied"),s=o.ref(null),[c,d]=YC(!1,{value:n}),W=o.ref(!1),f=()=>{if(u.value&&!s.value){const S=new Ys;S.onstart=()=>{d(!0)},S.onend=()=>{d(!1)},S.onresult=h=>{var m,g,A;if(!W.value){const b=(A=(g=(m=h.results)==null?void 0:m[0])==null?void 0:g[0])==null?void 0:A.transcript;a(b)}W.value=!1},s.value=S}};return{speechPermission:u,triggerSpeech:S=>{S&&!c.value||(W.value=S,r?i==null||i(!c.value):(f(),s.value&&(c.value?(s.value.stop(),i==null||i(!1)):(s.value.start(),i==null||i(!0)))))},recording:c}}function BD(t,e){for(var a=t,l=0;l<e.length;l+=1){if(a==null)return;a=a[e[l]]}return a}const QD=o.defineComponent({name:"AXSender",__name:"Sender",props:o.mergeDefaults({onKeyPress:{type:Function},prefixCls:null,defaultValue:null,value:null,loading:{type:Boolean},placeholder:null,readOnly:{type:Boolean},submitType:{type:[String,Boolean]},disabled:{type:Boolean},onSubmit:{type:Function},onChange:{type:Function},onCancel:null,onKeyDown:{type:Function},onPaste:{type:Function},onPasteFile:{type:Function},components:null,styles:null,rootClassName:null,classNames:null,style:null,className:null,actions:{type:Function},allowSpeech:null,prefix:null,header:null},{styles:()=>({}),classNames:()=>({}),submitType:"enter",disabled:void 0}),emits:["update:value"],setup(t,{expose:e,emit:a}){const l=_e(t,["prefixCls","styles","classNames","className","rootClassName","style","defaultValue","value","placeholder","readOnly","submitType","onSubmit","loading","components","onCancel","onChange","actions","onKeyPress","onKeyDown","disabled","allowSpeech","prefix","header","onPaste","onPasteFile"]);o.toRef(t,"prefixCls");function n(H,pt,K){return BD(H,pt)||K}const i=a,r=o.useSlots(),{direction:p,getPrefixCls:u}=fa(),s=o.computed(()=>u("sender",t.prefixCls)),c=o.ref(null),d=o.ref(null),W=mn("sender"),f=o.computed(()=>`${s.value}-input`),[S,h,m]=DD(s.value),g=o.computed(()=>Gt(s.value,W.value.className,t.className,t.rootClassName,h.value,m,{[`${s.value}-rtl`]:p.value==="rtl",[`${s.value}-disabled`]:t.disabled})),A=o.computed(()=>`${s.value}-actions-btn`),b=o.computed(()=>`${s.value}-actions-list`),v=o.ref(t.value??t.defaultValue??""),y=H=>{v.value=H};o.watch(()=>t.value,()=>{y(t.value)});const I=(H,pt)=>{y(H),i("update:value",H),t.onChange&&t.onChange(H,pt)},{speechPermission:L,triggerSpeech:w,recording:C}=UD(H=>{I(`${v.value} ${H}`)},()=>t.allowSpeech),k=n(t.components,["input"],ze.TextArea),Z=o.computed(()=>bi(l,{attr:!0,aria:!0,data:!0})),E=o.computed(()=>({...Z.value,ref:d})),z=()=>{v.value&&t.onSubmit&&!t.loading&&t.onSubmit(v.value)},Y=()=>{I("")},O=o.ref(!1),M=()=>{O.value=!0},J=()=>{O.value=!1},F=H=>{const pt=H.key==="Enter"&&!O.value;switch(t.submitType){case"enter":pt&&!H.shiftKey&&(H.preventDefault(),z());break;case"shiftEnter":pt&&H.shiftKey&&(H.preventDefault(),z());break}t.onKeyPress&&t.onKeyPress(H)},V=H=>{var pt,K;const T=(pt=H.clipboardData)==null?void 0:pt.files[0];T&&t.onPasteFile&&(t.onPasteFile(T),H.preventDefault()),(K=t.onPaste)==null||K.call(t,H)},G=H=>{var pt,K;H.target!==((pt=c.value)==null?void 0:pt.querySelector(`.${f.value}`))&&H.preventDefault(),(K=d.value)==null||K.focus()},U=o.computed(()=>{let H=o.createVNode(np,{class:`${b.value}-presets`},{default:()=>[t.allowSpeech&&o.createVNode(XD,null,null),t.loading?o.createVNode(JC,null,null):o.createVNode(HC,null,null)]});const pt={components:{SendButton:HC,ClearButton:PD,LoadingButton:JC}};return r.actions?H=r.actions({ori:H,info:pt}):typeof t.actions=="function"?H=t.actions(H,pt):t.actions&&(H=t.actions),H}),D=o.computed(()=>r.header?r.header():t.header),B=o.computed(()=>r.prefix?r.prefix():t.prefix);return e({nativeElement:c.value,focus:H=>{var pt;return(pt=d.value)==null?void 0:pt.focus(H)},blur:()=>{var H;return(H=d.value)==null?void 0:H.blur()}}),()=>S(o.createVNode("div",{ref:c,class:g.value,style:{...W.value.style,...t.style}},[D.value&&o.createVNode(KD,{value:{prefixCls:s.value}},{default:()=>[D.value]}),o.createVNode("div",{class:`${s.value}-content`,onMousedown:G},[B.value&&o.createVNode("div",{class:Gt(`${s.value}-prefix`,W.value.classNames.prefix,t.classNames.prefix),style:{...W.value.styles.prefix,...t.styles.prefix}},[B.value]),o.createVNode(k,o.mergeProps(E.value,{disabled:t.disabled,style:{...W.value.styles.input,...t.styles.input},class:Gt(f.value,W.value.classNames.input,t.classNames.input),autoSize:{maxRows:8},value:v.value,onChange:H=>{I(H.target.value,H),w(!0)},onPressEnter:F,onCompositionstart:M,onCompositionend:J,onKeydown:t.onKeyDown,placeholder:t.placeholder,onPaste:V,bordered:!1,readOnly:t.readOnly}),null),o.createVNode("div",{class:Gt(b.value,W.value.classNames.actions,t.classNames.actions),style:{...W.value.styles.actions,...t.styles.actions}},[o.createVNode(ED,{value:{prefixCls:A.value,onSend:z,onSendDisabled:!v.value,onClear:Y,onClearDisabled:!v.value,onCancel:t.onCancel,onCancelDisabled:!t.loading,onSpeech:()=>w(!1),onSpeechDisabled:!L.value,speechRecording:C.value,disabled:t.disabled}},{default:()=>[U.value]})])])]))}}),$D=o.defineComponent({name:"AXCollapseTransition",__name:"CollapseTransition",props:{prefixCls:null},setup(t){const e=t,a=o.computed(()=>e.prefixCls+"-collapse-transition"),l={beforeEnter(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0},enter(n){n.dataset.oldOverflow=n.style.overflow,n.scrollHeight!==0?(n.style.maxHeight=`${n.scrollHeight}px`,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom):(n.style.maxHeight=`${n.dataset.oldMaxHeight||999}px`,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom),n.style.overflow="hidden"},afterEnter(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow},beforeLeave(n){n.dataset||(n.dataset={}),n.dataset.oldMaxHeight=n.scrollHeight,n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.dataset.oldOverflow=n.style.overflow,n.style.overflow="hidden",n.style.maxHeight=`${n.scrollHeight}px`},leave(n){n.scrollHeight!==0&&(n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0)},afterLeave(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom}};return(n,i)=>(o.openBlock(),o.createBlock(o.Transition,o.mergeProps({name:a.value},o.toHandlers(l)),{default:o.withCtx(()=>[o.renderSlot(n.$slots,"default")]),_:3},16,["name"]))}}),_D=o.defineComponent({name:"AXSenderHeader",inheritAttrs:!1,__name:"SenderHeader",props:o.mergeDefaults({forceRender:{type:Boolean},open:{type:Boolean},onOpenChange:{type:Function},title:null,children:null,className:null,style:null,classNames:null,styles:null,closable:{type:Boolean}},{classNames:()=>({}),styles:()=>({})}),setup(t){o.toRef(t,"classNames");const e=o.useSlots(),a=MD(),l=o.computed(()=>`${a.value.prefixCls}-header`),n=o.useAttrs();return()=>o.createVNode($D,{prefixCls:l.value},{default:()=>{var i;return[t.open&&o.createVNode("div",o.mergeProps(n,{class:Gt(l.value,t.className),style:{...t.style}}),[(t.closable!==!1||t.title)&&o.createVNode("div",{class:Gt(`${l.value}-header`,t.classNames.header),style:{...t.styles.header}},[o.createVNode("div",{class:`${l.value}-title`},[t.title]),t.closable!==!1&&o.createVNode("div",{class:`${l.value}-close`},[o.createVNode(aa,{type:"text",icon:o.createVNode(un,null,null),size:"small",onClick:()=>{var r;(r=t.onOpenChange)==null||r.call(t,!t.open)}},null)])]),e.default&&o.createVNode("div",{class:Gt(`${l.value}-content`,t.classNames.content),style:{...t.styles.content}},[(i=e.default)==null?void 0:i.call(e)])])]}})}});Object.assign(QD,{Header:_D});const UC=Symbol("AttachmentContext"),gS=o.shallowRef(),tU=t=>{o.provide(UC,t),o.watch(t,()=>{gS.value=o.unref(t),o.triggerRef(gS)},{immediate:!0,deep:!0})},Gs=()=>o.inject(UC,o.computed(()=>gS.value||{})),eU=o.defineComponent({inheritAttrs:!1,props:{value:xl()},setup(t,{slots:e}){return tU(o.computed(()=>t.value)),()=>{var a;return(a=e.default)==null?void 0:a.call(e)}}}),aU=o.defineComponent({name:"AXAttachmentsPlaceholderUploader",__name:"PlaceholderUploader",props:o.mergeDefaults({prefixCls:null,placeholder:null,upload:null,className:null,style:null},{placeholder:()=>({})}),setup(t,{expose:e}){const a=`${t.prefixCls}-placeholder`,l=o.computed(()=>t.placeholder||{}),n=o.useTemplateRef("upload-dragger"),i=Gs(),[r,p]=we(!1),u=()=>{p(!0)},s=W=>{W.currentTarget.contains(W.relatedTarget)||p(!1)},c=()=>{p(!1)};e({nativeElement:n});const d=o.computed(()=>o.isVNode(t.placeholder)?t.placeholder:o.createVNode(np,{align:"center",justify:"center",vertical:!0,class:`${a}-inner`},{default:()=>[o.createVNode(Se.Text,{class:`${a}-icon`},{default:()=>[l.value.icon]}),o.createVNode(Se.Title,{class:`${a}-title`,level:5},{default:()=>[l.value.title]}),o.createVNode(Se.Text,{class:`${a}-description`,type:"secondary"},{default:()=>[l.value.description]})]}));return()=>o.createVNode("div",{class:Gt(a,{[`${a}-drag-in`]:r.value,[`${a}-disabled`]:i.value.disabled},t.className),onDragenter:u,onDragleave:s,onDrop:c,"aria-hidden":i.value.disabled,style:t.style},[o.createVNode(j2.Dragger,o.mergeProps({showUploadList:!1},t.upload,{ref:"upload-dragger",style:{padding:0,border:0,background:"transparent"}}),{default:()=>[d.value]})])}}),BC=o.defineComponent({name:"AXAttachmentsDropArea",__name:"DropArea",props:{prefixCls:null,className:null,getDropContainer:{type:Function},children:null},setup(t){const e=Gs(),[a,l]=we(),[n,i]=we(null);o.watch(()=>t.getDropContainer,()=>{var u;const s=(u=t.getDropContainer)==null?void 0:u.call(t);a.value!==s&&l(s)}),o.watch(()=>!!a.value,()=>{if(a.value){const u=()=>{i(!0)},s=W=>{W.preventDefault()},c=W=>{W.relatedTarget||i(!1)},d=W=>{i(!1),W.preventDefault()};document.addEventListener("dragenter",u),document.addEventListener("dragover",s),document.addEventListener("dragleave",c),document.addEventListener("drop",d),o.onWatcherCleanup(()=>{document.removeEventListener("dragenter",u),document.removeEventListener("dragover",s),document.removeEventListener("dragleave",c),document.removeEventListener("drop",d)})}});const r=o.computed(()=>t.getDropContainer&&a.value&&!e.value.disabled),p=`${t.prefixCls}-drop-area`;return()=>r.value?o.createVNode(o.Teleport,{to:a.value},{default:()=>[o.createVNode("div",{class:Gt(p,t.className,{[`${p}-on-body`]:a.value.tagName==="BODY"}),style:{display:n.value?"block":"none"}},[t.children])]}):null}}),QC=o.defineComponent({name:"AXAttachmentsSilentUploader",__name:"SilentUploader",props:{children:null,upload:null,rootClassName:null},setup(t,{expose:e}){const a=o.useTemplateRef("upload");return e({nativeElement:a}),()=>o.createVNode(j2,o.mergeProps(t.upload,{showUploadList:!1,ref:"upload"}),{default:()=>[t.children]})}}),_C=(t,e)=>{const a=t.__vccOpts||t;for(const[l,n]of e)a[l]=n;return a},lU={},nU={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function oU(t,e){return o.openBlock(),o.createElementBlock("svg",nU,e[0]||(e[0]=[o.createElementVNode("title",null,"audio",-1),o.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[o.createElementVNode("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",fill:"currentColor"})],-1)]))}const iU=_C(lU,[["render",oU]]),rU={},pU={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function uU(t,e){return o.openBlock(),o.createElementBlock("svg",pU,e[0]||(e[0]=[o.createElementVNode("title",null,"video",-1),o.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[o.createElementVNode("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",fill:"currentColor"})],-1)]))}const sU=_C(rU,[["render",uU]]),cU=t=>t.indexOf("image/")===0,Xs=200;function dU(t){return new Promise(e=>{if(!t||!t.type||!cU(t.type)){e("");return}const a=new Image;if(a.onload=()=>{const{width:l,height:n}=a,i=l/n,r=i>1?Xs:Xs*i,p=i>1?Xs/i:Xs,u=document.createElement("canvas");u.width=r,u.height=p,u.style.cssText=`position: fixed; left: 0; top: 0; width: ${r}px; height: ${p}px; z-index: 9999; display: none;`,document.body.appendChild(u),u.getContext("2d").drawImage(a,0,0,r,p);const s=u.toDataURL();document.body.removeChild(u),window.URL.revokeObjectURL(a.src),e(s)},a.crossOrigin="anonymous",t.type.startsWith("image/svg+xml")){const l=new FileReader;l.onload=()=>{l.result&&typeof l.result=="string"&&(a.src=l.result)},l.readAsDataURL(t)}else if(t.type.startsWith("image/gif")){const l=new FileReader;l.onload=()=>{l.result&&e(l.result)},l.readAsDataURL(t)}else a.src=window.URL.createObjectURL(t)})}const Ve=Math.round;function AS(t,e){const a=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],l=a.map(n=>parseFloat(n));for(let n=0;n<3;n+=1)l[n]=e(l[n]||0,a[n]||"",n);return a[3]?l[3]=a[3].includes("%")?l[3]/100:l[3]:l[3]=1,l}const tx=(t,e,a)=>a===0?t:t/100;function sp(t,e){const a=e||255;return t>a?a:t<0?0:t}class LS{constructor(e){Sa(this,"isValid",!0),Sa(this,"r",0),Sa(this,"g",0),Sa(this,"b",0),Sa(this,"a",1),Sa(this,"_h",void 0),Sa(this,"_s",void 0),Sa(this,"_l",void 0),Sa(this,"_v",void 0),Sa(this,"_max",void 0),Sa(this,"_min",void 0),Sa(this,"_brightness",void 0);function a(l){return l[0]in e&&l[1]in e&&l[2]in e}if(e)if(typeof e=="string"){let l=function(i){return n.startsWith(i)};const n=e.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):l("rgb")?this.fromRgbString(n):l("hsl")?this.fromHslString(n):(l("hsv")||l("hsb"))&&this.fromHsvString(n)}else if(e instanceof LS)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(a("rgb"))this.r=sp(e.r),this.g=sp(e.g),this.b=sp(e.b),this.a=typeof e.a=="number"?sp(e.a,1):1;else if(a("hsl"))this.fromHsl(e);else if(a("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const a=this.toHsv();return a.h=e,this._c(a)}getLuminance(){function e(i){const r=i/255;return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}const a=e(this.r),l=e(this.g),n=e(this.b);return .2126*a+.7152*l+.0722*n}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=Ve(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const a=this.getHue(),l=this.getSaturation();let n=this.getLightness()-e/100;return n<0&&(n=0),this._c({h:a,s:l,l:n,a:this.a})}lighten(e=10){const a=this.getHue(),l=this.getSaturation();let n=this.getLightness()+e/100;return n>1&&(n=1),this._c({h:a,s:l,l:n,a:this.a})}mix(e,a=50){const l=this._c(e),n=a/100,i=p=>(l[p]-this[p])*n+this[p],r={r:Ve(i("r")),g:Ve(i("g")),b:Ve(i("b")),a:Ve(i("a")*100)/100};return this._c(r)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const a=this._c(e),l=this.a+a.a*(1-this.a),n=i=>Ve((this[i]*this.a+a[i]*a.a*(1-this.a))/l);return this._c({r:n("r"),g:n("g"),b:n("b"),a:l})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const a=(this.r||0).toString(16);e+=a.length===2?a:"0"+a;const l=(this.g||0).toString(16);e+=l.length===2?l:"0"+l;const n=(this.b||0).toString(16);if(e+=n.length===2?n:"0"+n,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=Ve(this.a*255).toString(16);e+=i.length===2?i:"0"+i}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),a=Ve(this.getSaturation()*100),l=Ve(this.getLightness()*100);return this.a!==1?`hsla(${e},${a}%,${l}%,${this.a})`:`hsl(${e},${a}%,${l}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,a,l){const n=this.clone();return n[e]=sp(a,l),n}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const a=e.replace("#","");function l(n,i){return parseInt(a[n]+a[i||n],16)}a.length<6?(this.r=l(0),this.g=l(1),this.b=l(2),this.a=a[3]?l(3)/255:1):(this.r=l(0,1),this.g=l(2,3),this.b=l(4,5),this.a=a[6]?l(6,7)/255:1)}fromHsl({h:e,s:a,l,a:n}){if(this._h=e%360,this._s=a,this._l=l,this.a=typeof n=="number"?n:1,a<=0){const W=Ve(l*255);this.r=W,this.g=W,this.b=W}let i=0,r=0,p=0;const u=e/60,s=(1-Math.abs(2*l-1))*a,c=s*(1-Math.abs(u%2-1));u>=0&&u<1?(i=s,r=c):u>=1&&u<2?(i=c,r=s):u>=2&&u<3?(r=s,p=c):u>=3&&u<4?(r=c,p=s):u>=4&&u<5?(i=c,p=s):u>=5&&u<6&&(i=s,p=c);const d=l-s/2;this.r=Ve((i+d)*255),this.g=Ve((r+d)*255),this.b=Ve((p+d)*255)}fromHsv({h:e,s:a,v:l,a:n}){this._h=e%360,this._s=a,this._v=l,this.a=typeof n=="number"?n:1;const i=Ve(l*255);if(this.r=i,this.g=i,this.b=i,a<=0)return;const r=e/60,p=Math.floor(r),u=r-p,s=Ve(l*(1-a)*255),c=Ve(l*(1-a*u)*255),d=Ve(l*(1-a*(1-u))*255);switch(p){case 0:this.g=d,this.b=s;break;case 1:this.r=c,this.b=s;break;case 2:this.r=s,this.b=d;break;case 3:this.r=s,this.g=c;break;case 4:this.r=d,this.g=s;break;case 5:default:this.g=s,this.b=c;break}}fromHsvString(e){const a=AS(e,tx);this.fromHsv({h:a[0],s:a[1],v:a[2],a:a[3]})}fromHslString(e){const a=AS(e,tx);this.fromHsl({h:a[0],s:a[1],l:a[2],a:a[3]})}fromRgbString(e){const a=AS(e,(l,n)=>n.includes("%")?Ve(l/100*255):l);this.r=a[0],this.g=a[1],this.b=a[2],this.a=a[3]}}const WU=t=>{const{componentCls:e,calc:a}=t,l=`${e}-list-card`,n=a(t.fontSize).mul(t.lineHeight).mul(2).add(t.paddingSM).add(t.paddingSM).equal();return{[l]:{borderRadius:t.borderRadius,position:"relative",background:t.colorFillContent,borderWidth:t.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${l}-name,${l}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${l}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${l}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:a(t.paddingSM).sub(t.lineWidth).equal(),paddingInlineStart:a(t.padding).add(t.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:t.paddingXS,alignItems:"flex-start",width:236,[`${l}-icon`]:{fontSize:a(t.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:a(t.paddingXXS).mul(1.5).equal(),flex:"none"},[`${l}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${l}-desc`]:{color:t.colorTextTertiary}},"&-type-preview":{width:n,height:n,lineHeight:1,[`&:not(${l}-status-error)`]:{border:0},img:{width:"100%",height:"100%",verticalAlign:"top",objectFit:"cover",borderRadius:"inherit"},[`${l}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${t.opacityLoading})`,borderRadius:"inherit"},[`&${l}-status-error`]:{[`img, ${l}-img-mask`]:{borderRadius:a(t.borderRadius).sub(t.lineWidth).equal()},[`${l}-desc`]:{paddingInline:t.paddingXXS}},[`${l}-progress`]:{}},[`${l}-remove`]:{position:"absolute",top:0,insetInlineEnd:0,border:0,padding:t.paddingXXS,background:"transparent",lineHeight:1,transform:"translate(50%, -50%)",fontSize:t.fontSize,cursor:"pointer",opacity:t.opacityLoading,display:"none","&:dir(rtl)":{transform:"translate(-50%, -50%)"},"&:hover":{opacity:1},"&:active":{opacity:t.opacityLoading}},[`&:hover ${l}-remove`]:{display:"block"},"&-status-error":{borderColor:t.colorError,[`${l}-desc`]:{color:t.colorError}},"&-motion":{overflow:"hidden",transition:["opacity","width","margin","padding"].map(i=>`${i} ${t.motionDurationSlow}`).join(","),[`${l}-remove`]:{display:"none !important"},"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:a(t.paddingSM).mul(-1).equal()}}}}},bS={"&, *":{boxSizing:"border-box"}},fU=t=>{const{componentCls:e,calc:a,antCls:l}=t,n=`${e}-drop-area`,i=`${e}-placeholder`;return{[n]:{position:"absolute",inset:0,zIndex:t.zIndexPopupBase,...bS,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${i}-inner`]:{display:"none"}},[i]:{padding:0}},"&":{[i]:{height:"100%",borderRadius:t.borderRadius,borderWidth:t.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:t.padding,position:"relative",backdropFilter:"blur(10px)",...bS,[`${l}-upload-wrapper ${l}-upload${l}-upload-btn`]:{padding:0},[`&${i}-drag-in`]:{borderColor:t.colorPrimaryHover},[`&${i}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${i}-inner`]:{gap:a(t.paddingXXS).div(2).equal()},[`${i}-icon`]:{fontSize:t.fontSizeHeading2,lineHeight:1},[`${i}-title${i}-title`]:{margin:0,fontSize:t.fontSize,lineHeight:t.lineHeight},[`${i}-description`]:{}}}}},SU=t=>{const{componentCls:e,calc:a}=t,l=`${e}-list`,n=a(t.fontSize).mul(t.lineHeight).mul(2).add(t.paddingSM).add(t.paddingSM).equal();return{[e]:{position:"relative",width:"100%",...bS,[l]:{display:"flex",flexWrap:"wrap",gap:t.paddingSM,fontSize:t.fontSize,lineHeight:t.lineHeight,color:t.colorText,paddingBlock:t.paddingSM,paddingInline:t.padding,width:"100%",background:t.colorBgContainer,scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},"&-overflow-scrollX, &-overflow-scrollY":{"&:before, &:after":{content:'""',position:"absolute",opacity:0,transition:`opacity ${t.motionDurationSlow}`,zIndex:1}},"&-overflow-ping-start:before":{opacity:1},"&-overflow-ping-end:after":{opacity:1},"&-overflow-scrollX":{overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap","&:before, &:after":{insetBlock:0,width:8},"&:before":{insetInlineStart:0,background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetInlineEnd:0,background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:dir(rtl)":{"&:before":{background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"}}},"&-overflow-scrollY":{overflowX:"hidden",overflowY:"auto",maxHeight:a(n).mul(3).equal(),"&:before, &:after":{insetInline:0,height:8},"&:before":{insetBlockStart:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetBlockEnd:0,background:"linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"}},"&-upload-btn":{width:n,height:n,fontSize:t.fontSizeHeading2,color:"#999"},"&-prev-btn, &-next-btn":{position:"absolute",top:"50%",transform:"translateY(-50%)",boxShadow:t.boxShadowTertiary,opacity:0,pointerEvents:"none"},"&-prev-btn":{left:{_skip_check_:!0,value:t.padding}},"&-next-btn":{right:{_skip_check_:!0,value:t.padding}},"&:dir(ltr)":{[`&${l}-overflow-ping-start ${l}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${l}-overflow-ping-end ${l}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${l}-overflow-ping-end ${l}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${l}-overflow-ping-start ${l}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},hU=t=>{const{colorBgContainer:e}=t;return{colorBgPlaceholderHover:new LS(e).setA(.85).toRgbString()}},ex=An("Attachments",t=>{const e=ul(t,{});return[fU(e),SU(e),WU(e)]},hU),yS=" ",vS="#8c8c8c",ax=o.defineComponent({name:"AXAttachmentsFileListCard",__name:"FileListCard",props:{prefixCls:null,item:null,onRemove:{type:Function},className:null,style:null},setup(t,{expose:e}){o.toRef(t,"prefixCls");const a=["png","jpg","jpeg","gif","bmp","webp","svg"],l=[{icon:o.createVNode(Ff,null,null),color:"#22b35e",ext:["xlsx","xls"]},{icon:o.createVNode(Jf,null,null),color:vS,ext:a},{icon:o.createVNode(Hf,null,null),color:vS,ext:["md","mdx"]},{icon:o.createVNode(Df,null,null),color:"#ff4d4f",ext:["pdf"]},{icon:o.createVNode(Uf,null,null),color:"#ff6e31",ext:["ppt","pptx"]},{icon:o.createVNode(Qf,null,null),color:"#1677ff",ext:["doc","docx"]},{icon:o.createVNode($f,null,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:o.createVNode(sU,null,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:o.createVNode(iU,null,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function n(z,Y){return Y.some(O=>z.toLowerCase()===`.${O}`)}function i(z){let Y=z;const O=["B","KB","MB","GB","TB","PB","EB"];let M=0;for(;Y>=1024&&M<O.length-1;)Y/=1024,M++;return`${Y.toFixed(0)} ${O[M]}`}const r=Gs(),p=o.computed(()=>r.value.disabled),u=o.computed(()=>t.item.name),s=o.computed(()=>t.item.size),c=o.computed(()=>t.item.percent),d=o.computed(()=>t.item.status||"done"),W=o.computed(()=>t.item.description),{getPrefixCls:f}=fa(),S=o.computed(()=>f("attachment",t.prefixCls)),h=`${S.value}-list-card`,[m,g,A]=ex(S),b=o.useTemplateRef("file-list-card-container"),v=o.computed(()=>{const z=u.value||"",Y=z.match(/^(.*)\.[^.]+$/);return{namePrefix:Y?Y[1]:z,nameSuffix:Y?z.slice(Y[1].length):""}}),y=o.computed(()=>n(v.value.nameSuffix,a)),I=o.computed(()=>W.value?W.value:d.value==="uploading"?`${c.value||0}%`:d.value==="error"?t.item.response||yS:s.value?i(s.value):yS),L=o.computed(()=>{for(const{ext:z,icon:Y,color:O}of l)if(n(v.value.nameSuffix,z))return{icon:Y,iconColor:O};return{icon:o.createVNode(Bf,{key:"defaultIcon"},null),iconColor:vS}}),[w,C]=we();o.watch(()=>t.item.originFileObj,()=>{if(t.item.originFileObj){let z=!0;dU(t.item.originFileObj).then(Y=>{z&&C(Y)}),o.onWatcherCleanup(()=>{z=!1})}C(void 0)},{immediate:!0});const k=o.computed(()=>t.item.thumbUrl||t.item.url||w.value),Z=o.computed(()=>y.value&&(t.item.originFileObj||k.value)),E=o.computed(()=>Z.value?o.createVNode(o.Fragment,null,[k.value&&o.createVNode("img",{alt:"preview",src:k.value},null),d.value!=="done"&&o.createVNode("div",{class:`${h}-img-mask`},[d.value==="uploading"&&c.value!==void 0&&o.createVNode(u2,{percent:c.value,prefixCls:h},null),d.value==="error"&&o.createVNode("div",{class:`${h}-desc`},[o.createVNode("div",{class:`${h}-ellipsis-prefix`},[I.value])])])]):o.createVNode(o.Fragment,null,[o.createVNode("div",{class:`${h}-icon`,style:{color:L.value.iconColor}},[L.value.icon]),o.createVNode("div",{class:`${h}-content`},[o.createVNode("div",{class:`${h}-name`},[o.createVNode("div",{class:`${h}-ellipsis-prefix`},[v.value.namePrefix??yS]),o.createVNode("div",{class:`${h}-ellipsis-suffix`},[v.value.nameSuffix])]),o.createVNode("div",{class:`${h}-desc`},[o.createVNode("div",{class:`${h}-ellipsis-prefix`},[I.value])])])]));return e({nativeElement:b}),()=>m(o.createVNode("div",{class:Gt(h,{[`${h}-status-${d.value}`]:d.value,[`${h}-type-preview`]:Z.value,[`${h}-type-overview`]:!Z.value},t.className,g.value,A),style:t.style,ref:"file-list-card-container"},[E.value,!p.value&&t.onRemove&&o.createVNode("button",{type:"button",class:`${h}-remove`,onClick:()=>{t.onRemove(t.item)}},[o.createVNode(Ja,null,null)])]))}}),lx=1,mU=o.defineComponent({name:"AXAttachmentsFileList",__name:"FileList",props:{prefixCls:null,items:null,onRemove:{type:Function},overflow:null,upload:null,listClassName:null,listStyle:null,itemClassName:null,itemStyle:null},setup(t){const e=o.computed(()=>`${t.prefixCls}-list`),a=o.useTemplateRef("file-list-container"),[l,n]=we(!1),i=Gs();o.watchEffect(()=>{n(!0),o.onWatcherCleanup(()=>{n(!1)})});const[r,p]=we(!1),[u,s]=we(!1),c=()=>{const S=a.value;S&&(t.overflow==="scrollX"?(p(Math.abs(S.scrollLeft)>=lx),s(S.scrollWidth-S.clientWidth-Math.abs(S.scrollLeft)>=lx)):t.overflow==="scrollY"&&(p(S.scrollTop!==0),s(S.scrollHeight-S.clientHeight!==S.scrollTop)))};o.watch(()=>t.overflow,()=>{c()},{immediate:!0});const d=S=>{const h=a.value;h&&h.scrollTo({left:h.scrollLeft+S*h.clientWidth,behavior:"smooth"})},W=()=>{d(-1)},f=()=>{d(1)};return()=>o.createVNode("div",{class:Gt(e.value,{[`${e.value}-overflow-${t.overflow}`]:t.overflow,[`${e.value}-overflow-ping-start`]:r.value,[`${e.value}-overflow-ping-end`]:u.value},t.listClassName),ref:"file-list-container",onScroll:c,style:t.listStyle},[t.items.map(S=>o.createVNode(ax,{key:S.uid,prefixCls:t.prefixCls,item:S,onRemove:t.onRemove,className:Gt(t.itemClassName),style:{...t.itemStyle}},null)),!i.value.disabled&&o.createVNode(QC,{upload:t.upload,children:o.createVNode(aa,{class:`${e.value}-upload-btn`,type:"dashed"},{default:()=>[o.createVNode(uf,{class:`${e.value}-upload-btn-icon`},null)]})},null),t.overflow==="scrollX"&&o.createVNode(o.Fragment,null,[o.createVNode(aa,{size:"small",shape:"circle",class:`${e.value}-prev-btn`,icon:o.createVNode(Hr,null,null),onClick:W},null),o.createVNode(aa,{size:"small",shape:"circle",class:`${e.value}-next-btn`,icon:o.createVNode(io,null,null),onClick:f},null)])])}});function gU(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!o.isVNode(t)}const AU=o.defineComponent({name:"AXAttachments",__name:"Attachments",props:o.mergeDefaults({capture:null,type:null,name:null,defaultFileList:null,action:null,directory:null,data:null,method:null,headers:null,showUploadList:null,multiple:null,accept:null,beforeUpload:null,onChange:{type:Function},"onUpdate:fileList":null,onDrop:null,listType:null,onPreview:null,onDownload:null,onReject:null,onRemove:null,remove:null,supportServerRender:null,disabled:{type:Boolean},prefixCls:null,customRequest:null,withCredentials:null,openFileDialogOnClick:null,locale:null,id:null,previewFile:null,transformFile:null,iconRender:null,isImageUrl:null,progress:null,itemRender:null,maxCount:null,height:null,removeIcon:null,downloadIcon:null,previewIcon:null,rootClassName:null,rootStyle:null,style:null,className:null,classNames:null,styles:null,children:null,placeholder:{type:Function},getDropContainer:{type:Function},items:null,overflow:null},{items:()=>[],classNames:()=>({}),styles:()=>({})}),setup(t,{expose:e}){const a=_e(t,["prefixCls","rootClassName","rootStyle","className","style","items","children","getDropContainer","placeholder","onChange","overflow","disabled","classNames","styles"]);o.toRef(t,"prefixCls");const l=o.useSlots(),{getPrefixCls:n,direction:i}=fa(),r=n("attachment",t.prefixCls),p=mn("attachments"),u=o.computed(()=>p.value.classNames),s=o.computed(()=>p.value.styles),c=o.useTemplateRef("attachments-container"),d=o.useTemplateRef("attachments-upload"),[W,f,S]=ex(r),h=o.computed(()=>Gt(f.value,S)),[m,g]=we(t.items);o.watch(()=>t.items,()=>{g(t.items)});const A=L=>{var w;g(L.fileList),(w=t.onChange)==null||w.call(t,L)},b=o.computed(()=>({...a,fileList:m.value,onChange:A})),v=L=>{const w=m.value.filter(C=>C.uid!==L.uid);A({file:L,fileList:w})},y=(L,w,C)=>{const k=l.placeholder?l.placeholder({type:L}):typeof t.placeholder=="function"?t.placeholder(L):t.placeholder;return o.createVNode(aU,{placeholder:k,upload:b.value,prefixCls:r,className:Gt(u.value.placeholder,t.classNames.placeholder),style:{...s.value.placeholder,...t.styles.placeholder,...w==null?void 0:w.style}},null)},I=o.computed(()=>m.value.length>0);return e({nativeElement:c.value,upload:L=>{var w,C;const k=(C=(w=d.value)==null?void 0:w.nativeElement)==null?void 0:C.querySelector('input[type="file"]');if(k){const Z=new DataTransfer;Z.items.add(L),k.files=Z.files,k.dispatchEvent(new Event("change",{bubbles:!0}))}}}),()=>{let L;return W(o.createVNode(eU,{value:{disabled:t.disabled}},{default:()=>[t.children?o.createVNode(o.Fragment,null,[o.createVNode(QC,{upload:b.value,rootClassName:t.rootClassName,ref:"attachments-upload",children:t.children},null),o.createVNode(BC,{getDropContainer:t.getDropContainer,prefixCls:r,className:Gt(h.value,t.rootClassName),children:y("drop")},null)]):o.createVNode("div",{class:Gt(r,h.value,{[`${r}-rtl`]:i.value==="rtl"},t.className,t.rootClassName),style:{...t.rootStyle,...t.style},dir:i.value||"ltr",ref:"attachments-container"},[o.createVNode(mU,{prefixCls:r,items:m.value,onRemove:v,overflow:t.overflow,upload:b.value,listClassName:Gt(u.value.list,t.classNames.list),listStyle:{...s.value.list,...t.styles.list,...!I.value&&{display:"none"}},itemClassName:Gt(u.value.item,t.classNames.item),itemStyle:{...s.value.item,...t.styles.item}},null),y("inline",I.value?{style:{display:"none"}}:{},d.value),o.createVNode(BC,{getDropContainer:t.getDropContainer||(()=>c.value),prefixCls:r,className:h.value},gU(L=y("drop"))?L:{default:()=>[L]})])]}))}}});Object.assign(AU,{FileCard:ax});const LU=(t,e,a)=>{const l=o.computed(()=>{const p=o.toValue(t);let u={expandedKeys:[],onExpand:()=>{}};return p?(typeof p=="object"&&(u={...u,...p}),{enableCollapse:!0,customizeExpandedKeys:u.expandedKeys,customizeOnExpand:u.onExpand}):{enableCollapse:!1,customizeExpandedKeys:u.expandedKeys,customizeOnExpand:u.onExpand}}),[n,i]=we(l.value.customizeExpandedKeys),r=p=>{var u,s;if(!l.value.enableCollapse)return;const c=n.value.includes(p)?n.value.filter(d=>d!==p):[...n.value,p];(s=(u=l.value).customizeOnExpand)==null||s.call(u,c),i(c)};return[o.computed(()=>l.value.enableCollapse),n,r]};var Fs=(t=>(t.PENDING="pending",t.SUCCESS="success",t.ERROR="error",t))(Fs||{});const bU=t=>{const{componentCls:e}=t,a=`${e}-item`,l={[Fs.PENDING]:t.colorPrimaryText,[Fs.SUCCESS]:t.colorSuccessText,[Fs.ERROR]:t.colorErrorText},n=Object.keys(l);return n.reduce((i,r)=>{const p=l[r];return n.forEach(u=>{const s=`& ${a}-${r}-${u}`,c=r===u?{}:{backgroundColor:"none !important",backgroundImage:`linear-gradient(${p}, ${l[u]})`};i[s]={[`& ${a}-icon, & > *::before`]:{backgroundColor:`${p} !important`},"& > :last-child::before":c}}),i},{})},yU=t=>{const{calc:e,componentCls:a}=t,l=`${a}-item`,n={content:'""',width:e(t.lineWidth).mul(2).equal(),display:"block",position:"absolute",insetInlineEnd:"none",backgroundColor:t.colorTextPlaceholder};return{"& > :last-child > :last-child":{"&::before":{display:"none !important"},[`&${l}-footer`]:{"&::before":{display:"block !important",bottom:0}}},[`& > ${l}`]:{[`& ${l}-header, & ${l}-content, & ${l}-footer`]:{position:"relative","&::before":{bottom:e(t.itemGap).mul(-1).equal()}},[`& ${l}-header, & ${l}-content`]:{marginInlineStart:e(t.itemSize).mul(-1).equal(),"&::before":{...n,insetInlineStart:e(t.itemSize).div(2).sub(t.lineWidth).equal()}},[`& ${l}-header::before`]:{top:t.itemSize,bottom:e(t.itemGap).mul(-2).equal()},[`& ${l}-content::before`]:{top:"100%"},[`& ${l}-footer::before`]:{...n,top:0,insetInlineStart:e(t.itemSize).div(-2).sub(t.lineWidth).equal()}}}},vU=t=>{const{componentCls:e}=t,a=`${e}-item`;return{[a]:{display:"flex",flexDirection:"column",[`& ${a}-collapsible`]:{cursor:"pointer"},[`& ${a}-header`]:{display:"flex",marginBottom:t.itemGap,gap:t.itemGap,alignItems:"flex-start",[`& ${a}-icon`]:{height:t.itemSize,width:t.itemSize,fontSize:t.itemFontSize,display:"flex",justifyContent:"center",alignItems:"center"},[`& ${a}-extra`]:{height:t.itemSize,maxHeight:t.itemSize},[`& ${a}-header-box`]:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",[`& ${a}-title`]:{height:t.itemSize,lineHeight:`${Ha(t.itemSize)}`,maxHeight:t.itemSize,fontSize:t.itemFontSize,[`& ${a}-collapse-icon`]:{marginInlineEnd:t.marginXS}},[`& ${a}-desc`]:{fontSize:t.itemFontSize}}},[`& ${a}-content`]:{[`& ${a}-content-hidden`]:{display:"none"},[`& ${a}-content-box`]:{padding:t.itemGap,display:"inline-block",maxWidth:`calc(100% - ${t.itemSize})`,borderRadius:t.borderRadiusLG,backgroundColor:t.colorBgContainer,border:`${Ha(t.lineWidth)} ${t.lineType} ${t.colorBorderSecondary}`}},[`& ${a}-footer`]:{marginTop:t.itemGap,display:"inline-flex"}}}},IS=(t,e="middle")=>{const{componentCls:a}=t,l={large:{itemSize:t.itemSizeLG,itemGap:t.itemGapLG,itemFontSize:t.itemFontSizeLG},middle:{itemSize:t.itemSize,itemGap:t.itemGap,itemFontSize:t.itemFontSize},small:{itemSize:t.itemSizeSM,itemGap:t.itemGapSM,itemFontSize:t.itemFontSizeSM}}[e];return{[`&${a}-${e}`]:{paddingInlineStart:l.itemSize,gap:l.itemGap,...vU({...t,...l}),...yU({...t,...l})}}},IU=t=>{const{componentCls:e}=t;return{[e]:{display:"flex",flexDirection:"column",...bU(t),...IS(t),...IS(t,"large"),...IS(t,"small"),[`&${e}-rtl`]:{direction:"rtl"}}}},CU=An("ThoughtChain",t=>{const e=ul(t,{itemFontSizeSM:t.fontSizeSM,itemSizeSM:t.calc(t.controlHeightXS).add(t.controlHeightSM).div(2).equal(),itemGapSM:t.marginSM,itemFontSize:t.fontSize,itemSize:t.calc(t.controlHeightSM).add(t.controlHeight).div(2).equal(),itemGap:t.margin,itemFontSizeLG:t.fontSizeLG,itemSizeLG:t.calc(t.controlHeight).add(t.controlHeightLG).div(2).equal(),itemGapLG:t.marginLG});return[IU(e)]}),nx=Symbol("ThoughtChainNodeContext"),CS=o.shallowRef(),xU=t=>{o.provide(nx,t),o.watch(t,()=>{CS.value=o.unref(t),o.triggerRef(CS)},{immediate:!0,deep:!0})},wU=()=>o.inject(nx,o.computed(()=>CS.value||{})),OU=o.defineComponent({props:{value:xl()},setup(t,{slots:e}){return xU(o.computed(()=>t.value)),()=>{var a;return(a=e.default)==null?void 0:a.call(e)}}}),kU=o.defineComponent({name:"AXThoughtChainNode",__name:"item",props:o.mergeDefaults({info:null,nextStatus:null,onClick:{type:Function}},{info:()=>({})}),setup(t){const e=_e(t,["info","nextStatus","onClick"]),a=o.computed(()=>bi(e,{attr:!0,aria:!0,data:!0})),l=wU(),n=o.computed(()=>l.value.prefixCls),i=o.computed(()=>l.value.enableCollapse),r=o.computed(()=>l.value.expandedKeys),p=o.computed(()=>l.value.direction),u=o.computed(()=>l.value.classNames),s=o.computed(()=>l.value.styles),c=o.useId(),d=o.computed(()=>t.info.key??c),W=o.computed(()=>t.info.icon),f=o.computed(()=>t.info.title),S=o.computed(()=>t.info.extra),h=o.computed(()=>t.info.content),m=o.computed(()=>t.info.footer),g=o.computed(()=>t.info.status),A=o.computed(()=>t.info.description),b=o.computed(()=>`${n.value}-item`),v=()=>{var L;return(L=t.onClick)==null?void 0:L.call(t,d.value)},y=o.computed(()=>{var L;return(L=r.value)==null?void 0:L.includes(d.value)}),I=o.computed(()=>i.value?y.value:!0);return()=>o.createVNode("div",o.mergeProps(a.value,{class:Gt(b.value,{[`${b.value}-${g.value}${t.nextStatus?`-${t.nextStatus}`:""}`]:g.value},e.class),style:e.style}),[o.createVNode("div",{class:Gt(`${b.value}-header`,u.value.itemHeader),style:s.value.itemHeader,onClick:v},[o.createVNode(oo,{icon:W.value,class:`${b.value}-icon`},null),o.createVNode("div",{class:Gt(`${b.value}-header-box`,{[`${b.value}-collapsible`]:i.value&&h.value})},[o.createVNode(Se.Text,{strong:!0,ellipsis:{tooltip:{placement:p.value==="rtl"?"topRight":"topLeft",title:f.value}},class:`${b.value}-title`},{default:()=>[i.value&&h.value&&(p.value==="rtl"?o.createVNode(Hr,{class:`${b.value}-collapse-icon`,rotate:y.value?-90:0},null):o.createVNode(io,{class:`${b.value}-collapse-icon`,rotate:y.value?90:0},null)),f.value]}),A.value&&o.createVNode(Se.Text,{class:`${b.value}-desc`,ellipsis:{tooltip:{placement:p.value==="rtl"?"topRight":"topLeft",title:A.value}},type:"secondary"},{default:()=>[A.value]})]),S.value&&o.createVNode("div",{class:`${b.value}-extra`},[S.value])]),h.value&&o.withDirectives(o.createVNode("div",{class:Gt(`${b.value}-content`)},[o.createVNode("div",{class:Gt(`${b.value}-content-box`,u.value.itemContent),style:s.value.itemContent},[h.value])]),[[o.vShow,I.value]]),m.value&&o.createVNode("div",{class:Gt(`${b.value}-footer`,u.value.itemFooter),style:s.value.itemFooter},[m.value])])}});o.mergeDefaults({items:null,collapsible:{type:Boolean},size:null,styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({}),size:"middle"});function cp(t){"@babel/helpers - typeof";return cp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cp(t)}function jU(t,e){if(cp(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var l=a.call(t,e||"default");if(cp(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function qU(t){var e=jU(t,"string");return cp(e)=="symbol"?e:e+""}function ZU(t,e,a){return(e=qU(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function ox(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);e&&(l=l.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,l)}return a}function lt(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?ox(Object(a),!0).forEach(function(l){ZU(t,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ox(Object(a)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(a,l))})}return t}function x(){return x=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var l in a)({}).hasOwnProperty.call(a,l)&&(t[l]=a[l])}return t},x.apply(null,arguments)}const zU=t=>typeof t=="function",VU=Array.isArray,NU=t=>typeof t=="string",TU=t=>t!==null&&typeof t=="object",MU=/^on[^a-z]/,KU=t=>MU.test(t),ix=t=>{const e=Object.create(null);return a=>e[a]||(e[a]=t(a))},RU=/-(\w)/g,dp=ix(t=>t.replace(RU,(e,a)=>a?a.toUpperCase():"")),EU=/\B([A-Z])/g,PU=ix(t=>t.replace(EU,"-$1").toLowerCase()),YU=Object.prototype.hasOwnProperty,rx=(t,e)=>YU.call(t,e);function GU(t,e,a,l){const n=t[a];if(n!=null){const i=rx(n,"default");if(i&&l===void 0){const r=n.default;l=n.type!==Function&&zU(r)?r():r}n.type===Boolean&&(!rx(e,a)&&!i?l=!1:l===""&&(l=!0))}return l}function px(t){return typeof t=="number"?`${t}px`:t}function xt(){const t=[];for(let e=0;e<arguments.length;e++){const a=e<0||arguments.length<=e?void 0:arguments[e];if(a){if(NU(a))t.push(a);else if(VU(a))for(let l=0;l<a.length;l++){const n=xt(a[l]);n&&t.push(n)}else if(TU(a))for(const l in a)a[l]&&t.push(l)}}return t.join(" ")}var ux=function(){if(typeof Map<"u")return Map;function t(e,a){var l=-1;return e.some(function(n,i){return n[0]===a?(l=i,!0):!1}),l}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(a){var l=t(this.__entries__,a),n=this.__entries__[l];return n&&n[1]},e.prototype.set=function(a,l){var n=t(this.__entries__,a);~n?this.__entries__[n][1]=l:this.__entries__.push([a,l])},e.prototype.delete=function(a){var l=this.__entries__,n=t(l,a);~n&&l.splice(n,1)},e.prototype.has=function(a){return!!~t(this.__entries__,a)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(a,l){l===void 0&&(l=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];a.call(l,r[1],r[0])}},e}()}(),xS=typeof window<"u"&&typeof document<"u"&&window.document===document,Js=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),XU=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Js):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),FU=2;function JU(t,e){var a=!1,l=!1,n=0;function i(){a&&(a=!1,t()),l&&p()}function r(){XU(i)}function p(){var u=Date.now();if(a){if(u-n<FU)return;l=!0}else a=!0,l=!1,setTimeout(r,e);n=u}return p}var HU=20,DU=["top","right","bottom","left","width","height","size","weight"],UU=typeof MutationObserver<"u",BU=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=JU(this.refresh.bind(this),HU)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var a=this.observers_,l=a.indexOf(e);~l&&a.splice(l,1),!a.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(a){return a.gatherActive(),a.hasActive()});return e.forEach(function(a){return a.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!xS||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),UU?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!xS||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var a=e.propertyName,l=a===void 0?"":a,n=DU.some(function(i){return!!~l.indexOf(i)});n&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),sx=function(t,e){for(var a=0,l=Object.keys(e);a<l.length;a++){var n=l[a];Object.defineProperty(t,n,{value:e[n],enumerable:!1,writable:!1,configurable:!0})}return t},yi=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||Js},cx=Ds(0,0,0,0);function Hs(t){return parseFloat(t)||0}function dx(t){for(var e=[],a=1;a<arguments.length;a++)e[a-1]=arguments[a];return e.reduce(function(l,n){var i=t["border-"+n+"-width"];return l+Hs(i)},0)}function QU(t){for(var e=["top","right","bottom","left"],a={},l=0,n=e;l<n.length;l++){var i=n[l],r=t["padding-"+i];a[i]=Hs(r)}return a}function $U(t){var e=t.getBBox();return Ds(0,0,e.width,e.height)}function _U(t){var e=t.clientWidth,a=t.clientHeight;if(!e&&!a)return cx;var l=yi(t).getComputedStyle(t),n=QU(l),i=n.left+n.right,r=n.top+n.bottom,p=Hs(l.width),u=Hs(l.height);if(l.boxSizing==="border-box"&&(Math.round(p+i)!==e&&(p-=dx(l,"left","right")+i),Math.round(u+r)!==a&&(u-=dx(l,"top","bottom")+r)),!eB(t)){var s=Math.round(p+i)-e,c=Math.round(u+r)-a;Math.abs(s)!==1&&(p-=s),Math.abs(c)!==1&&(u-=c)}return Ds(n.left,n.top,p,u)}var tB=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof yi(t).SVGGraphicsElement}:function(t){return t instanceof yi(t).SVGElement&&typeof t.getBBox=="function"}}();function eB(t){return t===yi(t).document.documentElement}function aB(t){return xS?tB(t)?$U(t):_U(t):cx}function lB(t){var e=t.x,a=t.y,l=t.width,n=t.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,r=Object.create(i.prototype);return sx(r,{x:e,y:a,width:l,height:n,top:a,right:e+l,bottom:n+a,left:e}),r}function Ds(t,e,a,l){return{x:t,y:e,width:a,height:l}}var nB=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ds(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=aB(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),oB=function(){function t(e,a){var l=lB(a);sx(this,{target:e,contentRect:l})}return t}(),iB=function(){function t(e,a,l){if(this.activeObservations_=[],this.observations_=new ux,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=a,this.callbackCtx_=l}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof yi(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(e)||(a.set(e,new nB(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof yi(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(e)&&(a.delete(e),a.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(a){a.isActive()&&e.activeObservations_.push(a)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,a=this.activeObservations_.map(function(l){return new oB(l.target,l.broadcastRect())});this.callback_.call(e,a,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Wx=typeof WeakMap<"u"?new WeakMap:new ux,fx=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var a=BU.getInstance(),l=new iB(e,a,this);Wx.set(this,l)}return t}();["observe","unobserve","disconnect"].forEach(function(t){fx.prototype[t]=function(){var e;return(e=Wx.get(this))[t].apply(e,arguments)}});var Sx=function(){return typeof Js.ResizeObserver<"u"?Js.ResizeObserver:fx}();const wS=t=>t!=null&&t!=="",De=(t,e)=>{const a=x({},t);return Object.keys(e).forEach(l=>{const n=a[l];if(n)n.type||n.default?n.default=e[l]:n.def?n.def(e[l]):a[l]={type:n,default:e[l]};else throw new Error(`not have ${l} prop`)}),a},hx=t=>{const e=Object.keys(t),a={},l={},n={};for(let i=0,r=e.length;i<r;i++){const p=e[i];KU(p)?(a[p[2].toLowerCase()+p.slice(3)]=t[p],l[p]=t[p]):n[p]=t[p]}return{onEvents:l,events:a,extraAttrs:n}},rB=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const a={},l=/;(?![^(]*\))/g,n=/:(.+)/;return typeof t=="object"?t:(t.split(l).forEach(function(i){if(i){const r=i.split(n);if(r.length>1){const p=e?dp(r[0].trim()):r[0].trim();a[p]=r[1].trim()}}}),a)},vi=(t,e)=>t[e]!==void 0,mx=Symbol("skipFlatten"),Ne=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const a=Array.isArray(t)?t:[t],l=[];return a.forEach(n=>{Array.isArray(n)?l.push(...Ne(n,e)):n&&n.type===o.Fragment?n.key===mx?l.push(n):l.push(...Ne(n.children,e)):n&&o.isVNode(n)?e&&!Lx(n)?l.push(n):e||l.push(n):wS(n)&&l.push(n)}),l},pB=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(o.isVNode(t))return t.type===o.Fragment?e==="default"?Ne(t.children):[]:t.children&&t.children[e]?Ne(t.children[e](a)):[];{const l=t.$slots[e]&&t.$slots[e](a);return Ne(l)}},Rl=t=>{var e;let a=((e=t==null?void 0:t.vnode)===null||e===void 0?void 0:e.el)||t&&(t.$el||t);for(;a&&!a.tagName;)a=a.nextSibling;return a},uB=t=>{const e={};if(t.$&&t.$.vnode){const a=t.$.vnode.props||{};Object.keys(t.$props).forEach(l=>{const n=t.$props[l],i=PU(l);(n!==void 0||i in a)&&(e[l]=n)})}else if(o.isVNode(t)&&typeof t.type=="object"){const a=t.props||{},l={};Object.keys(a).forEach(i=>{l[dp(i)]=a[i]});const n=t.type.props||{};Object.keys(n).forEach(i=>{const r=GU(n,l,i,l[i]);(r!==void 0||i in l)&&(e[i]=r)})}return e},gx=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n;if(t.$){const i=t[e];if(i!==void 0)return typeof i=="function"&&l?i(a):i;n=t.$slots[e],n=l&&n?n(a):n}else if(o.isVNode(t)){const i=t.props&&t.props[e];if(i!==void 0&&t.props!==null)return typeof i=="function"&&l?i(a):i;t.type===o.Fragment?n=t.children:t.children&&t.children[e]&&(n=t.children[e],n=l&&n?n(a):n)}return Array.isArray(n)&&(n=Ne(n),n=n.length===1?n[0]:n,n=n.length===0?void 0:n),n};function Ax(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a={};return t.$?a=x(x({},a),t.$attrs):a=x(x({},a),t.props),hx(a)[e?"onEvents":"events"]}function sB(t,e){let l=((o.isVNode(t)?t.props:t.$attrs)||{}).style||{};if(typeof l=="string")l=rB(l,e);else if(e&&l){const n={};return Object.keys(l).forEach(i=>n[dp(i)]=l[i]),n}return l}function cB(t){return t.length===1&&t[0].type===o.Fragment}function Lx(t){return t&&(t.type===o.Comment||t.type===o.Fragment&&t.children.length===0||t.type===o.Text&&t.children.trim()==="")}function Aa(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const e=[];return t.forEach(a=>{Array.isArray(a)?e.push(...a):(a==null?void 0:a.type)===o.Fragment?e.push(...Aa(a.children)):e.push(a)}),e.filter(a=>!Lx(a))}function na(t){return Array.isArray(t)&&t.length===1&&(t=t[0]),t&&t.__v_isVNode&&typeof t.type!="symbol"}function Us(t,e){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";var l,n;return(l=e[a])!==null&&l!==void 0?l:(n=t[a])===null||n===void 0?void 0:n.call(t)}const Ii=o.defineComponent({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(t,e){let{slots:a}=e;const l=o.reactive({width:0,height:0,offsetHeight:0,offsetWidth:0});let n=null,i=null;const r=()=>{i&&(i.disconnect(),i=null)},p=c=>{const{onResize:d}=t,W=c[0].target,{width:f,height:S}=W.getBoundingClientRect(),{offsetWidth:h,offsetHeight:m}=W,g=Math.floor(f),A=Math.floor(S);if(l.width!==g||l.height!==A||l.offsetWidth!==h||l.offsetHeight!==m){const b={width:g,height:A,offsetWidth:h,offsetHeight:m};x(l,b),d&&Promise.resolve().then(()=>{d(x(x({},b),{offsetWidth:h,offsetHeight:m}),W)})}},u=o.getCurrentInstance(),s=()=>{const{disabled:c}=t;if(c){r();return}const d=Rl(u);d!==n&&(r(),n=d),!i&&d&&(i=new Sx(p),i.observe(d))};return o.onMounted(()=>{s()}),o.onUpdated(()=>{s()}),o.onUnmounted(()=>{r()}),o.watch(()=>t.disabled,()=>{s()},{flush:"post"}),()=>{var c;return(c=a.default)===null||c===void 0?void 0:c.call(a)[0]}}});let bx=t=>setTimeout(t,16),yx=t=>clearTimeout(t);typeof window<"u"&&"requestAnimationFrame"in window&&(bx=t=>window.requestAnimationFrame(t),yx=t=>window.cancelAnimationFrame(t));let vx=0;const OS=new Map;function Ix(t){OS.delete(t)}function Qt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;vx+=1;const a=vx;function l(n){if(n===0)Ix(a),t();else{const i=bx(()=>{l(n-1)});OS.set(a,i)}}return l(e),a}Qt.cancel=t=>{const e=OS.get(t);return Ix(e),yx(e)};const Wp=function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];return e},Bs=t=>{const e=t;return e.install=function(a){a.component(e.displayName||e.name,t)},t};function fp(){return{type:[Function,Array]}}function ve(t){return{type:Object,default:t}}function Pt(t){return{type:Boolean,default:t}}function Dt(t){return{type:Function,default:t}}function Da(t,e){const a={validator:()=>!0,default:t};return a}function Te(t){return{type:Array,default:t}}function Ie(t){return{type:String,default:t}}function Ue(t,e){return t?{type:t,default:e}:Da(e)}let Cx=!1;try{const t=Object.defineProperty({},"passive",{get(){Cx=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch{}const oa=Cx;function Me(t,e,a,l){if(t&&t.addEventListener){let n=l;n===void 0&&oa&&(e==="touchstart"||e==="touchmove"||e==="wheel")&&(n={passive:!1}),t.addEventListener(e,a,n)}return{remove:()=>{t&&t.removeEventListener&&t.removeEventListener(e,a)}}}const dB="anticon",xx=Symbol("configProvider"),wx={getPrefixCls:(t,e)=>e||(t?`ant-${t}`:"ant"),iconPrefixCls:o.computed(()=>dB),getPopupContainer:o.computed(()=>()=>document.body),direction:o.computed(()=>"ltr")},WB=()=>o.inject(xx,wx),fB=Symbol("DisabledContextKey"),Ln=()=>o.inject(fB,o.ref(void 0)),Ox={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},SB={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},kx={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},jx={lang:x({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},SB),timePickerLocale:x({},kx)},La="${label} is not a valid ${type}",Sp={locale:"en",Pagination:Ox,DatePicker:jx,TimePicker:kx,Calendar:jx,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:La,method:La,array:La,object:La,number:La,date:La,boolean:La,integer:La,float:La,regexp:La,email:La,url:La,hex:La},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}},hB=o.defineComponent({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(t,e){let{slots:a}=e;const l=o.inject("localeData",{}),n=o.computed(()=>{const{componentName:r="global",defaultLocale:p}=t,u=p||Sp[r||"global"],{antLocale:s}=l,c=r&&s?s[r]:{};return x(x({},typeof u=="function"?u():u),c||{})}),i=o.computed(()=>{const{antLocale:r}=l,p=r&&r.locale;return r&&r.exist&&!p?Sp.locale:p});return()=>{const r=t.children||a.default,{antLocale:p}=l;return r==null?void 0:r(n.value,i.value,p)}}});function qx(t,e,a){const l=o.inject("localeData",{});return[o.computed(()=>{const{antLocale:i}=l,r=o.unref(e)||Sp[t||"global"],p=t&&i?i[t]:{};return x(x(x({},typeof r=="function"?r():r),p||{}),o.unref(a)||{})})]}function kS(t){for(var e=0,a,l=0,n=t.length;n>=4;++l,n-=4)a=t.charCodeAt(l)&255|(t.charCodeAt(++l)&255)<<8|(t.charCodeAt(++l)&255)<<16|(t.charCodeAt(++l)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,e=(a&65535)*1540483477+((a>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(n){case 3:e^=(t.charCodeAt(l+2)&255)<<16;case 2:e^=(t.charCodeAt(l+1)&255)<<8;case 1:e^=t.charCodeAt(l)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}const Zx="%";class mB{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join(Zx):e)||null}update(e,a){const l=Array.isArray(e)?e.join(Zx):e,n=this.cache.get(l),i=a(n);i===null?this.cache.delete(l):this.cache.set(l,i)}}const gB=mB,zx="data-token-hash",ho="data-css-hash",AB="data-cache-path",Ci="__cssinjs_instance__";function hp(){const t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const e=document.body.querySelectorAll(`style[${ho}]`)||[],{firstChild:a}=document.head;Array.from(e).forEach(n=>{n[Ci]=n[Ci]||t,n[Ci]===t&&document.head.insertBefore(n,a)});const l={};Array.from(document.querySelectorAll(`style[${ho}]`)).forEach(n=>{var i;const r=n.getAttribute(ho);l[r]?n[Ci]===t&&((i=n.parentNode)===null||i===void 0||i.removeChild(n)):l[r]=!0})}return new gB(t)}const Vx=Symbol("StyleContextKey"),LB=()=>{var t,e,a;const l=o.getCurrentInstance();let n;if(l&&l.appContext){const i=(a=(e=(t=l.appContext)===null||t===void 0?void 0:t.config)===null||e===void 0?void 0:e.globalProperties)===null||a===void 0?void 0:a.__ANTDV_CSSINJS_CACHE__;i?n=i:(n=hp(),l.appContext.config.globalProperties&&(l.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=n))}else n=hp();return n},Nx={cache:hp(),defaultCache:!0,hashPriority:"low"},Qs=()=>{const t=LB();return o.inject(Vx,o.shallowRef(x(x({},Nx),{cache:t})))},bB=t=>{const e=Qs(),a=o.shallowRef(x(x({},Nx),{cache:hp()}));return o.watch([()=>o.unref(t),e],()=>{const l=x({},e.value),n=o.unref(t);Object.keys(n).forEach(r=>{const p=n[r];n[r]!==void 0&&(l[r]=p)});const{cache:i}=n;l.cache=l.cache||hp(),l.defaultCache=!i&&e.value.defaultCache,a.value=l},{immediate:!0}),o.provide(Vx,a),a},yB=()=>({autoClear:Pt(),mock:Ie(),cache:ve(),defaultCache:Pt(),hashPriority:Ie(),container:Ue(),ssrInline:Pt(),transformers:Te(),linters:Te()});Bs(o.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:yB(),setup(t,e){let{slots:a}=e;return bB(t),()=>{var l;return(l=a.default)===null||l===void 0?void 0:l.call(a)}}}));function vB(){return!1}let jS=!1;function IB(){return jS}const CB=process.env.NODE_ENV==="production"?vB:IB;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){const t=window;if(typeof t.webpackHotUpdate=="function"){const e=t.webpackHotUpdate;t.webpackHotUpdate=function(){return jS=!0,setTimeout(()=>{jS=!1},0),e(...arguments)}}}function Tx(t,e,a,l){const n=Qs(),i=o.shallowRef(""),r=o.shallowRef();o.watchEffect(()=>{i.value=[t,...e.value].join("%")});const p=CB(),u=s=>{n.value.cache.update(s,c=>{const[d=0,W]=c||[];return d-1===0?(l==null||l(W,!1),null):[d-1,W]})};return o.watch(i,(s,c)=>{c&&u(c),n.value.cache.update(s,d=>{const[W=0,f]=d||[];let S=f;process.env.NODE_ENV!=="production"&&f&&p&&(l==null||l(S,p),S=null);const h=S||a();return[W+1,h]}),r.value=n.value.cache.get(i.value)[1]},{immediate:!0}),o.onBeforeUnmount(()=>{u(i.value)}),r}function qa(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function bn(t,e){return t&&t.contains?t.contains(e):!1}const Mx="data-vc-order",xB="vc-util-key",qS=new Map;function Kx(){let{mark:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t?t.startsWith("data-")?t:`data-${t}`:xB}function $s(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}function wB(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function Rx(t){return Array.from((qS.get(t)||t).children).filter(e=>e.tagName==="STYLE")}function Ex(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!qa())return null;const{csp:a,prepend:l}=e,n=document.createElement("style");n.setAttribute(Mx,wB(l)),a!=null&&a.nonce&&(n.nonce=a==null?void 0:a.nonce),n.innerHTML=t;const i=$s(e),{firstChild:r}=i;if(l){if(l==="queue"){const p=Rx(i).filter(u=>["prepend","prependQueue"].includes(u.getAttribute(Mx)));if(p.length)return i.insertBefore(n,p[p.length-1].nextSibling),n}i.insertBefore(n,r)}else i.appendChild(n);return n}function Px(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=$s(e);return Rx(a).find(l=>l.getAttribute(Kx(e))===t)}function _s(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=Px(t,e);a&&$s(e).removeChild(a)}function OB(t,e){const a=qS.get(t);if(!a||!bn(document,a)){const l=Ex("",e),{parentNode:n}=l;qS.set(t,n),t.removeChild(l)}}function tc(t,e){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var l,n,i;const r=$s(a);OB(r,a);const p=Px(e,a);if(p)return!((l=a.csp)===null||l===void 0)&&l.nonce&&p.nonce!==((n=a.csp)===null||n===void 0?void 0:n.nonce)&&(p.nonce=(i=a.csp)===null||i===void 0?void 0:i.nonce),p.innerHTML!==t&&(p.innerHTML=t),p;const u=Ex(t,a);return u.setAttribute(Kx(a),e),u}function kB(t,e){if(t.length!==e.length)return!1;for(let a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}class xi{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l={map:this.cache};return e.forEach(n=>{var i;l?l=(i=l==null?void 0:l.map)===null||i===void 0?void 0:i.get(n):l=void 0}),l!=null&&l.value&&a&&(l.value[1]=this.cacheCallTimes++),l==null?void 0:l.value}get(e){var a;return(a=this.internalGet(e,!0))===null||a===void 0?void 0:a[0]}has(e){return!!this.internalGet(e)}set(e,a){if(!this.has(e)){if(this.size()+1>xi.MAX_CACHE_SIZE+xi.MAX_CACHE_OFFSET){const[n]=this.keys.reduce((i,r)=>{const[,p]=i;return this.internalGet(r)[1]<p?[r,this.internalGet(r)[1]]:i},[this.keys[0],this.cacheCallTimes]);this.delete(n)}this.keys.push(e)}let l=this.cache;e.forEach((n,i)=>{if(i===e.length-1)l.set(n,{value:[a,this.cacheCallTimes++]});else{const r=l.get(n);r?r.map||(r.map=new Map):l.set(n,{map:new Map}),l=l.get(n).map}})}deleteByPath(e,a){var l;const n=e.get(a[0]);if(a.length===1)return n.map?e.set(a[0],{map:n.map}):e.delete(a[0]),(l=n.value)===null||l===void 0?void 0:l[0];const i=this.deleteByPath(n.map,a.slice(1));return(!n.map||n.map.size===0)&&!n.value&&e.delete(a[0]),i}delete(e){if(this.has(e))return this.keys=this.keys.filter(a=>!kB(a,e)),this.deleteByPath(this.cache,e)}}xi.MAX_CACHE_SIZE=20,xi.MAX_CACHE_OFFSET=5;let ZS={};function Ce(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error(`Warning: ${e}`)}function Yx(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.warn(`Note: ${e}`)}function jB(){ZS={}}function Gx(t,e,a){!e&&!ZS[a]&&(t(!1,a),ZS[a]=!0)}function ba(t,e){Gx(Ce,t,e)}function Xx(t,e){Gx(Yx,t,e)}function qB(){}let yn=qB;process.env.NODE_ENV!=="production"&&(yn=(t,e,a)=>{ba(t,`[ant-design-vue: ${e}] ${a}`),process.env.NODE_ENV==="test"&&jB()});let Fx=0;class Jx{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=Fx,e.length===0&&yn(e.length>0,"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."),Fx+=1}getDerivativeToken(e){return this.derivatives.reduce((a,l)=>l(e,a),void 0)}}const zS=new xi;function ZB(t){const e=Array.isArray(t)?t:[t];return zS.has(e)||zS.set(e,new Jx(e)),zS.get(e)}const Hx=new WeakMap;function ec(t){let e=Hx.get(t)||"";return e||(Object.keys(t).forEach(a=>{const l=t[a];e+=a,l instanceof Jx?e+=l.id:l&&typeof l=="object"?e+=ec(l):e+=l}),Hx.set(t,e)),e}function zB(t,e){return kS(`${e}_${ec(t)}`)}const mp=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),Dx="_bAmBoO_";function VB(t,e,a){var l,n;if(qa()){tc(t,mp);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",e==null||e(i),document.body.appendChild(i),process.env.NODE_ENV!=="production"&&(i.innerHTML="Test",i.style.zIndex="9999999");const r=a?a(i):(l=getComputedStyle(i).content)===null||l===void 0?void 0:l.includes(Dx);return(n=i.parentNode)===null||n===void 0||n.removeChild(i),_s(mp),r}return!1}let VS;function NB(){return VS===void 0&&(VS=VB(`@layer ${mp} { .${mp} { content: "${Dx}"!important; } }`,t=>{t.className=mp})),VS}const Ux={},TB=process.env.NODE_ENV==="production",MB=process.env.NODE_ENV==="prerender",KB=!TB&&!MB?"css-dev-only-do-not-override":"css",mo=new Map;function RB(t){mo.set(t,(mo.get(t)||0)+1)}function EB(t,e){typeof document<"u"&&document.querySelectorAll(`style[${zx}="${t}"]`).forEach(l=>{var n;l[Ci]===e&&((n=l.parentNode)===null||n===void 0||n.removeChild(l))})}const PB=0;function YB(t,e){mo.set(t,(mo.get(t)||0)-1);const a=Array.from(mo.keys()),l=a.filter(n=>(mo.get(n)||0)<=0);a.length-l.length>PB&&l.forEach(n=>{EB(n,e),mo.delete(n)})}const GB=(t,e,a,l)=>{const n=a.getDerivativeToken(t);let i=x(x({},n),e);return l&&(i=l(i)),i};function XB(t,e){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:o.ref({});const l=Qs(),n=o.computed(()=>x({},...e.value)),i=o.computed(()=>ec(n.value)),r=o.computed(()=>ec(a.value.override||Ux));return Tx("token",o.computed(()=>[a.value.salt||"",t.value.id,i.value,r.value]),()=>{const{salt:u="",override:s=Ux,formatToken:c,getComputedToken:d}=a.value,W=d?d(n.value,s,t.value):GB(n.value,s,t.value,c),f=zB(W,u);W._tokenKey=f,RB(f);const S=`${KB}-${kS(f)}`;return W._hashId=S,[W,S]},u=>{var s;YB(u[0]._tokenKey,(s=l.value)===null||s===void 0?void 0:s.cache.instanceId)})}var FB={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Bx="comm",Qx="rule",$x="decl",JB="@import",HB="@namespace",DB="@keyframes",UB="@layer",_x=Math.abs,NS=String.fromCharCode;function t3(t){return t.trim()}function ac(t,e,a){return t.replace(e,a)}function BB(t,e,a){return t.indexOf(e,a)}function wi(t,e){return t.charCodeAt(e)|0}function Oi(t,e,a){return t.slice(e,a)}function sl(t){return t.length}function QB(t){return t.length}function lc(t,e){return e.push(t),t}var nc=1,ki=1,e3=0,Za=0,Oe=0,ji="";function TS(t,e,a,l,n,i,r,p){return{value:t,root:e,parent:a,type:l,props:n,children:i,line:nc,column:ki,length:r,return:"",siblings:p}}function $B(){return Oe}function _B(){return Oe=Za>0?wi(ji,--Za):0,ki--,Oe===10&&(ki=1,nc--),Oe}function Ua(){return Oe=Za<e3?wi(ji,Za++):0,ki++,Oe===10&&(ki=1,nc++),Oe}function vn(){return wi(ji,Za)}function oc(){return Za}function ic(t,e){return Oi(ji,t,e)}function gp(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tQ(t){return nc=ki=1,e3=sl(ji=t),Za=0,[]}function eQ(t){return ji="",t}function MS(t){return t3(ic(Za-1,KS(t===91?t+2:t===40?t+1:t)))}function aQ(t){for(;(Oe=vn())&&Oe<33;)Ua();return gp(t)>2||gp(Oe)>3?"":" "}function lQ(t,e){for(;--e&&Ua()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return ic(t,oc()+(e<6&&vn()==32&&Ua()==32))}function KS(t){for(;Ua();)switch(Oe){case t:return Za;case 34:case 39:t!==34&&t!==39&&KS(Oe);break;case 40:t===41&&KS(t);break;case 92:Ua();break}return Za}function nQ(t,e){for(;Ua()&&t+Oe!==57;)if(t+Oe===84&&vn()===47)break;return"/*"+ic(e,Za-1)+"*"+NS(t===47?t:Ua())}function oQ(t){for(;!gp(vn());)Ua();return ic(t,Za)}function iQ(t){return eQ(rc("",null,null,null,[""],t=tQ(t),0,[0],t))}function rc(t,e,a,l,n,i,r,p,u){for(var s=0,c=0,d=r,W=0,f=0,S=0,h=1,m=1,g=1,A=0,b="",v=n,y=i,I=l,L=b;m;)switch(S=A,A=Ua()){case 40:if(S!=108&&wi(L,d-1)==58){BB(L+=ac(MS(A),"&","&\f"),"&\f",_x(s?p[s-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:L+=MS(A);break;case 9:case 10:case 13:case 32:L+=aQ(S);break;case 92:L+=lQ(oc()-1,7);continue;case 47:switch(vn()){case 42:case 47:lc(rQ(nQ(Ua(),oc()),e,a,u),u),(gp(S||1)==5||gp(vn()||1)==5)&&sl(L)&&Oi(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*h:p[s++]=sl(L)*g;case 125*h:case 59:case 0:switch(A){case 0:case 125:m=0;case 59+c:g==-1&&(L=ac(L,/\f/g,"")),f>0&&(sl(L)-d||h===0&&S===47)&&lc(f>32?l3(L+";",l,a,d-1,u):l3(ac(L," ","")+";",l,a,d-2,u),u);break;case 59:L+=";";default:if(lc(I=a3(L,e,a,s,c,n,p,b,v=[],y=[],d,i),i),A===123)if(c===0)rc(L,e,I,I,v,i,d,p,y);else{switch(W){case 99:if(wi(L,3)===110)break;case 108:if(wi(L,2)===97)break;default:c=0;case 100:case 109:case 115:}c?rc(t,I,I,l&&lc(a3(t,I,I,0,0,n,p,b,n,v=[],d,y),y),n,y,d,p,l?v:y):rc(L,I,I,I,[""],y,0,p,y)}}s=c=f=0,h=g=1,b=L="",d=r;break;case 58:d=1+sl(L),f=S;default:if(h<1){if(A==123)--h;else if(A==125&&h++==0&&_B()==125)continue}switch(L+=NS(A),A*h){case 38:g=c>0?1:(L+="\f",-1);break;case 44:p[s++]=(sl(L)-1)*g,g=1;break;case 64:vn()===45&&(L+=MS(Ua())),W=vn(),c=d=sl(b=L+=oQ(oc())),A++;break;case 45:S===45&&sl(L)==2&&(h=0)}}return i}function a3(t,e,a,l,n,i,r,p,u,s,c,d){for(var W=n-1,f=n===0?i:[""],S=QB(f),h=0,m=0,g=0;h<l;++h)for(var A=0,b=Oi(t,W+1,W=_x(m=r[h])),v=t;A<S;++A)(v=t3(m>0?f[A]+" "+b:ac(b,/&\f/g,f[A])))&&(u[g++]=v);return TS(t,e,a,n===0?Qx:p,u,s,c,d)}function rQ(t,e,a,l){return TS(t,e,a,Bx,NS($B()),Oi(t,2,-2),0,l)}function l3(t,e,a,l,n){return TS(t,e,a,$x,Oi(t,0,l),Oi(t,l+1,-1),l,n)}function RS(t,e){for(var a="",l=0;l<t.length;l++)a+=e(t[l],l,t,e)||"";return a}function pQ(t,e,a,l){switch(t.type){case UB:if(t.children.length)break;case JB:case HB:case $x:return t.return=t.return||t.value;case Bx:return"";case DB:return t.return=t.value+"{"+RS(t.children,l)+"}";case Qx:if(!sl(t.value=t.props.join(",")))return""}return sl(a=RS(t.children,l))?t.return=t.value+"{"+a+"}":""}function n3(t,e){const{path:a,parentSelectors:l}=e;ba(!1,`[Ant Design Vue CSS-in-JS] ${a?`Error in '${a}': `:""}${t}${l.length?` Selector info: ${l.join(" -> ")}`:""}`)}const uQ=(t,e,a)=>{if(t==="content"){const l=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof e!="string"||["normal","none","initial","inherit","unset"].indexOf(e)===-1&&!l.test(e)&&(e.charAt(0)!==e.charAt(e.length-1)||e.charAt(0)!=='"'&&e.charAt(0)!=="'"))&&n3(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${e}"'\`.`,a)}},sQ=(t,e,a)=>{t==="animation"&&a.hashId&&e!=="none"&&n3(`You seem to be using hashed animation '${e}', in which case 'animationName' with Keyframe as value is recommended.`,a)},o3="data-ant-cssinjs-cache-path",cQ="_FILE_STYLE__";let go,i3=!0;function dQ(){var t;if(!go&&(go={},qa())){const e=document.createElement("div");e.className=o3,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let a=getComputedStyle(e).content||"";a=a.replace(/^"/,"").replace(/"$/,""),a.split(";").forEach(n=>{const[i,r]=n.split(":");go[i]=r});const l=document.querySelector(`style[${o3}]`);l&&(i3=!1,(t=l.parentNode)===null||t===void 0||t.removeChild(l)),document.body.removeChild(e)}}function WQ(t){return dQ(),!!go[t]}function fQ(t){const e=go[t];let a=null;if(e&&qa())if(i3)a=cQ;else{const l=document.querySelector(`style[${ho}="${go[t]}"]`);l?a=l.innerHTML:delete go[t]}return[a,e]}const r3=qa(),p3="_skip_check_",u3="_multi_value_";function s3(t){return RS(iQ(t),pQ).replace(/\{%%%\:[^;];}/g,";")}function SQ(t){return typeof t=="object"&&t&&(p3 in t||u3 in t)}function hQ(t,e,a){if(!e)return t;const l=`.${e}`,n=a==="low"?`:where(${l})`:l;return t.split(",").map(r=>{var p;const u=r.trim().split(/\s+/);let s=u[0]||"";const c=((p=s.match(/^\w+/))===null||p===void 0?void 0:p[0])||"";return s=`${c}${n}${s.slice(c.length)}`,[s,...u.slice(1)].join(" ")}).join(",")}const ES=new Set;process.env.NODE_ENV;const PS=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:a,injectHash:l,parentSelectors:n}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:i,layer:r,path:p,hashPriority:u,transformers:s=[],linters:c=[]}=e;let d="",W={};function f(m){const g=m.getName(i);if(!W[g]){const[A]=PS(m.style,e,{root:!1,parentSelectors:n});W[g]=`@keyframes ${m.getName(i)}${A}`}}function S(m){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return m.forEach(A=>{Array.isArray(A)?S(A,g):A&&g.push(A)}),g}if(S(Array.isArray(t)?t:[t]).forEach(m=>{const g=typeof m=="string"&&!a?{}:m;if(typeof g=="string")d+=`${g}
|
|
295
295
|
`;else if(g._keyframe)f(g);else{const A=s.reduce((b,v)=>{var y;return((y=v==null?void 0:v.visit)===null||y===void 0?void 0:y.call(v,b))||b},g);Object.keys(A).forEach(b=>{var v;const y=A[b];if(typeof y=="object"&&y&&(b!=="animationName"||!y._keyframe)&&!SQ(y)){let I=!1,L=b.trim(),w=!1;(a||l)&&i?L.startsWith("@")?I=!0:L=hQ(b,i,u):a&&!i&&(L==="&"||L==="")&&(L="",w=!0);const[C,k]=PS(y,e,{root:w,injectHash:I,parentSelectors:[...n,L]});W=x(x({},W),k),d+=`${L}${C}`}else{let I=function(w,C){process.env.NODE_ENV!=="production"&&(typeof y!="object"||!(y!=null&&y[p3]))&&[uQ,sQ,...c].forEach(E=>E(w,C,{path:p,hashId:i,parentSelectors:n}));const k=w.replace(/[A-Z]/g,E=>`-${E.toLowerCase()}`);let Z=C;!FB[w]&&typeof Z=="number"&&Z!==0&&(Z=`${Z}px`),w==="animationName"&&(C!=null&&C._keyframe)&&(f(C),Z=C.getName(i)),d+=`${k}:${Z};`};const L=(v=y==null?void 0:y.value)!==null&&v!==void 0?v:y;typeof y=="object"&&(y!=null&&y[u3])&&Array.isArray(L)?L.forEach(w=>{I(b,w)}):I(b,L)}})}}),!a)d=`{${d}}`;else if(r&&NB()){const m=r.split(",");d=`@layer ${m[m.length-1].trim()} {${d}}`,m.length>1&&(d=`@layer ${r}{%%%:%}${d}`)}return[d,W]};function mQ(t,e){return kS(`${t.join("%")}${e}`)}function c3(t,e){const a=Qs(),l=o.computed(()=>t.value.token._tokenKey),n=o.computed(()=>[l.value,...t.value.path]);let i=r3;return process.env.NODE_ENV!=="production"&&a.value.mock!==void 0&&(i=a.value.mock==="client"),Tx("style",n,()=>{const{path:r,hashId:p,layer:u,nonce:s,clientOnly:c,order:d=0}=t.value,W=n.value.join("|");if(WQ(W)){const[L,w]=fQ(W);if(L)return[L,l.value,w,{},c,d]}const f=e(),{hashPriority:S,container:h,transformers:m,linters:g,cache:A}=a.value,[b,v]=PS(f,{hashId:p,hashPriority:S,layer:u,path:r.join("-"),transformers:m,linters:g}),y=s3(b),I=mQ(n.value,y);if(i){const L={mark:ho,prepend:"queue",attachTo:h,priority:d},w=typeof s=="function"?s():s;w&&(L.csp={nonce:w});const C=tc(y,I,L);C[Ci]=A.instanceId,C.setAttribute(zx,l.value),process.env.NODE_ENV!=="production"&&C.setAttribute(AB,n.value.join("|")),Object.keys(v).forEach(k=>{ES.has(k)||(ES.add(k),tc(s3(v[k]),`_effect-${k}`,{mark:ho,prepend:"queue",attachTo:h}))})}return[y,l.value,I,v,c,d]},(r,p)=>{let[,,u]=r;(p||a.value.autoClear)&&r3&&_s(u,{mark:ho})}),r=>r}class $t{constructor(e,a){this._keyframe=!0,this.name=e,this.style=a}getName(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e?`${e}-${this.name}`:this.name}}const gQ="4.2.6",pc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Ge(t,e){AQ(t)&&(t="100%");var a=LQ(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),a&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function uc(t){return Math.min(1,Math.max(0,t))}function AQ(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function LQ(t){return typeof t=="string"&&t.indexOf("%")!==-1}function d3(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function sc(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Ao(t){return t.length===1?"0"+t:String(t)}function bQ(t,e,a){return{r:Ge(t,255)*255,g:Ge(e,255)*255,b:Ge(a,255)*255}}function W3(t,e,a){t=Ge(t,255),e=Ge(e,255),a=Ge(a,255);var l=Math.max(t,e,a),n=Math.min(t,e,a),i=0,r=0,p=(l+n)/2;if(l===n)r=0,i=0;else{var u=l-n;switch(r=p>.5?u/(2-l-n):u/(l+n),l){case t:i=(e-a)/u+(e<a?6:0);break;case e:i=(a-t)/u+2;break;case a:i=(t-e)/u+4;break}i/=6}return{h:i,s:r,l:p}}function YS(t,e,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?t+(e-t)*(6*a):a<1/2?e:a<2/3?t+(e-t)*(2/3-a)*6:t}function yQ(t,e,a){var l,n,i;if(t=Ge(t,360),e=Ge(e,100),a=Ge(a,100),e===0)n=a,i=a,l=a;else{var r=a<.5?a*(1+e):a+e-a*e,p=2*a-r;l=YS(p,r,t+1/3),n=YS(p,r,t),i=YS(p,r,t-1/3)}return{r:l*255,g:n*255,b:i*255}}function GS(t,e,a){t=Ge(t,255),e=Ge(e,255),a=Ge(a,255);var l=Math.max(t,e,a),n=Math.min(t,e,a),i=0,r=l,p=l-n,u=l===0?0:p/l;if(l===n)i=0;else{switch(l){case t:i=(e-a)/p+(e<a?6:0);break;case e:i=(a-t)/p+2;break;case a:i=(t-e)/p+4;break}i/=6}return{h:i,s:u,v:r}}function vQ(t,e,a){t=Ge(t,360)*6,e=Ge(e,100),a=Ge(a,100);var l=Math.floor(t),n=t-l,i=a*(1-e),r=a*(1-n*e),p=a*(1-(1-n)*e),u=l%6,s=[a,r,i,i,p,a][u],c=[p,a,a,r,i,i][u],d=[i,i,p,a,a,r][u];return{r:s*255,g:c*255,b:d*255}}function XS(t,e,a,l){var n=[Ao(Math.round(t).toString(16)),Ao(Math.round(e).toString(16)),Ao(Math.round(a).toString(16))];return l&&n[0].startsWith(n[0].charAt(1))&&n[1].startsWith(n[1].charAt(1))&&n[2].startsWith(n[2].charAt(1))?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0):n.join("")}function IQ(t,e,a,l,n){var i=[Ao(Math.round(t).toString(16)),Ao(Math.round(e).toString(16)),Ao(Math.round(a).toString(16)),Ao(CQ(l))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function CQ(t){return Math.round(parseFloat(t)*255).toString(16)}function f3(t){return ya(t)/255}function ya(t){return parseInt(t,16)}function xQ(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var FS={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function qi(t){var e={r:0,g:0,b:0},a=1,l=null,n=null,i=null,r=!1,p=!1;return typeof t=="string"&&(t=kQ(t)),typeof t=="object"&&(El(t.r)&&El(t.g)&&El(t.b)?(e=bQ(t.r,t.g,t.b),r=!0,p=String(t.r).substr(-1)==="%"?"prgb":"rgb"):El(t.h)&&El(t.s)&&El(t.v)?(l=sc(t.s),n=sc(t.v),e=vQ(t.h,l,n),r=!0,p="hsv"):El(t.h)&&El(t.s)&&El(t.l)&&(l=sc(t.s),i=sc(t.l),e=yQ(t.h,l,i),r=!0,p="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(a=t.a)),a=d3(a),{ok:r,format:t.format||p,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a}}var wQ="[-\\+]?\\d+%?",OQ="[-\\+]?\\d*\\.\\d+%?",In="(?:".concat(OQ,")|(?:").concat(wQ,")"),JS="[\\s|\\(]+(".concat(In,")[,|\\s]+(").concat(In,")[,|\\s]+(").concat(In,")\\s*\\)?"),HS="[\\s|\\(]+(".concat(In,")[,|\\s]+(").concat(In,")[,|\\s]+(").concat(In,")[,|\\s]+(").concat(In,")\\s*\\)?"),Ba={CSS_UNIT:new RegExp(In),rgb:new RegExp("rgb"+JS),rgba:new RegExp("rgba"+HS),hsl:new RegExp("hsl"+JS),hsla:new RegExp("hsla"+HS),hsv:new RegExp("hsv"+JS),hsva:new RegExp("hsva"+HS),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function kQ(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(FS[t])t=FS[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var a=Ba.rgb.exec(t);return a?{r:a[1],g:a[2],b:a[3]}:(a=Ba.rgba.exec(t),a?{r:a[1],g:a[2],b:a[3],a:a[4]}:(a=Ba.hsl.exec(t),a?{h:a[1],s:a[2],l:a[3]}:(a=Ba.hsla.exec(t),a?{h:a[1],s:a[2],l:a[3],a:a[4]}:(a=Ba.hsv.exec(t),a?{h:a[1],s:a[2],v:a[3]}:(a=Ba.hsva.exec(t),a?{h:a[1],s:a[2],v:a[3],a:a[4]}:(a=Ba.hex8.exec(t),a?{r:ya(a[1]),g:ya(a[2]),b:ya(a[3]),a:f3(a[4]),format:e?"name":"hex8"}:(a=Ba.hex6.exec(t),a?{r:ya(a[1]),g:ya(a[2]),b:ya(a[3]),format:e?"name":"hex"}:(a=Ba.hex4.exec(t),a?{r:ya(a[1]+a[1]),g:ya(a[2]+a[2]),b:ya(a[3]+a[3]),a:f3(a[4]+a[4]),format:e?"name":"hex8"}:(a=Ba.hex3.exec(t),a?{r:ya(a[1]+a[1]),g:ya(a[2]+a[2]),b:ya(a[3]+a[3]),format:e?"name":"hex"}:!1)))))))))}function El(t){return!!Ba.CSS_UNIT.exec(String(t))}var ue=function(){function t(e,a){e===void 0&&(e=""),a===void 0&&(a={});var l;if(e instanceof t)return e;typeof e=="number"&&(e=xQ(e)),this.originalInput=e;var n=qi(e);this.originalInput=e,this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this.roundA=Math.round(100*this.a)/100,this.format=(l=a.format)!==null&&l!==void 0?l:n.format,this.gradientType=a.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=n.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),a,l,n,i=e.r/255,r=e.g/255,p=e.b/255;return i<=.03928?a=i/12.92:a=Math.pow((i+.055)/1.055,2.4),r<=.03928?l=r/12.92:l=Math.pow((r+.055)/1.055,2.4),p<=.03928?n=p/12.92:n=Math.pow((p+.055)/1.055,2.4),.2126*a+.7152*l+.0722*n},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=d3(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=GS(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=GS(this.r,this.g,this.b),a=Math.round(e.h*360),l=Math.round(e.s*100),n=Math.round(e.v*100);return this.a===1?"hsv(".concat(a,", ").concat(l,"%, ").concat(n,"%)"):"hsva(".concat(a,", ").concat(l,"%, ").concat(n,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=W3(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=W3(this.r,this.g,this.b),a=Math.round(e.h*360),l=Math.round(e.s*100),n=Math.round(e.l*100);return this.a===1?"hsl(".concat(a,", ").concat(l,"%, ").concat(n,"%)"):"hsla(".concat(a,", ").concat(l,"%, ").concat(n,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),XS(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),IQ(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),a=Math.round(this.g),l=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(a,", ").concat(l,")"):"rgba(".concat(e,", ").concat(a,", ").concat(l,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(a){return"".concat(Math.round(Ge(a,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(a){return Math.round(Ge(a,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+XS(this.r,this.g,this.b,!1),a=0,l=Object.entries(FS);a<l.length;a++){var n=l[a],i=n[0],r=n[1];if(e===r)return i}return!1},t.prototype.toString=function(e){var a=!!e;e=e??this.format;var l=!1,n=this.a<1&&this.a>=0,i=!a&&n&&(e.startsWith("hex")||e==="name");return i?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(l=this.toRgbString()),e==="prgb"&&(l=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(l=this.toHexString()),e==="hex3"&&(l=this.toHexString(!0)),e==="hex4"&&(l=this.toHex8String(!0)),e==="hex8"&&(l=this.toHex8String()),e==="name"&&(l=this.toName()),e==="hsl"&&(l=this.toHslString()),e==="hsv"&&(l=this.toHsvString()),l||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var a=this.toHsl();return a.l+=e/100,a.l=uc(a.l),new t(a)},t.prototype.brighten=function(e){e===void 0&&(e=10);var a=this.toRgb();return a.r=Math.max(0,Math.min(255,a.r-Math.round(255*-(e/100)))),a.g=Math.max(0,Math.min(255,a.g-Math.round(255*-(e/100)))),a.b=Math.max(0,Math.min(255,a.b-Math.round(255*-(e/100)))),new t(a)},t.prototype.darken=function(e){e===void 0&&(e=10);var a=this.toHsl();return a.l-=e/100,a.l=uc(a.l),new t(a)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var a=this.toHsl();return a.s-=e/100,a.s=uc(a.s),new t(a)},t.prototype.saturate=function(e){e===void 0&&(e=10);var a=this.toHsl();return a.s+=e/100,a.s=uc(a.s),new t(a)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var a=this.toHsl(),l=(a.h+e)%360;return a.h=l<0?360+l:l,new t(a)},t.prototype.mix=function(e,a){a===void 0&&(a=50);var l=this.toRgb(),n=new t(e).toRgb(),i=a/100,r={r:(n.r-l.r)*i+l.r,g:(n.g-l.g)*i+l.g,b:(n.b-l.b)*i+l.b,a:(n.a-l.a)*i+l.a};return new t(r)},t.prototype.analogous=function(e,a){e===void 0&&(e=6),a===void 0&&(a=30);var l=this.toHsl(),n=360/a,i=[this];for(l.h=(l.h-(n*e>>1)+720)%360;--e;)l.h=(l.h+n)%360,i.push(new t(l));return i},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var a=this.toHsv(),l=a.h,n=a.s,i=a.v,r=[],p=1/e;e--;)r.push(new t({h:l,s:n,v:i})),i=(i+p)%1;return r},t.prototype.splitcomplement=function(){var e=this.toHsl(),a=e.h;return[this,new t({h:(a+72)%360,s:e.s,l:e.l}),new t({h:(a+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var a=this.toRgb(),l=new t(e).toRgb(),n=a.a+l.a*(1-a.a);return new t({r:(a.r*a.a+l.r*l.a*(1-a.a))/n,g:(a.g*a.a+l.g*l.a*(1-a.a))/n,b:(a.b*a.a+l.b*l.a*(1-a.a))/n,a:n})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var a=this.toHsl(),l=a.h,n=[this],i=360/e,r=1;r<e;r++)n.push(new t({h:(l+r*i)%360,s:a.s,l:a.l}));return n},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}(),cc=2,S3=.16,jQ=.05,qQ=.05,ZQ=.15,h3=5,m3=4,zQ=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function g3(t){var e=t.r,a=t.g,l=t.b,n=GS(e,a,l);return{h:n.h*360,s:n.s,v:n.v}}function dc(t){var e=t.r,a=t.g,l=t.b;return"#".concat(XS(e,a,l,!1))}function VQ(t,e,a){var l=a/100,n={r:(e.r-t.r)*l+t.r,g:(e.g-t.g)*l+t.g,b:(e.b-t.b)*l+t.b};return n}function A3(t,e,a){var l;return Math.round(t.h)>=60&&Math.round(t.h)<=240?l=a?Math.round(t.h)-cc*e:Math.round(t.h)+cc*e:l=a?Math.round(t.h)+cc*e:Math.round(t.h)-cc*e,l<0?l+=360:l>=360&&(l-=360),l}function L3(t,e,a){if(t.h===0&&t.s===0)return t.s;var l;return a?l=t.s-S3*e:e===m3?l=t.s+S3:l=t.s+jQ*e,l>1&&(l=1),a&&e===h3&&l>.1&&(l=.1),l<.06&&(l=.06),Number(l.toFixed(2))}function b3(t,e,a){var l;return a?l=t.v+qQ*e:l=t.v-ZQ*e,l>1&&(l=1),Number(l.toFixed(2))}function Ap(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=[],l=qi(t),n=h3;n>0;n-=1){var i=g3(l),r=dc(qi({h:A3(i,n,!0),s:L3(i,n,!0),v:b3(i,n,!0)}));a.push(r)}a.push(dc(l));for(var p=1;p<=m3;p+=1){var u=g3(l),s=dc(qi({h:A3(u,p),s:L3(u,p),v:b3(u,p)}));a.push(s)}return e.theme==="dark"?zQ.map(function(c){var d=c.index,W=c.opacity,f=dc(VQ(qi(e.backgroundColor||"#141414"),qi(a[d]),W*100));return f}):a}var DS={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Wc={},US={};Object.keys(DS).forEach(function(t){Wc[t]=Ap(DS[t]),Wc[t].primary=Wc[t][5],US[t]=Ap(DS[t],{theme:"dark",backgroundColor:"#141414"}),US[t].primary=US[t][5]});var NQ=Wc.blue;const TQ=t=>{const{controlHeight:e}=t;return{controlHeightSM:e*.75,controlHeightXS:e*.5,controlHeightLG:e*1.25}};function MQ(t){const{sizeUnit:e,sizeStep:a}=t;return{sizeXXL:e*(a+8),sizeXL:e*(a+4),sizeLG:e*(a+2),sizeMD:e*(a+1),sizeMS:e*a,size:e*a,sizeSM:e*(a-1),sizeXS:e*(a-2),sizeXXS:e*(a-3)}}const y3={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},BS=x(x({},y3),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
296
296
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
297
297
|
'Noto Color Emoji'`,fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});function KQ(t,e){let{generateColorPalettes:a,generateNeutralColorPalettes:l}=e;const{colorSuccess:n,colorWarning:i,colorError:r,colorInfo:p,colorPrimary:u,colorBgBase:s,colorTextBase:c}=t,d=a(u),W=a(n),f=a(i),S=a(r),h=a(p),m=l(s,c);return x(x({},m),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:W[1],colorSuccessBgHover:W[2],colorSuccessBorder:W[3],colorSuccessBorderHover:W[4],colorSuccessHover:W[4],colorSuccess:W[6],colorSuccessActive:W[7],colorSuccessTextHover:W[8],colorSuccessText:W[9],colorSuccessTextActive:W[10],colorErrorBg:S[1],colorErrorBgHover:S[2],colorErrorBorder:S[3],colorErrorBorderHover:S[4],colorErrorHover:S[5],colorError:S[6],colorErrorActive:S[7],colorErrorTextHover:S[8],colorErrorText:S[9],colorErrorTextActive:S[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorBgMask:new ue("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const RQ=t=>{let e=t,a=t,l=t,n=t;return t<6&&t>=5?e=t+1:t<16&&t>=6?e=t+2:t>=16&&(e=16),t<7&&t>=5?a=4:t<8&&t>=7?a=5:t<14&&t>=8?a=6:t<16&&t>=14?a=7:t>=16&&(a=8),t<6&&t>=2?l=1:t>=6&&(l=2),t>4&&t<8?n=4:t>=8&&(n=6),{borderRadius:t>16?16:t,borderRadiusXS:l,borderRadiusSM:a,borderRadiusLG:e,borderRadiusOuter:n}};function EQ(t){const{motionUnit:e,motionBase:a,borderRadius:l,lineWidth:n}=t;return x({motionDurationFast:`${(a+e).toFixed(1)}s`,motionDurationMid:`${(a+e*2).toFixed(1)}s`,motionDurationSlow:`${(a+e*3).toFixed(1)}s`,lineWidthBold:n+1},RQ(l))}const Pl=(t,e)=>new ue(t).setAlpha(e).toRgbString(),Lp=(t,e)=>new ue(t).darken(e).toHexString(),PQ=t=>{const e=Ap(t);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},YQ=(t,e)=>{const a=t||"#fff",l=e||"#000";return{colorBgBase:a,colorTextBase:l,colorText:Pl(l,.88),colorTextSecondary:Pl(l,.65),colorTextTertiary:Pl(l,.45),colorTextQuaternary:Pl(l,.25),colorFill:Pl(l,.15),colorFillSecondary:Pl(l,.06),colorFillTertiary:Pl(l,.04),colorFillQuaternary:Pl(l,.02),colorBgLayout:Lp(a,4),colorBgContainer:Lp(a,0),colorBgElevated:Lp(a,0),colorBgSpotlight:Pl(l,.85),colorBorder:Lp(a,15),colorBorderSecondary:Lp(a,6)}};function GQ(t){const e=new Array(10).fill(null).map((a,l)=>{const n=l-1,i=t*Math.pow(2.71828,n/5),r=l>1?Math.floor(i):Math.ceil(i);return Math.floor(r/2)*2});return e[1]=t,e.map(a=>{const l=a+8;return{size:a,lineHeight:l/a}})}const XQ=t=>{const e=GQ(t),a=e.map(n=>n.size),l=e.map(n=>n.lineHeight);return{fontSizeSM:a[0],fontSize:a[1],fontSizeLG:a[2],fontSizeXL:a[3],fontSizeHeading1:a[6],fontSizeHeading2:a[5],fontSizeHeading3:a[4],fontSizeHeading4:a[3],fontSizeHeading5:a[2],lineHeight:l[1],lineHeightLG:l[2],lineHeightSM:l[0],lineHeightHeading1:l[6],lineHeightHeading2:l[5],lineHeightHeading3:l[4],lineHeightHeading4:l[3],lineHeightHeading5:l[2]}};function FQ(t){const e=Object.keys(y3).map(a=>{const l=Ap(t[a]);return new Array(10).fill(1).reduce((n,i,r)=>(n[`${a}-${r+1}`]=l[r],n),{})}).reduce((a,l)=>(a=x(x({},a),l),a),{});return x(x(x(x(x(x(x({},t),e),KQ(t,{generateColorPalettes:PQ,generateNeutralColorPalettes:YQ})),XQ(t.fontSize)),MQ(t)),TQ(t)),EQ(t))}function QS(t){return t>=0&&t<=255}function fc(t,e){const{r:a,g:l,b:n,a:i}=new ue(t).toRgb();if(i<1)return t;const{r,g:p,b:u}=new ue(e).toRgb();for(let s=.01;s<=1;s+=.01){const c=Math.round((a-r*(1-s))/s),d=Math.round((l-p*(1-s))/s),W=Math.round((n-u*(1-s))/s);if(QS(c)&&QS(d)&&QS(W))return new ue({r:c,g:d,b:W,a:Math.round(s*100)/100}).toRgbString()}return new ue({r:a,g:l,b:n,a:1}).toRgbString()}var JQ=function(t,e){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,l=Object.getOwnPropertySymbols(t);n<l.length;n++)e.indexOf(l[n])<0&&Object.prototype.propertyIsEnumerable.call(t,l[n])&&(a[l[n]]=t[l[n]]);return a};function HQ(t){const{override:e}=t,a=JQ(t,["override"]),l=x({},e);Object.keys(BS).forEach(f=>{delete l[f]});const n=x(x({},a),l),i=480,r=576,p=768,u=992,s=1200,c=1600,d=2e3;return x(x(x({},n),{colorLink:n.colorInfoText,colorLinkHover:n.colorInfoHover,colorLinkActive:n.colorInfoActive,colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:fc(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:fc(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:fc(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:fc(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.sizeXXL,boxShadow:`
|
|
@@ -612,5 +612,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
612
612
|
`;break}return l},tr.prototype.render=function(t,e,a){let l="";const n=this.rules;for(let i=0,r=t.length;i<r;i++){const p=t[i].type;p==="inline"?l+=this.renderInline(t[i].children,e,a):typeof n[p]<"u"?l+=n[p](t,i,e,a,this):l+=this.renderToken(t,i,e,a)}return l};function ca(){this.__rules__=[],this.__cache__=null}ca.prototype.__find__=function(t){for(let e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},ca.prototype.__compile__=function(){const t=this,e=[""];t.__rules__.forEach(function(a){a.enabled&&a.alt.forEach(function(l){e.indexOf(l)<0&&e.push(l)})}),t.__cache__={},e.forEach(function(a){t.__cache__[a]=[],t.__rules__.forEach(function(l){l.enabled&&(a&&l.alt.indexOf(a)<0||t.__cache__[a].push(l.fn))})})},ca.prototype.at=function(t,e,a){const l=this.__find__(t),n=a||{};if(l===-1)throw new Error("Parser rule not found: "+t);this.__rules__[l].fn=e,this.__rules__[l].alt=n.alt||[],this.__cache__=null},ca.prototype.before=function(t,e,a,l){const n=this.__find__(t),i=l||{};if(n===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(n,0,{name:e,enabled:!0,fn:a,alt:i.alt||[]}),this.__cache__=null},ca.prototype.after=function(t,e,a,l){const n=this.__find__(t),i=l||{};if(n===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(n+1,0,{name:e,enabled:!0,fn:a,alt:i.alt||[]}),this.__cache__=null},ca.prototype.push=function(t,e,a){const l=a||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:l.alt||[]}),this.__cache__=null},ca.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);const a=[];return t.forEach(function(l){const n=this.__find__(l);if(n<0){if(e)return;throw new Error("Rules manager: invalid rule name "+l)}this.__rules__[n].enabled=!0,a.push(l)},this),this.__cache__=null,a},ca.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(a){a.enabled=!1}),this.enable(t,e)},ca.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);const a=[];return t.forEach(function(l){const n=this.__find__(l);if(n<0){if(e)return;throw new Error("Rules manager: invalid rule name "+l)}this.__rules__[n].enabled=!1,a.push(l)},this),this.__cache__=null,a},ca.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};function el(t,e,a){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=a,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}el.prototype.attrIndex=function(e){if(!this.attrs)return-1;const a=this.attrs;for(let l=0,n=a.length;l<n;l++)if(a[l][0]===e)return l;return-1},el.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},el.prototype.attrSet=function(e,a){const l=this.attrIndex(e),n=[e,a];l<0?this.attrPush(n):this.attrs[l]=n},el.prototype.attrGet=function(e){const a=this.attrIndex(e);let l=null;return a>=0&&(l=this.attrs[a][1]),l},el.prototype.attrJoin=function(e,a){const l=this.attrIndex(e);l<0?this.attrPush([e,a]):this.attrs[l][1]=this.attrs[l][1]+" "+a};function rj(t,e,a){this.src=t,this.env=a,this.tokens=[],this.inlineMode=!1,this.md=e}rj.prototype.Token=el;const Nft=/\r\n?|\n/g,Tft=/\0/g;function Mft(t){let e;e=t.src.replace(Nft,`
|
|
613
613
|
`),e=e.replace(Tft,"�"),t.src=e}function Kft(t){let e;t.inlineMode?(e=new t.Token("inline","",0),e.content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}function Rft(t){const e=t.tokens;for(let a=0,l=e.length;a<l;a++){const n=e[a];n.type==="inline"&&t.md.inline.parse(n.content,t.md,t.env,n.children)}}function Eft(t){return/^<a[>\s]/i.test(t)}function Pft(t){return/^<\/a\s*>/i.test(t)}function Yft(t){const e=t.tokens;if(t.md.options.linkify)for(let a=0,l=e.length;a<l;a++){if(e[a].type!=="inline"||!t.md.linkify.pretest(e[a].content))continue;let n=e[a].children,i=0;for(let r=n.length-1;r>=0;r--){const p=n[r];if(p.type==="link_close"){for(r--;n[r].level!==p.level&&n[r].type!=="link_open";)r--;continue}if(p.type==="html_inline"&&(Eft(p.content)&&i>0&&i--,Pft(p.content)&&i++),!(i>0)&&p.type==="text"&&t.md.linkify.test(p.content)){const u=p.content;let s=t.md.linkify.match(u);const c=[];let d=p.level,W=0;s.length>0&&s[0].index===0&&r>0&&n[r-1].type==="text_special"&&(s=s.slice(1));for(let f=0;f<s.length;f++){const S=s[f].url,h=t.md.normalizeLink(S);if(!t.md.validateLink(h))continue;let m=s[f].text;s[f].schema?s[f].schema==="mailto:"&&!/^mailto:/i.test(m)?m=t.md.normalizeLinkText("mailto:"+m).replace(/^mailto:/,""):m=t.md.normalizeLinkText(m):m=t.md.normalizeLinkText("http://"+m).replace(/^http:\/\//,"");const g=s[f].index;if(g>W){const y=new t.Token("text","",0);y.content=u.slice(W,g),y.level=d,c.push(y)}const A=new t.Token("link_open","a",1);A.attrs=[["href",h]],A.level=d++,A.markup="linkify",A.info="auto",c.push(A);const b=new t.Token("text","",0);b.content=m,b.level=d,c.push(b);const v=new t.Token("link_close","a",-1);v.level=--d,v.markup="linkify",v.info="auto",c.push(v),W=s[f].lastIndex}if(W<u.length){const f=new t.Token("text","",0);f.content=u.slice(W),f.level=d,c.push(f)}e[a].children=n=oj(n,r,c)}}}}const pj=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Gft=/\((c|tm|r)\)/i,Xft=/\((c|tm|r)\)/ig,Fft={c:"©",r:"®",tm:"™"};function Jft(t,e){return Fft[e.toLowerCase()]}function Hft(t){let e=0;for(let a=t.length-1;a>=0;a--){const l=t[a];l.type==="text"&&!e&&(l.content=l.content.replace(Xft,Jft)),l.type==="link_open"&&l.info==="auto"&&e--,l.type==="link_close"&&l.info==="auto"&&e++}}function Dft(t){let e=0;for(let a=t.length-1;a>=0;a--){const l=t[a];l.type==="text"&&!e&&pj.test(l.content)&&(l.content=l.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),l.type==="link_open"&&l.info==="auto"&&e--,l.type==="link_close"&&l.info==="auto"&&e++}}function Uft(t){let e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)t.tokens[e].type==="inline"&&(Gft.test(t.tokens[e].content)&&Hft(t.tokens[e].children),pj.test(t.tokens[e].content)&&Dft(t.tokens[e].children))}const Bft=/['"]/,uj=/['"]/g,sj="’";function xd(t,e,a){return t.slice(0,e)+a+t.slice(e+1)}function Qft(t,e){let a;const l=[];for(let n=0;n<t.length;n++){const i=t[n],r=t[n].level;for(a=l.length-1;a>=0&&!(l[a].level<=r);a--);if(l.length=a+1,i.type!=="text")continue;let p=i.content,u=0,s=p.length;t:for(;u<s;){uj.lastIndex=u;const c=uj.exec(p);if(!c)break;let d=!0,W=!0;u=c.index+1;const f=c[0]==="'";let S=32;if(c.index-1>=0)S=p.charCodeAt(c.index-1);else for(a=n-1;a>=0&&!(t[a].type==="softbreak"||t[a].type==="hardbreak");a--)if(t[a].content){S=t[a].content.charCodeAt(t[a].content.length-1);break}let h=32;if(u<s)h=p.charCodeAt(u);else for(a=n+1;a<t.length&&!(t[a].type==="softbreak"||t[a].type==="hardbreak");a++)if(t[a].content){h=t[a].content.charCodeAt(0);break}const m=Qp(S)||Bp(String.fromCharCode(S)),g=Qp(h)||Bp(String.fromCharCode(h)),A=Up(S),b=Up(h);if(b?d=!1:g&&(A||m||(d=!1)),A?W=!1:m&&(b||g||(W=!1)),h===34&&c[0]==='"'&&S>=48&&S<=57&&(W=d=!1),d&&W&&(d=m,W=g),!d&&!W){f&&(i.content=xd(i.content,c.index,sj));continue}if(W)for(a=l.length-1;a>=0;a--){let v=l[a];if(l[a].level<r)break;if(v.single===f&&l[a].level===r){v=l[a];let y,I;f?(y=e.md.options.quotes[2],I=e.md.options.quotes[3]):(y=e.md.options.quotes[0],I=e.md.options.quotes[1]),i.content=xd(i.content,c.index,I),t[v.token].content=xd(t[v.token].content,v.pos,y),u+=I.length-1,v.token===n&&(u+=y.length-1),p=i.content,s=p.length,l.length=a;continue t}}d?l.push({token:n,pos:c.index,single:f,level:r}):W&&f&&(i.content=xd(i.content,c.index,sj))}}}function $ft(t){if(t.md.options.typographer)for(let e=t.tokens.length-1;e>=0;e--)t.tokens[e].type!=="inline"||!Bft.test(t.tokens[e].content)||Qft(t.tokens[e].children,t)}function _ft(t){let e,a;const l=t.tokens,n=l.length;for(let i=0;i<n;i++){if(l[i].type!=="inline")continue;const r=l[i].children,p=r.length;for(e=0;e<p;e++)r[e].type==="text_special"&&(r[e].type="text");for(e=a=0;e<p;e++)r[e].type==="text"&&e+1<p&&r[e+1].type==="text"?r[e+1].content=r[e].content+r[e+1].content:(e!==a&&(r[a]=r[e]),a++);e!==a&&(r.length=a)}}const sA=[["normalize",Mft],["block",Kft],["inline",Rft],["linkify",Yft],["replacements",Uft],["smartquotes",$ft],["text_join",_ft]];function cA(){this.ruler=new ca;for(let t=0;t<sA.length;t++)this.ruler.push(sA[t][0],sA[t][1])}cA.prototype.process=function(t){const e=this.ruler.getRules("");for(let a=0,l=e.length;a<l;a++)e[a](t)},cA.prototype.State=rj;function bl(t,e,a,l){this.src=t,this.md=e,this.env=a,this.tokens=l,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const n=this.src;for(let i=0,r=0,p=0,u=0,s=n.length,c=!1;r<s;r++){const d=n.charCodeAt(r);if(!c)if(se(d)){p++,d===9?u+=4-u%4:u++;continue}else c=!0;(d===10||r===s-1)&&(d!==10&&r++,this.bMarks.push(i),this.eMarks.push(r),this.tShift.push(p),this.sCount.push(u),this.bsCount.push(0),c=!1,p=0,u=0,i=r+1)}this.bMarks.push(n.length),this.eMarks.push(n.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}bl.prototype.push=function(t,e,a){const l=new el(t,e,a);return l.block=!0,a<0&&this.level--,l.level=this.level,a>0&&this.level++,this.tokens.push(l),l},bl.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},bl.prototype.skipEmptyLines=function(e){for(let a=this.lineMax;e<a&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},bl.prototype.skipSpaces=function(e){for(let a=this.src.length;e<a;e++){const l=this.src.charCodeAt(e);if(!se(l))break}return e},bl.prototype.skipSpacesBack=function(e,a){if(e<=a)return e;for(;e>a;)if(!se(this.src.charCodeAt(--e)))return e+1;return e},bl.prototype.skipChars=function(e,a){for(let l=this.src.length;e<l&&this.src.charCodeAt(e)===a;e++);return e},bl.prototype.skipCharsBack=function(e,a,l){if(e<=l)return e;for(;e>l;)if(a!==this.src.charCodeAt(--e))return e+1;return e},bl.prototype.getLines=function(e,a,l,n){if(e>=a)return"";const i=new Array(a-e);for(let r=0,p=e;p<a;p++,r++){let u=0;const s=this.bMarks[p];let c=s,d;for(p+1<a||n?d=this.eMarks[p]+1:d=this.eMarks[p];c<d&&u<l;){const W=this.src.charCodeAt(c);if(se(W))W===9?u+=4-(u+this.bsCount[p])%4:u++;else if(c-s<this.tShift[p])u++;else break;c++}u>l?i[r]=new Array(u-l+1).join(" ")+this.src.slice(c,d):i[r]=this.src.slice(c,d)}return i.join("")},bl.prototype.Token=el;const tSt=65536;function dA(t,e){const a=t.bMarks[e]+t.tShift[e],l=t.eMarks[e];return t.src.slice(a,l)}function cj(t){const e=[],a=t.length;let l=0,n=t.charCodeAt(l),i=!1,r=0,p="";for(;l<a;)n===124&&(i?(p+=t.substring(r,l-1),r=l):(e.push(p+t.substring(r,l)),p="",r=l+1)),i=n===92,l++,n=t.charCodeAt(l);return e.push(p+t.substring(r)),e}function eSt(t,e,a,l){if(e+2>a)return!1;let n=e+1;if(t.sCount[n]<t.blkIndent||t.sCount[n]-t.blkIndent>=4)return!1;let i=t.bMarks[n]+t.tShift[n];if(i>=t.eMarks[n])return!1;const r=t.src.charCodeAt(i++);if(r!==124&&r!==45&&r!==58||i>=t.eMarks[n])return!1;const p=t.src.charCodeAt(i++);if(p!==124&&p!==45&&p!==58&&!se(p)||r===45&&se(p))return!1;for(;i<t.eMarks[n];){const v=t.src.charCodeAt(i);if(v!==124&&v!==45&&v!==58&&!se(v))return!1;i++}let u=dA(t,e+1),s=u.split("|");const c=[];for(let v=0;v<s.length;v++){const y=s[v].trim();if(!y){if(v===0||v===s.length-1)continue;return!1}if(!/^:?-+:?$/.test(y))return!1;y.charCodeAt(y.length-1)===58?c.push(y.charCodeAt(0)===58?"center":"right"):y.charCodeAt(0)===58?c.push("left"):c.push("")}if(u=dA(t,e).trim(),u.indexOf("|")===-1||t.sCount[e]-t.blkIndent>=4)return!1;s=cj(u),s.length&&s[0]===""&&s.shift(),s.length&&s[s.length-1]===""&&s.pop();const d=s.length;if(d===0||d!==c.length)return!1;if(l)return!0;const W=t.parentType;t.parentType="table";const f=t.md.block.ruler.getRules("blockquote"),S=t.push("table_open","table",1),h=[e,0];S.map=h;const m=t.push("thead_open","thead",1);m.map=[e,e+1];const g=t.push("tr_open","tr",1);g.map=[e,e+1];for(let v=0;v<s.length;v++){const y=t.push("th_open","th",1);c[v]&&(y.attrs=[["style","text-align:"+c[v]]]);const I=t.push("inline","",0);I.content=s[v].trim(),I.children=[],t.push("th_close","th",-1)}t.push("tr_close","tr",-1),t.push("thead_close","thead",-1);let A,b=0;for(n=e+2;n<a&&!(t.sCount[n]<t.blkIndent);n++){let v=!1;for(let I=0,L=f.length;I<L;I++)if(f[I](t,n,a,!0)){v=!0;break}if(v||(u=dA(t,n).trim(),!u)||t.sCount[n]-t.blkIndent>=4||(s=cj(u),s.length&&s[0]===""&&s.shift(),s.length&&s[s.length-1]===""&&s.pop(),b+=d-s.length,b>tSt))break;if(n===e+2){const I=t.push("tbody_open","tbody",1);I.map=A=[e+2,0]}const y=t.push("tr_open","tr",1);y.map=[n,n+1];for(let I=0;I<d;I++){const L=t.push("td_open","td",1);c[I]&&(L.attrs=[["style","text-align:"+c[I]]]);const w=t.push("inline","",0);w.content=s[I]?s[I].trim():"",w.children=[],t.push("td_close","td",-1)}t.push("tr_close","tr",-1)}return A&&(t.push("tbody_close","tbody",-1),A[1]=n),t.push("table_close","table",-1),h[1]=n,t.parentType=W,t.line=n,!0}function aSt(t,e,a){if(t.sCount[e]-t.blkIndent<4)return!1;let l=e+1,n=l;for(;l<a;){if(t.isEmpty(l)){l++;continue}if(t.sCount[l]-t.blkIndent>=4){l++,n=l;continue}break}t.line=n;const i=t.push("code_block","code",0);return i.content=t.getLines(e,n,4+t.blkIndent,!1)+`
|
|
614
614
|
`,i.map=[e,t.line],!0}function lSt(t,e,a,l){let n=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||n+3>i)return!1;const r=t.src.charCodeAt(n);if(r!==126&&r!==96)return!1;let p=n;n=t.skipChars(n,r);let u=n-p;if(u<3)return!1;const s=t.src.slice(p,n),c=t.src.slice(n,i);if(r===96&&c.indexOf(String.fromCharCode(r))>=0)return!1;if(l)return!0;let d=e,W=!1;for(;d++,!(d>=a||(n=p=t.bMarks[d]+t.tShift[d],i=t.eMarks[d],n<i&&t.sCount[d]<t.blkIndent));)if(t.src.charCodeAt(n)===r&&!(t.sCount[d]-t.blkIndent>=4)&&(n=t.skipChars(n,r),!(n-p<u)&&(n=t.skipSpaces(n),!(n<i)))){W=!0;break}u=t.sCount[e],t.line=d+(W?1:0);const f=t.push("fence","code",0);return f.info=c,f.content=t.getLines(e+1,d,u,!0),f.markup=s,f.map=[e,t.line],!0}function nSt(t,e,a,l){let n=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];const r=t.lineMax;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(n)!==62)return!1;if(l)return!0;const p=[],u=[],s=[],c=[],d=t.md.block.ruler.getRules("blockquote"),W=t.parentType;t.parentType="blockquote";let f=!1,S;for(S=e;S<a;S++){const b=t.sCount[S]<t.blkIndent;if(n=t.bMarks[S]+t.tShift[S],i=t.eMarks[S],n>=i)break;if(t.src.charCodeAt(n++)===62&&!b){let y=t.sCount[S]+1,I,L;t.src.charCodeAt(n)===32?(n++,y++,L=!1,I=!0):t.src.charCodeAt(n)===9?(I=!0,(t.bsCount[S]+y)%4===3?(n++,y++,L=!1):L=!0):I=!1;let w=y;for(p.push(t.bMarks[S]),t.bMarks[S]=n;n<i;){const C=t.src.charCodeAt(n);if(se(C))C===9?w+=4-(w+t.bsCount[S]+(L?1:0))%4:w++;else break;n++}f=n>=i,u.push(t.bsCount[S]),t.bsCount[S]=t.sCount[S]+1+(I?1:0),s.push(t.sCount[S]),t.sCount[S]=w-y,c.push(t.tShift[S]),t.tShift[S]=n-t.bMarks[S];continue}if(f)break;let v=!1;for(let y=0,I=d.length;y<I;y++)if(d[y](t,S,a,!0)){v=!0;break}if(v){t.lineMax=S,t.blkIndent!==0&&(p.push(t.bMarks[S]),u.push(t.bsCount[S]),c.push(t.tShift[S]),s.push(t.sCount[S]),t.sCount[S]-=t.blkIndent);break}p.push(t.bMarks[S]),u.push(t.bsCount[S]),c.push(t.tShift[S]),s.push(t.sCount[S]),t.sCount[S]=-1}const h=t.blkIndent;t.blkIndent=0;const m=t.push("blockquote_open","blockquote",1);m.markup=">";const g=[e,0];m.map=g,t.md.block.tokenize(t,e,S);const A=t.push("blockquote_close","blockquote",-1);A.markup=">",t.lineMax=r,t.parentType=W,g[1]=t.line;for(let b=0;b<c.length;b++)t.bMarks[b+e]=p[b],t.tShift[b+e]=c[b],t.sCount[b+e]=s[b],t.bsCount[b+e]=u[b];return t.blkIndent=h,!0}function oSt(t,e,a,l){const n=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let i=t.bMarks[e]+t.tShift[e];const r=t.src.charCodeAt(i++);if(r!==42&&r!==45&&r!==95)return!1;let p=1;for(;i<n;){const s=t.src.charCodeAt(i++);if(s!==r&&!se(s))return!1;s===r&&p++}if(p<3)return!1;if(l)return!0;t.line=e+1;const u=t.push("hr","hr",0);return u.map=[e,t.line],u.markup=Array(p+1).join(String.fromCharCode(r)),!0}function dj(t,e){const a=t.eMarks[e];let l=t.bMarks[e]+t.tShift[e];const n=t.src.charCodeAt(l++);if(n!==42&&n!==45&&n!==43)return-1;if(l<a){const i=t.src.charCodeAt(l);if(!se(i))return-1}return l}function Wj(t,e){const a=t.bMarks[e]+t.tShift[e],l=t.eMarks[e];let n=a;if(n+1>=l)return-1;let i=t.src.charCodeAt(n++);if(i<48||i>57)return-1;for(;;){if(n>=l)return-1;if(i=t.src.charCodeAt(n++),i>=48&&i<=57){if(n-a>=10)return-1;continue}if(i===41||i===46)break;return-1}return n<l&&(i=t.src.charCodeAt(n),!se(i))?-1:n}function iSt(t,e){const a=t.level+2;for(let l=e+2,n=t.tokens.length-2;l<n;l++)t.tokens[l].level===a&&t.tokens[l].type==="paragraph_open"&&(t.tokens[l+2].hidden=!0,t.tokens[l].hidden=!0,l+=2)}function rSt(t,e,a,l){let n,i,r,p,u=e,s=!0;if(t.sCount[u]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[u]-t.listIndent>=4&&t.sCount[u]<t.blkIndent)return!1;let c=!1;l&&t.parentType==="paragraph"&&t.sCount[u]>=t.blkIndent&&(c=!0);let d,W,f;if((f=Wj(t,u))>=0){if(d=!0,r=t.bMarks[u]+t.tShift[u],W=Number(t.src.slice(r,f-1)),c&&W!==1)return!1}else if((f=dj(t,u))>=0)d=!1;else return!1;if(c&&t.skipSpaces(f)>=t.eMarks[u])return!1;if(l)return!0;const S=t.src.charCodeAt(f-1),h=t.tokens.length;d?(p=t.push("ordered_list_open","ol",1),W!==1&&(p.attrs=[["start",W]])):p=t.push("bullet_list_open","ul",1);const m=[u,0];p.map=m,p.markup=String.fromCharCode(S);let g=!1;const A=t.md.block.ruler.getRules("list"),b=t.parentType;for(t.parentType="list";u<a;){i=f,n=t.eMarks[u];const v=t.sCount[u]+f-(t.bMarks[u]+t.tShift[u]);let y=v;for(;i<n;){const O=t.src.charCodeAt(i);if(O===9)y+=4-(y+t.bsCount[u])%4;else if(O===32)y++;else break;i++}const I=i;let L;I>=n?L=1:L=y-v,L>4&&(L=1);const w=v+L;p=t.push("list_item_open","li",1),p.markup=String.fromCharCode(S);const C=[u,0];p.map=C,d&&(p.info=t.src.slice(r,f-1));const k=t.tight,Z=t.tShift[u],E=t.sCount[u],z=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=w,t.tight=!0,t.tShift[u]=I-t.bMarks[u],t.sCount[u]=y,I>=n&&t.isEmpty(u+1)?t.line=Math.min(t.line+2,a):t.md.block.tokenize(t,u,a,!0),(!t.tight||g)&&(s=!1),g=t.line-u>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=z,t.tShift[u]=Z,t.sCount[u]=E,t.tight=k,p=t.push("list_item_close","li",-1),p.markup=String.fromCharCode(S),u=t.line,C[1]=u,u>=a||t.sCount[u]<t.blkIndent||t.sCount[u]-t.blkIndent>=4)break;let Y=!1;for(let O=0,M=A.length;O<M;O++)if(A[O](t,u,a,!0)){Y=!0;break}if(Y)break;if(d){if(f=Wj(t,u),f<0)break;r=t.bMarks[u]+t.tShift[u]}else if(f=dj(t,u),f<0)break;if(S!==t.src.charCodeAt(f-1))break}return d?p=t.push("ordered_list_close","ol",-1):p=t.push("bullet_list_close","ul",-1),p.markup=String.fromCharCode(S),m[1]=u,t.line=u,t.parentType=b,s&&iSt(t,h),!0}function pSt(t,e,a,l){let n=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],r=e+1;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(n)!==91)return!1;function p(A){const b=t.lineMax;if(A>=b||t.isEmpty(A))return null;let v=!1;if(t.sCount[A]-t.blkIndent>3&&(v=!0),t.sCount[A]<0&&(v=!0),!v){const L=t.md.block.ruler.getRules("reference"),w=t.parentType;t.parentType="reference";let C=!1;for(let k=0,Z=L.length;k<Z;k++)if(L[k](t,A,b,!0)){C=!0;break}if(t.parentType=w,C)return null}const y=t.bMarks[A]+t.tShift[A],I=t.eMarks[A];return t.src.slice(y,I+1)}let u=t.src.slice(n,i+1);i=u.length;let s=-1;for(n=1;n<i;n++){const A=u.charCodeAt(n);if(A===91)return!1;if(A===93){s=n;break}else if(A===10){const b=p(r);b!==null&&(u+=b,i=u.length,r++)}else if(A===92&&(n++,n<i&&u.charCodeAt(n)===10)){const b=p(r);b!==null&&(u+=b,i=u.length,r++)}}if(s<0||u.charCodeAt(s+1)!==58)return!1;for(n=s+2;n<i;n++){const A=u.charCodeAt(n);if(A===10){const b=p(r);b!==null&&(u+=b,i=u.length,r++)}else if(!se(A))break}const c=t.md.helpers.parseLinkDestination(u,n,i);if(!c.ok)return!1;const d=t.md.normalizeLink(c.str);if(!t.md.validateLink(d))return!1;n=c.pos;const W=n,f=r,S=n;for(;n<i;n++){const A=u.charCodeAt(n);if(A===10){const b=p(r);b!==null&&(u+=b,i=u.length,r++)}else if(!se(A))break}let h=t.md.helpers.parseLinkTitle(u,n,i);for(;h.can_continue;){const A=p(r);if(A===null)break;u+=A,n=i,i=u.length,r++,h=t.md.helpers.parseLinkTitle(u,n,i,h)}let m;for(n<i&&S!==n&&h.ok?(m=h.str,n=h.pos):(m="",n=W,r=f);n<i;){const A=u.charCodeAt(n);if(!se(A))break;n++}if(n<i&&u.charCodeAt(n)!==10&&m)for(m="",n=W,r=f;n<i;){const A=u.charCodeAt(n);if(!se(A))break;n++}if(n<i&&u.charCodeAt(n)!==10)return!1;const g=Cd(u.slice(1,s));return g?(l||(typeof t.env.references>"u"&&(t.env.references={}),typeof t.env.references[g]>"u"&&(t.env.references[g]={title:m,href:d}),t.line=r),!0):!1}const uSt=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],sSt="[a-zA-Z_:][a-zA-Z0-9:._-]*",cSt="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",fj="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+sSt+"(?:\\s*=\\s*"+cSt+")?)")+"*\\s*\\/?>",Sj="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",dSt="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",WSt="<[?][\\s\\S]*?[?]>",fSt="<![A-Za-z][^>]*>",SSt="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",hSt=new RegExp("^(?:"+fj+"|"+Sj+"|"+dSt+"|"+WSt+"|"+fSt+"|"+SSt+")"),mSt=new RegExp("^(?:"+fj+"|"+Sj+")"),er=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+uSt.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(mSt.source+"\\s*$"),/^$/,!1]];function gSt(t,e,a,l){let n=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(n)!==60)return!1;let r=t.src.slice(n,i),p=0;for(;p<er.length&&!er[p][0].test(r);p++);if(p===er.length)return!1;if(l)return er[p][2];let u=e+1;if(!er[p][1].test(r)){for(;u<a&&!(t.sCount[u]<t.blkIndent);u++)if(n=t.bMarks[u]+t.tShift[u],i=t.eMarks[u],r=t.src.slice(n,i),er[p][1].test(r)){r.length!==0&&u++;break}}t.line=u;const s=t.push("html_block","",0);return s.map=[e,u],s.content=t.getLines(e,u,t.blkIndent,!0),!0}function ASt(t,e,a,l){let n=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let r=t.src.charCodeAt(n);if(r!==35||n>=i)return!1;let p=1;for(r=t.src.charCodeAt(++n);r===35&&n<i&&p<=6;)p++,r=t.src.charCodeAt(++n);if(p>6||n<i&&!se(r))return!1;if(l)return!0;i=t.skipSpacesBack(i,n);const u=t.skipCharsBack(i,35,n);u>n&&se(t.src.charCodeAt(u-1))&&(i=u),t.line=e+1;const s=t.push("heading_open","h"+String(p),1);s.markup="########".slice(0,p),s.map=[e,t.line];const c=t.push("inline","",0);c.content=t.src.slice(n,i).trim(),c.map=[e,t.line],c.children=[];const d=t.push("heading_close","h"+String(p),-1);return d.markup="########".slice(0,p),!0}function LSt(t,e,a){const l=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;const n=t.parentType;t.parentType="paragraph";let i=0,r,p=e+1;for(;p<a&&!t.isEmpty(p);p++){if(t.sCount[p]-t.blkIndent>3)continue;if(t.sCount[p]>=t.blkIndent){let f=t.bMarks[p]+t.tShift[p];const S=t.eMarks[p];if(f<S&&(r=t.src.charCodeAt(f),(r===45||r===61)&&(f=t.skipChars(f,r),f=t.skipSpaces(f),f>=S))){i=r===61?1:2;break}}if(t.sCount[p]<0)continue;let W=!1;for(let f=0,S=l.length;f<S;f++)if(l[f](t,p,a,!0)){W=!0;break}if(W)break}if(!i)return!1;const u=t.getLines(e,p,t.blkIndent,!1).trim();t.line=p+1;const s=t.push("heading_open","h"+String(i),1);s.markup=String.fromCharCode(r),s.map=[e,t.line];const c=t.push("inline","",0);c.content=u,c.map=[e,t.line-1],c.children=[];const d=t.push("heading_close","h"+String(i),-1);return d.markup=String.fromCharCode(r),t.parentType=n,!0}function bSt(t,e,a){const l=t.md.block.ruler.getRules("paragraph"),n=t.parentType;let i=e+1;for(t.parentType="paragraph";i<a&&!t.isEmpty(i);i++){if(t.sCount[i]-t.blkIndent>3||t.sCount[i]<0)continue;let s=!1;for(let c=0,d=l.length;c<d;c++)if(l[c](t,i,a,!0)){s=!0;break}if(s)break}const r=t.getLines(e,i,t.blkIndent,!1).trim();t.line=i;const p=t.push("paragraph_open","p",1);p.map=[e,t.line];const u=t.push("inline","",0);return u.content=r,u.map=[e,t.line],u.children=[],t.push("paragraph_close","p",-1),t.parentType=n,!0}const wd=[["table",eSt,["paragraph","reference"]],["code",aSt],["fence",lSt,["paragraph","reference","blockquote","list"]],["blockquote",nSt,["paragraph","reference","blockquote","list"]],["hr",oSt,["paragraph","reference","blockquote","list"]],["list",rSt,["paragraph","reference","blockquote"]],["reference",pSt],["html_block",gSt,["paragraph","reference","blockquote"]],["heading",ASt,["paragraph","reference","blockquote"]],["lheading",LSt],["paragraph",bSt]];function Od(){this.ruler=new ca;for(let t=0;t<wd.length;t++)this.ruler.push(wd[t][0],wd[t][1],{alt:(wd[t][2]||[]).slice()})}Od.prototype.tokenize=function(t,e,a){const l=this.ruler.getRules(""),n=l.length,i=t.md.options.maxNesting;let r=e,p=!1;for(;r<a&&(t.line=r=t.skipEmptyLines(r),!(r>=a||t.sCount[r]<t.blkIndent));){if(t.level>=i){t.line=a;break}const u=t.line;let s=!1;for(let c=0;c<n;c++)if(s=l[c](t,r,a,!1),s){if(u>=t.line)throw new Error("block rule didn't increment state.line");break}if(!s)throw new Error("none of the block rules matched");t.tight=!p,t.isEmpty(t.line-1)&&(p=!0),r=t.line,r<a&&t.isEmpty(r)&&(p=!0,r++,t.line=r)}},Od.prototype.parse=function(t,e,a,l){if(!t)return;const n=new this.State(t,e,a,l);this.tokenize(n,n.line,n.lineMax)},Od.prototype.State=bl;function $p(t,e,a,l){this.src=t,this.env=a,this.md=e,this.tokens=l,this.tokens_meta=Array(l.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}$p.prototype.pushPending=function(){const t=new el("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},$p.prototype.push=function(t,e,a){this.pending&&this.pushPending();const l=new el(t,e,a);let n=null;return a<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),l.level=this.level,a>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],n={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(l),this.tokens_meta.push(n),l},$p.prototype.scanDelims=function(t,e){const a=this.posMax,l=this.src.charCodeAt(t),n=t>0?this.src.charCodeAt(t-1):32;let i=t;for(;i<a&&this.src.charCodeAt(i)===l;)i++;const r=i-t,p=i<a?this.src.charCodeAt(i):32,u=Qp(n)||Bp(String.fromCharCode(n)),s=Qp(p)||Bp(String.fromCharCode(p)),c=Up(n),d=Up(p),W=!d&&(!s||c||u),f=!c&&(!u||d||s);return{can_open:W&&(e||!f||u),can_close:f&&(e||!W||s),length:r}},$p.prototype.Token=el;function ySt(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function vSt(t,e){let a=t.pos;for(;a<t.posMax&&!ySt(t.src.charCodeAt(a));)a++;return a===t.pos?!1:(e||(t.pending+=t.src.slice(t.pos,a)),t.pos=a,!0)}const ISt=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function CSt(t,e){if(!t.md.options.linkify||t.linkLevel>0)return!1;const a=t.pos,l=t.posMax;if(a+3>l||t.src.charCodeAt(a)!==58||t.src.charCodeAt(a+1)!==47||t.src.charCodeAt(a+2)!==47)return!1;const n=t.pending.match(ISt);if(!n)return!1;const i=n[1],r=t.md.linkify.matchAtStart(t.src.slice(a-i.length));if(!r)return!1;let p=r.url;if(p.length<=i.length)return!1;p=p.replace(/\*+$/,"");const u=t.md.normalizeLink(p);if(!t.md.validateLink(u))return!1;if(!e){t.pending=t.pending.slice(0,-i.length);const s=t.push("link_open","a",1);s.attrs=[["href",u]],s.markup="linkify",s.info="auto";const c=t.push("text","",0);c.content=t.md.normalizeLinkText(p);const d=t.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return t.pos+=p.length-i.length,!0}function xSt(t,e){let a=t.pos;if(t.src.charCodeAt(a)!==10)return!1;const l=t.pending.length-1,n=t.posMax;if(!e)if(l>=0&&t.pending.charCodeAt(l)===32)if(l>=1&&t.pending.charCodeAt(l-1)===32){let i=l-1;for(;i>=1&&t.pending.charCodeAt(i-1)===32;)i--;t.pending=t.pending.slice(0,i),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(a++;a<n&&se(t.src.charCodeAt(a));)a++;return t.pos=a,!0}const WA=[];for(let t=0;t<256;t++)WA.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){WA[t.charCodeAt(0)]=1});function wSt(t,e){let a=t.pos;const l=t.posMax;if(t.src.charCodeAt(a)!==92||(a++,a>=l))return!1;let n=t.src.charCodeAt(a);if(n===10){for(e||t.push("hardbreak","br",0),a++;a<l&&(n=t.src.charCodeAt(a),!!se(n));)a++;return t.pos=a,!0}let i=t.src[a];if(n>=55296&&n<=56319&&a+1<l){const p=t.src.charCodeAt(a+1);p>=56320&&p<=57343&&(i+=t.src[a+1],a++)}const r="\\"+i;if(!e){const p=t.push("text_special","",0);n<256&&WA[n]!==0?p.content=i:p.content=r,p.markup=r,p.info="escape"}return t.pos=a+1,!0}function OSt(t,e){let a=t.pos;if(t.src.charCodeAt(a)!==96)return!1;const n=a;a++;const i=t.posMax;for(;a<i&&t.src.charCodeAt(a)===96;)a++;const r=t.src.slice(n,a),p=r.length;if(t.backticksScanned&&(t.backticks[p]||0)<=n)return e||(t.pending+=r),t.pos+=p,!0;let u=a,s;for(;(s=t.src.indexOf("`",u))!==-1;){for(u=s+1;u<i&&t.src.charCodeAt(u)===96;)u++;const c=u-s;if(c===p){if(!e){const d=t.push("code_inline","code",0);d.markup=r,d.content=t.src.slice(a,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return t.pos=u,!0}t.backticks[c]=s}return t.backticksScanned=!0,e||(t.pending+=r),t.pos+=p,!0}function kSt(t,e){const a=t.pos,l=t.src.charCodeAt(a);if(e||l!==126)return!1;const n=t.scanDelims(t.pos,!0);let i=n.length;const r=String.fromCharCode(l);if(i<2)return!1;let p;i%2&&(p=t.push("text","",0),p.content=r,i--);for(let u=0;u<i;u+=2)p=t.push("text","",0),p.content=r+r,t.delimiters.push({marker:l,length:0,token:t.tokens.length-1,end:-1,open:n.can_open,close:n.can_close});return t.pos+=n.length,!0}function hj(t,e){let a;const l=[],n=e.length;for(let i=0;i<n;i++){const r=e[i];if(r.marker!==126||r.end===-1)continue;const p=e[r.end];a=t.tokens[r.token],a.type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",a=t.tokens[p.token],a.type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="",t.tokens[p.token-1].type==="text"&&t.tokens[p.token-1].content==="~"&&l.push(p.token-1)}for(;l.length;){const i=l.pop();let r=i+1;for(;r<t.tokens.length&&t.tokens[r].type==="s_close";)r++;r--,i!==r&&(a=t.tokens[r],t.tokens[r]=t.tokens[i],t.tokens[i]=a)}}function jSt(t){const e=t.tokens_meta,a=t.tokens_meta.length;hj(t,t.delimiters);for(let l=0;l<a;l++)e[l]&&e[l].delimiters&&hj(t,e[l].delimiters)}const mj={tokenize:kSt,postProcess:jSt};function qSt(t,e){const a=t.pos,l=t.src.charCodeAt(a);if(e||l!==95&&l!==42)return!1;const n=t.scanDelims(t.pos,l===42);for(let i=0;i<n.length;i++){const r=t.push("text","",0);r.content=String.fromCharCode(l),t.delimiters.push({marker:l,length:n.length,token:t.tokens.length-1,end:-1,open:n.can_open,close:n.can_close})}return t.pos+=n.length,!0}function gj(t,e){const a=e.length;for(let l=a-1;l>=0;l--){const n=e[l];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;const i=e[n.end],r=l>0&&e[l-1].end===n.end+1&&e[l-1].marker===n.marker&&e[l-1].token===n.token-1&&e[n.end+1].token===i.token+1,p=String.fromCharCode(n.marker),u=t.tokens[n.token];u.type=r?"strong_open":"em_open",u.tag=r?"strong":"em",u.nesting=1,u.markup=r?p+p:p,u.content="";const s=t.tokens[i.token];s.type=r?"strong_close":"em_close",s.tag=r?"strong":"em",s.nesting=-1,s.markup=r?p+p:p,s.content="",r&&(t.tokens[e[l-1].token].content="",t.tokens[e[n.end+1].token].content="",l--)}}function ZSt(t){const e=t.tokens_meta,a=t.tokens_meta.length;gj(t,t.delimiters);for(let l=0;l<a;l++)e[l]&&e[l].delimiters&&gj(t,e[l].delimiters)}const Aj={tokenize:qSt,postProcess:ZSt};function zSt(t,e){let a,l,n,i,r="",p="",u=t.pos,s=!0;if(t.src.charCodeAt(t.pos)!==91)return!1;const c=t.pos,d=t.posMax,W=t.pos+1,f=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(f<0)return!1;let S=f+1;if(S<d&&t.src.charCodeAt(S)===40){for(s=!1,S++;S<d&&(a=t.src.charCodeAt(S),!(!se(a)&&a!==10));S++);if(S>=d)return!1;if(u=S,n=t.md.helpers.parseLinkDestination(t.src,S,t.posMax),n.ok){for(r=t.md.normalizeLink(n.str),t.md.validateLink(r)?S=n.pos:r="",u=S;S<d&&(a=t.src.charCodeAt(S),!(!se(a)&&a!==10));S++);if(n=t.md.helpers.parseLinkTitle(t.src,S,t.posMax),S<d&&u!==S&&n.ok)for(p=n.str,S=n.pos;S<d&&(a=t.src.charCodeAt(S),!(!se(a)&&a!==10));S++);}(S>=d||t.src.charCodeAt(S)!==41)&&(s=!0),S++}if(s){if(typeof t.env.references>"u")return!1;if(S<d&&t.src.charCodeAt(S)===91?(u=S+1,S=t.md.helpers.parseLinkLabel(t,S),S>=0?l=t.src.slice(u,S++):S=f+1):S=f+1,l||(l=t.src.slice(W,f)),i=t.env.references[Cd(l)],!i)return t.pos=c,!1;r=i.href,p=i.title}if(!e){t.pos=W,t.posMax=f;const h=t.push("link_open","a",1),m=[["href",r]];h.attrs=m,p&&m.push(["title",p]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=S,t.posMax=d,!0}function VSt(t,e){let a,l,n,i,r,p,u,s,c="";const d=t.pos,W=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91)return!1;const f=t.pos+2,S=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(S<0)return!1;if(i=S+1,i<W&&t.src.charCodeAt(i)===40){for(i++;i<W&&(a=t.src.charCodeAt(i),!(!se(a)&&a!==10));i++);if(i>=W)return!1;for(s=i,p=t.md.helpers.parseLinkDestination(t.src,i,t.posMax),p.ok&&(c=t.md.normalizeLink(p.str),t.md.validateLink(c)?i=p.pos:c=""),s=i;i<W&&(a=t.src.charCodeAt(i),!(!se(a)&&a!==10));i++);if(p=t.md.helpers.parseLinkTitle(t.src,i,t.posMax),i<W&&s!==i&&p.ok)for(u=p.str,i=p.pos;i<W&&(a=t.src.charCodeAt(i),!(!se(a)&&a!==10));i++);else u="";if(i>=W||t.src.charCodeAt(i)!==41)return t.pos=d,!1;i++}else{if(typeof t.env.references>"u")return!1;if(i<W&&t.src.charCodeAt(i)===91?(s=i+1,i=t.md.helpers.parseLinkLabel(t,i),i>=0?n=t.src.slice(s,i++):i=S+1):i=S+1,n||(n=t.src.slice(f,S)),r=t.env.references[Cd(n)],!r)return t.pos=d,!1;c=r.href,u=r.title}if(!e){l=t.src.slice(f,S);const h=[];t.md.inline.parse(l,t.md,t.env,h);const m=t.push("image","img",0),g=[["src",c],["alt",""]];m.attrs=g,m.children=h,m.content=l,u&&g.push(["title",u])}return t.pos=i,t.posMax=W,!0}const NSt=/^([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])?)*)$/,TSt=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function MSt(t,e){let a=t.pos;if(t.src.charCodeAt(a)!==60)return!1;const l=t.pos,n=t.posMax;for(;;){if(++a>=n)return!1;const r=t.src.charCodeAt(a);if(r===60)return!1;if(r===62)break}const i=t.src.slice(l+1,a);if(TSt.test(i)){const r=t.md.normalizeLink(i);if(!t.md.validateLink(r))return!1;if(!e){const p=t.push("link_open","a",1);p.attrs=[["href",r]],p.markup="autolink",p.info="auto";const u=t.push("text","",0);u.content=t.md.normalizeLinkText(i);const s=t.push("link_close","a",-1);s.markup="autolink",s.info="auto"}return t.pos+=i.length+2,!0}if(NSt.test(i)){const r=t.md.normalizeLink("mailto:"+i);if(!t.md.validateLink(r))return!1;if(!e){const p=t.push("link_open","a",1);p.attrs=[["href",r]],p.markup="autolink",p.info="auto";const u=t.push("text","",0);u.content=t.md.normalizeLinkText(i);const s=t.push("link_close","a",-1);s.markup="autolink",s.info="auto"}return t.pos+=i.length+2,!0}return!1}function KSt(t){return/^<a[>\s]/i.test(t)}function RSt(t){return/^<\/a\s*>/i.test(t)}function ESt(t){const e=t|32;return e>=97&&e<=122}function PSt(t,e){if(!t.md.options.html)return!1;const a=t.posMax,l=t.pos;if(t.src.charCodeAt(l)!==60||l+2>=a)return!1;const n=t.src.charCodeAt(l+1);if(n!==33&&n!==63&&n!==47&&!ESt(n))return!1;const i=t.src.slice(l).match(hSt);if(!i)return!1;if(!e){const r=t.push("html_inline","",0);r.content=i[0],KSt(r.content)&&t.linkLevel++,RSt(r.content)&&t.linkLevel--}return t.pos+=i[0].length,!0}const YSt=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,GSt=/^&([a-z][a-z0-9]{1,31});/i;function XSt(t,e){const a=t.pos,l=t.posMax;if(t.src.charCodeAt(a)!==38||a+1>=l)return!1;if(t.src.charCodeAt(a+1)===35){const i=t.src.slice(a).match(YSt);if(i){if(!e){const r=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),p=t.push("text_special","",0);p.content=uA(r)?Id(r):Id(65533),p.markup=i[0],p.info="entity"}return t.pos+=i[0].length,!0}}else{const i=t.src.slice(a).match(GSt);if(i){const r=nj(i[0]);if(r!==i[0]){if(!e){const p=t.push("text_special","",0);p.content=r,p.markup=i[0],p.info="entity"}return t.pos+=i[0].length,!0}}}return!1}function Lj(t){const e={},a=t.length;if(!a)return;let l=0,n=-2;const i=[];for(let r=0;r<a;r++){const p=t[r];if(i.push(0),(t[l].marker!==p.marker||n!==p.token-1)&&(l=r),n=p.token,p.length=p.length||0,!p.close)continue;e.hasOwnProperty(p.marker)||(e[p.marker]=[-1,-1,-1,-1,-1,-1]);const u=e[p.marker][(p.open?3:0)+p.length%3];let s=l-i[l]-1,c=s;for(;s>u;s-=i[s]+1){const d=t[s];if(d.marker===p.marker&&d.open&&d.end<0){let W=!1;if((d.close||p.open)&&(d.length+p.length)%3===0&&(d.length%3!==0||p.length%3!==0)&&(W=!0),!W){const f=s>0&&!t[s-1].open?i[s-1]+1:0;i[r]=r-s+f,i[s]=f,p.open=!1,d.end=r,d.close=!1,c=-1,n=-2;break}}}c!==-1&&(e[p.marker][(p.open?3:0)+(p.length||0)%3]=c)}}function FSt(t){const e=t.tokens_meta,a=t.tokens_meta.length;Lj(t.delimiters);for(let l=0;l<a;l++)e[l]&&e[l].delimiters&&Lj(e[l].delimiters)}function JSt(t){let e,a,l=0;const n=t.tokens,i=t.tokens.length;for(e=a=0;e<i;e++)n[e].nesting<0&&l--,n[e].level=l,n[e].nesting>0&&l++,n[e].type==="text"&&e+1<i&&n[e+1].type==="text"?n[e+1].content=n[e].content+n[e+1].content:(e!==a&&(n[a]=n[e]),a++);e!==a&&(n.length=a)}const fA=[["text",vSt],["linkify",CSt],["newline",xSt],["escape",wSt],["backticks",OSt],["strikethrough",mj.tokenize],["emphasis",Aj.tokenize],["link",zSt],["image",VSt],["autolink",MSt],["html_inline",PSt],["entity",XSt]],SA=[["balance_pairs",FSt],["strikethrough",mj.postProcess],["emphasis",Aj.postProcess],["fragments_join",JSt]];function _p(){this.ruler=new ca;for(let t=0;t<fA.length;t++)this.ruler.push(fA[t][0],fA[t][1]);this.ruler2=new ca;for(let t=0;t<SA.length;t++)this.ruler2.push(SA[t][0],SA[t][1])}_p.prototype.skipToken=function(t){const e=t.pos,a=this.ruler.getRules(""),l=a.length,n=t.md.options.maxNesting,i=t.cache;if(typeof i[e]<"u"){t.pos=i[e];return}let r=!1;if(t.level<n){for(let p=0;p<l;p++)if(t.level++,r=a[p](t,!0),t.level--,r){if(e>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;r||t.pos++,i[e]=t.pos},_p.prototype.tokenize=function(t){const e=this.ruler.getRules(""),a=e.length,l=t.posMax,n=t.md.options.maxNesting;for(;t.pos<l;){const i=t.pos;let r=!1;if(t.level<n){for(let p=0;p<a;p++)if(r=e[p](t,!1),r){if(i>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(r){if(t.pos>=l)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},_p.prototype.parse=function(t,e,a,l){const n=new this.State(t,e,a,l);this.tokenize(n);const i=this.ruler2.getRules(""),r=i.length;for(let p=0;p<r;p++)i[p](n)},_p.prototype.State=$p;function HSt(t){const e={};t=t||{},e.src_Any=_k.source,e.src_Cc=tj.source,e.src_Z=aj.source,e.src_P=oA.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");const a="[><|]";return e.src_pseudo_letter="(?:(?!"+a+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+a+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+a+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+a+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function hA(t){return Array.prototype.slice.call(arguments,1).forEach(function(a){a&&Object.keys(a).forEach(function(l){t[l]=a[l]})}),t}function kd(t){return Object.prototype.toString.call(t)}function DSt(t){return kd(t)==="[object String]"}function USt(t){return kd(t)==="[object Object]"}function BSt(t){return kd(t)==="[object RegExp]"}function bj(t){return kd(t)==="[object Function]"}function QSt(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const yj={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function $St(t){return Object.keys(t||{}).reduce(function(e,a){return e||yj.hasOwnProperty(a)},!1)}const _St={"http:":{validate:function(t,e,a){const l=t.slice(e);return a.re.http||(a.re.http=new RegExp("^\\/\\/"+a.re.src_auth+a.re.src_host_port_strict+a.re.src_path,"i")),a.re.http.test(l)?l.match(a.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,a){const l=t.slice(e);return a.re.no_http||(a.re.no_http=new RegExp("^"+a.re.src_auth+"(?:localhost|(?:(?:"+a.re.src_domain+")\\.)+"+a.re.src_domain_root+")"+a.re.src_port+a.re.src_host_terminator+a.re.src_path,"i")),a.re.no_http.test(l)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:l.match(a.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,a){const l=t.slice(e);return a.re.mailto||(a.re.mailto=new RegExp("^"+a.re.src_email_name+"@"+a.re.src_host_strict,"i")),a.re.mailto.test(l)?l.match(a.re.mailto)[0].length:0}}},tht="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",eht="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function aht(t){t.__index__=-1,t.__text_cache__=""}function lht(t){return function(e,a){const l=e.slice(a);return t.test(l)?l.match(t)[0].length:0}}function vj(){return function(t,e){e.normalize(t)}}function jd(t){const e=t.re=HSt(t.__opts__),a=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||a.push(tht),a.push(e.src_xn),e.src_tlds=a.join("|");function l(p){return p.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(l(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(l(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(l(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(l(e.tpl_host_fuzzy_test),"i");const n=[];t.__compiled__={};function i(p,u){throw new Error('(LinkifyIt) Invalid schema "'+p+'": '+u)}Object.keys(t.__schemas__).forEach(function(p){const u=t.__schemas__[p];if(u===null)return;const s={validate:null,link:null};if(t.__compiled__[p]=s,USt(u)){BSt(u.validate)?s.validate=lht(u.validate):bj(u.validate)?s.validate=u.validate:i(p,u),bj(u.normalize)?s.normalize=u.normalize:u.normalize?i(p,u):s.normalize=vj();return}if(DSt(u)){n.push(p);return}i(p,u)}),n.forEach(function(p){t.__compiled__[t.__schemas__[p]]&&(t.__compiled__[p].validate=t.__compiled__[t.__schemas__[p]].validate,t.__compiled__[p].normalize=t.__compiled__[t.__schemas__[p]].normalize)}),t.__compiled__[""]={validate:null,normalize:vj()};const r=Object.keys(t.__compiled__).filter(function(p){return p.length>0&&t.__compiled__[p]}).map(QSt).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+r+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+r+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),aht(t)}function nht(t,e){const a=t.__index__,l=t.__last_index__,n=t.__text_cache__.slice(a,l);this.schema=t.__schema__.toLowerCase(),this.index=a+e,this.lastIndex=l+e,this.raw=n,this.text=n,this.url=n}function mA(t,e){const a=new nht(t,e);return t.__compiled__[a.schema].normalize(a,t),a}function Ca(t,e){if(!(this instanceof Ca))return new Ca(t,e);e||$St(t)&&(e=t,t={}),this.__opts__=hA({},yj,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=hA({},_St,t),this.__compiled__={},this.__tlds__=eht,this.__tlds_replaced__=!1,this.re={},jd(this)}Ca.prototype.add=function(e,a){return this.__schemas__[e]=a,jd(this),this},Ca.prototype.set=function(e){return this.__opts__=hA(this.__opts__,e),this},Ca.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let a,l,n,i,r,p,u,s,c;if(this.re.schema_test.test(e)){for(u=this.re.schema_search,u.lastIndex=0;(a=u.exec(e))!==null;)if(i=this.testSchemaAt(e,a[2],u.lastIndex),i){this.__schema__=a[2],this.__index__=a.index+a[1].length,this.__last_index__=a.index+a[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=e.search(this.re.host_fuzzy_test),s>=0&&(this.__index__<0||s<this.__index__)&&(l=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(r=l.index+l[1].length,(this.__index__<0||r<this.__index__)&&(this.__schema__="",this.__index__=r,this.__last_index__=l.index+l[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&(n=e.match(this.re.email_fuzzy))!==null&&(r=n.index+n[1].length,p=n.index+n[0].length,(this.__index__<0||r<this.__index__||r===this.__index__&&p>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=r,this.__last_index__=p))),this.__index__>=0},Ca.prototype.pretest=function(e){return this.re.pretest.test(e)},Ca.prototype.testSchemaAt=function(e,a,l){return this.__compiled__[a.toLowerCase()]?this.__compiled__[a.toLowerCase()].validate(e,l,this):0},Ca.prototype.match=function(e){const a=[];let l=0;this.__index__>=0&&this.__text_cache__===e&&(a.push(mA(this,l)),l=this.__last_index__);let n=l?e.slice(l):e;for(;this.test(n);)a.push(mA(this,l)),n=n.slice(this.__last_index__),l+=this.__last_index__;return a.length?a:null},Ca.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const a=this.re.schema_at_start.exec(e);if(!a)return null;const l=this.testSchemaAt(e,a[2],a[0].length);return l?(this.__schema__=a[2],this.__index__=a.index+a[1].length,this.__last_index__=a.index+a[0].length+l,mA(this,0)):null},Ca.prototype.tlds=function(e,a){return e=Array.isArray(e)?e:[e],a?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(l,n,i){return l!==i[n-1]}).reverse(),jd(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,jd(this),this)},Ca.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},Ca.prototype.onCompile=function(){};const ar=2147483647,yl=36,gA=1,tu=26,oht=38,iht=700,Ij=72,Cj=128,xj="-",rht=/^xn--/,pht=/[^\0-\x7F]/,uht=/[\x2E\u3002\uFF0E\uFF61]/g,sht={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},AA=yl-gA,vl=Math.floor,LA=String.fromCharCode;function zn(t){throw new RangeError(sht[t])}function cht(t,e){const a=[];let l=t.length;for(;l--;)a[l]=e(t[l]);return a}function wj(t,e){const a=t.split("@");let l="";a.length>1&&(l=a[0]+"@",t=a[1]),t=t.replace(uht,".");const n=t.split("."),i=cht(n,e).join(".");return l+i}function Oj(t){const e=[];let a=0;const l=t.length;for(;a<l;){const n=t.charCodeAt(a++);if(n>=55296&&n<=56319&&a<l){const i=t.charCodeAt(a++);(i&64512)==56320?e.push(((n&1023)<<10)+(i&1023)+65536):(e.push(n),a--)}else e.push(n)}return e}const dht=t=>String.fromCodePoint(...t),Wht=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:yl},kj=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},jj=function(t,e,a){let l=0;for(t=a?vl(t/iht):t>>1,t+=vl(t/e);t>AA*tu>>1;l+=yl)t=vl(t/AA);return vl(l+(AA+1)*t/(t+oht))},qj=function(t){const e=[],a=t.length;let l=0,n=Cj,i=Ij,r=t.lastIndexOf(xj);r<0&&(r=0);for(let p=0;p<r;++p)t.charCodeAt(p)>=128&&zn("not-basic"),e.push(t.charCodeAt(p));for(let p=r>0?r+1:0;p<a;){const u=l;for(let c=1,d=yl;;d+=yl){p>=a&&zn("invalid-input");const W=Wht(t.charCodeAt(p++));W>=yl&&zn("invalid-input"),W>vl((ar-l)/c)&&zn("overflow"),l+=W*c;const f=d<=i?gA:d>=i+tu?tu:d-i;if(W<f)break;const S=yl-f;c>vl(ar/S)&&zn("overflow"),c*=S}const s=e.length+1;i=jj(l-u,s,u==0),vl(l/s)>ar-n&&zn("overflow"),n+=vl(l/s),l%=s,e.splice(l++,0,n)}return String.fromCodePoint(...e)},Zj=function(t){const e=[];t=Oj(t);const a=t.length;let l=Cj,n=0,i=Ij;for(const u of t)u<128&&e.push(LA(u));const r=e.length;let p=r;for(r&&e.push(xj);p<a;){let u=ar;for(const c of t)c>=l&&c<u&&(u=c);const s=p+1;u-l>vl((ar-n)/s)&&zn("overflow"),n+=(u-l)*s,l=u;for(const c of t)if(c<l&&++n>ar&&zn("overflow"),c===l){let d=n;for(let W=yl;;W+=yl){const f=W<=i?gA:W>=i+tu?tu:W-i;if(d<f)break;const S=d-f,h=yl-f;e.push(LA(kj(f+S%h,0))),d=vl(S/h)}e.push(LA(kj(d,0))),i=jj(n,s,p===r),n=0,++p}++n,++l}return e.join("")},zj={version:"2.3.1",ucs2:{decode:Oj,encode:dht},decode:qj,encode:Zj,toASCII:function(t){return wj(t,function(e){return pht.test(e)?"xn--"+Zj(e):e})},toUnicode:function(t){return wj(t,function(e){return rht.test(e)?qj(e.slice(4).toLowerCase()):e})}},fht={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},Sht=/^(vbscript|javascript|file|data):/,hht=/^data:image\/(gif|png|jpeg|webp);/;function mht(t){const e=t.trim().toLowerCase();return Sht.test(e)?hht.test(e):!0}const Vj=["http:","https:","mailto:"];function ght(t){const e=nA(t,!0);if(e.hostname&&(!e.protocol||Vj.indexOf(e.protocol)>=0))try{e.hostname=zj.toASCII(e.hostname)}catch{}return Dp(lA(e))}function Aht(t){const e=nA(t,!0);if(e.hostname&&(!e.protocol||Vj.indexOf(e.protocol)>=0))try{e.hostname=zj.toUnicode(e.hostname)}catch{}return $i(lA(e),$i.defaultChars+"%")}function Ta(t,e){if(!(this instanceof Ta))return new Ta(t,e);e||pA(t)||(e=t||{},t="default"),this.inline=new _p,this.block=new Od,this.core=new cA,this.renderer=new tr,this.linkify=new Ca,this.validateLink=mht,this.normalizeLink=ght,this.normalizeLinkText=Aht,this.utils=jft,this.helpers=vd({},Vft),this.options={},this.configure(t),e&&this.set(e)}Ta.prototype.set=function(t){return vd(this.options,t),this},Ta.prototype.configure=function(t){const e=this;if(pA(t)){const a=t;if(t=fht[a],!t)throw new Error('Wrong `markdown-it` preset "'+a+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(a){t.components[a].rules&&e[a].ruler.enableOnly(t.components[a].rules),t.components[a].rules2&&e[a].ruler2.enableOnly(t.components[a].rules2)}),this},Ta.prototype.enable=function(t,e){let a=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(n){a=a.concat(this[n].ruler.enable(t,!0))},this),a=a.concat(this.inline.ruler2.enable(t,!0));const l=t.filter(function(n){return a.indexOf(n)<0});if(l.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+l);return this},Ta.prototype.disable=function(t,e){let a=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(n){a=a.concat(this[n].ruler.disable(t,!0))},this),a=a.concat(this.inline.ruler2.disable(t,!0));const l=t.filter(function(n){return a.indexOf(n)<0});if(l.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+l);return this},Ta.prototype.use=function(t){const e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},Ta.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");const a=new this.core.State(t,this,e);return this.core.process(a),a.tokens},Ta.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},Ta.prototype.parseInline=function(t,e){const a=new this.core.State(t,this,e);return a.inlineMode=!0,this.core.process(a),a.tokens},Ta.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};const Nj=Ta({html:!0,breaks:!0}),Tj=()=>{const t=o.ref(""),e=o.ref({visible:!1,onVisibleChange:i=>{e.value.visible=i}}),a=i=>{t.value=i,e.value.visible=!0},l=i=>i.split(`
|
|
615
|
-
`).filter(u=>u.startsWith("|")&&u.endsWith("|")).map(u=>u.split("|").slice(1,-1).map(s=>s.trim()));return{currentImage:t,previewConfig:e,renderMarkdown:i=>{const r=/<img src="([^"]+)"[^>]*>/g,p=i.replace(r,(c,d)=>`<img src="${d}" class="clickable-image" />`),u=/\|(.+\|)+/g;if(u.test(p)){const c=l(p),d=c[0].map((f,S)=>({title:f,dataIndex:`col${S}`,key:`col${S}`})),W=c.slice(1).map((f,S)=>{const h={key:`row${S}`};return f.forEach((m,g)=>{h[`col${g}`]=m}),h});return o.h("div",null,[o.h("div",{innerHTML:Nj.render(p.replace(u,""))}),o.h("div",{class:"table-container"},[o.h(b0t,{columns:d,dataSource:W,class:"markdown-table",bordered:!0,pagination:!1,scroll:{x:!0}})])])}return o.h("div",{innerHTML:Nj.render(p),onClick:c=>{const d=c.target;d&&d.tagName==="IMG"&&a(d.src)}})}}},Lht=aA(o.defineComponent({name:"suspensionMsgBubble",inheritAttrs:!1,__name:"suspensionMsgBubble",props:{msgList:{},showMsgNumber:{default:5},bubbleTheme:{default:"dark"},useCustomDialog:{type:Boolean,default:!1},BubbleWidth:{default:()=>({width:"220px",bottom:"85%"})},BubbleBottom:{},suspensionStyle:{default:()=>({maxHeight:"33vh"})}},setup(t){const e=t,{renderMarkdown:a}=Tj(),l=o.computed(()=>e.bubbleTheme==="dark"?hn.darkAlgorithm:hn.defaultAlgorithm);return(n,i)=>(o.openBlock(),o.createElementBlock("div",{class:"suspension-content",style:o.normalizeStyle(n.suspensionStyle)},[o.createVNode(o.unref(HC),{theme:{algorithm:l.value}},{default:o.withCtx(()=>[o.createElementVNode("div",{class:o.normalizeClass(n.useCustomDialog?"useCustom-dialog":"suspension-msg-bubble"),style:o.normalizeStyle(e.BubbleWidth)},[o.createVNode(o.TransitionGroup,{name:"bubble",tag:"div"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.msgList,(r,p)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:r.id},[p>=n.msgList.length-n.showMsgNumber?(o.openBlock(),o.createBlock(o.unref(E2),{key:0,class:o.normalizeClass(["bubble-item",r.type]),variant:r.type==="user"?"outlined":"filled",typing:!0,content:r.content,messageRender:o.unref(a),loading:r.type==="aiLocal",style:o.normalizeStyle(e.BubbleWidth)},null,8,["class","variant","content","messageRender","loading","style"])):o.createCommentVNode("",!0)],64))),128))]),_:1})],6)]),_:1},8,["theme"])],4))}}),[["__scopeId","data-v-8448adae"]]);function Mj(t,e={}){const a=o.ref(!1),l=o.ref(0),n=o.ref(0),i=o.ref(t.value?parseInt(getComputedStyle(t.value).left)||e.initialX||10:e.initialX||10),r=o.ref(t.value?parseInt(getComputedStyle(t.value).top)||e.initialY||window.innerHeight-300:e.initialY||window.innerHeight-300),p=d=>"touches"in d?{clientX:d.touches[0].clientX,clientY:d.touches[0].clientY}:{clientX:d.clientX,clientY:d.clientY},u=d=>{if(e.dragHandleClass&&!d.target.closest(`.${e.dragHandleClass}`))return;e.stopPropagation&&d.stopPropagation(),d.preventDefault();const{clientX:W,clientY:f}=p(d);if(!t.value)return;const S=t.value.getBoundingClientRect();i.value=S.left,r.value=S.top,l.value=W,n.value=f,a.value=!0,t.value.style.position="fixed",t.value.style.cursor="grabbing",document.addEventListener("mousemove",s),document.addEventListener("touchmove",s,{passive:!1}),document.addEventListener("mouseup",c),document.addEventListener("touchend",c)},s=d=>{if(!a.value||!t.value)return;d.preventDefault();const{clientX:W,clientY:f}=p(d),S=W-l.value,h=f-n.value;t.value.style.left=`${i.value+S}px`,t.value.style.top=`${r.value+h}px`},c=()=>{a.value=!1,t.value&&(t.value.style.cursor="grab"),document.removeEventListener("mousemove",s),document.removeEventListener("touchmove",s),document.removeEventListener("mouseup",c),document.removeEventListener("touchend",c)};return o.onUnmounted(()=>{c()}),{startDrag:u,isDragging:a,endDrag:c}}var bht={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const yht={class:"robot"},vht={key:0,class:"digital-human-wrap"},Iht={key:1,src:Rj,alt:"",draggable:"false"},Cht={key:0,class:"is_icon"},xht={key:0,class:"btn"},wht={key:0},Oht={key:1,class:"is_icon"},kht={class:"qa_input"},jht={class:"is_icon clear"},qht={class:"is_icon"},Zht={key:0},zht={key:1,class:"iconfont rotate icon-zhongxinhuida",title:"重新回答"},Vht={class:"send"},Nht=o.defineComponent({name:"AXPromptsFlexVerticalSetup",__name:"index",props:{apiPrefix:{default:bht.VITE_APP_AI_SERVER_PROXY||"/api21215"},isDebug:{type:Boolean,default:!1},dialogBoxTheme:{default:"light"},showMsgBubble:{type:Boolean,default:!0},isExhibitionPro:{type:Boolean,default:!1},isFuYangPro:{type:Boolean,default:!1},isExhibitionPlay:{type:Boolean},isShowDialogIcon:{type:Boolean,default:!1},stream:{default:"True"},title:{default:"GR水利大模型"},greet:{default:"您好,我是GR水利大模型智能小助手,您可以向我提出贵仁科技水利大模型使用问题。"},welcomeMessage:{default:"您好,我是GR水利大模型智能小助手,您可以向我提出贵仁科技水利大模型使用问题。"},waitTxt:{default:"贵仁科技AI正在生成回答"},systemName:{default:"g-ai-robot3"},robotCss:{default:()=>({left:"10px",bottom:"10px"})},placementBottom:{default:100},placementLeft:{default:450},useAudio:{type:Boolean,default:!0},space:{default:3e3},mode:{default:"video"},qaServer:{default:t=>`${t.apiPrefix}/chatGlm/searchTextNew`},cozeInfo:{default:()=>({bot_id:"7473691358872584226"})},createConversationUrl:{default:t=>`${t.apiPrefix}/chatGlm/createConversation`},audioWs:{default:"wss://model.keepsoft.net:39002/funasrWs"},wsServer:{},voiceprintWs:{default:"wss://model.keepsoft.net:39002/speakerWs"},wakeupAudio:{default:t=>`${t.apiPrefix}/asr/saveWakeUpAudio`},interrupt:{default:t=>`${t.apiPrefix}/chatGlm/cancelChat`},instructWs:{default:"wss://model.keepsoft.net:39002/commandWs"},searchTextCallback:{type:Function,default:t=>{console.log(t,"params")}},eventFun:{default:()=>[{keywords:["打开灌区"],trigger:"after",fun:t=>{console.log(t,"a"),console.log("打开灌区")}},{keywords:["打开技术舱"],trigger:"after",fun:t=>{console.log(t,"a"),console.log("打开技术舱")}}]},videoStyle:{},digitalStyle:{},canvasStyle:{},bubbleStyle:{},offer:{},human:{},humanaudio:{},stop_audio:{},textDriven:{},canvasWidth:{},canvasHeight:{},canvasCartoonWidth:{},canvasCartoonHeight:{},showMsgNumber:{},bubbleTheme:{},useCustomDialog:{type:Boolean},BubbleWidth:{},BubbleBottom:{},suspensionStyle:{}},setup(t){const e=o.ref("xiao-gui");o.provide("globalAvatarId",e);const{currentImage:a,previewConfig:l,renderMarkdown:n}=Tj(),{addAudioToQueue:i,stopOrderPlayAudio:r}=TWt(),p=t,u=o.ref(""),s=o.computed(()=>p.dialogBoxTheme==="dark"?hn.darkAlgorithm:hn.defaultAlgorithm),c=o.ref(!1),d=o.ref("end"),W=o.ref(""),f=o.ref(),S=o.ref([{id:0,type:"aiAnswer",content:p.welcomeMessage}]),h=o.ref(""),m=o.computed(()=>({...p.cozeInfo,conversation_id:h.value})),g=()=>{me.post(p.createConversationUrl,{coze_info:p.cozeInfo}).then(Lt=>{const vt=Lt.data;vt.code===200&&(h.value=vt.detail.conversation_id)}).catch(Lt=>{console.error(Lt)})};let A=null;const b=()=>{var Lt;p.mode=="audio"&&O(),p.mode=="video"&&(O(),(Lt=f.value)==null||Lt.main())},v=o.ref(""),y=o.ref(""),I=()=>{v.value=W.value};function L(Lt){const vt=JSON.parse(Lt.data),mt=vt.text,Ct=vt.mode;if(p.isDebug&&console.log("isDebug",vt),d.value==="start")Ct=="2pass-offline"||Ct=="offline"?(v.value=v.value+mt.replace(/ +/g,""),W.value=v.value):W.value=W.value+mt;else if(Ct=="2pass-offline"||Ct=="offline"){y.value=vt.audio_data_bytes;let kt=_g(vt.text,{toneType:"none",type:"array"}).filter(Vt=>Vt!==","&&Vt!=="。"&&Vt!=="、").join("");if(Bg.xiaoguibaibai.some(Vt=>kt.includes(Vt))&&!H.value&&z.value){Wt==null||Wt.setData(u.value,y.value),Wt==null||Wt.wsSendData(),Wt==null||Wt.setOnMessageCallback(async Vt=>{Vt.text==="yes"&&G(vt.text)});return}if(M0t.xiaoguizanting.some(Vt=>kt.includes(Vt))&&!H.value&&z.value){Wt==null||Wt.setData(u.value,y.value),Wt==null||Wt.wsSendData(),Wt==null||Wt.setOnMessageCallback(async Vt=>{Vt.text==="yes"&&V(vt.text)});return}const Tt={xiaogui:Lk.xiaogui,xiaohui:z0t.xiaogui,xiaozhi:V0t.xiaogui,xiaoG:N0t.xiaogui,xiaoR:T0t.xiaogui};let Rt=null;for(const[Vt,Kt]of Object.entries(Tt))if(Kt.some(te=>kt.includes(te))){Rt=Vt,H.value||F(vt.text,Vt);break}!Rt&&z.value&&u.value&&(Wt==null||Wt.setData(u.value,y.value),Wt==null||Wt.wsSendData(),Wt==null||Wt.setOnMessageCallback(async Vt=>{if(Vt.text==="yes")if(H.value){if(pt.value){await w(K.value,pt.value);const Kt=Date.now();S.value.push({id:Kt,type:"user",content:vt.text}),T(vt.text)}}else S.value.push({id:Date.now(),type:"user",content:vt.text}),T(vt.text)}))}}const w=async(Lt,vt)=>{try{const mt=await me.post(p.interrupt,{conversation_id:Lt,chat_id:vt},{headers:{"Content-Type":"application/json"}});return!0}catch(mt){return console.error("取消请求失败",mt),!0}};function C(Lt){Lt===0||(Lt===1?O():Lt===2&&(console.log("connecttion error"),O()))}let k=new Int16Array;const Z=o.ref(null),E=o.ref(null),z=o.ref(!1),Y=o.ref(null),O=()=>{const Lt=A==null?void 0:A.wsStart();Wt==null||Wt.wsStart(),Lt===1?(console.log("connect start"),Y.value.open(()=>{console.log("recorder open"),Y.value.start()})):(O(),console.log("connect error"))},M=()=>{A==null||A.wsStop(),Wt==null||Wt.wsStop(),Y.value.pause()},J=(Lt,vt,mt,Ct)=>{var Kt;E.value&&((Kt=E.value)==null||Kt.input(Lt[Lt.length-1],vt,Ct));var kt=Lt[Lt.length-1],Tt=new Array(kt),Rt=zd.SampleData(Tt,Ct,16e3).data;k=Int16Array.from([...k,...Rt]);for(var Vt=960;k.length>=Vt;){const te=k.slice(0,Vt);k=k.slice(Vt),A==null||A.wsSend(te)}},F=async(Lt,vt)=>{var kt,Tt,Rt,Vt;let mt;p.isExhibitionPro?mt={xiaohui:{displayName:"小慧小慧",avatarId:"xiao-hui"},xiaozhi:{displayName:"小智小智",avatarId:"xiao-zhi"},xiaoG:{displayName:"小G同学",avatarId:"xiao-g"},xiaoR:{displayName:"小R同学",avatarId:"xiao-r"}}:mt={xiaogui:{displayName:"小贵小贵",avatarId:"xiao-gui"},xiaoG:{displayName:"小G同学",avatarId:"xiao-g"},xiaoR:{displayName:"小R同学",avatarId:"xiao-r"}};const Ct=mt[vt];Ct&&(e.value=Ct.avatarId,p.isExhibitionPro&&localStorage.setItem("avatarId_data",e.value),(kt=f.value)!=null&&kt.isAudioActive&&((Tt=f.value)==null||Tt.digitalHumanStop()),(Rt=f.value)!=null&&Rt.isPlaying&&((Vt=f.value)==null||Vt.interruptSpeech()),S.value.push({id:Date.now(),type:"user",content:Ct.displayName}),y.value&&U(y.value,1),z.value=!0,r(),dt(),window.setTimeout(()=>{var Kt,te,ae;if(S.value.push({id:Date.now(),type:"aiAnswer",content:"我在,请问有什么可以帮您。"}),p.mode=="video"){let ee="";e.value==="xiao-zhi"?ee="xiaoG_body":e.value==="xiao-hui"?ee="xiaoR_body":e.value==="xiao-gui"&&(p.isFuYangPro?ee="half_body_demo":ee="half_body");let he={metahuman_type:ee,audiourl:"",interrupt:!0,text:"我在,请问有什么可以帮您。"};if(e.value==="xiao-gui"||e.value==="xiao-zhi"||e.value==="xiao-hui"){if(((Kt=f.value)==null?void 0:Kt.isOfferPengding)===!1)return;(te=f.value)==null||te.humanaudio(he)}else(e.value==="xiao-g"||e.value==="xiao-r")&&((ae=f.value)==null||ae.textToSpeech("我在,请问有什么可以帮您。"))}else _(Lk.here)},200))},V=Lt=>{const mt=_g(Lt,{toneType:"none",type:"array"}).filter(Ct=>Ct!==","&&Ct!=="。"&&Ct!=="、").join("").includes("zanting")?"暂停":"停止";S.value.push({id:Date.now(),type:"user",content:mt}),window.setTimeout(()=>{var Ct,kt;p.mode=="video"?(e.value==="xiao-gui"||e.value==="xiao-zhi"||e.value==="xiao-hui"?(Ct=f.value)==null||Ct.digitalHumanStop():(e.value==="xiao-g"||e.value==="xiao-r")&&((kt=f.value)==null||kt.interruptSpeech()),S.value.push({id:Date.now(),type:"aiAnswer",content:"好的"})):_(Bg.here)},200)},G=Lt=>{const mt=_g(Lt,{toneType:"none",type:"array"}).filter(Ct=>Ct!==","&&Ct!=="。"&&Ct!=="、").join("").includes("zaijian")?"再见":"拜拜";S.value.push({id:Date.now(),type:"user",content:mt}),z.value=!1,r(),dt(),H.value=!1,window.setTimeout(()=>{var Ct,kt;if(S.value.push({id:Date.now(),type:"aiAnswer",content:"很高兴为您服务,再见!"}),p.mode=="video"){let Tt="";e.value==="xiao-zhi"?Tt="xiaoG_body":e.value==="xiao-hui"?Tt="xiaoR_body":e.value==="xiao-gui"&&(p.isFuYangPro?Tt="half_body_demo":Tt="half_body");let Rt={metahuman_type:Tt,audiourl:"",interrupt:!0,text:"很高兴为您服务,再见!"};e.value==="xiao-gui"||e.value==="xiao-zhi"||e.value==="xiao-hui"?(Ct=f.value)==null||Ct.humanaudio(Rt):(e.value==="xiao-g"||e.value==="xiao-r")&&((kt=f.value)==null||kt.textToSpeech("很高兴为您服务,再见!"))}else _(Bg.here)},200)},U=async(Lt,vt)=>{try{const mt={conversation_id:vt,audio_data_base64:Lt},Ct=await me.post(p.wakeupAudio,mt,{headers:{"Content-Type":"application/json"}});p.isDebug&&console.log("音频数据发送成功:",Ct.data),Ct.data.code===0&&(u.value=Ct.data.detail.audio_name)}catch(mt){console.error("音频数据发送失败:",mt)}},D=o.ref(),B=o.ref({}),H=o.ref(!1);o.provide("isWaitingForResponse",H);const pt=o.ref(""),K=o.ref(""),T=Lt=>{H.value=!0,D.value=null,pt.value="",K.value="";let vt={searchText:Lt,stream:p.stream,use_tts:"True",coze_info:m.value||{}};z.value=!0,S.value.push({id:Date.now()+1,type:"aiLocal",content:""}),p.stream==="True"&&Xk(p.qaServer,vt,{onopen:()=>{var mt,Ct,kt,Tt;r(),(mt=f.value)!=null&&mt.isAudioActive&&((Ct=f.value)==null||Ct.digitalHumanStop()),(kt=f.value)!=null&&kt.isPlaying&&((Tt=f.value)==null||Tt.interruptSpeech())},onmessage:async mt=>{var te,ae;const{audioUrl:Ct,data:kt,text:Tt,chat_id:Rt,conversation_id:Vt,message_type:Kt}=mt;if(kt&&Kt==="answer"&&(B.value={},D.value=kt,Rt&&Vt&&(pt.value=Rt,K.value=Vt),kt.action&&(p.isDebug&&console.log("action",kt.action),B.value=q(kt.action),B.value&&(B.value.trigger==="before"||B.value.trigger==="together")&&B.value.fun(kt))),r(),e.value==="xiao-gui"||e.value==="xiao-zhi"||e.value==="xiao-hui")if(p.mode=="video"&&Kt==="answer"){let ee="";e.value==="xiao-zhi"?ee="xiaoG_body":e.value==="xiao-hui"?ee="xiaoR_body":e.value==="xiao-gui"&&(p.isFuYangPro?ee="half_body_demo":ee="half_body");let he={metahuman_type:ee,audiourl:Ct,interrupt:!1,text:Tt};(te=f.value)==null||te.humanaudio(he),setTimeout(()=>{S.value[S.value.length-1].type="aiAnswer",S.value[S.value.length-1].content+=Tt},1e3)}else i(Ct,!0);else(e.value==="xiao-g"||e.value==="xiao-r")&&(p.mode=="video"&&Kt==="answer"?(setTimeout(()=>{S.value[S.value.length-1].type="aiAnswer",S.value[S.value.length-1].content+=Tt},1e3),await((ae=f.value)==null?void 0:ae.textToSpeech(Tt))):i(Ct,!0))},onclose:()=>{H.value=!1,B.value&&B.value.trigger=="after"&&B.value.fun(D.value),c.value=!1},onerror:()=>{H.value=!1}})},q=Lt=>p.eventFun.find(mt=>mt.keywords.some(Ct=>Lt.includes(Ct))),R=o.ref(!1);let P=null;const N=o.ref([]),X=()=>{bt(),!c.value&&(R.value=!1,N.value=[],B.value={},P&&(window.clearInterval(P),P=null))},Q=()=>{if(c.value)return;N.value=[],B.value={},P&&(window.clearInterval(P),P=null);let Lt=p.greet;c.value=!0,tt({wholeText:Lt,type:"aiLocal"})},$=()=>{if(R.value)X();else{R.value=!0;let Lt=p.greet;c.value=!0,tt({wholeText:Lt,type:"aiLocal"})}},ot=()=>{let Lt=N.value[N.value.length-2];et(Lt.wholeText)},at=()=>{c.value||d.value==="start"||(r(),W.value&&(N.value.push({type:"user",wholeText:W.value,singleText:W.value}),et(W.value),W.value=""))},it=o.ref([]),et=Lt=>{let vt={searchText:Lt,use_tts:"False",stream:p.stream,coze_info:m.value||{}};N.value.push({type:"aiLocal",wholeText:"",singleText:`${p.waitTxt} <span class="ellipsisText"></span>`}),it.value=[],Zt(),c.value=!0,p.stream==="True"&&Xk(p.qaServer,vt,{onopen:()=>{N.value.splice(N.value.length-1,1),N.value.push({type:"aiAnswer",wholeText:"",singleText:""})},onmessage:mt=>{p.isDebug&&console.log(mt);const{text:Ct,data:kt,message_type:Tt}=mt;if(kt&&Tt==="answer"){D.value=kt,kt.action&&(B.value=q(kt.action),B.value&&(B.value.trigger==="before"||B.value.trigger==="together")&&B.value.fun(kt));const Rt=N.value.length-1;N.value[Rt].singleText+=String(Ct)}if(kt&&Tt==="follow_up"){const Rt=Ct.split(`
|
|
616
|
-
`).map(Vt=>Vt.trim()).filter(Vt=>Vt.length>0);it.value=[...new Set([...it.value,...Rt])]}Zt()},onclose:()=>{c.value=!1,B.value&&B.value.trigger=="after"&&B.value.fun(D.value)}})},tt=Lt=>{let vt=Lt.wholeText.split(""),mt=0;N.value.push({singleText:vt[mt],...Lt}),P=window.setInterval(()=>{mt++,N.value[N.value.length-1].singleText+=vt[mt],Zt(),mt>=vt.length-1&&(c.value=!1,window.clearInterval(P),P=null,Lt.type==="aiAnswer"&&B.value&&B.value.fun&&B.value.fun({...Lt}))},50)},nt=()=>{r(),d.value="start",z.value=!1,W.value="",v.value="",Z.value&&(E.value=zd.WaveView({elem:Z.value}))},bt=()=>{d.value="end",E.value=null};let Wt=null;o.onMounted(()=>{p.isExhibitionPro&&(e.value="xiao-zhi"),g(),A=new CWt({url:p.audioWs,msgHandle:L,stateHandle:C}),Wt=new xWt(p.voiceprintWs),Y.value=new zd({sampleBits:16,sampleRate:48e3,numChannels:1,onProcess:J}),b()}),o.onBeforeUnmount(()=>{M()}),o.ref(null);let yt=null;const It=o.ref(!1),ut=o.ref(""),_=(Lt,vt)=>{if(!Lt)return!1;It.value=!1,ut.value="";let mt=Lt;yt?(yt.pause(),yt.src=mt,yt.load()):(yt=new Audio(mt),yt.addEventListener("ended",()=>{ut.value=="sys"&&B.value&&B.value.fun&&B.value.trigger=="after"&&B.value.fun({...B.value.params}),It.value=!1,ut.value="",B.value={}},!1)),setTimeout(()=>{yt.play().then(()=>{vt&&(It.value=!0,ut.value=vt)})},100)},dt=()=>{yt&&yt.pause(),It.value=!1,ut.value=""},At=o.ref(null),Zt=async()=>{var Lt;await o.nextTick(),At.value.scrollTop=(Lt=At.value)==null?void 0:Lt.scrollHeight},Nt=o.computed(()=>it.value.map((Lt,vt)=>({label:Lt,key:`q-${vt}`}))),ft=async Lt=>{W.value=Lt.data.label,await at()},st=o.ref(null),gt=o.ref(null),wt=o.ref({left:p.placementLeft+"px",bottom:p.placementBottom+"px",cursor:"grab",zIndex:1e4}),{startDrag:Ot,endDrag:zt}=Mj(st,{dragHandleClass:"robot"}),{startDrag:jt}=Mj(gt,{initialX:50,initialY:window.innerHeight-200,dragHandleClass:"dialog-header",stopPropagation:!0});return(Lt,vt)=>(o.openBlock(),o.createElementBlock("div",{id:"g-ai-robot",style:o.normalizeStyle([Lt.robotCss,{"pointer-events":"auto"}]),ref_key:"robotElement",ref:st,onMousedown:vt[3]||(vt[3]=(...mt)=>o.unref(Ot)&&o.unref(Ot)(...mt)),onTouchstart:vt[4]||(vt[4]=(...mt)=>o.unref(Ot)&&o.unref(Ot)(...mt)),onMouseup:vt[5]||(vt[5]=(...mt)=>o.unref(zt)&&o.unref(zt)(...mt))},[o.createElementVNode("div",yht,[p.mode=="video"||p.mode=="audio"?(o.openBlock(),o.createElementBlock("div",vht,[p.isShowDialogIcon?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("img",{key:0,src:Tn,class:o.normalizeClass(["dialogImg",{disabled:c.value}]),onClick:$,style:{"user-select":"auto","pointer-events":"auto"}},null,2)),!Lt.$slots.reference&&p.mode=="audio"?(o.openBlock(),o.createElementBlock("img",Iht)):o.createCommentVNode("",!0),o.renderSlot(Lt.$slots,"reference",{},void 0,!0),p.mode=="video"?(o.openBlock(),o.createBlock(XWt,o.mergeProps({key:2},Lt.$props,{ref_key:"digitalHumanRef",ref:f}),null,16)):o.createCommentVNode("",!0),Lt.showMsgBubble?(o.openBlock(),o.createBlock(Lht,o.mergeProps({key:3},Lt.$props,{"msg-list":S.value}),null,16,["msg-list"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)]),R.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"talk_main",style:o.normalizeStyle(wt.value),ref_key:"messageElement",ref:gt},[o.createVNode(o.unref(
|
|
615
|
+
`).filter(u=>u.startsWith("|")&&u.endsWith("|")).map(u=>u.split("|").slice(1,-1).map(s=>s.trim()));return{currentImage:t,previewConfig:e,renderMarkdown:i=>{const r=/<img src="([^"]+)"[^>]*>/g,p=i.replace(r,(c,d)=>`<img src="${d}" class="clickable-image" />`),u=/\|(.+\|)+/g;if(u.test(p)){const c=l(p),d=c[0].map((f,S)=>({title:f,dataIndex:`col${S}`,key:`col${S}`})),W=c.slice(1).map((f,S)=>{const h={key:`row${S}`};return f.forEach((m,g)=>{h[`col${g}`]=m}),h});return o.h("div",null,[o.h("div",{innerHTML:Nj.render(p.replace(u,""))}),o.h("div",{class:"table-container"},[o.h(b0t,{columns:d,dataSource:W,class:"markdown-table",bordered:!0,pagination:!1,scroll:{x:!0}})])])}return o.h("div",{innerHTML:Nj.render(p),onClick:c=>{const d=c.target;d&&d.tagName==="IMG"&&a(d.src)}})}}},Lht=aA(o.defineComponent({name:"suspensionMsgBubble",inheritAttrs:!1,__name:"suspensionMsgBubble",props:{msgList:{},showMsgNumber:{default:5},bubbleTheme:{default:"dark"},useCustomDialog:{type:Boolean,default:!1},BubbleWidth:{default:()=>({width:"220px",bottom:"85%"})},BubbleBottom:{},suspensionStyle:{default:()=>({maxHeight:"33vh"})}},setup(t){const e=t,{renderMarkdown:a}=Tj(),l=o.computed(()=>e.bubbleTheme==="dark"?hn.darkAlgorithm:hn.defaultAlgorithm);return(n,i)=>(o.openBlock(),o.createElementBlock("div",{class:"suspension-content",style:o.normalizeStyle(n.suspensionStyle)},[o.createVNode(o.unref(H2),{theme:{algorithm:l.value}},{default:o.withCtx(()=>[o.createElementVNode("div",{class:o.normalizeClass(n.useCustomDialog?"useCustom-dialog":"suspension-msg-bubble"),style:o.normalizeStyle(e.BubbleWidth)},[o.createVNode(o.TransitionGroup,{name:"bubble",tag:"div"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.msgList,(r,p)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:r.id},[p>=n.msgList.length-n.showMsgNumber?(o.openBlock(),o.createBlock(o.unref(RC),{key:0,class:o.normalizeClass(["bubble-item",r.type]),variant:r.type==="user"?"outlined":"filled",typing:!0,content:r.content,messageRender:o.unref(a),loading:r.type==="aiLocal",style:o.normalizeStyle(e.BubbleWidth)},null,8,["class","variant","content","messageRender","loading","style"])):o.createCommentVNode("",!0)],64))),128))]),_:1})],6)]),_:1},8,["theme"])],4))}}),[["__scopeId","data-v-8448adae"]]);function Mj(t,e={}){const a=o.ref(!1),l=o.ref(0),n=o.ref(0),i=o.ref(t.value?parseInt(getComputedStyle(t.value).left)||e.initialX||10:e.initialX||10),r=o.ref(t.value?parseInt(getComputedStyle(t.value).top)||e.initialY||window.innerHeight-300:e.initialY||window.innerHeight-300),p=d=>"touches"in d?{clientX:d.touches[0].clientX,clientY:d.touches[0].clientY}:{clientX:d.clientX,clientY:d.clientY},u=d=>{if(e.dragHandleClass&&!d.target.closest(`.${e.dragHandleClass}`))return;e.stopPropagation&&d.stopPropagation(),d.preventDefault();const{clientX:W,clientY:f}=p(d);if(!t.value)return;const S=t.value.getBoundingClientRect();i.value=S.left,r.value=S.top,l.value=W,n.value=f,a.value=!0,t.value.style.position="fixed",t.value.style.cursor="grabbing",document.addEventListener("mousemove",s),document.addEventListener("touchmove",s,{passive:!1}),document.addEventListener("mouseup",c),document.addEventListener("touchend",c)},s=d=>{if(!a.value||!t.value)return;d.preventDefault();const{clientX:W,clientY:f}=p(d),S=W-l.value,h=f-n.value;t.value.style.left=`${i.value+S}px`,t.value.style.top=`${r.value+h}px`},c=()=>{a.value=!1,t.value&&(t.value.style.cursor="grab"),document.removeEventListener("mousemove",s),document.removeEventListener("touchmove",s),document.removeEventListener("mouseup",c),document.removeEventListener("touchend",c)};return o.onUnmounted(()=>{c()}),{startDrag:u,isDragging:a,endDrag:c}}var bht={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const yht={class:"robot"},vht={key:0,class:"digital-human-wrap"},Iht={key:1,src:Rj,alt:"",draggable:"false"},Cht={key:0,class:"is_icon"},xht={key:0,class:"btn"},wht={key:0},Oht={key:1,class:"is_icon"},kht={class:"qa_input"},jht={class:"is_icon clear"},qht={class:"is_icon"},Zht={key:0},zht={key:1,class:"iconfont rotate icon-zhongxinhuida",title:"重新回答"},Vht={class:"send"},Nht=o.defineComponent({name:"AXPromptsFlexVerticalSetup",__name:"index",props:{apiPrefix:{default:bht.VITE_APP_AI_SERVER_PROXY||"/api21215"},isDebug:{type:Boolean,default:!1},dialogBoxTheme:{default:"light"},showMsgBubble:{type:Boolean,default:!0},isExhibitionPro:{type:Boolean,default:!1},isFuYangPro:{type:Boolean,default:!1},isExhibitionPlay:{type:Boolean},isShowDialogIcon:{type:Boolean,default:!1},stream:{default:"True"},title:{default:"GR水利大模型"},greet:{default:"您好,我是GR水利大模型智能小助手,您可以向我提出贵仁科技水利大模型使用问题。"},welcomeMessage:{default:"您好,我是GR水利大模型智能小助手,您可以向我提出贵仁科技水利大模型使用问题。"},waitTxt:{default:"贵仁科技AI正在生成回答"},systemName:{default:"g-ai-robot3"},robotCss:{default:()=>({left:"10px",bottom:"10px"})},placementBottom:{default:100},placementLeft:{default:450},useAudio:{type:Boolean,default:!0},space:{default:3e3},mode:{default:"video"},qaServer:{default:t=>`${t.apiPrefix}/chatGlm/searchTextNew`},cozeInfo:{default:()=>({bot_id:"7473691358872584226"})},createConversationUrl:{default:t=>`${t.apiPrefix}/chatGlm/createConversation`},audioWs:{default:"wss://model.keepsoft.net:39002/funasrWs"},wsServer:{},voiceprintWs:{default:"wss://model.keepsoft.net:39002/speakerWs"},wakeupAudio:{default:t=>`${t.apiPrefix}/asr/saveWakeUpAudio`},interrupt:{default:t=>`${t.apiPrefix}/chatGlm/cancelChat`},instructWs:{default:"wss://model.keepsoft.net:39002/commandWs"},searchTextCallback:{type:Function,default:t=>{console.log(t,"params")}},eventFun:{default:()=>[{keywords:["打开灌区"],trigger:"after",fun:t=>{console.log(t,"a"),console.log("打开灌区")}},{keywords:["打开技术舱"],trigger:"after",fun:t=>{console.log(t,"a"),console.log("打开技术舱")}}]},videoStyle:{},digitalStyle:{},canvasStyle:{},bubbleStyle:{},offer:{},human:{},humanaudio:{},stop_audio:{},textDriven:{},canvasWidth:{},canvasHeight:{},canvasCartoonWidth:{},canvasCartoonHeight:{},showMsgNumber:{},bubbleTheme:{},useCustomDialog:{type:Boolean},BubbleWidth:{},BubbleBottom:{},suspensionStyle:{}},setup(t){const e=o.ref("xiao-gui");o.provide("globalAvatarId",e);const{currentImage:a,previewConfig:l,renderMarkdown:n}=Tj(),{addAudioToQueue:i,stopOrderPlayAudio:r}=TWt(),p=t,u=o.ref(""),s=o.computed(()=>p.dialogBoxTheme==="dark"?hn.darkAlgorithm:hn.defaultAlgorithm),c=o.ref(!1),d=o.ref("end"),W=o.ref(""),f=o.ref(),S=o.ref([{id:0,type:"aiAnswer",content:p.welcomeMessage}]),h=o.ref(""),m=o.computed(()=>({...p.cozeInfo,conversation_id:h.value})),g=()=>{me.post(p.createConversationUrl,{coze_info:p.cozeInfo}).then(Lt=>{const vt=Lt.data;vt.code===200&&(h.value=vt.detail.conversation_id)}).catch(Lt=>{console.error(Lt)})};let A=null;const b=()=>{var Lt;p.mode=="audio"&&O(),p.mode=="video"&&(O(),(Lt=f.value)==null||Lt.main())},v=o.ref(""),y=o.ref(""),I=()=>{v.value=W.value};function L(Lt){const vt=JSON.parse(Lt.data),mt=vt.text,Ct=vt.mode;if(p.isDebug&&console.log("isDebug",vt),d.value==="start")Ct=="2pass-offline"||Ct=="offline"?(v.value=v.value+mt.replace(/ +/g,""),W.value=v.value):W.value=W.value+mt;else if(Ct=="2pass-offline"||Ct=="offline"){y.value=vt.audio_data_bytes;let kt=_g(vt.text,{toneType:"none",type:"array"}).filter(Vt=>Vt!==","&&Vt!=="。"&&Vt!=="、").join("");if(Bg.xiaoguibaibai.some(Vt=>kt.includes(Vt))&&!H.value&&z.value){Wt==null||Wt.setData(u.value,y.value),Wt==null||Wt.wsSendData(),Wt==null||Wt.setOnMessageCallback(async Vt=>{Vt.text==="yes"&&G(vt.text)});return}if(M0t.xiaoguizanting.some(Vt=>kt.includes(Vt))&&!H.value&&z.value){Wt==null||Wt.setData(u.value,y.value),Wt==null||Wt.wsSendData(),Wt==null||Wt.setOnMessageCallback(async Vt=>{Vt.text==="yes"&&V(vt.text)});return}const Tt={xiaogui:Lk.xiaogui,xiaohui:z0t.xiaogui,xiaozhi:V0t.xiaogui,xiaoG:N0t.xiaogui,xiaoR:T0t.xiaogui};let Rt=null;for(const[Vt,Kt]of Object.entries(Tt))if(Kt.some(te=>kt.includes(te))){Rt=Vt,H.value||F(vt.text,Vt);break}!Rt&&z.value&&u.value&&(Wt==null||Wt.setData(u.value,y.value),Wt==null||Wt.wsSendData(),Wt==null||Wt.setOnMessageCallback(async Vt=>{if(Vt.text==="yes")if(H.value){if(pt.value){await w(K.value,pt.value);const Kt=Date.now();S.value.push({id:Kt,type:"user",content:vt.text}),T(vt.text)}}else S.value.push({id:Date.now(),type:"user",content:vt.text}),T(vt.text)}))}}const w=async(Lt,vt)=>{try{const mt=await me.post(p.interrupt,{conversation_id:Lt,chat_id:vt},{headers:{"Content-Type":"application/json"}});return!0}catch(mt){return console.error("取消请求失败",mt),!0}};function C(Lt){Lt===0||(Lt===1?O():Lt===2&&(console.log("connecttion error"),O()))}let k=new Int16Array;const Z=o.ref(null),E=o.ref(null),z=o.ref(!1),Y=o.ref(null),O=()=>{const Lt=A==null?void 0:A.wsStart();Wt==null||Wt.wsStart(),Lt===1?(console.log("connect start"),Y.value.open(()=>{console.log("recorder open"),Y.value.start()})):(O(),console.log("connect error"))},M=()=>{A==null||A.wsStop(),Wt==null||Wt.wsStop(),Y.value.pause()},J=(Lt,vt,mt,Ct)=>{var Kt;E.value&&((Kt=E.value)==null||Kt.input(Lt[Lt.length-1],vt,Ct));var kt=Lt[Lt.length-1],Tt=new Array(kt),Rt=zd.SampleData(Tt,Ct,16e3).data;k=Int16Array.from([...k,...Rt]);for(var Vt=960;k.length>=Vt;){const te=k.slice(0,Vt);k=k.slice(Vt),A==null||A.wsSend(te)}},F=async(Lt,vt)=>{var kt,Tt,Rt,Vt;let mt;p.isExhibitionPro?mt={xiaohui:{displayName:"小慧小慧",avatarId:"xiao-hui"},xiaozhi:{displayName:"小智小智",avatarId:"xiao-zhi"},xiaoG:{displayName:"小G同学",avatarId:"xiao-g"},xiaoR:{displayName:"小R同学",avatarId:"xiao-r"}}:mt={xiaogui:{displayName:"小贵小贵",avatarId:"xiao-gui"},xiaohui:{displayName:"小慧小慧",avatarId:"xiao-hui"},xiaozhi:{displayName:"小智小智",avatarId:"xiao-zhi"},xiaoG:{displayName:"小G同学",avatarId:"xiao-g"},xiaoR:{displayName:"小R同学",avatarId:"xiao-r"}};const Ct=mt[vt];Ct&&(e.value=Ct.avatarId,p.isExhibitionPro&&localStorage.setItem("avatarId_data",e.value),(kt=f.value)!=null&&kt.isAudioActive&&((Tt=f.value)==null||Tt.digitalHumanStop()),(Rt=f.value)!=null&&Rt.isPlaying&&((Vt=f.value)==null||Vt.interruptSpeech()),S.value.push({id:Date.now(),type:"user",content:Ct.displayName}),y.value&&U(y.value,1),z.value=!0,r(),dt(),window.setTimeout(()=>{var Kt,te,ae;if(S.value.push({id:Date.now(),type:"aiAnswer",content:"我在,请问有什么可以帮您。"}),p.mode=="video"){let ee="";e.value==="xiao-zhi"?ee="xiaoG_body":e.value==="xiao-hui"?ee="xiaoR_body":e.value==="xiao-gui"&&(p.isFuYangPro?ee="half_body_demo":ee="half_body");let he={metahuman_type:ee,audiourl:"",interrupt:!0,text:"我在,请问有什么可以帮您。"};if(e.value==="xiao-gui"||e.value==="xiao-zhi"||e.value==="xiao-hui"){if(((Kt=f.value)==null?void 0:Kt.isOfferPengding)===!1)return;(te=f.value)==null||te.humanaudio(he)}else(e.value==="xiao-g"||e.value==="xiao-r")&&((ae=f.value)==null||ae.textToSpeech("我在,请问有什么可以帮您。"))}else _(Lk.here)},200))},V=Lt=>{const mt=_g(Lt,{toneType:"none",type:"array"}).filter(Ct=>Ct!==","&&Ct!=="。"&&Ct!=="、").join("").includes("zanting")?"暂停":"停止";S.value.push({id:Date.now(),type:"user",content:mt}),window.setTimeout(()=>{var Ct,kt;p.mode=="video"?(e.value==="xiao-gui"||e.value==="xiao-zhi"||e.value==="xiao-hui"?(Ct=f.value)==null||Ct.digitalHumanStop():(e.value==="xiao-g"||e.value==="xiao-r")&&((kt=f.value)==null||kt.interruptSpeech()),S.value.push({id:Date.now(),type:"aiAnswer",content:"好的"})):_(Bg.here)},200)},G=Lt=>{const mt=_g(Lt,{toneType:"none",type:"array"}).filter(Ct=>Ct!==","&&Ct!=="。"&&Ct!=="、").join("").includes("zaijian")?"再见":"拜拜";S.value.push({id:Date.now(),type:"user",content:mt}),z.value=!1,r(),dt(),H.value=!1,window.setTimeout(()=>{var Ct,kt;if(S.value.push({id:Date.now(),type:"aiAnswer",content:"很高兴为您服务,再见!"}),p.mode=="video"){let Tt="";e.value==="xiao-zhi"?Tt="xiaoG_body":e.value==="xiao-hui"?Tt="xiaoR_body":e.value==="xiao-gui"&&(p.isFuYangPro?Tt="half_body_demo":Tt="half_body");let Rt={metahuman_type:Tt,audiourl:"",interrupt:!0,text:"很高兴为您服务,再见!"};e.value==="xiao-gui"||e.value==="xiao-zhi"||e.value==="xiao-hui"?(Ct=f.value)==null||Ct.humanaudio(Rt):(e.value==="xiao-g"||e.value==="xiao-r")&&((kt=f.value)==null||kt.textToSpeech("很高兴为您服务,再见!"))}else _(Bg.here)},200)},U=async(Lt,vt)=>{try{const mt={conversation_id:vt,audio_data_base64:Lt},Ct=await me.post(p.wakeupAudio,mt,{headers:{"Content-Type":"application/json"}});p.isDebug&&console.log("音频数据发送成功:",Ct.data),Ct.data.code===0&&(u.value=Ct.data.detail.audio_name)}catch(mt){console.error("音频数据发送失败:",mt)}},D=o.ref(),B=o.ref({}),H=o.ref(!1);o.provide("isWaitingForResponse",H);const pt=o.ref(""),K=o.ref(""),T=Lt=>{H.value=!0,D.value=null,pt.value="",K.value="";let vt={searchText:Lt,stream:p.stream,use_tts:"True",coze_info:m.value||{}};z.value=!0,S.value.push({id:Date.now()+1,type:"aiLocal",content:""}),p.stream==="True"&&Xk(p.qaServer,vt,{onopen:()=>{var mt,Ct,kt,Tt;r(),(mt=f.value)!=null&&mt.isAudioActive&&((Ct=f.value)==null||Ct.digitalHumanStop()),(kt=f.value)!=null&&kt.isPlaying&&((Tt=f.value)==null||Tt.interruptSpeech())},onmessage:async mt=>{var te,ae;const{audioUrl:Ct,data:kt,text:Tt,chat_id:Rt,conversation_id:Vt,message_type:Kt}=mt;if(kt&&Kt==="answer"&&(B.value={},D.value=kt,Rt&&Vt&&(pt.value=Rt,K.value=Vt),kt.action&&(p.isDebug&&console.log("action",kt.action),B.value=q(kt.action),B.value&&(B.value.trigger==="before"||B.value.trigger==="together")&&B.value.fun(kt))),r(),e.value==="xiao-gui"||e.value==="xiao-zhi"||e.value==="xiao-hui")if(p.mode=="video"&&Kt==="answer"){let ee="";e.value==="xiao-zhi"?ee="xiaoG_body":e.value==="xiao-hui"?ee="xiaoR_body":e.value==="xiao-gui"&&(p.isFuYangPro?ee="half_body_demo":ee="half_body");let he={metahuman_type:ee,audiourl:Ct,interrupt:!1,text:Tt};(te=f.value)==null||te.humanaudio(he),setTimeout(()=>{S.value[S.value.length-1].type="aiAnswer",S.value[S.value.length-1].content+=Tt},1e3)}else i(Ct,!0);else(e.value==="xiao-g"||e.value==="xiao-r")&&(p.mode=="video"&&Kt==="answer"?(setTimeout(()=>{S.value[S.value.length-1].type="aiAnswer",S.value[S.value.length-1].content+=Tt},1e3),await((ae=f.value)==null?void 0:ae.textToSpeech(Tt))):i(Ct,!0))},onclose:()=>{H.value=!1,B.value&&B.value.trigger=="after"&&B.value.fun(D.value),c.value=!1},onerror:()=>{H.value=!1}})},q=Lt=>p.eventFun.find(mt=>mt.keywords.some(Ct=>Lt.includes(Ct))),R=o.ref(!1);let P=null;const N=o.ref([]),X=()=>{bt(),!c.value&&(R.value=!1,N.value=[],B.value={},P&&(window.clearInterval(P),P=null))},Q=()=>{if(c.value)return;N.value=[],B.value={},P&&(window.clearInterval(P),P=null);let Lt=p.greet;c.value=!0,tt({wholeText:Lt,type:"aiLocal"})},$=()=>{if(R.value)X();else{R.value=!0;let Lt=p.greet;c.value=!0,tt({wholeText:Lt,type:"aiLocal"})}},ot=()=>{let Lt=N.value[N.value.length-2];et(Lt.wholeText)},at=()=>{c.value||d.value==="start"||(r(),W.value&&(N.value.push({type:"user",wholeText:W.value,singleText:W.value}),et(W.value),W.value=""))},it=o.ref([]),et=Lt=>{let vt={searchText:Lt,use_tts:"False",stream:p.stream,coze_info:m.value||{}};N.value.push({type:"aiLocal",wholeText:"",singleText:`${p.waitTxt} <span class="ellipsisText"></span>`}),it.value=[],Zt(),c.value=!0,p.stream==="True"&&Xk(p.qaServer,vt,{onopen:()=>{N.value.splice(N.value.length-1,1),N.value.push({type:"aiAnswer",wholeText:"",singleText:""})},onmessage:mt=>{p.isDebug&&console.log(mt);const{text:Ct,data:kt,message_type:Tt}=mt;if(kt&&Tt==="answer"){D.value=kt,kt.action&&(B.value=q(kt.action),B.value&&(B.value.trigger==="before"||B.value.trigger==="together")&&B.value.fun(kt));const Rt=N.value.length-1;N.value[Rt].singleText+=String(Ct)}if(kt&&Tt==="follow_up"){const Rt=Ct.split(`
|
|
616
|
+
`).map(Vt=>Vt.trim()).filter(Vt=>Vt.length>0);it.value=[...new Set([...it.value,...Rt])]}Zt()},onclose:()=>{c.value=!1,B.value&&B.value.trigger=="after"&&B.value.fun(D.value)}})},tt=Lt=>{let vt=Lt.wholeText.split(""),mt=0;N.value.push({singleText:vt[mt],...Lt}),P=window.setInterval(()=>{mt++,N.value[N.value.length-1].singleText+=vt[mt],Zt(),mt>=vt.length-1&&(c.value=!1,window.clearInterval(P),P=null,Lt.type==="aiAnswer"&&B.value&&B.value.fun&&B.value.fun({...Lt}))},50)},nt=()=>{r(),d.value="start",z.value=!1,W.value="",v.value="",Z.value&&(E.value=zd.WaveView({elem:Z.value}))},bt=()=>{d.value="end",E.value=null};let Wt=null;o.onMounted(()=>{p.isExhibitionPro&&(e.value="xiao-zhi"),g(),A=new CWt({url:p.audioWs,msgHandle:L,stateHandle:C}),Wt=new xWt(p.voiceprintWs),Y.value=new zd({sampleBits:16,sampleRate:48e3,numChannels:1,onProcess:J}),b()}),o.onBeforeUnmount(()=>{M()}),o.ref(null);let yt=null;const It=o.ref(!1),ut=o.ref(""),_=(Lt,vt)=>{if(!Lt)return!1;It.value=!1,ut.value="";let mt=Lt;yt?(yt.pause(),yt.src=mt,yt.load()):(yt=new Audio(mt),yt.addEventListener("ended",()=>{ut.value=="sys"&&B.value&&B.value.fun&&B.value.trigger=="after"&&B.value.fun({...B.value.params}),It.value=!1,ut.value="",B.value={}},!1)),setTimeout(()=>{yt.play().then(()=>{vt&&(It.value=!0,ut.value=vt)})},100)},dt=()=>{yt&&yt.pause(),It.value=!1,ut.value=""},At=o.ref(null),Zt=async()=>{var Lt;await o.nextTick(),At.value.scrollTop=(Lt=At.value)==null?void 0:Lt.scrollHeight},Nt=o.computed(()=>it.value.map((Lt,vt)=>({label:Lt,key:`q-${vt}`}))),ft=async Lt=>{W.value=Lt.data.label,await at()},st=o.ref(null),gt=o.ref(null),wt=o.ref({left:p.placementLeft+"px",bottom:p.placementBottom+"px",cursor:"grab",zIndex:1e4}),{startDrag:Ot,endDrag:zt}=Mj(st,{dragHandleClass:"robot"}),{startDrag:jt}=Mj(gt,{initialX:50,initialY:window.innerHeight-200,dragHandleClass:"dialog-header",stopPropagation:!0});return(Lt,vt)=>(o.openBlock(),o.createElementBlock("div",{id:"g-ai-robot",style:o.normalizeStyle([Lt.robotCss,{"pointer-events":"auto"}]),ref_key:"robotElement",ref:st,onMousedown:vt[3]||(vt[3]=(...mt)=>o.unref(Ot)&&o.unref(Ot)(...mt)),onTouchstart:vt[4]||(vt[4]=(...mt)=>o.unref(Ot)&&o.unref(Ot)(...mt)),onMouseup:vt[5]||(vt[5]=(...mt)=>o.unref(zt)&&o.unref(zt)(...mt))},[o.createElementVNode("div",yht,[p.mode=="video"||p.mode=="audio"?(o.openBlock(),o.createElementBlock("div",vht,[p.isShowDialogIcon?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("img",{key:0,src:Tn,class:o.normalizeClass(["dialogImg",{disabled:c.value}]),onClick:$,style:{"user-select":"auto","pointer-events":"auto"}},null,2)),!Lt.$slots.reference&&p.mode=="audio"?(o.openBlock(),o.createElementBlock("img",Iht)):o.createCommentVNode("",!0),o.renderSlot(Lt.$slots,"reference",{},void 0,!0),p.mode=="video"?(o.openBlock(),o.createBlock(XWt,o.mergeProps({key:2},Lt.$props,{ref_key:"digitalHumanRef",ref:f}),null,16)):o.createCommentVNode("",!0),Lt.showMsgBubble?(o.openBlock(),o.createBlock(Lht,o.mergeProps({key:3},Lt.$props,{"msg-list":S.value}),null,16,["msg-list"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)]),R.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"talk_main",style:o.normalizeStyle(wt.value),ref_key:"messageElement",ref:gt},[o.createVNode(o.unref(H2),{theme:{algorithm:s.value}},{default:o.withCtx(()=>[o.createElementVNode("header",{onMousedown:vt[0]||(vt[0]=(...mt)=>o.unref(jt)&&o.unref(jt)(...mt)),onTouchstart:vt[1]||(vt[1]=(...mt)=>o.unref(jt)&&o.unref(jt)(...mt)),class:"dialog-header"},[o.createElementVNode("span",null,o.toDisplayString(Lt.title),1),o.createElementVNode("span",{class:"close",title:"关闭",onClick:X},[o.createElementVNode("i",{class:o.normalizeClass(["iconfont icon-guanbi",{disabled:c.value}])},null,2)])],32),o.createElementVNode("ul",{class:"qa_body",ref_key:"scrollContainer",ref:At},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(N.value,(mt,Ct)=>(o.openBlock(),o.createElementBlock("li",{key:"qa"+Ct,class:o.normalizeClass([mt.type!=="user"?"is_ai":"is_people"])},[mt.type!=="user"?(o.openBlock(),o.createElementBlock("div",Cht,vt[6]||(vt[6]=[o.createElementVNode("img",{src:Ej,alt:"",draggable:"false"},null,-1)]))):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(o.unref(RC),{content:mt.singleText,messageRender:o.unref(n)},{footer:o.withCtx(()=>[mt.type==="aiAnswer"?(o.openBlock(),o.createElementBlock("div",xht,[o.createVNode(o.unref(C0t),{onClick:kt=>o.unref(NWt)(mt.wholeText),title:"复制",class:"copyBtn"},null,8,["onClick"]),o.createVNode(o.unref(k0t),{onClick:ot,title:"重新回答",class:"copyBtn"}),mt.ttsMaleAddress?(o.openBlock(),o.createBlock(o.unref(Ak),{key:0,class:o.normalizeClass([ut.value===`ttsMaleAddress_${Ct}`&&It.value?"open":"close"]),onClick:kt=>_(mt.ttsMaleAddress,`ttsMaleAddress_${Ct}`),title:"男声播报",style:{"font-size":"18px",cursor:"pointer","margin-right":"10px"}},null,8,["class","onClick"])):o.createCommentVNode("",!0),mt.ttsFemaleAddress?(o.openBlock(),o.createBlock(o.unref(Ak),{key:1,class:o.normalizeClass([ut.value===`ttsFemaleAddress_${Ct}`&&It.value?"open":"close"]),onClick:kt=>_(mt.ttsFemaleAddress,`ttsFemaleAddress_${Ct}`),title:"女声播报",style:{"font-size":"18px",cursor:"pointer"}},null,8,["class","onClick"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)]),_:2},1032,["content","messageRender"]),mt.type==="aiAnswer"&&Ct===N.value.length-1&&it.value?(o.openBlock(),o.createElementBlock("div",wht,[o.createVNode(o.unref(GC),{title:"✨ 关联问题",items:Nt.value,vertical:"","on-item-click":ft},null,8,["items"])])):o.createCommentVNode("",!0)]),mt.type==="user"?(o.openBlock(),o.createElementBlock("div",Oht,vt[7]||(vt[7]=[o.createElementVNode("img",{src:Pj,alt:"",draggable:"false"},null,-1)]))):o.createCommentVNode("",!0)],2))),128))],512),o.createVNode(o.unref(ost),{src:o.unref(a),preview:o.unref(l),style:{width:"100%",maxWidth:"800px",margin:"auto",display:"none"}},null,8,["src","preview"]),o.createElementVNode("div",{id:"playChart",ref_key:"waveRef",ref:Z,class:o.normalizeClass([d.value==="start"?"show":"hiddle"])},null,2),o.createElementVNode("div",kht,[o.createElementVNode("div",jht,[o.createElementVNode("img",{src:Yj,alt:"",title:"清空对话记录",class:o.normalizeClass({disabled:c.value}),draggable:"false",onClick:Q},null,2)]),o.withDirectives(o.createElementVNode("textarea",{"onUpdate:modelValue":vt[2]||(vt[2]=mt=>W.value=mt),placeholder:"请输入内容",autosize:{minRows:2,maxRows:4},onKeyup:o.withKeys(at,["enter"]),onInput:o.withModifiers(I,["prevent"])},null,544),[[o.vModelText,W.value]]),o.createElementVNode("div",qht,[p.useAudio?(o.openBlock(),o.createElementBlock("p",Zht,[d.value=="end"?(o.openBlock(),o.createElementBlock("img",{key:0,src:vA,alt:"",class:"open",draggable:"false",title:"启动语音",onClick:nt})):o.createCommentVNode("",!0),d.value==="loading"?(o.openBlock(),o.createElementBlock("i",zht)):o.createCommentVNode("",!0),d.value=="start"?(o.openBlock(),o.createElementBlock("img",{key:2,src:vA,alt:"",class:"close",draggable:"false",title:"关闭语音",onClick:bt})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("p",Vht,[o.createElementVNode("img",{src:Gj,alt:"",draggable:"false",title:"发送",onClick:at,class:o.normalizeClass({disabled:c.value||d.value==="start"})},null,2)])])])]),_:1},8,["theme"])],4)):o.createCommentVNode("",!0)],36))}}),qd=aA(Nht,[["__scopeId","data-v-a61f2c37"]]);return qd.name="GAiRobot3",qd.install=function(t){t.component("GAiRobot3",qd)},qd});
|