sg-lowcode-parser 0.1.29

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.
@@ -0,0 +1,246 @@
1
+ (function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode(":root{--lcp-scrollbar-width: 10px}.lowcode-table .ant-pagination{padding-bottom:10px;margin-top:12px!important}.lowcode-table .ant-table-content{overflow:auto!important}.lowcode-table .ant-table-body::-webkit-scrollbar,.ptable-modal .ant-modal-body::-webkit-scrollbar,.ptable .ant-pro-table-list-toolbar-left::-webkit-scrollbar{width:var(--lcp-scrollbar-width);height:var(--lcp-scrollbar-width);margin-right:4px;background-color:transparent}.lowcode-table .ant-table-body::-webkit-scrollbar-thumb,.ptable-modal .ant-modal-body::-webkit-scrollbar-thumb,.ptable .ant-pro-table-list-toolbar-left::-webkit-scrollbar-thumb{border-radius:4px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);background-color:#ccc}.lowcode-table .ant-table-body::-webkit-scrollbar-thumb:hover,.ptable-modal .ant-modal-body::-webkit-scrollbar-thumb:hover,.ptable .ant-pro-table-list-toolbar-left::-webkit-scrollbar-thumb:hover{background-color:#555}.lowcode-table .ant-table-body::-webkit-scrollbar-track,.ptable-modal .ant-modal-body::-webkit-scrollbar-track,.ptable .ant-pro-table-list-toolbar-left::-webkit-scrollbar-track{background-color:#f1f1f1;border-radius:0}.filter-dict label{height:30px;line-height:30px}.ant-dropdown{z-index:1050}.table-sub .ant-pro-table-list-toolbar-container{padding-top:0}.table-sub .ant-pro-card .ant-pro-card-body{padding-inline:0}.ant-pro-table-list-toolbar-setting-item{margin-inline:0!important}.ptable .ant-pagination{margin-top:20px!important}.ptable .ant-table-sticky-holder thead{white-space:nowrap;opacity:1}.ptable-drawer .form_divider_area .ant-collapse-content-box,.sg-table-edit-layout .ant-collapse-content-box{display:flex;flex-wrap:wrap;background-color:#eef2ffe6;padding-top:20px}.sg_form_area .ant-collapse>.ant-collapse-item:last-child>.ant-collapse-header{border-radius:0!important}.ptable-collapse{border-radius:0}.ptable-collapse .ant-collapse-item{border-color:#dee3d8}.ptable-collapse .ant-collapse-header{background-color:var(--tw-global-primary-50);padding:8px 12px!important;border-radius:0;border-bottom-width:0}.ptable-collapse .ant-collapse-header:before{width:0px;content:\"\";height:100%;position:absolute;top:0;left:-1px;background-color:var(--tw-global-primary)}.ptable-modal{max-height:90vh;max-width:90vw;min-height:50vh;min-width:50vw}.ptable-modal .ant-modal-body{max-height:calc(90vh - 100px);overflow-y:auto}.ptable-modal .ant-modal-close{margin-top:7px}.ptable-modal .ant-modal-title{padding-right:10px}.ptable>.ant-pro-card{height:100%}.lowcode-table .ant-table-body{max-height:calc(97vh - 300px)!important}.lowcode-table-latest-selected-row>td{background-color:#f1f1f1!important}.lowcode-table-latest-selected-row .ant-table-cell-row-hover{background-color:#f1f1f1!important}.lowcode-table .ant-table-thead tr>.ant-table-cell:nth-last-child(2){width:var(--lcp-scrollbar-width)}.ptable-drawer .ant-drawer-body{padding:0!important}.ptable-drawer .sg_multi_tabs{padding:8px 24px}.lowcode-table-header-button-wrapper>button,.lowcode-form-header-button-wrapper>button{transition:all .25s ease;animation-fill-mode:forwards;box-sizing:border-box;border:0;border-radius:3px}.lowcode-table-header-button-wrapper:hover button,.lowcode-form-header-button-wrapper:hover button{box-shadow:0 10px 20px -10px var(--tw-global-primary)}.import-modal-transition-enter{opacity:0;transform:translateY(20px)}.import-modal-transition-enter-active{opacity:1;transform:translateY(0);transition:all .3s ease-in}.import-modal-transition-leave{opacity:1;transform:translateY(0)}.import-modal-transition-leave-active{opacity:0;transform:translateY(20px);transition:all .3s ease-in}.import-modal-mask-transition-enter{opacity:0}.import-modal-mask-transition-enter-active{opacity:1;transition:all .4s ease-in}.import-modal-mask-transition-leave{opacity:1}.import-modal-mask-transition-leave-active{opacity:0;transition:all .4s ease-in}.p-modal-wrapper .ant-modal-content{border-radius:3px!important}.ptable-drawer .ant-drawer-header{padding-left:10px!important}.p-pagination .ant-pagination-prev>button,.p-pagination .ant-pagination-next>button{display:flex!important;justify-items:center!important;align-items:center!important}.p-pagination .ant-pagination-prev>button>span,.p-pagination .ant-pagination-next>button>span{display:inline-block;flex:1!important}.sg-table-edit-layout .sg_multi_tabs{border:1px solid #dee3d8;padding:0 16px 20px!important;margin:20px}.p-descriptions .ant-form-item,.ptable .ant-form-item,.lowcode-table-sub .ant-form-item{margin-bottom:0}.ptable .ant-pro-table-list-toolbar-setting-items{line-height:normal}.lowcode-table .ptable_columnId_header,.lowcode-table .ptable_columnId_body{padding:0!important;border-inline-end:0!important;width:0!important}.ant-pro-table-list-toolbar-container{display:flex;flex-direction:column-reverse}.ant-pro-table-list-toolbar-container>.ant-pro-table-list-toolbar-left{display:inline-block;max-width:100%;border:0px solid lightblue;border-radius:.55rem;background-color:#eef2ffcc;border-color:#f3e8ff;transform-origin:center;overflow:hidden;animation-fill-mode:forwards;overflow-y:auto}.searchHeadEnter{animation:zoomIn .2s ease-in-out;animation-iteration-count:1}.searchHeadEnterDone{opacity:1;padding:20px 10px;border-width:1px;margin-top:1.2rem;margin-bottom:.2rem}.searchHeadLeave{animation:zoomOut .25s ease-in-out;animation-iteration-count:1}.searchHeadLeaveDone{opacity:0;padding:0;height:0px;border-width:0px;margin-top:0rem;margin-bottom:0rem}.ptable .ant-table-sticky-scroll,.sg_multi_tabs .ant-table-sticky-scroll{display:none}.dept-select-text .ant-select-selection-overflow{display:block}.dept-select-text .ant-select-selection-item-content>span{overflow:hidden!important;width:100%;text-overflow:ellipsis;white-space:nowrap;display:block}@keyframes fadeIn{to{opacity:1}}@keyframes zoomIn{0%{opacity:0;padding:0;height:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3);border-width:0px;margin-top:0;margin-bottom:0}50%{opacity:.5;padding:5px;height:60px;margin-top:0;margin-bottom:0}to{opacity:1;padding:20px 10px;height:125px;border-width:1px;margin-top:1.2rem;margin-bottom:.2rem}}@keyframes zoomOut{0%{opacity:1;padding:20px 10px;height:125px;border-width:1px;margin-top:1.2rem;margin-bottom:.2rem}to{opacity:0;padding:0;height:0px;border-width:0px;margin-top:0;margin-bottom:0}}:root,:host{--w-e-textarea-bg-color: #fff;--w-e-textarea-color: #333;--w-e-textarea-border-color: #ccc;--w-e-textarea-slight-border-color: #e8e8e8;--w-e-textarea-slight-color: #d4d4d4;--w-e-textarea-slight-bg-color: #f5f2f0;--w-e-textarea-selected-border-color: #B4D5FF;--w-e-textarea-handler-bg-color: #4290f7;--w-e-toolbar-color: #595959;--w-e-toolbar-bg-color: #fff;--w-e-toolbar-active-color: #333;--w-e-toolbar-active-bg-color: #f1f1f1;--w-e-toolbar-disabled-color: #999;--w-e-toolbar-border-color: #e8e8e8;--w-e-modal-button-bg-color: #fafafa;--w-e-modal-button-border-color: #d9d9d9}.w-e-text-container *,.w-e-toolbar *{box-sizing:border-box;margin:0;outline:none;padding:0}.w-e-text-container blockquote,.w-e-text-container li,.w-e-text-container p,.w-e-text-container td,.w-e-text-container th,.w-e-toolbar *{line-height:1.5}.w-e-text-container{background-color:var(--w-e-textarea-bg-color);color:var(--w-e-textarea-color);height:100%;position:relative}.w-e-text-container .w-e-scroll{-webkit-overflow-scrolling:touch;height:100%}.w-e-text-container [data-slate-editor]{word-wrap:break-word;border-top:1px solid transparent;min-height:100%;outline:0;padding:0 10px;white-space:pre-wrap}.w-e-text-container [data-slate-editor] p{margin:15px 0}.w-e-text-container [data-slate-editor] h1,.w-e-text-container [data-slate-editor] h2,.w-e-text-container [data-slate-editor] h3,.w-e-text-container [data-slate-editor] h4,.w-e-text-container [data-slate-editor] h5{margin:20px 0}.w-e-text-container [data-slate-editor] img{cursor:default;display:inline!important;max-width:100%;min-height:20px;min-width:20px}.w-e-text-container [data-slate-editor] span{text-indent:0}.w-e-text-container [data-slate-editor] [data-selected=true]{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-placeholder{font-style:italic;left:10px;top:17px;width:90%}.w-e-max-length-info,.w-e-text-placeholder{color:var(--w-e-textarea-slight-color);pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.w-e-max-length-info{bottom:.5em;right:1em}.w-e-bar{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-color);font-size:14px;padding:0 5px}.w-e-bar svg{fill:var(--w-e-toolbar-color);height:14px;width:14px}.w-e-bar-show{display:flex}.w-e-bar-hidden{display:none}.w-e-hover-bar{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 5px #0000001f;position:absolute}.w-e-toolbar{flex-wrap:wrap;position:relative}.w-e-bar-divider{background-color:var(--w-e-toolbar-border-color);display:inline-flex;height:40px;margin:0 5px;width:1px}.w-e-bar-item{display:flex;height:40px;padding:4px;position:relative;text-align:center}.w-e-bar-item,.w-e-bar-item button{align-items:center;justify-content:center}.w-e-bar-item button{background:transparent;border:none;color:var(--w-e-toolbar-color);cursor:pointer;display:inline-flex;height:32px;overflow:hidden;padding:0 8px;white-space:nowrap}.w-e-bar-item button:hover{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item button .title{margin-left:5px}.w-e-bar-item .active{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item .disabled{color:var(--w-e-toolbar-disabled-color);cursor:not-allowed}.w-e-bar-item .disabled svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-menu-tooltip-v5:before{background-color:var(--w-e-toolbar-active-color);border-radius:5px;color:var(--w-e-toolbar-bg-color);content:attr(data-tooltip);font-size:.75em;opacity:0;padding:5px 10px;position:absolute;text-align:center;top:40px;transition:opacity .6s;visibility:hidden;white-space:pre;z-index:1}.w-e-menu-tooltip-v5:after{border:5px solid transparent;border-bottom:5px solid var(--w-e-toolbar-active-color);content:\"\";opacity:0;position:absolute;top:30px;transition:opacity .6s;visibility:hidden}.w-e-menu-tooltip-v5:hover:after,.w-e-menu-tooltip-v5:hover:before{opacity:1;visibility:visible}.w-e-menu-tooltip-v5.tooltip-right:before{left:100%;top:10px}.w-e-menu-tooltip-v5.tooltip-right:after{border-bottom-color:transparent;border-left-color:transparent;border-right-color:var(--w-e-toolbar-active-color);border-top-color:transparent;left:100%;margin-left:-10px;top:16px}.w-e-bar-item-group .w-e-bar-item-menus-container{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;display:none;left:0;margin-top:40px;position:absolute;top:0;z-index:1}.w-e-bar-item-group:hover .w-e-bar-item-menus-container{display:block}.w-e-select-list{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;left:0;margin-top:40px;max-height:350px;min-width:100px;overflow-y:auto;position:absolute;top:0;z-index:1}.w-e-select-list ul{line-height:1;list-style:none}.w-e-select-list ul .selected{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li{cursor:pointer;padding:7px 0 7px 25px;position:relative;text-align:left;white-space:nowrap}.w-e-select-list ul li:hover{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li svg{left:0;margin-left:5px;margin-top:-7px;position:absolute;top:50%}.w-e-bar-bottom .w-e-select-list{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-drop-panel{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;margin-top:40px;min-width:200px;padding:10px;position:absolute;top:0;z-index:1}.w-e-bar-bottom .w-e-drop-panel{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-modal{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;color:var(--w-e-toolbar-color);font-size:14px;min-height:40px;min-width:100px;padding:20px 15px 0;position:absolute;text-align:left;z-index:1}.w-e-modal .btn-close{cursor:pointer;line-height:1;padding:5px;position:absolute;right:8px;top:7px}.w-e-modal .btn-close svg{fill:var(--w-e-toolbar-color);height:10px;width:10px}.w-e-modal .babel-container{display:block;margin-bottom:15px}.w-e-modal .babel-container span{display:block;margin-bottom:10px}.w-e-modal .button-container{margin-bottom:15px}.w-e-modal button{background-color:var(--w-e-modal-button-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);cursor:pointer;font-weight:400;height:32px;padding:4.5px 15px;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.w-e-modal input[type=number],.w-e-modal input[type=text],.w-e-modal textarea{font-feature-settings:\"tnum\";background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);font-variant:tabular-nums;padding:4.5px 11px;transition:all .3s;width:100%}.w-e-modal textarea{min-height:60px}body .w-e-modal,body .w-e-modal *{box-sizing:border-box}.w-e-progress-bar{background-color:var(--w-e-textarea-handler-bg-color);height:1px;position:absolute;transition:width .3s;width:0}.w-e-full-screen-container{bottom:0!important;display:flex!important;flex-direction:column!important;height:100%!important;left:0!important;margin:0!important;padding:0!important;position:fixed;right:0!important;top:0!important;width:100%!important}.w-e-full-screen-container [data-w-e-textarea=true]{flex:1!important}.w-e-text-container [data-slate-editor] code{background-color:var(--w-e-textarea-slight-bg-color);border-radius:3px;font-family:monospace;padding:3px}.w-e-panel-content-color{list-style:none;text-align:left;width:230px}.w-e-panel-content-color li{border:1px solid var(--w-e-toolbar-bg-color);border-radius:3px;cursor:pointer;display:inline-block;padding:2px}.w-e-panel-content-color li:hover{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color li .color-block{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;height:17px;width:17px}.w-e-panel-content-color .active{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color .clear{line-height:1.5;margin-bottom:5px;width:100%}.w-e-panel-content-color .clear svg{height:16px;margin-bottom:-4px;width:16px}.w-e-text-container [data-slate-editor] blockquote{background-color:var(--w-e-textarea-slight-bg-color);border-left:8px solid var(--w-e-textarea-selected-border-color);display:block;font-size:100%;line-height:1.5;margin:10px 0;padding:10px}.w-e-panel-content-emotion{font-size:20px;list-style:none;text-align:left;width:300px}.w-e-panel-content-emotion li{border-radius:3px;cursor:pointer;display:inline-block;padding:0 5px}.w-e-panel-content-emotion li:hover{background-color:var(--w-e-textarea-slight-bg-color)}.w-e-textarea-divider{border-radius:3px;margin:20px auto;padding:20px}.w-e-textarea-divider hr{background-color:var(--w-e-textarea-border-color);border:0;display:block;height:1px}.w-e-text-container [data-slate-editor] pre>code{background-color:var(--w-e-textarea-slight-bg-color);border:1px solid var(--w-e-textarea-slight-border-color);border-radius:4px;display:block;font-size:14px;padding:10px;text-indent:0}.w-e-text-container [data-slate-editor] .w-e-image-container{display:inline-block;margin:0 3px}.w-e-text-container [data-slate-editor] .w-e-image-container:hover{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-container [data-slate-editor] .w-e-selected-image-container{overflow:hidden;position:relative}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .w-e-image-dragger{background-color:var(--w-e-textarea-handler-bg-color);height:7px;position:absolute;width:7px}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-top{cursor:nwse-resize;left:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-top{cursor:nesw-resize;right:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-bottom{bottom:0;cursor:nesw-resize;left:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-bottom{bottom:0;cursor:nwse-resize;right:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container:hover,.w-e-text-container [contenteditable=false] .w-e-image-container:hover{box-shadow:none}.w-e-text-container [data-slate-editor] .table-container{border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin-top:10px;overflow-x:auto;padding:10px;width:100%}.w-e-text-container [data-slate-editor] table{border-collapse:collapse}.w-e-text-container [data-slate-editor] table td,.w-e-text-container [data-slate-editor] table th{border:1px solid var(--w-e-textarea-border-color);line-height:1.5;min-width:30px;padding:3px 5px;text-align:left}.w-e-text-container [data-slate-editor] table th{background-color:var(--w-e-textarea-slight-bg-color);font-weight:700;text-align:center}.w-e-panel-content-table{background-color:var(--w-e-toolbar-bg-color)}.w-e-panel-content-table table{border-collapse:collapse}.w-e-panel-content-table td{border:1px solid var(--w-e-toolbar-border-color);cursor:pointer;height:15px;padding:3px 5px;width:20px}.w-e-panel-content-table td.active{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-textarea-video-container{background-image:linear-gradient(45deg,#eee 25%,transparent 0,transparent 75%,#eee 0,#eee),linear-gradient(45deg,#eee 25%,#fff 0,#fff 75%,#eee 0,#eee);background-position:0 0,10px 10px;background-size:20px 20px;border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin:10px auto 0;padding:10px 0;text-align:center}.w-e-text-container [data-slate-editor] pre>code{word-wrap:normal;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;-webkit-hyphens:none;hyphens:none;line-height:1.5;margin:.5em 0;overflow:auto;padding:1em;-moz-tab-size:4;-o-tab-size:4;tab-size:4;text-align:left;text-shadow:0 1px #fff;white-space:pre;word-break:normal;word-spacing:normal}.w-e-text-container [data-slate-editor] pre>code .token.cdata,.w-e-text-container [data-slate-editor] pre>code .token.comment,.w-e-text-container [data-slate-editor] pre>code .token.doctype,.w-e-text-container [data-slate-editor] pre>code .token.prolog{color:#708090}.w-e-text-container [data-slate-editor] pre>code .token.punctuation{color:#999}.w-e-text-container [data-slate-editor] pre>code .token.namespace{opacity:.7}.w-e-text-container [data-slate-editor] pre>code .token.boolean,.w-e-text-container [data-slate-editor] pre>code .token.constant,.w-e-text-container [data-slate-editor] pre>code .token.deleted,.w-e-text-container [data-slate-editor] pre>code .token.number,.w-e-text-container [data-slate-editor] pre>code .token.property,.w-e-text-container [data-slate-editor] pre>code .token.symbol,.w-e-text-container [data-slate-editor] pre>code .token.tag{color:#905}.w-e-text-container [data-slate-editor] pre>code .token.attr-name,.w-e-text-container [data-slate-editor] pre>code .token.builtin,.w-e-text-container [data-slate-editor] pre>code .token.char,.w-e-text-container [data-slate-editor] pre>code .token.inserted,.w-e-text-container [data-slate-editor] pre>code .token.selector,.w-e-text-container [data-slate-editor] pre>code .token.string{color:#690}.w-e-text-container [data-slate-editor] pre>code .language-css .token.string,.w-e-text-container [data-slate-editor] pre>code .style .token.string,.w-e-text-container [data-slate-editor] pre>code .token.entity,.w-e-text-container [data-slate-editor] pre>code .token.operator,.w-e-text-container [data-slate-editor] pre>code .token.url{color:#9a6e3a}.w-e-text-container [data-slate-editor] pre>code .token.atrule,.w-e-text-container [data-slate-editor] pre>code .token.attr-value,.w-e-text-container [data-slate-editor] pre>code .token.keyword{color:#07a}.w-e-text-container [data-slate-editor] pre>code .token.class-name,.w-e-text-container [data-slate-editor] pre>code .token.function{color:#dd4a68}.w-e-text-container [data-slate-editor] pre>code .token.important,.w-e-text-container [data-slate-editor] pre>code .token.regex,.w-e-text-container [data-slate-editor] pre>code .token.variable{color:#e90}.w-e-text-container [data-slate-editor] pre>code .token.bold,.w-e-text-container [data-slate-editor] pre>code .token.important{font-weight:700}.w-e-text-container [data-slate-editor] pre>code .token.italic{font-style:italic}.w-e-text-container [data-slate-editor] pre>code .token.entity{cursor:help}.react-quill .ql-editor{min-height:100px}.tabs-c .ant-tabs-content-holder{overflow-y:auto}.approval-process .ant-timeline-item-tail,.approval-process .ant-timeline-item-head{top:30px}.rich-edit p,.rich-edit span,.rich-edit ol,.rich-edit li{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n:root{--lcp-scrollbar-width: 10px}.lowcode-table .ant-pagination{padding-bottom:10px;margin-top:12px!important}.lowcode-table .ant-table-content{overflow:auto!important}.lowcode-table .ant-table-body::-webkit-scrollbar,.ptable-modal .ant-modal-body::-webkit-scrollbar,.ptable .ant-pro-table-list-toolbar-left::-webkit-scrollbar{width:var(--lcp-scrollbar-width);height:var(--lcp-scrollbar-width);margin-right:4px;background-color:transparent}.lowcode-table .ant-table-body::-webkit-scrollbar-thumb,.ptable-modal .ant-modal-body::-webkit-scrollbar-thumb,.ptable .ant-pro-table-list-toolbar-left::-webkit-scrollbar-thumb{border-radius:4px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);background-color:#ccc}.lowcode-table .ant-table-body::-webkit-scrollbar-thumb:hover,.ptable-modal .ant-modal-body::-webkit-scrollbar-thumb:hover,.ptable .ant-pro-table-list-toolbar-left::-webkit-scrollbar-thumb:hover{background-color:#555}.lowcode-table .ant-table-body::-webkit-scrollbar-track,.ptable-modal .ant-modal-body::-webkit-scrollbar-track,.ptable .ant-pro-table-list-toolbar-left::-webkit-scrollbar-track{background-color:#f1f1f1;border-radius:0}.filter-dict label{height:30px;line-height:30px}.ant-dropdown{z-index:1050}.table-sub .ant-pro-table-list-toolbar-container{padding-top:0}.table-sub .ant-pro-card .ant-pro-card-body{padding-inline:0}.ant-pro-table-list-toolbar-setting-item{margin-inline:0!important}.ptable .ant-pagination{margin-top:20px!important}.ptable .ant-table-sticky-holder thead{white-space:nowrap;opacity:1}.ptable-drawer .form_divider_area .ant-collapse-content-box,.sg-table-edit-layout .ant-collapse-content-box{display:flex;flex-wrap:wrap;background-color:#eef2ffe6;padding-top:20px}.sg_form_area .ant-collapse>.ant-collapse-item:last-child>.ant-collapse-header{border-radius:0!important}.ptable-collapse{border-radius:0}.ptable-collapse .ant-collapse-item{border-color:#dee3d8}.ptable-collapse .ant-collapse-header{background-color:var(--tw-global-primary-50);padding:8px 12px!important;border-radius:0;border-bottom-width:0}.ptable-collapse .ant-collapse-header:before{width:0px;content:\"\";height:100%;position:absolute;top:0;left:-1px;background-color:var(--tw-global-primary)}.ptable-modal{max-height:90vh;max-width:90vw;min-height:50vh;min-width:50vw}.ptable-modal .ant-modal-body{max-height:calc(90vh - 100px);overflow-y:auto}.ptable-modal .ant-modal-close{margin-top:7px}.ptable-modal .ant-modal-title{padding-right:10px}.ptable>.ant-pro-card{height:100%}.lowcode-table .ant-table-body{max-height:calc(97vh - 300px)!important}.lowcode-table-latest-selected-row>td{background-color:#f1f1f1!important}.lowcode-table-latest-selected-row .ant-table-cell-row-hover{background-color:#f1f1f1!important}.lowcode-table .ant-table-thead tr>.ant-table-cell:nth-last-child(2){width:var(--lcp-scrollbar-width)}.ptable-drawer .ant-drawer-body{padding:0!important}.ptable-drawer .sg_multi_tabs{padding:8px 24px}.lowcode-table-header-button-wrapper>button,.lowcode-form-header-button-wrapper>button{transition:all .25s ease;animation-fill-mode:forwards;box-sizing:border-box;border:0;border-radius:3px}.lowcode-table-header-button-wrapper:hover button,.lowcode-form-header-button-wrapper:hover button{box-shadow:0 10px 20px -10px var(--tw-global-primary)}.import-modal-transition-enter{opacity:0;transform:translateY(20px)}.import-modal-transition-enter-active{opacity:1;transform:translateY(0);transition:all .3s ease-in}.import-modal-transition-leave{opacity:1;transform:translateY(0)}.import-modal-transition-leave-active{opacity:0;transform:translateY(20px);transition:all .3s ease-in}.import-modal-mask-transition-enter{opacity:0}.import-modal-mask-transition-enter-active{opacity:1;transition:all .4s ease-in}.import-modal-mask-transition-leave{opacity:1}.import-modal-mask-transition-leave-active{opacity:0;transition:all .4s ease-in}.p-modal-wrapper .ant-modal-content{border-radius:3px!important}.ptable-drawer .ant-drawer-header{padding-left:10px!important}.p-pagination .ant-pagination-prev>button,.p-pagination .ant-pagination-next>button{display:flex!important;justify-items:center!important;align-items:center!important}.p-pagination .ant-pagination-prev>button>span,.p-pagination .ant-pagination-next>button>span{display:inline-block;flex:1!important}.sg-table-edit-layout .sg_multi_tabs{border:1px solid #dee3d8;padding:0 16px 20px!important;margin:20px}.p-descriptions .ant-form-item,.ptable .ant-form-item,.lowcode-table-sub .ant-form-item{margin-bottom:0}.ptable .ant-pro-table-list-toolbar-setting-items{line-height:normal}.lowcode-table .ptable_columnId_header,.lowcode-table .ptable_columnId_body{padding:0!important;border-inline-end:0!important;width:0!important}.ant-pro-table-list-toolbar-container{display:flex;flex-direction:column-reverse}.ant-pro-table-list-toolbar-container>.ant-pro-table-list-toolbar-left{display:inline-block;max-width:100%;border:0px solid lightblue;border-radius:.55rem;background-color:#eef2ffcc;border-color:#f3e8ff;transform-origin:center;overflow:hidden;animation-fill-mode:forwards;overflow-y:auto}.searchHeadEnter{animation:zoomIn .2s ease-in-out;animation-iteration-count:1}.searchHeadEnterDone{opacity:1;padding:20px 10px;border-width:1px;margin-top:1.2rem;margin-bottom:.2rem}.searchHeadLeave{animation:zoomOut .25s ease-in-out;animation-iteration-count:1}.searchHeadLeaveDone{opacity:0;padding:0;height:0px;border-width:0px;margin-top:0rem;margin-bottom:0rem}.ptable .ant-table-sticky-scroll,.sg_multi_tabs .ant-table-sticky-scroll{display:none}.dept-select-text .ant-select-selection-overflow{display:block}.dept-select-text .ant-select-selection-item-content>span{overflow:hidden!important;width:100%;text-overflow:ellipsis;white-space:nowrap;display:block}@keyframes fadeIn{to{opacity:1}}@keyframes zoomIn{0%{opacity:0;padding:0;height:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3);border-width:0px;margin-top:0;margin-bottom:0}50%{opacity:.5;padding:5px;height:60px;margin-top:0;margin-bottom:0}to{opacity:1;padding:20px 10px;height:125px;border-width:1px;margin-top:1.2rem;margin-bottom:.2rem}}@keyframes zoomOut{0%{opacity:1;padding:20px 10px;height:125px;border-width:1px;margin-top:1.2rem;margin-bottom:.2rem}to{opacity:0;padding:0;height:0px;border-width:0px;margin-top:0;margin-bottom:0}}:root,:host{--w-e-textarea-bg-color: #fff;--w-e-textarea-color: #333;--w-e-textarea-border-color: #ccc;--w-e-textarea-slight-border-color: #e8e8e8;--w-e-textarea-slight-color: #d4d4d4;--w-e-textarea-slight-bg-color: #f5f2f0;--w-e-textarea-selected-border-color: #B4D5FF;--w-e-textarea-handler-bg-color: #4290f7;--w-e-toolbar-color: #595959;--w-e-toolbar-bg-color: #fff;--w-e-toolbar-active-color: #333;--w-e-toolbar-active-bg-color: #f1f1f1;--w-e-toolbar-disabled-color: #999;--w-e-toolbar-border-color: #e8e8e8;--w-e-modal-button-bg-color: #fafafa;--w-e-modal-button-border-color: #d9d9d9}.w-e-text-container *,.w-e-toolbar *{box-sizing:border-box;margin:0;outline:none;padding:0}.w-e-text-container blockquote,.w-e-text-container li,.w-e-text-container p,.w-e-text-container td,.w-e-text-container th,.w-e-toolbar *{line-height:1.5}.w-e-text-container{background-color:var(--w-e-textarea-bg-color);color:var(--w-e-textarea-color);height:100%;position:relative}.w-e-text-container .w-e-scroll{-webkit-overflow-scrolling:touch;height:100%}.w-e-text-container [data-slate-editor]{word-wrap:break-word;border-top:1px solid transparent;min-height:100%;outline:0;padding:0 10px;white-space:pre-wrap}.w-e-text-container [data-slate-editor] p{margin:15px 0}.w-e-text-container [data-slate-editor] h1,.w-e-text-container [data-slate-editor] h2,.w-e-text-container [data-slate-editor] h3,.w-e-text-container [data-slate-editor] h4,.w-e-text-container [data-slate-editor] h5{margin:20px 0}.w-e-text-container [data-slate-editor] img{cursor:default;display:inline!important;max-width:100%;min-height:20px;min-width:20px}.w-e-text-container [data-slate-editor] span{text-indent:0}.w-e-text-container [data-slate-editor] [data-selected=true]{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-placeholder{font-style:italic;left:10px;top:17px;width:90%}.w-e-max-length-info,.w-e-text-placeholder{color:var(--w-e-textarea-slight-color);pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.w-e-max-length-info{bottom:.5em;right:1em}.w-e-bar{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-color);font-size:14px;padding:0 5px}.w-e-bar svg{fill:var(--w-e-toolbar-color);height:14px;width:14px}.w-e-bar-show{display:flex}.w-e-bar-hidden{display:none}.w-e-hover-bar{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 5px #0000001f;position:absolute}.w-e-toolbar{flex-wrap:wrap;position:relative}.w-e-bar-divider{background-color:var(--w-e-toolbar-border-color);display:inline-flex;height:40px;margin:0 5px;width:1px}.w-e-bar-item{display:flex;height:40px;padding:4px;position:relative;text-align:center}.w-e-bar-item,.w-e-bar-item button{align-items:center;justify-content:center}.w-e-bar-item button{background:transparent;border:none;color:var(--w-e-toolbar-color);cursor:pointer;display:inline-flex;height:32px;overflow:hidden;padding:0 8px;white-space:nowrap}.w-e-bar-item button:hover{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item button .title{margin-left:5px}.w-e-bar-item .active{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item .disabled{color:var(--w-e-toolbar-disabled-color);cursor:not-allowed}.w-e-bar-item .disabled svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-menu-tooltip-v5:before{background-color:var(--w-e-toolbar-active-color);border-radius:5px;color:var(--w-e-toolbar-bg-color);content:attr(data-tooltip);font-size:.75em;opacity:0;padding:5px 10px;position:absolute;text-align:center;top:40px;transition:opacity .6s;visibility:hidden;white-space:pre;z-index:1}.w-e-menu-tooltip-v5:after{border:5px solid transparent;border-bottom:5px solid var(--w-e-toolbar-active-color);content:\"\";opacity:0;position:absolute;top:30px;transition:opacity .6s;visibility:hidden}.w-e-menu-tooltip-v5:hover:after,.w-e-menu-tooltip-v5:hover:before{opacity:1;visibility:visible}.w-e-menu-tooltip-v5.tooltip-right:before{left:100%;top:10px}.w-e-menu-tooltip-v5.tooltip-right:after{border-bottom-color:transparent;border-left-color:transparent;border-right-color:var(--w-e-toolbar-active-color);border-top-color:transparent;left:100%;margin-left:-10px;top:16px}.w-e-bar-item-group .w-e-bar-item-menus-container{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;display:none;left:0;margin-top:40px;position:absolute;top:0;z-index:1}.w-e-bar-item-group:hover .w-e-bar-item-menus-container{display:block}.w-e-select-list{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;left:0;margin-top:40px;max-height:350px;min-width:100px;overflow-y:auto;position:absolute;top:0;z-index:1}.w-e-select-list ul{line-height:1;list-style:none}.w-e-select-list ul .selected{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li{cursor:pointer;padding:7px 0 7px 25px;position:relative;text-align:left;white-space:nowrap}.w-e-select-list ul li:hover{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li svg{left:0;margin-left:5px;margin-top:-7px;position:absolute;top:50%}.w-e-bar-bottom .w-e-select-list{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-drop-panel{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;margin-top:40px;min-width:200px;padding:10px;position:absolute;top:0;z-index:1}.w-e-bar-bottom .w-e-drop-panel{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-modal{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;color:var(--w-e-toolbar-color);font-size:14px;min-height:40px;min-width:100px;padding:20px 15px 0;position:absolute;text-align:left;z-index:1}.w-e-modal .btn-close{cursor:pointer;line-height:1;padding:5px;position:absolute;right:8px;top:7px}.w-e-modal .btn-close svg{fill:var(--w-e-toolbar-color);height:10px;width:10px}.w-e-modal .babel-container{display:block;margin-bottom:15px}.w-e-modal .babel-container span{display:block;margin-bottom:10px}.w-e-modal .button-container{margin-bottom:15px}.w-e-modal button{background-color:var(--w-e-modal-button-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);cursor:pointer;font-weight:400;height:32px;padding:4.5px 15px;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.w-e-modal input[type=number],.w-e-modal input[type=text],.w-e-modal textarea{font-feature-settings:\"tnum\";background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);font-variant:tabular-nums;padding:4.5px 11px;transition:all .3s;width:100%}.w-e-modal textarea{min-height:60px}body .w-e-modal,body .w-e-modal *{box-sizing:border-box}.w-e-progress-bar{background-color:var(--w-e-textarea-handler-bg-color);height:1px;position:absolute;transition:width .3s;width:0}.w-e-full-screen-container{bottom:0!important;display:flex!important;flex-direction:column!important;height:100%!important;left:0!important;margin:0!important;padding:0!important;position:fixed;right:0!important;top:0!important;width:100%!important}.w-e-full-screen-container [data-w-e-textarea=true]{flex:1!important}.w-e-text-container [data-slate-editor] code{background-color:var(--w-e-textarea-slight-bg-color);border-radius:3px;font-family:monospace;padding:3px}.w-e-panel-content-color{list-style:none;text-align:left;width:230px}.w-e-panel-content-color li{border:1px solid var(--w-e-toolbar-bg-color);border-radius:3px;cursor:pointer;display:inline-block;padding:2px}.w-e-panel-content-color li:hover{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color li .color-block{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;height:17px;width:17px}.w-e-panel-content-color .active{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color .clear{line-height:1.5;margin-bottom:5px;width:100%}.w-e-panel-content-color .clear svg{height:16px;margin-bottom:-4px;width:16px}.w-e-text-container [data-slate-editor] blockquote{background-color:var(--w-e-textarea-slight-bg-color);border-left:8px solid var(--w-e-textarea-selected-border-color);display:block;font-size:100%;line-height:1.5;margin:10px 0;padding:10px}.w-e-panel-content-emotion{font-size:20px;list-style:none;text-align:left;width:300px}.w-e-panel-content-emotion li{border-radius:3px;cursor:pointer;display:inline-block;padding:0 5px}.w-e-panel-content-emotion li:hover{background-color:var(--w-e-textarea-slight-bg-color)}.w-e-textarea-divider{border-radius:3px;margin:20px auto;padding:20px}.w-e-textarea-divider hr{background-color:var(--w-e-textarea-border-color);border:0;display:block;height:1px}.w-e-text-container [data-slate-editor] pre>code{background-color:var(--w-e-textarea-slight-bg-color);border:1px solid var(--w-e-textarea-slight-border-color);border-radius:4px;display:block;font-size:14px;padding:10px;text-indent:0}.w-e-text-container [data-slate-editor] .w-e-image-container{display:inline-block;margin:0 3px}.w-e-text-container [data-slate-editor] .w-e-image-container:hover{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-container [data-slate-editor] .w-e-selected-image-container{overflow:hidden;position:relative}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .w-e-image-dragger{background-color:var(--w-e-textarea-handler-bg-color);height:7px;position:absolute;width:7px}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-top{cursor:nwse-resize;left:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-top{cursor:nesw-resize;right:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-bottom{bottom:0;cursor:nesw-resize;left:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-bottom{bottom:0;cursor:nwse-resize;right:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container:hover,.w-e-text-container [contenteditable=false] .w-e-image-container:hover{box-shadow:none}.w-e-text-container [data-slate-editor] .table-container{border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin-top:10px;overflow-x:auto;padding:10px;width:100%}.w-e-text-container [data-slate-editor] table{border-collapse:collapse}.w-e-text-container [data-slate-editor] table td,.w-e-text-container [data-slate-editor] table th{border:1px solid var(--w-e-textarea-border-color);line-height:1.5;min-width:30px;padding:3px 5px;text-align:left}.w-e-text-container [data-slate-editor] table th{background-color:var(--w-e-textarea-slight-bg-color);font-weight:700;text-align:center}.w-e-panel-content-table{background-color:var(--w-e-toolbar-bg-color)}.w-e-panel-content-table table{border-collapse:collapse}.w-e-panel-content-table td{border:1px solid var(--w-e-toolbar-border-color);cursor:pointer;height:15px;padding:3px 5px;width:20px}.w-e-panel-content-table td.active{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-textarea-video-container{background-image:linear-gradient(45deg,#eee 25%,transparent 0,transparent 75%,#eee 0,#eee),linear-gradient(45deg,#eee 25%,#fff 0,#fff 75%,#eee 0,#eee);background-position:0 0,10px 10px;background-size:20px 20px;border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin:10px auto 0;padding:10px 0;text-align:center}.w-e-text-container [data-slate-editor] pre>code{word-wrap:normal;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;-webkit-hyphens:none;hyphens:none;line-height:1.5;margin:.5em 0;overflow:auto;padding:1em;-moz-tab-size:4;-o-tab-size:4;tab-size:4;text-align:left;text-shadow:0 1px #fff;white-space:pre;word-break:normal;word-spacing:normal}.w-e-text-container [data-slate-editor] pre>code .token.cdata,.w-e-text-container [data-slate-editor] pre>code .token.comment,.w-e-text-container [data-slate-editor] pre>code .token.doctype,.w-e-text-container [data-slate-editor] pre>code .token.prolog{color:#708090}.w-e-text-container [data-slate-editor] pre>code .token.punctuation{color:#999}.w-e-text-container [data-slate-editor] pre>code .token.namespace{opacity:.7}.w-e-text-container [data-slate-editor] pre>code .token.boolean,.w-e-text-container [data-slate-editor] pre>code .token.constant,.w-e-text-container [data-slate-editor] pre>code .token.deleted,.w-e-text-container [data-slate-editor] pre>code .token.number,.w-e-text-container [data-slate-editor] pre>code .token.property,.w-e-text-container [data-slate-editor] pre>code .token.symbol,.w-e-text-container [data-slate-editor] pre>code .token.tag{color:#905}.w-e-text-container [data-slate-editor] pre>code .token.attr-name,.w-e-text-container [data-slate-editor] pre>code .token.builtin,.w-e-text-container [data-slate-editor] pre>code .token.char,.w-e-text-container [data-slate-editor] pre>code .token.inserted,.w-e-text-container [data-slate-editor] pre>code .token.selector,.w-e-text-container [data-slate-editor] pre>code .token.string{color:#690}.w-e-text-container [data-slate-editor] pre>code .language-css .token.string,.w-e-text-container [data-slate-editor] pre>code .style .token.string,.w-e-text-container [data-slate-editor] pre>code .token.entity,.w-e-text-container [data-slate-editor] pre>code .token.operator,.w-e-text-container [data-slate-editor] pre>code .token.url{color:#9a6e3a}.w-e-text-container [data-slate-editor] pre>code .token.atrule,.w-e-text-container [data-slate-editor] pre>code .token.attr-value,.w-e-text-container [data-slate-editor] pre>code .token.keyword{color:#07a}.w-e-text-container [data-slate-editor] pre>code .token.class-name,.w-e-text-container [data-slate-editor] pre>code .token.function{color:#dd4a68}.w-e-text-container [data-slate-editor] pre>code .token.important,.w-e-text-container [data-slate-editor] pre>code .token.regex,.w-e-text-container [data-slate-editor] pre>code .token.variable{color:#e90}.w-e-text-container [data-slate-editor] pre>code .token.bold,.w-e-text-container [data-slate-editor] pre>code .token.important{font-weight:700}.w-e-text-container [data-slate-editor] pre>code .token.italic{font-style:italic}.w-e-text-container [data-slate-editor] pre>code .token.entity{cursor:help}.react-quill .ql-editor{min-height:100px}.tabs-c .ant-tabs-content-holder{overflow-y:auto}.approval-process .ant-timeline-item-tail,.approval-process .ant-timeline-item-head{top:30px}.rich-edit p,.rich-edit span,.rich-edit ol,.rich-edit li{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();(function(or,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react/jsx-runtime"),require("react"),require("ahooks"),require("sggkui"),require("antd"),require("@ant-design/pro-components"),require("dayjs"),require("lodash"),require("@ant-design/icons"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","ahooks","sggkui","antd","@ant-design/pro-components","dayjs","lodash","@ant-design/icons","react-dom"],b):(or=typeof globalThis<"u"?globalThis:or||self,b(or.SGLowCodeParser={},or["react/jsx-runtime"],or.react,or.ahooks,or.sggkui,or.antd,or.AntdProComponent,or.dayjs,or.lodash,or.AntdIcons,or["react-dom"]))})(this,function(or,b,N,Ke,Rr,G,ct,hn,Ki,Fr,GK){"use strict";var d7e=Object.defineProperty;var p7e=(or,b,N)=>b in or?d7e(or,b,{enumerable:!0,configurable:!0,writable:!0,value:N}):or[b]=N;var Ae=(or,b,N)=>p7e(or,typeof b!="symbol"?b+"":b,N);var $r=(e=>(e.common="common",e.customReport="customReport",e.flow="flow",e.description="description",e.treeTable="treeTable",e.ltrt="ltrt",e.edit="edit",e.detail="detail",e.iframe="iframe",e.mainSubLink="mainSubLink",e))($r||{}),wt=(e=>(e.frontAdd="frontAdd",e.frontEdit="frontEdit",e.frontReset="frontReset",e.frontImport="frontImport",e.frontAddRow="frontAddRow",e.frontLink="frontLink",e.filter="filter",e.formSave="formSave",e.tableSave="tableSave",e.subTableSave="subTableSave",e.delete="delete",e.multiDelete="multiDelete",e.startFlow="startFlow",e.nextFlow="nextFlow",e.rejectFlow="rejectFlow",e.backToStart="backToStart",e.revokeFlow="revokeFlow",e.copyTask="copyTask",e.finishCopyTask="finishCopyTask",e.jumpNode="jumpNode",e.backToNode="backToNode",e.export="export",e.custom="custom",e.frontRefresh="frontRefresh",e.frontFullScreen="frontFullScreen",e.frontCopy="frontCopy",e.frontOpenInlineEdit="frontOpenInlineEdit",e.frontCancelInlineEdit="frontCancelInlineEdit",e))(wt||{});const WK=[{buttonType:"frontFullScreen",buttonName:"全屏"}],YK=[];var te=(e=>(e.Text="Text",e.MultilineText="MultilineText",e.Password="Password",e.Integer="Integer",e.Decimal="Decimal",e.Select="Select",e.MultiSelect="MultiSelect",e.CascadeSelect="CascadeSelect",e.CascadeMultiSelect="CascadeMultiSelect",e.RadioGroup="RadioGroup",e.CheckBox="CheckBox",e.CheckBoxGroup="CheckBoxGroup",e.Switch="Switch",e.Date="Date",e.DateTime="DateTime",e.Time="Time",e.Rating="Rating",e.Upload="Upload",e.PopupSelect="PopupSelect",e.PopupMultiSelect="PopupMultiSelect",e.DeptSelect="DeptSelect",e.DeptMultiSelect="DeptMultiSelect",e.UserSelect="UserSelect",e.UserMultiSelect="UserMultiSelect",e.Image="Image",e.PureText="PureText",e.IgnorePartition="IgnorePartition",e.OrgSelect="OrgSelect",e.DefaultText="DefaultText",e.TreeSelect="TreeSelect",e.SerialNumber="SerialNumber",e))(te||{}),Mt=(e=>(e[e.TextFilters=0]="TextFilters",e[e.IntegerFilters=1]="IntegerFilters",e[e.timeFilters=2]="timeFilters",e[e.dictFilters=3]="dictFilters",e[e.dateFilters=4]="dateFilters",e))(Mt||{});const Gi={0:[{text:"等于",value:"EQ"},{text:"不等于",value:"NE"},{text:"包含",value:"LIKE"},{text:"不包含",value:"NOT_LIKE"},{text:"以...开始",value:"LIKE_RIGHT"},{text:"以...结束",value:"LIKE_LEFT"},{text:"为空",value:"IS_NULL"},{text:"不为空",value:"IS_NOT_NULL"}],1:[{text:"等于",value:"EQ"},{text:"不等于",value:"NE"},{text:"大于",value:"GT"},{text:"大于等于",value:"GE"},{text:"小于",value:"LT"},{text:"小于等于",value:"LE"},{text:"在...之间",value:"BETWEEN"},{text:"不在...之间",value:"NOT_BETWEEN"}],2:[{text:"等于",value:"EQ"},{text:"大于",value:"GT"},{text:"大于等于",value:"GE"},{text:"小于",value:"LT"},{text:"小于等于",value:"LE"},{text:"从...到...",value:"BETWEEN"}],4:[{text:"等于",value:"EQ"},{text:"大于",value:"GT"},{text:"大于等于",value:"GE"},{text:"小于",value:"LT"},{text:"小于等于",value:"LE"},{text:"从...到...",value:"BETWEEN"}],3:[]};var vd=(e=>(e.edlin="edlin",e.popUp="popupDrawer",e.modal="popupModal",e))(vd||{}),md=(e=>(e.backPage="backPage",e.frontPage="frontPage",e.noPage="noPage",e))(md||{}),yd=(e=>(e.editComponent="editComponent",e.detailComponent="detailComponent",e.innerLink="innerLink",e.outerLink="outerLink",e))(yd||{}),bd=(e=>(e.popupWindow="popupWindow",e.popupTag="popupTag",e.popupDrawer="popupDrawer",e.popupModal="popupModal",e))(bd||{});const Xr=(e,t,r=!0)=>{const{timeout:n=5e3}=t,o=new AbortController,i=setTimeout(()=>o.abort(),n);return fetch(e,{...t,signal:o.signal}).then(a=>(clearTimeout(i),r?a.json():a.blob())).catch(a=>{throw o.abort(a==null?void 0:a.msg),clearTimeout(i),new Error(a)})},wd=(e,t)=>{const r=t.map(n=>({[n.sqlFieldName]:n.fieldCode,[n.fieldCode]:n.sqlFieldName})).concat({id:"id"});if(typeof e=="object"){const n=r.filter(o=>e.includes(Object.keys(o)[0]));return e.map(o=>(n.find(i=>i.hasOwnProperty(o))||{})[o])}return(r.find(n=>n.hasOwnProperty(e))||{})[e]},oo="__id__",QD=()=>`${oo}${Math.random().toString(16).slice(2)}`,Fb=(e=[],t=[],r=[])=>[t.some(n=>e.includes(n)),r.some(n=>e.includes(n))],Na=(e,t={detail:{}})=>{const r=new CustomEvent(e,t);document.dispatchEvent(r)};var Wi=(e=>(e.refresh_todo="REFRESH_TODO",e.refresh_done="REFRESH_DONE",e.openTab="OPENTABPANE",e.closeTab="CLOSETABPANE",e.route="ROUTE",e))(Wi||{});function jo(){return{getParmas:t=>new URLSearchParams(window.location.href.split("?")[1]).get(t)||""}}function jb(e){const{appEnName:t}=e,{getParmas:r}=jo(),{showAlert:n}=Rr.useAlert();return{pageJsonReq:Ke.useRequest((i="page",a)=>{const s={page:`${t}/lowcode/v1/page/config/${a||r("pageCode")}`,flow:`${t}/lowcode/v1/page/flow/config/${a||r("pageCode")}?nodeId=${r("nodeId")}&taskId=${r("taskId")}`};return Xr(s[i],{headers:{Authorization:JSON.parse(localStorage.getItem(`${t}_TOKEN`))}})},{manual:!0,onSuccess(i){(i.code===401||i.code===403)&&Na(Wi.route,{detail:{url:"/login",params:{replace:!0}}}),i.code!==200&&n({type:"warning",title:"出错了",description:i.msg,timeout:2e3})}})}}const Ta=N.createContext({});function e_(e){const{pageJson:t,context:r,dictCache:n}=e,[o]=N.useState(r);return b.jsx(Ta.Provider,{value:{pageJson:t,context:o,dictCache:n},children:e.children})}function XK(e,t=1){const r=[],n=Math.floor(t),o=(i,a)=>{for(const s of i)Array.isArray(s)&&a<n?o(s,a+1):r.push(s)};return o(e,0),r}function Ig(e,t){const r={};for(const[n,o]of Object.entries(e))t(o,n)||(r[n]=o);return r}function Io(e){return e==null}function En(e){return e!=null}function t_(...e){return XK(e)}function r_(e,t,{signal:r,edges:n}={}){let o,i=null;const a=n!=null&&n.includes("leading"),s=n==null||n.includes("trailing"),u=()=>{i!==null&&(e.apply(o,i),o=void 0,i=null)},l=()=>{s&&u(),p()};let c=null;const f=()=>{c!=null&&clearTimeout(c),c=setTimeout(()=>{c=null,l()},t)},d=()=>{c!==null&&(clearTimeout(c),c=null)},p=()=>{d(),o=void 0,i=null},h=()=>{d(),u()},g=function(...m){if(r!=null&&r.aborted)return;o=this,i=m;const y=c==null;f(),a&&y&&u()};return g.schedule=f,g.cancel=p,g.flush=h,r==null||r.addEventListener("abort",p,{once:!0}),g}const Zl=e=>{const{value:t,onChange:r,defaultValue:n="",...o}=e,[i,a]=N.useState(t?hn(t==="当前"?hn().format("YYYY-MM-DD HH:mm:ss"):t,e.format):"");N.useEffect(()=>{t==="当前"&&(r==null||r(hn(new Date).format(e.format||"YYYY-MM-DD HH:mm:ss")))},[]),N.useEffect(()=>{t&&t!=="当前"&&a(hn(new Date(t))),t===""&&a(void 0)},[t]);const s=(u,l)=>{r==null||r(l)};return b.jsx(G.DatePicker,{className:"w-full h-full",value:i,onChange:s,...o})},Lg=e=>{const{value:t,onChange:r,defaultValue:n="",format:o="HH:mm:ss",...i}=e,[a,s]=N.useState(t?hn(t==="当前"?new Date:t,o):"");N.useEffect(()=>{t==="当前"&&(r==null||r(hn(new Date).format(o)))},[]),N.useEffect(()=>{t&&t!=="当前"&&s(hn(t,o)),t===""&&s(void 0)},[t]);const u=(l,c)=>r==null?void 0:r(c);return b.jsx(G.TimePicker,{className:"w-full h-full",value:a,onChange:u,format:o,...i})},n_=e=>{const{value:t,onChange:r,...n}=e,[o,i]=N.useState([]);N.useEffect(()=>{typeof t=="object"&&(t==null?void 0:t.length)>0&&i(t.map(s=>hn(new Date(s))))},[t]);const a=(s,u)=>{r==null||r(u)};return b.jsx(G.DatePicker.RangePicker,{className:"w-full h-full",value:o,onChange:a,...n})},o_=e=>{const{value:t,onChange:r,...n}=e,[o,i]=N.useState([]);N.useEffect(()=>{typeof t=="object"&&t.length>0&&i(t.map(s=>hn(s,e.format||"HH:mm:ss")))},[t]);const a=(s,u)=>{r==null||r(u)};return b.jsx(G.TimePicker.RangePicker,{className:"w-full h-full",value:o,onChange:a,...n})};function rn(){const{context:e,pageJson:t,dictCache:r}=N.useContext(Ta);return{context:e,pageJson:t,dictCache:r}}const Ql={deptList:[],deptReq:!1},ec={orgList:[],orgReq:!1};function hr(){const{context:{appEnName:e=""}}=rn(),[t,r]=N.useState([]),[n,o]=N.useState([]),i=()=>JSON.parse(localStorage.getItem(`${e}_TOKEN`)),a=()=>JSON.parse(JSON.parse(localStorage.getItem(`${e}_USER`)).rolePermis||"[]"),s=()=>({Authorization:i()}),{showAlert:u}=Rr.useAlert(),l={Authorization:JSON.parse(localStorage.getItem(`${e}_TOKEN`)),"Content-Type":"application/json"},{notification:c}=G.App.useApp(),d={manual:!0,debounceWait:200,onSuccess:T=>{T.type||((T.code===401||T.code===403)&&Na(Wi.route,{detail:{url:"/home",params:{replace:!0}}}),T.code!==200&&u({type:"warning",title:"出错了",description:T.msg,timeout:2e3}))}},p=Ke.useRequest(T=>Xr(`/${e}/v1/system/dict/data/type/${T}`,{headers:l}),d),h=Ke.useRequest(T=>Xr(`/${e}/lowcode/v1/resolve/list`,{method:"post",headers:l,body:JSON.stringify(T)}),d),g=Ke.useRequest(T=>Xr(`/${e}/lowcode/v1/resolve/get`,{method:"post",headers:l,body:JSON.stringify(T)}),d),m=Ke.useRequest(T=>Xr(`/${e}/lowcode/v1/resolve/delete`,{method:"post",headers:l,body:JSON.stringify(T)}),d),y=Ke.useRequest(T=>Xr(`/${e}/lowcode/v1/resolve/save`,{method:"post",headers:l,body:JSON.stringify(T)}),d),v=Ke.useRequest(T=>Xr(`/${e}/lowcode/v1/resolve/saveFormListData`,{method:"post",headers:l,body:JSON.stringify(T)}),d),E=Ke.useRequest(T=>Xr(`/${e}/lowcode/v1/resolve/saveSubListData`,{method:"post",headers:l,body:JSON.stringify(T)}),d),w=Ke.useRequest(T=>{const F=new FormData;return Object.keys(T).forEach(U=>{F.append(U,T[U])}),Xr(`/${e}/lowcode/v1/resolve/import`,{method:"post",headers:{...s(),responseType:"blob"},body:F},!1)},{manual:!0}),S=Ke.useRequest(()=>Xr(`/${e}/v1/system/dept/all`,{headers:l}),{manual:!0,onSuccess(T){Ql.deptList=T.data,r(T.data)}}),C=Ke.useRequest(T=>Xr(`/${e}/v1/system/local/file/${T}`,{method:"delete",headers:l}),{manual:!0}),x=Ke.useRequest(({fieldCode:T,pageCode:F})=>Xr(`/${e}/lowcode/v1/resolve/getTreeData?pageCode=${F}&fieldCode=${T}`,{method:"post",headers:l}),{...d}),_=Ke.useRequest(T=>Xr(`/${e}/lowcode/v1/resolve/listTreeData`,{method:"post",headers:l,body:JSON.stringify(T)}),d),P=Ke.useRequest(T=>Xr(`/${e}/lowcode/v1/resolve/custom`,{method:"post",headers:l,body:JSON.stringify(T)}),d),q=Ke.useRequest(T=>Xr(`/${e}/v1/system/user/queryList?nameOrAccount=${T}`,{method:"get",headers:l}),d),H=Ke.useRequest(()=>Xr(`/${e}/v1/system/bizorg/select`,{headers:l}),{manual:!0,onSuccess(T){const F=T.data.map(U=>({label:U.label,value:U.id}));ec.orgList=F,o(F)}}),k=Ke.useRequest(T=>Xr(`/${e}/lowcode/v1/resolve/getReaderNumber`,{headers:l,method:"POST",body:JSON.stringify(T)}),d);return N.useEffect(()=>{Ql.deptReq||(Ql.deptReq=!0,S.run()),ec.orgReq||(ec.orgReq=!0,H.run())},[]),N.useEffect(()=>{var T,F;((T=Ql.deptList)==null?void 0:T.length)>0&&r(Ql.deptList),((F=ec.orgList)==null?void 0:F.length)>0&&o(ec.orgList)},[Ql.deptList,ec.orgList]),{dictReq:p,listReq:h,getDetailReq:g,deleteReq:m,getToken:i,getTokenHeader:s,saveReq:y,importReq:w,deptList:t,orgList:n,deleteFileById:C,getrolePermis:a,revokeFlow:async T=>{const U=await(await fetch(`/${e}/lowcode/v1/workflow/revokeFlow`,{headers:l,method:"POST",body:T})).json();U.code==200?c.info({message:U.msg,placement:"top"}):c.error({message:U.msg,placement:"top"})},finishCopyTask:async T=>{const U=await(await fetch(`/${e}/lowcode/v1/workflow/finishCopyTask`,{headers:l,method:"POST",body:T})).json();U.code==200?c.info({message:U.msg,placement:"top"}):c.error({message:U.msg,placement:"top"})},queryListTreeData:_,savaTable:v,custom:P,getTreeData:x,getSerialNumber:k,queryUserByUserId:q,saveSubTable:E}}function Mg(e){const{value:t,onChange:r,multiple:n=!0,disabled:o=!1}=e,{context:{appEnName:i}}=rn(),{getToken:a,queryUserByUserId:s}=hr(),[u,l]=N.useState([]),[c,f]=N.useState(!1);return N.useEffect(()=>{if(t!==void 0)if(typeof t=="string"){let d=[];if(t==="当前")try{const p=JSON.parse(localStorage.getItem(`${i}_USER`)),{userId:h,userName:g}=p;h&&g?(d=[{userId:h,userName:g}],r==null||r(d)):console.warn("【人员选择组件】:在缓存信息中未查到当前对应的人员信息")}catch(p){console.log(p)}else s.runAsync(t).then(p=>{var h;if(((h=p.data)==null?void 0:h.length)>0){const{id:g,nickName:m}=p.data[0];g&&m&&(d=[{userId:g,userName:m}],r==null||r(d))}else console.warn(`【人员选择组件】:${t} - 未查到对应的人员信息,请在编辑器中输入正确的工号`)})}else l(t)},[t]),b.jsxs(b.Fragment,{children:[b.jsxs(G.Space.Compact,{block:!0,children:[b.jsx(G.Select,{className:"w-full text-ellipsis whitespace-nowrap overflow-hidden dept-select-text",placeholder:"请选择人员",mode:"tags",value:u.map(d=>d.userId),fieldNames:{label:"userName",value:"userId"},options:u,onChange:(d,p)=>{r==null||r(p)},allowClear:!0,maxTagCount:"responsive",maxTagPlaceholder:d=>b.jsx(G.Tooltip,{title:d.map(({label:p})=>p).join("、 "),children:d.map(({label:p})=>p).join("、 ")}),open:!1,suffixIcon:null,disabled:o,onFocus:d=>d.target.blur()}),b.jsx(G.Button,{type:"primary",disabled:o,icon:n?b.jsx("svg",{className:"icon inline-block text-[14px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"34",height:"34",children:b.jsx("path",{d:"M164.445091 330.984727c0-95.604364 79.080727-173.102545 176.64-173.102545 97.605818 0 176.686545 77.498182 176.686545 173.102545s-79.127273 173.102545-176.686545 173.102546-176.64-77.498182-176.64-173.102546zM407.272727 808.354909v-11.962182c0-88.250182 45.986909-165.794909 115.339637-211.502545a230.958545 230.958545 0 0 0-100.491637-23.086546H274.850909c-126.045091 0-228.212364 100.072727-228.212364 223.557819v14.42909c0 50.501818 102.167273 50.501818 228.212364 50.501819H415.650909a101.841455 101.841455 0 0 1-8.378182-41.937455z m313.623273-532.852364c-80.942545 0-146.618182 64.325818-146.618182 143.685819s65.675636 143.685818 146.618182 143.685818c80.989091 0 146.618182-64.325818 146.618182-143.685818s-65.582545-143.685818-146.618182-143.685819z m0 0c-80.942545 0-146.618182 64.325818-146.618182 143.685819s65.675636 143.685818 146.618182 143.685818c80.989091 0 146.618182-64.325818 146.618182-143.685818s-65.582545-143.685818-146.618182-143.685819z m-54.923636 335.313455c-104.634182 0-189.44 83.083636-189.44 185.576727v11.962182c0 41.890909 84.805818 41.890909 189.44 41.890909h122.228363c104.587636 0 189.346909-1.536 189.346909-41.890909v-11.962182c0-102.493091-84.759273-185.576727-189.346909-185.576727h-122.228363z m0 0","p-id":"16826"})}):b.jsx("svg",{className:"icon inline-block text-[13px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"22023",width:"32",height:"32",children:b.jsx("path",{d:"M725.333333 640a213.333333 213.333333 0 0 1 213.333334 213.333333v85.333334H85.333333v-85.333334a213.333333 213.333333 0 0 1 209.237334-213.333333A318.592 318.592 0 0 0 512 725.333333a318.848 318.848 0 0 0 217.429333-85.205333L725.333333 640zM512 85.333333a277.333333 277.333333 0 1 1 0 554.666667 277.333333 277.333333 0 0 1 0-554.666667z"})}),onClick:()=>f(!0),children:"选择人员"})]}),!o&&b.jsx(Rr.DeptPeopleSelector,{open:c,onCancel:()=>f(!1),token:a(),server:`/${i}/`,value:t,onChange:r,onSelected:d=>{r==null||r(d)},multiple:n})]})}function Ed(e){const{value:t,onChange:r,multiple:n=!0,disabled:o=!1,showDeptFullName:i=!1}=e,{context:{appEnName:a}}=rn(),{getToken:s,deptList:u}=hr(),[l,c]=N.useState([]),[f,d]=N.useState(!1),p=N.useMemo(()=>{if(t!==void 0&&u.length>0){if(t===null)return[];if(typeof t=="string"){if(t==="当前"){let m=[];try{const y=JSON.parse(localStorage.getItem(`${a}_USER`)),{deptId:v,deptName:E}=y;v&&E?(m=[{deptId:v,deptName:E}],r==null||r(m)):console.warn("【部门选择组件】:在缓存信息中未查到当前对应的部门信息")}catch(y){console.log(y)}return m}const h=t.split(","),g=u.filter(m=>h.includes(m.id)).map(m=>({deptId:m.id,deptName:i?m.fullName:m.label}));return g.length>0?g:(console.warn(`【部门选择组件】:${h} - 未查到对应的默认部门信息,请在编辑器中输入正确的部门编码`),[])}else return t}else return[]},[t,u]);return N.useEffect(()=>{c(p)},[t,p]),b.jsxs("div",{className:"overflow-hidden",children:[b.jsxs(G.Space.Compact,{block:!0,children:[b.jsx(G.Select,{className:"w-full text-ellipsis whitespace-nowrap overflow-hidden dept-select-text",placeholder:"请选择部门",mode:"tags",value:l.map(h=>h.deptId),fieldNames:{label:"deptName",value:"deptId"},options:l,onChange:(h,g)=>{r==null||r(g)},allowClear:!0,open:!1,suffixIcon:null,disabled:o,maxTagCount:"responsive",maxTagPlaceholder:h=>b.jsx(G.Tooltip,{title:h.map(({label:g})=>g).join("、 "),children:h.map(({label:g})=>g).join("、 ")}),onFocus:h=>h.target.blur()}),b.jsx(G.Button,{type:"primary",disabled:o,icon:n?b.jsx("svg",{className:"icon inline-block",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",children:b.jsx("path",{d:"M631.1 341.3c0 11.9-7.9 19.8-19.8 19.8H412.8c-11.9 0-19.8-7.9-19.8-19.8V178.6c0-11.9 7.9-23.8 19.8-23.8h198.4c11.9 0 19.8 11.9 19.8 23.8v162.7h0.1m0 0M631.1 845.4c0 11.9-7.9 19.8-19.8 19.8H412.8c-11.9 4-19.8-7.9-19.8-19.8V682.7c0-11.9 7.9-19.8 19.8-19.8h198.4c11.9 0 19.8 7.9 19.8 19.8v162.7h0.1m0 0M988.2 845.4c0 11.9-7.9 19.8-19.8 19.8H770c-11.9 0-19.8-7.9-19.8-19.8V682.7c0-11.9 7.9-19.8 19.8-19.8h198.4c11.9 0 19.8 7.9 19.8 19.8v162.7m0 0M273.9 845.4c0 11.9-7.9 23.8-19.8 23.8H55.6c-11.9 0-19.8-11.9-19.8-23.8V682.7c0-11.9 7.9-19.8 19.8-19.8H254c11.9 0 19.8 7.9 19.8 19.8v162.7h0.1m0 0M547.7 452.5V393h-71.4v59.5H123V631.1h67.5v-99.2h285.8v99.2h71.4v-99.2h281.8v99.2h71.4V452.5H547.7m0 0"})}):b.jsx("svg",{className:"icon inline-block",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",children:b.jsx("path",{d:"M631.1 341.3c0 11.9-7.9 19.8-19.8 19.8H412.8c-11.9 0-19.8-7.9-19.8-19.8V178.6c0-11.9 7.9-23.8 19.8-23.8h198.4c11.9 0 19.8 11.9 19.8 23.8v162.7h0.1m0 0M631.1 845.4c0 11.9-7.9 19.8-19.8 19.8H412.8c-11.9 4-19.8-7.9-19.8-19.8V682.7c0-11.9 7.9-19.8 19.8-19.8h198.4c11.9 0 19.8 7.9 19.8 19.8v162.7h0.1m0 0M988.2 845.4c0 11.9-7.9 19.8-19.8 19.8H770c-11.9 0-19.8-7.9-19.8-19.8V682.7c0-11.9 7.9-19.8 19.8-19.8h198.4c11.9 0 19.8 7.9 19.8 19.8v162.7m0 0M273.9 845.4c0 11.9-7.9 23.8-19.8 23.8H55.6c-11.9 0-19.8-11.9-19.8-23.8V682.7c0-11.9 7.9-19.8 19.8-19.8H254c11.9 0 19.8 7.9 19.8 19.8v162.7h0.1m0 0M547.7 452.5V393h-71.4v59.5H123V631.1h67.5v-99.2h285.8v99.2h71.4v-99.2h281.8v99.2h71.4V452.5H547.7m0 0"})}),onClick:()=>d(!0),children:"选择部门"})]}),!o&&b.jsx(Rr.DeptSelector,{open:f,onCancel:()=>d(!1),token:s(),server:`/${a}/`,value:p,onChange:r,onSelected:h=>{r==null||r(h)},multiple:n})]})}function JK(e,t){const r={};for(const n of t)r[n]=e[n];return r}function ZK(e){const{value:t,onChange:r,multiple:n=!0,disabled:o=!1}=e,{context:{appEnName:i}}=rn(),{getToken:a,deptList:s}=hr(),[u,l]=N.useState([]),[c,f]=N.useState(!1),d=N.useMemo(()=>{if(En(t)&&s.length>0)if(typeof t=="string"){const p=t.split(",");return s.filter(h=>p.includes(h.id)).map(h=>({orgId:h.id,orgName:h.label}))}else return t;else return[]},[t,s]);return N.useEffect(()=>{l(d)},[t,d]),b.jsxs(b.Fragment,{children:[b.jsxs(G.Space.Compact,{block:!0,children:[b.jsx(G.Select,{className:"w-full",placeholder:"请选择组织",mode:"tags",value:u.map(p=>p.orgId),fieldNames:{label:"orgName",value:"orgId"},options:u,onChange:(p,h)=>{r==null||r(h)},allowClear:!0,open:!1,suffixIcon:null,disabled:o,maxTagCount:"responsive",maxTagPlaceholder:p=>b.jsx(G.Tooltip,{overlayStyle:{pointerEvents:"none"},title:p.map(({label:h})=>h).join(", "),children:b.jsx("span",{children:"..."})}),onFocus:p=>p.target.blur()}),b.jsx(G.Button,{type:"primary",disabled:o,icon:n?b.jsx("svg",{className:"icon inline-block text-[16px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"12578",width:"32",height:"32",children:b.jsx("path",{d:"M630.186667 797.866667V220.586667a42.666667 42.666667 0 0 0-42.666667-37.12H241.493333a33.28 33.28 0 0 0-32.426666 15.786666 42.666667 42.666667 0 0 0-10.666667 32.426667v571.306667H170.666667a14.933333 14.933333 0 0 0-16.213334 16.213333 16.213333 16.213333 0 0 0 5.546667 21.76c5.12 5.12 10.666667 5.12 21.333333 5.12h648.106667a14.506667 14.506667 0 0 0 12.373333-3.84 14.08 14.08 0 0 0 3.84-11.946667 20.48 20.48 0 0 0-16.213333-27.306666h-21.333333v-361.386667a28.586667 28.586667 0 0 0-8.106667-24.32 27.306667 27.306667 0 0 0-24.32-7.68H678.4v384l-5.12 5.546667z m-302.08-345.173334v-42.666666h170.666666v42.666666z m0 231.68V640h170.666666v42.666667z m0-388.266666h170.666666V341.333333H341.333333c-5.546667 0-5.546667 0-5.546666-5.12a105.386667 105.386667 0 0 1-5.546667-37.973333z m0 232.106666h170.666666v42.666667h-170.666666z m0 0","p-id":"12579"})}):b.jsx("svg",{className:"icon inline-block text-[16px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"12578",width:"32",height:"32",children:b.jsx("path",{d:"M630.186667 797.866667V220.586667a42.666667 42.666667 0 0 0-42.666667-37.12H241.493333a33.28 33.28 0 0 0-32.426666 15.786666 42.666667 42.666667 0 0 0-10.666667 32.426667v571.306667H170.666667a14.933333 14.933333 0 0 0-16.213334 16.213333 16.213333 16.213333 0 0 0 5.546667 21.76c5.12 5.12 10.666667 5.12 21.333333 5.12h648.106667a14.506667 14.506667 0 0 0 12.373333-3.84 14.08 14.08 0 0 0 3.84-11.946667 20.48 20.48 0 0 0-16.213333-27.306666h-21.333333v-361.386667a28.586667 28.586667 0 0 0-8.106667-24.32 27.306667 27.306667 0 0 0-24.32-7.68H678.4v384l-5.12 5.546667z m-302.08-345.173334v-42.666666h170.666666v42.666666z m0 231.68V640h170.666666v42.666667z m0-388.266666h170.666666V341.333333H341.333333c-5.546667 0-5.546667 0-5.546666-5.12a105.386667 105.386667 0 0 1-5.546667-37.973333z m0 232.106666h170.666666v42.666667h-170.666666z m0 0","p-id":"12579"})}),onClick:()=>f(!0),children:"选择组织"})]}),!o&&b.jsx(Rr.OrgSelector,{open:c,onCancel:()=>f(!1),token:a(),server:`/${i}/`,value:d,onChange:r,onSelected:p=>{r==null||r(p)},multiple:n})]})}function zg(e){const{multiple:t,params:r,value:n,onChange:o,getForm:i,field:a,disabled:s=!1,isSub:u=!1,editIndex:l,defaultValue:c=[]}=e,f={label:r.matchTextColumn,value:r.matchValueColumn},[d,p]=N.useState(!1),[h,g]=N.useState(c||[]),{context:m,dictCache:y}=rn(),{pageJsonReq:v}=jb(m),E=N.useRef(),[w,S]=N.useState(!1);N.useEffect(()=>{r.openPageCode&&m.appEnName&&v.run("page",r.openPageCode)},[r.openPageCode,m]);const C=N.useMemo(()=>{var x;return((x=v.data)==null?void 0:x.data)||null},[v.data]);return N.useEffect(()=>{n!==void 0&&v.data&&g(n)},[n,v.data]),b.jsxs(b.Fragment,{children:[b.jsxs(G.Space.Compact,{block:!0,children:[b.jsx(G.Select,{className:"w-full",placeholder:"请选择",mode:"tags",value:h.map(x=>x[f.value]),fieldNames:{label:f.label,value:f.value},options:h,onChange:(x,_)=>{o==null||o(_)},open:!1,suffixIcon:t?null:b.jsx("div",{className:"cursor-pointer",children:b.jsx("svg",{className:"icon inline-block text-[18px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4294",width:"32",height:"32",children:b.jsx("path",{d:"M527.63663 877.280404c211.094766 0 382.205888-171.123402 382.205888-382.204865 0-211.080439-171.110099-382.203842-382.204865-382.203842-211.095789 0-382.204865 171.123402-382.204865 382.203842S316.541865 877.280404 527.63663 877.280404zM527.637654 160.64577c184.687326 0 334.428745 149.730163 334.428745 334.428745-0.001023 184.698582-149.742443 334.429769-334.429769 334.429769-184.686303-0.001023-334.428745-149.73221-334.428745-334.429769C193.206862 310.37798 342.949304 160.64577 527.637654 160.64577zM551.525714 423.413406l-47.777143 0 0 238.877529 47.77612 0L551.525714 423.413406zM551.525714 327.862189l-47.777143 0 0 47.77612 47.777143 0L551.525714 327.862189z",fill:"#000",opacity:0,"p-id":"4295"})})}),disabled:s,allowClear:!0,maxTagCount:"responsive",maxTagPlaceholder:x=>b.jsx(G.Tooltip,{overlayStyle:{pointerEvents:"none"},title:x.map(({label:_})=>_).join(", "),children:b.jsx("span",{children:"..."})}),onFocus:x=>x.target.blur()}),!t&&n&&n.length>0&&b.jsx("div",{className:"absolute z-10 right-[40px] top-[6px] cursor-pointer",onClick:()=>S(!0),children:b.jsx("svg",{className:"icon inline-block text-[18px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4294",width:"32",height:"32",children:b.jsx("path",{d:"M527.63663 877.280404c211.094766 0 382.205888-171.123402 382.205888-382.204865 0-211.080439-171.110099-382.203842-382.204865-382.203842-211.095789 0-382.204865 171.123402-382.204865 382.203842S316.541865 877.280404 527.63663 877.280404zM527.637654 160.64577c184.687326 0 334.428745 149.730163 334.428745 334.428745-0.001023 184.698582-149.742443 334.429769-334.429769 334.429769-184.686303-0.001023-334.428745-149.73221-334.428745-334.429769C193.206862 310.37798 342.949304 160.64577 527.637654 160.64577zM551.525714 423.413406l-47.777143 0 0 238.877529 47.77612 0L551.525714 423.413406zM551.525714 327.862189l-47.777143 0 0 47.77612 47.777143 0L551.525714 327.862189z",fill:"#666666","p-id":"4295"})})}),b.jsx(G.Button,{disabled:s,onClick:()=>p(!0),type:"primary",icon:b.jsx("svg",{className:"icon inline-block",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"49951",width:"32",height:"32",children:b.jsx("path",{d:"M298.666667 298.666667V128a42.666667 42.666667 0 0 1 42.666666-42.666667h554.666667a42.666667 42.666667 0 0 1 42.666667 42.666667v554.666667a42.666667 42.666667 0 0 1-42.666667 42.666666h-170.666667v170.368c0 23.722667-19.157333 42.965333-42.965333 42.965334H128.298667A42.922667 42.922667 0 0 1 85.333333 895.701333l0.128-554.069333C85.461333 317.909333 104.618667 298.666667 128.426667 298.666667H298.666667z m85.333333 0h298.368C706.090667 298.666667 725.333333 317.824 725.333333 341.632V640h128V170.666667H384v128z","p-id":"49952"})})})]}),!s&&b.jsxs(b.Fragment,{children:[b.jsxs(G.Modal,{title:C==null?void 0:C.table.tableName,centered:!0,open:d,onOk:()=>{var _;const x=(_=E.current)==null?void 0:_.getAdapterRef().getTableRef();if(o==null||o(x==null?void 0:x.getSelectedRows().map(P=>({id:P.id,[r.matchTextColumn]:P[wd(r.matchTextColumn,C.table.tableFields)]}))),r.matchColumns&&!t){const P=wd(r.matchColumns,C.table.tableFields),q=JK(x==null?void 0:x.getSelectedRows()[0],P);r.matchColumns.forEach((H,k)=>{var I,T;const M=q[P[k]];l!==void 0?(T=(I=i()).setRowData)==null||T.call(I,l,{[`${a.fieldCode}__${H}`]:M}):i().setFieldValue(`${a.sqlFieldName}__${H}`,M)})}p(!1)},onCancel:()=>p(!1),className:"!w-[70%]",children:[b.jsx(G.Divider,{}),(C==null?void 0:C.table.tableCode)&&b.jsx(JD,{pageJson:C,context:m,dictCacheProp:y,popupSelect:!0,ref:E,rowSelection:{type:t?"checkbox":"radio",defaultSelectedRowKeys:n==null?void 0:n.map(x=>x.id)}})]}),b.jsxs(G.Modal,{title:"详细信息",centered:!0,open:w,onOk:()=>{},footer:null,onCancel:()=>S(!1),className:"!w-[70%]",children:[b.jsx(G.Divider,{}),(C==null?void 0:C.table.tableCode)&&n&&n.length>0&&b.jsx(JD,{pageJson:{...C,tplCode:"description"},context:m,dictCacheProp:y,descriptionItem:{key:r.matchValueColumn,value:n[0][r.matchValueColumn]},isSub:u})]})]})]})}function QK(e){const{getSerialNumber:t}=hr(),{showAlert:r}=Rr.useAlert(),{value:n,onChange:o,fieldCode:i,pageId:a,mode:s,...u}=e,[l,c]=N.useState();return N.useEffect(()=>{n!==void 0?c(n):s&&(async()=>{const d=await t.runAsync({dataInfo:{},fieldCode:i,pageId:a});d.code===200?o==null||o(d.data):r({type:"warning",title:d.msg||"获取序列号出错",timeout:3e3})})()},[n]),b.jsx(G.Input,{value:l,onChange:o,...u,disabled:e.disabled||s===1})}const i_=N.memo(QK,(e,t)=>e.fieldCode===t.fieldCode&&e.value===t.value),Ib=["bmp","gif","jpg","jpeg","png"],a_=N.forwardRef(function(t,r){const{uploadProps:n,params:o,context:i,value:a,onChange:s,isImage:u,needDelete:l=!0,...c}=t,{allowFileType:f,customFileType:d,fileTagCode:p,fileTagName:h,fileLimitNum:g,required:m,fileMaxSize:y,storeDay:v}=o,{showAlert:E}=Rr.useAlert(),[w,S]=N.useState(!1),[C,x]=N.useState(""),[_,P]=N.useState([]),{deleteFileById:q}=hr(),{previewFile:H,downloadServerFileReq:k}=Rr.useFile(i);N.useImperativeHandle(r,()=>({getFileList:()=>_.filter(Z=>Z.status==="done").map(Z=>Z.uid.startsWith("rc-upload")?{fileName:Z.name,filePath:Z.url}:{id:Z.uid,fileName:Z.name,filePath:Z.url}),setFileList:R=>{R&&P(R.map(Z=>({uid:Z.id,name:Z.fileName,url:Z.filePath,status:"done"})))}}),[_]),N.useEffect(()=>{En(a)&&P(a)},[a]);const M=async R=>{R.url&&H(R.url)},I=({file:R,fileList:Z})=>{if(u&&Ib.indexOf(R.name.substring(R.name.lastIndexOf(".")+1))===-1){E({type:"warning",title:"只允许上传图片格式",timeout:3e3});return}const{status:re}=R;if(P(Z),re==="done"){const O=R.response;typeof O=="object"&&(O.code===200?(P([...Z.filter(A=>A.uid!==R.uid),{uid:R.uid,name:O.data[0].fileName,status:"done",url:O.data[0].url}]),s==null||s([...Z.filter(A=>A.uid!==R.uid),{uid:R.uid,name:O.data[0].fileName,status:"done",url:O.data[0].url}])):(P(Z.filter(A=>A.uid!==R.uid)),s==null||s(Z.filter(A=>A.uid!==R.uid)),E({type:"warning",title:`${R.name} 附件上传失败: ${O.msg}`,timeout:5e3})))}else re==="error"&&(E({type:"warning",title:`${R.name} 附件上传失败.`,timeout:5e3}),P(Z.filter(O=>O.uid!==R.uid)),s==null||s(Z.filter(O=>O.uid!==R.uid)))},T=R=>{if(f.length||d!==""){const re=f.concat(d===""?[]:d.split(",")),O=R.name.substring(R.name.lastIndexOf(".")+1).toLowerCase();if(re.indexOf(O)===-1)return E({type:"warning",title:"附件类型出错",description:"上传的附件类型不在允许的范围内",timeout:3e3}),G.Upload.LIST_IGNORE}if(!y)return!0;const Z=y*1024*1024;return R.size>Z?(E({type:"warning",title:"附件大小超出限制",description:`${R.name}:${(R.size/1024/1024).toFixed(2)}m,只允许上传最大${y}M的附件`,timeout:3e3}),G.Upload.LIST_IGNORE):!0},F=(R,Z,re,O)=>(Ib.indexOf(Z.name.substring(Z.name.lastIndexOf(".")+1))>-1,b.jsxs("div",{className:`ant-upload-list-item ant-upload-list-item-done${n.disabled?" ant-upload-disabled":""}`,children:[b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"ant-upload-list-item-thumbnail ant-upload-list-item-file",children:b.jsx("span",{role:"img","aria-label":"file",className:"anticon anticon-file",children:b.jsxs("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"file",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:[b.jsx("path",{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:"#e6f4ff"}),b.jsx("path",{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:"#1677ff"})]})})}),b.jsx("span",{className:"ant-upload-list-item-name",title:Z.name,children:Z.name})]}),b.jsxs("span",{className:"ant-upload-list-item-actions",children:[b.jsx("button",{title:"预览附件",type:"button",onClick:()=>M(Z),children:b.jsx("span",{role:"img","aria-label":"eye",className:"anticon anticon-eye",children:b.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"eye",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:b.jsx("path",{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"})})})}),!n.disabled&&b.jsxs(b.Fragment,{children:[b.jsx("button",{title:"下载附件",type:"button",onClick:()=>{k(`/${i.appEnName}/v1/system/local/file/downloadByUrl?fileName=${Z.name}&fileUrl=${Z.url}`,{method:"get"})},children:b.jsx("span",{role:"img","aria-label":"download",className:"anticon anticon-download",children:b.jsx("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5428",width:"32",height:"32",children:b.jsx("path",{d:"M213.333333 853.333333h597.333334v-85.333333H213.333333m597.333334-384h-170.666667V128H384v256H213.333333l298.666667 298.666667 298.666667-298.666667z","p-id":"5429"})})})}),b.jsx("button",{title:"删除附件",type:"button",className:"ant-btn css-dev-only-do-not-override-1hd67qt ant-btn-default ant-btn-text ant-btn-sm ant-btn-icon-only ant-upload-list-item-action",onClick:async()=>{if(!n.disabled)if(l&&!Z.uid.startsWith("rc-upload")){const A=await q.runAsync(Z.uid);A.code===200?(O.remove(),s==null||s(re.filter(V=>V.uid!==Z.uid))):E({type:"warning",title:"删除失败",description:A.msg,timeout:3e3})}else s==null||s(re.filter(A=>A.uid!==Z.uid)),O.remove()},children:b.jsx("span",{className:"ant-btn-icon",children:b.jsx("span",{role:"img","aria-label":"delete",className:"anticon anticon-delete",children:b.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"delete",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:b.jsx("path",{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"})})})})})]})]})]})),U=b.jsxs("div",{className:"flex flex-center flex-col",children:[u?b.jsx("svg",{className:"icon inline-block text-center text-[20px] text-[#777]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8558",width:"32",height:"32",children:b.jsx("path",{d:"M741.288277 90.884082A325.310577 325.310577 0 0 0 514.089271 0.00448a325.118578 325.118578 0 0 0-227.135006 90.879602 303.102674 303.102674 0 0 0-94.143588 219.45504c0 82.815638 33.407854 160.767297 94.143588 219.39104 21.631905 20.991908 45.951799 38.463832 71.935685 52.287772a530.749678 530.749678 0 0 0-185.15119 101.503556C79.595172 763.201141 18.027441 871.488667 0.363519 988.352156a31.103864 31.103864 0 0 0 27.135881 35.199846 31.871861 31.871861 0 0 0 36.415841-26.111886c32.511858-214.719061 226.111011-376.894351 450.17403-376.894351a324.990578 324.990578 0 0 0 227.199006-90.815603 303.230673 303.230673 0 0 0 94.143588-219.39104 302.398677 302.398677 0 0 0-94.143588-219.45504z m-227.199006 467.773954c-141.63138 0-257.022876-111.423513-257.022875-248.254914 0-136.959401 115.327495-248.318914 257.022875-248.318914 141.75938 0 257.086875 111.359513 257.086875 248.318914 0 136.703402-115.327495 248.254914-257.086875 248.254914z m509.62977 429.63012a485.821875 485.821875 0 0 0-48.063789-152.191334 498.30182 498.30182 0 0 0-92.671595-126.847445 32.959856 32.959856 0 0 0-45.503801-0.639997 30.335867 30.335867 0 0 0-0.639997 43.839808 424.574142 424.574142 0 0 1 122.943462 244.222932c2.23999 15.487932 15.99993 26.751883 31.871861 26.751883 1.407994 0 2.879987 0 4.287981-0.192a31.359863 31.359863 0 0 0 27.775878-34.943847z m0 0",fill:"#323333","p-id":"8559"})}):b.jsx("svg",{className:"icon inline-block text-center text-[20px] text-[#777]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8789",width:"32",height:"32",children:b.jsx("path",{d:"M317.824 960a253.568 253.568 0 0 1-179.968-432.576L345.6 320a155.712 155.712 0 0 1 226.944 213.12l-3.264 3.392-3.456 3.456L369.728 736a41.472 41.472 0 1 1-58.688-58.688l196.16-196.096a73.152 73.152 0 0 0 0-102.848 71.36 71.36 0 0 0-51.2-21.184 72.704 72.704 0 0 0-51.584 21.12L196.544 586.048a170.624 170.624 0 0 0 241.28 241.408L830.208 435.2A170.688 170.688 0 0 0 588.8 193.728l-11.456 11.648a41.536 41.536 0 0 1-60.48-56.96A17.408 17.408 0 0 1 518.4 147.2l11.456-11.456a253.696 253.696 0 0 1 358.72 358.72l-392.448 392.32A252.544 252.544 0 0 1 317.824 960z","p-id":"8790"})}),b.jsxs("div",{style:{marginTop:8},children:[`${u?"头像":"附件"}`,"上传"]})]});return b.jsxs(b.Fragment,{children:[b.jsx(G.Upload,{...u?{...n,accept:Ib.map(R=>"."+R).join(",")}:n,fileList:_,onPreview:M,onChange:I,beforeUpload:T,itemRender:F,...c,children:g&&_.length>=g?null:U}),C&&b.jsx(G.Image,{wrapperStyle:{display:"none"},preview:{visible:w,onVisibleChange:R=>S(R),afterOpenChange:R=>!R&&x("")},src:C})]})});var Vg=(e=>(e[e.Upload=0]="Upload",e[e.Image=1]="Image",e))(Vg||{});function Lb(e){const{value:t,onChange:r,componentType:n=1,context:o,field:i,...a}=e,{getTokenHeader:s}=hr(),u=n===1,l=u?1:3,c=N.useMemo(()=>{const d=i.allowFileType.concat(i.customFileType===""?[]:i.customFileType.split(",")),p={listType:u?"picture-circle":"picture-card",className:"ptable-form-files mt-2",multiple:!0,action:`/${o.appEnName}/v1/system/file/uploads`,name:"files",headers:s(),data:{storeDay:i.storeDay||0}};return d.length&&(p.accept=d.map(h=>"."+h).join()),En(l)&&(p.maxCount=l),u&&(p.maxCount=1),p},[i]),f={allowFileType:i.allowFileType,customFileType:i.customFileType,fileTagCode:i.fieldCode,fileTagName:i.labelName,fileLimitNum:i.fileLimitNum,required:i.required,fileMaxSize:i.fileMaxSize,storeDay:i.storeDay};return b.jsx(a_,{className:"ptbale-form-fileUpload",uploadProps:c,params:f,context:o,value:t,isImage:u,onChange:r,needDelete:!1,...a})}const s_=e=>e.map(t=>{var r;return((r=t.children)==null?void 0:r.length)>0?{label:t.dictLabel,value:t.dictValue,children:s_(t.children)}:{label:t.dictLabel,value:t.dictValue}});function Sd(){const{context:{appEnName:e},dictCache:t}=rn(),{showAlert:r}=Rr.useAlert(),[n,o]=N.useState(!1),i=u=>t.current.reqLockList[u],a=Ke.useRequest((u,l)=>{const c=`/${e}/v1/system/dict/${l?"cascade/":"data/type/"}${u}`;return fetch(c,{headers:{Authorization:JSON.parse(localStorage.getItem(`${e}_TOKEN`))}}).then(f=>f.json()).then(f=>{if(f.code===200){const d=l?s_(f.data):f.data.map(p=>({label:p.dictLabel,value:p.dictValue}));t.current.dictList[u]=d,t.current.reqLockList[u]=!0}else r({type:"warning",title:"请求字典异常",description:f.msg,timeout:2e3});o(!1)}).catch(f=>{console.error(f),o(!1)})},{manual:!0});return{getDictByDictId:(u,l=!1)=>{o(!0);const c=t.current.reqLockList[u];Io(c)&&!t.current.reqLockList[u]?(a.run(u,l),t.current.reqLockList[u]=!0):o(!1)},dictLoading:n,dictList:t.current.dictList,isCached:i}}const Rg=[te.Select,te.MultiSelect,te.CheckBoxGroup,te.CascadeSelect,te.CascadeMultiSelect,te.RadioGroup];function u_(){const{getDictByDictId:e,dictList:t,isCached:r}=Sd(),{context:n,pageJson:o}=N.useContext(Ta),{getTreeData:i,orgList:a}=hr();return{formFieldRender:(u,l,c={})=>{const{sqlFieldName:f,labelName:d,dictType:p,htmlType:h,openComponent:g,required:m,hidden:y,rules:v,precision:E,numMin:w,numMax:S,defaultValue:C,placeholder:x,maxLength:_,...P}=u,{hidden:q,disabled:H,mode:k,...M}=c,I=[{required:m},...v==null?void 0:v.map(U=>({validator:(R,Z)=>new RegExp(U.pattern.substring(1,U.pattern.length-1)).test(Z)||Z===""?Promise.resolve():Promise.reject(new Error(d+":"+U.errorMsg))}))],T={key:f,name:f,label:d,labelCol:{className:"!whitespace-nowrap !overflow-hidden !text-ellipsis !w-[100%] !px-1 !p-[3px] !text-left"},placeholder:x||`请输入${u.labelName}`,rules:I,...P},F={key:f,disabled:H,min:w,max:S,...M};if(C!==""&&(h===te.CheckBox||h===te.Switch?T.initialValue=C==="1":T.initialValue=C),h===te.Text&&(F.maxLength=_),Rg.includes(h)&&!r(p)){const U=h===te.CascadeSelect||h===te.CascadeMultiSelect;e(p,U)}switch(h){case te.MultilineText:return b.jsx(ct.ProFormTextArea,{...T,fieldProps:F});case te.Password:return b.jsx(ct.ProFormText.Password,{...T,fieldProps:F});case te.Integer:return b.jsx(ct.ProFormDigit,{...T,fieldProps:F});case te.Decimal:return b.jsx(ct.ProFormDigit,{...T,fieldProps:{...F,precision:E,formatter(U,R){return U}}});case te.Select:return b.jsx(ct.ProFormSelect,{fieldProps:F,showSearch:!0,debounceTime:300,...T,options:t[p]});case te.OrgSelect:return b.jsx(ct.ProFormSelect,{fieldProps:F,showSearch:!0,debounceTime:300,...T,options:a});case te.MultiSelect:return b.jsx(ct.ProFormSelect,{...T,fieldProps:{...F,mode:"multiple"},showSearch:!0,debounceTime:300,options:t[p]});case te.CascadeSelect:return b.jsx(ct.ProFormCascader,{fieldProps:{...F,changeOnSelect:!0,options:t[p]},...T});case te.CascadeMultiSelect:return b.jsx(ct.ProFormCascader,{fieldProps:{...F,changeOnSelect:!0,multiple:!0,options:t[p],autoClearSearchValue:!1,showCheckedStrategy:G.Cascader.SHOW_CHILD},...T});case te.RadioGroup:return b.jsx(ct.ProFormRadio.Group,{...T,fieldProps:M,options:t[p]});case te.CheckBox:return b.jsx(ct.ProFormCheckbox,{...T,fieldProps:F});case te.CheckBoxGroup:return b.jsx(ct.ProFormCheckbox.Group,{...T,fieldProps:F,options:t[p]});case te.Switch:return b.jsx(ct.ProFormSwitch,{...T,fieldProps:F});case te.Date:return b.jsx(ct.ProForm.Item,{...T,children:b.jsx(Zl,{...F,format:u.dateFormat.replace(/y/g,"Y").replace(/d/g,"D"),disabled:F.disabled})});case te.DateTime:return b.jsx(ct.ProForm.Item,{...T,children:b.jsx(Zl,{...F,format:u.dateFormat.replace(/y/g,"Y").replace(/d/g,"D"),disabled:F.disabled,showTime:!0})});case te.Time:return b.jsx(ct.ProForm.Item,{...T,children:b.jsx(Lg,{format:u.dateFormat.replace(/y/g,"Y").replace(/d/g,"D"),disabled:F.disabled})});case te.Rating:return b.jsx(ct.ProFormRate,{...T,fieldProps:{...F,allowHalf:!1}});case te.Image:return b.jsx(ct.ProForm.Item,{...T,children:b.jsx(Lb,{componentType:Vg.Image,context:n,field:u,...F})});case te.Upload:return b.jsx(ct.ProForm.Item,{...T,children:b.jsx(Lb,{componentType:Vg.Upload,context:n,field:u,...F})});case te.PopupSelect:return b.jsx(ct.ProForm.Item,{...T,children:b.jsx(zg,{params:g,multiple:!1,getForm:l,field:u,...F,isSub:!1})});case te.PopupMultiSelect:return b.jsx(ct.ProForm.Item,{...T,children:b.jsx(zg,{params:g,multiple:!0,getForm:l,field:u,...F,isSub:!1})});case te.DeptSelect:return b.jsx(ct.ProForm.Item,{...T,children:b.jsx(Ed,{multiple:!1,...c,showDeptFullName:u.showDeptFullName})});case te.DeptMultiSelect:return b.jsx(ct.ProForm.Item,{...T,children:b.jsx(Ed,{multiple:!0,...c,showDeptFullName:u.showDeptFullName})});case te.UserSelect:return b.jsx(ct.ProForm.Item,{...T,children:b.jsx(Mg,{multiple:!1,...c})});case te.UserMultiSelect:return b.jsx(ct.ProForm.Item,{...T,children:b.jsx(Mg,{multiple:!0,...c})});case te.PureText:return b.jsx(ct.ProFormText,{...T,disabled:!0});case te.IgnorePartition:return b.jsx(G.Divider,{style:{borderColor:"var(--tw-global-primary)"},orientation:"left",children:d});case te.TreeSelect:return b.jsx(ct.ProFormTreeSelect,{...T,fieldProps:{...F,filterTreeNode:"label",allowClear:!0,className:"ptable_treeselect"},request:async()=>(await i.runAsync({fieldCode:u.fieldCode,pageCode:o.pageCode})).data,initialValue:null});case te.SerialNumber:return b.jsx(ct.ProForm.Item,{...T,children:b.jsx(i_,{fieldCode:u.fieldCode,pageId:o.id,mode:k,...c})});default:return b.jsx(ct.ProFormText,{...T,fieldProps:F})}},getTreeDataRefresh:i.refresh}}function eG(e){const[t,r]=N.useState(0),[n,o]=N.useState([]);N.useEffect(()=>{o(e.imageList)},[e.imageList]);const i=()=>{const a=n[t],s=a.slice(a.lastIndexOf(".")),u=Date.now()+s;fetch(a).then(l=>l.blob()).then(l=>{const c=URL.createObjectURL(new Blob([l])),f=document.createElement("a");f.href=c,f.download=u,document.body.appendChild(f),f.click(),URL.revokeObjectURL(c),f.remove()})};return b.jsx(G.Image.PreviewGroup,{preview:{toolbarRender:(a,{transform:{scale:s},actions:{onActive:u,onFlipY:l,onFlipX:c,onRotateLeft:f,onRotateRight:d,onZoomOut:p,onZoomIn:h,onReset:g}})=>b.jsxs(G.Space,{size:12,className:"toolbar-wrapper",children:[b.jsx(Fr.LeftOutlined,{onClick:()=>u==null?void 0:u(-1)}),b.jsx(Fr.RightOutlined,{onClick:()=>u==null?void 0:u(1)}),b.jsx(Fr.DownloadOutlined,{onClick:i}),b.jsx(Fr.SwapOutlined,{rotate:90,onClick:l}),b.jsx(Fr.SwapOutlined,{onClick:c}),b.jsx(Fr.RotateLeftOutlined,{onClick:f}),b.jsx(Fr.RotateRightOutlined,{onClick:d}),b.jsx(Fr.ZoomOutOutlined,{disabled:s===1,onClick:p}),b.jsx(Fr.ZoomInOutlined,{disabled:s===50,onClick:h}),b.jsx(Fr.UndoOutlined,{onClick:g})]}),onChange:a=>{r(a)}},children:n.map(a=>b.jsx(G.Image,{src:a,width:30},a))})}function tG(e){const{selectedKeys:t,setSelectedKeys:r,filterType:n,dictId:o="_NULL_DICTTYPE_"}=e,{getDictByDictId:i,isCached:a,dictList:s,dictLoading:u}=Sd(),l=h=>Io(h)?h:n===Mt.IntegerFilters?Number(h):h,c=n===Mt.dictFilters&&En(s[o])&&s[o].length===(t[2]||[]).length,f=n===Mt.dictFilters&&(t[2]||[]).length>0&&(t[2]||[]).length<s[o].length,d=h=>{r([t[0],t[1],h.target.checked?s[o].map(g=>g.value):[]])},p=h=>{r([t[0],t[1],h])};return N.useEffect(()=>{n===Mt.dictFilters&&!a(o)&&i(o)},[n]),Ke.useUpdateEffect(()=>{(n===Mt.dateFilters||n===Mt.timeFilters)&&r([t[0],t[1],void 0])},[t[1]]),n!==Mt.dictFilters&&(Io(t[1])||t[1]==="IS_NULL"||t[1]==="IS_NOT_NULL")?!1:n===Mt.dictFilters?b.jsxs(G.Space.Compact,{className:"w-full flex flex-col filter-dict mb-4",children:[b.jsx(G.Checkbox,{indeterminate:f,onChange:d,checked:c,children:"全选"}),b.jsx("div",{className:"h-[1px] bg-[#d9d9d9] w-full my-[5px]"}),u?b.jsx(G.Spin,{size:"small"}):b.jsx(G.Checkbox.Group,{className:"flex flex-col",options:s[o]||[],value:t[2],onChange:p})]}):n===Mt.dateFilters?t[1].indexOf("BETWEEN")>-1?b.jsx(G.Space.Compact,{className:"",children:b.jsx(n_,{style:{width:"100%",marginBottom:12},value:t[2],onChange:h=>{h[0]===""&&h[1]===""?r([t[0],t[1],void 0]):r([t[0],t[1],h])}})}):b.jsx(G.Space.Compact,{className:"w-full",children:b.jsx(G.DatePicker,{style:{width:"100%",marginBottom:12},value:t[2]===void 0?"":hn(new Date(t[2]||"")),onChange:(h,g)=>{g&&r([t[0],t[1],g])}})}):n===Mt.timeFilters?t[1].indexOf("BETWEEN")>-1?b.jsx(G.Space.Compact,{className:"",children:b.jsx(o_,{style:{width:"100%",marginBottom:12},value:t[2],onChange:h=>{h[0]===""&&h[1]===""?r([t[0],t[1],void 0]):r([t[0],t[1],h])}})}):b.jsx(G.Space.Compact,{className:"w-full",children:b.jsx(G.TimePicker,{style:{width:"100%",marginBottom:12},value:t[2]===void 0?void 0:hn(t[2],"HH:mm:ss"),onChange:(h,g)=>{g&&r([t[0],t[1],g])}})}):t[1].indexOf("BETWEEN")>-1?b.jsxs(G.Space.Compact,{children:[b.jsx(G.Input,{className:"rounded-none !mb-[12px] w-full text-[12px]",value:(t[2]||[])[0],onChange:h=>r([t[0],t[1],[l(h.target.value),l((t[2]||[])[1])]]),style:{marginBottom:8,display:"block"}},"between-left"),b.jsx("span",{className:"mx-3",children:"-"}),b.jsx(G.Input,{className:"rounded-none !mb-[12px] w-full text-[12px]",value:(t[2]||[])[1],onChange:h=>r([t[0],t[1],[l((t[2]||[])[0]),l(h.target.value)]]),style:{marginBottom:8,display:"block"}},"between-right")]}):b.jsx(G.Input,{className:"rounded-none !mb-[12px] w-full text-[12px]",value:t[2],onChange:h=>r([t[0],t[1],l(h.target.value)]),style:{marginBottom:8,display:"block"}},"single")}const rG=N.forwardRef(function(t,r){const{filters:n,setSelectedKeys:o,selectedKeys:i,clearFilters:a,confirm:s,filterType:u,tableName:l,dictId:c,setFilteredInfo:f,columnName:d,setSearchHeaderByColumn:p}=t,{showAlert:h}=Rr.useAlert();N.useEffect(()=>{if(u===Mt.dictFilters){const m=[te.Select].includes(u)?"IN":"CONTAIN";o([l,m,i[2]])}else o([l,i[1],i[2]])},[i[0]]);const g=N.useRef(null);return b.jsxs("div",{className:"pt-4 w-[200px]",ref:g,children:[u!==Mt.dictFilters&&b.jsx(G.Flex,{vertical:!0,children:n.map(m=>{const y=i[1]===m.value;return b.jsxs("div",{className:`hover:bg-[var(--tw-global-primary-50)] transition-[background] h-[34px] px-4 leading-[34px] cursor-pointer text-[14px] flex justify-between items-center item-center${y&&" bg-primary-primary text-white hover:bg-[var(--tw-global-primary)]"}`,onClick:()=>o([i[0],m.value,i[2]]),children:[b.jsx("span",{className:`${y?"text-white":"text-[#222222]"}`,children:m.text}),y&&b.jsx("svg",{className:"icon",viewBox:"0 0 1462 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8620",width:"32",height:"32",children:b.jsx("path",{d:"M1211.65168072 141.21142578c15.15642473 0 27.76323626 5.00034897 37.89106111 15.0081093C1259.59287778 166.37561011 1264.60735221 179.03186035 1264.60735221 194.181222c0 14.85979388-5.06391242 27.36772796-15.27648926 37.5238037l-635.69405708 635.63755601C603.47366774 877.63284745 590.90216949 882.78857422 575.99999999 882.78857422c-14.88804405 0-27.47366775-5.15572678-37.66505678-15.45305559L220.48791502 549.67211914C210.29652601 539.36772796 205.21142577 526.85979388 205.21142577 512c0-15.15642473 5.00034897-27.81267425 15.11404838-37.96168763C230.38973556 464.03055277 243.01067253 459.03020379 258.15297181 459.03020379c14.92335732 0 27.4877932 5.00034897 37.68624386 15.30473943L575.99999999 754.92654838l597.97956159-598.41744552C1184.1780137 146.21883713 1196.75657431 141.21142578 1211.65168072 141.21142578"})})]},m.value)})}),b.jsxs("div",{className:"p-3 pt-2",children:[b.jsx(tG,{selectedKeys:i,setSelectedKeys:o,filterType:u,dictId:c}),b.jsxs(G.Flex,{justify:"space-between",align:"center",children:[b.jsx(G.Button,{type:"default",size:"small",className:"rounded-none text-[12px]",onClick:()=>{a==null||a(),s({closeDropdown:!0}),f({})},children:"重置所有"}),b.jsx(G.Button,{type:"default",size:"small",className:"rounded-none text-[12px]",onClick:()=>{a==null||a(),s({closeDropdown:!0}),f(m=>(delete m[d],m))},children:"重置"}),b.jsx(G.Button,{type:"primary",size:"small",className:"rounded-none text-[12px]",onClick:()=>{if(Io(i[1])){h({type:"warning",title:"请选择条件",timeout:2e3});return}if(Io(i[2])&&i[1].indexOf("NULL")===-1){h({type:"warning",title:"请输入值",timeout:2e3});return}if(u===Mt.dictFilters&&i[2].length===0){h({type:"warning",title:"请至少选择一项",timeout:2e3});return}s({closeDropdown:!0}),f(m=>({...m,[d]:i}))},children:"确定"})]})]})]})});function nG(){return{getColumnSearchProps:({filterType:t,column:r,setFilteredInfo:n,setSearchHeaderByColumn:o})=>{const{fieldCode:i,dictType:a}=r;return{filterDropdown:s=>{const{selectedKeys:u,setSelectedKeys:l,confirm:c,clearFilters:f}=s,d=N.useRef(!0);return N.useEffect(()=>{o(i,"search",(p,h)=>{c(),l([u[0],p,h]),n(g=>({...g,[i]:[u[0],p,h]})),d.current===!0&&(c(),d.current=!1)}),o(i,"clear",(p,h)=>{n(g=>{const m={...g};return delete m[i],m})})},[]),b.jsx(rG,{...s,columnName:i,tableName:"",filterType:t,dictId:a,setFilteredInfo:n,setSearchHeaderByColumn:o})},filters:Gi[t]}}}}function l_(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=l_(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function oG(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=l_(e))&&(n&&(n+=" "),n+=t);return n}const c_={[wt.frontEdit]:"#6366F1",[wt.delete]:"#f53535",[wt.frontLink]:"#6366F1"};function iG(e){const{isRowButton:t,isTableHeaderButton:r,children:n,code:o,enButtonName:i,buttonName:a,frontComponent:s,openLink:u,beforeMethods:l,executeMethod:c,afterMethods:f,orderNum:d,getForm:p,onClose:h,getDatas:g,validates:m,getAction:y,getSelectedRows:v,getSelectedRowKeys:E,getEditRows:w,isRowEdit:S,getRow:C,refresh:x,getEditRow:_,setEditRow:P,cancelEditable:q,startEditable:H,removeRow:k,getInlineForm:M,...I}=e,{context:{appEnName:T}}=N.useContext(Ta),F=oG(t?`mr-2 text-[${c_[o]}] cursor-pointer`:"rounded-none !px-[10px]"),U=!!s,[R,Z]=N.useState(!1);return N.useEffect(()=>{U&&Z(!0)},[]),U?b.jsx(aG,{appEnName:T,isRowButton:t,isTableHeaderButton:r,btnProps:Object.assign({className:t?`mr-2 cursor-pointer py-[3px] leading-[1.2rem] ${e.disabled?"opacity-50 cursor-not-allowed":""}`:"",buttonName:a,frontComponent:e.frontComponent,loading:!!e.loading,onClick:e.onClick},t?{isRowEdit:S,refresh:x,getAction:y,getRow:C,getEditRow:_,setEditRow:P,cancelEditable:q,startEditable:H,removeRow:k,getForm:p,getInlineForm:M}:r?{getAction:y,getSelectedRows:v,getSelectedRowKeys:E,getEditRows:w,getEditRow:_,setEditRow:P,getForm:p}:{getAction:y,getForm:p,onClose:h,getDatas:g,validates:m}),frontComponent:s,loadReady:R}):t?b.jsx(G.Tag,{...I,color:c_[o],icon:e.icon,bordered:!1,className:`mr-2 cursor-pointer py-[3px] leading-[1.2rem] ${e.disabled?"opacity-50 cursor-not-allowed":""}`,children:n}):b.jsx(G.Button,{className:F,...I,children:n})}const kt=N.memo(iG,(e,t)=>e.code===t.code&&e.frontComponent===t.frontComponent),aG=e=>{const{frontComponent:t,btnProps:r,appEnName:n,loadReady:o,isRowButton:i,isTableHeaderButton:a}=e,s=window[n].plugins.buttons.get(t);return o?b.jsx(s,{...r}):b.jsx(G.Spin,{size:"small"})},$g=N.forwardRef(function(t,r){const{layout:n="vertical",formFields:o,pageJson:i,mode:a=0,...s}=t,[u]=G.Form.useForm(),{formFieldRender:l,getTreeDataRefresh:c}=u_(),{getrolePermis:f}=hr(),d=N.useMemo(()=>f(),[]),p=i.form.disabled;N.useImperativeHandle(r,()=>({getForm:()=>u,getTreeDataRefresh:c}),[]);const h=N.useMemo(()=>{const v=[];return o==null||o.forEach((E,w)=>{E.htmlType===te.IgnorePartition&&v.push(w)}),v},[o]),g=Ke.useMemoizedFn(v=>v.map(E=>{const{blackRoles:w,disabledRoles:S,hidden:C,disabled:x}=E,[_,P]=Fb(d,w,S);if(_||C)return null;const q=Number(E.fieldRatio)===24?"w-full":`w-1/${24/Number(E.fieldRatio)}`;return b.jsx("div",{className:`px-4 ${E.htmlType===te.IgnorePartition?"w-full":q} base-item`,children:l(E,()=>u,{...s,disabled:x||P||p,mode:a})},E.sqlFieldName)})),m=Ke.useMemoizedFn(()=>h.length===0?[]:h.map((v,E)=>{const w=o[v],S=g(o.slice(v+1,E+1===h.length?o.length:h[E+1]));return{key:w.fieldCode,label:w.labelName,children:S,className:"form_divider_area"}})),y=h.length===0?g(o):b.jsxs(b.Fragment,{children:[h[0]>0&&b.jsx("div",{className:"w-full flex flex-wrap p-[16px] border border-[#b9afaf]",children:g(o.slice(0,h[0]))}),b.jsx(G.Collapse,{items:m(),className:"w-full ptable-collapse",bordered:!0,defaultActiveKey:o.filter(v=>v.htmlType===te.IgnorePartition).map(v=>v.fieldCode)})]});return b.jsx(ct.ProForm,{form:u,labelWrap:!0,layout:n,submitter:!1,...s,children:b.jsx("div",{className:`bg-indigo-50/90 m-[20px] sg_form_area flex flex-wrap${h.length===0?" p-6":""}`,children:y})})});xd.Form=$g,xd.SubTable=$g,xd.File=$g;function xd(e){const t={Modal:G.Modal,Drawer:G.Drawer},{tableType:r,open:n,onClose:o,pageJson:i,editRowKey:a,refresh:s,clearEditRowKey:u,pageCode:l,editorOpenType:c}=e,{context:f}=N.useContext(Ta),{pageJsonReq:d}=jb(f),[p,h]=N.useState("Drawer"),{showAlert:g}=Rr.useAlert(),{saveReq:m}=hr(),{renderButton:y}=Sb(),[v,E]=N.useState(!0),[w,S]=N.useState(i),[C,x]=N.useState(a);N.useEffect(()=>(n&&(r===vd.popUp?h("Drawer"):h("Modal"),E(!1),a&&(x(a),c&&h(c)),!w&&!d.data&&(E(!0),S(void 0),d.run("page",l)),!w&&d.data&&(S(d.data.data),E(!1))),()=>{E(!0),S(i),x(""),h(r===vd.popUp?"Drawer":"Modal")}),[l,d.data,n,v,a,c,r]);const _=t[p],P=N.useRef(),q=!!a,H=q?"修改":"新增",k=O=>{var A;(A=P.current)==null||A.validates().then(async V=>{var j;if(!V)return;const B=(j=P.current)==null?void 0:j.getDatas(),L=await m.runAsync({pageCode:w==null?void 0:w.pageCode,buttonCode:O,...B});L.code===200?(g({type:"success",title:`${H}成功`,description:L.msg,timeout:3e3}),o==null||o(),s==null||s(),q&&(u==null||u())):g({type:"warning",title:"保存出错",description:L.msg,timeout:3e3})})},M=()=>{var O,A;return(A=(O=P.current)==null?void 0:O.getRefs().getFormRef().current)==null?void 0:A.getForm().resetFields()},I=O=>{var A;return(A=P.current)==null?void 0:A.setButtonData(O)},T=()=>{var O;return(O=P.current)==null?void 0:O.validates()},F=()=>{var O;return(O=P.current)==null?void 0:O.getDatas()},U=O=>{var A;return(A=P.current)==null?void 0:A.setOpenStartFlowDialog(O)},R=()=>{var O,A;return(A=(O=P.current)==null?void 0:O.getRefs().getFormRef().current)==null?void 0:A.getForm()},Z=b.jsx("div",{className:`flex gap-[8px] ${p==="Drawer"?"pr-0":"pr-4"}`,children:w==null?void 0:w.form.buttons.map(O=>b.jsx("div",{className:"lowcode-form-header-button-wrapper",children:y(O,{setButtonData:I,validates:T,getDatas:F,setOpenStartFlowDialog:U,saveForm:k,resetForm:M,getForm:R,...e})},O.buttonType))}),re=N.useMemo(()=>p==="Drawer"?{title:b.jsxs("div",{className:"flex justify-between items-center",children:[b.jsxs("span",{children:[H,w==null?void 0:w.form.formName]}),Z]}),placement:"right",onClose:o,open:n,className:"ptable-drawer",width:"90vw",forceRender:!0}:p==="Modal"?{title:b.jsxs("div",{className:"flex justify-between items-center",children:[b.jsxs("span",{children:[H,w==null?void 0:w.form.formName]}),Z]}),onCancel:()=>{o(),M()},open:n,footer:null,maskClosable:!0,className:"ptable-modal",width:"auto",centered:!0,destroyOnClose:!0,forceRender:!0}:{},[p,n,w]);return w&&b.jsx(_,{...re,children:!v&&b.jsx(WD,{ref:P,pageJson:w,editRowKey:C,isOpenComponent:!0,open:n,onClose:o,refresh:s,clearEditRowKey:u})})}function sG(e){const{open:t,setOpen:r}=e,{context:{appEnName:n},pageJson:o}=rn(),{getTokenHeader:i,importReq:a}=hr(),{showAlert:s}=Rr.useAlert(),[u,l]=N.useState([]),{context:c}=rn(),{downloadServerFileReq:f}=Rr.useFile(c),d=p=>{var g,m;const{status:h}=p.file;if(l([p.file]),h==="done"){const y=p.file.response;typeof y=="object"?y.success?(s({type:"success",title:`${p.file.name} 文件上传成功 ${(g=y.data)!=null&&g.failureUsernames?JSON.stringify((m=y.data)==null?void 0:m.failureUsernames):""}`,timeout:3e3}),r(!1),l([])):(s({type:"warning",title:`${p.file.name} 文件上传失败: ${y.msg}`,timeout:3e3}),l([])):(s({type:"warning",title:"数据填入有误,请参照下载的附件中详细错误信息进行修改",timeout:3e3}),l([]),r(!1),a.runAsync({file:p.file.originFileObj,pageCode:o.pageCode}).then(v=>{const E=document.createElement("a");E.href=window.URL.createObjectURL(new Blob([v],{type:"application/vnd.ms-excel"})),E.click()}))}else h==="error"&&s({type:"warning",title:`${p.file.name} 文件上传失败.`,timeout:3e3})};return b.jsxs(G.Modal,{centered:!0,title:b.jsx("span",{className:"text-[16px] leading-[20px] font-[400] text-[#333]",children:"模板导入"}),maskClosable:!1,open:t,width:500,onCancel:()=>r(!1),onOk:()=>r(!1),footer:null,transitionName:"import-modal-transition",maskTransitionName:"import-modal-mask-transition",className:"p-modal-wrapper",forceRender:!0,children:[b.jsxs(G.Upload.Dragger,{accept:".xls,.xlsx",name:"file",multiple:!1,action:`/${n}/lowcode/v1/resolve/import`,onChange:d,fileList:u,headers:{...i(),responseType:"blob"},maxCount:1,onRemove:()=>l([]),data:{pageCode:o.pageCode},children:[b.jsx("p",{className:"ant-upload-drag-icon mt-2",children:b.jsxs("svg",{className:"icon inline-block text-center text-[50px] text-[#777]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7754",width:"32",height:"32",children:[b.jsx("path",{d:"M510.723192 787.364921a20.003325 20.003325 0 0 1-14.896093-6.38404l-127.680798-127.680798a20.85453 20.85453 0 0 1 29.792186-29.792186l91.504572 91.078969V510.723192a21.280133 21.280133 0 0 1 42.560266 0v255.361596a21.280133 21.280133 0 0 1-13.193682 19.577722 18.300914 18.300914 0 0 1-8.086451 1.702411z"}),b.jsx("path",{d:"M510.723192 787.364921a20.003325 20.003325 0 0 1-14.896093-6.38404 20.428928 20.428928 0 0 1 0-29.792186l127.680798-127.680798a20.85453 20.85453 0 0 1 29.792186 29.792186l-127.680798 127.680798a20.003325 20.003325 0 0 1-14.896093 6.38404zM297.921862 787.364921H234.081463a170.241064 170.241064 0 0 1-170.241064-170.241064 170.241064 170.241064 0 0 1 170.241064-170.241064H297.921862a21.280133 21.280133 0 0 1 0 42.560266H234.081463a127.680798 127.680798 0 0 0-127.680798 127.680798 127.680798 127.680798 0 0 0 127.680798 127.680798H297.921862a21.280133 21.280133 0 0 1 0 42.560266zM787.364921 787.364921H723.524522a21.280133 21.280133 0 0 1 0-42.560266h63.840399a127.680798 127.680798 0 0 0 127.680798-127.680798 127.680798 127.680798 0 0 0-127.680798-127.680798H723.524522a21.280133 21.280133 0 0 1 0-42.560266h63.840399a170.241064 170.241064 0 0 1 170.241064 170.241064 170.241064 170.241064 0 0 1-170.241064 170.241064z"}),b.jsx("path",{d:"M723.524522 489.443059a21.280133 21.280133 0 0 1-21.280133-21.280133 191.521197 191.521197 0 0 0-383.042394 0 21.280133 21.280133 0 0 1-42.560266 0 234.081463 234.081463 0 0 1 468.162926 0 21.280133 21.280133 0 0 1-21.280133 21.280133z"})]})}),b.jsx("p",{className:"ant-upload-text",children:"将文件拖到此处, 或点击上传"}),b.jsx("p",{className:"ant-upload-hint",children:"仅允许导入xls、xlsx格式文件"})]}),b.jsx("div",{className:"flex-center mt-6 mb-2",children:b.jsx("span",{className:"text-sm ml-2 text-primary-primary cursor-pointer",onClick:()=>{f(`/${n}/lowcode/v1/resolve/downloadImportTemplate?pageCode=${o.pageCode}`,{headers:i(),method:"post"})},children:"下载模版"})})]})}function uG(e){const{onParamsChange:t,pageModel:r,pageSizeOptions:n,pageSize:o,selectCount:i,...a}=e,s=(u,l)=>{t(c=>({...c,current:u,pageSize:l}))};return b.jsx(G.Pagination,{className:"p-pagination",style:{paddingLeft:24,paddingRight:24},align:"end",size:"small",showTotal:(u,l)=>`已选 ${i} 条/总共 ${u} 条`,onChange:s,showSizeChanger:!0,showQuickJumper:!0,pageSize:o||10,pageSizeOptions:n||[10,50,100,500,1e3,2e3],...a})}function lG(e){const{column:t,selectedKeys:r,setSelectedKeys:n,search:o,clear:i}=e,a=Mt.dateFilters,s=Gi[Mt.dateFilters][0].value,[u,l]=N.useState(""),[c,f]=N.useState([]),[d,p]=N.useState(r[1]||s),h=N.useRef(Ki.debounce((g,m)=>{n([r[0],g,m])},500)).current;return Ke.useUpdateEffect(()=>{var g;if(d==="BETWEEN")((g=r[2])==null?void 0:g.length)>0&&typeof r[2]=="object"?f(r[2]):f([]),l("");else{if(c.length===2){l(""),f([]),i();return}u&&n([r[0],d,u])}},[d]),Ke.useUpdateEffect(()=>{var g;r.length===0?u&&l(""):((g=r[2])==null?void 0:g.length)>0&&typeof r[2]=="object"?f(r[2]):l(r[2]),p(r[1]||s)},[r]),b.jsx("div",{className:"flex-center flex-row flex-[4]",children:b.jsxs(G.Space.Compact,{className:"border-[#d9d9d9] border rounded-[8px] overflow-hidden w-full",children:[b.jsx(G.Select,{className:"border-0 border-r-[2px] border-r-[#d9d9d9] rounded-none",size:"middle",popupClassName:"!w-[100px]",suffixIcon:b.jsx("svg",{className:"icon inline-block text-[14px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5916",width:"32",height:"32",children:b.jsx("path",{d:"M717.568 334.528a48 48 0 1 1 68.864 66.944L533.504 661.76a48 48 0 0 1-68.48 0.384L205.952 401.92a48 48 0 1 1 68.096-67.712l224.64 225.792 218.88-225.408z","p-id":"5917"})}),variant:"borderless",value:d,onChange:p,options:Gi[a].map(g=>({label:g.text,value:g.value}))}),(d==null?void 0:d.indexOf("BETWEEN"))>-1?b.jsx(n_,{style:{width:"100%",border:0},value:c,onChange:g=>{g[0]===""&&g[1]===""?(f([]),i()):(f(g),h(d,g))}}):b.jsx(Zl,{style:{width:"100%",border:0},value:u,onChange:g=>{l(g),g?h(d,g):i()}})]})})}function cG(e){const{column:t,selectedKeys:r,setSelectedKeys:n,search:o,clear:i}=e,{dictType:a,labelName:s,htmlType:u}=t,{dictList:l,dictLoading:c}=Sd(),f=En(l[a])&&l[a].length===(r[2]||[]).length,d=[te.Select].includes(u)?"IN":"CONTAIN",p=(r[2]||[]).length>0&&(r[2]||[]).length<l[a].length,h=m=>{n([r[0],r[1],m.target.checked?l[a].map(y=>y.value):[]]),m.target.checked?o(d,l[a].map(y=>y.value)):i()},g=m=>{n([r[0],d,m]),o(d,m)};return c?b.jsx(G.Spin,{size:"small"}):b.jsx(G.Space,{direction:"vertical",className:"border-0 flex-[4] rounded-none",style:{width:"100%"},children:b.jsx(G.Select,{size:"middle",value:(r||[])[2],options:l[a],allowClear:!0,suffixIcon:b.jsx("svg",{className:"icon inline-block text-[14px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5916",width:"32",height:"32",children:b.jsx("path",{d:"M717.568 334.528a48 48 0 1 1 68.864 66.944L533.504 661.76a48 48 0 0 1-68.48 0.384L205.952 401.92a48 48 0 1 1 68.096-67.712l224.64 225.792 218.88-225.408z","p-id":"5917"})}),placeholder:`请选择${s}`,mode:"multiple",style:{width:"100%"},onChange:m=>{n([r[0],d,m]),m.length>0?o(d,m):i()},maxTagCount:"responsive",maxTagPlaceholder:m=>b.jsx(G.Tooltip,{overlayStyle:{pointerEvents:"none"},title:m.map(({label:y})=>y).join(", "),children:b.jsx("span",{children:"..."})}),dropdownRender:m=>b.jsxs("div",{className:"filter-dict px-4 py-2 w-full ss-22",children:[b.jsx(G.Checkbox,{indeterminate:p,onChange:h,checked:f,children:"全选"}),b.jsx("div",{className:"h-[1px] bg-[#d9d9d9] w-full my-[5px]"}),c?b.jsx(G.Spin,{size:"small"}):b.jsx(G.Checkbox.Group,{className:"flex flex-col w-full",options:l[a]||[],value:r[2],onChange:g})]})})})}function fG(e){const{column:t,selectedKeys:r,setSelectedKeys:n,search:o,clear:i}=e,a=Mt.IntegerFilters,s=Gi[Mt.IntegerFilters][0].value,[u,l]=N.useState(void 0),[c,f]=N.useState([]),[d,p]=N.useState(r[1]||s),h=N.useRef(Ki.debounce((m,y)=>{n([r[0],m,y])},500)).current,g=m=>{if(f(m),m[0]!==void 0&&m[1]!==void 0){h(d,m);return}m[0]===void 0&&m[1]===void 0&&(f([]),i())};return Ke.useUpdateEffect(()=>{if(d==="BETWEEN")r[2]&&typeof r[2]=="object"?f(r[2]):f([]),l(void 0);else{if(c.length===2){l(void 0),f([]),i();return}u&&n([r[0],d,u])}},[d]),Ke.useUpdateEffect(()=>{r[2]&&typeof r[2]=="object"?f(r[2]):l(r[2]),p(r[1]||s)},[r]),b.jsx("div",{className:"flex-center flex-row flex-[4]",children:b.jsxs(G.Space.Compact,{className:"border-[#d9d9d9] border rounded-[8px] overflow-hidden w-full",children:[b.jsx(G.Select,{className:"border-0 border-r-[2px] border-r-[#d9d9d9] rounded-none",size:"middle",popupClassName:"!w-[100px]",suffixIcon:b.jsx("svg",{className:"icon inline-block text-[14px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5916",width:"32",height:"32",children:b.jsx("path",{d:"M717.568 334.528a48 48 0 1 1 68.864 66.944L533.504 661.76a48 48 0 0 1-68.48 0.384L205.952 401.92a48 48 0 1 1 68.096-67.712l224.64 225.792 218.88-225.408z","p-id":"5917"})}),variant:"borderless",value:d,onChange:p,options:Gi[a].map(m=>({label:m.text,value:m.value}))}),d.indexOf("BETWEEN")>-1?b.jsxs(G.Space.Compact,{children:[b.jsx(G.Input,{allowClear:!0,className:"rounded-none w-full text-[12px] border-0",value:c[0],onChange:m=>{g([m.target.value?Number(m.target.value):void 0,c[1]])}},"between-left"),b.jsx("span",{className:"px-3 flex-center bg-[white]",style:{borderLeft:"2px solid #e5e7eb",borderRight:"1px solid #e5e7eb"},children:b.jsx("svg",{className:"icon inline-block text-[16px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"19847",width:"32",height:"32",children:b.jsx("path",{d:"M841.898667 512.085333l-18.346667-17.066666a20.48 20.48 0 0 0-29.866667 0l-4.266666 4.266666a180.053333 180.053333 0 0 1-253.44 0 247.04 247.04 0 0 0-349.866667 0l-8.96 8.96a20.48 20.48 0 0 0 0 29.866667l17.92 16.64a21.76 21.76 0 0 0 30.293333 0l8.96-8.96a179.2 179.2 0 0 1 253.44 0 246.613333 246.613333 0 0 0 174.933334 72.106667 246.186667 246.186667 0 0 0 174.933333-72.106667l4.266667-4.266667a21.76 21.76 0 0 0 0-29.44z","p-id":"19848",fill:"#aaa"})})}),b.jsx(G.Input,{allowClear:!0,className:"rounded-none w-full text-[12px] border-0",value:c[1],onChange:m=>{g([c[0],m.target.value?Number(m.target.value):void 0])}},"between-right")]}):b.jsx(G.Input,{className:"flex-[2] bg-white rounded-none",variant:"borderless",allowClear:!0,value:u,onChange:m=>{const y=m.target.value?Number(m.target.value):void 0;l(y),y?h(d,y):i()}})]})})}function dG(e){const{column:t,selectedKeys:r,setSelectedKeys:n,search:o,clear:i}=e,a=Mt.TextFilters,s=Gi[Mt.TextFilters][0].value,[u,l]=N.useState(""),[c,f]=N.useState(r[1]||s),d=c==="IS_NULL"||c==="IS_NOT_NULL",p=N.useRef(Ki.debounce((h,g)=>{n([r[0],h,g])},500)).current;return Ke.useUpdateEffect(()=>{c==="IS_NULL"||c==="IS_NOT_NULL"?(l(""),n([r[0],c,void 0])):u&&n([r[0],c,u])},[c]),Ke.useUpdateEffect(()=>{l(r[2]),f(r[1]||s)},[r]),b.jsx("div",{className:"flex-center flex-row flex-[4]",children:b.jsxs(G.Space.Compact,{className:"border-[#d9d9d9] border rounded-[8px] overflow-hidden w-full",children:[b.jsx(G.Select,{className:"border-0 border-r-[2px] border-r-[#d9d9d9] rounded-none",size:"middle",popupClassName:"!w-[100px]",variant:"borderless",suffixIcon:b.jsx("svg",{className:"icon inline-block text-[14px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5916",width:"32",height:"32",children:b.jsx("path",{d:"M717.568 334.528a48 48 0 1 1 68.864 66.944L533.504 661.76a48 48 0 0 1-68.48 0.384L205.952 401.92a48 48 0 1 1 68.096-67.712l224.64 225.792 218.88-225.408z","p-id":"5917"})}),value:c,onChange:f,options:Gi[a].map(h=>({label:h.text,value:h.value}))}),b.jsx(G.Input,{className:"bg-white rounded-none flex-1",variant:"borderless",allowClear:!0,style:{background:d?"rgba(0,0,0,0.25)":"white"},value:u,disabled:d,onChange:h=>{const g=h.target.value;l(g),g?p(c,g):i()}})]})})}function pG(e){const{column:t,selectedKeys:r,setSelectedKeys:n,search:o,clear:i}=e,a=Mt.timeFilters,s=Gi[Mt.timeFilters][0].value,[u,l]=N.useState(""),[c,f]=N.useState([]),[d,p]=N.useState(r[1]||s),h=N.useRef(Ki.debounce((g,m)=>{n([r[0],g,m])},500)).current;return Ke.useUpdateEffect(()=>{var g;if(d==="BETWEEN")((g=r[2])==null?void 0:g.length)>0&&typeof r[2]=="object"?f(r[2]):f([]),l("");else{if(c.length===2){l(""),f([]),i();return}u&&n([r[0],d,u])}},[d]),Ke.useUpdateEffect(()=>{var g;r.length===0?u&&l(""):((g=r[2])==null?void 0:g.length)>0&&typeof r[2]=="object"?f(r[2]):l(r[2]),p(r[1]||s)},[r]),b.jsx("div",{className:"flex-center flex-row flex-[4]",children:b.jsxs(G.Space.Compact,{className:"border-[#d9d9d9] border rounded-[8px] overflow-hidden w-full",children:[b.jsx(G.Select,{className:"border-0 border-r-[2px] border-r-[#d9d9d9] rounded-none",size:"middle",popupClassName:"!w-[100px]",suffixIcon:b.jsx("svg",{className:"icon inline-block text-[14px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5916",width:"32",height:"32",children:b.jsx("path",{d:"M717.568 334.528a48 48 0 1 1 68.864 66.944L533.504 661.76a48 48 0 0 1-68.48 0.384L205.952 401.92a48 48 0 1 1 68.096-67.712l224.64 225.792 218.88-225.408z","p-id":"5917"})}),variant:"borderless",value:d,onChange:p,options:Gi[a].map(g=>({label:g.text,value:g.value}))}),(d==null?void 0:d.indexOf("BETWEEN"))>-1?b.jsx(o_,{style:{width:"100%",border:0},value:c,onChange:g=>{g[0]===""&&g[1]===""?(f([]),i()):(f(g),h(d,g))}}):b.jsx(Lg,{style:{width:"100%",border:0},value:u,onChange:g=>{l(g),g?h(d,g):i()}})]})})}function hG(e){const{column:t,selectedKeys:r,setSelectedKeys:n,search:o,clear:i}=e,{dictType:a,htmlType:s,fieldCode:u}=t,l=N.useCallback(f=>{const{labelName:d}=f;return b.jsx(G.Tooltip,{title:d,children:b.jsxs("div",{className:"text-ellipsis whitespace-nowrap max-w-[20%] border-0 font-sans text-[14px] leading-[35px] flex-[2] items-center overflow-hidden text-center",children:[d,":"]})})},[t]);return(f=>su.dict.includes(s)?b.jsxs("div",{className:"relative w-full flex flex-row px-4",children:[l(f),b.jsx(cG,{column:f,selectedKeys:r,setSelectedKeys:n,search:o,clear:i})]}):su.number.includes(s)?b.jsxs("div",{className:"relative w-full flex flex-row px-4",children:[l(f),b.jsx(fG,{column:f,selectedKeys:r,setSelectedKeys:n,search:o,clear:i})]}):su.date.includes(s)?b.jsxs("div",{className:"relative w-full flex flex-row px-4",children:[l(f),b.jsx(lG,{column:f,selectedKeys:r,setSelectedKeys:n,search:o,clear:i})]}):su.time.includes(s)?b.jsxs("div",{className:"relative w-full flex flex-row px-4",children:[l(f),b.jsx(pG,{column:f,selectedKeys:r,setSelectedKeys:n,search:o,clear:i})]}):b.jsxs("div",{className:"relative w-full flex flex-row px-4",children:[l(f),b.jsx(dG,{column:f,selectedKeys:r,setSelectedKeys:n,search:o,clear:i})]}))(t)}function gG(e){const{open:t,filteredInfo:r,setFilteredInfo:n,getSearchHeaderByColumnMap:o,tableFields:i}=e,a=N.useRef(null),s=i.filter(c=>c.isHeaderSearch);N.useEffect(()=>{var d,p,h;const c=(p=(d=a.current)==null?void 0:d.parentNode)==null?void 0:p.parentNode,f=(h=c==null?void 0:c.className)==null?void 0:h.split(" ");c&&(t?(c.className=[...f,"searchHeadEnter"].filter(g=>g!=="searchHeadLeave").join(" "),setTimeout(()=>{c.className=[...f,"searchHeadEnterDone"].filter(g=>g!=="searchHeadEnter"&&g!=="searchHeadLeaveDone").join(" ")},200)):(c.className=[...f,"searchHeadLeave"].filter(g=>g!=="searchHeadEnter"||g!=="searchHeadEnterDone").join(" "),setTimeout(()=>{c.className=[...f,"searchHeadLeaveDone"].filter(g=>g!=="searchHeadLeave"&&g!=="searchHeadEnterDone").join(" ")},250)))},[t]);const u=N.useRef(c=>o(c).get("search")).current,l=N.useRef(c=>o(c).get("clear")).current;return N.useRef(()=>o("__table__").get("seach")).current,s.length>0&&b.jsx("div",{className:`headerSearch w-full font-normal ${t?"block":"hidden"}`,ref:a,children:b.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 grid-flow-row gap-2 text-[12px]",children:s.map(c=>{const{fieldCode:f}=c,d=u(f),p=l(f);return b.jsx("div",{className:"bg-[transparent] m-1 h-[40px] flex-center",children:b.jsx(hG,{column:c,selectedKeys:r[f]||[],setSelectedKeys:h=>n(g=>({...g,[f]:h})),search:d,clear:p})},f)})})})}function f_(){const{renderButton:e}=Sb();return{renderButtons:(r,n=[])=>{const{pageJson:o}=r,a=((o==null?void 0:o.table.tableFields.filter(u=>u.isHeaderSearch===!0))||[]).length>0,s=o!=null&&o.table.isSub?YK:[];return o.table?(n.length>0?n:[...a?[{buttonName:"过滤",buttonType:"filter"}]:[],...o.table.headerButtons,...s,...WK]).map(u=>b.jsx(G.Tooltip,{title:u.buttonName,children:b.jsx("div",{className:"lowcode-table-header-button-wrapper",children:e(u,{...r,isTableHeaderButton:!0,pageJson:o})})},u.buttonCode)):[]}}}N.createContext({getRef:null,req:async e=>{},pageJson:{}});const Hg=N.forwardRef(function(t,r){const{pageJson:n,popupSelect:o=!1,rowSelection:i,editRowKey:a="",filterProps:s={},...u}=t,[l,c]=N.useState(!1),[f,d]=N.useState(!1),[p,h]=N.useState(n.table.openHeaderSearch||!1),[g,m]=N.useState(a),[y,v]=N.useState(""),[E,w]=N.useState(),[S,C]=N.useState(!1),{pageModel:x,selectPageSize:_,defaultPageSize:P,isSub:q,primaryKey:H,tableType:k,showCheckBox:M}=n.table,I=`table_persistence_${n.table.tableCode}`,[T,F]=N.useState(()=>{try{const De=localStorage.getItem(I);return De?JSON.parse(De):{}}catch{return{}}}),[U,R]=N.useState({pageSize:10,current:1,pageSizeOptions:_,defaultPageSize:P,total:0,hideOnSinglePage:!1}),Z=Ke.useMemoizedFn((De,Me,ut)=>{c(!0),m(De),Me&&v(Me),ut&&w(ut)}),re=Ke.useMemoizedFn(()=>{c(!1),v("")}),O=N.useRef(null),{createColumns:A,filteredInfo:V,setFilteredInfo:B,getSearchHeaderByColumnMap:L}=xb(n,o,Z,()=>Xe.current,()=>O.current),{listReq:j}=hr(),{renderButtons:W}=f_(),[X,ae]=N.useState([]),[ce,ee]=N.useState([]),[fe,pe]=N.useState([]),[ie,xe]=N.useState(""),Xe=N.useRef(),Le=N.useRef(!0),Oe=x===md.frontPage,ue=x===md.noPage;md.backPage;const Ie=N.useRef(null),le=N.useRef({}),de=N.useRef({pageCode:n.pageCode,pageNum:1,pageSize:P,searchFields:[],sortFields:[],tableCode:n.table.tableCode});N.useImperativeHandle(r,()=>({getActionRef:()=>O,getSelectedRows:ke,getValidatedResult:()=>new Promise(De=>{var Me;(Me=Xe.current)==null||Me.validateFields({validateOnly:!1}).then(ut=>{De(!0)}).catch(ut=>De(!1))})}),[ce,X,fe]);const ke=Ke.useMemoizedFn(()=>{var ut,sr;if(o)return ce;const De=[],Me=(sr=(ut=Xe.current)==null?void 0:ut.getRowsData)==null?void 0:sr.call(ut);return(Me==null?void 0:Me.length)===0?[]:(fe.forEach(Lt=>{const nr=Me.findIndex(dr=>dr[H]===Lt);if(nr>-1){const dr=Me==null?void 0:Me[nr];dr[H].startsWith(oo)&&delete dr[H],De.push(dr)}}),De)}),je=Ke.useLatest(g),ve=async(De,Me,ut)=>{var Da,$i;const{pageSize:sr,current:Lt}=De,nr=Object.entries(Ig(Object.keys(V).length>0?{...ut,...s,...V}:{...s},ur=>Io(ur))).map(ur=>({fieldCode:ur[0],searchType:ur[1][1],value:ur[1][2]||""})),dr=Object.entries(Ig(Me||{},ur=>Io(ur))).map(ur=>({fieldCode:ur[0],sortWay:ur[1]==="ascend"?"ASC":"DESC"})),jn=JSON.stringify(nr)===JSON.stringify(de.current.searchFields)&&JSON.stringify(dr)===JSON.stringify(de.current.sortFields);if((Oe||ue)&&!Le.current&&jn)return U.pageSize>100?C(!0):C(!1),{success:!0,data:ue?Ie.current:(Da=Ie.current)==null?void 0:Da.slice((U.current-1)*U.pageSize,U.current*U.pageSize),total:U.total};if(de.current={pageCode:n.pageCode,pageNum:jn?Lt:1,pageSize:sr,searchFields:q?[...nr,{fieldCode:"foreignKey",value:g||"null",searchType:"EQ"}]:nr,sortFields:dr,tableCode:n.table.tableCode},!jn&&x===md.backPage&&Lt>1)return R(ur=>({...ur,current:1})),le.current;delete De.filterProps,delete De.filteredInfo;const Gt=await j.runAsync({...de.current,...De});return Gt.code===200?(Gt.rows.length>0&&(($i=t.onEditorKeyChange)==null||$i.call(t,Gt.rows[0][H])),R({...U,pageSize:ue?Gt.rows.length:Gt.pageSize,current:Gt.pageNum,total:Gt.total}),Gt.pageSize>100?C(!0):C(!1),ue&&Gt.total>100&&(C(!0),R(ur=>({...ur,pageSizeOptions:[Gt.total]}))),(Oe||ue)&&(Ie.current=Gt.rows,Le.current=!1),le.current={data:(Oe?Gt.rows.slice((U.current-1)*U.pageSize,U.current*U.pageSize):Gt.rows).map(ur=>YD(ur,n,!1)),success:!0,total:Gt.total},le.current):{data:[],success:!0}},Qe=(De,Me,ut)=>b.jsxs("div",{className:"flex",children:[...W({getAction:()=>O.current,refresh:j.refresh,openEdit:Z,setFilteredInfo:B,record:De,pageJson:n,getEditorForm:()=>Xe.current,removeRow:()=>{Me.onDelete(De[H],De)},getForm:()=>Xe.current,isRowButton:!0},n.table.rowButtons)]}),et=N.useMemo(()=>b.jsx(uG,{...U,onParamsChange:R,pageModel:x,selectCount:fe.length}),[U.current,U.pageSize,U.total,U.pageSizeOptions,x,fe]),Et=N.useMemo(()=>b.jsx(xd,{open:l,onClose:re,refresh:()=>{var De;return(De=O.current)==null?void 0:De.reload()},layout:"vertical",pageJson:n,editRowKey:g,tableType:k,pageCode:y,editorOpenType:E,clearEditRowKey:()=>m("")}),[l,n,g,k,y,E]),Bt=De=>{try{localStorage.setItem(I,JSON.stringify(De))}catch(Me){console.error("本地存储失败:",Me)}F(De)};return N.useLayoutEffect(()=>{(()=>{try{const Me=localStorage.getItem(I);Me&&F(JSON.parse(Me))}catch(Me){console.error("读取本地存储失败:",Me)}})()},[]),N.useEffect(()=>{var De;(De=t.onEditorKeyChange)==null||De.call(t,ie[H])},[ie]),Ke.useUpdateEffect(()=>{a&&m(a)},[a]),Ke.useUpdateEffect(()=>{var De;g&&!g.startsWith(oo)&&((De=O==null?void 0:O.current)==null||De.reload())},[g]),b.jsxs(b.Fragment,{children:[b.jsx(ct.EditableProTable,{bordered:!0,params:{current:U.current,pageSize:U.pageSize,filterProps:s,filteredInfo:V},columnsState:{value:T,onChange:Bt},debounceTime:300,editableFormRef:Xe,request:ve,actionRef:O,tableClassName:q?"lowcode-table lowcode-table-sub":"lowcode-table",columns:A(),rowKey:H,onRow:De=>({onClick:Me=>{var nr;const ut=De[H];if(n.tplCode===$r.mainSubLink&&!String(De[H]).startsWith(oo)&&xe(De),n.form.disabled||(ce.findIndex(dr=>dr[H]===ut)===-1&&(pe(dr=>[...dr,ut]),ee(dr=>[...dr,De])),o||k!==vd.edlin))return;const Lt=Me.target.children[0];Lt&&Lt.classList.contains("lowcode-table-option")||X.indexOf(ut)===-1&&((nr=O.current)==null||nr.startEditable(De[H]))}}),rowClassName:De=>De[H]===ie[H]&&!String(De[H]).startsWith(oo)?"lowcode-table-latest-selected-row":"",toolBarRender:(De,Me)=>o?[]:W({action:De,rows:Me,latestSelectedKey:je,pageJson:n,getAction:()=>O.current,refresh:j.refresh,openAddDrawer:()=>{c(!0),m("")},setOpenImportDialog:d,openEdit:Z,getSearch:()=>de.current,getEditorForm:()=>Xe.current,getSelectedRows:ke,getForm:()=>Xe.current,toggleHeaderSearch:()=>h(ut=>!ut),onClose:re}),toolbar:{title:b.jsx(gG,{open:p,filteredInfo:V,setFilteredInfo:B,getSearchHeaderByColumnMap:L,tableFields:n.table.tableFields})},defaultSize:n.tplCode===$r.mainSubLink?"small":"middle",editable:{type:"multiple",editableKeys:X,onSave:async(De,Me,ut)=>{},onChange:ae,actionRender:Qe},sticky:!0,recordCreatorProps:!1,options:{reloadIcon:b.jsx("div",{className:"lowcode-table-header-button-wrapper",children:b.jsx(G.Button,{type:"primary",size:"middle",className:"rounded-none !px-[10px]",icon:b.jsx("svg",{className:"icon inline-block",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",children:b.jsx("path",{d:"M882.9696 38.4l94.2592 301.4912-315.3152-29.2352 60.5952-74.624a338.432 338.432 0 0 0-196.3264-62.2976c-187.392 0-339.328 151.4752-339.328 338.2656 0 186.8672 151.936 338.3424 339.328 338.3424A339.328 339.328 0 0 0 843.2256 632.704a68.352 68.352 0 0 1 5.0304-10.368l117.952 68.096A475.0592 475.0592 0 0 1 526.1184 985.6C263.8464 985.6 51.2 773.6064 51.2 512 51.2 250.4576 263.8592 38.4 526.1184 38.4a474.24 474.24 0 0 1 281.9072 92.3392L882.9696 38.4z"})})})}),densityIcon:b.jsx("div",{className:"lowcode-table-header-button-wrapper",children:b.jsx(G.Button,{type:"primary",size:"middle",className:"rounded-none !px-[10px]",icon:b.jsx("svg",{className:"icon inline-block",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",children:b.jsx("path",{d:"M495.529015 191.14603h480.339732c26.538578 0 48.12784-23.039923 48.12784-51.370496 0-28.330572-21.589261-51.285162-48.12784-51.285162H495.529015c-26.538578 0-48.12784 22.95459-48.12784 51.285162 0 28.330572 21.589261 51.285162 48.12784 51.285162z m480.339732 266.068446H495.529015c-26.538578 0-48.12784 23.039923-48.12784 51.370495 0 28.330572 21.589261 51.199829 48.12784 51.19983h480.339732c26.538578 0 48.12784-22.869257 48.12784-51.19983 0-28.330572-21.589261-51.370495-48.12784-51.370495z m0 368.809437H495.529015c-26.538578 0-48.12784 22.95459-48.12784 51.285163 0 28.330572 21.589261 51.285162 48.12784 51.285162h480.339732c26.538578 0 48.12784-22.95459 48.12784-51.285162 0-28.330572-21.589261-51.285162-48.12784-51.285163zM291.839027 235.519215c19.797267 19.02927 50.346499 17.237276 68.095773-3.92532a53.930487 53.930487 0 0 0 0-68.607772L221.09793 15.10395A45.823847 45.823847 0 0 0 187.050043 0a46.506512 46.506512 0 0 0-34.047886 15.10395L14.079953 163.071456a53.759821 53.759821 0 0 0 0 72.533092 46.079846 46.079846 0 0 0 68.095773 0l56.746478-60.330466v673.448422l-56.746478-60.415798a46.079846 46.079846 0 0 0-68.01044 2.133326 53.759821 53.759821 0 0 0 0 70.399765l138.751538 147.967507a45.653181 45.653181 0 0 0 52.735824 11.093296 48.639838 48.639838 0 0 0 15.530615-11.093296l138.83687-147.967507a53.759821 53.759821 0 0 0 1.96266-72.533091 46.079846 46.079846 0 0 0-70.058433 0l-56.746477 60.415798V175.188749l56.746477 60.330466z"})})})}),setting:{settingIcon:b.jsx("div",{className:"lowcode-table-header-button-wrapper",children:b.jsx(G.Button,{type:"primary",size:"middle",className:"rounded-none !px-[10px] lowcode-table-header-button",icon:b.jsx("svg",{className:"icon inline-block",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",children:b.jsx("path",{d:"M512 706.56c-107.52 0-194.56-87.04-194.56-194.56S404.48 317.44 512 317.44s194.56 87.04 194.56 194.56-87.04 194.56-194.56 194.56z m476.16-271.36h-51.2c-20.48 0-46.08-15.36-51.2-35.84l-25.6-66.56c-10.24-20.48-5.12-46.08 10.24-61.44l35.84-35.84c5.12-5.12 10.24-15.36 10.24-25.6s-5.12-20.48-10.24-25.6l-61.44-61.44c-5.12-5.12-15.36-10.24-25.6-10.24s-20.48 5.12-25.6 10.24l-35.84 30.72c-15.36 15.36-40.96 20.48-61.44 10.24l-66.56-25.6c-20.48-5.12-35.84-30.72-35.84-51.2v-51.2c0-10.24-5.12-15.36-10.24-25.6-10.24-5.12-20.48-10.24-25.6-10.24H465.92c-5.12 0-15.36 5.12-20.48 10.24-10.24 5.12-10.24 15.36-10.24 25.6v51.2c0 20.48-15.36 46.08-35.84 51.2l-71.68 25.6c-15.36 10.24-46.08 5.12-61.44-10.24l-35.84-35.84c-5.12-5.12-15.36-10.24-25.6-10.24s-15.36 5.12-25.6 10.24L117.76 179.2c-5.12 10.24-10.24 15.36-10.24 25.6s5.12 20.48 10.24 25.6l35.84 35.84c15.36 15.36 20.48 40.96 10.24 61.44l-25.6 66.56c-5.12 20.48-30.72 35.84-51.2 35.84h-51.2c-10.24 0-15.36 5.12-25.6 10.24-5.12 10.24-10.24 20.48-10.24 25.6v87.04c0 10.24 5.12 15.36 10.24 25.6 5.12 5.12 15.36 10.24 25.6 10.24h51.2c20.48 0 46.08 15.36 51.2 35.84l25.6 66.56c10.24 20.48 5.12 46.08-10.24 61.44l-35.84 35.84c-5.12 5.12-10.24 15.36-10.24 25.6s5.12 20.48 10.24 25.6l61.44 61.44c5.12 5.12 15.36 10.24 25.6 10.24s20.48-5.12 25.6-10.24l35.84-30.72c15.36-15.36 40.96-20.48 61.44-10.24l66.56 25.6c20.48 5.12 35.84 30.72 35.84 51.2v51.2c0 10.24 5.12 15.36 10.24 25.6 10.24 5.12 20.48 10.24 25.6 10.24h87.04c10.24 0 15.36-5.12 25.6-10.24 5.12-5.12 10.24-15.36 10.24-25.6v-51.2c0-20.48 15.36-46.08 35.84-51.2l66.56-25.6c20.48-10.24 46.08-5.12 61.44 10.24l35.84 35.84c5.12 5.12 15.36 10.24 25.6 10.24s20.48-5.12 25.6-10.24l61.44-61.44c5.12-5.12 10.24-15.36 10.24-25.6s-5.12-20.48-10.24-25.6l-30.72-35.84c-15.36-15.36-20.48-40.96-10.24-61.44l25.6-66.56c5.12-20.48 30.72-35.84 51.2-35.84h51.2c10.24 0 15.36-5.12 25.6-10.24 5.12-5.12 10.24-15.36 10.24-25.6V465.92c0-10.24-5.12-15.36-10.24-25.6-5.12-5.12-15.36-5.12-25.6-5.12z"})})})}),checkedReset:!1,extra:b.jsx(G.Button,{type:"link",size:"small",onClick:()=>{localStorage.removeItem(I),F({})},children:"重置"})}},search:!1,pagination:!1,className:"ptable",rowSelection:M?{selectedRowKeys:fe,onChange(De,Me,ut){pe(De),ee(Me)},columnWidth:50,fixed:!0,...i}:!1,tableAlertRender:()=>!1,...u,virtual:S,scroll:{x:"max-content",y:"auto",scrollToFirstRowOnChange:!1},showSorterTooltip:!0}),Et,et,b.jsx(sG,{open:f,setOpen:d})]})}),d_=N.forwardRef(function(t,r){const{editRowKey:n,tables:o,disabled:i=!1,pageJson:a}=t,[s,u]=N.useState(n),l=N.useRef(null),c=()=>(l.current||(l.current=new Map),l.current);N.useImperativeHandle(r,()=>({getSubTablesList:()=>{const d=c();let p={};return d.forEach((h,g)=>{const m=h.getSelectedRows();if(m.length===0){p[g]=[];return}const y=Object.keys(m[0]).concat(o[0].primaryKey),v={...a,form:{...a.form,formFields:a.form.tables.filter(E=>E.tableCode===g)[0].formTableFields}};p[g]=h.getSelectedRows().map(E=>{var S;const w={};return y.forEach(C=>{w[wd(C,o.filter(x=>x.tableCode===g)[0].formTableFields)]=E[C]}),(S=E.id)!=null&&S.startsWith(oo)?{...w,id:E.id}:w}).map(E=>Eb(E,v))}),p},getSubTablesValidateResults:()=>{const d=[];return c().forEach((h,g)=>{d.push(h.getValidatedResult)}),Promise.all(d.map(h=>h()))}}),[o]);const f=N.useMemo(()=>Io(o)?[]:o.map((d,p)=>({key:d.tableCode,label:d.tableName||`分录${p+1}`,children:b.jsx(Hg,{ref:h=>{const g=c();h?g.set(d.tableCode,h):g.delete(d.tableCode)},className:"table-sub",pageJson:{...a,form:{...a.form,buttons:[],formFields:d.formTableFields,tables:[]},table:{...d,tableFields:[d.tableType===vd.edlin?{fieldCode:"id",htmlType:"Text",labelName:"ID",columnWidth:1e-12}:{},...d.formTableFields],isSub:!0,disabled:i}},editRowKey:s}),forceRender:!0})),[o,s]);return Ke.useUpdateEffect(()=>{u(n)},[n]),f.length>0&&b.jsx(G.Tabs,{items:f,className:"sg_multi_tabs mt-2",defaultActiveKey:f[0].key})}),vG=N.forwardRef(function(t,r){const{context:n}=rn(),{getTokenHeader:o}=hr(),{pageFileTags:i,isEditModal:a,pageJson:s}=t,u=N.useRef(null),l=()=>(u.current||(u.current=new Map),u.current);N.useImperativeHandle(r,()=>({checkFileData:()=>{let d=!0;const p=i.filter(h=>h.required===!0).map(h=>h.fileTagCode);return l().forEach((h,g)=>{p.indexOf(g)>-1&&h.getFileList().length===0&&(d=!1)}),d},getFileData:()=>{const d=l();let p={};return d.forEach((h,g)=>p[g]=h.getFileList()),p},setFileData:d=>{l().forEach((h,g)=>{h.setFileList(d[g])})}}),[i]);const c=(d,p,h)=>{const g={listType:"picture-card",className:"ptable-form-files mt-2",multiple:!0,action:`/${n.appEnName}/v1/system/file/uploads`,name:"files",headers:o(),data:{storeDay:h||0},disabled:s.form.disabled};return d.length&&(g.accept=d.map(m=>"."+m).join()),En(p)&&(g.maxCount=p),g},f=N.useMemo(()=>Io(i)?[]:i.map((d,p)=>{const{allowFileType:h,customFileType:g,fileTagCode:m,fileTagName:y,fileLimitNum:v,required:E,fileMaxSize:w,storeDay:S}=d,C=h.concat(g===""?[]:g.split(","));return{key:d.fileTagCode,label:b.jsxs("div",{children:[E&&b.jsx("span",{className:"text-[#ff4d4f] inline-block text-[14px] mr-[3px]",children:"*"}),d.fileTagName||`附件区${p+1}`]}),children:b.jsxs(b.Fragment,{children:[b.jsx(a_,{uploadProps:c(C,v,S),params:d,ref:x=>{const _=l();x?_.set(d.fileTagCode,x):_.delete(d.fileTagCode)},context:n}),b.jsxs("b",{className:"mt-3 inline-block",children:[C.length>0?`允许的文件后缀类型为 ${C.map((x,_)=>" "+x+" ")}`:"",w?` 单个附件大小不超过${w}M`:""]})]}),forceRender:!0}}),[i,a]);return i.length===0?!1:b.jsx(G.Tabs,{items:f,className:"sg_multi_tabs mt-2"})});var mG={0:"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",1:function(t,r){return"Cannot apply '"+t+"' to '"+r.toString()+"': Field not found."},5:"'keys()' can only be used on observable objects, arrays, sets and maps",6:"'values()' can only be used on observable objects, arrays, sets and maps",7:"'entries()' can only be used on observable objects, arrays and maps",8:"'set()' can only be used on observable objects, arrays and maps",9:"'remove()' can only be used on observable objects, arrays and maps",10:"'has()' can only be used on observable objects, arrays and maps",11:"'get()' can only be used on observable objects, arrays and maps",12:"Invalid annotation",13:"Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",14:"Intercept handlers should return nothing or a change object",15:"Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",16:"Modification exception: the internal structure of an observable array was changed.",17:function(t,r){return"[mobx.array] Index out of bounds, "+t+" is larger than "+r},18:"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js",19:function(t){return"Cannot initialize from classes that inherit from Map: "+t.constructor.name},20:function(t){return"Cannot initialize map from "+t},21:function(t){return"Cannot convert to map from '"+t+"'"},22:"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js",23:"It is not possible to get index atoms from arrays",24:function(t){return"Cannot obtain administration from "+t},25:function(t,r){return"the entry '"+t+"' does not exist in the observable map '"+r+"'"},26:"please specify a property",27:function(t,r){return"no observable property '"+t.toString()+"' found on the observable object '"+r+"'"},28:function(t){return"Cannot obtain atom from "+t},29:"Expecting some object",30:"invalid action stack. did you forget to finish an action?",31:"missing option for computed: get",32:function(t,r){return"Cycle detected in computation "+t+": "+r},33:function(t){return"The setter of computed value '"+t+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"},34:function(t){return"[ComputedValue '"+t+"'] It is not possible to assign a new value to a computed value."},35:"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`",36:"isolateGlobalState should be called before MobX is running any reactions",37:function(t){return"[mobx] `observableArray."+t+"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice()."+t+"()` instead"},38:"'ownKeys()' can only be used on observable objects",39:"'defineProperty()' can only be used on observable objects"},yG=process.env.NODE_ENV!=="production"?mG:{};function _e(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var o=typeof e=="string"?e:yG[e];throw typeof o=="function"&&(o=o.apply(null,r)),new Error("[MobX] "+o)}throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(r.length?" "+r.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var bG={};function Ug(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:bG}var p_=Object.assign,qg=Object.getOwnPropertyDescriptor,li=Object.defineProperty,Cd=Object.prototype,Kg=[];Object.freeze(Kg);var Mb={};Object.freeze(Mb);var wG=typeof Proxy<"u",EG=Object.toString();function h_(){wG||_e(process.env.NODE_ENV!=="production"?"`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`":"Proxy not available")}function Dd(e){process.env.NODE_ENV!=="production"&&he.verifyProxies&&_e("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to "+e)}function io(){return++he.mobxGuid}function zb(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var tc=function(){};function gr(e){return typeof e=="function"}function du(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function Gg(e){return e!==null&&typeof e=="object"}function Sn(e){if(!Gg(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r.toString()===EG}function g_(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function _d(e,t,r){li(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function v_(e,t,r){li(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function Pa(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(n){return Gg(n)&&n[r]===!0}}function rc(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function SG(e){var t=Object.getPrototypeOf(e),r=Object.getPrototypeOf(t),n=Object.getPrototypeOf(r);return n===null}function Yi(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var m_=typeof Object.getOwnPropertySymbols<"u";function xG(e){var t=Object.keys(e);if(!m_)return t;var r=Object.getOwnPropertySymbols(e);return r.length?[].concat(t,r.filter(function(n){return Cd.propertyIsEnumerable.call(e,n)})):t}var nc=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:m_?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function Vb(e){return typeof e=="string"?e:typeof e=="symbol"?e.toString():new String(e).toString()}function y_(e){return e===null?null:typeof e=="object"?""+e:e}function ao(e,t){return Cd.hasOwnProperty.call(e,t)}var CG=Object.getOwnPropertyDescriptors||function(t){var r={};return nc(t).forEach(function(n){r[n]=qg(t,n)}),r};function Ln(e,t){return!!(e&t)}function Mn(e,t,r){return r?e|=t:e&=~t,e}function b_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function DG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,OG(n.key),n)}}function oc(e,t,r){return t&&DG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ic(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=AG(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xi(){return Xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xi.apply(null,arguments)}function w_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rb(e,t)}function Rb(e,t){return Rb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Rb(e,t)}function _G(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function OG(e){var t=_G(e,"string");return typeof t=="symbol"?t:t+""}function AG(e,t){if(e){if(typeof e=="string")return b_(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b_(e,t):void 0}}var xn=Symbol("mobx-stored-annotations");function ci(e){function t(r,n){if(Ad(n))return e.decorate_20223_(r,n);Od(r,n,e)}return Object.assign(t,e)}function Od(e,t,r){if(ao(e,xn)||_d(e,xn,Xi({},e[xn])),process.env.NODE_ENV!=="production"&&Xg(r)&&!ao(e[xn],t)){var n=e.constructor.name+".prototype."+t.toString();_e("'"+n+"' is decorated with 'override', but no such decorated member was found on prototype.")}kG(e,r,t),Xg(r)||(e[xn][t]=r)}function kG(e,t,r){if(process.env.NODE_ENV!=="production"&&!Xg(t)&&ao(e[xn],r)){var n=e.constructor.name+".prototype."+r.toString(),o=e[xn][r].annotationType_,i=t.annotationType_;_e("Cannot apply '@"+i+"' to '"+n+"':"+(`
3
+ The field is already decorated with '@`+o+"'.")+`
4
+ Re-decorating fields is not allowed.
5
+ Use '@override' decorator for methods overridden by subclass.`)}}function NG(e){return ao(e,xn)||_d(e,xn,Xi({},e[xn])),e[xn]}function Ad(e){return typeof e=="object"&&typeof e.kind=="string"}function Wg(e,t){process.env.NODE_ENV!=="production"&&!t.includes(e.kind)&&_e("The decorator applied to '"+String(e.name)+"' cannot be used on a "+e.kind+" element")}var Ve=Symbol("mobx administration"),Ba=function(){function e(r){r===void 0&&(r=process.env.NODE_ENV!=="production"?"Atom@"+io():"Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=St.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=r}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.reportObserved=function(){return R_(this)},t.reportChanged=function(){lo(),$_(this),co()},t.toString=function(){return this.name_},oc(e,[{key:"isBeingObserved",get:function(){return Ln(this.flags_,e.isBeingObservedMask_)},set:function(n){this.flags_=Mn(this.flags_,e.isBeingObservedMask_,n)}},{key:"isPendingUnobservation",get:function(){return Ln(this.flags_,e.isPendingUnobservationMask_)},set:function(n){this.flags_=Mn(this.flags_,e.isPendingUnobservationMask_,n)}},{key:"diffValue",get:function(){return Ln(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=Mn(this.flags_,e.diffValueMask_,n===1)}}])}();Ba.isBeingObservedMask_=1,Ba.isPendingUnobservationMask_=2,Ba.diffValueMask_=4;var $b=Pa("Atom",Ba);function E_(e,t,r){t===void 0&&(t=tc),r===void 0&&(r=tc);var n=new Ba(e);return t!==tc&&UW(n,t),r!==tc&&J_(n,r),n}function TG(e,t){return e===t}function PG(e,t){return a4(e,t)}function BG(e,t){return a4(e,t,1)}function FG(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var ac={identity:TG,structural:PG,default:FG,shallow:BG};function pu(e,t,r){return fc(e)?e:Array.isArray(e)?Re.array(e,{name:r}):Sn(e)?Re.object(e,void 0,{name:r}):rc(e)?Re.map(e,{name:r}):Yi(e)?Re.set(e,{name:r}):typeof e=="function"&&!lc(e)&&!Bd(e)?g_(e)?cc(e):Pd(r,e):e}function jG(e,t,r){if(e==null||bu(e)||Id(e)||Qi(e)||$o(e))return e;if(Array.isArray(e))return Re.array(e,{name:r,deep:!1});if(Sn(e))return Re.object(e,void 0,{name:r,deep:!1});if(rc(e))return Re.map(e,{name:r,deep:!1});if(Yi(e))return Re.set(e,{name:r,deep:!1});process.env.NODE_ENV!=="production"&&_e("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets")}function Yg(e){return e}function IG(e,t){return process.env.NODE_ENV!=="production"&&fc(e)&&_e("observable.struct should not be used with observable values"),a4(e,t)?t:e}var LG="override";function Xg(e){return e.annotationType_===LG}function kd(e,t){return{annotationType_:e,options_:t,make_:MG,extend_:zG,decorate_20223_:VG}}function MG(e,t,r,n){var o;if((o=this.options_)!=null&&o.bound)return this.extend_(e,t,r,!1)===null?0:1;if(n===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if(lc(r.value))return 1;var i=S_(e,this,t,r,!1);return li(n,t,i),2}function zG(e,t,r,n){var o=S_(e,this,t,r);return e.defineProperty_(t,o,n)}function VG(e,t){process.env.NODE_ENV!=="production"&&Wg(t,["method","field"]);var r=t.kind,n=t.name,o=t.addInitializer,i=this,a=function(l){var c,f,d,p;return hu((c=(f=i.options_)==null?void 0:f.name)!=null?c:n.toString(),l,(d=(p=i.options_)==null?void 0:p.autoAction)!=null?d:!1)};if(r=="field")return function(u){var l,c=u;return lc(c)||(c=a(c)),(l=i.options_)!=null&&l.bound&&(c=c.bind(this),c.isMobxAction=!0),c};if(r=="method"){var s;return lc(e)||(e=a(e)),(s=this.options_)!=null&&s.bound&&o(function(){var u=this,l=u[n].bind(u);l.isMobxAction=!0,u[n]=l}),e}_e("Cannot apply '"+i.annotationType_+"' to '"+String(n)+"' (kind: "+r+"):"+(`
6
+ '`+i.annotationType_+"' can only be used on properties with a function value."))}function RG(e,t,r,n){var o=t.annotationType_,i=n.value;process.env.NODE_ENV!=="production"&&!gr(i)&&_e("Cannot apply '"+o+"' to '"+e.name_+"."+r.toString()+"':"+(`
7
+ '`+o+"' can only be used on properties with a function value."))}function S_(e,t,r,n,o){var i,a,s,u,l,c,f;o===void 0&&(o=he.safeDescriptors),RG(e,t,r,n);var d=n.value;if((i=t.options_)!=null&&i.bound){var p;d=d.bind((p=e.proxy_)!=null?p:e.target_)}return{value:hu((a=(s=t.options_)==null?void 0:s.name)!=null?a:r.toString(),d,(u=(l=t.options_)==null?void 0:l.autoAction)!=null?u:!1,(c=t.options_)!=null&&c.bound?(f=e.proxy_)!=null?f:e.target_:void 0),configurable:o?e.isPlainObject_:!0,enumerable:!1,writable:!o}}function x_(e,t){return{annotationType_:e,options_:t,make_:$G,extend_:HG,decorate_20223_:UG}}function $G(e,t,r,n){var o;if(n===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if((o=this.options_)!=null&&o.bound&&(!ao(e.target_,t)||!Bd(e.target_[t]))&&this.extend_(e,t,r,!1)===null)return 0;if(Bd(r.value))return 1;var i=C_(e,this,t,r,!1,!1);return li(n,t,i),2}function HG(e,t,r,n){var o,i=C_(e,this,t,r,(o=this.options_)==null?void 0:o.bound);return e.defineProperty_(t,i,n)}function UG(e,t){var r;process.env.NODE_ENV!=="production"&&Wg(t,["method"]);var n=t.name,o=t.addInitializer;return Bd(e)||(e=cc(e)),(r=this.options_)!=null&&r.bound&&o(function(){var i=this,a=i[n].bind(i);a.isMobXFlow=!0,i[n]=a}),e}function qG(e,t,r,n){var o=t.annotationType_,i=n.value;process.env.NODE_ENV!=="production"&&!gr(i)&&_e("Cannot apply '"+o+"' to '"+e.name_+"."+r.toString()+"':"+(`
8
+ '`+o+"' can only be used on properties with a generator function value."))}function C_(e,t,r,n,o,i){i===void 0&&(i=he.safeDescriptors),qG(e,t,r,n);var a=n.value;if(Bd(a)||(a=cc(a)),o){var s;a=a.bind((s=e.proxy_)!=null?s:e.target_),a.isMobXFlow=!0}return{value:a,configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function Hb(e,t){return{annotationType_:e,options_:t,make_:KG,extend_:GG,decorate_20223_:WG}}function KG(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function GG(e,t,r,n){return YG(e,this,t,r),e.defineComputedProperty_(t,Xi({},this.options_,{get:r.get,set:r.set}),n)}function WG(e,t){process.env.NODE_ENV!=="production"&&Wg(t,["getter"]);var r=this,n=t.name,o=t.addInitializer;return o(function(){var i=yu(this)[Ve],a=Xi({},r.options_,{get:e,context:this});a.name||(a.name=process.env.NODE_ENV!=="production"?i.name_+"."+n.toString():"ObservableObject."+n.toString()),i.values_.set(n,new so(a))}),function(){return this[Ve].getObservablePropValue_(n)}}function YG(e,t,r,n){var o=t.annotationType_,i=n.get;process.env.NODE_ENV!=="production"&&!i&&_e("Cannot apply '"+o+"' to '"+e.name_+"."+r.toString()+"':"+(`
9
+ '`+o+"' can only be used on getter(+setter) properties."))}function Jg(e,t){return{annotationType_:e,options_:t,make_:XG,extend_:JG,decorate_20223_:ZG}}function XG(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function JG(e,t,r,n){var o,i;return QG(e,this,t,r),e.defineObservableProperty_(t,r.value,(o=(i=this.options_)==null?void 0:i.enhancer)!=null?o:pu,n)}function ZG(e,t){if(process.env.NODE_ENV!=="production"){if(t.kind==="field")throw _e("Please use `@observable accessor "+String(t.name)+"` instead of `@observable "+String(t.name)+"`");Wg(t,["accessor"])}var r=this,n=t.kind,o=t.name,i=new WeakSet;function a(s,u){var l,c,f=yu(s)[Ve],d=new Fa(u,(l=(c=r.options_)==null?void 0:c.enhancer)!=null?l:pu,process.env.NODE_ENV!=="production"?f.name_+"."+o.toString():"ObservableObject."+o.toString(),!1);f.values_.set(o,d),i.add(s)}if(n=="accessor")return{get:function(){return i.has(this)||a(this,e.get.call(this)),this[Ve].getObservablePropValue_(o)},set:function(u){return i.has(this)||a(this,u),this[Ve].setObservablePropValue_(o,u)},init:function(u){return i.has(this)||a(this,u),u}}}function QG(e,t,r,n){var o=t.annotationType_;process.env.NODE_ENV!=="production"&&!("value"in n)&&_e("Cannot apply '"+o+"' to '"+e.name_+"."+r.toString()+"':"+(`
10
+ '`+o+"' cannot be used on getter/setter properties"))}var eW="true",tW=D_();function D_(e){return{annotationType_:eW,options_:e,make_:rW,extend_:nW,decorate_20223_:oW}}function rW(e,t,r,n){var o,i;if(r.get)return sc.make_(e,t,r,n);if(r.set){var a=hu(t.toString(),r.set);return n===e.target_?e.defineProperty_(t,{configurable:he.safeDescriptors?e.isPlainObject_:!0,set:a})===null?0:2:(li(n,t,{configurable:!0,set:a}),2)}if(n!==e.target_&&typeof r.value=="function"){var s;if(g_(r.value)){var u,l=(u=this.options_)!=null&&u.autoBind?cc.bound:cc;return l.make_(e,t,r,n)}var c=(s=this.options_)!=null&&s.autoBind?Pd.bound:Pd;return c.make_(e,t,r,n)}var f=((o=this.options_)==null?void 0:o.deep)===!1?Re.ref:Re;if(typeof r.value=="function"&&(i=this.options_)!=null&&i.autoBind){var d;r.value=r.value.bind((d=e.proxy_)!=null?d:e.target_)}return f.make_(e,t,r,n)}function nW(e,t,r,n){var o,i;if(r.get)return sc.extend_(e,t,r,n);if(r.set)return e.defineProperty_(t,{configurable:he.safeDescriptors?e.isPlainObject_:!0,set:hu(t.toString(),r.set)},n);if(typeof r.value=="function"&&(o=this.options_)!=null&&o.autoBind){var a;r.value=r.value.bind((a=e.proxy_)!=null?a:e.target_)}var s=((i=this.options_)==null?void 0:i.deep)===!1?Re.ref:Re;return s.extend_(e,t,r,n)}function oW(e,t){_e("'"+this.annotationType_+"' cannot be used as a decorator")}var iW="observable",aW="observable.ref",sW="observable.shallow",uW="observable.struct",__={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(__);function Zg(e){return e||__}var Ub=Jg(iW),lW=Jg(aW,{enhancer:Yg}),cW=Jg(sW,{enhancer:jG}),fW=Jg(uW,{enhancer:IG}),O_=ci(Ub);function Qg(e){return e.deep===!0?pu:e.deep===!1?Yg:pW(e.defaultDecorator)}function dW(e){var t;return e?(t=e.defaultDecorator)!=null?t:D_(e):void 0}function pW(e){var t,r;return e&&(t=(r=e.options_)==null?void 0:r.enhancer)!=null?t:pu}function A_(e,t,r){if(Ad(t))return Ub.decorate_20223_(e,t);if(du(t)){Od(e,t,Ub);return}return fc(e)?e:Sn(e)?Re.object(e,t,r):Array.isArray(e)?Re.array(e,t):rc(e)?Re.map(e,t):Yi(e)?Re.set(e,t):typeof e=="object"&&e!==null?e:Re.box(e,t)}p_(A_,O_);var hW={box:function(t,r){var n=Zg(r);return new Fa(t,Qg(n),n.name,!0,n.equals)},array:function(t,r){var n=Zg(r);return(he.useProxies===!1||n.proxy===!1?mY:sY)(t,Qg(n),n.name)},map:function(t,r){var n=Zg(r);return new aO(t,Qg(n),n.name)},set:function(t,r){var n=Zg(r);return new uO(t,Qg(n),n.name)},object:function(t,r,n){return La(function(){return Q_(he.useProxies===!1||(n==null?void 0:n.proxy)===!1?yu({},n):rY({},n),t,r)})},ref:ci(lW),shallow:ci(cW),deep:O_,struct:ci(fW)},Re=p_(A_,hW),k_="computed",gW="computed.struct",qb=Hb(k_),vW=Hb(gW,{equals:ac.structural}),sc=function(t,r){if(Ad(r))return qb.decorate_20223_(t,r);if(du(r))return Od(t,r,qb);if(Sn(t))return ci(Hb(k_,t));process.env.NODE_ENV!=="production"&&(gr(t)||_e("First argument to `computed` should be an expression."),gr(r)&&_e("A setter as second argument is no longer supported, use `{ set: fn }` option instead"));var n=Sn(r)?r:{};return n.get=t,n.name||(n.name=t.name||""),new so(n)};Object.assign(sc,qb),sc.struct=ci(vW);var N_,T_,ev=0,mW=1,yW=(N_=(T_=qg(function(){},"name"))==null?void 0:T_.configurable)!=null?N_:!1,P_={value:"action",configurable:!0,writable:!1,enumerable:!1};function hu(e,t,r,n){r===void 0&&(r=!1),process.env.NODE_ENV!=="production"&&(gr(t)||_e("`action` can only be invoked on functions"),(typeof e!="string"||!e)&&_e("actions should have valid names, got: '"+e+"'"));function o(){return B_(e,r,t,n||this,arguments)}return o.isMobxAction=!0,o.toString=function(){return t.toString()},yW&&(P_.value=e,li(o,"name",P_)),o}function B_(e,t,r,n,o){var i=bW(e,t,n,o);try{return r.apply(n,o)}catch(a){throw i.error_=a,a}finally{wW(i)}}function bW(e,t,r,n){var o=process.env.NODE_ENV!=="production"&&Jr()&&!!e,i=0;if(process.env.NODE_ENV!=="production"&&o){i=Date.now();var a=n?Array.from(n):Kg;zn({type:Xb,name:e,object:r,arguments:a})}var s=he.trackingDerivation,u=!t||!s;lo();var l=he.allowStateChanges;u&&(gu(),l=tv(!0));var c=Wb(!0),f={runAsAction_:u,prevDerivation_:s,prevAllowStateChanges_:l,prevAllowStateReads_:c,notifySpy_:o,startTime_:i,actionId_:mW++,parentActionId_:ev};return ev=f.actionId_,f}function wW(e){ev!==e.actionId_&&_e(30),ev=e.parentActionId_,e.error_!==void 0&&(he.suppressReactionErrors=!0),rv(e.prevAllowStateChanges_),Td(e.prevAllowStateReads_),co(),e.runAsAction_&&Ji(e.prevDerivation_),process.env.NODE_ENV!=="production"&&e.notifySpy_&&Vn({time:Date.now()-e.startTime_}),he.suppressReactionErrors=!1}function F_(e,t){var r=tv(e);try{return t()}finally{rv(r)}}function tv(e){var t=he.allowStateChanges;return he.allowStateChanges=e,t}function rv(e){he.allowStateChanges=e}var EW="create",Fa=function(e){function t(n,o,i,a,s){var u;return i===void 0&&(i=process.env.NODE_ENV!=="production"?"ObservableValue@"+io():"ObservableValue"),a===void 0&&(a=!0),s===void 0&&(s=ac.default),u=e.call(this,i)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=o,u.name_=i,u.equals=s,u.value_=o(n,void 0,i),process.env.NODE_ENV!=="production"&&a&&Jr()&&vu({type:EW,object:u,observableKind:"value",debugObjectName:u.name_,newValue:""+u.value_}),u}w_(t,e);var r=t.prototype;return r.dehanceValue=function(o){return this.dehancer!==void 0?this.dehancer(o):o},r.set=function(o){var i=this.value_;if(o=this.prepareNewValue_(o),o!==he.UNCHANGED){var a=Jr();process.env.NODE_ENV!=="production"&&a&&zn({type:Vo,object:this,observableKind:"value",debugObjectName:this.name_,newValue:o,oldValue:i}),this.setNewValue_(o),process.env.NODE_ENV!=="production"&&a&&Vn()}},r.prepareNewValue_=function(o){if(fi(this),fo(this)){var i=po(this,{object:this,type:Vo,newValue:o});if(!i)return he.UNCHANGED;o=i.newValue}return o=this.enhancer(o,this.value_,this.name_),this.equals(this.value_,o)?he.UNCHANGED:o},r.setNewValue_=function(o){var i=this.value_;this.value_=o,this.reportChanged(),Mo(this)&&zo(this,{type:Vo,object:this,newValue:o,oldValue:i})},r.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},r.intercept_=function(o){return Fd(this,o)},r.observe_=function(o,i){return i&&o({observableKind:"value",debugObjectName:this.name_,object:this,type:Vo,newValue:this.value_,oldValue:void 0}),jd(this,o)},r.raw=function(){return this.value_},r.toJSON=function(){return this.get()},r.toString=function(){return this.name_+"["+this.value_+"]"},r.valueOf=function(){return y_(this.get())},r[Symbol.toPrimitive]=function(){return this.valueOf()},t}(Ba),SW=Pa("ObservableValue",Fa),so=function(){function e(r){this.dependenciesState_=St.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=St.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new nv(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=uo.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,r.get||_e(31),this.derivation=r.get,this.name_=r.name||(process.env.NODE_ENV!=="production"?"ComputedValue@"+io():"ComputedValue"),r.set&&(this.setter_=hu(process.env.NODE_ENV!=="production"?this.name_+"-setter":"ComputedValue-setter",r.set)),this.equals_=r.equals||(r.compareStructural||r.struct?ac.structural:ac.default),this.scope_=r.context,this.requiresReaction_=r.requiresReaction,this.keepAlive_=!!r.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){NW(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.get=function(){if(this.isComputing&&_e(32,this.name_,this.derivation),he.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Kb(this)&&(this.warnAboutUntrackedRead_(),lo(),this.value_=this.computeValue_(!1),co());else if(R_(this),Kb(this)){var n=he.trackingContext;this.keepAlive_&&!n&&(he.trackingContext=this),this.trackAndCompute()&&kW(this),he.trackingContext=n}var o=this.value_;if(ov(o))throw o.cause;return o},t.set=function(n){if(this.setter_){this.isRunningSetter&&_e(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,n)}finally{this.isRunningSetter=!1}}else _e(34,this.name_)},t.trackAndCompute=function(){var n=this.value_,o=this.dependenciesState_===St.NOT_TRACKING_,i=this.computeValue_(!0),a=o||ov(n)||ov(i)||!this.equals_(n,i);return a&&(this.value_=i,process.env.NODE_ENV!=="production"&&Jr()&&vu({observableKind:"computed",debugObjectName:this.name_,object:this.scope_,type:"update",oldValue:n,newValue:i})),a},t.computeValue_=function(n){this.isComputing=!0;var o=tv(!1),i;if(n)i=j_(this,this.derivation,this.scope_);else if(he.disableErrorBoundaries===!0)i=this.derivation.call(this.scope_);else try{i=this.derivation.call(this.scope_)}catch(a){i=new nv(a)}return rv(o),this.isComputing=!1,i},t.suspend_=function(){this.keepAlive_||(Gb(this),this.value_=void 0,process.env.NODE_ENV!=="production"&&this.isTracing_!==uo.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' was suspended and it will recompute on the next access."))},t.observe_=function(n,o){var i=this,a=!0,s=void 0;return zW(function(){var u=i.get();if(!a||o){var l=gu();n({observableKind:"computed",debugObjectName:i.name_,type:Vo,object:i,newValue:u,oldValue:s}),Ji(l)}a=!1,s=u})},t.warnAboutUntrackedRead_=function(){process.env.NODE_ENV!=="production"&&(this.isTracing_!==uo.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."),(typeof this.requiresReaction_=="boolean"?this.requiresReaction_:he.computedRequiresReaction)&&console.warn("[mobx] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."))},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return y_(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},oc(e,[{key:"isComputing",get:function(){return Ln(this.flags_,e.isComputingMask_)},set:function(n){this.flags_=Mn(this.flags_,e.isComputingMask_,n)}},{key:"isRunningSetter",get:function(){return Ln(this.flags_,e.isRunningSetterMask_)},set:function(n){this.flags_=Mn(this.flags_,e.isRunningSetterMask_,n)}},{key:"isBeingObserved",get:function(){return Ln(this.flags_,e.isBeingObservedMask_)},set:function(n){this.flags_=Mn(this.flags_,e.isBeingObservedMask_,n)}},{key:"isPendingUnobservation",get:function(){return Ln(this.flags_,e.isPendingUnobservationMask_)},set:function(n){this.flags_=Mn(this.flags_,e.isPendingUnobservationMask_,n)}},{key:"diffValue",get:function(){return Ln(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=Mn(this.flags_,e.diffValueMask_,n===1)}}])}();so.isComputingMask_=1,so.isRunningSetterMask_=2,so.isBeingObservedMask_=4,so.isPendingUnobservationMask_=8,so.diffValueMask_=16;var Nd=Pa("ComputedValue",so),St;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(St||(St={}));var uo;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(uo||(uo={}));var nv=function(t){this.cause=void 0,this.cause=t};function ov(e){return e instanceof nv}function Kb(e){switch(e.dependenciesState_){case St.UP_TO_DATE_:return!1;case St.NOT_TRACKING_:case St.STALE_:return!0;case St.POSSIBLY_STALE_:{for(var t=Wb(!0),r=gu(),n=e.observing_,o=n.length,i=0;i<o;i++){var a=n[i];if(Nd(a)){if(he.disableErrorBoundaries)a.get();else try{a.get()}catch{return Ji(r),Td(t),!0}if(e.dependenciesState_===St.STALE_)return Ji(r),Td(t),!0}}return L_(e),Ji(r),Td(t),!1}}}function fi(e){if(process.env.NODE_ENV!=="production"){var t=e.observers_.size>0;!he.allowStateChanges&&(t||he.enforceActions==="always")&&console.warn("[MobX] "+(he.enforceActions?"Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: ":"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: ")+e.name_)}}function xW(e){process.env.NODE_ENV!=="production"&&!he.allowStateReads&&he.observableRequiresReaction&&console.warn("[mobx] Observable '"+e.name_+"' being read outside a reactive context.")}function j_(e,t,r){var n=Wb(!0);L_(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++he.runId;var o=he.trackingDerivation;he.trackingDerivation=e,he.inBatch++;var i;if(he.disableErrorBoundaries===!0)i=t.call(r);else try{i=t.call(r)}catch(a){i=new nv(a)}return he.inBatch--,he.trackingDerivation=o,DW(e),CW(e),Td(n),i}function CW(e){process.env.NODE_ENV!=="production"&&e.observing_.length===0&&(typeof e.requiresObservable_=="boolean"?e.requiresObservable_:he.reactionRequiresObservable)&&console.warn("[mobx] Derivation '"+e.name_+"' is created/updated without reading any observable value.")}function DW(e){for(var t=e.observing_,r=e.observing_=e.newObserving_,n=St.UP_TO_DATE_,o=0,i=e.unboundDepsCount_,a=0;a<i;a++){var s=r[a];s.diffValue===0&&(s.diffValue=1,o!==a&&(r[o]=s),o++),s.dependenciesState_>n&&(n=s.dependenciesState_)}for(r.length=o,e.newObserving_=null,i=t.length;i--;){var u=t[i];u.diffValue===0&&z_(u,e),u.diffValue=0}for(;o--;){var l=r[o];l.diffValue===1&&(l.diffValue=0,AW(l,e))}n!==St.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}function Gb(e){var t=e.observing_;e.observing_=[];for(var r=t.length;r--;)z_(t[r],e);e.dependenciesState_=St.NOT_TRACKING_}function I_(e){var t=gu();try{return e()}finally{Ji(t)}}function gu(){var e=he.trackingDerivation;return he.trackingDerivation=null,e}function Ji(e){he.trackingDerivation=e}function Wb(e){var t=he.allowStateReads;return he.allowStateReads=e,t}function Td(e){he.allowStateReads=e}function L_(e){if(e.dependenciesState_!==St.UP_TO_DATE_){e.dependenciesState_=St.UP_TO_DATE_;for(var t=e.observing_,r=t.length;r--;)t[r].lowestObserverState_=St.UP_TO_DATE_}}var iv=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},av=!0,M_=!1,he=function(){var e=Ug();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(av=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new iv().version&&(av=!1),av?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new iv):(setTimeout(function(){M_||_e(35)},1),new iv)}();function _W(){if((he.pendingReactions.length||he.inBatch||he.isRunningReactions)&&_e(36),M_=!0,av){var e=Ug();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),he=new iv}}function OW(){return he}function AW(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function z_(e,t){e.observers_.delete(t),e.observers_.size===0&&V_(e)}function V_(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,he.pendingUnobservations.push(e))}function lo(){he.inBatch++}function co(){if(--he.inBatch===0){K_();for(var e=he.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation=!1,r.observers_.size===0&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBUO()),r instanceof so&&r.suspend_())}he.pendingUnobservations=[]}}function R_(e){xW(e);var t=he.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&he.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&he.inBatch>0&&V_(e),!1)}function $_(e){e.lowestObserverState_!==St.STALE_&&(e.lowestObserverState_=St.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===St.UP_TO_DATE_&&(process.env.NODE_ENV!=="production"&&t.isTracing_!==uo.NONE&&H_(t,e),t.onBecomeStale_()),t.dependenciesState_=St.STALE_}))}function kW(e){e.lowestObserverState_!==St.STALE_&&(e.lowestObserverState_=St.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===St.POSSIBLY_STALE_?(t.dependenciesState_=St.STALE_,process.env.NODE_ENV!=="production"&&t.isTracing_!==uo.NONE&&H_(t,e)):t.dependenciesState_===St.UP_TO_DATE_&&(e.lowestObserverState_=St.UP_TO_DATE_)}))}function NW(e){e.lowestObserverState_===St.UP_TO_DATE_&&(e.lowestObserverState_=St.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===St.UP_TO_DATE_&&(t.dependenciesState_=St.POSSIBLY_STALE_,t.onBecomeStale_())}))}function H_(e,t){if(console.log("[mobx.trace] '"+e.name_+"' is invalidated due to a change in: '"+t.name_+"'"),e.isTracing_===uo.BREAK){var r=[];U_(eO(e),r,1),new Function(`debugger;
11
+ /*
12
+ Tracing '`+e.name_+`'
13
+
14
+ You are entering this break point because derivation '`+e.name_+"' is being traced and '"+t.name_+`' is now forcing it to update.
15
+ Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
16
+ The stackframe you are looking for is at least ~6-8 stack-frames up.
17
+
18
+ `+(e instanceof so?e.derivation.toString().replace(/[*]\//g,"/"):"")+`
19
+
20
+ The dependencies for this derivation are:
21
+
22
+ `+r.join(`
23
+ `)+`
24
+ */
25
+ `)()}}function U_(e,t,r){if(t.length>=1e3){t.push("(and many more)");return}t.push(""+" ".repeat(r-1)+e.name),e.dependencies&&e.dependencies.forEach(function(n){return U_(n,t,r+1)})}var Lo=function(){function e(r,n,o,i){r===void 0&&(r=process.env.NODE_ENV!=="production"?"Reaction@"+io():"Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=St.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=uo.NONE,this.name_=r,this.onInvalidate_=n,this.errorHandler_=o,this.requiresObservable_=i}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,he.pendingReactions.push(this),K_())},t.runReaction_=function(){if(!this.isDisposed){lo(),this.isScheduled=!1;var n=he.trackingContext;if(he.trackingContext=this,Kb(this)){this.isTrackPending=!0;try{this.onInvalidate_(),process.env.NODE_ENV!=="production"&&this.isTrackPending&&Jr()&&vu({name:this.name_,type:"scheduled-reaction"})}catch(o){this.reportExceptionInDerivation_(o)}}he.trackingContext=n,co()}},t.track=function(n){if(!this.isDisposed){lo();var o=Jr(),i;process.env.NODE_ENV!=="production"&&o&&(i=Date.now(),zn({name:this.name_,type:"reaction"})),this.isRunning=!0;var a=he.trackingContext;he.trackingContext=this;var s=j_(this,n,void 0);he.trackingContext=a,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Gb(this),ov(s)&&this.reportExceptionInDerivation_(s.cause),process.env.NODE_ENV!=="production"&&o&&Vn({time:Date.now()-i}),co()}},t.reportExceptionInDerivation_=function(n){var o=this;if(this.errorHandler_){this.errorHandler_(n,this);return}if(he.disableErrorBoundaries)throw n;var i=process.env.NODE_ENV!=="production"?"[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'":"[mobx] uncaught error in '"+this+"'";he.suppressReactionErrors?process.env.NODE_ENV!=="production"&&console.warn("[mobx] (error in reaction '"+this.name_+"' suppressed, fix error of causing action below)"):console.error(i,n),process.env.NODE_ENV!=="production"&&Jr()&&vu({type:"error",name:this.name_,message:i,error:""+n}),he.globalReactionErrorHandlers.forEach(function(a){return a(n,o)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(lo(),Gb(this),co()))},t.getDisposer_=function(n){var o=this,i=function a(){o.dispose(),n==null||n.removeEventListener==null||n.removeEventListener("abort",a)};return n==null||n.addEventListener==null||n.addEventListener("abort",i),i[Ve]=this,i},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(n){n===void 0&&(n=!1),QW(this,n)},oc(e,[{key:"isDisposed",get:function(){return Ln(this.flags_,e.isDisposedMask_)},set:function(n){this.flags_=Mn(this.flags_,e.isDisposedMask_,n)}},{key:"isScheduled",get:function(){return Ln(this.flags_,e.isScheduledMask_)},set:function(n){this.flags_=Mn(this.flags_,e.isScheduledMask_,n)}},{key:"isTrackPending",get:function(){return Ln(this.flags_,e.isTrackPendingMask_)},set:function(n){this.flags_=Mn(this.flags_,e.isTrackPendingMask_,n)}},{key:"isRunning",get:function(){return Ln(this.flags_,e.isRunningMask_)},set:function(n){this.flags_=Mn(this.flags_,e.isRunningMask_,n)}},{key:"diffValue",get:function(){return Ln(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=Mn(this.flags_,e.diffValueMask_,n===1)}}])}();Lo.isDisposedMask_=1,Lo.isScheduledMask_=2,Lo.isTrackPendingMask_=4,Lo.isRunningMask_=8,Lo.diffValueMask_=16;var q_=100,Yb=function(t){return t()};function K_(){he.inBatch>0||he.isRunningReactions||Yb(TW)}function TW(){he.isRunningReactions=!0;for(var e=he.pendingReactions,t=0;e.length>0;){++t===q_&&(console.error(process.env.NODE_ENV!=="production"?"Reaction doesn't converge to a stable state after "+q_+" iterations."+(" Probably there is a cycle in the reactive function: "+e[0]):"[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var r=e.splice(0),n=0,o=r.length;n<o;n++)r[n].runReaction_()}he.isRunningReactions=!1}var sv=Pa("Reaction",Lo);function PW(e){var t=Yb;Yb=function(n){return e(function(){return t(n)})}}function Jr(){return process.env.NODE_ENV!=="production"&&!!he.spyListeners.length}function vu(e){if(process.env.NODE_ENV!=="production"&&he.spyListeners.length)for(var t=he.spyListeners,r=0,n=t.length;r<n;r++)t[r](e)}function zn(e){if(process.env.NODE_ENV!=="production"){var t=Xi({},e,{spyReportStart:!0});vu(t)}}var BW={type:"report-end",spyReportEnd:!0};function Vn(e){process.env.NODE_ENV!=="production"&&vu(e?Xi({},e,{type:"report-end",spyReportEnd:!0}):BW)}function FW(e){return process.env.NODE_ENV==="production"?(console.warn("[mobx.spy] Is a no-op in production builds"),function(){}):(he.spyListeners.push(e),zb(function(){he.spyListeners=he.spyListeners.filter(function(t){return t!==e})}))}var Xb="action",jW="action.bound",G_="autoAction",IW="autoAction.bound",W_="<unnamed action>",Jb=kd(Xb),LW=kd(jW,{bound:!0}),Zb=kd(G_,{autoAction:!0}),MW=kd(IW,{autoAction:!0,bound:!0});function Y_(e){var t=function(n,o){if(gr(n))return hu(n.name||W_,n,e);if(gr(o))return hu(n,o,e);if(Ad(o))return(e?Zb:Jb).decorate_20223_(n,o);if(du(o))return Od(n,o,e?Zb:Jb);if(du(n))return ci(kd(e?G_:Xb,{name:n,autoAction:e}));process.env.NODE_ENV!=="production"&&_e("Invalid arguments for `action`")};return t}var Dt=Y_(!1);Object.assign(Dt,Jb);var Pd=Y_(!0);Object.assign(Pd,Zb),Dt.bound=ci(LW),Pd.bound=ci(MW);function uc(e){return B_(e.name||W_,!1,e,this,void 0)}function lc(e){return gr(e)&&e.isMobxAction===!0}function zW(e,t){var r,n,o,i;t===void 0&&(t=Mb),process.env.NODE_ENV!=="production"&&(gr(e)||_e("Autorun expects a function as first argument"),lc(e)&&_e("Autorun does not accept actions since actions are untrackable"));var a=(r=(n=t)==null?void 0:n.name)!=null?r:process.env.NODE_ENV!=="production"?e.name||"Autorun@"+io():"Autorun",s=!t.scheduler&&!t.delay,u;if(s)u=new Lo(a,function(){this.track(f)},t.onError,t.requiresObservable);else{var l=X_(t),c=!1;u=new Lo(a,function(){c||(c=!0,l(function(){c=!1,u.isDisposed||u.track(f)}))},t.onError,t.requiresObservable)}function f(){e(u)}return(o=t)!=null&&(o=o.signal)!=null&&o.aborted||u.schedule_(),u.getDisposer_((i=t)==null?void 0:i.signal)}var VW=function(t){return t()};function X_(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:VW}function Qb(e,t,r){var n,o,i;r===void 0&&(r=Mb),process.env.NODE_ENV!=="production"&&((!gr(e)||!gr(t))&&_e("First and second argument to reaction should be functions"),Sn(r)||_e("Third argument of reactions should be an object"));var a=(n=r.name)!=null?n:process.env.NODE_ENV!=="production"?"Reaction@"+io():"Reaction",s=Dt(a,r.onError?RW(r.onError,t):t),u=!r.scheduler&&!r.delay,l=X_(r),c=!0,f=!1,d,p=r.compareStructural?ac.structural:r.equals||ac.default,h=new Lo(a,function(){c||u?g():f||(f=!0,l(g))},r.onError,r.requiresObservable);function g(){if(f=!1,!h.isDisposed){var m=!1,y=d;h.track(function(){var v=F_(!1,function(){return e(h)});m=c||!p(d,v),d=v}),(c&&r.fireImmediately||!c&&m)&&s(d,y,h),c=!1}}return(o=r)!=null&&(o=o.signal)!=null&&o.aborted||h.schedule_(),h.getDisposer_((i=r)==null?void 0:i.signal)}function RW(e,t){return function(){try{return t.apply(this,arguments)}catch(r){e.call(this,r)}}}var $W="onBO",HW="onBUO";function UW(e,t,r){return Z_($W,e,t,r)}function J_(e,t,r){return Z_(HW,e,t,r)}function Z_(e,t,r,n){var o=pc(t),i=gr(n)?n:r,a=e+"L";return o[a]?o[a].add(i):o[a]=new Set([i]),function(){var s=o[a];s&&(s.delete(i),s.size===0&&delete o[a])}}var qW="never",uv="always",KW="observed";function GW(e){e.isolateGlobalState===!0&&_W();var t=e.useProxies,r=e.enforceActions;if(t!==void 0&&(he.useProxies=t===uv?!0:t===qW?!1:typeof Proxy<"u"),t==="ifavailable"&&(he.verifyProxies=!0),r!==void 0){var n=r===uv?uv:r===KW;he.enforceActions=n,he.allowStateChanges=!(n===!0||n===uv)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(o){o in e&&(he[o]=!!e[o])}),he.allowStateReads=!he.observableRequiresReaction,process.env.NODE_ENV!=="production"&&he.disableErrorBoundaries===!0&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),e.reactionScheduler&&PW(e.reactionScheduler)}function Q_(e,t,r,n){process.env.NODE_ENV!=="production"&&(arguments.length>4&&_e("'extendObservable' expected 2-4 arguments"),typeof e!="object"&&_e("'extendObservable' expects an object as first argument"),Qi(e)&&_e("'extendObservable' should not be used on maps, use map.merge instead"),Sn(t)||_e("'extendObservable' only accepts plain objects as second argument"),(fc(t)||fc(r))&&_e("Extending an object with another observable (object) is not supported"));var o=CG(t);return La(function(){var i=yu(e,n)[Ve];nc(o).forEach(function(a){i.extend_(a,o[a],r&&a in r?r[a]:!0)})}),e}function eO(e,t){return tO(pc(e,t))}function tO(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=WW(e.observing_).map(tO)),t}function WW(e){return Array.from(new Set(e))}var YW=0;function rO(){this.message="FLOW_CANCELLED"}rO.prototype=Object.create(Error.prototype);var e4=x_("flow"),XW=x_("flow.bound",{bound:!0}),cc=Object.assign(function(t,r){if(Ad(r))return e4.decorate_20223_(t,r);if(du(r))return Od(t,r,e4);process.env.NODE_ENV!=="production"&&arguments.length!==1&&_e("Flow expects single argument with generator function");var n=t,o=n.name||"<unnamed flow>",i=function(){var s=this,u=arguments,l=++YW,c=Dt(o+" - runid: "+l+" - init",n).apply(s,u),f,d=void 0,p=new Promise(function(h,g){var m=0;f=g;function y(w){d=void 0;var S;try{S=Dt(o+" - runid: "+l+" - yield "+m++,c.next).call(c,w)}catch(C){return g(C)}E(S)}function v(w){d=void 0;var S;try{S=Dt(o+" - runid: "+l+" - yield "+m++,c.throw).call(c,w)}catch(C){return g(C)}E(S)}function E(w){if(gr(w==null?void 0:w.then)){w.then(E,g);return}return w.done?h(w.value):(d=Promise.resolve(w.value),d.then(y,v))}y(void 0)});return p.cancel=Dt(o+" - runid: "+l+" - cancel",function(){try{d&&nO(d);var h=c.return(void 0),g=Promise.resolve(h.value);g.then(tc,tc),nO(g),f(new rO)}catch(m){f(m)}}),p};return i.isMobXFlow=!0,i},e4);cc.bound=ci(XW);function nO(e){gr(e.cancel)&&e.cancel()}function Bd(e){return(e==null?void 0:e.isMobXFlow)===!0}function JW(e,t){return e?bu(e)||!!e[Ve]||$b(e)||sv(e)||Nd(e):!1}function fc(e){return process.env.NODE_ENV!=="production"&&arguments.length!==1&&_e("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),JW(e)}function ZW(e){if(bu(e))return e[Ve].ownKeys_();_e(38)}function lv(e,t,r){return e.set(t,r),r}function dc(e,t){if(e==null||typeof e!="object"||e instanceof Date||!fc(e))return e;if(SW(e)||Nd(e))return dc(e.get(),t);if(t.has(e))return t.get(e);if(Id(e)){var r=lv(t,e,new Array(e.length));return e.forEach(function(a,s){r[s]=dc(a,t)}),r}if($o(e)){var n=lv(t,e,new Set);return e.forEach(function(a){n.add(dc(a,t))}),n}if(Qi(e)){var o=lv(t,e,new Map);return e.forEach(function(a,s){o.set(s,dc(a,t))}),o}else{var i=lv(t,e,{});return ZW(e).forEach(function(a){Cd.propertyIsEnumerable.call(e,a)&&(i[a]=dc(e[a],t))}),i}}function ja(e,t){return process.env.NODE_ENV!=="production"&&t&&_e("toJS no longer supports options"),dc(e,new Map)}function QW(){if(process.env.NODE_ENV!=="production"){for(var e=!1,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];typeof r[r.length-1]=="boolean"&&(e=r.pop());var o=eY(r);if(!o)return _e("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===uo.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled"),o.isTracing_=e?uo.BREAK:uo.LOG}}function eY(e){switch(e.length){case 0:return he.trackingDerivation;case 1:return pc(e[0]);case 2:return pc(e[0],e[1])}}function Zi(e,t){t===void 0&&(t=void 0),lo();try{return e.apply(t)}finally{co()}}function mu(e){return e[Ve]}var tY={has:function(t,r){return process.env.NODE_ENV!=="production"&&he.trackingDerivation&&Dd("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."),mu(t).has_(r)},get:function(t,r){return mu(t).get_(r)},set:function(t,r,n){var o;return du(r)?(process.env.NODE_ENV!=="production"&&!mu(t).values_.has(r)&&Dd("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."),(o=mu(t).set_(r,n,!0))!=null?o:!0):!1},deleteProperty:function(t,r){var n;return process.env.NODE_ENV!=="production"&&Dd("delete properties from an observable object. Use 'remove' from 'mobx' instead."),du(r)?(n=mu(t).delete_(r,!0))!=null?n:!0:!1},defineProperty:function(t,r,n){var o;return process.env.NODE_ENV!=="production"&&Dd("define property on an observable object. Use 'defineProperty' from 'mobx' instead."),(o=mu(t).defineProperty_(r,n))!=null?o:!0},ownKeys:function(t){return process.env.NODE_ENV!=="production"&&he.trackingDerivation&&Dd("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead."),mu(t).ownKeys_()},preventExtensions:function(t){_e(13)}};function rY(e,t){var r,n;return h_(),e=yu(e,t),(n=(r=e[Ve]).proxy_)!=null?n:r.proxy_=new Proxy(e,tY)}function fo(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function Fd(e,t){var r=e.interceptors_||(e.interceptors_=[]);return r.push(t),zb(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function po(e,t){var r=gu();try{for(var n=[].concat(e.interceptors_||[]),o=0,i=n.length;o<i&&(t=n[o](t),t&&!t.type&&_e(14),!!t);o++);return t}finally{Ji(r)}}function Mo(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function jd(e,t){var r=e.changeListeners_||(e.changeListeners_=[]);return r.push(t),zb(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function zo(e,t){var r=gu(),n=e.changeListeners_;if(n){n=n.slice();for(var o=0,i=n.length;o<i;o++)n[o](t);Ji(r)}}function nY(e,t,r){return La(function(){var n,o=yu(e,r)[Ve];process.env.NODE_ENV!=="production"&&t&&e[xn]&&_e("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."),(n=t)!=null||(t=NG(e)),nc(t).forEach(function(i){return o.make_(i,t[i])})}),e}var t4=Symbol("mobx-keys");function oY(e,t,r){return process.env.NODE_ENV!=="production"&&(!Sn(e)&&!Sn(Object.getPrototypeOf(e))&&_e("'makeAutoObservable' can only be used for classes that don't have a superclass"),bu(e)&&_e("makeAutoObservable can only be used on objects not already made observable")),Sn(e)?Q_(e,e,t,r):(La(function(){var n=yu(e,r)[Ve];if(!e[t4]){var o=Object.getPrototypeOf(e),i=new Set([].concat(nc(e),nc(o)));i.delete("constructor"),i.delete(Ve),_d(o,t4,i)}e[t4].forEach(function(a){return n.make_(a,t&&a in t?t[a]:!0)})}),e)}var oO="splice",Vo="update",iY=1e4,aY={get:function(t,r){var n=t[Ve];return r===Ve?n:r==="length"?n.getArrayLength_():typeof r=="string"&&!isNaN(r)?n.get_(parseInt(r)):ao(cv,r)?cv[r]:t[r]},set:function(t,r,n){var o=t[Ve];return r==="length"&&o.setArrayLength_(n),typeof r=="symbol"||isNaN(r)?t[r]=n:o.set_(parseInt(r),n),!0},preventExtensions:function(){_e(15)}},r4=function(){function e(r,n,o,i){r===void 0&&(r=process.env.NODE_ENV!=="production"?"ObservableArray@"+io():"ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=o,this.legacyMode_=i,this.atom_=new Ba(r),this.enhancer_=function(a,s){return n(a,s,process.env.NODE_ENV!=="production"?r+"[..]":"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.dehanceValues_=function(n){return this.dehancer!==void 0&&n.length>0?n.map(this.dehancer):n},t.intercept_=function(n){return Fd(this,n)},t.observe_=function(n,o){return o===void 0&&(o=!1),o&&n({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),jd(this,n)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(n){(typeof n!="number"||isNaN(n)||n<0)&&_e("Out of range: "+n);var o=this.values_.length;if(n!==o)if(n>o){for(var i=new Array(n-o),a=0;a<n-o;a++)i[a]=void 0;this.spliceWithArray_(o,0,i)}else this.spliceWithArray_(n,o-n)},t.updateArrayLength_=function(n,o){n!==this.lastKnownLength_&&_e(16),this.lastKnownLength_+=o,this.legacyMode_&&o>0&&mO(n+o+1)},t.spliceWithArray_=function(n,o,i){var a=this;fi(this.atom_);var s=this.values_.length;if(n===void 0?n=0:n>s?n=s:n<0&&(n=Math.max(0,s+n)),arguments.length===1?o=s-n:o==null?o=0:o=Math.max(0,Math.min(o,s-n)),i===void 0&&(i=Kg),fo(this)){var u=po(this,{object:this.proxy_,type:oO,index:n,removedCount:o,added:i});if(!u)return Kg;o=u.removedCount,i=u.added}if(i=i.length===0?i:i.map(function(f){return a.enhancer_(f,void 0)}),this.legacyMode_||process.env.NODE_ENV!=="production"){var l=i.length-o;this.updateArrayLength_(s,l)}var c=this.spliceItemsIntoValues_(n,o,i);return(o!==0||i.length!==0)&&this.notifyArraySplice_(n,i,c),this.dehanceValues_(c)},t.spliceItemsIntoValues_=function(n,o,i){if(i.length<iY){var a;return(a=this.values_).splice.apply(a,[n,o].concat(i))}else{var s=this.values_.slice(n,n+o),u=this.values_.slice(n+o);this.values_.length+=i.length-o;for(var l=0;l<i.length;l++)this.values_[n+l]=i[l];for(var c=0;c<u.length;c++)this.values_[n+i.length+c]=u[c];return s}},t.notifyArrayChildUpdate_=function(n,o,i){var a=!this.owned_&&Jr(),s=Mo(this),u=s||a?{observableKind:"array",object:this.proxy_,type:Vo,debugObjectName:this.atom_.name_,index:n,newValue:o,oldValue:i}:null;process.env.NODE_ENV!=="production"&&a&&zn(u),this.atom_.reportChanged(),s&&zo(this,u),process.env.NODE_ENV!=="production"&&a&&Vn()},t.notifyArraySplice_=function(n,o,i){var a=!this.owned_&&Jr(),s=Mo(this),u=s||a?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:oO,index:n,removed:i,added:o,removedCount:i.length,addedCount:o.length}:null;process.env.NODE_ENV!=="production"&&a&&zn(u),this.atom_.reportChanged(),s&&zo(this,u),process.env.NODE_ENV!=="production"&&a&&Vn()},t.get_=function(n){if(this.legacyMode_&&n>=this.values_.length){console.warn(process.env.NODE_ENV!=="production"?"[mobx.array] Attempt to read an array index ("+n+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX":"[mobx] Out of bounds read: "+n);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[n])},t.set_=function(n,o){var i=this.values_;if(this.legacyMode_&&n>i.length&&_e(17,n,i.length),n<i.length){fi(this.atom_);var a=i[n];if(fo(this)){var s=po(this,{type:Vo,object:this.proxy_,index:n,newValue:o});if(!s)return;o=s.newValue}o=this.enhancer_(o,a);var u=o!==a;u&&(i[n]=o,this.notifyArrayChildUpdate_(n,o,a))}else{for(var l=new Array(n+1-i.length),c=0;c<l.length-1;c++)l[c]=void 0;l[l.length-1]=o,this.spliceWithArray_(i.length,0,l)}},e}();function sY(e,t,r,n){return r===void 0&&(r=process.env.NODE_ENV!=="production"?"ObservableArray@"+io():"ObservableArray"),n===void 0&&(n=!1),h_(),La(function(){var o=new r4(r,t,n,!1);v_(o.values_,Ve,o);var i=new Proxy(o.values_,aY);return o.proxy_=i,e&&e.length&&o.spliceWithArray_(0,0,e),i})}var cv={clear:function(){return this.splice(0)},replace:function(t){var r=this[Ve];return r.spliceWithArray_(0,r.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var a=this[Ve];switch(arguments.length){case 0:return[];case 1:return a.spliceWithArray_(t);case 2:return a.spliceWithArray_(t,r)}return a.spliceWithArray_(t,r,o)},spliceWithArray:function(t,r,n){return this[Ve].spliceWithArray_(t,r,n)},push:function(){for(var t=this[Ve],r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.spliceWithArray_(t.values_.length,0,n),t.values_.length},pop:function(){return this.splice(Math.max(this[Ve].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[Ve],r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.spliceWithArray_(0,0,n),t.values_.length},reverse:function(){return he.trackingDerivation&&_e(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){he.trackingDerivation&&_e(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var r=this[Ve],n=r.dehanceValues_(r.values_).indexOf(t);return n>-1?(this.splice(n,1),!0):!1}};$t("at",Rn),$t("concat",Rn),$t("flat",Rn),$t("includes",Rn),$t("indexOf",Rn),$t("join",Rn),$t("lastIndexOf",Rn),$t("slice",Rn),$t("toString",Rn),$t("toLocaleString",Rn),$t("toSorted",Rn),$t("toSpliced",Rn),$t("with",Rn),$t("every",Ro),$t("filter",Ro),$t("find",Ro),$t("findIndex",Ro),$t("findLast",Ro),$t("findLastIndex",Ro),$t("flatMap",Ro),$t("forEach",Ro),$t("map",Ro),$t("some",Ro),$t("toReversed",Ro),$t("reduce",iO),$t("reduceRight",iO);function $t(e,t){typeof Array.prototype[e]=="function"&&(cv[e]=t(e))}function Rn(e){return function(){var t=this[Ve];t.atom_.reportObserved();var r=t.dehanceValues_(t.values_);return r[e].apply(r,arguments)}}function Ro(e){return function(t,r){var n=this,o=this[Ve];o.atom_.reportObserved();var i=o.dehanceValues_(o.values_);return i[e](function(a,s){return t.call(r,a,s,n)})}}function iO(e){return function(){var t=this,r=this[Ve];r.atom_.reportObserved();var n=r.dehanceValues_(r.values_),o=arguments[0];return arguments[0]=function(i,a,s){return o(i,a,s,t)},n[e].apply(n,arguments)}}var uY=Pa("ObservableArrayAdministration",r4);function Id(e){return Gg(e)&&uY(e[Ve])}var lY={},Ia="add",fv="delete",aO=function(){function e(r,n,o){var i=this;n===void 0&&(n=pu),o===void 0&&(o=process.env.NODE_ENV!=="production"?"ObservableMap@"+io():"ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Ve]=lY,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=n,this.name_=o,gr(Map)||_e(18),La(function(){i.keysAtom_=E_(process.env.NODE_ENV!=="production"?i.name_+".keys()":"ObservableMap.keys()"),i.data_=new Map,i.hasMap_=new Map,r&&i.merge(r)})}var t=e.prototype;return t.has_=function(n){return this.data_.has(n)},t.has=function(n){var o=this;if(!he.trackingDerivation)return this.has_(n);var i=this.hasMap_.get(n);if(!i){var a=i=new Fa(this.has_(n),Yg,process.env.NODE_ENV!=="production"?this.name_+"."+Vb(n)+"?":"ObservableMap.key?",!1);this.hasMap_.set(n,a),J_(a,function(){return o.hasMap_.delete(n)})}return i.get()},t.set=function(n,o){var i=this.has_(n);if(fo(this)){var a=po(this,{type:i?Vo:Ia,object:this,newValue:o,name:n});if(!a)return this;o=a.newValue}return i?this.updateValue_(n,o):this.addValue_(n,o),this},t.delete=function(n){var o=this;if(fi(this.keysAtom_),fo(this)){var i=po(this,{type:fv,object:this,name:n});if(!i)return!1}if(this.has_(n)){var a=Jr(),s=Mo(this),u=s||a?{observableKind:"map",debugObjectName:this.name_,type:fv,object:this,oldValue:this.data_.get(n).value_,name:n}:null;return process.env.NODE_ENV!=="production"&&a&&zn(u),Zi(function(){var l;o.keysAtom_.reportChanged(),(l=o.hasMap_.get(n))==null||l.setNewValue_(!1);var c=o.data_.get(n);c.setNewValue_(void 0),o.data_.delete(n)}),s&&zo(this,u),process.env.NODE_ENV!=="production"&&a&&Vn(),!0}return!1},t.updateValue_=function(n,o){var i=this.data_.get(n);if(o=i.prepareNewValue_(o),o!==he.UNCHANGED){var a=Jr(),s=Mo(this),u=s||a?{observableKind:"map",debugObjectName:this.name_,type:Vo,object:this,oldValue:i.value_,name:n,newValue:o}:null;process.env.NODE_ENV!=="production"&&a&&zn(u),i.setNewValue_(o),s&&zo(this,u),process.env.NODE_ENV!=="production"&&a&&Vn()}},t.addValue_=function(n,o){var i=this;fi(this.keysAtom_),Zi(function(){var l,c=new Fa(o,i.enhancer_,process.env.NODE_ENV!=="production"?i.name_+"."+Vb(n):"ObservableMap.key",!1);i.data_.set(n,c),o=c.value_,(l=i.hasMap_.get(n))==null||l.setNewValue_(!0),i.keysAtom_.reportChanged()});var a=Jr(),s=Mo(this),u=s||a?{observableKind:"map",debugObjectName:this.name_,type:Ia,object:this,name:n,newValue:o}:null;process.env.NODE_ENV!=="production"&&a&&zn(u),s&&zo(this,u),process.env.NODE_ENV!=="production"&&a&&Vn()},t.get=function(n){return this.has(n)?this.dehanceValue_(this.data_.get(n).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var n=this,o=this.keys();return sO({next:function(){var a=o.next(),s=a.done,u=a.value;return{done:s,value:s?void 0:n.get(u)}}})},t.entries=function(){var n=this,o=this.keys();return sO({next:function(){var a=o.next(),s=a.done,u=a.value;return{done:s,value:s?void 0:[u,n.get(u)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(n,o){for(var i=ic(this),a;!(a=i()).done;){var s=a.value,u=s[0],l=s[1];n.call(o,l,u,this)}},t.merge=function(n){var o=this;return Qi(n)&&(n=new Map(n)),Zi(function(){Sn(n)?xG(n).forEach(function(i){return o.set(i,n[i])}):Array.isArray(n)?n.forEach(function(i){var a=i[0],s=i[1];return o.set(a,s)}):rc(n)?(SG(n)||_e(19,n),n.forEach(function(i,a){return o.set(a,i)})):n!=null&&_e(20,n)}),this},t.clear=function(){var n=this;Zi(function(){I_(function(){for(var o=ic(n.keys()),i;!(i=o()).done;){var a=i.value;n.delete(a)}})})},t.replace=function(n){var o=this;return Zi(function(){for(var i=cY(n),a=new Map,s=!1,u=ic(o.data_.keys()),l;!(l=u()).done;){var c=l.value;if(!i.has(c)){var f=o.delete(c);if(f)s=!0;else{var d=o.data_.get(c);a.set(c,d)}}}for(var p=ic(i.entries()),h;!(h=p()).done;){var g=h.value,m=g[0],y=g[1],v=o.data_.has(m);if(o.set(m,y),o.data_.has(m)){var E=o.data_.get(m);a.set(m,E),v||(s=!0)}}if(!s)if(o.data_.size!==a.size)o.keysAtom_.reportChanged();else for(var w=o.data_.keys(),S=a.keys(),C=w.next(),x=S.next();!C.done;){if(C.value!==x.value){o.keysAtom_.reportChanged();break}C=w.next(),x=S.next()}o.data_=a}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(n,o){return process.env.NODE_ENV!=="production"&&o===!0&&_e("`observe` doesn't support fireImmediately=true in combination with maps."),jd(this,n)},t.intercept_=function(n){return Fd(this,n)},oc(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),Qi=Pa("ObservableMap",aO);function sO(e){return e[Symbol.toStringTag]="MapIterator",u4(e)}function cY(e){if(rc(e)||Qi(e))return e;if(Array.isArray(e))return new Map(e);if(Sn(e)){var t=new Map;for(var r in e)t.set(r,e[r]);return t}else return _e(21,e)}var fY={},uO=function(){function e(r,n,o){var i=this;n===void 0&&(n=pu),o===void 0&&(o=process.env.NODE_ENV!=="production"?"ObservableSet@"+io():"ObservableSet"),this.name_=void 0,this[Ve]=fY,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=o,gr(Set)||_e(22),this.enhancer_=function(a,s){return n(a,s,o)},La(function(){i.atom_=E_(i.name_),r&&i.replace(r)})}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.clear=function(){var n=this;Zi(function(){I_(function(){for(var o=ic(n.data_.values()),i;!(i=o()).done;){var a=i.value;n.delete(a)}})})},t.forEach=function(n,o){for(var i=ic(this),a;!(a=i()).done;){var s=a.value;n.call(o,s,s,this)}},t.add=function(n){var o=this;if(fi(this.atom_),fo(this)){var i=po(this,{type:Ia,object:this,newValue:n});if(!i)return this}if(!this.has(n)){Zi(function(){o.data_.add(o.enhancer_(n,void 0)),o.atom_.reportChanged()});var a=process.env.NODE_ENV!=="production"&&Jr(),s=Mo(this),u=s||a?{observableKind:"set",debugObjectName:this.name_,type:Ia,object:this,newValue:n}:null;a&&process.env.NODE_ENV!=="production"&&zn(u),s&&zo(this,u),a&&process.env.NODE_ENV!=="production"&&Vn()}return this},t.delete=function(n){var o=this;if(fo(this)){var i=po(this,{type:fv,object:this,oldValue:n});if(!i)return!1}if(this.has(n)){var a=process.env.NODE_ENV!=="production"&&Jr(),s=Mo(this),u=s||a?{observableKind:"set",debugObjectName:this.name_,type:fv,object:this,oldValue:n}:null;return a&&process.env.NODE_ENV!=="production"&&zn(u),Zi(function(){o.atom_.reportChanged(),o.data_.delete(n)}),s&&zo(this,u),a&&process.env.NODE_ENV!=="production"&&Vn(),!0}return!1},t.has=function(n){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(n))},t.entries=function(){var n=0,o=Array.from(this.keys()),i=Array.from(this.values());return lO({next:function(){var s=n;return n+=1,s<i.length?{value:[o[s],i[s]],done:!1}:{value:void 0,done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var n=this,o=0,i=Array.from(this.data_.values());return lO({next:function(){return o<i.length?{value:n.dehanceValue_(i[o++]),done:!1}:{value:void 0,done:!0}}})},t.intersection=function(n){if(Yi(n)&&!$o(n))return n.intersection(this);var o=new Set(this);return o.intersection(n)},t.union=function(n){if(Yi(n)&&!$o(n))return n.union(this);var o=new Set(this);return o.union(n)},t.difference=function(n){return new Set(this).difference(n)},t.symmetricDifference=function(n){if(Yi(n)&&!$o(n))return n.symmetricDifference(this);var o=new Set(this);return o.symmetricDifference(n)},t.isSubsetOf=function(n){return new Set(this).isSubsetOf(n)},t.isSupersetOf=function(n){return new Set(this).isSupersetOf(n)},t.isDisjointFrom=function(n){if(Yi(n)&&!$o(n))return n.isDisjointFrom(this);var o=new Set(this);return o.isDisjointFrom(n)},t.replace=function(n){var o=this;return $o(n)&&(n=new Set(n)),Zi(function(){Array.isArray(n)?(o.clear(),n.forEach(function(i){return o.add(i)})):Yi(n)?(o.clear(),n.forEach(function(i){return o.add(i)})):n!=null&&_e("Cannot initialize set from "+n)}),this},t.observe_=function(n,o){return process.env.NODE_ENV!=="production"&&o===!0&&_e("`observe` doesn't support fireImmediately=true in combination with sets."),jd(this,n)},t.intercept_=function(n){return Fd(this,n)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},oc(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),$o=Pa("ObservableSet",uO);function lO(e){return e[Symbol.toStringTag]="SetIterator",u4(e)}var cO=Object.create(null),fO="remove",n4=function(){function e(r,n,o,i){n===void 0&&(n=new Map),i===void 0&&(i=tW),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=r,this.values_=n,this.name_=o,this.defaultAnnotation_=i,this.keysAtom_=new Ba(process.env.NODE_ENV!=="production"?this.name_+".keys":"ObservableObject.keys"),this.isPlainObject_=Sn(this.target_),process.env.NODE_ENV!=="production"&&!SO(this.defaultAnnotation_)&&_e("defaultAnnotation must be valid annotation"),process.env.NODE_ENV!=="production"&&(this.appliedAnnotations_={})}var t=e.prototype;return t.getObservablePropValue_=function(n){return this.values_.get(n).get()},t.setObservablePropValue_=function(n,o){var i=this.values_.get(n);if(i instanceof so)return i.set(o),!0;if(fo(this)){var a=po(this,{type:Vo,object:this.proxy_||this.target_,name:n,newValue:o});if(!a)return null;o=a.newValue}if(o=i.prepareNewValue_(o),o!==he.UNCHANGED){var s=Mo(this),u=process.env.NODE_ENV!=="production"&&Jr(),l=s||u?{type:Vo,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:i.value_,name:n,newValue:o}:null;process.env.NODE_ENV!=="production"&&u&&zn(l),i.setNewValue_(o),s&&zo(this,l),process.env.NODE_ENV!=="production"&&u&&Vn()}return!0},t.get_=function(n){return he.trackingDerivation&&!ao(this.target_,n)&&this.has_(n),this.target_[n]},t.set_=function(n,o,i){return i===void 0&&(i=!1),ao(this.target_,n)?this.values_.has(n)?this.setObservablePropValue_(n,o):i?Reflect.set(this.target_,n,o):(this.target_[n]=o,!0):this.extend_(n,{value:o,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,i)},t.has_=function(n){if(!he.trackingDerivation)return n in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var o=this.pendingKeys_.get(n);return o||(o=new Fa(n in this.target_,Yg,process.env.NODE_ENV!=="production"?this.name_+"."+Vb(n)+"?":"ObservableObject.key?",!1),this.pendingKeys_.set(n,o)),o.get()},t.make_=function(n,o){if(o===!0&&(o=this.defaultAnnotation_),o!==!1){if(hO(this,o,n),!(n in this.target_)){var i;if((i=this.target_[xn])!=null&&i[n])return;_e(1,o.annotationType_,this.name_+"."+n.toString())}for(var a=this.target_;a&&a!==Cd;){var s=qg(a,n);if(s){var u=o.make_(this,n,s,a);if(u===0)return;if(u===1)break}a=Object.getPrototypeOf(a)}pO(this,o,n)}},t.extend_=function(n,o,i,a){if(a===void 0&&(a=!1),i===!0&&(i=this.defaultAnnotation_),i===!1)return this.defineProperty_(n,o,a);hO(this,i,n);var s=i.extend_(this,n,o,a);return s&&pO(this,i,n),s},t.defineProperty_=function(n,o,i){i===void 0&&(i=!1),fi(this.keysAtom_);try{lo();var a=this.delete_(n);if(!a)return a;if(fo(this)){var s=po(this,{object:this.proxy_||this.target_,name:n,type:Ia,newValue:o.value});if(!s)return null;var u=s.newValue;o.value!==u&&(o=Xi({},o,{value:u}))}if(i){if(!Reflect.defineProperty(this.target_,n,o))return!1}else li(this.target_,n,o);this.notifyPropertyAddition_(n,o.value)}finally{co()}return!0},t.defineObservableProperty_=function(n,o,i,a){a===void 0&&(a=!1),fi(this.keysAtom_);try{lo();var s=this.delete_(n);if(!s)return s;if(fo(this)){var u=po(this,{object:this.proxy_||this.target_,name:n,type:Ia,newValue:o});if(!u)return null;o=u.newValue}var l=dO(n),c={configurable:he.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:l.get,set:l.set};if(a){if(!Reflect.defineProperty(this.target_,n,c))return!1}else li(this.target_,n,c);var f=new Fa(o,i,process.env.NODE_ENV!=="production"?this.name_+"."+n.toString():"ObservableObject.key",!1);this.values_.set(n,f),this.notifyPropertyAddition_(n,f.value_)}finally{co()}return!0},t.defineComputedProperty_=function(n,o,i){i===void 0&&(i=!1),fi(this.keysAtom_);try{lo();var a=this.delete_(n);if(!a)return a;if(fo(this)){var s=po(this,{object:this.proxy_||this.target_,name:n,type:Ia,newValue:void 0});if(!s)return null}o.name||(o.name=process.env.NODE_ENV!=="production"?this.name_+"."+n.toString():"ObservableObject.key"),o.context=this.proxy_||this.target_;var u=dO(n),l={configurable:he.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(i){if(!Reflect.defineProperty(this.target_,n,l))return!1}else li(this.target_,n,l);this.values_.set(n,new so(o)),this.notifyPropertyAddition_(n,void 0)}finally{co()}return!0},t.delete_=function(n,o){if(o===void 0&&(o=!1),fi(this.keysAtom_),!ao(this.target_,n))return!0;if(fo(this)){var i=po(this,{object:this.proxy_||this.target_,name:n,type:fO});if(!i)return null}try{var a;lo();var s=Mo(this),u=process.env.NODE_ENV!=="production"&&Jr(),l=this.values_.get(n),c=void 0;if(!l&&(s||u)){var f;c=(f=qg(this.target_,n))==null?void 0:f.value}if(o){if(!Reflect.deleteProperty(this.target_,n))return!1}else delete this.target_[n];if(process.env.NODE_ENV!=="production"&&delete this.appliedAnnotations_[n],l&&(this.values_.delete(n),l instanceof Fa&&(c=l.value_),$_(l)),this.keysAtom_.reportChanged(),(a=this.pendingKeys_)==null||(a=a.get(n))==null||a.set(n in this.target_),s||u){var d={type:fO,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:n};process.env.NODE_ENV!=="production"&&u&&zn(d),s&&zo(this,d),process.env.NODE_ENV!=="production"&&u&&Vn()}}finally{co()}return!0},t.observe_=function(n,o){return process.env.NODE_ENV!=="production"&&o===!0&&_e("`observe` doesn't support the fire immediately property for observable objects."),jd(this,n)},t.intercept_=function(n){return Fd(this,n)},t.notifyPropertyAddition_=function(n,o){var i,a=Mo(this),s=process.env.NODE_ENV!=="production"&&Jr();if(a||s){var u=a||s?{type:Ia,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:n,newValue:o}:null;process.env.NODE_ENV!=="production"&&s&&zn(u),a&&zo(this,u),process.env.NODE_ENV!=="production"&&s&&Vn()}(i=this.pendingKeys_)==null||(i=i.get(n))==null||i.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),nc(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function yu(e,t){var r;if(process.env.NODE_ENV!=="production"&&t&&bu(e)&&_e("Options can't be provided for already observable objects."),ao(e,Ve))return process.env.NODE_ENV!=="production"&&!(yO(e)instanceof n4)&&_e("Cannot convert '"+dv(e)+`' into observable object:
26
+ The target is already observable of different type.
27
+ Extending builtins is not supported.`),e;process.env.NODE_ENV!=="production"&&!Object.isExtensible(e)&&_e("Cannot make the designated object observable; it is not extensible");var n=(r=t==null?void 0:t.name)!=null?r:process.env.NODE_ENV!=="production"?(Sn(e)?"ObservableObject":e.constructor.name)+"@"+io():"ObservableObject",o=new n4(e,new Map,String(n),dW(t));return _d(e,Ve,o),e}var dY=Pa("ObservableObjectAdministration",n4);function dO(e){return cO[e]||(cO[e]={get:function(){return this[Ve].getObservablePropValue_(e)},set:function(r){return this[Ve].setObservablePropValue_(e,r)}})}function bu(e){return Gg(e)?dY(e[Ve]):!1}function pO(e,t,r){var n;process.env.NODE_ENV!=="production"&&(e.appliedAnnotations_[r]=t),(n=e.target_[xn])==null||delete n[r]}function hO(e,t,r){if(process.env.NODE_ENV!=="production"&&!SO(t)&&_e("Cannot annotate '"+e.name_+"."+r.toString()+"': Invalid annotation."),process.env.NODE_ENV!=="production"&&!Xg(t)&&ao(e.appliedAnnotations_,r)){var n=e.name_+"."+r.toString(),o=e.appliedAnnotations_[r].annotationType_,i=t.annotationType_;_e("Cannot apply '"+i+"' to '"+n+"':"+(`
28
+ The field is already annotated with '`+o+"'.")+`
29
+ Re-annotating fields is not allowed.
30
+ Use 'override' annotation for methods overridden by subclass.`)}}var pY=vO(0),hY=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),o4=0,gO=function(){};function gY(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}gY(gO,Array.prototype);var i4=function(e){function t(n,o,i,a){var s;return i===void 0&&(i=process.env.NODE_ENV!=="production"?"ObservableArray@"+io():"ObservableArray"),a===void 0&&(a=!1),s=e.call(this)||this,La(function(){var u=new r4(i,o,a,!0);u.proxy_=s,v_(s,Ve,u),n&&n.length&&s.spliceWithArray(0,0,n),hY&&Object.defineProperty(s,"0",pY)}),s}w_(t,e);var r=t.prototype;return r.concat=function(){this[Ve].atom_.reportObserved();for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return Array.prototype.concat.apply(this.slice(),i.map(function(s){return Id(s)?s.slice():s}))},r[Symbol.iterator]=function(){var n=this,o=0;return u4({next:function(){return o<n.length?{value:n[o++],done:!1}:{done:!0,value:void 0}}})},oc(t,[{key:"length",get:function(){return this[Ve].getArrayLength_()},set:function(o){this[Ve].setArrayLength_(o)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(gO);Object.entries(cv).forEach(function(e){var t=e[0],r=e[1];t!=="concat"&&_d(i4.prototype,t,r)});function vO(e){return{enumerable:!1,configurable:!0,get:function(){return this[Ve].get_(e)},set:function(r){this[Ve].set_(e,r)}}}function vY(e){li(i4.prototype,""+e,vO(e))}function mO(e){if(e>o4){for(var t=o4;t<e+100;t++)vY(t);o4=e}}mO(1e3);function mY(e,t,r){return new i4(e,t,r)}function pc(e,t){if(typeof e=="object"&&e!==null){if(Id(e))return t!==void 0&&_e(23),e[Ve].atom_;if($o(e))return e.atom_;if(Qi(e)){if(t===void 0)return e.keysAtom_;var r=e.data_.get(t)||e.hasMap_.get(t);return r||_e(25,t,dv(e)),r}if(bu(e)){if(!t)return _e(26);var n=e[Ve].values_.get(t);return n||_e(27,t,dv(e)),n}if($b(e)||Nd(e)||sv(e))return e}else if(gr(e)&&sv(e[Ve]))return e[Ve];_e(28)}function yO(e,t){if(e||_e(29),$b(e)||Nd(e)||sv(e)||Qi(e)||$o(e))return e;if(e[Ve])return e[Ve];_e(24,e)}function dv(e,t){var r;if(t!==void 0)r=pc(e,t);else{if(lc(e))return e.name;bu(e)||Qi(e)||$o(e)?r=yO(e):r=pc(e)}return r.name_}function La(e){var t=gu(),r=tv(!0);lo();try{return e()}finally{co(),rv(r),Ji(t)}}var bO=Cd.toString;function a4(e,t,r){return r===void 0&&(r=-1),s4(e,t,r)}function s4(e,t,r,n,o){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var i=typeof e;if(i!=="function"&&i!=="object"&&typeof t!="object")return!1;var a=bO.call(e);if(a!==bO.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":r>=0&&r++;break}e=wO(e),t=wO(t);var s=a==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(gr(u)&&u instanceof u&&gr(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(r===0)return!1;r<0&&(r=-1),n=n||[],o=o||[];for(var c=n.length;c--;)if(n[c]===e)return o[c]===t;if(n.push(e),o.push(t),s){if(c=e.length,c!==t.length)return!1;for(;c--;)if(!s4(e[c],t[c],r-1,n,o))return!1}else{var f=Object.keys(e),d;if(c=f.length,Object.keys(t).length!==c)return!1;for(;c--;)if(d=f[c],!(ao(t,d)&&s4(e[d],t[d],r-1,n,o)))return!1}return n.pop(),o.pop(),!0}function wO(e){return Id(e)?e.slice():rc(e)||Qi(e)||Yi(e)||$o(e)?Array.from(e.entries()):e}var EO,yY=((EO=Ug().Iterator)==null?void 0:EO.prototype)||{};function u4(e){return e[Symbol.iterator]=bY,Object.assign(Object.create(yY),e)}function bY(){return this}function SO(e){return e instanceof Object&&typeof e.annotationType_=="string"&&gr(e.make_)&&gr(e.extend_)}["Symbol","Map","Set"].forEach(function(e){var t=Ug();typeof t[e]>"u"&&_e("MobX requires global '"+e+"' to be available or polyfilled")}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:FW,extras:{getDebugName:dv},$mobx:Ve});var Ld=function(t){return typeof t.children=="function"?N.createElement(N.Fragment,null,t.children()):N.createElement(N.Fragment,null,t.children||null)},wu=function(t){var r=t.children,n=r===void 0?null:r;return Ld({children:n})},xO=function(t){var r=t.children,n=r===void 0?null:r;return Ld({children:n})},di=function(t){return Ld(t)},CO=function(t){return Ld(t)},DO=function(t){var r=!!(typeof t=="function"?t():t);return r};function Md(){Md=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(k,M,I){k[M]=I.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(k,M,I){return Object.defineProperty(k,M,{value:I,enumerable:!0,configurable:!0,writable:!0}),k[M]}try{u({},"")}catch{u=function(M,I,T){return M[I]=T}}function l(k,M,I,T){var F=M&&M.prototype instanceof d?M:d,U=Object.create(F.prototype),R=new P(T||[]);return n(U,"_invoke",{value:S(k,I,R)}),U}function c(k,M,I){try{return{type:"normal",arg:k.call(M,I)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var g={};u(g,i,function(){return this});var m=Object.getPrototypeOf,y=m&&m(m(q([])));y&&y!==t&&r.call(y,i)&&(g=y);var v=h.prototype=d.prototype=Object.create(g);function E(k){["next","throw","return"].forEach(function(M){u(k,M,function(I){return this._invoke(M,I)})})}function w(k,M){function I(F,U,R,Z){var re=c(k[F],k,U);if(re.type!=="throw"){var O=re.arg,A=O.value;return A&&typeof A=="object"&&r.call(A,"__await")?M.resolve(A.__await).then(function(V){I("next",V,R,Z)},function(V){I("throw",V,R,Z)}):M.resolve(A).then(function(V){O.value=V,R(O)},function(V){return I("throw",V,R,Z)})}Z(re.arg)}var T;n(this,"_invoke",{value:function(F,U){function R(){return new M(function(Z,re){I(F,U,Z,re)})}return T=T?T.then(R,R):R()}})}function S(k,M,I){var T="suspendedStart";return function(F,U){if(T==="executing")throw new Error("Generator is already running");if(T==="completed"){if(F==="throw")throw U;return H()}for(I.method=F,I.arg=U;;){var R=I.delegate;if(R){var Z=C(R,I);if(Z){if(Z===f)continue;return Z}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(T==="suspendedStart")throw T="completed",I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);T="executing";var re=c(k,M,I);if(re.type==="normal"){if(T=I.done?"completed":"suspendedYield",re.arg===f)continue;return{value:re.arg,done:I.done}}re.type==="throw"&&(T="completed",I.method="throw",I.arg=re.arg)}}}function C(k,M){var I=M.method,T=k.iterator[I];if(T===void 0)return M.delegate=null,I==="throw"&&k.iterator.return&&(M.method="return",M.arg=void 0,C(k,M),M.method==="throw")||I!=="return"&&(M.method="throw",M.arg=new TypeError("The iterator does not provide a '"+I+"' method")),f;var F=c(T,k.iterator,M.arg);if(F.type==="throw")return M.method="throw",M.arg=F.arg,M.delegate=null,f;var U=F.arg;return U?U.done?(M[k.resultName]=U.value,M.next=k.nextLoc,M.method!=="return"&&(M.method="next",M.arg=void 0),M.delegate=null,f):U:(M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,f)}function x(k){var M={tryLoc:k[0]};1 in k&&(M.catchLoc=k[1]),2 in k&&(M.finallyLoc=k[2],M.afterLoc=k[3]),this.tryEntries.push(M)}function _(k){var M=k.completion||{};M.type="normal",delete M.arg,k.completion=M}function P(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(x,this),this.reset(!0)}function q(k){if(k){var M=k[i];if(M)return M.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var I=-1,T=function F(){for(;++I<k.length;)if(r.call(k,I))return F.value=k[I],F.done=!1,F;return F.value=void 0,F.done=!0,F};return T.next=T}}return{next:H}}function H(){return{value:void 0,done:!0}}return p.prototype=h,n(v,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(k){var M=typeof k=="function"&&k.constructor;return!!M&&(M===p||(M.displayName||M.name)==="GeneratorFunction")},e.mark=function(k){return Object.setPrototypeOf?Object.setPrototypeOf(k,h):(k.__proto__=h,u(k,s,"GeneratorFunction")),k.prototype=Object.create(v),k},e.awrap=function(k){return{__await:k}},E(w.prototype),u(w.prototype,a,function(){return this}),e.AsyncIterator=w,e.async=function(k,M,I,T,F){F===void 0&&(F=Promise);var U=new w(l(k,M,I,T),F);return e.isGeneratorFunction(M)?U:U.next().then(function(R){return R.done?R.value:U.next()})},E(v),u(v,s,"Generator"),u(v,i,function(){return this}),u(v,"toString",function(){return"[object Generator]"}),e.keys=function(k){var M=Object(k),I=[];for(var T in M)I.push(T);return I.reverse(),function F(){for(;I.length;){var U=I.pop();if(U in M)return F.value=U,F.done=!1,F}return F.done=!0,F}},e.values=q,P.prototype={constructor:P,reset:function(k){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!k)for(var M in this)M.charAt(0)==="t"&&r.call(this,M)&&!isNaN(+M.slice(1))&&(this[M]=void 0)},stop:function(){this.done=!0;var k=this.tryEntries[0].completion;if(k.type==="throw")throw k.arg;return this.rval},dispatchException:function(k){if(this.done)throw k;var M=this;function I(re,O){return U.type="throw",U.arg=k,M.next=re,O&&(M.method="next",M.arg=void 0),!!O}for(var T=this.tryEntries.length-1;T>=0;--T){var F=this.tryEntries[T],U=F.completion;if(F.tryLoc==="root")return I("end");if(F.tryLoc<=this.prev){var R=r.call(F,"catchLoc"),Z=r.call(F,"finallyLoc");if(R&&Z){if(this.prev<F.catchLoc)return I(F.catchLoc,!0);if(this.prev<F.finallyLoc)return I(F.finallyLoc)}else if(R){if(this.prev<F.catchLoc)return I(F.catchLoc,!0)}else{if(!Z)throw new Error("try statement without catch or finally");if(this.prev<F.finallyLoc)return I(F.finallyLoc)}}}},abrupt:function(k,M){for(var I=this.tryEntries.length-1;I>=0;--I){var T=this.tryEntries[I];if(T.tryLoc<=this.prev&&r.call(T,"finallyLoc")&&this.prev<T.finallyLoc){var F=T;break}}F&&(k==="break"||k==="continue")&&F.tryLoc<=M&&M<=F.finallyLoc&&(F=null);var U=F?F.completion:{};return U.type=k,U.arg=M,F?(this.method="next",this.next=F.finallyLoc,f):this.complete(U)},complete:function(k,M){if(k.type==="throw")throw k.arg;return k.type==="break"||k.type==="continue"?this.next=k.arg:k.type==="return"?(this.rval=this.arg=k.arg,this.method="return",this.next="end"):k.type==="normal"&&M&&(this.next=M),f},finish:function(k){for(var M=this.tryEntries.length-1;M>=0;--M){var I=this.tryEntries[M];if(I.finallyLoc===k)return this.complete(I.completion,I.afterLoc),_(I),f}},catch:function(k){for(var M=this.tryEntries.length-1;M>=0;--M){var I=this.tryEntries[M];if(I.tryLoc===k){var T=I.completion;if(T.type==="throw"){var F=T.arg;_(I)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(k,M,I){return this.delegate={iterator:q(k),resultName:M,nextLoc:I},this.method==="next"&&(this.arg=void 0),f}},e}function _O(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(l){r(l);return}s.done?t(u):Promise.resolve(u).then(n,o)}function OO(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(u){_O(i,n,o,a,s,"next",u)}function s(u){_O(i,n,o,a,s,"throw",u)}a(void 0)})}}function hc(){return hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hc.apply(this,arguments)}function l4(e){return typeof e=="function"}function wY(e){return Reflect.has(e,"then")&&l4(e.then)}function EY(e){return Reflect.has(e,"catch")&&l4(e.catch)}function c4(e){return typeof e!="object"||e===null?!1:e instanceof Promise||e!==Promise.prototype&&wY(e)&&EY(e)}var SY=function(t,r){if(!Array.isArray(t)||!Array.isArray(r))throw new Error("shallowArraysEqual only accepts arrays as parameters");if(t.length!==r.length)return!1;for(var n=0;n<t.length;++n)if(t[n]!==r[n])return!1;return!0},xY=function(t){if(!c4(t))throw new Error("Argument of createCancellablePromise should be a Promise");var r={value:!1},n=new Promise(function(){var o=OO(Md().mark(function i(a,s){var u;return Md().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,c.next=3,t;case 3:return u=c.sent,c.abrupt("return",!r.value&&a(u));case 7:c.prev=7,c.t0=c.catch(0),!r.value&&s(c.t0);case 10:case"end":return c.stop()}},i,null,[[0,7]])}));return function(i,a){return o.apply(this,arguments)}}());return Object.keys(t).forEach(function(o){n[o]=t[o]}),{promise:n,cancel:function(){r.value=!0}}},CY=function(t,r){r===void 0&&(r=[]);var n=N.useRef(!1),o=N.useRef([]);if(typeof t!="function")throw new Error("Incorrect callback parameter for useSingleton hook; expected a function, but got: '"+typeof t+"'.");if(!Array.isArray(r))throw new Error("Incorrect dependencies parameter for useSingleton; expected an array, but got: '"+typeof r+"'.");var i=Array.isArray(r)&&r.length>0;if(i){var a=!SY(o.current,r);if(a)o.current=r;else if(n.current)return}else if(n.current)return;t(),n.current=!0},pi=function(t){return Ld(t)};function DY(e){var t=e.promise,r=e.keepAlive,n=r===void 0?!1:r,o=e.children,i=N.useState(null),a=i[0],s=i[1],u=N.useState(null),l=u[0],c=u[1],f=N.useMemo(function(){return xY(t)},[t]),d=N.useRef([]);if(N.useEffect(function(){return function(){n||f.cancel()}},[f,f.promise,n]),CY(OO(Md().mark(function v(){var E;return Md().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return s(null),c(null),S.prev=2,S.next=5,f.promise;case 5:E=S.sent,c(E),s(!0),d.current.push(f),S.next=16;break;case 11:S.prev=11,S.t0=S.catch(2),c(S.t0),s(!1),d.current.push(f);case 16:case"end":return S.stop()}},v,null,[[2,11]])})),[f.promise]),!o||!c4(t))return null;if(a===null){var p=N.Children.toArray(o).find(function(v){return v.type===CO});return N.createElement(N.Fragment,null,p||null)}if(!a){var h=N.Children.toArray(o).find(function(v){return v.type===di});if(!h)return N.createElement(N.Fragment,null,null);var g=h;return typeof h.props.children=="function"&&(g=hc({},h,{props:hc({},h.props,{children:function(){return h.props.children(l,d.current,f.promise)}})})),N.createElement(N.Fragment,null,g)}var m=N.Children.toArray(o).find(function(v){return v.type===pi});if(!m)return N.createElement(N.Fragment,null,null);var y=m;return typeof m.props.children=="function"&&(y=hc({},m,{props:hc({},m.props,{children:function(){return m.props.children(l,d.current,f.promise)}})})),N.createElement(N.Fragment,null,y)}function _Y(e,t){if(process.env.NODE_ENV!=="production"&&e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}var Eu=function(t){var r=t.condition,n=t.keepAlive,o=n===void 0?!1:n,i=t.children;if(!i)return null;if(_Y(!Array.isArray(i)&&!(i.type===di||i.type===pi)||!N.Children.toArray(i).every(function(s){return s.type===di||s.type===pi||s.type===CO}),"The <If> component should contain <Then /> <Else /> or <Fallback /> components as its children"),c4(r))return N.createElement(DY,{promise:r,keepAlive:o},i);var a=DO(r);return N.createElement(N.Fragment,null,N.Children.toArray(i).find(function(s){return s.type!==di!=!a})||null)},AO=function(t){var r,n,o=t.children,i=void 0,a=void 0;return l4(o)&&(o=o()),N.Children.forEach(o,function(s){if(N.isValidElement(s))if(!i&&s.type===wu){var u=s.props.condition,l=DO(u);l&&(i=s)}else!a&&s.type===xO&&(a=s)}),(r=(n=i)!=null?n:a)!=null?r:null},Ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function OY(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Su(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ma,pv,hv=function(e){return e&&e.Math==Math&&e},Je=hv(typeof globalThis=="object"&&globalThis)||hv(typeof window=="object"&&window)||hv(typeof self=="object"&&self)||hv(typeof Ft=="object"&&Ft)||function(){return this}()||Function("return this")(),f4=Function.prototype,kO=f4.apply,AY=f4.bind,NO=f4.call,TO=typeof Reflect=="object"&&Reflect.apply||(AY?NO.bind(kO):function(){return NO.apply(kO,arguments)}),PO=Function.prototype,d4=PO.bind,p4=PO.call,kY=d4&&d4.bind(p4),Ht=d4?function(e){return e&&kY(p4,e)}:function(e){return e&&function(){return p4.apply(e,arguments)}},Zr=function(e){return typeof e=="function"},Cn=function(e){try{return!!e()}catch{return!0}},Dn=!Cn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),zd=Function.prototype.call,$n=zd.bind?zd.bind(zd):function(){return zd.apply(zd,arguments)},BO={}.propertyIsEnumerable,FO=Object.getOwnPropertyDescriptor,NY=FO&&!BO.call({1:2},1)?function(e){var t=FO(this,e);return!!t&&t.enumerable}:BO,h4={f:NY},Ho=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},TY=Ht({}.toString),PY=Ht("".slice),xu=function(e){return PY(TY(e),8,-1)},g4=Je.Object,BY=Ht("".split),jO=Cn(function(){return!g4("z").propertyIsEnumerable(0)})?function(e){return xu(e)=="String"?BY(e,""):g4(e)}:g4,FY=Je.TypeError,v4=function(e){if(e==null)throw FY("Can't call method on "+e);return e},hi=function(e){return jO(v4(e))},ho=function(e){return typeof e=="object"?e!==null:Zr(e)},Hn={},IO=function(e){return Zr(e)?e:void 0},gc=function(e,t){return arguments.length<2?IO(Hn[e])||IO(Je[e]):Hn[e]&&Hn[e][t]||Je[e]&&Je[e][t]},Vd=Ht({}.isPrototypeOf),m4=gc("navigator","userAgent")||"",LO=Je.process,MO=Je.Deno,zO=LO&&LO.versions||MO&&MO.version,VO=zO&&zO.v8;VO&&(pv=(Ma=VO.split("."))[0]>0&&Ma[0]<4?1:+(Ma[0]+Ma[1])),!pv&&m4&&(!(Ma=m4.match(/Edge\/(\d+)/))||Ma[1]>=74)&&(Ma=m4.match(/Chrome\/(\d+)/))&&(pv=+Ma[1]);var gv,vv=pv,gi=!!Object.getOwnPropertySymbols&&!Cn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&vv&&vv<41}),y4=gi&&!Symbol.sham&&typeof Symbol.iterator=="symbol",jY=Je.Object,vc=y4?function(e){return typeof e=="symbol"}:function(e){var t=gc("Symbol");return Zr(t)&&Vd(t.prototype,jY(e))},IY=Je.String,b4=function(e){try{return IY(e)}catch{return"Object"}},LY=Je.TypeError,w4=function(e){if(Zr(e))return e;throw LY(b4(e)+" is not a function")},mv=function(e,t){var r=e[t];return r==null?void 0:w4(r)},MY=Je.TypeError,zY=Object.defineProperty,za=Je["__core-js_shared__"]||function(e,t){try{zY(Je,e,{value:t,configurable:!0,writable:!0})}catch{Je[e]=t}return t}("__core-js_shared__",{}),Cu=Su(function(e){(e.exports=function(t,r){return za[t]||(za[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),VY=Je.Object,Rd=function(e){return VY(v4(e))},RY=Ht({}.hasOwnProperty),dt=Object.hasOwn||function(e,t){return RY(Rd(e),t)},$Y=0,HY=Math.random(),UY=Ht(1 .toString),yv=function(e){return"Symbol("+(e===void 0?"":e)+")_"+UY(++$Y+HY,36)},$d=Cu("wks"),Du=Je.Symbol,RO=Du&&Du.for,qY=y4?Du:Du&&Du.withoutSetter||yv,nn=function(e){if(!dt($d,e)||!gi&&typeof $d[e]!="string"){var t="Symbol."+e;gi&&dt(Du,e)?$d[e]=Du[e]:$d[e]=y4&&RO?RO(t):qY(t)}return $d[e]},KY=Je.TypeError,GY=nn("toPrimitive"),WY=function(e,t){if(!ho(e)||vc(e))return e;var r,n=mv(e,GY);if(n){if(r=$n(n,e,t),!ho(r)||vc(r))return r;throw KY("Can't convert object to primitive value")}return function(o,i){var a,s;if(Zr(a=o.toString)&&!ho(s=$n(a,o))||Zr(a=o.valueOf)&&!ho(s=$n(a,o)))return s;throw MY("Can't convert object to primitive value")}(e)},mc=function(e){var t=WY(e,"string");return vc(t)?t:t+""},E4=Je.document,YY=ho(E4)&&ho(E4.createElement),$O=function(e){return YY?E4.createElement(e):{}},HO=!Dn&&!Cn(function(){return Object.defineProperty($O("div"),"a",{get:function(){return 7}}).a!=7}),UO=Object.getOwnPropertyDescriptor,XY=Dn?UO:function(e,t){if(e=hi(e),t=mc(t),HO)try{return UO(e,t)}catch{}if(dt(e,t))return Ho(!$n(h4.f,e,t),e[t])},bv={f:XY},JY=/#|\.prototype\./,Hd=function(e,t){var r=QY[ZY(e)];return r==tX||r!=eX&&(Zr(t)?Cn(t):!!t)},ZY=Hd.normalize=function(e){return String(e).replace(JY,".").toLowerCase()},QY=Hd.data={},eX=Hd.NATIVE="N",tX=Hd.POLYFILL="P",rX=Hd,qO=Ht(Ht.bind),S4=function(e,t){return w4(e),t===void 0?e:qO?qO(e,t):function(){return e.apply(t,arguments)}},nX=Je.String,oX=Je.TypeError,Un=function(e){if(ho(e))return e;throw oX(nX(e)+" is not an object")},iX=Je.TypeError,KO=Object.defineProperty,aX=Dn?KO:function(e,t,r){if(Un(e),t=mc(t),Un(r),HO)try{return KO(e,t,r)}catch{}if("get"in r||"set"in r)throw iX("Accessors not supported");return"value"in r&&(e[t]=r.value),e},Va={f:aX},gn=Dn?function(e,t,r){return Va.f(e,t,Ho(1,r))}:function(e,t,r){return e[t]=r,e},sX=bv.f,uX=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return TO(e,this,arguments)};return t.prototype=e.prototype,t},ea=function(e,t){var r,n,o,i,a,s,u,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?Je:d?Je[c]:(Je[c]||{}).prototype,g=f?Hn:Hn[c]||gn(Hn,c,{})[c],m=g.prototype;for(o in t)r=!rX(f?o:c+(d?".":"#")+o,e.forced)&&h&&dt(h,o),a=g[o],r&&(s=e.noTargetGet?(l=sX(h,o))&&l.value:h[o]),i=r&&s?s:t[o],r&&typeof a==typeof i||(u=e.bind&&r?S4(i,Je):e.wrap&&r?uX(i):p&&Zr(i)?Ht(i):i,(e.sham||i&&i.sham||a&&a.sham)&&gn(u,"sham",!0),gn(g,o,u),p&&(dt(Hn,n=c+"Prototype")||gn(Hn,n,{}),gn(Hn[n],o,i),e.real&&m&&!m[o]&&gn(m,o,i)))},GO=Cu("keys"),wv=function(e){return GO[e]||(GO[e]=yv(e))},lX=!Cn(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),WO=wv("IE_PROTO"),x4=Je.Object,cX=x4.prototype,Ev=lX?x4.getPrototypeOf:function(e){var t=Rd(e);if(dt(t,WO))return t[WO];var r=t.constructor;return Zr(r)&&t instanceof r?r.prototype:t instanceof x4?cX:null},fX=Je.String,dX=Je.TypeError,Sv=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Ht(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return Un(n),function(i){if(typeof i=="object"||Zr(i))return i;throw dX("Can't set "+fX(i)+" as a prototype")}(o),t?e(n,o):n.__proto__=o,n}}():void 0),pX=Math.ceil,hX=Math.floor,C4=function(e){var t=+e;return t!=t||t===0?0:(t>0?hX:pX)(t)},gX=Math.max,vX=Math.min,D4=function(e,t){var r=C4(e);return r<0?gX(r+t,0):vX(r,t)},mX=Math.min,Ud=function(e){return(t=e.length)>0?mX(C4(t),9007199254740991):0;var t},YO=function(e){return function(t,r,n){var o,i=hi(t),a=Ud(i),s=D4(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},yX={includes:YO(!0),indexOf:YO(!1)},qd={},bX=yX.indexOf,XO=Ht([].push),JO=function(e,t){var r,n=hi(e),o=0,i=[];for(r in n)!dt(qd,r)&&dt(n,r)&&XO(i,r);for(;t.length>o;)dt(n,r=t[o++])&&(~bX(i,r)||XO(i,r));return i},xv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wX=xv.concat("length","prototype"),EX=Object.getOwnPropertyNames||function(e){return JO(e,wX)},_4={f:EX},Cv={f:Object.getOwnPropertySymbols},SX=Ht([].concat),xX=gc("Reflect","ownKeys")||function(e){var t=_4.f(Un(e)),r=Cv.f;return r?SX(t,r(e)):t},O4=Object.keys||function(e){return JO(e,xv)},CX=Dn?Object.defineProperties:function(e,t){Un(e);for(var r,n=hi(t),o=O4(t),i=o.length,a=0;i>a;)Va.f(e,r=o[a++],n[r]);return e},DX=gc("document","documentElement"),ZO=wv("IE_PROTO"),A4=function(){},QO=function(e){return"<script>"+e+"<\/script>"},eA=function(e){e.write(QO("")),e.close();var t=e.parentWindow.Object;return e=null,t},Dv=function(){try{gv=new ActiveXObject("htmlfile")}catch{}var e,t;Dv=typeof document<"u"?document.domain&&gv?eA(gv):((t=$O("iframe")).style.display="none",DX.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(QO("document.F=Object")),e.close(),e.F):eA(gv);for(var r=xv.length;r--;)delete Dv.prototype[xv[r]];return Dv()};qd[ZO]=!0;var ta=Object.create||function(e,t){var r;return e!==null?(A4.prototype=Un(e),r=new A4,A4.prototype=null,r[ZO]=e):r=Dv(),t===void 0?r:CX(r,t)},k4=function(e,t,r){var n=mc(t);n in e?Va.f(e,n,Ho(0,r)):e[n]=r},_X=Je.Array,OX=Math.max,tA=function(e,t,r){for(var n=Ud(e),o=D4(t,n),i=D4(n,n),a=_X(OX(i-o,0)),s=0;o<i;o++,s++)k4(a,s,e[o]);return a.length=s,a},AX=Ht("".replace),kX=Ht("".split),NX=Ht([].join),N4=String(Error("zxcasd").stack),rA=/\n\s*at [^:]*:[^\n]*/,TX=rA.test(N4),PX=/@[^\n]*\n/.test(N4)&&!/zxcasd/.test(N4),BX=function(e,t){if(typeof e!="string")return e;if(TX)for(;t--;)e=AX(e,rA,"");else if(PX)return NX(tA(kX(e,`
31
+ `),t),`
32
+ `);return e},FX=function(e,t){ho(t)&&"cause"in t&&gn(e,"cause",t.cause)},ra={},jX=nn("iterator"),IX=Array.prototype,nA={};nA[nn("toStringTag")]="z";var T4=String(nA)==="[object z]",LX=nn("toStringTag"),MX=Je.Object,zX=xu(function(){return arguments}())=="Arguments",Kd=T4?xu:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=MX(e),LX))=="string"?r:zX?xu(t):(n=xu(t))=="Object"&&Zr(t.callee)?"Arguments":n},VX=nn("iterator"),oA=function(e){if(e!=null)return mv(e,VX)||mv(e,"@@iterator")||ra[Kd(e)]},RX=Je.TypeError,iA=function(e,t,r){var n,o;Un(e);try{if(!(n=mv(e,"return"))){if(t==="throw")throw r;return r}n=$n(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return Un(n),r},$X=Je.TypeError,_v=function(e,t){this.stopped=e,this.result=t},aA=_v.prototype,HX=function(e,t,r){var n,o,i,a,s,u,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),h=S4(t,c),g=function(y){return n&&iA(n,"normal",y),new _v(!0,y)},m=function(y){return f?(Un(y),p?h(y[0],y[1],g):h(y[0],y[1])):p?h(y,g):h(y)};if(d)n=e;else{if(!(o=oA(e)))throw $X(b4(e)+" is not iterable");if(function(y){return y!==void 0&&(ra.Array===y||IX[jX]===y)}(o)){for(i=0,a=Ud(e);a>i;i++)if((s=m(e[i]))&&Vd(aA,s))return s;return new _v(!1)}n=function(y,v){var E=arguments.length<2?oA(y):v;if(w4(E))return Un($n(E,y));throw RX(b4(y)+" is not iterable")}(e,o)}for(u=n.next;!(l=$n(u,n)).done;){try{s=m(l.value)}catch(y){iA(n,"throw",y)}if(typeof s=="object"&&s&&Vd(aA,s))return s}return new _v(!1)},UX=Je.String,Gd=function(e){if(Kd(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return UX(e)},qX=function(e,t){return e===void 0?arguments.length<2?"":t:Gd(e)},KX=!Cn(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ho(1,7)),e.stack!==7)}),GX=nn("toStringTag"),Ov=Je.Error,WX=[].push,Wd=function(e,t){var r,n=arguments.length>2?arguments[2]:void 0,o=Vd(P4,this);Sv?r=Sv(new Ov(void 0),o?Ev(this):P4):(r=o?this:ta(P4),gn(r,GX,"Error")),gn(r,"message",qX(t,"")),KX&&gn(r,"stack",BX(r.stack,1)),FX(r,n);var i=[];return HX(e,WX,{that:i}),gn(r,"errors",i),r};Sv?Sv(Wd,Ov):function(e,t){for(var r=xX(t),n=Va.f,o=bv.f,i=0;i<r.length;i++){var a=r[i];dt(e,a)||n(e,a,o(t,a))}}(Wd,Ov);var P4=Wd.prototype=ta(Ov.prototype,{constructor:Ho(1,Wd),message:Ho(1,""),name:Ho(1,"AggregateError")});ea({global:!0},{AggregateError:Wd});var YX=Ht(Function.toString);Zr(za.inspectSource)||(za.inspectSource=function(e){return YX(e)});var Av,Yd,kv,sA=za.inspectSource,uA=Je.WeakMap,XX=Zr(uA)&&/native code/.test(sA(uA)),B4=Je.TypeError,JX=Je.WeakMap;if(XX||za.state){var _u=za.state||(za.state=new JX),ZX=Ht(_u.get),lA=Ht(_u.has),QX=Ht(_u.set);Av=function(e,t){if(lA(_u,e))throw new B4("Object already initialized");return t.facade=e,QX(_u,e,t),t},Yd=function(e){return ZX(_u,e)||{}},kv=function(e){return lA(_u,e)}}else{var yc=wv("state");qd[yc]=!0,Av=function(e,t){if(dt(e,yc))throw new B4("Object already initialized");return t.facade=e,gn(e,yc,t),t},Yd=function(e){return dt(e,yc)?e[yc]:{}},kv=function(e){return dt(e,yc)}}var Ra,cA,fA,bc={set:Av,get:Yd,has:kv,enforce:function(e){return kv(e)?Yd(e):Av(e,{})},getterFor:function(e){return function(t){var r;if(!ho(t)||(r=Yd(t)).type!==e)throw B4("Incompatible receiver, "+e+" required");return r}}},dA=Function.prototype,eJ=Dn&&Object.getOwnPropertyDescriptor,F4=dt(dA,"name"),tJ={EXISTS:F4,PROPER:F4&&(function(){}).name==="something",CONFIGURABLE:F4&&(!Dn||Dn&&eJ(dA,"name").configurable)},Nv=function(e,t,r,n){gn(e,t,r)},j4=nn("iterator"),pA=!1;[].keys&&("next"in(fA=[].keys())?(cA=Ev(Ev(fA)))!==Object.prototype&&(Ra=cA):pA=!0);var rJ=Ra==null||Cn(function(){var e={};return Ra[j4].call(e)!==e});Ra=rJ?{}:ta(Ra),Zr(Ra[j4])||Nv(Ra,j4,function(){return this});var hA={IteratorPrototype:Ra,BUGGY_SAFARI_ITERATORS:pA},nJ=T4?{}.toString:function(){return"[object "+Kd(this)+"]"},oJ=Va.f,gA=nn("toStringTag"),Tv=function(e,t,r,n){if(e){var o=r?e:e.prototype;dt(o,gA)||oJ(o,gA,{configurable:!0,value:t}),n&&!T4&&gn(o,"toString",nJ)}},iJ=hA.IteratorPrototype,aJ=function(){return this},sJ=tJ.PROPER,I4=hA.BUGGY_SAFARI_ITERATORS,uJ=nn("iterator"),lJ=function(){return this},vA=function(e,t,r,n,o,i,a){(function(m,y,v,E){var w=y+" Iterator";m.prototype=ta(iJ,{next:Ho(+!E,v)}),Tv(m,w,!1,!0),ra[w]=aJ})(r,t,n);var s,u,l=function(m){if(m===o&&h)return h;if(!I4&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[uJ]||d["@@iterator"]||o&&d[o],h=!I4&&p||l(o),g=t=="Array"&&d.entries||p;return g&&(s=Ev(g.call(new e)))!==Object.prototype&&s.next&&(Tv(s,c,!0,!0),ra[c]=lJ),sJ&&o=="values"&&p&&p.name!=="values"&&(f=!0,h=function(){return $n(p,this)}),o&&(u={values:l("values"),keys:l("keys"),entries:l("entries")},a||ea({target:t,proto:!0,forced:I4||f},u)),ra[t]=h,u},cJ=bc.set,fJ=bc.getterFor("Array Iterator");vA(Array,"Array",function(e,t){cJ(this,{type:"Array Iterator",target:hi(e),index:0,kind:t})},function(){var e=fJ(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),ra.Arguments=ra.Array;var dJ=Ht("".charAt),mA=Ht("".charCodeAt),pJ=Ht("".slice),yA=function(e){return function(t,r){var n,o,i=Gd(v4(t)),a=C4(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=mA(i,a))<55296||n>56319||a+1===s||(o=mA(i,a+1))<56320||o>57343?e?dJ(i,a):n:e?pJ(i,a,a+2):o-56320+(n-55296<<10)+65536}},hJ={codeAt:yA(!1),charAt:yA(!0)}.charAt,gJ=bc.set,vJ=bc.getterFor("String Iterator");vA(String,"String",function(e){gJ(this,{type:"String Iterator",string:Gd(e),index:0})},function(){var e,t=vJ(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=hJ(r,n),t.index+=e.length,{value:e,done:!1})});var mJ=Hn.AggregateError,bA=nn("toStringTag");for(var L4 in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var wA=Je[L4],M4=wA&&wA.prototype;M4&&Kd(M4)!==bA&&gn(M4,bA,L4),ra[L4]=ra.Array}var $a,Pv,yJ=mJ,Bv=function(e){return e&&e.Math==Math&&e},qe=Bv(typeof globalThis=="object"&&globalThis)||Bv(typeof window=="object"&&window)||Bv(typeof self=="object"&&self)||Bv(typeof Ft=="object"&&Ft)||function(){return this}()||Function("return this")(),Hr=function(e){try{return!!e()}catch{return!0}},vi=!Hr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Xd=Function.prototype.call,Qr=Xd.bind?Xd.bind(Xd):function(){return Xd.apply(Xd,arguments)},EA={}.propertyIsEnumerable,SA=Object.getOwnPropertyDescriptor,bJ=SA&&!EA.call({1:2},1)?function(e){var t=SA(this,e);return!!t&&t.enumerable}:EA,wJ={f:bJ},Ha=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},xA=Function.prototype,z4=xA.bind,V4=xA.call,EJ=z4&&z4.bind(V4),Nt=z4?function(e){return e&&EJ(V4,e)}:function(e){return e&&function(){return V4.apply(e,arguments)}},SJ=Nt({}.toString),xJ=Nt("".slice),Ou=function(e){return xJ(SJ(e),8,-1)},R4=qe.Object,CJ=Nt("".split),CA=Hr(function(){return!R4("z").propertyIsEnumerable(0)})?function(e){return Ou(e)=="String"?CJ(e,""):R4(e)}:R4,DJ=qe.TypeError,Fv=function(e){if(e==null)throw DJ("Can't call method on "+e);return e},wc=function(e){return CA(Fv(e))},jr=function(e){return typeof e=="function"},mi=function(e){return typeof e=="object"?e!==null:jr(e)},_J=function(e){return jr(e)?e:void 0},Jd=function(e,t){return arguments.length<2?_J(qe[e]):qe[e]&&qe[e][t]},jv=Nt({}.isPrototypeOf),$4=Jd("navigator","userAgent")||"",DA=qe.process,_A=qe.Deno,OA=DA&&DA.versions||_A&&_A.version,AA=OA&&OA.v8;AA&&(Pv=($a=AA.split("."))[0]>0&&$a[0]<4?1:+($a[0]+$a[1])),!Pv&&$4&&(!($a=$4.match(/Edge\/(\d+)/))||$a[1]>=74)&&($a=$4.match(/Chrome\/(\d+)/))&&(Pv=+$a[1]);var kA=Pv,H4=!!Object.getOwnPropertySymbols&&!Hr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&kA&&kA<41}),U4=H4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",OJ=qe.Object,q4=U4?function(e){return typeof e=="symbol"}:function(e){var t=Jd("Symbol");return jr(t)&&jv(t.prototype,OJ(e))},AJ=qe.String,K4=function(e){try{return AJ(e)}catch{return"Object"}},kJ=qe.TypeError,G4=function(e){if(jr(e))return e;throw kJ(K4(e)+" is not a function")},Zd=function(e,t){var r=e[t];return r==null?void 0:G4(r)},NJ=qe.TypeError,TJ=Object.defineProperty,W4=function(e,t){try{TJ(qe,e,{value:t,configurable:!0,writable:!0})}catch{qe[e]=t}return t},Ua=qe["__core-js_shared__"]||W4("__core-js_shared__",{}),Y4=Su(function(e){(e.exports=function(t,r){return Ua[t]||(Ua[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),PJ=qe.Object,X4=function(e){return PJ(Fv(e))},BJ=Nt({}.hasOwnProperty),_n=Object.hasOwn||function(e,t){return BJ(X4(e),t)},FJ=0,jJ=Math.random(),IJ=Nt(1 .toString),NA=function(e){return"Symbol("+(e===void 0?"":e)+")_"+IJ(++FJ+jJ,36)},Qd=Y4("wks"),Au=qe.Symbol,TA=Au&&Au.for,LJ=U4?Au:Au&&Au.withoutSetter||NA,vn=function(e){if(!_n(Qd,e)||!H4&&typeof Qd[e]!="string"){var t="Symbol."+e;H4&&_n(Au,e)?Qd[e]=Au[e]:Qd[e]=U4&&TA?TA(t):LJ(t)}return Qd[e]},MJ=qe.TypeError,zJ=vn("toPrimitive"),VJ=function(e,t){if(!mi(e)||q4(e))return e;var r,n=Zd(e,zJ);if(n){if(r=Qr(n,e,t),!mi(r)||q4(r))return r;throw MJ("Can't convert object to primitive value")}return function(o,i){var a,s;if(jr(a=o.toString)&&!mi(s=Qr(a,o))||jr(a=o.valueOf)&&!mi(s=Qr(a,o)))return s;throw NJ("Can't convert object to primitive value")}(e)},J4=function(e){var t=VJ(e,"string");return q4(t)?t:t+""},Z4=qe.document,RJ=mi(Z4)&&mi(Z4.createElement),Q4=function(e){return RJ?Z4.createElement(e):{}},PA=!vi&&!Hr(function(){return Object.defineProperty(Q4("div"),"a",{get:function(){return 7}}).a!=7}),BA=Object.getOwnPropertyDescriptor,$J=vi?BA:function(e,t){if(e=wc(e),t=J4(t),PA)try{return BA(e,t)}catch{}if(_n(e,t))return Ha(!Qr(wJ.f,e,t),e[t])},e6={f:$J},HJ=qe.String,UJ=qe.TypeError,qn=function(e){if(mi(e))return e;throw UJ(HJ(e)+" is not an object")},qJ=qe.TypeError,FA=Object.defineProperty,KJ=vi?FA:function(e,t,r){if(qn(e),t=J4(t),qn(r),PA)try{return FA(e,t,r)}catch{}if("get"in r||"set"in r)throw qJ("Accessors not supported");return"value"in r&&(e[t]=r.value),e},Ec={f:KJ},On=vi?function(e,t,r){return Ec.f(e,t,Ha(1,r))}:function(e,t,r){return e[t]=r,e},GJ=Nt(Function.toString);jr(Ua.inspectSource)||(Ua.inspectSource=function(e){return GJ(e)});var Iv,ep,Lv,t6=Ua.inspectSource,jA=qe.WeakMap,WJ=jr(jA)&&/native code/.test(t6(jA)),IA=Y4("keys"),r6=function(e){return IA[e]||(IA[e]=NA(e))},n6={},o6=qe.TypeError,YJ=qe.WeakMap;if(WJ||Ua.state){var ku=Ua.state||(Ua.state=new YJ),XJ=Nt(ku.get),LA=Nt(ku.has),JJ=Nt(ku.set);Iv=function(e,t){if(LA(ku,e))throw new o6("Object already initialized");return t.facade=e,JJ(ku,e,t),t},ep=function(e){return XJ(ku,e)||{}},Lv=function(e){return LA(ku,e)}}else{var Sc=r6("state");n6[Sc]=!0,Iv=function(e,t){if(_n(e,Sc))throw new o6("Object already initialized");return t.facade=e,On(e,Sc,t),t},ep=function(e){return _n(e,Sc)?e[Sc]:{}},Lv=function(e){return _n(e,Sc)}}var Nu={set:Iv,get:ep,has:Lv,enforce:function(e){return Lv(e)?ep(e):Iv(e,{})},getterFor:function(e){return function(t){var r;if(!mi(t)||(r=ep(t)).type!==e)throw o6("Incompatible receiver, "+e+" required");return r}}},MA=Function.prototype,ZJ=vi&&Object.getOwnPropertyDescriptor,i6=_n(MA,"name"),a6={EXISTS:i6,PROPER:i6&&(function(){}).name==="something",CONFIGURABLE:i6&&(!vi||vi&&ZJ(MA,"name").configurable)},Tu=Su(function(e){var t=a6.CONFIGURABLE,r=Nu.get,n=Nu.enforce,o=String(String).split("String");(e.exports=function(i,a,s,u){var l,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet,p=u&&u.name!==void 0?u.name:a;jr(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!_n(s,"name")||t&&s.name!==p)&&On(s,"name",p),(l=n(s)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==qe?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=s:On(i,a,s)):f?i[a]=s:W4(a,s)})(Function.prototype,"toString",function(){return jr(this)&&r(this).source||t6(this)})}),QJ=Math.ceil,eZ=Math.floor,s6=function(e){var t=+e;return t!=t||t===0?0:(t>0?eZ:QJ)(t)},tZ=Math.max,rZ=Math.min,u6=function(e,t){var r=s6(e);return r<0?tZ(r+t,0):rZ(r,t)},nZ=Math.min,zA=function(e){return e>0?nZ(s6(e),9007199254740991):0},Mv=function(e){return zA(e.length)},VA=function(e){return function(t,r,n){var o,i=wc(t),a=Mv(i),s=u6(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},oZ={includes:VA(!0),indexOf:VA(!1)}.indexOf,RA=Nt([].push),$A=function(e,t){var r,n=wc(e),o=0,i=[];for(r in n)!_n(n6,r)&&_n(n,r)&&RA(i,r);for(;t.length>o;)_n(n,r=t[o++])&&(~oZ(i,r)||RA(i,r));return i},zv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],iZ=zv.concat("length","prototype"),aZ=Object.getOwnPropertyNames||function(e){return $A(e,iZ)},sZ={f:aZ},uZ={f:Object.getOwnPropertySymbols},lZ=Nt([].concat),cZ=Jd("Reflect","ownKeys")||function(e){var t=sZ.f(qn(e)),r=uZ.f;return r?lZ(t,r(e)):t},HA=function(e,t){for(var r=cZ(t),n=Ec.f,o=e6.f,i=0;i<r.length;i++){var a=r[i];_n(e,a)||n(e,a,o(t,a))}},fZ=/#|\.prototype\./,tp=function(e,t){var r=pZ[dZ(e)];return r==gZ||r!=hZ&&(jr(t)?Hr(t):!!t)},dZ=tp.normalize=function(e){return String(e).replace(fZ,".").toLowerCase()},pZ=tp.data={},hZ=tp.NATIVE="N",gZ=tp.POLYFILL="P",vZ=tp,mZ=e6.f,rp=function(e,t){var r,n,o,i,a,s=e.target,u=e.global,l=e.stat;if(r=u?qe:l?qe[s]||W4(s,{}):(qe[s]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=mZ(r,n))&&a.value:r[n],!vZ(u?n:s+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;HA(i,o)}(e.sham||o&&o.sham)&&On(i,"sham",!0),Tu(r,n,i,e)}},UA={};UA[vn("toStringTag")]="z";var Vv,l6=String(UA)==="[object z]",yZ=vn("toStringTag"),bZ=qe.Object,wZ=Ou(function(){return arguments}())=="Arguments",Rv=l6?Ou:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=bZ(e),yZ))=="string"?r:wZ?Ou(t):(n=Ou(t))=="Object"&&jr(t.callee)?"Arguments":n},EZ=qe.String,Pu=function(e){if(Rv(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return EZ(e)},SZ=function(){var e=qn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},c6=qe.RegExp,f6=Hr(function(){var e=c6("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),xZ=f6||Hr(function(){return!c6("a","y").sticky}),CZ=f6||Hr(function(){var e=c6("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),DZ={BROKEN_CARET:CZ,MISSED_STICKY:xZ,UNSUPPORTED_Y:f6},_Z=Object.keys||function(e){return $A(e,zv)},OZ=vi?Object.defineProperties:function(e,t){qn(e);for(var r,n=wc(t),o=_Z(t),i=o.length,a=0;i>a;)Ec.f(e,r=o[a++],n[r]);return e},AZ=Jd("document","documentElement"),qA=r6("IE_PROTO"),d6=function(){},KA=function(e){return"<script>"+e+"<\/script>"},GA=function(e){e.write(KA("")),e.close();var t=e.parentWindow.Object;return e=null,t},$v=function(){try{Vv=new ActiveXObject("htmlfile")}catch{}var e,t;$v=typeof document<"u"?document.domain&&Vv?GA(Vv):((t=Q4("iframe")).style.display="none",AZ.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(KA("document.F=Object")),e.close(),e.F):GA(Vv);for(var r=zv.length;r--;)delete $v.prototype[zv[r]];return $v()};n6[qA]=!0;var WA,p6,np=Object.create||function(e,t){var r;return e!==null?(d6.prototype=qn(e),r=new d6,d6.prototype=null,r[qA]=e):r=$v(),t===void 0?r:OZ(r,t)},kZ=qe.RegExp,NZ=Hr(function(){var e=kZ(".","s");return!(e.dotAll&&e.exec(`
33
+ `)&&e.flags==="s")}),TZ=qe.RegExp,PZ=Hr(function(){var e=TZ("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),BZ=Nu.get,FZ=Y4("native-string-replace",String.prototype.replace),Hv=RegExp.prototype.exec,h6=Hv,jZ=Nt("".charAt),IZ=Nt("".indexOf),LZ=Nt("".replace),g6=Nt("".slice),v6=(p6=/b*/g,Qr(Hv,WA=/a/,"a"),Qr(Hv,p6,"a"),WA.lastIndex!==0||p6.lastIndex!==0),YA=DZ.BROKEN_CARET,m6=/()??/.exec("")[1]!==void 0;(v6||m6||YA||NZ||PZ)&&(h6=function(e){var t,r,n,o,i,a,s,u=this,l=BZ(u),c=Pu(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=Qr(h6,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=YA&&u.sticky,h=Qr(SZ,u),g=u.source,m=0,y=c;if(p&&(h=LZ(h,"y",""),IZ(h,"g")===-1&&(h+="g"),y=g6(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&jZ(c,u.lastIndex-1)!==`
34
+ `)&&(g="(?: "+g+")",y=" "+y,m++),r=new RegExp("^(?:"+g+")",h)),m6&&(r=new RegExp("^"+g+"$(?!\\s)",h)),v6&&(n=u.lastIndex),o=Qr(Hv,p?r:u,y),p?o?(o.input=g6(o.input,m),o[0]=g6(o[0],m),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:v6&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),m6&&o&&o.length>1&&Qr(FZ,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=np(null),i=0;i<d.length;i++)a[(s=d[i])[0]]=o[s[1]];return o});var Uv=h6;rp({target:"RegExp",proto:!0,forced:/./.exec!==Uv},{exec:Uv});var MZ=vn("species"),XA=RegExp.prototype,zZ=Nt("".charAt),JA=Nt("".charCodeAt),VZ=Nt("".slice),ZA=function(e){return function(t,r){var n,o,i=Pu(Fv(t)),a=s6(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=JA(i,a))<55296||n>56319||a+1===s||(o=JA(i,a+1))<56320||o>57343?e?zZ(i,a):n:e?VZ(i,a,a+2):o-56320+(n-55296<<10)+65536}},QA={codeAt:ZA(!1),charAt:ZA(!0)},RZ=QA.charAt,$Z=function(e,t,r){return t+(r?RZ(e,t).length:1)},HZ=qe.TypeError,ek=function(e,t){var r=e.exec;if(jr(r)){var n=Qr(r,e,t);return n!==null&&qn(n),n}if(Ou(e)==="RegExp")return Qr(Uv,e,t);throw HZ("RegExp#exec called on incompatible receiver")};(function(e,t,r,n){var o=vn(e),i=!Hr(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!Hr(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[MZ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var s=Nt(/./[o]),u=t(o,""[e],function(l,c,f,d,p){var h=Nt(l),g=c.exec;return g===Uv||g===XA.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:h(f,c,d)}:{done:!1}});Tu(String.prototype,e,u[0]),Tu(XA,o,u[1])}})("match",function(e,t,r){return[function(n){var o=Fv(this),i=n==null?void 0:Zd(n,e);return i?Qr(i,n,o):new RegExp(n)[e](Pu(o))},function(n){var o=qn(this),i=Pu(n),a=r(t,o,i);if(a.done)return a.value;if(!o.global)return ek(o,i);var s=o.unicode;o.lastIndex=0;for(var u,l=[],c=0;(u=ek(o,i))!==null;){var f=Pu(u[0]);l[c]=f,f===""&&(o.lastIndex=$Z(i,zA(o.lastIndex),s)),c++}return c===0?null:l}]}),rp({global:!0},{globalThis:qe});var UZ=!Hr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),tk=r6("IE_PROTO"),y6=qe.Object,qZ=y6.prototype,op=UZ?y6.getPrototypeOf:function(e){var t=X4(e);if(_n(t,tk))return t[tk];var r=t.constructor;return jr(r)&&t instanceof r?r.prototype:t instanceof y6?qZ:null},KZ=qe.String,GZ=qe.TypeError,xc=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Nt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return qn(n),function(i){if(typeof i=="object"||jr(i))return i;throw GZ("Can't set "+KZ(i)+" as a prototype")}(o),t?e(n,o):n.__proto__=o,n}}():void 0),WZ=qe.Array,YZ=Math.max,XZ=Nt("".replace),JZ=Nt("".split),ZZ=Nt([].join),b6=String(Error("zxcasd").stack),rk=/\n\s*at [^:]*:[^\n]*/,QZ=rk.test(b6),eQ=/@[^\n]*\n/.test(b6)&&!/zxcasd/.test(b6),tQ=function(e,t){if(typeof e!="string")return e;if(QZ)for(;t--;)e=XZ(e,rk,"");else if(eQ)return ZZ(function(r,n,o){for(var i,a,s,u,l=Mv(r),c=u6(n,l),f=u6(l,l),d=WZ(YZ(f-c,0)),p=0;c<f;c++,p++)i=d,a=p,s=r[c],u=void 0,(u=J4(a))in i?Ec.f(i,u,Ha(0,s)):i[u]=s;return d.length=p,d}(JZ(e,`
35
+ `),t),`
36
+ `);return e},rQ=function(e,t){mi(t)&&"cause"in t&&On(e,"cause",t.cause)},nk=Nt(Nt.bind),ok=function(e,t){return G4(e),t===void 0?e:nk?nk(e,t):function(){return e.apply(t,arguments)}},Cc={},nQ=vn("iterator"),oQ=Array.prototype,iQ=vn("iterator"),ik=function(e){if(e!=null)return Zd(e,iQ)||Zd(e,"@@iterator")||Cc[Rv(e)]},aQ=qe.TypeError,ak=function(e,t,r){var n,o;qn(e);try{if(!(n=Zd(e,"return"))){if(t==="throw")throw r;return r}n=Qr(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return qn(n),r},sQ=qe.TypeError,qv=function(e,t){this.stopped=e,this.result=t},sk=qv.prototype,uQ=function(e,t,r){var n,o,i,a,s,u,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),h=ok(t,c),g=function(y){return n&&ak(n,"normal",y),new qv(!0,y)},m=function(y){return f?(qn(y),p?h(y[0],y[1],g):h(y[0],y[1])):p?h(y,g):h(y)};if(d)n=e;else{if(!(o=ik(e)))throw sQ(K4(e)+" is not iterable");if(function(y){return y!==void 0&&(Cc.Array===y||oQ[nQ]===y)}(o)){for(i=0,a=Mv(e);a>i;i++)if((s=m(e[i]))&&jv(sk,s))return s;return new qv(!1)}n=function(y,v){var E=arguments.length<2?ik(y):v;if(G4(E))return qn(Qr(E,y));throw aQ(K4(y)+" is not iterable")}(e,o)}for(u=n.next;!(l=Qr(u,n)).done;){try{s=m(l.value)}catch(y){ak(n,"throw",y)}if(typeof s=="object"&&s&&jv(sk,s))return s}return new qv(!1)},lQ=function(e,t){return e===void 0?arguments.length<2?"":t:Pu(e)},cQ=!Hr(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ha(1,7)),e.stack!==7)}),fQ=vn("toStringTag"),Kv=qe.Error,dQ=[].push,ip=function(e,t){var r,n=arguments.length>2?arguments[2]:void 0,o=jv(w6,this);xc?r=xc(new Kv(void 0),o?op(this):w6):(r=o?this:np(w6),On(r,fQ,"Error")),On(r,"message",lQ(t,"")),cQ&&On(r,"stack",tQ(r.stack,1)),rQ(r,n);var i=[];return uQ(e,dQ,{that:i}),On(r,"errors",i),r};xc?xc(ip,Kv):HA(ip,Kv);var w6=ip.prototype=np(Kv.prototype,{constructor:Ha(1,ip),message:Ha(1,""),name:Ha(1,"AggregateError")});rp({global:!0},{AggregateError:ip});var E6=vn("unscopables"),S6=Array.prototype;S6[E6]==null&&Ec.f(S6,E6,{configurable:!0,value:np(null)});var Bu,uk,lk,x6=function(e){S6[E6][e]=!0},C6=vn("iterator"),ck=!1;[].keys&&("next"in(lk=[].keys())?(uk=op(op(lk)))!==Object.prototype&&(Bu=uk):ck=!0);var pQ=Bu==null||Hr(function(){var e={};return Bu[C6].call(e)!==e});pQ&&(Bu={}),jr(Bu[C6])||Tu(Bu,C6,function(){return this});var D6={IteratorPrototype:Bu,BUGGY_SAFARI_ITERATORS:ck},hQ=Ec.f,fk=vn("toStringTag"),dk=function(e,t,r){e&&!_n(e=r?e:e.prototype,fk)&&hQ(e,fk,{configurable:!0,value:t})},gQ=D6.IteratorPrototype,vQ=function(){return this},mQ=a6.PROPER,yQ=a6.CONFIGURABLE,pk=D6.IteratorPrototype,_6=D6.BUGGY_SAFARI_ITERATORS,ap=vn("iterator"),bQ=function(){return this},hk=function(e,t,r,n,o,i,a){(function(m,y,v,E){var w=y+" Iterator";m.prototype=np(gQ,{next:Ha(+!E,v)}),dk(m,w,!1),Cc[w]=vQ})(r,t,n);var s,u,l=function(m){if(m===o&&h)return h;if(!_6&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[ap]||d["@@iterator"]||o&&d[o],h=!_6&&p||l(o),g=t=="Array"&&d.entries||p;return g&&(s=op(g.call(new e)))!==Object.prototype&&s.next&&(op(s)!==pk&&(xc?xc(s,pk):jr(s[ap])||Tu(s,ap,bQ)),dk(s,c,!0)),mQ&&o=="values"&&p&&p.name!=="values"&&(yQ?On(d,"name","values"):(f=!0,h=function(){return Qr(p,this)})),o&&(u={values:l("values"),keys:l("keys"),entries:l("entries")},a||rp({target:t,proto:!0,forced:_6||f},u)),d[ap]!==h&&Tu(d,ap,h,{name:o}),Cc[t]=h,u},wQ=Nu.set,EQ=Nu.getterFor("Array Iterator"),sp=hk(Array,"Array",function(e,t){wQ(this,{type:"Array Iterator",target:wc(e),index:0,kind:t})},function(){var e=EQ(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");Cc.Arguments=Cc.Array,x6("keys"),x6("values"),x6("entries");var SQ=QA.charAt,xQ=Nu.set,CQ=Nu.getterFor("String Iterator");hk(String,"String",function(e){xQ(this,{type:"String Iterator",string:Pu(e),index:0})},function(){var e,t=CQ(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=SQ(r,n),t.index+=e.length,{value:e,done:!1})});var O6,Gv={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},A6=Q4("span").classList,gk=A6&&A6.constructor&&A6.constructor.prototype,vk=gk===Object.prototype?void 0:gk,k6=vn("iterator"),mk=vn("toStringTag"),N6=sp.values,yk=function(e,t){if(e){if(e[k6]!==N6)try{On(e,k6,N6)}catch{e[k6]=N6}if(e[mk]||On(e,mk,t),Gv[t]){for(var r in sp)if(e[r]!==sp[r])try{On(e,r,sp[r])}catch{e[r]=sp[r]}}}};for(var T6 in Gv)yk(qe[T6]&&qe[T6].prototype,T6);yk(vk,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
37
+ Sorry, wangEditor V5+ versions do not support IE browser.`),bk(),wk()):global&&(!((O6=global.navigator)===null||O6===void 0)&&O6.userAgent.match("QQBrowser"))&&(bk(),wk());function bk(){typeof globalThis>"u"&&(window.globalThis=window)}function wk(){yJ===void 0&&(window.AggregateError=function(e,t){var r=new Error(t);return r.errors=e,r})}var Ek,Wv=Array.isArray||function(e){return xu(e)=="Array"},Sk=function(){},DQ=[],xk=gc("Reflect","construct"),P6=/^\s*(?:class|function)\b/,_Q=Ht(P6.exec),OQ=!P6.exec(Sk),up=function(e){if(!Zr(e))return!1;try{return xk(Sk,DQ,e),!0}catch{return!1}},AQ=!xk||Cn(function(){var e;return up(up.call)||!up(Object)||!up(function(){e=!0})||e})?function(e){if(!Zr(e))return!1;switch(Kd(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return OQ||!!_Q(P6,sA(e))}:up,kQ=nn("species"),Ck=Je.Array,Dk=function(e,t){return new(function(r){var n;return Wv(r)&&(n=r.constructor,(AQ(n)&&(n===Ck||Wv(n.prototype))||ho(n)&&(n=n[kQ])===null)&&(n=void 0)),n===void 0?Ck:n}(e))(t===0?0:t)},NQ=nn("species"),_k=nn("isConcatSpreadable"),Ok=Je.TypeError,TQ=vv>=51||!Cn(function(){var e=[];return e[_k]=!1,e.concat()[0]!==e}),PQ=(Ek="concat",vv>=51||!Cn(function(){var e=[];return(e.constructor={})[NQ]=function(){return{foo:1}},e[Ek](Boolean).foo!==1})),BQ=function(e){if(!ho(e))return!1;var t=e[_k];return t!==void 0?!!t:Wv(e)};ea({target:"Array",proto:!0,forced:!TQ||!PQ},{concat:function(e){var t,r,n,o,i,a=Rd(this),s=Dk(a,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(BQ(i=t===-1?a:arguments[t])){if(u+(o=Ud(i))>9007199254740991)throw Ok("Maximum allowed index exceeded");for(r=0;r<o;r++,u++)r in i&&k4(s,u,i[r])}else{if(u>=9007199254740991)throw Ok("Maximum allowed index exceeded");k4(s,u++,i)}return s.length=u,s}});var Ak=_4.f,kk=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Nk={f:function(e){return kk&&xu(e)=="Window"?function(t){try{return Ak(t)}catch{return tA(kk)}}(e):Ak(hi(e))}},FQ=Ht([].slice),B6={f:nn},jQ=Va.f,vr=function(e){var t=Hn.Symbol||(Hn.Symbol={});dt(t,e)||jQ(t,e,{value:B6.f(e)})},Tk=Ht([].push),qa=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,h=Rd(u),g=jO(h),m=S4(l,c),y=Ud(g),v=0,E=f||Dk,w=t?E(u,y):r||a?E(u,0):void 0;y>v;v++)if((s||v in g)&&(p=m(d=g[v],v,h),e))if(t)w[v]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:Tk(w,d)}else switch(e){case 4:return!1;case 7:Tk(w,d)}return i?-1:n||o?o:w}},Yv={forEach:qa(0),map:qa(1),filter:qa(2),some:qa(3),every:qa(4),find:qa(5),findIndex:qa(6),filterReject:qa(7)}.forEach,An=wv("hidden"),Pk=nn("toPrimitive"),IQ=bc.set,Bk=bc.getterFor("Symbol"),Uo=Object.prototype,Ka=Je.Symbol,Ga=Ka&&Ka.prototype,Fk=Je.TypeError,F6=Je.QObject,lp=gc("JSON","stringify"),jk=bv.f,Wa=Va.f,Ik=Nk.f,LQ=h4.f,Lk=Ht([].push),na=Cu("symbols"),cp=Cu("op-symbols"),j6=Cu("string-to-symbol-registry"),I6=Cu("symbol-to-string-registry"),MQ=Cu("wks"),L6=!F6||!F6.prototype||!F6.prototype.findChild,M6=Dn&&Cn(function(){return ta(Wa({},"a",{get:function(){return Wa(this,"a",{value:7}).a}})).a!=7})?function(e,t,r){var n=jk(Uo,t);n&&delete Uo[t],Wa(e,t,r),n&&e!==Uo&&Wa(Uo,t,n)}:Wa,z6=function(e,t){var r=na[e]=ta(Ga);return IQ(r,{type:"Symbol",tag:e,description:t}),Dn||(r.description=t),r},Xv=function(e,t,r){e===Uo&&Xv(cp,t,r),Un(e);var n=mc(t);return Un(r),dt(na,n)?(r.enumerable?(dt(e,An)&&e[An][n]&&(e[An][n]=!1),r=ta(r,{enumerable:Ho(0,!1)})):(dt(e,An)||Wa(e,An,Ho(1,{})),e[An][n]=!0),M6(e,n,r)):Wa(e,n,r)},Mk=function(e,t){Un(e);var r=hi(t),n=O4(r).concat(V6(r));return Yv(n,function(o){Dn&&!$n(zk,r,o)||Xv(e,o,r[o])}),e},zk=function(e){var t=mc(e),r=$n(LQ,this,t);return!(this===Uo&&dt(na,t)&&!dt(cp,t))&&(!(r||!dt(this,t)||!dt(na,t)||dt(this,An)&&this[An][t])||r)},Vk=function(e,t){var r=hi(e),n=mc(t);if(r!==Uo||!dt(na,n)||dt(cp,n)){var o=jk(r,n);return!o||!dt(na,n)||dt(r,An)&&r[An][n]||(o.enumerable=!0),o}},Rk=function(e){var t=Ik(hi(e)),r=[];return Yv(t,function(n){dt(na,n)||dt(qd,n)||Lk(r,n)}),r},V6=function(e){var t=e===Uo,r=Ik(t?cp:hi(e)),n=[];return Yv(r,function(o){!dt(na,o)||t&&!dt(Uo,o)||Lk(n,na[o])}),n};if(gi||(Ga=(Ka=function(){if(Vd(Ga,this))throw Fk("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?Gd(arguments[0]):void 0,t=yv(e),r=function(n){this===Uo&&$n(r,cp,n),dt(this,An)&&dt(this[An],t)&&(this[An][t]=!1),M6(this,t,Ho(1,n))};return Dn&&L6&&M6(Uo,t,{configurable:!0,set:r}),z6(t,e)}).prototype,Nv(Ga,"toString",function(){return Bk(this).tag}),Nv(Ka,"withoutSetter",function(e){return z6(yv(e),e)}),h4.f=zk,Va.f=Xv,bv.f=Vk,_4.f=Nk.f=Rk,Cv.f=V6,B6.f=function(e){return z6(nn(e),e)},Dn&&Wa(Ga,"description",{configurable:!0,get:function(){return Bk(this).description}})),ea({global:!0,wrap:!0,forced:!gi,sham:!gi},{Symbol:Ka}),Yv(O4(MQ),function(e){vr(e)}),ea({target:"Symbol",stat:!0,forced:!gi},{for:function(e){var t=Gd(e);if(dt(j6,t))return j6[t];var r=Ka(t);return j6[t]=r,I6[r]=t,r},keyFor:function(e){if(!vc(e))throw Fk(e+" is not a symbol");if(dt(I6,e))return I6[e]},useSetter:function(){L6=!0},useSimple:function(){L6=!1}}),ea({target:"Object",stat:!0,forced:!gi,sham:!Dn},{create:function(e,t){return t===void 0?ta(e):Mk(ta(e),t)},defineProperty:Xv,defineProperties:Mk,getOwnPropertyDescriptor:Vk}),ea({target:"Object",stat:!0,forced:!gi},{getOwnPropertyNames:Rk,getOwnPropertySymbols:V6}),ea({target:"Object",stat:!0,forced:Cn(function(){Cv.f(1)})},{getOwnPropertySymbols:function(e){return Cv.f(Rd(e))}}),lp){var zQ=!gi||Cn(function(){var e=Ka();return lp([e])!="[null]"||lp({a:e})!="{}"||lp(Object(e))!="{}"});ea({target:"JSON",stat:!0,forced:zQ},{stringify:function(e,t,r){var n=FQ(arguments),o=t;if((ho(t)||e!==void 0)&&!vc(e))return Wv(t)||(t=function(i,a){if(Zr(o)&&(a=$n(o,this,i,a)),!vc(a))return a}),n[1]=t,TO(lp,null,n)}})}if(!Ga[Pk]){var VQ=Ga.valueOf;Nv(Ga,Pk,function(e){return $n(VQ,this)})}Tv(Ka,"Symbol"),qd[An]=!0,vr("asyncIterator"),vr("hasInstance"),vr("isConcatSpreadable"),vr("iterator"),vr("match"),vr("matchAll"),vr("replace"),vr("search"),vr("species"),vr("split"),vr("toPrimitive"),vr("toStringTag"),vr("unscopables"),Tv(Je.JSON,"JSON",!0);var RQ=Hn.Symbol;vr("asyncDispose"),vr("dispose"),vr("matcher"),vr("metadata"),vr("observable"),vr("patternMatch"),vr("replaceAll");var Jv=RQ,$Q=B6.f("iterator"),HQ=Su(function(e){function t(r){return typeof Jv=="function"&&typeof $Q=="symbol"?(e.exports=t=function(n){return typeof n},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(n){return n&&typeof Jv=="function"&&n.constructor===Jv&&n!==Jv.prototype?"symbol":typeof n},e.exports.default=e.exports,e.exports.__esModule=!0),t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),UQ=OY(HQ),$k=e6.f,qQ=Hr(function(){$k(1)});if(rp({target:"Object",stat:!0,forced:!vi||qQ,sham:!vi},{getOwnPropertyDescriptor:function(e,t){return $k(wc(e),t)}}),(typeof global>"u"?"undefined":UQ(global))==="object"){var KQ=Object.getOwnPropertyDescriptor(global,"window");global.window&&!KQ.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
38
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
39
+ *
40
+ * Copyright (c) 2014-2017, Jon Schlinkert.
41
+ * Released under the MIT License.
42
+ */function Hk(e){return Object.prototype.toString.call(e)==="[object Object]"}function on(e){var t,r;return Hk(e)!==!1&&((t=e.constructor)===void 0||Hk(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)}function qo(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Fu(e){return!!e&&!!e[Kn]}function ju(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var r=Object.getPrototypeOf(t);if(r===null)return!0;var n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===ZQ}(e)||Array.isArray(e)||!!e[Qk]||!!e.constructor[Qk]||$6(e)||H6(e))}function fp(e,t,r){r===void 0&&(r=!1),Dc(e)===0?(r?Object.keys:t3)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,o){return t(o,n,e)})}function Dc(e){var t=e[Kn];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:$6(e)?2:H6(e)?3:0}function R6(e,t){return Dc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Uk(e,t,r){var n=Dc(e);n===2?e.set(t,r):n===3?(e.delete(t),e.add(r)):e[t]=r}function $6(e){return XQ&&e instanceof Map}function H6(e){return JQ&&e instanceof Set}function Iu(e){return e.o||e.t}function U6(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=QQ(e);delete t[Kn];for(var r=t3(t),n=0;n<r.length;n++){var o=r[n],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function q6(e,t){return t===void 0&&(t=!1),K6(e)||Fu(e)||!ju(e)||(Dc(e)>1&&(e.set=e.add=e.clear=e.delete=GQ),Object.freeze(e),t&&fp(e,function(r,n){return q6(n,!0)},!0)),e}function GQ(){qo(2)}function K6(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function oa(e){var t=eee[e];return t||qo(18,e),t}function qk(){return dp}function G6(e,t){t&&(oa("Patches"),e.u=[],e.s=[],e.v=t)}function Zv(e){W6(e),e.p.forEach(WQ),e.p=null}function W6(e){e===dp&&(dp=e.l)}function Kk(e){return dp={p:[],l:dp,h:e,m:!0,_:0}}function WQ(e){var t=e[Kn];t.i===0||t.i===1?t.j():t.O=!0}function Y6(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.g||oa("ES5").S(t,e,n),n?(r[Kn].P&&(Zv(t),qo(4)),ju(e)&&(e=Qv(t,e),t.l||e1(t,e)),t.u&&oa("Patches").M(r[Kn],e,t.u,t.s)):e=Qv(t,r,[]),Zv(t),t.u&&t.v(t.u,t.s),e!==Zk?e:void 0}function Qv(e,t,r){if(K6(t))return t;var n=t[Kn];if(!n)return fp(t,function(i,a){return Gk(e,n,t,i,a,r)},!0),t;if(n.A!==e)return t;if(!n.P)return e1(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=U6(n.k):n.o;fp(n.i===3?new Set(o):o,function(i,a){return Gk(e,n,o,i,a,r)}),e1(e,o,!1),r&&e.u&&oa("Patches").R(n,r,e.u,e.s)}return n.o}function Gk(e,t,r,n,o,i){if(Fu(o)){var a=Qv(e,o,i&&t&&t.i!==3&&!R6(t.D,n)?i.concat(n):void 0);if(Uk(r,n,a),!Fu(a))return;e.m=!1}if(ju(o)&&!K6(o)){if(!e.h.F&&e._<1)return;Qv(e,o),t&&t.A.l||e1(e,o)}}function e1(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&q6(t,r)}function X6(e,t){var r=e[Kn];return(r?Iu(r):e)[t]}function Wk(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function J6(e){e.P||(e.P=!0,e.l&&J6(e.l))}function Z6(e){e.o||(e.o=U6(e.t))}function Q6(e,t,r){var n=$6(t)?oa("MapSet").N(t,r):H6(t)?oa("MapSet").T(t,r):e.g?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:qk(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},u=s,l=t1;a&&(u=[s],l=r1);var c=Proxy.revocable(u,l),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):oa("ES5").J(t,r);return(r?r.A:qk()).p.push(n),n}function YQ(e){return Fu(e)||qo(22,e),function t(r){if(!ju(r))return r;var n,o=r[Kn],i=Dc(r);if(o){if(!o.P&&(o.i<4||!oa("ES5").K(o)))return o.t;o.I=!0,n=Yk(r,i),o.I=!1}else n=Yk(r,i);return fp(n,function(a,s){o&&function(u,l){return Dc(u)===2?u.get(l):u[l]}(o.t,a)===s||Uk(n,a,t(s))}),i===3?new Set(n):n}(e)}function Yk(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return U6(e)}var Xk,dp,e3=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",XQ=typeof Map<"u",JQ=typeof Set<"u",Jk=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Zk=e3?Symbol.for("immer-nothing"):((Xk={})["immer-nothing"]=!0,Xk),Qk=e3?Symbol.for("immer-draftable"):"__$immer_draftable",Kn=e3?Symbol.for("immer-state"):"__$immer_state",ZQ=""+Object.prototype.constructor,t3=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,QQ=Object.getOwnPropertyDescriptors||function(e){var t={};return t3(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},eee={},t1={get:function(e,t){if(t===Kn)return e;var r=Iu(e);if(!R6(r,t))return function(o,i,a){var s,u=Wk(i,a);return u?"value"in u?u.value:(s=u.get)===null||s===void 0?void 0:s.call(o.k):void 0}(e,r,t);var n=r[t];return e.I||!ju(n)?n:n===X6(e.t,t)?(Z6(e),e.o[t]=Q6(e.A.h,n,e)):n},has:function(e,t){return t in Iu(e)},ownKeys:function(e){return Reflect.ownKeys(Iu(e))},set:function(e,t,r){var n=Wk(Iu(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var o=X6(Iu(e),t),i=o==null?void 0:o[Kn];if(i&&i.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(function(a,s){return a===s?a!==0||1/a==1/s:a!=a&&s!=s}(r,o)&&(r!==void 0||R6(e.t,t)))return!0;Z6(e),J6(e)}return e.o[t]===r&&typeof r!="number"&&(r!==void 0||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return X6(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Z6(e),J6(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Iu(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){qo(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){qo(12)}},r1={};fp(t1,function(e,t){r1[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),r1.deleteProperty=function(e,t){return t1.deleteProperty.call(this,e[0],t)},r1.set=function(e,t,r){return t1.set.call(this,e[0],t,r,e[0])};var tee=function(){function e(r){var n=this;this.g=Jk,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var u=n;return function(p){var h=this;p===void 0&&(p=s);for(var g=arguments.length,m=Array(g>1?g-1:0),y=1;y<g;y++)m[y-1]=arguments[y];return u.produce(p,function(v){var E;return(E=i).call.apply(E,[h,v].concat(m))})}}var l;if(typeof i!="function"&&qo(6),a!==void 0&&typeof a!="function"&&qo(7),ju(o)){var c=Kk(n),f=Q6(n,o,void 0),d=!0;try{l=i(f),d=!1}finally{d?Zv(c):W6(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(p){return G6(c,a),Y6(p,c)},function(p){throw Zv(c),p}):(G6(c,a),Y6(l,c))}if(!o||typeof o!="object")return(l=i(o))===Zk?void 0:(l===void 0&&(l=o),n.F&&q6(l,!0),l);qo(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(u){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return n.produceWithPatches(u,function(d){return o.apply(void 0,[d].concat(c))})}:[n.produce(o,i,function(u,l){a=u,s=l}),a,s];var a,s},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){ju(r)||qo(8),Fu(r)&&(r=YQ(r));var n=Kk(this),o=Q6(this,r,void 0);return o[Kn].C=!0,W6(n),o},t.finishDraft=function(r,n){var o=(r&&r[Kn]).A;return G6(o,n),Y6(void 0,o)},t.setAutoFreeze=function(r){this.F=r},t.setUseProxies=function(r){r&&!Jk&&qo(20),this.g=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=oa("Patches").$;return Fu(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),Gn=new tee,n1=Gn.produce;Gn.produceWithPatches.bind(Gn),Gn.setAutoFreeze.bind(Gn),Gn.setUseProxies.bind(Gn),Gn.applyPatches.bind(Gn);var eN=Gn.createDraft.bind(Gn),tN=Gn.finishDraft.bind(Gn);function yi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o1=new WeakMap,pp=new WeakMap,rN=new WeakMap,nN=new WeakMap,oN=new WeakMap,iN=new WeakMap;function aN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function i1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aN(Object(r),!0).forEach(function(n){yi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var ree=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var r of D.pathRefs(e))Bee.transform(r,t);for(var n of D.pointRefs(e))Fee.transform(n,t);for(var o of D.rangeRefs(e))Iee.transform(o,t);var i=new Set,a=[],s=d=>{if(d){var p=d.join(",");i.has(p)||(i.add(p),a.push(d))}},u=o1.get(e)||[],l=nee(t);for(var c of u)s(J.transform(c,t));for(var f of l)s(f);o1.set(e,a),Q.transform(e,t),e.operations.push(t),D.normalize(e),t.type==="set_selection"&&(e.marks=null),pp.get(e)||(pp.set(e,!0),Promise.resolve().then(()=>{pp.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,r)=>{var{selection:n}=e;if(n)if(oe.isExpanded(n))Q.setNodes(e,{[t]:r},{match:Ce.isText,split:!0});else{var o=i1(i1({},D.marks(e)||{}),{},{[t]:r});e.marks=o,pp.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:r}=e;r&&oe.isCollapsed(r)&&Q.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:r}=e;r&&oe.isCollapsed(r)&&Q.delete(e,{unit:t})},deleteFragment:t=>{var{selection:r}=e;r&&oe.isExpanded(r)&&Q.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?me.fragment(e,t):[]},insertBreak:()=>{Q.splitNodes(e,{always:!0})},insertFragment:t=>{Q.insertFragment(e,t)},insertNode:t=>{Q.insertNodes(e,t)},insertText:t=>{var{selection:r,marks:n}=e;if(r){if(n){var o=i1({text:t},n);Q.insertNodes(e,o)}else Q.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[r,n]=t;if(!Ce.isText(r))if(Te.isElement(r)&&r.children.length===0)Q.insertNodes(e,{text:""},{at:n.concat(0),voids:!0});else for(var o=!D.isEditor(r)&&Te.isElement(r)&&(e.isInline(r)||r.children.length===0||Ce.isText(r.children[0])||e.isInline(r.children[0])),i=0,a=0;a<r.children.length;a++,i++){var s=me.get(e,n);if(!Ce.isText(s)){var u=r.children[a],l=s.children[i-1],c=a===r.children.length-1;(Ce.isText(u)||Te.isElement(u)&&e.isInline(u))!==o?(Q.removeNodes(e,{at:n.concat(i),voids:!0}),i--):Te.isElement(u)?e.isInline(u)&&(l!=null&&Ce.isText(l)?c&&(Q.insertNodes(e,{text:""},{at:n.concat(i+1),voids:!0}),i++):(Q.insertNodes(e,{text:""},{at:n.concat(i),voids:!0}),i++)):l!=null&&Ce.isText(l)&&(Ce.equals(u,l,{loose:!0})?(Q.mergeNodes(e,{at:n.concat(i),voids:!0}),i--):l.text===""?(Q.removeNodes(e,{at:n.concat(i-1),voids:!0}),i--):u.text===""&&(Q.removeNodes(e,{at:n.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:r}=e;if(r)if(oe.isExpanded(r))Q.unsetNodes(e,t,{match:Ce.isText,split:!0});else{var n=i1({},D.marks(e)||{});delete n[t],e.marks=n,pp.get(e)||e.onChange()}}};return e},nee=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return J.levels(t);case"insert_node":var{node:r,path:n}=e,o=J.levels(n),i=Ce.isText(r)?[]:Array.from(me.nodes(r),w=>{var[,S]=w;return n.concat(S)});return[...o,...i];case"merge_node":var{path:a}=e;return[...J.ancestors(a),J.previous(a)];case"move_node":var{path:s,newPath:u}=e;if(J.equals(s,u))return[];var l=[],c=[];for(var f of J.ancestors(s)){var d=J.transform(f,e);l.push(d)}for(var p of J.ancestors(u)){var h=J.transform(p,e);c.push(h)}var g=c[c.length-1],m=u[u.length-1],y=g.concat(m);return[...l,...c,y];case"remove_node":var{path:v}=e;return[...J.ancestors(v)];case"split_node":var{path:E}=e;return[...J.levels(E),J.next(E)];default:return[]}};function ia(e,t){if(e==null)return{};var r,n,o=function(a,s){if(a==null)return{};var u,l,c={},f=Object.keys(a);for(l=0;l<f.length;l++)u=f[l],s.indexOf(u)>=0||(c[u]=a[u]);return c}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var We,r3=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=!t,n=t?uee(e):e,o=We.None,i=We.None,a=0,s=null;for(var u of n){var l=u.codePointAt(0);if(!l)break;var c=wee(u,l);if([o,i]=r?[i,c]:[c,o],_c(o,We.ZWJ)&&_c(i,We.ExtPict)&&!Cee(r?e.substring(0,a):e.substring(0,e.length-a))||_c(o,We.RI)&&_c(i,We.RI)&&!(s=s!==null?!s:!!r||_ee(e.substring(0,e.length-a)))||o!==We.None&&i!==We.None&&See(o,i))break;a+=u.length}return a||1},oee=/\s/,iee=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,aee=/['\u2018\u2019]/,n3=(e,t,r)=>{if(r){var n=e.length-t;return[e.slice(n,e.length),e.slice(0,n)]}return[e.slice(0,t),e.slice(t)]},see=function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(oee.test(t))return!1;if(aee.test(t)){var o=r3(r,n),[i,a]=n3(r,o,n);if(e(i,a,n))return!0}return!iee.test(t)},uee=function*(e){for(var t=e.length-1,r=0;r<e.length;r++){var n=e.charAt(t-r);if(cee(n.charCodeAt(0))){var o=e.charAt(t-r-1);if(lee(o.charCodeAt(0))){yield o+n,r++;continue}}yield n}},lee=e=>e>=55296&&e<=56319,cee=e=>e>=56320&&e<=57343;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(We||(We={}));var fee=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,dee=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,pee=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,hee=/^[\u1100-\u115F\uA960-\uA97C]$/,gee=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,vee=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,mee=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,yee=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,bee=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,wee=(e,t)=>{var r=We.Any;return e.search(fee)!==-1&&(r|=We.Extend),t===8205&&(r|=We.ZWJ),t>=127462&&t<=127487&&(r|=We.RI),e.search(dee)!==-1&&(r|=We.Prepend),e.search(pee)!==-1&&(r|=We.SpacingMark),e.search(hee)!==-1&&(r|=We.L),e.search(gee)!==-1&&(r|=We.V),e.search(vee)!==-1&&(r|=We.T),e.search(mee)!==-1&&(r|=We.LV),e.search(yee)!==-1&&(r|=We.LVT),e.search(bee)!==-1&&(r|=We.ExtPict),r};function _c(e,t){return(e&t)!=0}var Eee=[[We.L,We.L|We.V|We.LV|We.LVT],[We.LV|We.V,We.V|We.T],[We.LVT|We.T,We.T],[We.Any,We.Extend|We.ZWJ],[We.Any,We.SpacingMark],[We.Prepend,We.Any],[We.ZWJ,We.ExtPict],[We.RI,We.RI]];function See(e,t){return Eee.findIndex(r=>_c(e,r[0])&&_c(t,r[1]))===-1}var xee=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,Cee=e=>e.search(xee)!==-1,Dee=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,_ee=e=>{var t=e.match(Dee);return t!==null&&t[0].length/2%2==1},sN=e=>on(e)&&me.isNodeList(e.children)&&!D.isEditor(e),Te={isAncestor:e=>on(e)&&me.isNodeList(e.children),isElement:sN,isElementList:e=>Array.isArray(e)&&e.every(t=>Te.isElement(t)),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return sN(e)&&e[r]===t},matches(e,t){for(var r in t)if(r!=="children"&&e[r]!==t[r])return!1;return!0}},Oee=["text"],Aee=["text"];function uN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Oc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uN(Object(r),!0).forEach(function(n){yi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var lN=new WeakMap,D={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:n="lowest",at:o=e.selection,match:i}=t;if(o){var a=D.path(e,o),s=n==="lowest";for(var[u,l]of D.levels(e,{at:a,voids:r,match:i,reverse:s}))if(!Ce.isText(u)&&!J.equals(a,l))return[u,l]}},addMark(e,t,r){e.addMark(t,r)},after(e,t){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:D.point(e,t,{edge:"end"}),focus:D.end(e,[])},{distance:i=1}=n,a=0;for(var s of D.positions(e,Oc(Oc({},n),{},{at:o}))){if(a>i)break;a!==0&&(r=s),a++}return r},before(e,t){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:D.start(e,[]),focus:D.point(e,t,{edge:"start"})},{distance:i=1}=n,a=0;for(var s of D.positions(e,Oc(Oc({},n),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(r=s),a++}return r},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=t;e.deleteBackward(r)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=t;e.deleteForward(r)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:r="forward"}=t;e.deleteFragment(r)},edges:(e,t)=>[D.start(e,t),D.end(e,t)],end:(e,t)=>D.point(e,t,{edge:"end"}),first(e,t){var r=D.path(e,t,{edge:"start"});return D.node(e,r)},fragment(e,t){var r=D.range(e,t);return me.fragment(e,r)},hasBlocks:(e,t)=>t.children.some(r=>D.isBlock(e,r)),hasInlines:(e,t)=>t.children.some(r=>Ce.isText(r)||D.isInline(e,r)),hasTexts:(e,t)=>t.children.every(r=>Ce.isText(r)),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Te.isElement(t)&&!e.isInline(t),isEditor(e){if(!on(e))return!1;var t=lN.get(e);if(t!==void 0)return t;var r=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteBackward=="function"&&typeof e.deleteForward=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isInline=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&(e.marks===null||on(e.marks))&&(e.selection===null||oe.isRange(e.selection))&&me.isNodeList(e.children)&&Ya.isOperationList(e.operations);return lN.set(e,r),r},isEnd(e,t,r){var n=D.end(e,r);return Ze.equals(t,n)},isEdge:(e,t,r)=>D.isStart(e,t,r)||D.isEnd(e,t,r),isEmpty(e,t){var{children:r}=t,[n]=r;return r.length===0||r.length===1&&Ce.isText(n)&&n.text===""&&!e.isVoid(t)},isInline:(e,t)=>Te.isElement(t)&&e.isInline(t),isNormalizing(e){var t=rN.get(e);return t===void 0||t},isStart(e,t,r){if(t.offset!==0)return!1;var n=D.start(e,r);return Ze.equals(t,n)},isVoid:(e,t)=>Te.isElement(t)&&e.isVoid(t),last(e,t){var r=D.path(e,t,{edge:"end"});return D.node(e,r)},leaf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=D.path(e,t,r);return[me.leaf(e,n),n]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,reverse:n=!1,voids:o=!1}=t,{match:i}=t;if(i==null&&(i=()=>!0),r){var a=[],s=D.path(e,r);for(var[u,l]of me.levels(e,s))if(i(u,l)&&(a.push([u,l]),!o&&D.isVoid(e,u)))break;n&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:r}=e;if(!r)return null;if(t)return t;if(oe.isExpanded(r)){var[n]=D.nodes(e,{match:Ce.isText});if(n){var[o]=n;return ia(o,Oee)}return{}}var{anchor:i}=r,{path:a}=i,[s]=D.leaf(e,a);if(i.offset===0){var u=D.previous(e,{at:a,match:Ce.isText}),l=D.above(e,{match:p=>D.isBlock(e,p)});if(u&&l){var[c,f]=u,[,d]=l;J.isAncestor(d,f)&&(s=c)}}return ia(s,Aee)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=D.after(e,i,{voids:n});if(a){var[,s]=D.last(e,[]),u=[a.path,s];if(J.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(J.isPath(i)){var[l]=D.parent(e,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=D.nodes(e,{at:u,match:o,mode:r,voids:n});return c}}},node(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=D.path(e,t,r);return[me.get(e,n),n]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,mode:n="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),r){var u,l;if(Nee.isSpan(r))u=r[0],l=r[1];else{var c=D.path(e,r,{edge:"start"}),f=D.path(e,r,{edge:"end"});u=i?f:c,l=i?c:f}var d,p=me.nodes(e,{reverse:i,from:u,to:l,pass:E=>{var[w]=E;return!a&&D.isVoid(e,w)}}),h=[];for(var[g,m]of p){var y=d&&J.compare(m,d[1])===0;if(n!=="highest"||!y){if(s(g,m))if(n==="lowest"&&y)d=[g,m];else{var v=n==="lowest"?d:[g,m];v&&(o?h.push(v):yield v),d=[g,m]}else if(o&&!y&&Ce.isText(g))return}}n==="lowest"&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1}=t,n=i=>o1.get(i)||[];if(D.isNormalizing(e)){if(r){var o=Array.from(me.nodes(e),i=>{var[,a]=i;return a});o1.set(e,o)}n(e).length!==0&&D.withoutNormalizing(e,()=>{for(var i of n(e))if(me.has(e,i)){var a=D.node(e,i),[s,u]=a;Te.isElement(s)&&s.children.length===0&&e.normalizeNode(a)}for(var l=42*n(e).length,c=0;n(e).length!==0;){if(c>l)throw new Error(`
43
+ Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
44
+ `));var f=n(e).pop();if(me.has(e,f)){var d=D.node(e,f);e.normalizeNode(d)}c++}})}},parent(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=D.path(e,t,r),o=J.parent(n);return D.node(e,o)},path(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:n,edge:o}=r;if(J.isPath(t)){if(o==="start"){var[,i]=me.first(e,t);t=i}else if(o==="end"){var[,a]=me.last(e,t);t=a}}return oe.isRange(t)&&(t=o==="start"?oe.start(t):o==="end"?oe.end(t):J.common(t.anchor.path,t.focus.path)),Ze.isPoint(t)&&(t=t.path),n!=null&&(t=t.slice(0,n)),t},hasPath:(e,t)=>me.has(e,t),pathRef(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:t,affinity:n,unref(){var{current:i}=o;return D.pathRefs(e).delete(o),o.current=null,i}};return D.pathRefs(e).add(o),o},pathRefs(e){var t=nN.get(e);return t||(t=new Set,nN.set(e,t)),t},point(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:n="start"}=r;if(J.isPath(t)){var o;if(n==="end"){var[,i]=me.last(e,t);o=i}else{var[,a]=me.first(e,t);o=a}var s=me.get(e,o);if(!Ce.isText(s))throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(t,"] because it has no ").concat(n," text node."));return{path:o,offset:n==="end"?s.text.length:0}}if(oe.isRange(t)){var[u,l]=oe.edges(t);return n==="start"?u:l}return t},pointRef(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:t,affinity:n,unref(){var{current:i}=o;return D.pointRefs(e).delete(o),o.current=null,i}};return D.pointRefs(e).add(o),o},pointRefs(e){var t=oN.get(e);return t||(t=new Set,oN.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,unit:n="offset",reverse:o=!1,voids:i=!1}=t;if(r){var a=D.range(e,r),[s,u]=oe.edges(a),l=o?u:s,c=!1,f="",d=0,p=0,h=0;for(var[g,m]of D.nodes(e,{at:r,reverse:o,voids:i})){if(Te.isElement(g)){if(!i&&e.isVoid(g)){yield D.start(e,m);continue}if(e.isInline(g))continue;if(D.hasInlines(e,g)){var y=J.isAncestor(m,u.path)?u:D.end(e,m),v=J.isAncestor(m,s.path)?s:D.start(e,m);f=D.string(e,{anchor:v,focus:y},{voids:i}),c=!0}}if(Ce.isText(g)){var E=J.equals(m,l.path);for(E?(p=o?l.offset:g.text.length-l.offset,h=l.offset):(p=g.text.length,h=o?p:0),(E||c||n==="offset")&&(yield{path:m,offset:h},c=!1);;){if(d===0){if(f==="")break;d=w(f,n,o),f=n3(f,d,o)[1]}if(h=o?h-d:h+d,(p-=d)<0){d=-p;break}d=0,yield{path:m,offset:h}}}}}function w(S,C,x){return C==="character"?r3(S,x):C==="word"?function(_){for(var P=arguments.length>1&&arguments[1]!==void 0&&arguments[1],q=0,H=!1;_.length>0;){var k=r3(_,P),[M,I]=n3(_,k,P);if(see(M,I,P))H=!0,q+=k;else{if(H)break;q+=k}_=I}return q}(S,x):C==="line"||C==="block"?S.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=D.before(e,i,{voids:n});if(a){var[,s]=D.first(e,[]),u=[a.path,s];if(J.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(J.isPath(i)){var[l]=D.parent(e,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=D.nodes(e,{reverse:!0,at:u,match:o,mode:r,voids:n});return c}}},range:(e,t,r)=>oe.isRange(t)&&!r?t:{anchor:D.start(e,t),focus:D.end(e,r||t)},rangeRef(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:t,affinity:n,unref(){var{current:i}=o;return D.rangeRefs(e).delete(o),o.current=null,i}};return D.rangeRefs(e).add(o),o},rangeRefs(e){var t=iN.get(e);return t||(t=new Set,iN.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){rN.set(e,t)},start:(e,t)=>D.point(e,t,{edge:"start"}),string(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,o=D.range(e,t),[i,a]=oe.edges(o),s="";for(var[u,l]of D.nodes(e,{at:o,match:Ce.isText,voids:n})){var c=u.text;J.equals(l,a.path)&&(c=c.slice(0,a.offset)),J.equals(l,i.path)&&(c=c.slice(i.offset)),s+=c}return s},unhangRange(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,[o,i]=oe.edges(t);if(o.offset!==0||i.offset!==0||oe.isCollapsed(t))return t;var a=D.above(e,{at:i,match:d=>D.isBlock(e,d)}),s=a?a[1]:[],u={anchor:D.start(e,[]),focus:i},l=!0;for(var[c,f]of D.nodes(e,{at:u,match:Ce.isText,reverse:!0,voids:n}))if(l)l=!1;else if(c.text!==""||J.isBefore(f,s)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(e,Oc(Oc({},t),{},{match:r=>D.isVoid(e,r)}))},withoutNormalizing(e,t){var r=D.isNormalizing(e);D.setNormalizing(e,!1);try{t()}finally{D.setNormalizing(e,r)}D.normalize(e)}},kee={isLocation:e=>J.isPath(e)||Ze.isPoint(e)||oe.isRange(e)},Nee={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(J.isPath)},Tee=["children"],Pee=["text"],cN=new WeakMap,me={ancestor(e,t){var r=me.get(e,t);if(Ce.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(r));return r},*ancestors(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of J.ancestors(t,r)){var o=[me.ancestor(e,n),n];yield o}},child(e,t){if(Ce.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var r=e.children[t];if(r==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return r},*children(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:n=!1}=r,o=me.ancestor(e,t),{children:i}=o,a=n?i.length-1:0;n?a>=0:a<i.length;){var s=me.child(o,a),u=t.concat(a);yield[s,u],a=n?a-1:a+1}},common(e,t,r){var n=J.common(t,r);return[me.get(e,n),n]},descendant(e,t){var r=me.get(e,t);if(D.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(r));return r},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of me.nodes(e,t))n.length!==0&&(yield[r,n])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of me.nodes(e,t))Te.isElement(r)&&(yield[r,n])},extractProps:e=>Te.isAncestor(e)?ia(e,Tee):ia(e,Pee),first(e,t){for(var r=t.slice(),n=me.get(e,r);n&&!Ce.isText(n)&&n.children.length!==0;)n=n.children[0],r.push(0);return[n,r]},fragment(e,t){if(Ce.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var r=n1({children:e.children},n=>{var[o,i]=oe.edges(t),a=me.nodes(n,{reverse:!0,pass:d=>{var[,p]=d;return!oe.includes(t,p)}});for(var[,s]of a){if(!oe.includes(t,s)){var u=me.parent(n,s),l=s[s.length-1];u.children.splice(l,1)}if(J.equals(s,i.path)){var c=me.leaf(n,s);c.text=c.text.slice(0,i.offset)}if(J.equals(s,o.path)){var f=me.leaf(n,s);f.text=f.text.slice(o.offset)}}D.isEditor(n)&&(n.selection=null)});return r.children},get(e,t){for(var r=e,n=0;n<t.length;n++){var o=t[n];if(Ce.isText(r)||!r.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));r=r.children[o]}return r},has(e,t){for(var r=e,n=0;n<t.length;n++){var o=t[n];if(Ce.isText(r)||!r.children[o])return!1;r=r.children[o]}return!0},isNode:e=>Ce.isText(e)||Te.isElement(e)||D.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=cN.get(e);if(t!==void 0)return t;var r=e.every(n=>me.isNode(n));return cN.set(e,r),r},last(e,t){for(var r=t.slice(),n=me.get(e,r);n&&!Ce.isText(n)&&n.children.length!==0;){var o=n.children.length-1;n=n.children[o],r.push(o)}return[n,r]},leaf(e,t){var r=me.get(e,t);if(!Ce.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(r));return r},*levels(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of J.levels(t,r)){var o=me.get(e,n);yield[o,n]}},matches:(e,t)=>Te.isElement(e)&&Te.isElementProps(t)&&Te.matches(e,t)||Ce.isText(e)&&Ce.isTextProps(t)&&Ce.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:r,reverse:n=!1}=t,{from:o=[],to:i}=t,a=new Set,s=[],u=e;!i||!(n?J.isBefore(s,i):J.isAfter(s,i));)if(a.has(u)||(yield[u,s]),a.has(u)||Ce.isText(u)||u.children.length===0||r!=null&&r([u,s])!==!1){if(s.length===0)break;if(!n){var l=J.next(s);if(me.has(e,l)){s=l,u=me.get(e,s);continue}}n&&s[s.length-1]!==0?(s=J.previous(s),u=me.get(e,s)):(s=J.parent(s),u=me.get(e,s),a.add(u))}else{a.add(u);var c=n?u.children.length-1:0;J.isAncestor(s,o)&&(c=o[s.length]),s=s.concat(c),u=me.get(e,s)}},parent(e,t){var r=J.parent(t),n=me.get(e,r);if(Ce.isText(n))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return n},string:e=>Ce.isText(e)?e.text:e.children.map(me.string).join(""),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of me.nodes(e,t))Ce.isText(r)&&(yield[r,n])}};function fN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fN(Object(r),!0).forEach(function(n){yi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Ya={isNodeOperation:e=>Ya.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!on(e))return!1;switch(e.type){case"insert_node":case"remove_node":return J.isPath(e.path)&&me.isNode(e.node);case"insert_text":case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&J.isPath(e.path);case"merge_node":return typeof e.position=="number"&&J.isPath(e.path)&&on(e.properties);case"move_node":return J.isPath(e.path)&&J.isPath(e.newPath);case"set_node":return J.isPath(e.path)&&on(e.properties)&&on(e.newProperties);case"set_selection":return e.properties===null&&oe.isRange(e.newProperties)||e.newProperties===null&&oe.isRange(e.properties)||on(e.properties)&&on(e.newProperties);case"split_node":return J.isPath(e.path)&&typeof e.position=="number"&&on(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(t=>Ya.isOperation(t)),isSelectionOperation:e=>Ya.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Ya.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Dr(Dr({},e),{},{type:"remove_node"});case"insert_text":return Dr(Dr({},e),{},{type:"remove_text"});case"merge_node":return Dr(Dr({},e),{},{type:"split_node",path:J.previous(e.path)});case"move_node":var{newPath:t,path:r}=e;if(J.equals(t,r))return e;if(J.isSibling(r,t))return Dr(Dr({},e),{},{path:t,newPath:r});var n=J.transform(r,e),o=J.transform(J.next(r),e);return Dr(Dr({},e),{},{path:n,newPath:o});case"remove_node":return Dr(Dr({},e),{},{type:"insert_node"});case"remove_text":return Dr(Dr({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Dr(Dr({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:s,newProperties:u}=e;return Dr(Dr({},e),{},s==null?{properties:u,newProperties:null}:u==null?{properties:null,newProperties:s}:{properties:u,newProperties:s});case"split_node":return Dr(Dr({},e),{},{type:"merge_node",path:J.next(e.path)})}}},J={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,n=J.levels(e,t);return n=r?n.slice(1):n.slice(0,-1)},common(e,t){for(var r=[],n=0;n<e.length&&n<t.length;n++){var o=e[n];if(o!==t[n])break;r.push(o)}return r},compare(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return 0},endsAfter(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),i=e[r],a=t[r];return J.equals(n,o)&&i>a},endsAt(e,t){var r=e.length,n=e.slice(0,r),o=t.slice(0,r);return J.equals(n,o)},endsBefore(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),i=e[r],a=t[r];return J.equals(n,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>J.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&J.compare(e,t)===0,isBefore:(e,t)=>J.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&J.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&J.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&J.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&J.compare(e,t)===0,isPath:e=>Array.isArray(e)&&(e.length===0||typeof e[0]=="number"),isSibling(e,t){if(e.length!==t.length)return!1;var r=e.slice(0,-1),n=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&J.equals(r,n)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,n=[],o=0;o<=e.length;o++)n.push(e.slice(0,o));return r&&n.reverse(),n},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!J.isAncestor(t,e)&&!J.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n1(e,n=>{var{affinity:o="forward"}=r;if(e&&(e==null?void 0:e.length)!==0){if(n===null)return null;switch(t.type){case"insert_node":var{path:i}=t;(J.equals(i,n)||J.endsBefore(i,n)||J.isAncestor(i,n))&&(n[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(J.equals(a,n)||J.isAncestor(a,n))return null;J.endsBefore(a,n)&&(n[a.length-1]-=1);break;case"merge_node":var{path:s,position:u}=t;J.equals(s,n)||J.endsBefore(s,n)?n[s.length-1]-=1:J.isAncestor(s,n)&&(n[s.length-1]-=1,n[s.length]+=u);break;case"split_node":var{path:l,position:c}=t;if(J.equals(l,n)){if(o==="forward")n[n.length-1]+=1;else if(o!=="backward")return null}else J.endsBefore(l,n)?n[l.length-1]+=1:J.isAncestor(l,n)&&e[l.length]>=c&&(n[l.length-1]+=1,n[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(J.equals(f,d))return;if(J.isAncestor(f,n)||J.equals(f,n)){var p=d.slice();return J.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(n.slice(f.length))}J.isSibling(f,d)&&(J.isAncestor(d,n)||J.equals(d,n))?J.endsBefore(f,n)?n[f.length-1]-=1:n[f.length-1]+=1:J.endsBefore(d,n)||J.equals(d,n)||J.isAncestor(d,n)?(J.endsBefore(f,n)&&(n[f.length-1]-=1),n[d.length-1]+=1):J.endsBefore(f,n)&&(J.equals(d,n)&&(n[d.length-1]+=1),n[f.length-1]-=1)}}})}},Bee={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=J.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}};function dN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function pN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dN(Object(r),!0).forEach(function(n){yi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Ze={compare(e,t){var r=J.compare(e.path,t.path);return r===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:r},isAfter:(e,t)=>Ze.compare(e,t)===1,isBefore:(e,t)=>Ze.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&J.equals(e.path,t.path),isPoint:e=>on(e)&&typeof e.offset=="number"&&J.isPath(e.path),transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n1(e,n=>{if(n===null)return null;var{affinity:o="forward"}=r,{path:i,offset:a}=n;switch(t.type){case"insert_node":case"move_node":n.path=J.transform(i,t,r);break;case"insert_text":J.equals(t.path,i)&&t.offset<=a&&(n.offset+=t.text.length);break;case"merge_node":J.equals(t.path,i)&&(n.offset+=t.position),n.path=J.transform(i,t,r);break;case"remove_text":J.equals(t.path,i)&&t.offset<=a&&(n.offset-=Math.min(a-t.offset,t.text.length));break;case"remove_node":if(J.equals(t.path,i)||J.isAncestor(t.path,i))return null;n.path=J.transform(i,t,r);break;case"split_node":if(J.equals(t.path,i)){if(t.position===a&&o==null)return null;(t.position<a||t.position===a&&o==="forward")&&(n.offset-=t.position,n.path=J.transform(i,t,pN(pN({},r),{},{affinity:"forward"})))}else n.path=J.transform(i,t,r)}})}},Fee={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=Ze.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},jee=["anchor","focus"];function hN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}var oe={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,{anchor:n,focus:o}=e;return oe.isBackward(e)===r?[n,o]:[o,n]},end(e){var[,t]=oe.edges(e);return t},equals:(e,t)=>Ze.equals(e.anchor,t.anchor)&&Ze.equals(e.focus,t.focus),includes(e,t){if(oe.isRange(t)){if(oe.includes(e,t.anchor)||oe.includes(e,t.focus))return!0;var[r,n]=oe.edges(e),[o,i]=oe.edges(t);return Ze.isBefore(r,o)&&Ze.isAfter(n,i)}var[a,s]=oe.edges(e),u=!1,l=!1;return Ze.isPoint(t)?(u=Ze.compare(t,a)>=0,l=Ze.compare(t,s)<=0):(u=J.compare(t,a.path)>=0,l=J.compare(t,s.path)<=0),u&&l},intersection(e,t){var r=ia(e,jee),[n,o]=oe.edges(e),[i,a]=oe.edges(t),s=Ze.isBefore(n,i)?i:n,u=Ze.isBefore(o,a)?o:a;return Ze.isBefore(u,s)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?hN(Object(f),!0).forEach(function(d){yi(l,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):hN(Object(f)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(f,d))})}return l}({anchor:s,focus:u},r)},isBackward(e){var{anchor:t,focus:r}=e;return Ze.isAfter(t,r)},isCollapsed(e){var{anchor:t,focus:r}=e;return Ze.equals(t,r)},isExpanded:e=>!oe.isCollapsed(e),isForward:e=>!oe.isBackward(e),isRange:e=>on(e)&&Ze.isPoint(e.anchor)&&Ze.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=oe.edges(e);return t},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n1(e,n=>{if(n===null)return null;var o,i,{affinity:a="inward"}=r;if(a==="inward"){var s=oe.isCollapsed(n);oe.isForward(n)?(o="forward",i=s?o:"backward"):(o="backward",i=s?o:"forward")}else a==="outward"?oe.isForward(n)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var u=Ze.transform(n.anchor,t,{affinity:o}),l=Ze.transform(n.focus,t,{affinity:i});if(!u||!l)return null;n.anchor=u,n.focus=l})}},Iee={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=oe.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},gN=(e,t)=>{for(var r in e){var n=e[r],o=t[r];if(on(n)&&on(o)){if(!gN(n,o))return!1}else if(Array.isArray(n)&&Array.isArray(o)){if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(n[i]!==o[i])return!1}else if(n!==o)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0},Lee=["text"],Mee=["anchor","focus"];function vN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function aa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vN(Object(r),!0).forEach(function(n){yi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Ce={equals(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:n=!1}=r;function o(i){return ia(i,Lee)}return gN(n?o(e):e,n?o(t):t)},isText:e=>on(e)&&typeof e.text=="string",isTextList:e=>Array.isArray(e)&&e.every(t=>Ce.isText(t)),isTextProps:e=>e.text!==void 0,matches(e,t){for(var r in t)if(r!=="text"&&(!e.hasOwnProperty(r)||e[r]!==t[r]))return!1;return!0},decorations(e,t){var r=[aa({},e)];for(var n of t){var o=ia(n,Mee),[i,a]=oe.edges(n),s=[],u=0;for(var l of r){var{length:c}=l.text,f=u;if(u+=c,i.offset<=f&&a.offset>=u)Object.assign(l,o),s.push(l);else if(i.offset!==a.offset&&(i.offset===u||a.offset===f)||i.offset>u||a.offset<f||a.offset===f&&f!==0)s.push(l);else{var d=l,p=void 0,h=void 0;if(a.offset<u){var g=a.offset-f;h=aa(aa({},d),{},{text:d.text.slice(g)}),d=aa(aa({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var m=i.offset-f;p=aa(aa({},d),{},{text:d.text.slice(0,m)}),d=aa(aa({},d),{},{text:d.text.slice(m)})}Object.assign(d,o),p&&s.push(p),s.push(d),h&&s.push(h)}}r=s}return r}};function mN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function hp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mN(Object(r),!0).forEach(function(n){yi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var zee={transform(e,t){e.children=eN(e.children);var r=e.selection&&eN(e.selection);try{r=((n,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:s}=i,u=me.parent(n,a),l=a[a.length-1];if(l>u.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(u.children.splice(l,0,s),o)for(var[c,f]of oe.points(o))o[f]=Ze.transform(c,i);break;case"insert_text":var{path:d,offset:p,text:h}=i;if(h.length===0)break;var g=me.leaf(n,d),m=g.text.slice(0,p),y=g.text.slice(p);if(g.text=m+h+y,o)for(var[v,E]of oe.points(o))o[E]=Ze.transform(v,i);break;case"merge_node":var{path:w}=i,S=me.get(n,w),C=J.previous(w),x=me.get(n,C),_=me.parent(n,w),P=w[w.length-1];if(Ce.isText(S)&&Ce.isText(x))x.text+=S.text;else{if(Ce.isText(S)||Ce.isText(x))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(S," ").concat(x));x.children.push(...S.children)}if(_.children.splice(P,1),o)for(var[q,H]of oe.points(o))o[H]=Ze.transform(q,i);break;case"move_node":var{path:k,newPath:M}=i;if(J.isAncestor(k,M))throw new Error("Cannot move a path [".concat(k,"] to new path [").concat(M,"] because the destination is inside itself."));var I=me.get(n,k),T=me.parent(n,k),F=k[k.length-1];T.children.splice(F,1);var U=J.transform(k,i),R=me.get(n,J.parent(U)),Z=U[U.length-1];if(R.children.splice(Z,0,I),o)for(var[re,O]of oe.points(o))o[O]=Ze.transform(re,i);break;case"remove_node":var{path:A}=i,V=A[A.length-1];if(me.parent(n,A).children.splice(V,1),o)for(var[B,L]of oe.points(o)){var j=Ze.transform(B,i);if(o!=null&&j!=null)o[L]=j;else{var W=void 0,X=void 0;for(var[ae,ce]of me.texts(n)){if(J.compare(ce,A)!==-1){X=[ae,ce];break}W=[ae,ce]}var ee=!1;W&&X&&(ee=J.equals(X[1],A)?!J.hasPrevious(X[1]):J.common(W[1],A).length<J.common(X[1],A).length),W&&!ee?(B.path=W[1],B.offset=W[0].text.length):X?(B.path=X[1],B.offset=0):o=null}}break;case"remove_text":var{path:fe,offset:pe,text:ie}=i;if(ie.length===0)break;var xe=me.leaf(n,fe),Xe=xe.text.slice(0,pe),Le=xe.text.slice(pe+ie.length);if(xe.text=Xe+Le,o)for(var[Oe,ue]of oe.points(o))o[ue]=Ze.transform(Oe,i);break;case"set_node":var{path:Ie,properties:le,newProperties:de}=i;if(Ie.length===0)throw new Error("Cannot set properties on the root node!");var ke=me.get(n,Ie);for(var je in de){if(je==="children"||je==="text")throw new Error('Cannot set the "'.concat(je,'" property of nodes!'));var ve=de[je];ve==null?delete ke[je]:ke[je]=ve}for(var Qe in le)de.hasOwnProperty(Qe)||delete ke[Qe];break;case"set_selection":var{newProperties:et}=i;if(et==null)o=et;else{if(o==null){if(!oe.isRange(et))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(et)," when there is no current selection."));o=hp({},et)}for(var Et in et){var Bt=et[Et];if(Bt==null){if(Et==="anchor"||Et==="focus")throw new Error('Cannot remove the "'.concat(Et,'" selection property'));delete o[Et]}else o[Et]=Bt}}break;case"split_node":var{path:De,position:Me,properties:ut}=i;if(De.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(De,"] because the root node cannot be split."));var sr,Lt=me.get(n,De),nr=me.parent(n,De),dr=De[De.length-1];if(Ce.isText(Lt)){var jn=Lt.text.slice(0,Me),Gt=Lt.text.slice(Me);Lt.text=jn,sr=hp(hp({},ut),{},{text:Gt})}else{var Da=Lt.children.slice(0,Me),$i=Lt.children.slice(Me);Lt.children=Da,sr=hp(hp({},ut),{},{children:$i})}if(nr.children.splice(dr+1,0,sr),o)for(var[ur,ai]of oe.points(o))o[ai]=Ze.transform(ur,i)}return o})(e,r,t)}finally{e.children=tN(e.children),e.selection=r?Fu(r)?tN(r):r:null}}},Vee=["text"],Ree=["children"];function yN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function bN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yN(Object(r),!0).forEach(function(n){yi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var $ee={insertNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:o=!1,mode:i="lowest"}=r,{at:a,match:s,select:u}=r;if(me.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?D.end(e,[]):[0],u=!0),u==null&&(u=!1),oe.isRange(a))if(n||(a=D.unhangRange(e,a)),oe.isCollapsed(a))a=a.anchor;else{var[,c]=oe.edges(a),f=D.pointRef(e,c);Q.delete(e,{at:a}),a=f.unref()}if(Ze.isPoint(a)){s==null&&(s=Ce.isText(l)?C=>Ce.isText(C):e.isInline(l)?C=>Ce.isText(C)||D.isInline(e,C):C=>D.isBlock(e,C));var[d]=D.nodes(e,{at:a.path,match:s,mode:i,voids:o});if(!d)return;var[,p]=d,h=D.pathRef(e,p),g=D.isEnd(e,a,p);Q.splitNodes(e,{at:a,match:s,mode:i,voids:o});var m=h.unref();a=g?J.next(m):m}var y=J.parent(a),v=a[a.length-1];if(o||!D.void(e,{at:y})){for(var E of t){var w=y.concat(v);v++,e.apply({type:"insert_node",path:w,node:E}),a=J.next(a)}if(a=J.previous(a),u){var S=D.end(e,a);S&&Q.select(e,S)}}}})},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{at:r=e.selection,mode:n="lowest",voids:o=!1}=t,{match:i}=t;if(i==null&&(i=J.isPath(r)?Ac(e,r):E=>D.isBlock(e,E)),r){var a=D.nodes(e,{at:r,match:i,mode:n,voids:o}),s=Array.from(a,E=>{var[,w]=E;return D.pathRef(e,w)});for(var u of s){var l=u.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=D.node(e,J.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(h===1){var g=J.next(d);Q.moveNodes(e,{at:l,to:g,voids:o}),Q.removeNodes(e,{at:d,voids:o})}else if(p===0)Q.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var m=J.next(d);Q.moveNodes(e,{at:l,to:m,voids:o})}else{var y=J.next(l),v=J.next(d);Q.splitNodes(e,{at:y,voids:o}),Q.moveNodes(e,{at:l,to:v,voids:o})}}}})},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{match:r,at:n=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(n){if(r==null)if(J.isPath(n)){var[s]=D.parent(e,n);r=P=>s.children.includes(P)}else r=P=>D.isBlock(e,P);if(!o&&oe.isRange(n)&&(n=D.unhangRange(e,n)),oe.isRange(n))if(oe.isCollapsed(n))n=n.anchor;else{var[,u]=oe.edges(n),l=D.pointRef(e,u);Q.delete(e,{at:n}),n=l.unref(),t.at==null&&Q.select(e,n)}var[c]=D.nodes(e,{at:n,match:r,voids:i,mode:a}),f=D.previous(e,{at:n,match:r,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,g]=f;if(p.length!==0&&g.length!==0){var m,y,v=J.next(g),E=J.common(p,g),w=J.isSibling(p,g),S=Array.from(D.levels(e,{at:p}),P=>{var[q]=P;return q}).slice(E.length).slice(0,-1),C=D.above(e,{at:p,mode:"highest",match:P=>S.includes(P)&&wN(e,P)}),x=C&&D.pathRef(e,C[1]);if(Ce.isText(d)&&Ce.isText(h)){var _=ia(d,Vee);y=h.text.length,m=_}else{if(!Te.isElement(d)||!Te.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));_=ia(d,Ree),y=h.children.length,m=_}w||Q.moveNodes(e,{at:p,to:v,voids:i}),x&&Q.removeNodes(e,{at:x.current,voids:i}),Te.isElement(h)&&D.isEmpty(e,h)||Ce.isText(h)&&h.text===""&&g[g.length-1]!==0?Q.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:v,position:y,properties:m}),x&&x.unref()}}}})},moveNodes(e,t){D.withoutNormalizing(e,()=>{var{to:r,at:n=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(n){a==null&&(a=J.isPath(n)?Ac(e,n):p=>D.isBlock(e,p));var s=D.pathRef(e,r),u=D.nodes(e,{at:n,match:a,mode:o,voids:i}),l=Array.from(u,p=>{var[,h]=p;return D.pathRef(e,h)});for(var c of l){var f=c.unref(),d=s.current;f.length!==0&&e.apply({type:"move_node",path:f,newPath:d}),s.current&&J.isSibling(d,f)&&J.isAfter(d,f)&&(s.current=J.next(s.current))}s.unref()}})},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:n=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=J.isPath(i)?Ac(e,i):d=>D.isBlock(e,d)),!r&&oe.isRange(i)&&(i=D.unhangRange(e,i));var s=D.nodes(e,{at:i,match:a,mode:o,voids:n}),u=Array.from(s,d=>{var[,p]=d;return D.pathRef(e,p)});for(var l of u){var c=l.unref();if(c){var[f]=D.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{match:n,at:o=e.selection}=r,{hanging:i=!1,mode:a="lowest",split:s=!1,voids:u=!1}=r;if(o){if(n==null&&(n=J.isPath(o)?Ac(e,o):S=>D.isBlock(e,S)),!i&&oe.isRange(o)&&(o=D.unhangRange(e,o)),s&&oe.isRange(o)){if(oe.isCollapsed(o)&&D.leaf(e,o.anchor)[0].text.length>0)return;var l=D.rangeRef(e,o,{affinity:"inward"}),[c,f]=oe.edges(o),d=a==="lowest"?"lowest":"highest",p=D.isEnd(e,f,f.path);Q.splitNodes(e,{at:f,match:n,mode:d,voids:u,always:!p});var h=D.isStart(e,c,c.path);Q.splitNodes(e,{at:c,match:n,mode:d,voids:u,always:!h}),o=l.unref(),r.at==null&&Q.select(e,o)}for(var[g,m]of D.nodes(e,{at:o,match:n,mode:a,voids:u})){var y={},v={};if(m.length!==0){var E=!1;for(var w in t)w!=="children"&&w!=="text"&&t[w]!==g[w]&&(E=!0,g.hasOwnProperty(w)&&(y[w]=g[w]),t[w]!=null&&(v[w]=t[w]));E&&e.apply({type:"set_node",path:m,properties:y,newProperties:v})}}}})},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{mode:r="lowest",voids:n=!1}=t,{match:o,at:i=e.selection,height:a=0,always:s=!1}=t;if(o==null&&(o=I=>D.isBlock(e,I)),oe.isRange(i)&&(i=Hee(e,i)),J.isPath(i)){var u=i,l=D.point(e,u),[c]=D.parent(e,u);o=I=>I===c,a=l.path.length-u.length+1,i=l,s=!0}if(i){var f=D.pointRef(e,i,{affinity:"backward"}),[d]=D.nodes(e,{at:i,match:o,mode:r,voids:n});if(d){var p=D.void(e,{at:i,mode:"highest"});if(!n&&p){var[h,g]=p;if(Te.isElement(h)&&e.isInline(h)){var m=D.after(e,g);if(!m){var y=J.next(g);Q.insertNodes(e,{text:""},{at:y,voids:n}),m=D.point(e,y)}i=m,s=!0}a=i.path.length-g.length+1,s=!0}var v=D.pointRef(e,i),E=i.path.length-a,[,w]=d,S=i.path.slice(0,E),C=a===0?i.offset:i.path[E]+0;for(var[x,_]of D.levels(e,{at:S,reverse:!0,voids:n})){var P=!1;if(_.length<w.length||_.length===0||!n&&D.isVoid(e,x))break;var q=f.current,H=D.isEnd(e,q,_);if(s||!f||!D.isEdge(e,q,_)){P=!0;var k=me.extractProps(x);e.apply({type:"split_node",path:_,position:C,properties:k})}C=_[_.length-1]+(P||H?1:0)}if(t.at==null){var M=v.current||D.end(e,[]);Q.select(e,M)}f.unref(),v.unref()}}})},unsetNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var n={};for(var o of t)n[o]=null;Q.setNodes(e,n,r)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{mode:r="lowest",split:n=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=J.isPath(i)?Ac(e,i):d=>D.isBlock(e,d)),J.isPath(i)&&(i=D.range(e,i));var s=oe.isRange(i)?D.rangeRef(e,i):null,u=D.nodes(e,{at:i,match:a,mode:r,voids:o}),l=Array.from(u,d=>{var[,p]=d;return D.pathRef(e,p)}).reverse(),c=function(d){var p=d.unref(),[h]=D.node(e,p),g=D.range(e,p);n&&s&&(g=oe.intersection(s.current,g)),Q.liftNodes(e,{at:g,match:m=>Te.isAncestor(h)&&h.children.includes(m),voids:o})};for(var f of l)c(f);s&&s.unref()}})},wrapNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{mode:n="lowest",split:o=!1,voids:i=!1}=r,{match:a,at:s=e.selection}=r;if(s){if(a==null&&(a=J.isPath(s)?Ac(e,s):e.isInline(t)?m=>D.isInline(e,m)||Ce.isText(m):m=>D.isBlock(e,m)),o&&oe.isRange(s)){var[u,l]=oe.edges(s),c=D.rangeRef(e,s,{affinity:"inward"});Q.splitNodes(e,{at:l,match:a,voids:i}),Q.splitNodes(e,{at:u,match:a,voids:i}),s=c.unref(),r.at==null&&Q.select(e,s)}var f=Array.from(D.nodes(e,{at:s,match:e.isInline(t)?m=>D.isBlock(e,m):m=>D.isEditor(m),mode:"lowest",voids:i}));for(var[,d]of f){var p=oe.isRange(s)?oe.intersection(s,D.range(e,d)):s;if(p){var h=Array.from(D.nodes(e,{at:p,match:a,mode:n,voids:i}));if(h.length>0){var g=function(){var[m]=h,y=h[h.length-1],[,v]=m,[,E]=y;if(v.length===0&&E.length===0)return"continue";var w=J.equals(v,E)?J.parent(v):J.common(v,E),S=D.range(e,v,E),C=D.node(e,w),[x]=C,_=w.length+1,P=J.next(E.slice(0,_)),q=bN(bN({},t),{},{children:[]});Q.insertNodes(e,q,{at:P,voids:i}),Q.moveNodes(e,{at:S,match:H=>Te.isAncestor(x)&&x.children.includes(H),to:P.concat(0),voids:i})}();if(g==="continue")continue}}}}})}},wN=(e,t)=>{if(Te.isElement(t)){var r=t;return!!D.isVoid(e,t)||r.children.length===1&&wN(e,r.children[0])}return!D.isEditor(t)},Hee=(e,t)=>{if(oe.isCollapsed(t))return t.anchor;var[,r]=oe.edges(t),n=D.pointRef(e,r);return Q.delete(e,{at:t}),n.unref()},Ac=(e,t)=>{var[r]=D.node(e,t);return n=>n===r};function EN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function SN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EN(Object(r),!0).forEach(function(n){yi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Uee={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=t,{selection:n}=e;if(n){if(r==="anchor")Q.select(e,n.anchor);else if(r==="focus")Q.select(e,n.focus);else if(r==="start"){var[o]=oe.edges(n);Q.select(e,o)}else if(r==="end"){var[,i]=oe.edges(n);Q.select(e,i)}}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=e,{distance:n=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(r){a==="start"&&(a=oe.isBackward(r)?"focus":"anchor"),a==="end"&&(a=oe.isBackward(r)?"anchor":"focus");var{anchor:s,focus:u}=r,l={distance:n,unit:o},c={};if(a==null||a==="anchor"){var f=i?D.before(e,s,l):D.after(e,s,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var d=i?D.before(e,u,l):D.after(e,u,l);d&&(c.focus=d)}Q.setSelection(e,c)}},select(e,t){var{selection:r}=e;if(t=D.range(e,t),r)Q.setSelection(e,t);else{if(!oe.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:r,newProperties:t})}},setPoint(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:n}=e,{edge:o="both"}=r;if(n){o==="start"&&(o=oe.isBackward(n)?"focus":"anchor"),o==="end"&&(o=oe.isBackward(n)?"anchor":"focus");var{anchor:i,focus:a}=n,s=o==="anchor"?i:a;Q.setSelection(e,{[o==="anchor"?"anchor":"focus"]:SN(SN({},s),t)})}},setSelection(e,t){var{selection:r}=e,n={},o={};if(r){for(var i in t)(i==="anchor"&&t.anchor!=null&&!Ze.equals(t.anchor,r.anchor)||i==="focus"&&t.focus!=null&&!Ze.equals(t.focus,r.focus)||i!=="anchor"&&i!=="focus"&&t[i]!==r[i])&&(n[i]=r[i],o[i]=t[i]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:o})}}},qee={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{reverse:r=!1,unit:n="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){if(oe.isRange(a)&&oe.isCollapsed(a)&&(a=a.anchor),Ze.isPoint(a)){var u=D.void(e,{at:a,mode:"highest"});if(!i&&u){var[,l]=u;a=l}else{var c={unit:n,distance:o};a={anchor:a,focus:r?D.before(e,a,c)||D.start(e,[]):D.after(e,a,c)||D.end(e,[])},s=!0}}if(J.isPath(a))Q.removeNodes(e,{at:a,voids:i});else if(!oe.isCollapsed(a)){if(!s){var[,f]=oe.edges(a),d=D.end(e,[]);Ze.equals(f,d)||(a=D.unhangRange(e,a,{voids:i}))}var[p,h]=oe.edges(a),g=D.above(e,{match:X=>D.isBlock(e,X),at:p,voids:i}),m=D.above(e,{match:X=>D.isBlock(e,X),at:h,voids:i}),y=g&&m&&!J.equals(g[1],m[1]),v=J.equals(p.path,h.path),E=i?null:D.void(e,{at:p,mode:"highest"}),w=i?null:D.void(e,{at:h,mode:"highest"});if(E){var S=D.before(e,p);S&&g&&J.isAncestor(g[1],S.path)&&(p=S)}if(w){var C=D.after(e,h);C&&m&&J.isAncestor(m[1],C.path)&&(h=C)}var x,_=[];for(var P of D.nodes(e,{at:a,voids:i})){var[q,H]=P;x&&J.compare(H,x)===0||(!i&&D.isVoid(e,q)||!J.isCommon(H,p.path)&&!J.isCommon(H,h.path))&&(_.push(P),x=H)}var k=Array.from(_,X=>{var[,ae]=X;return D.pathRef(e,ae)}),M=D.pointRef(e,p),I=D.pointRef(e,h);if(!v&&!E){var T=M.current,[F]=D.leaf(e,T),{path:U}=T,{offset:R}=p,Z=F.text.slice(R);Z.length>0&&e.apply({type:"remove_text",path:U,offset:R,text:Z})}for(var re of k){var O=re.unref();Q.removeNodes(e,{at:O,voids:i})}if(!w){var A=I.current,[V]=D.leaf(e,A),{path:B}=A,L=v?p.offset:0,j=V.text.slice(L,h.offset);j.length>0&&e.apply({type:"remove_text",path:B,offset:L,text:j})}!v&&y&&I.current&&M.current&&Q.mergeNodes(e,{at:I.current,hanging:!0,voids:i});var W=r?M.unref()||I.unref():I.unref()||M.unref();t.at==null&&W&&Q.select(e,W)}}})},insertFragment(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:o=!1}=r,{at:i=e.selection}=r;if(t.length&&i){if(oe.isRange(i))if(n||(i=D.unhangRange(e,i)),oe.isCollapsed(i))i=i.anchor;else{var[,a]=oe.edges(i);if(!o&&D.void(e,{at:a}))return;var s=D.pointRef(e,a);Q.delete(e,{at:i}),i=s.unref()}else J.isPath(i)&&(i=D.start(e,i));if(o||!D.void(e,{at:i})){var u=D.above(e,{at:i,match:A=>D.isInline(e,A),mode:"highest",voids:o});if(u){var[,l]=u;D.isEnd(e,i,l)?i=D.after(e,l):D.isStart(e,i,l)&&(i=D.before(e,l))}var c=D.above(e,{match:A=>D.isBlock(e,A),at:i,voids:o}),[,f]=c,d=D.isStart(e,i,f),p=D.isEnd(e,i,f),h=d&&p,g=!d||d&&p,m=!p,[,y]=me.first({children:t},[]),[,v]=me.last({children:t},[]),E=[],w=A=>{var[V,B]=A;return B.length!==0&&(!!h||!(g&&J.isAncestor(B,y)&&Te.isElement(V)&&!e.isVoid(V)&&!e.isInline(V))&&!(m&&J.isAncestor(B,v)&&Te.isElement(V)&&!e.isVoid(V)&&!e.isInline(V)))};for(var S of me.nodes({children:t},{pass:w}))w(S)&&E.push(S);var C=[],x=[],_=[],P=!0,q=!1;for(var[H]of E)Te.isElement(H)&&!e.isInline(H)?(P=!1,q=!0,x.push(H)):P?C.push(H):_.push(H);var[k]=D.nodes(e,{at:i,match:A=>Ce.isText(A)||D.isInline(e,A),mode:"highest",voids:o}),[,M]=k,I=D.isStart(e,i,M),T=D.isEnd(e,i,M),F=D.pathRef(e,p?J.next(f):f),U=D.pathRef(e,T?J.next(M):M),R=D.pathRef(e,f);Q.splitNodes(e,{at:i,match:A=>q?D.isBlock(e,A):Ce.isText(A)||D.isInline(e,A),mode:q?"lowest":"highest",voids:o});var Z=D.pathRef(e,!I||I&&T?J.next(M):M);if(Q.insertNodes(e,C,{at:Z.current,match:A=>Ce.isText(A)||D.isInline(e,A),mode:"highest",voids:o}),h&&x.length&&Q.delete(e,{at:R.unref(),voids:o}),Q.insertNodes(e,x,{at:F.current,match:A=>D.isBlock(e,A),mode:"lowest",voids:o}),Q.insertNodes(e,_,{at:U.current,match:A=>Ce.isText(A)||D.isInline(e,A),mode:"highest",voids:o}),!r.at){var re;re=_.length>0?J.previous(U.current):x.length>0?J.previous(F.current):J.previous(Z.current);var O=D.end(e,re);Q.select(e,O)}Z.unref(),F.unref(),U.unref()}}})},insertText(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{voids:n=!1}=r,{at:o=e.selection}=r;if(o){if(J.isPath(o)&&(o=D.range(e,o)),oe.isRange(o))if(oe.isCollapsed(o))o=o.anchor;else{var i=oe.end(o);if(!n&&D.void(e,{at:i}))return;var a=D.pointRef(e,i);Q.delete(e,{at:o,voids:n}),o=a.unref(),Q.setSelection(e,{anchor:o,focus:o})}if(n||!D.void(e,{at:o})){var{path:s,offset:u}=o;t.length>0&&e.apply({type:"insert_text",path:s,offset:u,text:t})}}})}};function xN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function a1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xN(Object(r),!0).forEach(function(n){yi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Q=a1(a1(a1(a1({},zee),$ee),Uee),qee),o3="[object Map]",i3="[object Set]",Kee=/^\[object .+?Constructor\]$/,Gee=/^(?:0|[1-9]\d*)$/,Wee="[\\ud800-\\udfff]",a3="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",s3="\\ud83c[\\udffb-\\udfff]",CN="[^\\ud800-\\udfff]",DN="(?:\\ud83c[\\udde6-\\uddff]){2}",_N="[\\ud800-\\udbff][\\udc00-\\udfff]",ON="(?:"+a3+"|"+s3+")?",Yee="[\\ufe0e\\ufe0f]?"+ON+("(?:\\u200d(?:"+[CN,DN,_N].join("|")+")[\\ufe0e\\ufe0f]?"+ON+")*"),Xee="(?:"+[CN+a3+"?",a3,DN,_N,Wee].join("|")+")",Jee=RegExp(s3+"(?="+s3+")|"+Xee+Yee,"g"),Zee=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Qee=typeof Ft=="object"&&Ft&&Ft.Object===Object&&Ft,ete=typeof self=="object"&&self&&self.Object===Object&&self,Lu=Qee||ete||Function("return this")();function tte(e,t){return function(r,n){for(var o=-1,i=r?r.length:0,a=Array(i);++o<i;)a[o]=n(r[o],o,r);return a}(t,function(r){return e[r]})}function rte(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function nte(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}function ote(e){return function(t){return Zee.test(t)}(e)?function(t){return t.match(Jee)||[]}(e):function(t){return t.split("")}(e)}var AN,kN,ite=Function.prototype,s1=Object.prototype,u3=Lu["__core-js_shared__"],NN=function(){var e=/[^.]+$/.exec(u3&&u3.keys&&u3.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),TN=ite.toString,u1=s1.hasOwnProperty,gp=s1.toString,ate=RegExp("^"+TN.call(u1).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),PN=Lu.Symbol,l3=PN?PN.iterator:void 0,ste=s1.propertyIsEnumerable,ute=(AN=Object.keys,kN=Object,function(e){return AN(kN(e))}),c3=vp(Lu,"DataView"),f3=vp(Lu,"Map"),d3=vp(Lu,"Promise"),p3=vp(Lu,"Set"),h3=vp(Lu,"WeakMap"),lte=zu(c3),cte=zu(f3),fte=zu(d3),dte=zu(p3),pte=zu(h3);function hte(e,t){var r=BN(e)||function(a){return function(s){return IN(s)&&g3(s)}(a)&&u1.call(a,"callee")&&(!ste.call(a,"callee")||gp.call(a)=="[object Arguments]")}(e)?function(a,s){for(var u=-1,l=Array(a);++u<a;)l[u]=s(u);return l}(e.length,String):[],n=r.length,o=!!n;for(var i in e)!u1.call(e,i)||o&&(i=="length"||mte(i,n))||r.push(i);return r}function gte(e){if(!jN(e)||function(r){return!!NN&&NN in r}(e))return!1;var t=FN(e)||function(r){var n=!1;if(r!=null&&typeof r.toString!="function")try{n=!!(r+"")}catch{}return n}(e)?ate:Kee;return t.test(zu(e))}function vte(e){if(r=(t=e)&&t.constructor,n=typeof r=="function"&&r.prototype||s1,t!==n)return ute(e);var t,r,n,o=[];for(var i in Object(e))u1.call(e,i)&&i!="constructor"&&o.push(i);return o}function vp(e,t){var r=function(n,o){return n==null?void 0:n[o]}(e,t);return gte(r)?r:void 0}var Mu=function(e){return gp.call(e)};function mte(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||Gee.test(e))&&e>-1&&e%1==0&&e<t}function zu(e){if(e!=null){try{return TN.call(e)}catch{}try{return e+""}catch{}}return""}(c3&&Mu(new c3(new ArrayBuffer(1)))!="[object DataView]"||f3&&Mu(new f3)!=o3||d3&&Mu(d3.resolve())!="[object Promise]"||p3&&Mu(new p3)!=i3||h3&&Mu(new h3)!="[object WeakMap]")&&(Mu=function(e){var t=gp.call(e),r=t=="[object Object]"?e.constructor:void 0,n=r?zu(r):void 0;if(n)switch(n){case lte:return"[object DataView]";case cte:return o3;case fte:return"[object Promise]";case dte:return i3;case pte:return"[object WeakMap]"}return t});var BN=Array.isArray;function g3(e){return e!=null&&function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!FN(e)}function FN(e){var t=jN(e)?gp.call(e):"";return t=="[object Function]"||t=="[object GeneratorFunction]"}function jN(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function IN(e){return!!e&&typeof e=="object"}function yte(e){return e?tte(e,function(t){return g3(t)?hte(t):vte(t)}(e)):[]}var LN=function(e){if(!e)return[];if(g3(e))return function(r){return typeof r=="string"||!BN(r)&&IN(r)&&gp.call(r)=="[object String]"}(e)?ote(e):function(r,n){var o=-1,i=r.length;for(n||(n=Array(i));++o<i;)n[o]=r[o];return n}(e);if(l3&&e[l3])return function(r){for(var n,o=[];!(n=r.next()).done;)o.push(n.value);return o}(e[l3]());var t=Mu(e);return(t==o3?rte:t==i3?nte:yte)(e)};function MN(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function v3(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(r){e[r]===void 0?e[r]=t[r]:MN(t[r])&&MN(e[r])&&Object.keys(t[r]).length>0&&v3(e[r],t[r])})}var zN={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function mp(){var e=typeof document<"u"?document:{};return v3(e,zN),e}var bte={document:zN,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout<"u"&&clearTimeout(e)}};function Vu(){var e=typeof window<"u"?window:{};return v3(e,bte),e}function m3(e){return m3=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},m3(e)}function l1(e,t){return l1=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},l1(e,t)}function wte(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function y3(e,t,r){return y3=wte()?Reflect.construct:function(n,o,i){var a=[null];a.push.apply(a,o);var s=new(Function.bind.apply(n,a));return i&&l1(s,i.prototype),s},y3.apply(null,arguments)}function b3(e){var t=typeof Map=="function"?new Map:void 0;return b3=function(r){if(r===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return y3(r,arguments,m3(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l1(n,r)},b3(e)}var Xa=function(e){var t,r;function n(o){var i,a,s;return i=e.call.apply(e,[this].concat(o))||this,a=function(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}(i),s=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return s},set:function(u){s.__proto__=u}}),i}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n}(b3(Array));function c1(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(r){Array.isArray(r)?t.push.apply(t,c1(r)):t.push(r)}),t}function VN(e,t){return Array.prototype.filter.call(e,t)}function $(e,t){var r=Vu(),n=mp(),o=[];if(!t&&e instanceof Xa)return e;if(!e)return new Xa(o);if(typeof e=="string"){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("<li")===0&&(a="ul"),i.indexOf("<tr")===0&&(a="tbody"),i.indexOf("<td")!==0&&i.indexOf("<th")!==0||(a="tr"),i.indexOf("<tbody")===0&&(a="table"),i.indexOf("<option")===0&&(a="select");var s=n.createElement(a);s.innerHTML=i;for(var u=0;u<s.childNodes.length;u+=1)o.push(s.childNodes[u])}else o=function(l,c){if(typeof l!="string")return[l];for(var f=[],d=c.querySelectorAll(l),p=0;p<d.length;p+=1)f.push(d[p]);return f}(e.trim(),t||n)}else if(e.nodeType||e===r||e===n)o.push(e);else if(Array.isArray(e)){if(e instanceof Xa)return e;o=e}return new Xa(function(l){for(var c=[],f=0;f<l.length;f+=1)c.indexOf(l[f])===-1&&c.push(l[f]);return c}(o))}function kc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=c1(t.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,n)}),this}function Nc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=c1(t.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,n)}),this}function Tc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=c1(t.map(function(o){return o.split(" ")}));return VN(this,function(o){return n.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function go(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var r=0;r<this.length;r+=1)if(arguments.length===2)this[r].setAttribute(e,t);else for(var n in e)this[r][n]=e[n],this[r].setAttribute(n,e[n]);return this}function f1(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Pc(){var e=this[0];if(e){var t,r={};if(e.dataset)for(var n in e.dataset)r[n]=e.dataset[n];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(r[t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,function(s,u){return u.toUpperCase()})]=i.value)}for(var a in r)r[a]==="false"?r[a]=!1:r[a]==="true"?r[a]=!0:parseFloat(r[a])===1*r[a]&&(r[a]*=1);return r}}function bi(e){if(e===void 0){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){for(var r=[],n=0;n<t.selectedOptions.length;n+=1)r.push(t.selectedOptions[n].value);return r}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function wi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],i=t[2],a=t[3];function s(g){var m=g.target;if(m){var y=g.target.dom7EventData||[];if(y.indexOf(g)<0&&y.unshift(g),$(m).is(o))i.apply(m,y);else for(var v=$(m).parents(),E=0;E<v.length;E+=1)$(v[E]).is(o)&&i.apply(v[E],y)}}function u(g){var m=g&&g.target&&g.target.dom7EventData||[];m.indexOf(g)<0&&m.unshift(g),i.apply(this,m)}typeof t[1]=="function"&&(n=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=n.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:s}),d.addEventListener(p,s,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:u}),d.addEventListener(h,u,a)}}return this}function RN(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],i=t[2],a=t[3];typeof t[1]=="function"&&(n=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var s=n.split(" "),u=0;u<s.length;u+=1)for(var l=s[u],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function d1(){var e=Vu();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function p1(){var e=Vu();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function $N(){if(this.length>0){var e=Vu(),t=mp(),r=this[0],n=r.getBoundingClientRect(),o=t.body,i=r.clientTop||o.clientTop||0,a=r.clientLeft||o.clientLeft||0,s=r===e?e.scrollY:r.scrollTop,u=r===e?e.scrollX:r.scrollLeft;return{top:n.top+s-i,left:n.left+u-a}}return null}function Bc(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function h1(){for(var e=Vu(),t=0;t<this.length;t+=1){var r=this[t];r.style.display==="none"&&(r.style.display=""),e.getComputedStyle(r,null).getPropertyValue("display")==="none"&&(r.style.display="block")}return this}function g1(e,t){var r,n=Vu();if(arguments.length===1){if(typeof e!="string"){for(r=0;r<this.length;r+=1)for(var o in e)this[r].style[o]=e[o];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(e)}if(arguments.length===2&&typeof e=="string"){for(r=0;r<this.length;r+=1)this[r].style[e]=t;return this}return this}function v1(e){return e?(this.forEach(function(t,r){e.apply(t,[t,r])}),this):this}function HN(e){return $(VN(this,e))}function Ja(e){if(e===void 0)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function m1(e){if(e===void 0)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function UN(e){var t,r,n=Vu(),o=mp(),i=this[0];if(!i||e===void 0)return!1;if(typeof e=="string"){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=$(e),r=0;r<t.length;r+=1)if(t[r]===i)return!0;return!1}if(e===o)return i===o;if(e===n)return i===n;if(e.nodeType||e instanceof Xa){for(t=e.nodeType?[e]:e,r=0;r<t.length;r+=1)if(t[r]===i)return!0;return!1}return!1}function vo(){for(var e,t=mp(),r=0;r<arguments.length;r+=1){e=r<0||arguments.length<=r?void 0:arguments[r];for(var n=0;n<this.length;n+=1)if(typeof e=="string"){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[n].appendChild(o.firstChild)}else if(e instanceof Xa)for(var i=0;i<e.length;i+=1)this[n].appendChild(e[i]);else this[n].appendChild(e)}return this}function qN(e){var t,r,n=mp();for(t=0;t<this.length;t+=1)if(typeof e=="string"){var o=n.createElement("div");for(o.innerHTML=e,r=o.childNodes.length-1;r>=0;r-=1)this[t].insertBefore(o.childNodes[r],this[t].childNodes[0])}else if(e instanceof Xa)for(r=0;r<e.length;r+=1)this[t].insertBefore(e[r],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function Fc(e){for(var t=[],r=0;r<this.length;r+=1)this[r].parentNode!==null&&(e?$(this[r].parentNode).is(e)&&t.push(this[r].parentNode):t.push(this[r].parentNode));return $(t)}function y1(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].parentNode;n;)e?$(n).is(e)&&t.push(n):t.push(n),n=n.parentNode;return $(t)}function jc(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].querySelectorAll(e),o=0;o<n.length;o+=1)t.push(n[o]);return $(t)}function Ic(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].children,o=0;o<n.length;o+=1)e&&!$(n[o]).is(e)||t.push(n[o]);return $(t)}function Lc(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Mc(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var r=0;r<t.childNodes.length;r+=1)t.childNodes[r].parentNode&&t.childNodes[r].parentNode.removeChild(t.childNodes[r]);t.textContent=""}}return this}$.fn=Xa.prototype;var Ete="resize scroll".split(" ");function KN(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r[0]===void 0){for(var o=0;o<this.length;o+=1)Ete.indexOf(e)<0&&(e in this[o]?this[o][e]():$(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(r))}}var GN=KN("click"),Za=KN("focus"),Ste="[object GeneratorFunction]",xte=/^(?:0|[1-9]\d*)$/;function Cte(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}var b1=Object.prototype,w3=b1.hasOwnProperty,WN=b1.toString,Dte=b1.propertyIsEnumerable,_te=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object);function Ote(e,t){var r=XN(e)||function(a){return function(s){return function(u){return!!u&&typeof u=="object"}(s)&&E3(s)}(a)&&w3.call(a,"callee")&&(!Dte.call(a,"callee")||WN.call(a)=="[object Arguments]")}(e)?function(a,s){for(var u=-1,l=Array(a);++u<a;)l[u]=s(u);return l}(e.length,String):[],n=r.length,o=!!n;for(var i in e)!w3.call(e,i)||o&&(i=="length"||Tte(i,n))||r.push(i);return r}var YN,Ate=(YN=function(e,t){return e&&kte(e,t,Pte)},function(e,t){if(e==null)return e;if(!E3(e))return YN(e,t);for(var r=e.length,n=-1,o=Object(e);++n<r&&t(o[n],n,o)!==!1;);return e}),kte=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var u=a[++o];if(r(i[u],u,i)===!1)break}return t}}();function Nte(e){if(r=(t=e)&&t.constructor,n=typeof r=="function"&&r.prototype||b1,t!==n)return _te(e);var t,r,n,o=[];for(var i in Object(e))w3.call(e,i)&&i!="constructor"&&o.push(i);return o}function Tte(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||xte.test(e))&&e>-1&&e%1==0&&e<t}var XN=Array.isArray;function E3(e){return e!=null&&function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!function(t){var r=function(n){var o=typeof n;return!!n&&(o=="object"||o=="function")}(t)?WN.call(t):"";return r=="[object Function]"||r==Ste}(e)}function Pte(e){return E3(e)?Ote(e):Nte(e)}function Bte(e){return e}var S3=function(e,t){return(XN(e)?Cte:Ate)(e,typeof t=="function"?t:Bte)};let JN=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let n=63&r[e];t+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return t};var Fte=/^\s+|\s+$/g,jte=/^[-+]0x[0-9a-f]+$/i,Ite=/^0b[01]+$/i,Lte=/^0o[0-7]+$/i,Mte=parseInt,zte=typeof Ft=="object"&&Ft&&Ft.Object===Object&&Ft,Vte=typeof self=="object"&&self&&self.Object===Object&&self,Rte=zte||Vte||Function("return this")(),$te=Object.prototype.toString,Hte=Math.max,Ute=Math.min,x3=function(){return Rte.Date.now()};function qte(e,t,r){var n,o,i,a,s,u,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError("Expected a function");function p(E){var w=n,S=o;return n=o=void 0,l=E,a=e.apply(S,w)}function h(E){return l=E,s=setTimeout(m,t),c?p(E):a}function g(E){var w=E-u;return u===void 0||w>=t||w<0||f&&E-l>=i}function m(){var E=x3();if(g(E))return y(E);s=setTimeout(m,function(w){var S=t-(w-u);return f?Ute(S,i-(w-l)):S}(E))}function y(E){return s=void 0,d&&n?p(E):(n=o=void 0,a)}function v(){var E=x3(),w=g(E);if(n=arguments,o=this,u=E,w){if(s===void 0)return h(u);if(f)return s=setTimeout(m,t),p(u)}return s===void 0&&(s=setTimeout(m,t)),a}return t=ZN(t)||0,w1(r)&&(c=!!r.leading,i=(f="maxWait"in r)?Hte(ZN(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d),v.cancel=function(){s!==void 0&&clearTimeout(s),l=0,n=u=o=s=void 0},v.flush=function(){return s===void 0?a:y(x3())},v}function w1(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function ZN(e){if(typeof e=="number")return e;if(function(n){return typeof n=="symbol"||function(o){return!!o&&typeof o=="object"}(n)&&$te.call(n)=="[object Symbol]"}(e))return NaN;if(w1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=w1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Fte,"");var r=Ite.test(e);return r||Lte.test(e)?Mte(e.slice(2),r?2:8):jte.test(e)?NaN:+e}var Ru=function(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError("Expected a function");return w1(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),qte(e,t,{leading:n,maxWait:t,trailing:o})};const Kte={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,r){return document.createElementNS(e,t,r)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,r){e.insertBefore(t,r)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return e.nodeType===1},isText:function(e){return e.nodeType===3},isComment:function(e){return e.nodeType===8}};function yp(e,t,r,n,o){return{sel:e,data:t,children:r,text:n,elm:o,key:t===void 0?void 0:t.key}}const C3=Array.isArray;function E1(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function D3(e){return e===void 0}function Wn(e){return e!==void 0}const QN=yp("",{},[],void 0,void 0);function bp(e,t){var r,n;const o=e.key===t.key,i=((r=e.data)===null||r===void 0?void 0:r.is)===((n=t.data)===null||n===void 0?void 0:n.is);return e.sel===t.sel&&o&&i}function Gte(e,t,r){var n;const o={};for(let i=t;i<=r;++i){const a=(n=e[i])===null||n===void 0?void 0:n.key;a!==void 0&&(o[a]=i)}return o}const Wte=["create","update","remove","destroy","pre","post"];function Yte(e,t){const r={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},n=Kte;for(const f of Wte)for(const d of e){const p=d[f];p!==void 0&&r[f].push(p)}function o(f){const d=f.id?"#"+f.id:"",p=f.getAttribute("class"),h=p?"."+p.split(" ").join("."):"";return yp(n.tagName(f).toLowerCase()+d+h,{},[],void 0,f)}function i(f,d){return function(){if(--d==0){const p=n.parentNode(f);n.removeChild(p,f)}}}function a(f,d){var p,h;let g,m=f.data;if(m!==void 0){const E=(p=m.hook)===null||p===void 0?void 0:p.init;Wn(E)&&(E(f),m=f.data)}const y=f.children,v=f.sel;if(v==="!")D3(f.text)&&(f.text=""),f.elm=n.createComment(f.text);else if(v!==void 0){const E=v.indexOf("#"),w=v.indexOf(".",E),S=E>0?E:v.length,C=w>0?w:v.length,x=E!==-1||w!==-1?v.slice(0,Math.min(S,C)):v,_=f.elm=Wn(m)&&Wn(g=m.ns)?n.createElementNS(g,x,m):n.createElement(x,m);for(S<C&&_.setAttribute("id",v.slice(S+1,C)),w>0&&_.setAttribute("class",v.slice(C+1).replace(/\./g," ")),g=0;g<r.create.length;++g)r.create[g](QN,f);if(C3(y))for(g=0;g<y.length;++g){const q=y[g];q!=null&&n.appendChild(_,a(q,d))}else E1(f.text)&&n.appendChild(_,n.createTextNode(f.text));const P=f.data.hook;Wn(P)&&((h=P.create)===null||h===void 0||h.call(P,QN,f),P.insert&&d.push(f))}else f.elm=n.createTextNode(f.text);return f.elm}function s(f,d,p,h,g,m){for(;h<=g;++h){const y=p[h];y!=null&&n.insertBefore(f,a(y,m),d)}}function u(f){var d,p;const h=f.data;if(h!==void 0){(p=(d=h==null?void 0:h.hook)===null||d===void 0?void 0:d.destroy)===null||p===void 0||p.call(d,f);for(let g=0;g<r.destroy.length;++g)r.destroy[g](f);if(f.children!==void 0)for(let g=0;g<f.children.length;++g){const m=f.children[g];m!=null&&typeof m!="string"&&u(m)}}}function l(f,d,p,h){for(var g,m;p<=h;++p){let y,v;const E=d[p];if(E!=null)if(Wn(E.sel)){u(E),y=r.remove.length+1,v=i(E.elm,y);for(let S=0;S<r.remove.length;++S)r.remove[S](E,v);const w=(m=(g=E==null?void 0:E.data)===null||g===void 0?void 0:g.hook)===null||m===void 0?void 0:m.remove;Wn(w)?w(E,v):v()}else n.removeChild(f,E.elm)}}function c(f,d,p){var h,g,m,y,v;const E=(h=d.data)===null||h===void 0?void 0:h.hook;(g=E==null?void 0:E.prepatch)===null||g===void 0||g.call(E,f,d);const w=d.elm=f.elm,S=f.children,C=d.children;if(f!==d){if(d.data!==void 0){for(let x=0;x<r.update.length;++x)r.update[x](f,d);(y=(m=d.data.hook)===null||m===void 0?void 0:m.update)===null||y===void 0||y.call(m,f,d)}D3(d.text)?Wn(S)&&Wn(C)?S!==C&&function(x,_,P,q){let H,k,M,I,T=0,F=0,U=_.length-1,R=_[0],Z=_[U],re=P.length-1,O=P[0],A=P[re];for(;T<=U&&F<=re;)R==null?R=_[++T]:Z==null?Z=_[--U]:O==null?O=P[++F]:A==null?A=P[--re]:bp(R,O)?(c(R,O,q),R=_[++T],O=P[++F]):bp(Z,A)?(c(Z,A,q),Z=_[--U],A=P[--re]):bp(R,A)?(c(R,A,q),n.insertBefore(x,R.elm,n.nextSibling(Z.elm)),R=_[++T],A=P[--re]):bp(Z,O)?(c(Z,O,q),n.insertBefore(x,Z.elm,R.elm),Z=_[--U],O=P[++F]):(H===void 0&&(H=Gte(_,T,U)),k=H[O.key],D3(k)?n.insertBefore(x,a(O,q),R.elm):(M=_[k],M.sel!==O.sel?n.insertBefore(x,a(O,q),R.elm):(c(M,O,q),_[k]=void 0,n.insertBefore(x,M.elm,R.elm))),O=P[++F]);(T<=U||F<=re)&&(T>U?(I=P[re+1]==null?null:P[re+1].elm,s(x,I,P,F,re,q)):l(x,_,T,U))}(w,S,C,p):Wn(C)?(Wn(f.text)&&n.setTextContent(w,""),s(w,null,C,0,C.length-1,p)):Wn(S)?l(w,S,0,S.length-1):Wn(f.text)&&n.setTextContent(w,""):f.text!==d.text&&(Wn(S)&&l(w,S,0,S.length-1),n.setTextContent(w,d.text)),(v=E==null?void 0:E.postpatch)===null||v===void 0||v.call(E,f,d)}}return function(f,d){let p,h,g;const m=[];for(p=0;p<r.pre.length;++p)r.pre[p]();for(function(y){return y.sel!==void 0}(f)||(f=o(f)),bp(f,d)?c(f,d,m):(h=f.elm,g=n.parentNode(h),a(d,m),g!==null&&(n.insertBefore(g,d.elm,n.nextSibling(h)),l(g,[f],0,0))),p=0;p<m.length;++p)m[p].data.hook.insert(m[p]);for(p=0;p<r.post.length;++p)r.post[p]();return d}}function eT(e,t,r){if(e.ns="http://www.w3.org/2000/svg",r!=="foreignObject"&&t!==void 0)for(let n=0;n<t.length;++n){const o=t[n].data;o!==void 0&&eT(o,t[n].children,t[n].sel)}}function zc(e,t,r){let n,o,i,a={};if(r!==void 0?(t!==null&&(a=t),C3(r)?n=r:E1(r)?o=r.toString():r&&r.sel&&(n=[r])):t!=null&&(C3(t)?n=t:E1(t)?o=t.toString():t&&t.sel?n=[t]:a=t),n!==void 0)for(i=0;i<n.length;++i)E1(n[i])&&(n[i]=yp(void 0,void 0,void 0,n[i],void 0));return e[0]!=="s"||e[1]!=="v"||e[2]!=="g"||e.length!==3&&e[3]!=="."&&e[3]!=="#"||eT(a,n,e),yp(e,a,n,o,void 0)}function tT(e,t){let r;const n=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(r in o=o||{},i=i||{},i){const a=i[r];o[r]!==a&&(a===!0?n.setAttribute(r,""):a===!1?n.removeAttribute(r):r.charCodeAt(0)!==120?n.setAttribute(r,a):r.charCodeAt(3)===58?n.setAttributeNS("http://www.w3.org/XML/1998/namespace",r,a):r.charCodeAt(5)===58?n.setAttributeNS("http://www.w3.org/1999/xlink",r,a):n.setAttribute(r,a))}for(r in o)r in i||n.removeAttribute(r)}}const Xte={create:tT,update:tT};function rT(e,t){let r,n;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(n in i=i||{},a=a||{},i)i[n]&&!Object.prototype.hasOwnProperty.call(a,n)&&o.classList.remove(n);for(n in a)r=a[n],r!==i[n]&&o.classList[r?"add":"remove"](n)}}const Jte={create:rT,update:rT},nT=/[A-Z]/g;function oT(e,t){const r=t.elm;let n,o=e.data.dataset,i=t.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=r.dataset;for(n in o)i[n]||(a?n in a&&delete a[n]:r.removeAttribute("data-"+n.replace(nT,"-$&").toLowerCase()));for(n in i)o[n]!==i[n]&&(a?a[n]=i[n]:r.setAttribute("data-"+n.replace(nT,"-$&").toLowerCase(),i[n]))}const Zte={create:oT,update:oT};function iT(e,t,r){if(typeof e=="function")e.call(t,r,t);else if(typeof e=="object")for(let n=0;n<e.length;n++)iT(e[n],t,r)}function Qte(e,t){const r=e.type,n=t.data.on;n&&n[r]&&iT(n[r],t,e)}function _3(e,t){const r=e.data.on,n=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let s;if(r!==i){if(r&&n)if(i)for(s in r)i[s]||o.removeEventListener(s,n,!1);else for(s in r)o.removeEventListener(s,n,!1);if(i){const u=t.listener=e.listener||function l(c){Qte(c,l.vnode)};if(u.vnode=t,r)for(s in i)r[s]||a.addEventListener(s,u,!1);else for(s in i)a.addEventListener(s,u,!1)}}}const ere={create:_3,update:_3,destroy:_3};function aT(e,t){let r,n,o;const i=t.elm;let a=e.data.props,s=t.data.props;if((a||s)&&a!==s)for(r in a=a||{},s=s||{},s)n=s[r],o=a[r],o===n||r==="value"&&i[r]===n||(i[r]=n)}const tre={create:aT,update:aT},sT=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let O3=!1;function rre(e,t,r){(function(n){sT(function(){sT(n)})})(function(){e[t]=r})}function uT(e,t){let r,n;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a||i===a)return;i=i||{},a=a||{};const s="delayed"in i;for(n in i)a[n]||(n[0]==="-"&&n[1]==="-"?o.style.removeProperty(n):o.style[n]="");for(n in a)if(r=a[n],n==="delayed"&&a.delayed)for(const u in a.delayed)r=a.delayed[u],s&&r===i.delayed[u]||rre(o.style,u,r);else n!=="remove"&&r!==i[n]&&(n[0]==="-"&&n[1]==="-"?o.style.setProperty(n,r):o.style[n]=r)}const nre={pre:function(){O3=!1},create:uT,update:uT,destroy:function(e){let t,r;const n=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(r in t)n.style[r]=t[r]},remove:function(e,t){const r=e.data.style;if(!r||!r.remove)return void t();let n;O3||(e.elm.offsetLeft,O3=!0);const o=e.elm;let i=0;const a=r.remove;let s=0;const u=[];for(n in a)u.push(n),o.style[n]=a[n];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)u.indexOf(l[i])!==-1&&s++;o.addEventListener("transitionend",function(c){c.target===o&&--s,s===0&&t()})}};function lT(e,t){for(const r of e)r!=null&&r!==!1&&r!==""&&(Array.isArray(r)?lT(r,t):typeof r=="string"||typeof r=="number"||typeof r=="boolean"?t.push(yp(void 0,void 0,void 0,String(r),void 0)):t.push(r));return t}function $e(e,t,...r){const n=lT(r,[]);return typeof e=="function"?e(t,n):n.length===1&&!n[0].sel&&n[0].text?zc(e,t,n[0].text):zc(e,t,n)}$e||($e={});var ore=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ire=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,cT="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",are="[\\ud800-\\udfff]",fT="["+cT+"]",S1="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",dT="\\d+",sre="[\\u2700-\\u27bf]",pT="[a-z\\xdf-\\xf6\\xf8-\\xff]",hT="[^\\ud800-\\udfff"+cT+dT+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",A3="\\ud83c[\\udffb-\\udfff]",gT="[^\\ud800-\\udfff]",k3="(?:\\ud83c[\\udde6-\\uddff]){2}",N3="[\\ud800-\\udbff][\\udc00-\\udfff]",Vc="[A-Z\\xc0-\\xd6\\xd8-\\xde]",vT="(?:"+pT+"|"+hT+")",ure="(?:"+Vc+"|"+hT+")",mT="(?:"+S1+"|"+A3+")?",yT="[\\ufe0e\\ufe0f]?"+mT+("(?:\\u200d(?:"+[gT,k3,N3].join("|")+")[\\ufe0e\\ufe0f]?"+mT+")*"),lre="(?:"+[sre,k3,N3].join("|")+")"+yT,cre="(?:"+[gT+S1+"?",S1,k3,N3,are].join("|")+")",fre=RegExp("['’]","g"),dre=RegExp(S1,"g"),pre=RegExp(A3+"(?="+A3+")|"+cre+yT,"g"),hre=RegExp([Vc+"?"+pT+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[fT,Vc,"$"].join("|")+")",ure+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[fT,Vc+vT,"$"].join("|")+")",Vc+"?"+vT+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Vc+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",dT,lre].join("|"),"g"),gre=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),vre=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,mre=typeof Ft=="object"&&Ft&&Ft.Object===Object&&Ft,yre=typeof self=="object"&&self&&self.Object===Object&&self,bre=mre||yre||Function("return this")(),T3,wre=(T3={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return T3==null?void 0:T3[e]});function bT(e){return gre.test(e)}function Ere(e){return bT(e)?function(t){return t.match(pre)||[]}(e):function(t){return t.split("")}(e)}var Sre=Object.prototype.toString,wT=bre.Symbol,ET=wT?wT.prototype:void 0,ST=ET?ET.toString:void 0;function xre(e){if(typeof e=="string")return e;if(function(r){return typeof r=="symbol"||function(n){return!!n&&typeof n=="object"}(r)&&Sre.call(r)=="[object Symbol]"}(e))return ST?ST.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Cre(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:function(o,i,a){var s=-1,u=o.length;i<0&&(i=-i>u?0:u+i),(a=a>u?u:a)<0&&(a+=u),u=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(u);++s<u;)l[s]=o[s+i];return l}(e,t,r)}function x1(e){return e==null?"":xre(e)}for(var xT,Dre=(xT=function(e,t,r){return t=t.toLowerCase(),e+(r?_re(x1(t).toLowerCase()):t)},function(e){return function(t,r,n,o){var i=-1,a=t?t.length:0;for(o;++i<a;)n=r(n,t[i],i,t);return n}(function(t,r,n){return t=x1(t),(r=r)===void 0?function(o){return vre.test(o)}(t)?function(o){return o.match(hre)||[]}(t):function(o){return o.match(ore)||[]}(t):t.match(r)||[]}(function(t){return(t=x1(t))&&t.replace(ire,wre).replace(dre,"")}(e).replace(fre,"")),xT,"")}),CT,_re=(CT="toUpperCase",function(e){var t=bT(e=x1(e))?Ere(e):void 0,r=t?t[0]:e.charAt(0),n=t?Cre(t,1).join(""):e.slice(1);return r[CT]()+n}),Ore=Dre,Are=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),P3={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},DT={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Are?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},B3={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},C1=1;C1<20;C1++)B3["f"+C1]=111+C1;function _T(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map(function(i){return function(a,s){var u=s&&s.byKey,l={},c=(a=a.replace("++","+add")).split("+"),f=c.length;for(var d in P3)l[P3[d]]=!1;var p=!0,h=!1,g=void 0;try{for(var m,y=c[Symbol.iterator]();!(p=(m=y.next()).done);p=!0){var v=m.value,E=v.endsWith("?")&&v.length>1;E&&(v=v.slice(0,-1));var w=OT(v),S=P3[w];if(v.length>1&&!S&&!DT[v]&&!B3[w])throw new TypeError('Unknown modifier: "'+v+'"');f!==1&&S||(u?l.key=w:l.which=kre(v)),S&&(l[S]=!E||null)}}catch(C){h=!0,g=C}finally{try{!p&&y.return&&y.return()}finally{if(h)throw g}}return l}(i,t)}),o=function(i){return n.some(function(a){return function(s,u){for(var l in s){var c=s[l],f=void 0;if(c!=null&&((f=l==="key"&&u.key!=null?u.key.toLowerCase():l==="which"?c===91&&u.which===93?91:u.which:u[l])!=null||c!==!1)&&f!==c)return!1}return!0}(a,i)})};return r==null?o:o(r)}function kre(e){return e=OT(e),B3[e]||e.toUpperCase().charCodeAt(0)}function OT(e){return e=e.toLowerCase(),e=DT[e]||e}var Nre=_T,F3=function(e,t){return _T(e,{byKey:!0},t)},Tre=/^\s+|\s+$/g,Pre=/^[-+]0x[0-9a-f]+$/i,Bre=/^0b[01]+$/i,Fre=/^0o[0-7]+$/i,jre=parseInt,Ire=typeof Ft=="object"&&Ft&&Ft.Object===Object&&Ft,Lre=typeof self=="object"&&self&&self.Object===Object&&self,Mre=Ire||Lre||Function("return this")(),zre=Object.prototype.toString,Vre=Math.max,Rre=Math.min,j3=function(){return Mre.Date.now()};function I3(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function AT(e){if(typeof e=="number")return e;if(function(n){return typeof n=="symbol"||function(o){return!!o&&typeof o=="object"}(n)&&zre.call(n)=="[object Symbol]"}(e))return NaN;if(I3(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=I3(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Tre,"");var r=Bre.test(e);return r||Fre.test(e)?jre(e.slice(2),r?2:8):Pre.test(e)?NaN:+e}var Rc,kT=function(e,t,r){var n,o,i,a,s,u,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError("Expected a function");function p(E){var w=n,S=o;return n=o=void 0,l=E,a=e.apply(S,w)}function h(E){return l=E,s=setTimeout(m,t),c?p(E):a}function g(E){var w=E-u;return u===void 0||w>=t||w<0||f&&E-l>=i}function m(){var E=j3();if(g(E))return y(E);s=setTimeout(m,function(w){var S=t-(w-u);return f?Rre(S,i-(w-l)):S}(E))}function y(E){return s=void 0,d&&n?p(E):(n=o=void 0,a)}function v(){var E=j3(),w=g(E);if(n=arguments,o=this,u=E,w){if(s===void 0)return h(u);if(f)return s=setTimeout(m,t),p(u)}return s===void 0&&(s=setTimeout(m,t)),a}return t=AT(t)||0,I3(r)&&(c=!!r.leading,i=(f="maxWait"in r)?Vre(AT(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d),v.cancel=function(){s!==void 0&&clearTimeout(s),l=0,n=u=o=s=void 0},v.flush=function(){return s===void 0?a:y(j3())},v},NT=Su(function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",s="[object Function]",u="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",h="[object Set]",g="[object String]",m="[object Symbol]",y="[object WeakMap]",v="[object ArrayBuffer]",E="[object DataView]",w="[object Float32Array]",S="[object Float64Array]",C="[object Int8Array]",x="[object Int16Array]",_="[object Int32Array]",P="[object Uint8Array]",q="[object Uint8ClampedArray]",H="[object Uint16Array]",k="[object Uint32Array]",M=/\w*$/,I=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,F={};F[o]=F["[object Array]"]=F[v]=F[E]=F[i]=F[a]=F[w]=F[S]=F[C]=F[x]=F[_]=F[l]=F[c]=F[f]=F[p]=F[h]=F[g]=F[m]=F[P]=F[q]=F[H]=F[k]=!0,F["[object Error]"]=F[s]=F[y]=!1;var U=typeof Ft=="object"&&Ft&&Ft.Object===Object&&Ft,R=typeof self=="object"&&self&&self.Object===Object&&self,Z=U||R||Function("return this")(),re=t&&!t.nodeType&&t,O=re&&e&&!e.nodeType&&e,A=O&&O.exports===re;function V(K,se){return K.set(se[0],se[1]),K}function B(K,se){return K.add(se),K}function L(K,se,Se,Ne){var ft=-1,Jt=K?K.length:0;for(Ne;++ft<Jt;)Se=se(Se,K[ft],ft,K);return Se}function j(K){var se=!1;if(K!=null&&typeof K.toString!="function")try{se=!!(K+"")}catch{}return se}function W(K){var se=-1,Se=Array(K.size);return K.forEach(function(Ne,ft){Se[++se]=[ft,Ne]}),Se}function X(K,se){return function(Se){return K(se(Se))}}function ae(K){var se=-1,Se=Array(K.size);return K.forEach(function(Ne){Se[++se]=Ne}),Se}var ce=Array.prototype,ee=Function.prototype,fe=Object.prototype,pe=Z["__core-js_shared__"],ie=function(){var K=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return K?"Symbol(src)_1."+K:""}(),xe=ee.toString,Xe=fe.hasOwnProperty,Le=fe.toString,Oe=RegExp("^"+xe.call(Xe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ue=A?Z.Buffer:void 0,Ie=Z.Symbol,le=Z.Uint8Array,de=X(Object.getPrototypeOf,Object),ke=Object.create,je=fe.propertyIsEnumerable,ve=ce.splice,Qe=Object.getOwnPropertySymbols,et=ue?ue.isBuffer:void 0,Et=X(Object.keys,Object),Bt=Hi(Z,"DataView"),De=Hi(Z,"Map"),Me=Hi(Z,"Promise"),ut=Hi(Z,"Set"),sr=Hi(Z,"WeakMap"),Lt=Hi(Object,"create"),nr=qi(Bt),dr=qi(De),jn=qi(Me),Gt=qi(ut),Da=qi(sr),$i=Ie?Ie.prototype:void 0,ur=$i?$i.valueOf:void 0;function ai(K){var se=-1,Se=K?K.length:0;for(this.clear();++se<Se;){var Ne=K[se];this.set(Ne[0],Ne[1])}}function Fo(K){var se=-1,Se=K?K.length:0;for(this.clear();++se<Se;){var Ne=K[se];this.set(Ne[0],Ne[1])}}function _a(K){var se=-1,Se=K?K.length:0;for(this.clear();++se<Se;){var Ne=K[se];this.set(Ne[0],Ne[1])}}function si(K){this.__data__=new Fo(K)}function uu(K,se){var Se=Y(K)||function(Rt){return function(mt){return function(Vr){return!!Vr&&typeof Vr=="object"}(mt)&&ne(mt)}(Rt)&&Xe.call(Rt,"callee")&&(!je.call(Rt,"callee")||Le.call(Rt)==o)}(K)?function(Rt,mt){for(var Vr=-1,pn=Array(Rt);++Vr<Rt;)pn[Vr]=mt(Vr);return pn}(K.length,String):[],Ne=Se.length,ft=!!Ne;for(var Jt in K)!Xe.call(K,Jt)||ft&&(Jt=="length"||_b(Jt,Ne))||Se.push(Jt);return Se}function Cb(K,se,Se){var Ne=K[se];Xe.call(K,se)&&Ob(Ne,Se)&&(Se!==void 0||se in K)||(K[se]=Se)}function no(K,se){for(var Se=K.length;Se--;)if(Ob(K[Se][0],se))return Se;return-1}function Bg(K,se,Se,Ne,ft,Jt,Rt){var mt;if(Ne&&(mt=Jt?Ne(K,ft,Jt,Rt):Ne(K)),mt!==void 0)return mt;if(!At(K))return K;var Vr=Y(K);if(Vr){if(mt=function(Ue){var Ct=Ue.length,Cr=Ue.constructor(Ct);return Ct&&typeof Ue[0]=="string"&&Xe.call(Ue,"index")&&(Cr.index=Ue.index,Cr.input=Ue.input),Cr}(K),!se)return function(Ue,Ct){var Cr=-1,lt=Ue.length;for(Ct||(Ct=Array(lt));++Cr<lt;)Ct[Cr]=Ue[Cr];return Ct}(K,mt)}else{var pn=Ui(K),Xl=pn==s||pn==u;if(be(K))return function(Ue,Ct){if(Ct)return Ue.slice();var Cr=new Ue.constructor(Ue.length);return Ue.copy(Cr),Cr}(K,se);if(pn==f||pn==o||Xl&&!Jt){if(j(K))return Jt?K:{};if(mt=function(Ue){return typeof Ue.constructor!="function"||lu(Ue)?{}:(Ct=de(Ue),At(Ct)?ke(Ct):{});var Ct}(Xl?{}:K),!se)return function(Ue,Ct){return Db(Ue,Fg(Ue),Ct)}(K,function(Ue,Ct){return Ue&&Db(Ct,at(Ct),Ue)}(mt,K))}else{if(!F[pn])return Jt?K:{};mt=function(Ue,Ct,Cr,lt){var yt=Ue.constructor;switch(Ct){case v:return hd(Ue);case i:case a:return new yt(+Ue);case E:return function(bt,pr){var wn=pr?hd(bt.buffer):bt.buffer;return new bt.constructor(wn,bt.byteOffset,bt.byteLength)}(Ue,lt);case w:case S:case C:case x:case _:case P:case q:case H:case k:return function(bt,pr){var wn=pr?hd(bt.buffer):bt.buffer;return new bt.constructor(wn,bt.byteOffset,bt.length)}(Ue,lt);case l:return function(bt,pr,wn){return L(pr?wn(W(bt),!0):W(bt),V,new bt.constructor)}(Ue,lt,Cr);case c:case g:return new yt(Ue);case p:return function(bt){var pr=new bt.constructor(bt.source,M.exec(bt));return pr.lastIndex=bt.lastIndex,pr}(Ue);case h:return function(bt,pr,wn){return L(pr?wn(ae(bt),!0):ae(bt),B,new bt.constructor)}(Ue,lt,Cr);case m:return function(bt){return ur?Object(ur.call(bt)):{}}(Ue)}}(K,pn,Bg,se)}}Rt||(Rt=new si);var ka=Rt.get(K);if(ka)return ka;if(Rt.set(K,mt),!Vr)var cu=Se?function(Ue){return function(Ct,Cr,lt){var yt=Cr(Ct);return Y(Ct)?yt:function(bt,pr){for(var wn=-1,In=pr.length,ui=bt.length;++wn<In;)bt[ui+wn]=pr[wn];return bt}(yt,lt(Ct))}(Ue,at,Fg)}(K):at(K);return function(Ue,Ct){for(var Cr=-1,lt=Ue?Ue.length:0;++Cr<lt&&Ct(Ue[Cr],Cr,Ue)!==!1;);}(cu||K,function(Ue,Ct){cu&&(Ue=K[Ct=Ue]),Cb(mt,Ct,Bg(Ue,se,Se,Ne,Ct,K,Rt))}),mt}function Oa(K){return!(!At(K)||function(se){return!!ie&&ie in se}(K))&&(Fe(K)||j(K)?Oe:I).test(qi(K))}function hd(K){var se=new K.constructor(K.byteLength);return new le(se).set(new le(K)),se}function Db(K,se,Se,Ne){Se||(Se={});for(var ft=-1,Jt=se.length;++ft<Jt;){var Rt=se[ft],mt=void 0;Cb(Se,Rt,mt===void 0?K[Rt]:mt)}return Se}function Aa(K,se){var Se,Ne,ft=K.__data__;return((Ne=typeof(Se=se))=="string"||Ne=="number"||Ne=="symbol"||Ne=="boolean"?Se!=="__proto__":Se===null)?ft[typeof se=="string"?"string":"hash"]:ft.map}function Hi(K,se){var Se=function(Ne,ft){return Ne==null?void 0:Ne[ft]}(K,se);return Oa(Se)?Se:void 0}ai.prototype.clear=function(){this.__data__=Lt?Lt(null):{}},ai.prototype.delete=function(K){return this.has(K)&&delete this.__data__[K]},ai.prototype.get=function(K){var se=this.__data__;if(Lt){var Se=se[K];return Se===r?void 0:Se}return Xe.call(se,K)?se[K]:void 0},ai.prototype.has=function(K){var se=this.__data__;return Lt?se[K]!==void 0:Xe.call(se,K)},ai.prototype.set=function(K,se){return this.__data__[K]=Lt&&se===void 0?r:se,this},Fo.prototype.clear=function(){this.__data__=[]},Fo.prototype.delete=function(K){var se=this.__data__,Se=no(se,K);return!(Se<0)&&(Se==se.length-1?se.pop():ve.call(se,Se,1),!0)},Fo.prototype.get=function(K){var se=this.__data__,Se=no(se,K);return Se<0?void 0:se[Se][1]},Fo.prototype.has=function(K){return no(this.__data__,K)>-1},Fo.prototype.set=function(K,se){var Se=this.__data__,Ne=no(Se,K);return Ne<0?Se.push([K,se]):Se[Ne][1]=se,this},_a.prototype.clear=function(){this.__data__={hash:new ai,map:new(De||Fo),string:new ai}},_a.prototype.delete=function(K){return Aa(this,K).delete(K)},_a.prototype.get=function(K){return Aa(this,K).get(K)},_a.prototype.has=function(K){return Aa(this,K).has(K)},_a.prototype.set=function(K,se){return Aa(this,K).set(K,se),this},si.prototype.clear=function(){this.__data__=new Fo},si.prototype.delete=function(K){return this.__data__.delete(K)},si.prototype.get=function(K){return this.__data__.get(K)},si.prototype.has=function(K){return this.__data__.has(K)},si.prototype.set=function(K,se){var Se=this.__data__;if(Se instanceof Fo){var Ne=Se.__data__;if(!De||Ne.length<199)return Ne.push([K,se]),this;Se=this.__data__=new _a(Ne)}return Se.set(K,se),this};var Fg=Qe?X(Qe,Object):function(){return[]},Ui=function(K){return Le.call(K)};function _b(K,se){return!!(se=se??n)&&(typeof K=="number"||T.test(K))&&K>-1&&K%1==0&&K<se}function lu(K){var se=K&&K.constructor;return K===(typeof se=="function"&&se.prototype||fe)}function qi(K){if(K!=null){try{return xe.call(K)}catch{}try{return K+""}catch{}}return""}function Ob(K,se){return K===se||K!=K&&se!=se}(Bt&&Ui(new Bt(new ArrayBuffer(1)))!=E||De&&Ui(new De)!=l||Me&&Ui(Me.resolve())!=d||ut&&Ui(new ut)!=h||sr&&Ui(new sr)!=y)&&(Ui=function(K){var se=Le.call(K),Se=se==f?K.constructor:void 0,Ne=Se?qi(Se):void 0;if(Ne)switch(Ne){case nr:return E;case dr:return l;case jn:return d;case Gt:return h;case Da:return y}return se});var Y=Array.isArray;function ne(K){return K!=null&&function(se){return typeof se=="number"&&se>-1&&se%1==0&&se<=n}(K.length)&&!Fe(K)}var be=et||function(){return!1};function Fe(K){var se=At(K)?Le.call(K):"";return se==s||se==u}function At(K){var se=typeof K;return!!K&&(se=="object"||se=="function")}function at(K){return ne(K)?uu(K):function(se){if(!lu(se))return Et(se);var Se=[];for(var Ne in Object(se))Xe.call(se,Ne)&&Ne!="constructor"&&Se.push(Ne);return Se}(K)}e.exports=function(K){return Bg(K,!0,!0)}});function TT(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var $re=0;function Hre(e){return"__private_"+$re+++"_"+e}function Ure(e,t,r){const n=[];return e.forEach(o=>typeof o!="string"?n.push(o):t[Symbol.split](o).forEach((i,a,s)=>{i!==""&&n.push(i),a<s.length-1&&n.push(r)})),n}/**
45
+ * Takes a string with placeholder variables like `%{smart_count} file selected`
46
+ * and replaces it with values from options `{smart_count: 5}`
47
+ *
48
+ * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
49
+ * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
50
+ *
51
+ * @param {string} phrase that needs interpolation, with placeholders
52
+ * @param {object} options with values that will be used to replace placeholders
53
+ * @returns {any[]} interpolated
54
+ */function PT(e,t){const r=/\$/g;let n=[e];if(t==null)return n;for(const o of Object.keys(t))if(o!=="_"){let i=t[o];typeof i=="string"&&(i=r[Symbol.replace](i,"$$$$")),n=Ure(n,new RegExp(`%\\{${o}\\}`,"g"),i)}return n}var BT=(Rc=Hre("apply"),class{constructor(e){Object.defineProperty(this,Rc,{value:qre}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(TT(this,Rc)[Rc],this):TT(this,Rc)[Rc](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const r=this.locale.strings[e];if(typeof r=="object"){if(t&&t.smart_count!==void 0)return PT(r[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return PT(r,t)}});function qre(e){if(e==null||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var FT=function(){var e={},t=e._fns={};return e.emit=function(r,n,o,i,a,s,u){var l=function(c){for(var f=t[c]?t[c]:[],d=c.indexOf(":"),p=d===-1?[c]:[c.substring(0,d),c.substring(d+1)],h=Object.keys(t),g=0,m=h.length;g<m;g++){var y=h[g];if(y==="*"&&(f=f.concat(t[y])),p.length===2&&p[0]===y){f=f.concat(t[y]);break}}return f}(r);l.length&&function(c,f,d){for(var p=0,h=f.length;p<h&&f[p];p++)f[p].event=c,f[p].apply(f[p],d)}(r,l,[n,o,i,a,s,u])},e.on=function(r,n){t[r]||(t[r]=[]),t[r].push(n)},e.once=function(r,n){this.on(r,function o(){n.apply(this,arguments),e.off(r,o)})},e.off=function(r,n){var o=[];if(r&&n)for(var i=this._fns[r],a=0,s=i?i.length:0;a<s;a++)i[a]!==n&&o.push(i[a]);o.length?this._fns[r]=o:delete this._fns[r]},e},Kre={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:Gre}=Kre,jT=e=>crypto.getRandomValues(new Uint8Array(e)),IT=(e,t,r)=>{let n=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*n*t/e.length);return()=>{let i="";for(;;){let a=r(o),s=o;for(;s--;)if(i+=e[a[s]&n]||"",i.length===t)return i}}};var Wre={nanoid:(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let n=63&r[e];t+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return t},customAlphabet:(e,t)=>IT(e,t,jT),customRandom:IT,urlAlphabet:Gre,random:jT},L3=function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/Math.pow(1024,n));var o=r[n];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function LT(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}LT.prototype.match=function(e){var t,r,n=!0,o=this.parts,i=o.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(r=(e||"").split(this.separator),t=0;n&&t<i;t++)o[t]!=="*"&&(n=t<r.length&&o[t]===r[t]);n=n&&r}else n=!1;else if(typeof e.splice=="function")for(n=[],t=e.length;t--;)this.match(e[t])&&(n[n.length]=e[t]);else if(typeof e=="object")for(var a in n={},e)this.match(a)&&(n[a]=e[a]);return n};var Yre=/[\/\+\.]/,Xre=function(e,t){function r(n){var o=function(i,a,s){var u=new LT(i,s||/[\/\.]/);return a!==void 0?u.match(a):u}(n,e,Yre);return o&&o.length>=2}return t?r(t.split(";")[0]):r},Jre=0;function Zre(e){return"__private_"+Jre+++"_"+e}var M3=Zre("publish");class MT{constructor(){Object.defineProperty(this,M3,{value:Qre}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const r={...this.state},n={...this.state,...t};this.state=n,function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o}(this,M3)[M3](r,n,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function Qre(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.callbacks.forEach(n=>{n(...t)})}MT.VERSION="2.0.3";var zT=function(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},VT={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function RT(e){let t="";return e.replace(/[^A-Z0-9]/gi,r=>(t+=`-${function(n){return n.charCodeAt(0).toString(32)}(r)}`,"/"))+t}var ene=function(e){if(e==null&&(e=typeof navigator<"u"?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const r=t[1];let[n,o]=r.split(".");return n=parseInt(n,10),o=parseInt(o,10),n<15||n===15&&o<15063||n>18||n===18&&o>=18218};function z3(e){return e<10?`0${e}`:e.toString()}var D1=function(){const e=new Date;return`${z3(e.getHours())}:${z3(e.getMinutes())}:${z3(e.getSeconds())}`},$T={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${D1()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.debug(`[Uppy] [${D1()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.warn(`[Uppy] [${D1()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${D1()}]`,...t)}}},tne={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},HT=Wre;let UT,qT;function Pe(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var rne=0;function _r(e){return"__private_"+rne+++"_"+e}const{nanoid:nne}=HT,{justErrorsLogger:one,debugLogger:ine}=$T;class Ei extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class ane extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var en=_r("plugins"),wp=_r("storeUnsubscribe"),sa=_r("emitter"),$u=_r("preProcessors"),Hu=_r("uploaders"),ua=_r("postProcessors"),Ep=_r("checkRestrictions"),V3=_r("checkMinNumberOfFiles"),Sp=_r("checkRequiredMetaFieldsOnFile"),R3=_r("checkRequiredMetaFields"),Ir=_r("showOrLogErrorAndThrow"),xp=_r("assertNewUploadAllowed"),Cp=_r("checkAndCreateFileStateObject"),Dp=_r("startIfAutoProceed"),$3=_r("addListeners"),Ko=_r("updateOnlineStatus"),la=_r("createUpload"),H3=_r("getUpload"),Uu=_r("removeUpload"),ca=_r("runUpload");UT=Symbol.for("uppy test: getPlugins"),qT=Symbol.for("uppy test: createUpload");class KT{constructor(t){Object.defineProperty(this,ca,{value:bne}),Object.defineProperty(this,Uu,{value:yne}),Object.defineProperty(this,H3,{value:mne}),Object.defineProperty(this,la,{value:vne}),Object.defineProperty(this,$3,{value:gne}),Object.defineProperty(this,Dp,{value:hne}),Object.defineProperty(this,Cp,{value:pne}),Object.defineProperty(this,xp,{value:dne}),Object.defineProperty(this,Ir,{value:fne}),Object.defineProperty(this,R3,{value:cne}),Object.defineProperty(this,Sp,{value:lne}),Object.defineProperty(this,V3,{value:une}),Object.defineProperty(this,Ep,{value:sne}),Object.defineProperty(this,en,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,wp,{writable:!0,value:void 0}),Object.defineProperty(this,sa,{writable:!0,value:FT()}),Object.defineProperty(this,$u,{writable:!0,value:new Set}),Object.defineProperty(this,Hu,{writable:!0,value:new Set}),Object.defineProperty(this,ua,{writable:!0,value:new Set}),Object.defineProperty(this,Ko,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=tne;const r={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:n=>n,onBeforeUpload:n=>n,store:new MT,logger:one,infoTimeout:5e3};if(this.opts={...r,...t,restrictions:{...r.restrictions,...t&&t.restrictions}},t&&t.logger&&t.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):t&&t.debug&&(this.opts.logger=ine),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Ru(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:ene(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Pe(this,wp)[wp]=this.store.subscribe((n,o,i)=>{this.emit("state-update",n,o,i),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),Pe(this,$3)[$3]()}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];Pe(this,sa)[sa].emit(t,...n)}on(t,r){return Pe(this,sa)[sa].on(t,r),this}once(t,r){return Pe(this,sa)[sa].once(t,r),this}off(t,r){return Pe(this,sa)[sa].off(t,r),this}updateAll(t){this.iteratePlugins(r=>{r.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,r){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.setState({files:{...this.getState().files,[t]:{...this.getState().files[t],...r}}})}i18nInit(){const t=new BT([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t&&t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(r=>{r.setOptions()}),this.setState()}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},r={...this.getState().files},n={};Object.keys(r).forEach(o=>{const i={...r[o]};i.progress={...i.progress,...t},n[o]=i}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){Pe(this,$u)[$u].add(t)}removePreProcessor(t){return Pe(this,$u)[$u].delete(t)}addPostProcessor(t){Pe(this,ua)[ua].add(t)}removePostProcessor(t){return Pe(this,ua)[ua].delete(t)}addUploader(t){Pe(this,Hu)[Hu].add(t)}removeUploader(t){return Pe(this,Hu)[Hu].delete(t)}setMeta(t){const r={...this.getState().meta,...t},n={...this.getState().files};Object.keys(n).forEach(o=>{n[o]={...n[o],meta:{...n[o].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:r,files:n})}setFileMeta(t,r){const n={...this.getState().files};if(!n[t])return void this.log("Was trying to set metadata for a file that has been removed: ",t);const o={...n[t].meta,...r};n[t]={...n[t],meta:o},this.setState({files:n})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:r,error:n}=this.getState(),o=Object.values(t),i=o.filter(h=>{let{progress:g}=h;return!g.uploadComplete&&g.uploadStarted}),a=o.filter(h=>!h.progress.uploadStarted),s=o.filter(h=>h.progress.uploadStarted||h.progress.preprocess||h.progress.postprocess),u=o.filter(h=>h.progress.uploadStarted),l=o.filter(h=>h.isPaused),c=o.filter(h=>h.progress.uploadComplete),f=o.filter(h=>h.error),d=i.filter(h=>!h.isPaused),p=o.filter(h=>h.progress.preprocess||h.progress.postprocess);return{newFiles:a,startedFiles:s,uploadStartedFiles:u,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:u.length>0,isAllComplete:r===100&&c.length===o.length&&p.length===0,isAllErrored:!!n&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(h=>h.isGhost)}}validateRestrictions(t,r){try{return Pe(this,Ep)[Ep](t,r),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(t){const{files:r}=this.getState();return!(!r[t]||r[t].isGhost)}addFile(t){Pe(this,xp)[xp](t);const{files:r}=this.getState();let n=Pe(this,Cp)[Cp](r,t);return r[n.id]&&r[n.id].isGhost&&(n={...r[n.id],data:t.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...r,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),Pe(this,Dp)[Dp](),n.id}addFiles(t){Pe(this,xp)[xp]();const r={...this.getState().files},n=[],o=[];for(let i=0;i<t.length;i++)try{let a=Pe(this,Cp)[Cp](r,t[i]);r[a.id]&&r[a.id].isGhost&&(a={...r[a.id],data:t[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),r[a.id]=a,n.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:r}),n.forEach(i=>{this.emit("file-added",i)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(i=>{this.log(`Added file: ${n[i].name}
55
+ id: ${n[i].id}
56
+ type: ${n[i].type}`)}),n.length>0&&Pe(this,Dp)[Dp](),o.length>0){let i=`Multiple errors occurred while adding files:
57
+ `;if(o.forEach(a=>{i+=`
58
+ * ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(t,r){const{files:n,currentUploads:o}=this.getState(),i={...n},a={...o},s=Object.create(null);function u(f){return s[f]===void 0}t.forEach(f=>{n[f]&&(s[f]=n[f],delete i[f])}),Object.keys(a).forEach(f=>{const d=o[f].fileIDs.filter(u);d.length!==0?a[f]={...o[f],fileIDs:d}:delete a[f]});const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(s);c.forEach(f=>{this.emit("file-removed",s[f],r)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(t,r){r===void 0&&(r=null),this.removeFiles([t],r)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const r=!this.getFile(t).isPaused;return this.setFileState(t,{isPaused:r}),this.emit("upload-pause",t,r),r}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const n={...t[r],isPaused:!0};t[r]=n}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const n={...t[r],isPaused:!1,error:null};t[r]=n}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},r=Object.keys(t).filter(o=>t[o].error);if(r.forEach(o=>{const i={...t[o],isPaused:!1,error:null};t[o]=i}),this.setState({files:t,error:null}),this.emit("retry-all",r),r.length===0)return Promise.resolve({successful:[],failed:[]});const n=Pe(this,la)[la](r,{forceAllowNewUpload:!0});return Pe(this,ca)[ca](n)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),r=Object.keys(t);r.length&&this.removeFiles(r,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const r=Pe(this,la)[la]([t],{forceAllowNewUpload:!0});return Pe(this,ca)[ca](r)}reset(){this.cancelAll()}logout(){this.iteratePlugins(t=>{t.provider&&t.provider.logout&&t.provider.logout()})}calculateProgress(t,r){if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n=Number.isFinite(r.bytesTotal)&&r.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:r.bytesUploaded,bytesTotal:r.bytesTotal,percentage:n?Math.round(r.bytesUploaded/r.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter(u=>u.progress.uploadStarted||u.progress.preprocess||u.progress.postprocess);if(t.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const r=t.filter(u=>u.progress.bytesTotal!=null),n=t.filter(u=>u.progress.bytesTotal==null);if(r.length===0){const u=100*t.length,l=n.reduce((f,d)=>f+d.progress.percentage,0),c=Math.round(l/u*100);return void this.setState({totalProgress:c})}let o=r.reduce((u,l)=>u+l.progress.bytesTotal,0);const i=o/r.length;o+=i*n.length;let a=0;r.forEach(u=>{a+=u.progress.bytesUploaded}),n.forEach(u=>{a+=i*(u.progress.percentage||0)/100});let s=o===0?0:Math.round(a/o*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,r){if(typeof t!="function")throw new TypeError(`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`);const n=new t(this,r),o=n.id;if(!o)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'.
59
+ Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return t.VERSION&&this.log(`Using ${o} v${t.VERSION}`),n.type in Pe(this,en)[en]?Pe(this,en)[en][n.type].push(n):Pe(this,en)[en][n.type]=[n],n.install(),this}getPlugin(t){for(const r of Object.values(Pe(this,en)[en])){const n=r.find(o=>o.id===t);if(n!=null)return n}}[UT](t){return Pe(this,en)[en][t]}iteratePlugins(t){Object.values(Pe(this,en)[en]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const r=Pe(this,en)[en][t.type],n=r.findIndex(i=>i.id===t.id);n!==-1&&r.splice(n,1);const o={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Pe(this,wp)[wp](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",Pe(this,Ko)[Ko]),window.removeEventListener("offline",Pe(this,Ko)[Ko]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,r,n){r===void 0&&(r="info"),n===void 0&&(n=3e3);const o=typeof t=="object";this.setState({info:[...this.getState().info,{type:r,message:o?t.message:t,details:o?t.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(t,r){const{logger:n}=this.opts;switch(r){case"error":n.error(t);break;case"warning":n.warn(t);break;default:n.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?Pe(this,ca)[ca](t):(Pe(this,Uu)[Uu](t),Promise.reject(new Error("Nonexistent upload")))}[qT](){return Pe(this,la)[la](...arguments)}addResultData(t,r){if(!Pe(this,H3)[H3](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:n}=this.getState(),o={...n[t],result:{...n[t].result,...r}};this.setState({currentUploads:{...n,[t]:o}})}upload(){var t;(t=Pe(this,en)[en].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:r}=this.getState();const n=this.opts.onBeforeUpload(r);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(r=n,this.setState({files:r})),Promise.resolve().then(()=>{Pe(this,V3)[V3](r),Pe(this,R3)[R3](r)}).catch(o=>{Pe(this,Ir)[Ir](o)}).then(()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap(u=>u.fileIDs),a=[];Object.keys(r).forEach(u=>{const l=this.getFile(u);l.progress.uploadStarted||i.indexOf(u)!==-1||a.push(l.id)});const s=Pe(this,la)[la](a);return Pe(this,ca)[ca](s)}).catch(o=>{Pe(this,Ir)[Ir](o,{showInformer:!1})}))}}function sne(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:r,minFileSize:n,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new Ei(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(s=>s.indexOf("/")>-1?!!e.type&&Xre(e.type.replace(/;.*?$/,""),s):!(s[0]!=="."||!e.extension)&&e.extension.toLowerCase()===s.substr(1).toLowerCase())){const s=a.join(", ");throw new Ei(this.i18n("youCanOnlyUploadFileTypes",{types:s}))}if(o&&e.size!=null){let s=0;if(s+=e.size,t.forEach(u=>{s+=u.size}),s>o)throw new Ei(this.i18n("exceedsSize",{size:L3(o),file:e.name}))}if(r&&e.size!=null&&e.size>r)throw new Ei(this.i18n("exceedsSize",{size:L3(r),file:e.name}));if(n&&e.size!=null&&e.size<n)throw new Ei(this.i18n("inferiorSize",{size:L3(n)}))}function une(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Ei(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function lne(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:r}=Object.prototype,n=[],o=[];for(let i=0;i<t.length;i++)if(!r.call(e.meta,t[i])||e.meta[t[i]]===""){const a=new Ei(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);n.push(a),o.push(t[i]),Pe(this,Ir)[Ir](a,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),n}function cne(e){const t=Object.keys(e).flatMap(r=>{const n=this.getFile(r);return Pe(this,Sp)[Sp](n)});if(t.length)throw new ane(t,`${this.i18n("missingRequiredMetaField")}`)}function fne(e,t){let{showInformer:r=!0,file:n=null,throwErr:o=!0}=t===void 0?{}:t;const i=typeof e=="object"?e.message:e,a=typeof e=="object"&&e.details?e.details:"";let s=i;if(a&&(s+=` ${a}`),e.isRestriction?(this.log(s),this.emit("restriction-failed",n,e)):this.log(s,"error"),r&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof e=="object"?e:new Error(e)}function dne(e){const{allowNewUpload:t}=this.getState();t===!1&&Pe(this,Ir)[Ir](new Ei(this.i18n("noMoreFilesAllowed")),{file:e})}function pne(e,t){const r=function(f){var d;if(f.type)return f.type;const p=f.name?(d=zT(f.name).extension)==null?void 0:d.toLowerCase():null;return p&&p in VT?VT[p]:"application/octet-stream"}(t),n=function(f,d){return d.name?d.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(r,t),o=zT(n).extension,i=!!t.isRemote,a=function(f){let d="uppy";return typeof f.name=="string"&&(d+=`-${RT(f.name.toLowerCase())}`),f.type!==void 0&&(d+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(d+=`-${RT(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(d+=`-${f.data.size}`),f.data.lastModified!==void 0&&(d+=`-${f.data.lastModified}`),d}({...t,type:r});if(this.checkIfFileAlreadyExists(a)){const f=new Ei(this.i18n("noDuplicates",{fileName:n}));Pe(this,Ir)[Ir](f,{file:t})}const s=t.meta||{};s.name=n,s.type=r;const u=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:n,extension:o||"",meta:{...this.getState().meta,...s},type:r,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:u,uploadComplete:!1,uploadStarted:null},size:u,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);c===!1?Pe(this,Ir)[Ir](new Ei("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(e).map(d=>e[d]);Pe(this,Ep)[Ep](l,f)}catch(f){Pe(this,Ir)[Ir](f,{file:l})}return l}function hne(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function gne(){const e=(t,r,n)=>{let o=t.message||"Unknown error";t.details&&(o+=` ${t.details}`),this.setState({error:o}),r!=null&&r.id in this.getState().files&&this.setFileState(r.id,{error:o,response:n})};this.on("error",e),this.on("upload-error",(t,r,n)=>{if(e(r,t,n),typeof r=="object"&&r.message){const o=new Error(r.message);o.details=r.message,r.details&&(o.details+=` ${r.details}`),o.message=this.i18n("failedToUpload",{file:t.name}),Pe(this,Ir)[Ir](o,{throwErr:!1})}else Pe(this,Ir)[Ir](r,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",t=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(t,r)=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n=this.getFile(t.id).progress;this.setFileState(t.id,{progress:{...n,postprocess:Pe(this,ua)[ua].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:r,uploadURL:r.uploadURL,isPaused:!1}),t.size==null&&this.setFileState(t.id,{size:r.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(t,r)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,preprocess:r}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("preprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r={...this.getState().files};r[t.id]={...r[t.id],progress:{...r[t.id].progress}},delete r[t.id].progress.preprocess,this.setState({files:r})}),this.on("postprocess-progress",(t,r)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getState().files[t.id].progress,postprocess:r}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("postprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r={...this.getState().files};r[t.id]={...r[t.id],progress:{...r[t.id].progress}},delete r[t.id].progress.postprocess,this.setState({files:r})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",t=>{t&&Pe(this,Sp)[Sp](t)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",Pe(this,Ko)[Ko]),window.addEventListener("offline",Pe(this,Ko)[Ko]),setTimeout(Pe(this,Ko)[Ko],3e3))}function vne(e,t){t===void 0&&(t={});const{forceAllowNewUpload:r=!1}=t,{allowNewUpload:n,currentUploads:o}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=nne();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function mne(e){const{currentUploads:t}=this.getState();return t[e]}function yne(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function bne(e){let{currentUploads:t}=this.getState(),r=t[e];const n=r.step||0,o=[...Pe(this,$u)[$u],...Pe(this,Hu)[Hu],...Pe(this,ua)[ua]];try{for(let a=n;a<o.length&&r;a++){const s=o[a],u={...r,step:a};this.setState({currentUploads:{...t,[e]:u}}),await s(u.fileIDs,e),t=this.getState().currentUploads,r=t[e]}}catch(a){throw this.emit("error",a),Pe(this,Uu)[Uu](e),a}if(r){r.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=r.fileIDs.map(l=>this.getFile(l)),s=a.filter(l=>!l.error),u=a.filter(l=>l.error);await this.addResultData(e,{successful:s,failed:u,uploadID:e}),t=this.getState().currentUploads,r=t[e]}let i;return r&&(i=r.result,this.emit("complete",i),Pe(this,Uu)[Uu](e)),i==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}KT.VERSION="2.1.3";var GT=KT,wne=Su(function(e,t){var r,n,o,i,a,s,u,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(O,A){for(var V in A)O[V]=A[V];return O}function h(O){var A=O.parentNode;A&&A.removeChild(O)}function g(O,A,V){var B,L,j,W={};for(j in A)j=="key"?B=A[j]:j=="ref"?L=A[j]:W[j]=A[j];if(arguments.length>2&&(W.children=arguments.length>3?r.call(arguments,2):V),typeof O=="function"&&O.defaultProps!=null)for(j in O.defaultProps)W[j]===void 0&&(W[j]=O.defaultProps[j]);return m(O,W,B,L,null)}function m(O,A,V,B,L){var j={type:O,props:A,key:V,ref:B,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:L??++o};return L==null&&n.vnode!=null&&n.vnode(j),j}function y(O){return O.children}function v(O,A){this.props=O,this.context=A}function E(O,A){if(A==null)return O.__?E(O.__,O.__.__k.indexOf(O)+1):null;for(var V;A<O.__k.length;A++)if((V=O.__k[A])!=null&&V.__e!=null)return V.__e;return typeof O.type=="function"?E(O):null}function w(O){var A,V;if((O=O.__)!=null&&O.__c!=null){for(O.__e=O.__c.base=null,A=0;A<O.__k.length;A++)if((V=O.__k[A])!=null&&V.__e!=null){O.__e=O.__c.base=V.__e;break}return w(O)}}function S(O){(!O.__d&&(O.__d=!0)&&a.push(O)&&!C.__r++||u!==n.debounceRendering)&&((u=n.debounceRendering)||s)(C)}function C(){for(var O;C.__r=a.length;)O=a.sort(function(A,V){return A.__v.__b-V.__v.__b}),a=[],O.some(function(A){var V,B,L,j,W,X;A.__d&&(W=(j=(V=A).__v).__e,(X=V.__P)&&(B=[],(L=p({},j)).__v=j.__v+1,I(X,j,L,V.__n,X.ownerSVGElement!==void 0,j.__h!=null?[W]:null,B,W??E(j),j.__h),T(B,j),j.__e!=W&&w(j)))})}function x(O,A,V,B,L,j,W,X,ae,ce){var ee,fe,pe,ie,xe,Xe,Le,Oe=B&&B.__k||f,ue=Oe.length;for(V.__k=[],ee=0;ee<A.length;ee++)if((ie=V.__k[ee]=(ie=A[ee])==null||typeof ie=="boolean"?null:typeof ie=="string"||typeof ie=="number"||typeof ie=="bigint"?m(null,ie,null,null,ie):Array.isArray(ie)?m(y,{children:ie},null,null,null):ie.__b>0?m(ie.type,ie.props,ie.key,null,ie.__v):ie)!=null){if(ie.__=V,ie.__b=V.__b+1,(pe=Oe[ee])===null||pe&&ie.key==pe.key&&ie.type===pe.type)Oe[ee]=void 0;else for(fe=0;fe<ue;fe++){if((pe=Oe[fe])&&ie.key==pe.key&&ie.type===pe.type){Oe[fe]=void 0;break}pe=null}I(O,ie,pe=pe||c,L,j,W,X,ae,ce),xe=ie.__e,(fe=ie.ref)&&pe.ref!=fe&&(Le||(Le=[]),pe.ref&&Le.push(pe.ref,null,ie),Le.push(fe,ie.__c||xe,ie)),xe!=null?(Xe==null&&(Xe=xe),typeof ie.type=="function"&&ie.__k===pe.__k?ie.__d=ae=_(ie,ae,O):ae=P(O,ie,pe,Oe,xe,ae),typeof V.type=="function"&&(V.__d=ae)):ae&&pe.__e==ae&&ae.parentNode!=O&&(ae=E(pe))}for(V.__e=Xe,ee=ue;ee--;)Oe[ee]!=null&&(typeof V.type=="function"&&Oe[ee].__e!=null&&Oe[ee].__e==V.__d&&(V.__d=E(B,ee+1)),R(Oe[ee],Oe[ee]));if(Le)for(ee=0;ee<Le.length;ee++)U(Le[ee],Le[++ee],Le[++ee])}function _(O,A,V){for(var B,L=O.__k,j=0;L&&j<L.length;j++)(B=L[j])&&(B.__=O,A=typeof B.type=="function"?_(B,A,V):P(V,B,B,L,B.__e,A));return A}function P(O,A,V,B,L,j){var W,X,ae;if(A.__d!==void 0)W=A.__d,A.__d=void 0;else if(V==null||L!=j||L.parentNode==null)e:if(j==null||j.parentNode!==O)O.appendChild(L),W=null;else{for(X=j,ae=0;(X=X.nextSibling)&&ae<B.length;ae+=2)if(X==L)break e;O.insertBefore(L,j),W=j}return W!==void 0?W:L.nextSibling}function q(O,A,V){A[0]==="-"?O.setProperty(A,V):O[A]=V==null?"":typeof V!="number"||d.test(A)?V:V+"px"}function H(O,A,V,B,L){var j;e:if(A==="style")if(typeof V=="string")O.style.cssText=V;else{if(typeof B=="string"&&(O.style.cssText=B=""),B)for(A in B)V&&A in V||q(O.style,A,"");if(V)for(A in V)B&&V[A]===B[A]||q(O.style,A,V[A])}else if(A[0]==="o"&&A[1]==="n")j=A!==(A=A.replace(/Capture$/,"")),A=A.toLowerCase()in O?A.toLowerCase().slice(2):A.slice(2),O.l||(O.l={}),O.l[A+j]=V,V?B||O.addEventListener(A,j?M:k,j):O.removeEventListener(A,j?M:k,j);else if(A!=="dangerouslySetInnerHTML"){if(L)A=A.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(A!=="href"&&A!=="list"&&A!=="form"&&A!=="tabIndex"&&A!=="download"&&A in O)try{O[A]=V??"";break e}catch{}typeof V=="function"||(V!=null&&(V!==!1||A[0]==="a"&&A[1]==="r")?O.setAttribute(A,V):O.removeAttribute(A))}}function k(O){this.l[O.type+!1](n.event?n.event(O):O)}function M(O){this.l[O.type+!0](n.event?n.event(O):O)}function I(O,A,V,B,L,j,W,X,ae){var ce,ee,fe,pe,ie,xe,Xe,Le,Oe,ue,Ie,le=A.type;if(A.constructor!==void 0)return null;V.__h!=null&&(ae=V.__h,X=A.__e=V.__e,A.__h=null,j=[X]),(ce=n.__b)&&ce(A);try{e:if(typeof le=="function"){if(Le=A.props,Oe=(ce=le.contextType)&&B[ce.__c],ue=ce?Oe?Oe.props.value:ce.__:B,V.__c?Xe=(ee=A.__c=V.__c).__=ee.__E:("prototype"in le&&le.prototype.render?A.__c=ee=new le(Le,ue):(A.__c=ee=new v(Le,ue),ee.constructor=le,ee.render=Z),Oe&&Oe.sub(ee),ee.props=Le,ee.state||(ee.state={}),ee.context=ue,ee.__n=B,fe=ee.__d=!0,ee.__h=[]),ee.__s==null&&(ee.__s=ee.state),le.getDerivedStateFromProps!=null&&(ee.__s==ee.state&&(ee.__s=p({},ee.__s)),p(ee.__s,le.getDerivedStateFromProps(Le,ee.__s))),pe=ee.props,ie=ee.state,fe)le.getDerivedStateFromProps==null&&ee.componentWillMount!=null&&ee.componentWillMount(),ee.componentDidMount!=null&&ee.__h.push(ee.componentDidMount);else{if(le.getDerivedStateFromProps==null&&Le!==pe&&ee.componentWillReceiveProps!=null&&ee.componentWillReceiveProps(Le,ue),!ee.__e&&ee.shouldComponentUpdate!=null&&ee.shouldComponentUpdate(Le,ee.__s,ue)===!1||A.__v===V.__v){ee.props=Le,ee.state=ee.__s,A.__v!==V.__v&&(ee.__d=!1),ee.__v=A,A.__e=V.__e,A.__k=V.__k,A.__k.forEach(function(de){de&&(de.__=A)}),ee.__h.length&&W.push(ee);break e}ee.componentWillUpdate!=null&&ee.componentWillUpdate(Le,ee.__s,ue),ee.componentDidUpdate!=null&&ee.__h.push(function(){ee.componentDidUpdate(pe,ie,xe)})}ee.context=ue,ee.props=Le,ee.state=ee.__s,(ce=n.__r)&&ce(A),ee.__d=!1,ee.__v=A,ee.__P=O,ce=ee.render(ee.props,ee.state,ee.context),ee.state=ee.__s,ee.getChildContext!=null&&(B=p(p({},B),ee.getChildContext())),fe||ee.getSnapshotBeforeUpdate==null||(xe=ee.getSnapshotBeforeUpdate(pe,ie)),Ie=ce!=null&&ce.type===y&&ce.key==null?ce.props.children:ce,x(O,Array.isArray(Ie)?Ie:[Ie],A,V,B,L,j,W,X,ae),ee.base=A.__e,A.__h=null,ee.__h.length&&W.push(ee),Xe&&(ee.__E=ee.__=null),ee.__e=!1}else j==null&&A.__v===V.__v?(A.__k=V.__k,A.__e=V.__e):A.__e=F(V.__e,A,V,B,L,j,W,ae);(ce=n.diffed)&&ce(A)}catch(de){A.__v=null,(ae||j!=null)&&(A.__e=X,A.__h=!!ae,j[j.indexOf(X)]=null),n.__e(de,A,V)}}function T(O,A){n.__c&&n.__c(A,O),O.some(function(V){try{O=V.__h,V.__h=[],O.some(function(B){B.call(V)})}catch(B){n.__e(B,V.__v)}})}function F(O,A,V,B,L,j,W,X){var ae,ce,ee,fe=V.props,pe=A.props,ie=A.type,xe=0;if(ie==="svg"&&(L=!0),j!=null){for(;xe<j.length;xe++)if((ae=j[xe])&&"setAttribute"in ae==!!ie&&(ie?ae.localName===ie:ae.nodeType===3)){O=ae,j[xe]=null;break}}if(O==null){if(ie===null)return document.createTextNode(pe);O=L?document.createElementNS("http://www.w3.org/2000/svg",ie):document.createElement(ie,pe.is&&pe),j=null,X=!1}if(ie===null)fe===pe||X&&O.data===pe||(O.data=pe);else{if(j=j&&r.call(O.childNodes),ce=(fe=V.props||c).dangerouslySetInnerHTML,ee=pe.dangerouslySetInnerHTML,!X){if(j!=null)for(fe={},xe=0;xe<O.attributes.length;xe++)fe[O.attributes[xe].name]=O.attributes[xe].value;(ee||ce)&&(ee&&(ce&&ee.__html==ce.__html||ee.__html===O.innerHTML)||(O.innerHTML=ee&&ee.__html||""))}if(function(Xe,Le,Oe,ue,Ie){var le;for(le in Oe)le==="children"||le==="key"||le in Le||H(Xe,le,null,Oe[le],ue);for(le in Le)Ie&&typeof Le[le]!="function"||le==="children"||le==="key"||le==="value"||le==="checked"||Oe[le]===Le[le]||H(Xe,le,Le[le],Oe[le],ue)}(O,pe,fe,L,X),ee)A.__k=[];else if(xe=A.props.children,x(O,Array.isArray(xe)?xe:[xe],A,V,B,L&&ie!=="foreignObject",j,W,j?j[0]:V.__k&&E(V,0),X),j!=null)for(xe=j.length;xe--;)j[xe]!=null&&h(j[xe]);X||("value"in pe&&(xe=pe.value)!==void 0&&(xe!==fe.value||xe!==O.value||ie==="progress"&&!xe)&&H(O,"value",xe,fe.value,!1),"checked"in pe&&(xe=pe.checked)!==void 0&&xe!==O.checked&&H(O,"checked",xe,fe.checked,!1))}return O}function U(O,A,V){try{typeof O=="function"?O(A):O.current=A}catch(B){n.__e(B,V)}}function R(O,A,V){var B,L;if(n.unmount&&n.unmount(O),(B=O.ref)&&(B.current&&B.current!==O.__e||U(B,null,A)),(B=O.__c)!=null){if(B.componentWillUnmount)try{B.componentWillUnmount()}catch(j){n.__e(j,A)}B.base=B.__P=null}if(B=O.__k)for(L=0;L<B.length;L++)B[L]&&R(B[L],A,typeof O.type!="function");V||O.__e==null||h(O.__e),O.__e=O.__d=void 0}function Z(O,A,V){return this.constructor(O,V)}function re(O,A,V){var B,L,j;n.__&&n.__(O,A),L=(B=typeof V=="function")?null:V&&V.__k||A.__k,j=[],I(A,O=(!B&&V||A).__k=g(y,null,[O]),L||c,c,A.ownerSVGElement!==void 0,!B&&V?[V]:L?null:A.firstChild?r.call(A.childNodes):null,j,!B&&V?V:L?L.__e:A.firstChild,B),T(j,O)}r=f.slice,n={__e:function(O,A){for(var V,B,L;A=A.__;)if((V=A.__c)&&!V.__)try{if((B=V.constructor)&&B.getDerivedStateFromError!=null&&(V.setState(B.getDerivedStateFromError(O)),L=V.__d),V.componentDidCatch!=null&&(V.componentDidCatch(O),L=V.__d),L)return V.__E=V}catch(j){O=j}throw O}},o=0,i=function(O){return O!=null&&O.constructor===void 0},v.prototype.setState=function(O,A){var V;V=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof O=="function"&&(O=O(p({},V),this.props)),O&&p(V,O),O!=null&&this.__v&&(A&&this.__h.push(A),S(this))},v.prototype.forceUpdate=function(O){this.__v&&(this.__e=!0,O&&this.__h.push(O),S(this))},v.prototype.render=y,a=[],s=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,C.__r=0,l=0,t.Component=v,t.Fragment=y,t.cloneElement=function(O,A,V){var B,L,j,W=p({},O.props);for(j in A)j=="key"?B=A[j]:j=="ref"?L=A[j]:W[j]=A[j];return arguments.length>2&&(W.children=arguments.length>3?r.call(arguments,2):V),m(O.type,W,B||O.key,L||O.ref,null)},t.createContext=function(O,A){var V={__c:A="__cC"+l++,__:O,Consumer:function(B,L){return B.children(L)},Provider:function(B){var L,j;return this.getChildContext||(L=[],(j={})[A]=this,this.getChildContext=function(){return j},this.shouldComponentUpdate=function(W){this.props.value!==W.value&&L.some(S)},this.sub=function(W){L.push(W);var X=W.componentWillUnmount;W.componentWillUnmount=function(){L.splice(L.indexOf(W),1),X&&X.call(W)}}),B.children}};return V.Provider.__=V.Consumer.contextType=V},t.createElement=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function O(A,V){re(A,V,O)},t.isValidElement=i,t.options=n,t.render=re,t.toChildArray=function O(A,V){return V=V||[],A==null||typeof A=="boolean"||(Array.isArray(A)?A.some(function(B){O(B,V)}):V.push(A)),V}}),Ene=function(e,t){return t===void 0&&(t=document),typeof e=="string"?t.querySelector(e):((r=e)==null?void 0:r.nodeType)===Node.ELEMENT_NODE?e:null;var r},U3=class{constructor(e,t){t===void 0&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new BT([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function WT(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Sne=0;function xne(e){return"__private_"+Sne+++"_"+e}const{render:YT}=wne;var _p=xne("updateUI");class q3 extends U3{constructor(){super(...arguments),Object.defineProperty(this,_p,{writable:!0,value:void 0})}mount(t,r){const n=r.id,o=Ene(t);if(o){this.isTargetDOMEl=!0;const s=document.createDocumentFragment();return WT(this,_p)[_p]=function(u){let l=null,c=null;return function(){for(var f=arguments.length,d=new Array(f),p=0;p<f;p++)d[p]=arguments[p];return c=d,l||(l=Promise.resolve().then(()=>(l=null,u(...c)))),l}}(u=>{this.uppy.getPlugin(this.id)&&(YT(this.render(u),s),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),YT(this.render(this.uppy.getState()),s),this.el=s.firstElementChild,o.appendChild(s),this.onMount(),this.el}let i;if(typeof t=="object"&&t instanceof q3)i=t;else if(typeof t=="function"){const s=t;this.uppy.iteratePlugins(u=>{if(u instanceof s)return i=u,!1})}if(i)return this.uppy.log(`Installing ${n} to ${i.id}`),this.parent=i,this.el=i.addTarget(r),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let a=`Invalid target option given to ${n}.`;throw a+=typeof t=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(a)}update(t){var r,n;this.el!=null&&((r=(n=WT(this,_p))[_p])==null||r.call(n,t))}unmount(){var t;this.isTargetDOMEl&&((t=this.el)==null||t.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Cne=q3;const{debugLogger:Dne}=$T;var Op=GT,_ne=GT,One=Cne,Ane=U3,kne=Dne;Op.Uppy=_ne,Op.UIPlugin=One,Op.BasePlugin=Ane,Op.debugLogger=kne;class Nne extends Error{constructor(t,r){r===void 0&&(r=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=r}}var K3=Nne,G3=function(){return fetch(...arguments).catch(e=>{throw e.name==="AbortError"?e:new K3(e)})};class Tne extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var _1,Qa,Si,es,XT,Pne=Tne;function xi(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Bne=0;function W3(e){return"__private_"+Bne+++"_"+e}async function Y3(e){if(e.status===401)throw new Pne;const t=e.json();if(e.status<200||e.status>300){let r=`Failed request with status: ${e.status}. ${e.statusText}`;try{const n=await t;r=n.message?`${r} message: ${n.message}`:r,r=n.requestId?`${r} request-Id: ${n.requestId}`:r}finally{throw new Error(r)}}return t}var X3=(Qa=W3("getPostResponseFunc"),Si=W3("getUrl"),es=W3("errorHandler"),XT=_1=class KK{constructor(t,r){Object.defineProperty(this,es,{value:jne}),Object.defineProperty(this,Si,{value:Fne}),Object.defineProperty(this,Qa,{writable:!0,value:n=>o=>n?o:this.onReceiveResponse(o)}),this.uppy=t,this.opts=r,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),r=this.opts.companionUrl;return(t&&t[r]?t[r]:r).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...KK.defaultHeaders,...t})}onReceiveResponse(t){const r=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:o}=t;return o.has("i-am")&&o.get("i-am")!==r[n]&&this.uppy.setState({companion:{...r,[n]:o.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(xi(this,Si)[Si](t),{method:"OPTIONS"}).then(r=>(r.headers.has("access-control-allow-headers")&&(this.allowedHeaders=r.headers.get("access-control-allow-headers").split(",").map(n=>n.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(r=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${r}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(t){return Promise.all([this.preflight(t),this.headers()]).then(r=>{let[n,o]=r;return Object.keys(o).forEach(i=>{n.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])}),o})}get(t,r){return this.preflightAndHeaders(t).then(n=>G3(xi(this,Si)[Si](t),{method:"get",headers:n,credentials:this.opts.companionCookiesRule||"same-origin"})).then(xi(this,Qa)[Qa](r)).then(Y3).catch(xi(this,es)[es]("get",t))}post(t,r,n){const o="post";return this.preflightAndHeaders(t).then(i=>G3(xi(this,Si)[Si](t),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(r)})).then(xi(this,Qa)[Qa](n)).then(Y3).catch(xi(this,es)[es](o,t))}delete(t,r,n){const o="delete";return this.preflightAndHeaders(t).then(i=>G3(`${this.hostname}/${t}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:r?JSON.stringify(r):null})).then(xi(this,Qa)[Qa](n)).then(Y3).catch(xi(this,es)[es](o,t))}},_1.VERSION="2.0.4",_1.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${_1.VERSION}`},XT);function Fne(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function jne(e,t){return r=>{var n;if((n=r)==null||!n.isAuthError){const o=new Error(`Could not ${e} ${xi(this,Si)[Si](t)}`);o.cause=r,r=o}return Promise.reject(r)}}var Ine={setItem:(e,t)=>new Promise(r=>{localStorage.setItem(e,t),r()}),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise(t=>{localStorage.removeItem(e),t()})},Ci,ts,mo,an,O1;let JT,ZT;function Or(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Lne=0;function Ap(e){return"__private_"+Lne+++"_"+e}var Mne=(Ci=Ap("queued"),ts=Ap("emitter"),mo=Ap("isOpen"),an=Ap("socket"),O1=Ap("handleMessage"),JT=Symbol.for("uppy test: getSocket"),ZT=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,Ci,{writable:!0,value:[]}),Object.defineProperty(this,ts,{writable:!0,value:FT()}),Object.defineProperty(this,mo,{writable:!0,value:!1}),Object.defineProperty(this,an,{writable:!0,value:void 0}),Object.defineProperty(this,O1,{writable:!0,value:t=>{try{const r=JSON.parse(t.data);this.emit(r.action,r.payload)}catch(r){console.log(r)}}}),this.opts=e,e&&e.autoOpen===!1||this.open()}get isOpen(){return Or(this,mo)[mo]}[JT](){return Or(this,an)[an]}[ZT](){return Or(this,Ci)[Ci]}open(){Or(this,an)[an]=new WebSocket(this.opts.target),Or(this,an)[an].onopen=()=>{for(Or(this,mo)[mo]=!0;Or(this,Ci)[Ci].length>0&&Or(this,mo)[mo];){const e=Or(this,Ci)[Ci].shift();this.send(e.action,e.payload)}},Or(this,an)[an].onclose=()=>{Or(this,mo)[mo]=!1},Or(this,an)[an].onmessage=Or(this,O1)[O1]}close(){var e;(e=Or(this,an)[an])==null||e.close()}send(e,t){Or(this,mo)[mo]?Or(this,an)[an].send(JSON.stringify({action:e,payload:t})):Or(this,Ci)[Ci].push({action:e,payload:t})}on(e,t){Or(this,ts)[ts].on(e,t)}emit(e,t){Or(this,ts)[ts].emit(e,t)}once(e,t){Or(this,ts)[ts].once(e,t)}}),zne={RequestClient:X3,Provider:class extends X3{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(r=>r.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(e=>{let[t,r]=e;const n={};return r&&(n["uppy-auth-token"]=r),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...n}})}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),r=t.getPluginState().authenticated?e.status!==401:e.status<400;return t.setPluginState({authenticated:r}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return e===void 0&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(e=>{this.preAuthToken=e.token}).catch(e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,r){if(e.type="acquirer",e.files=[],r&&(e.opts={...r,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!(typeof n=="string"||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||Ine}},SearchProvider:class extends X3{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(r=>r.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:Mne},rs,$c,Vne=Ru(function(e,t,r){const{progress:n,bytesUploaded:o,bytesTotal:i}=t;n&&(e.uppy.log(`Upload progress: ${n}`),e.uppy.emit("upload-progress",r,{uploader:e,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function kp(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Rne=0;function QT(e){return"__private_"+Rne+++"_"+e}var eP=(rs=QT("emitter"),$c=QT("events"),class{constructor(e){Object.defineProperty(this,rs,{writable:!0,value:void 0}),Object.defineProperty(this,$c,{writable:!0,value:[]}),kp(this,rs)[rs]=e}on(e,t){return kp(this,$c)[$c].push([e,t]),kp(this,rs)[rs].on(e,t)}remove(){for(const[e,t]of kp(this,$c)[$c].splice(0))kp(this,rs)[rs].off(e,t)}});function yo(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var $ne=0;function A1(e){return"__private_"+$ne+++"_"+e}var fa=A1("aliveTimer"),qu=A1("isDone"),Np=A1("onTimedOut"),Ku=A1("timeout"),tP=class{constructor(e,t){Object.defineProperty(this,fa,{writable:!0,value:void 0}),Object.defineProperty(this,qu,{writable:!0,value:!1}),Object.defineProperty(this,Np,{writable:!0,value:void 0}),Object.defineProperty(this,Ku,{writable:!0,value:void 0}),yo(this,Ku)[Ku]=e,yo(this,Np)[Np]=t}progress(){yo(this,qu)[qu]||yo(this,Ku)[Ku]>0&&(clearTimeout(yo(this,fa)[fa]),yo(this,fa)[fa]=setTimeout(yo(this,Np)[Np],yo(this,Ku)[Ku]))}done(){yo(this,qu)[qu]||(clearTimeout(yo(this,fa)[fa]),yo(this,fa)[fa]=null,yo(this,qu)[qu]=!0)}};function Ar(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Hne=0;function Gu(e){return"__private_"+Hne+++"_"+e}function Une(){return new Error("Cancelled")}var Yn=Gu("activeRequests"),mn=Gu("queuedHandlers"),Tp=Gu("call"),Pp=Gu("queueNext"),J3=Gu("next"),Z3=Gu("queue"),Q3=Gu("dequeue");function qne(e){Ar(this,Yn)[Yn]+=1;let t,r=!1;try{t=e()}catch(n){throw Ar(this,Yn)[Yn]-=1,n}return{abort:()=>{r||(r=!0,Ar(this,Yn)[Yn]-=1,t(),Ar(this,Pp)[Pp]())},done:()=>{r||(r=!0,Ar(this,Yn)[Yn]-=1,Ar(this,Pp)[Pp]())}}}function Kne(){queueMicrotask(()=>Ar(this,J3)[J3]())}function Gne(){if(Ar(this,Yn)[Yn]>=this.limit||Ar(this,mn)[mn].length===0)return;const e=Ar(this,mn)[mn].shift(),t=Ar(this,Tp)[Tp](e.fn);e.abort=t.abort,e.done=t.done}function Wne(e,t){t===void 0&&(t={});const r={fn:e,priority:t.priority||0,abort:()=>{Ar(this,Q3)[Q3](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=Ar(this,mn)[mn].findIndex(o=>r.priority>o.priority);return n===-1?Ar(this,mn)[mn].push(r):Ar(this,mn)[mn].splice(n,0,r),r}function Yne(e){const t=Ar(this,mn)[mn].indexOf(e);t!==-1&&Ar(this,mn)[mn].splice(t,1)}var Xne={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,Q3,{value:Yne}),Object.defineProperty(this,Z3,{value:Wne}),Object.defineProperty(this,J3,{value:Gne}),Object.defineProperty(this,Pp,{value:Kne}),Object.defineProperty(this,Tp,{value:qne}),Object.defineProperty(this,Yn,{writable:!0,value:0}),Object.defineProperty(this,mn,{writable:!0,value:[]}),this.limit=typeof e!="number"||e===0?1/0:e}run(e,t){return Ar(this,Yn)[Yn]<this.limit?Ar(this,Tp)[Tp](e):Ar(this,Z3)[Z3](e,t)}wrapPromiseFunction(e,t){var r=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];let a;const s=new Promise((u,l)=>{a=r.run(()=>{let c,f;try{f=Promise.resolve(e(...o))}catch(d){f=Promise.reject(d)}return f.then(d=>{c?l(c):(a.done(),u(d))},d=>{c?l(c):(a.done(),l(d))}),()=>{c=Une()}},t)});return s.abort=()=>{a.abort()},s}}},internalRateLimitedQueue:Symbol("__queue")},rP,nP,oP=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},Jne={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Zne}=HT,{Provider:Qne,RequestClient:eoe,Socket:toe}=zne,{RateLimitedQueue:roe,internalRateLimitedQueue:e8}=Xne;function iP(e,t){let r=t;return r||(r=new Error("Upload error")),typeof r=="string"&&(r=new Error(r)),r instanceof Error||(r=Object.assign(new Error("Upload error"),{data:r})),oP(e)?(r=new K3(r,e),r):(r.request=e,r)}function aP(e){return e.data.slice(0,e.data.size,e.meta.type)}var noe=(nP=rP=class extends U3{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Jne;const r={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(n){let o={};try{o=JSON.parse(n)}catch(i){e.log(i)}return o},getResponseError(n,o){let i=new Error("Upload error");return oP(o)&&(i=new K3(i,o)),i},validateStatus:n=>n>=200&&n<300};if(this.opts={...r,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),e8 in this.opts?this.requests=this.opts[e8]:this.requests=new roe(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:r}=this.opts,n={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return typeof r=="function"?n.headers=r(e):Object.assign(n.headers,this.opts.headers),t&&Object.assign(n.headers,t.headers),e.xhrUpload&&Object.assign(n.headers,e.xhrUpload.headers),n}addMetadata(e,t,r){(Array.isArray(r.metaFields)?r.metaFields:Object.keys(t)).forEach(n=>{e.append(n,t[n])})}createFormDataUpload(e,t){const r=new FormData;this.addMetadata(r,e.meta,t);const n=aP(e);return e.name?r.append(t.fieldName,n,e.meta.name):r.append(t.fieldName,n),r}createBundledUpload(e,t){const r=new FormData,{meta:n}=this.uppy.getState();return this.addMetadata(r,n,t),e.forEach(o=>{const i=this.getOptions(o),a=aP(o);o.name?r.append(i.fieldName,a,o.name):r.append(i.fieldName,a)}),r}upload(e,t,r){const n=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${r}`),new Promise((o,i)=>{this.uppy.emit("upload-started",e);const a=n.formData?this.createFormDataUpload(e,n):e.data,s=new XMLHttpRequest;this.uploaderEvents[e.id]=new eP(this.uppy);const u=new tP(n.timeout,()=>{s.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(n.timeout/1e3)}));this.uppy.emit("upload-error",e,f),i(f)}),l=Zne();s.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${l} started`)}),s.upload.addEventListener("progress",f=>{this.uppy.log(`[XHRUpload] ${l} progress: ${f.loaded} / ${f.total}`),u.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})}),s.addEventListener("load",f=>{if(this.uppy.log(`[XHRUpload] ${l} finished`),u.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n.validateStatus(f.target.status,s.responseText,s)){const g=n.getResponseData(s.responseText,s),m=g[n.responseUrlFieldName],y={status:f.target.status,body:g,uploadURL:m};return this.uppy.emit("upload-success",e,y),m&&this.uppy.log(`Download ${e.name} from ${m}`),o(e)}const d=n.getResponseData(s.responseText,s),p=iP(s,n.getResponseError(s.responseText,s)),h={status:f.target.status,body:d};return this.uppy.emit("upload-error",e,p,h),i(p)}),s.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),u.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const f=iP(s,n.getResponseError(s.responseText,s));return this.uppy.emit("upload-error",e,f),i(f)}),s.open(n.method.toUpperCase(),n.endpoint,!0),s.withCredentials=n.withCredentials,n.responseType!==""&&(s.responseType=n.responseType);const c=this.requests.run(()=>{this.uppy.emit("upload-started",e);const f=this.getOptions(e);return Object.keys(f.headers).forEach(d=>{s.setRequestHeader(d,f.headers[d])}),s.send(a),()=>{u.done(),s.abort()}});this.onFileRemove(e.id,()=>{c.abort(),i(new Error("File removed"))}),this.onCancelAll(e.id,()=>{c.abort(),i(new Error("Upload cancelled"))})})}uploadRemote(e){const t=this.getOptions(e);return new Promise((r,n)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach(i=>{o[i]=e.meta[i]}),new(e.remote.providerOptions.provider?Qne:eoe)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then(i=>{const{token:a}=i,s=function(c){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];return`${/^http:\/\//i.test(c)?"ws":"wss"}://${f}`}(e.remote.companionUrl),u=new toe({target:`${s}/api/${a}`,autoOpen:!1});this.uploaderEvents[e.id]=new eP(this.uppy),this.onFileRemove(e.id,()=>{u.send("cancel",{}),l.abort(),r(`upload ${e.id} was removed`)}),this.onCancelAll(e.id,()=>{u.send("cancel",{}),l.abort(),r(`upload ${e.id} was canceled`)}),this.onRetry(e.id,()=>{u.send("pause",{}),u.send("resume",{})}),this.onRetryAll(e.id,()=>{u.send("pause",{}),u.send("resume",{})}),u.on("progress",c=>Vne(this,c,e)),u.on("success",c=>{const f=t.getResponseData(c.response.responseText,c.response),d=f[t.responseUrlFieldName],p={status:c.response.status,body:f,uploadURL:d};return this.uppy.emit("upload-success",e,p),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r()}),u.on("error",c=>{const f=c.response,d=f?t.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",e,d),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n(d)});const l=this.requests.run(()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close()))}).catch(i=>{this.uppy.emit("upload-error",e,i),n(i)})})}uploadBundle(e){return new Promise((t,r)=>{const{endpoint:n}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),s=new XMLHttpRequest,u=new tP(this.opts.timeout,()=>{s.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),r(c)}),l=c=>{e.forEach(f=>{this.uppy.emit("upload-error",f,c)})};s.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),u.progress()}),s.upload.addEventListener("progress",c=>{u.progress(),c.lengthComputable&&e.forEach(f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})})}),s.addEventListener("load",c=>{if(u.done(),this.opts.validateStatus(c.target.status,s.responseText,s)){const d=this.opts.getResponseData(s.responseText,s),p={status:c.target.status,body:d};return e.forEach(h=>{this.uppy.emit("upload-success",h,p)}),t()}const f=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return f.request=s,l(f),r(f)}),s.addEventListener("error",()=>{u.done();const c=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return l(c),r(c)}),this.uppy.on("cancel-all",()=>{u.done(),s.abort()}),s.open(o.toUpperCase(),n,!0),s.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(s.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(c=>{s.setRequestHeader(c,this.opts.headers[c])}),s.send(a),e.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(e){const t=e.map((r,n)=>{const o=parseInt(n,10)+1,i=e.length;return r.error?Promise.reject(new Error(r.error)):r.isRemote?this.uploadRemote(r,o,i):this.upload(r,o,i)});return function(r){const n=[],o=[];function i(s){n.push(s)}function a(s){o.push(s)}return Promise.all(r.map(s=>s.then(i,a))).then(()=>({successful:n,failed:o}))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",r=>{e===r.id&&t(r.id)})}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",r=>{e===r&&t()})}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",()=>{this.uppy.getFile(e)&&t()})}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",()=>{this.uppy.getFile(e)&&t()})}handleUpload(e){if(e.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[e8]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map(r=>this.uppy.getFile(r));if(this.opts.bundle){if(t.some(r=>r.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},rP.VERSION="2.0.6",nP),sP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bp(e){var t={exports:{}};return e(t,t.exports),t.exports}var ns,k1,N1=function(e){return e&&e.Math==Math&&e},ge=N1(typeof globalThis=="object"&&globalThis)||N1(typeof window=="object"&&window)||N1(typeof self=="object"&&self)||N1(typeof sP=="object"&&sP)||function(){return this}()||Function("return this")(),ooe=Object.defineProperty,t8=function(e,t){try{ooe(ge,e,{value:t,configurable:!0,writable:!0})}catch{ge[e]=t}return t},os=ge["__core-js_shared__"]||t8("__core-js_shared__",{}),r8=Bp(function(e){(e.exports=function(t,r){return os[t]||(os[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),uP=Function.prototype,n8=uP.bind,o8=uP.call,ioe=n8&&n8.bind(o8),Be=n8?function(e){return e&&ioe(o8,e)}:function(e){return e&&function(){return o8.apply(e,arguments)}},aoe=ge.TypeError,bo=function(e){if(e==null)throw aoe("Can't call method on "+e);return e},soe=ge.Object,is=function(e){return soe(bo(e))},uoe=Be({}.hasOwnProperty),mr=Object.hasOwn||function(e,t){return uoe(is(e),t)},loe=0,coe=Math.random(),foe=Be(1 .toString),i8=function(e){return"Symbol("+(e===void 0?"":e)+")_"+foe(++loe+coe,36)},Tt=function(e){return typeof e=="function"},doe=function(e){return Tt(e)?e:void 0},Wu=function(e,t){return arguments.length<2?doe(ge[e]):ge[e]&&ge[e][t]},Hc=Wu("navigator","userAgent")||"",lP=ge.process,cP=ge.Deno,fP=lP&&lP.versions||cP&&cP.version,dP=fP&&fP.v8;dP&&(k1=(ns=dP.split("."))[0]>0&&ns[0]<4?1:+(ns[0]+ns[1])),!k1&&Hc&&(!(ns=Hc.match(/Edge\/(\d+)/))||ns[1]>=74)&&(ns=Hc.match(/Chrome\/(\d+)/))&&(k1=+ns[1]);var Fp=k1,xt=function(e){try{return!!e()}catch{return!0}},a8=!!Object.getOwnPropertySymbols&&!xt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Fp&&Fp<41}),s8=a8&&!Symbol.sham&&typeof Symbol.iterator=="symbol",jp=r8("wks"),Yu=ge.Symbol,pP=Yu&&Yu.for,poe=s8?Yu:Yu&&Yu.withoutSetter||i8,Zt=function(e){if(!mr(jp,e)||!a8&&typeof jp[e]!="string"){var t="Symbol."+e;a8&&mr(Yu,e)?jp[e]=Yu[e]:jp[e]=s8&&pP?pP(t):poe(t)}return jp[e]},hP={};hP[Zt("toStringTag")]="z";var u8=String(hP)==="[object z]",Ur=!xt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ut=function(e){return typeof e=="object"?e!==null:Tt(e)},l8=ge.document,hoe=Ut(l8)&&Ut(l8.createElement),Ip=function(e){return hoe?l8.createElement(e):{}},gP=!Ur&&!xt(function(){return Object.defineProperty(Ip("div"),"a",{get:function(){return 7}}).a!=7}),goe=ge.String,voe=ge.TypeError,yr=function(e){if(Ut(e))return e;throw voe(goe(e)+" is not an object")},Lp=Function.prototype.call,ht=Lp.bind?Lp.bind(Lp):function(){return Lp.apply(Lp,arguments)},Xu=Be({}.isPrototypeOf),moe=ge.Object,c8=s8?function(e){return typeof e=="symbol"}:function(e){var t=Wu("Symbol");return Tt(t)&&Xu(t.prototype,moe(e))},yoe=ge.String,T1=function(e){try{return yoe(e)}catch{return"Object"}},boe=ge.TypeError,as=function(e){if(Tt(e))return e;throw boe(T1(e)+" is not a function")},Ju=function(e,t){var r=e[t];return r==null?void 0:as(r)},woe=ge.TypeError,Eoe=ge.TypeError,Soe=Zt("toPrimitive"),f8=function(e){var t=function(r,n){if(!Ut(r)||c8(r))return r;var o,i=Ju(r,Soe);if(i){if(o=ht(i,r,n),!Ut(o)||c8(o))return o;throw Eoe("Can't convert object to primitive value")}return function(a,s){var u,l;if(Tt(u=a.toString)&&!Ut(l=ht(u,a))||Tt(u=a.valueOf)&&!Ut(l=ht(u,a)))return l;throw woe("Can't convert object to primitive value")}(r)}(e,"string");return c8(t)?t:t+""},xoe=ge.TypeError,vP=Object.defineProperty,Go={f:Ur?vP:function(e,t,r){if(yr(e),t=f8(t),yr(r),gP)try{return vP(e,t,r)}catch{}if("get"in r||"set"in r)throw xoe("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},P1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Wo=Ur?function(e,t,r){return Go.f(e,t,P1(1,r))}:function(e,t,r){return e[t]=r,e},Coe=Be(Function.toString);Tt(os.inspectSource)||(os.inspectSource=function(e){return Coe(e)});var B1,Mp,F1,j1=os.inspectSource,mP=ge.WeakMap,yP=Tt(mP)&&/native code/.test(j1(mP)),bP=r8("keys"),d8=function(e){return bP[e]||(bP[e]=i8(e))},I1={},p8=ge.TypeError,Doe=ge.WeakMap;if(yP||os.state){var Zu=os.state||(os.state=new Doe),_oe=Be(Zu.get),wP=Be(Zu.has),Ooe=Be(Zu.set);B1=function(e,t){if(wP(Zu,e))throw new p8("Object already initialized");return t.facade=e,Ooe(Zu,e,t),t},Mp=function(e){return _oe(Zu,e)||{}},F1=function(e){return wP(Zu,e)}}else{var Uc=d8("state");I1[Uc]=!0,B1=function(e,t){if(mr(e,Uc))throw new p8("Object already initialized");return t.facade=e,Wo(e,Uc,t),t},Mp=function(e){return mr(e,Uc)?e[Uc]:{}},F1=function(e){return mr(e,Uc)}}var sn={set:B1,get:Mp,has:F1,enforce:function(e){return F1(e)?Mp(e):B1(e,{})},getterFor:function(e){return function(t){var r;if(!Ut(t)||(r=Mp(t)).type!==e)throw p8("Incompatible receiver, "+e+" required");return r}}},EP=Function.prototype,Aoe=Ur&&Object.getOwnPropertyDescriptor,h8=mr(EP,"name"),qc={EXISTS:h8,PROPER:h8&&(function(){}).name==="something",CONFIGURABLE:h8&&(!Ur||Ur&&Aoe(EP,"name").configurable)},kn=Bp(function(e){var t=qc.CONFIGURABLE,r=sn.get,n=sn.enforce,o=String(String).split("String");(e.exports=function(i,a,s,u){var l,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet,p=u&&u.name!==void 0?u.name:a;Tt(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!mr(s,"name")||t&&s.name!==p)&&Wo(s,"name",p),(l=n(s)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==ge?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=s:Wo(i,a,s)):f?i[a]=s:t8(a,s)})(Function.prototype,"toString",function(){return Tt(this)&&r(this).source||j1(this)})}),koe=Be({}.toString),Noe=Be("".slice),Yo=function(e){return Noe(koe(e),8,-1)},Toe=Zt("toStringTag"),Poe=ge.Object,Boe=Yo(function(){return arguments}())=="Arguments",L1=u8?Yo:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=Poe(e),Toe))=="string"?r:Boe?Yo(t):(n=Yo(t))=="Object"&&Tt(t.callee)?"Arguments":n},Foe=u8?{}.toString:function(){return"[object "+L1(this)+"]"};u8||kn(Object.prototype,"toString",Foe,{unsafe:!0});var M1={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},g8=Ip("span").classList,SP=g8&&g8.constructor&&g8.constructor.prototype,xP=SP===Object.prototype?void 0:SP,CP=Be(Be.bind),Qu=function(e,t){return as(e),t===void 0?e:CP?CP(e,t):function(){return e.apply(t,arguments)}},v8=ge.Object,joe=Be("".split),z1=xt(function(){return!v8("z").propertyIsEnumerable(0)})?function(e){return Yo(e)=="String"?joe(e,""):v8(e)}:v8,Ioe=Math.ceil,Loe=Math.floor,zp=function(e){var t=+e;return t!=t||t===0?0:(t>0?Loe:Ioe)(t)},Moe=Math.min,Kc=function(e){return e>0?Moe(zp(e),9007199254740991):0},el=function(e){return Kc(e.length)},V1=Array.isArray||function(e){return Yo(e)=="Array"},DP=function(){},zoe=[],_P=Wu("Reflect","construct"),m8=/^\s*(?:class|function)\b/,Voe=Be(m8.exec),Roe=!m8.exec(DP),Vp=function(e){if(!Tt(e))return!1;try{return _P(DP,zoe,e),!0}catch{return!1}},R1=!_P||xt(function(){var e;return Vp(Vp.call)||!Vp(Object)||!Vp(function(){e=!0})||e})?function(e){if(!Tt(e))return!1;switch(L1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Roe||!!Voe(m8,j1(e))}:Vp,$oe=Zt("species"),OP=ge.Array,AP=function(e,t){return new(function(r){var n;return V1(r)&&(n=r.constructor,(R1(n)&&(n===OP||V1(n.prototype))||Ut(n)&&(n=n[$oe])===null)&&(n=void 0)),n===void 0?OP:n}(e))(t===0?0:t)},kP=Be([].push),ss=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,h=is(u),g=z1(h),m=Qu(l,c),y=el(g),v=0,E=f||AP,w=t?E(u,y):r||a?E(u,0):void 0;y>v;v++)if((s||v in g)&&(p=m(d=g[v],v,h),e))if(t)w[v]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:kP(w,d)}else switch(e){case 4:return!1;case 7:kP(w,d)}return i?-1:n||o?o:w}},Gc={forEach:ss(0),map:ss(1),filter:ss(2),some:ss(3),every:ss(4),find:ss(5),findIndex:ss(6),filterReject:ss(7)},NP=function(e,t){var r=[][e];return!!r&&xt(function(){r.call(null,t||function(){throw 1},1)})},Hoe=Gc.forEach,y8=NP("forEach")?[].forEach:function(e){return Hoe(this,e,arguments.length>1?arguments[1]:void 0)},TP=function(e){if(e&&e.forEach!==y8)try{Wo(e,"forEach",y8)}catch{e.forEach=y8}};for(var b8 in M1)M1[b8]&&TP(ge[b8]&&ge[b8].prototype);TP(xP);var PP={}.propertyIsEnumerable,BP=Object.getOwnPropertyDescriptor,Uoe=BP&&!PP.call({1:2},1)?function(e){var t=BP(this,e);return!!t&&t.enumerable}:PP,FP={f:Uoe},us=function(e){return z1(bo(e))},jP=Object.getOwnPropertyDescriptor,Rp={f:Ur?jP:function(e,t){if(e=us(e),t=f8(t),gP)try{return jP(e,t)}catch{}if(mr(e,t))return P1(!ht(FP.f,e,t),e[t])}},qoe=Math.max,Koe=Math.min,Wc=function(e,t){var r=zp(e);return r<0?qoe(r+t,0):Koe(r,t)},IP=function(e){return function(t,r,n){var o,i=us(t),a=el(i),s=Wc(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},LP={includes:IP(!0),indexOf:IP(!1)},Goe=LP.indexOf,MP=Be([].push),zP=function(e,t){var r,n=us(e),o=0,i=[];for(r in n)!mr(I1,r)&&mr(n,r)&&MP(i,r);for(;t.length>o;)mr(n,r=t[o++])&&(~Goe(i,r)||MP(i,r));return i},$1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Woe=$1.concat("length","prototype"),$p={f:Object.getOwnPropertyNames||function(e){return zP(e,Woe)}},VP={f:Object.getOwnPropertySymbols},Yoe=Be([].concat),Xoe=Wu("Reflect","ownKeys")||function(e){var t=$p.f(yr(e)),r=VP.f;return r?Yoe(t,r(e)):t},Joe=function(e,t){for(var r=Xoe(t),n=Go.f,o=Rp.f,i=0;i<r.length;i++){var a=r[i];mr(e,a)||n(e,a,o(t,a))}},Zoe=/#|\.prototype\./,Hp=function(e,t){var r=eie[Qoe(e)];return r==rie||r!=tie&&(Tt(t)?xt(t):!!t)},Qoe=Hp.normalize=function(e){return String(e).replace(Zoe,".").toLowerCase()},eie=Hp.data={},tie=Hp.NATIVE="N",rie=Hp.POLYFILL="P",Up=Hp,nie=Rp.f,Qt=function(e,t){var r,n,o,i,a,s=e.target,u=e.global,l=e.stat;if(r=u?ge:l?ge[s]||t8(s,{}):(ge[s]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=nie(r,n))&&a.value:r[n],!Up(u?n:s+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Joe(i,o)}(e.sham||o&&o.sham)&&Wo(i,"sham",!0),kn(r,n,i,e)}},Yc=Object.keys||function(e){return zP(e,$1)},oie=xt(function(){Yc(1)});/*!
60
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
61
+ *
62
+ * Copyright (c) 2014-2017, Jon Schlinkert.
63
+ * Released under the MIT License.
64
+ */function RP(e){return Object.prototype.toString.call(e)==="[object Object]"}Qt({target:"Object",stat:!0,forced:oie},{keys:function(e){return Yc(is(e))}});var iie={isHistory(e){return RP(t=e)!==!1&&((r=t.constructor)===void 0||RP(n=r.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Ya.isOperationList(e.redos[0]))&&(e.undos.length===0||Ya.isOperationList(e.undos[0]));var t,r,n}},w8=new WeakMap,E8=new WeakMap,Xc={isHistoryEditor:e=>iie.isHistory(e.history)&&D.isEditor(e),isMerging:e=>E8.get(e),isSaving:e=>w8.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var r=Xc.isMerging(e);E8.set(e,!1),t(),E8.set(e,r)},withoutSaving(e,t){var r=Xc.isSaving(e);w8.set(e,!1),t(),w8.set(e,r)}},aie=ge.String,jt=function(e){if(L1(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return aie(e)},S8=function(){var e=yr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},sie=qc.PROPER,x8=RegExp.prototype,$P=x8.toString,uie=Be(S8),lie=xt(function(){return $P.call({source:"a",flags:"b"})!="/a/b"}),cie=sie&&$P.name!="toString";(lie||cie)&&kn(RegExp.prototype,"toString",function(){var e=yr(this),t=jt(e.source),r=e.flags;return"/"+t+"/"+jt(r===void 0&&Xu(x8,e)&&!("flags"in x8)?uie(e):r)},{unsafe:!0});var H1,fie=Ur?Object.defineProperties:function(e,t){yr(e);for(var r,n=us(t),o=Yc(t),i=o.length,a=0;i>a;)Go.f(e,r=o[a++],n[r]);return e},C8=Wu("document","documentElement"),HP=d8("IE_PROTO"),D8=function(){},UP=function(e){return"<script>"+e+"<\/script>"},qP=function(e){e.write(UP("")),e.close();var t=e.parentWindow.Object;return e=null,t},U1=function(){try{H1=new ActiveXObject("htmlfile")}catch{}var e,t;U1=typeof document<"u"?document.domain&&H1?qP(H1):((t=Ip("iframe")).style.display="none",C8.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(UP("document.F=Object")),e.close(),e.F):qP(H1);for(var r=$1.length;r--;)delete U1.prototype[$1[r]];return U1()};I1[HP]=!0;var q1=Object.create||function(e,t){var r;return e!==null?(D8.prototype=yr(e),r=new D8,D8.prototype=null,r[HP]=e):r=U1(),t===void 0?r:fie(r,t)},_8=Zt("unscopables"),O8=Array.prototype;O8[_8]==null&&Go.f(O8,_8,{configurable:!0,value:q1(null)});var qp=function(e){O8[_8][e]=!0},die=LP.includes;Qt({target:"Array",proto:!0},{includes:function(e){return die(this,e,arguments.length>1?arguments[1]:void 0)}}),qp("includes");var pie=Zt("match"),A8=function(e){var t;return Ut(e)&&((t=e[pie])!==void 0?!!t:Yo(e)=="RegExp")},hie=ge.TypeError,k8=function(e){if(A8(e))throw hie("The method doesn't accept regular expressions");return e},gie=Zt("match"),N8=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[gie]=!1,"/./"[e](t)}catch{}}return!1},vie=Be("".indexOf);Qt({target:"String",proto:!0,forced:!N8("includes")},{includes:function(e){return!!~vie(jt(bo(this)),jt(k8(e)),arguments.length>1?arguments[1]:void 0)}});var mie=/"/g,yie=Be("".replace);Qt({target:"String",proto:!0,forced:xt(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,r=jt(bo(this)),n="<a",(n+=' name="'+yie(jt(t),mie,"&quot;")+'"')+">"+r+"</a>";var t,r,n}});var T8=function(e,t,r){var n,o;yr(e);try{if(!(n=Ju(e,"return"))){if(t==="throw")throw r;return r}n=ht(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return yr(n),r},bie=function(e,t,r,n){try{return n?t(yr(r)[0],r[1]):t(r)}catch(o){T8(e,"throw",o)}},Jc={},wie=Zt("iterator"),Eie=Array.prototype,KP=function(e){return e!==void 0&&(Jc.Array===e||Eie[wie]===e)},Kp=function(e,t,r){var n=f8(t);n in e?Go.f(e,n,P1(0,r)):e[n]=r},Sie=Zt("iterator"),P8=function(e){if(e!=null)return Ju(e,Sie)||Ju(e,"@@iterator")||Jc[L1(e)]},xie=ge.TypeError,GP=function(e,t){var r=arguments.length<2?P8(e):t;if(as(r))return yr(ht(r,e));throw xie(T1(e)+" is not iterable")},WP=ge.Array,YP=Zt("iterator"),XP=!1;try{var Cie=0,JP={next:function(){return{done:!!Cie++}},return:function(){XP=!0}};JP[YP]=function(){return this},Array.from(JP,function(){throw 2})}catch{}var B8=function(e,t){if(!XP)return!1;var r=!1;try{var n={};n[YP]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},Die=!B8(function(e){Array.from(e)});Qt({target:"Array",stat:!0,forced:Die},{from:function(e){var t=is(e),r=R1(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=o!==void 0;i&&(o=Qu(o,n>2?arguments[2]:void 0));var a,s,u,l,c,f,d=P8(t),p=0;if(!d||this==WP&&KP(d))for(a=el(t),s=r?new this(a):WP(a);a>p;p++)f=i?o(t[p],p):t[p],Kp(s,p,f);else for(c=(l=GP(t,d)).next,s=r?new this:[];!(u=ht(c,l)).done;p++)f=i?bie(l,o,[u.value,p],!0):u.value,Kp(s,p,f);return s.length=p,s}});var tl,ZP,QP,_ie=Be("".charAt),eB=Be("".charCodeAt),Oie=Be("".slice),tB=function(e){return function(t,r){var n,o,i=jt(bo(t)),a=zp(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=eB(i,a))<55296||n>56319||a+1===s||(o=eB(i,a+1))<56320||o>57343?e?_ie(i,a):n:e?Oie(i,a,a+2):o-56320+(n-55296<<10)+65536}},rB={codeAt:tB(!1),charAt:tB(!0)},Aie=!xt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),nB=d8("IE_PROTO"),F8=ge.Object,kie=F8.prototype,K1=Aie?F8.getPrototypeOf:function(e){var t=is(e);if(mr(t,nB))return t[nB];var r=t.constructor;return Tt(r)&&t instanceof r?r.prototype:t instanceof F8?kie:null},j8=Zt("iterator"),oB=!1;[].keys&&("next"in(QP=[].keys())?(ZP=K1(K1(QP)))!==Object.prototype&&(tl=ZP):oB=!0);var Nie=tl==null||xt(function(){var e={};return tl[j8].call(e)!==e});Nie&&(tl={}),Tt(tl[j8])||kn(tl,j8,function(){return this});var I8={IteratorPrototype:tl,BUGGY_SAFARI_ITERATORS:oB},Tie=Go.f,iB=Zt("toStringTag"),G1=function(e,t,r){e&&!mr(e=r?e:e.prototype,iB)&&Tie(e,iB,{configurable:!0,value:t})},Pie=I8.IteratorPrototype,Bie=function(){return this},Fie=ge.String,jie=ge.TypeError,Zc=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Be(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return yr(n),function(i){if(typeof i=="object"||Tt(i))return i;throw jie("Can't set "+Fie(i)+" as a prototype")}(o),t?e(n,o):n.__proto__=o,n}}():void 0),Iie=qc.PROPER,Lie=qc.CONFIGURABLE,aB=I8.IteratorPrototype,W1=I8.BUGGY_SAFARI_ITERATORS,Gp=Zt("iterator"),Mie=function(){return this},L8=function(e,t,r,n,o,i,a){(function(y,v,E,w){var S=v+" Iterator";y.prototype=q1(Pie,{next:P1(1,E)}),G1(y,S,!1),Jc[S]=Bie})(r,t,n);var s,u,l,c=function(y){if(y===o&&g)return g;if(!W1&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new r(this,y)}}return function(){return new r(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Gp]||p["@@iterator"]||o&&p[o],g=!W1&&h||c(o),m=t=="Array"&&p.entries||h;if(m&&(s=K1(m.call(new e)))!==Object.prototype&&s.next&&(K1(s)!==aB&&(Zc?Zc(s,aB):Tt(s[Gp])||kn(s,Gp,Mie)),G1(s,f,!0)),Iie&&o=="values"&&h&&h.name!=="values"&&(Lie?Wo(p,"name","values"):(d=!0,g=function(){return ht(h,this)})),o)if(u={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in u)(W1||d||!(l in p))&&kn(p,l,u[l]);else Qt({target:t,proto:!0,forced:W1||d},u);return p[Gp]!==g&&kn(p,Gp,g,{name:o}),Jc[t]=g,u},zie=rB.charAt,Vie=sn.set,Rie=sn.getterFor("String Iterator");L8(String,"String",function(e){Vie(this,{type:"String Iterator",string:jt(e),index:0})},function(){var e,t=Rie(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=zie(r,n),t.index+=e.length,{value:e,done:!1})});var M8,$ie=Rp.f,sB=Be("".endsWith),Hie=Be("".slice),Uie=Math.min,uB=N8("endsWith"),qie=!(uB||(M8=$ie(String.prototype,"endsWith"),!M8||M8.writable));Qt({target:"String",proto:!0,forced:!qie&&!uB},{endsWith:function(e){var t=jt(bo(this));k8(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,o=r===void 0?n:Uie(Kc(r),n),i=jt(e);return sB?sB(t,i,o):Hie(t,o-i.length,o)===i}});var Kie=Be([].join),Gie=z1!=Object,Wie=NP("join",",");Qt({target:"Array",proto:!0,forced:Gie||!Wie},{join:function(e){return Kie(us(this),e===void 0?",":e)}});var Yie=Zt("species"),Y1=function(e){return Fp>=51||!xt(function(){var t=[];return(t.constructor={})[Yie]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Xie=Gc.map,Jie=Y1("map");Qt({target:"Array",proto:!0,forced:!Jie},{map:function(e){return Xie(this,e,arguments.length>1?arguments[1]:void 0)}});var z8=ge.RegExp,V8=xt(function(){var e=z8("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Zie=V8||xt(function(){return!z8("a","y").sticky}),X1={BROKEN_CARET:V8||xt(function(){var e=z8("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Zie,UNSUPPORTED_Y:V8},Qie=ge.RegExp,R8=xt(function(){var e=Qie(".","s");return!(e.dotAll&&e.exec(`
65
+ `)&&e.flags==="s")}),eae=ge.RegExp,$8=xt(function(){var e=eae("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),tae=sn.get,rae=r8("native-string-replace",String.prototype.replace),J1=RegExp.prototype.exec,H8=J1,nae=Be("".charAt),oae=Be("".indexOf),iae=Be("".replace),U8=Be("".slice),q8=function(){var e=/a/,t=/b*/g;return ht(J1,e,"a"),ht(J1,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),lB=X1.BROKEN_CARET,K8=/()??/.exec("")[1]!==void 0;(q8||K8||lB||R8||$8)&&(H8=function(e){var t,r,n,o,i,a,s,u=this,l=tae(u),c=jt(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=ht(H8,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=lB&&u.sticky,h=ht(S8,u),g=u.source,m=0,y=c;if(p&&(h=iae(h,"y",""),oae(h,"g")===-1&&(h+="g"),y=U8(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&nae(c,u.lastIndex-1)!==`
66
+ `)&&(g="(?: "+g+")",y=" "+y,m++),r=new RegExp("^(?:"+g+")",h)),K8&&(r=new RegExp("^"+g+"$(?!\\s)",h)),q8&&(n=u.lastIndex),o=ht(J1,p?r:u,y),p?o?(o.input=U8(o.input,m),o[0]=U8(o[0],m),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:q8&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),K8&&o&&o.length>1&&ht(rae,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=q1(null),i=0;i<d.length;i++)a[(s=d[i])[0]]=o[s[1]];return o});var Wp=H8;Qt({target:"RegExp",proto:!0,forced:/./.exec!==Wp},{exec:Wp});var G8=Function.prototype,cB=G8.apply,aae=G8.bind,fB=G8.call,W8=typeof Reflect=="object"&&Reflect.apply||(aae?fB.bind(cB):function(){return fB.apply(cB,arguments)}),sae=Zt("species"),Y8=RegExp.prototype,X8=function(e,t,r,n){var o=Zt(e),i=!xt(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!xt(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[sae]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var s=Be(/./[o]),u=t(o,""[e],function(l,c,f,d,p){var h=Be(l),g=c.exec;return g===Wp||g===Y8.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:h(f,c,d)}:{done:!1}});kn(String.prototype,e,u[0]),kn(Y8,o,u[1])}n&&Wo(Y8[o],"sham",!0)},uae=rB.charAt,J8=function(e,t,r){return t+(r?uae(e,t).length:1)},lae=Math.floor,Z8=Be("".charAt),cae=Be("".replace),Q8=Be("".slice),fae=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,dae=/\$([$&'`]|\d{1,2})/g,pae=function(e,t,r,n,o,i){var a=r+e.length,s=n.length,u=dae;return o!==void 0&&(o=is(o),u=fae),cae(i,u,function(l,c){var f;switch(Z8(c,0)){case"$":return"$";case"&":return e;case"`":return Q8(t,0,r);case"'":return Q8(t,a);case"<":f=o[Q8(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>s){var p=lae(d/10);return p===0?l:p<=s?n[p-1]===void 0?Z8(c,1):n[p-1]+Z8(c,1):l}f=n[d-1]}return f===void 0?"":f})},hae=ge.TypeError,Yp=function(e,t){var r=e.exec;if(Tt(r)){var n=ht(r,e,t);return n!==null&&yr(n),n}if(Yo(e)==="RegExp")return ht(Wp,e,t);throw hae("RegExp#exec called on incompatible receiver")},e5=Zt("replace"),gae=Math.max,vae=Math.min,mae=Be([].concat),t5=Be([].push),dB=Be("".indexOf),pB=Be("".slice),yae="a".replace(/./,"$0")==="$0",hB=!!/./[e5]&&/./[e5]("a","$0")==="";X8("replace",function(e,t,r){var n=hB?"$":"$0";return[function(o,i){var a=bo(this),s=o==null?void 0:Ju(o,e5);return s?ht(s,o,a,i):ht(t,jt(a),o,i)},function(o,i){var a=yr(this),s=jt(o);if(typeof i=="string"&&dB(i,n)===-1&&dB(i,"$<")===-1){var u=r(t,a,s,i);if(u.done)return u.value}var l=Tt(i);l||(i=jt(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Yp(a,s);if(p===null||(t5(d,p),!c))break;jt(p[0])===""&&(a.lastIndex=J8(s,Kc(a.lastIndex),f))}for(var h,g="",m=0,y=0;y<d.length;y++){for(var v=jt((p=d[y])[0]),E=gae(vae(zp(p.index),s.length),0),w=[],S=1;S<p.length;S++)t5(w,(h=p[S])===void 0?h:String(h));var C=p.groups;if(l){var x=mae([v],w,E,s);C!==void 0&&t5(x,C);var _=jt(W8(i,void 0,x))}else _=pae(v,s,E,w,C,i);E>=m&&(g+=pB(s,m,E)+_,m=E+v.length)}return g+pB(s,m)}]},!!xt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!yae||hB);/*! *****************************************************************************
67
+ Copyright (c) Microsoft Corporation.
68
+
69
+ Permission to use, copy, modify, and/or distribute this software for any
70
+ purpose with or without fee is hereby granted.
71
+
72
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
73
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
74
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
75
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
76
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
77
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
78
+ PERFORMANCE OF THIS SOFTWARE.
79
+ ***************************************************************************** */var r5=function(e,t){return r5=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},r5(e,t)};function Qc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}r5(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var wo=function(){return wo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wo.apply(this,arguments)};function Eo(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function pt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function n5(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}var bae=0,gB=function(){this.id=""+bae++},wae=sn.set,Eae=sn.getterFor("Array Iterator"),Xp=L8(Array,"Array",function(e,t){wae(this,{type:"Array Iterator",target:us(e),index:0,kind:t})},function(){var e=Eae(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");Jc.Arguments=Jc.Array,qp("keys"),qp("values"),qp("entries");var ef=function(e,t,r){for(var n in t)kn(e,n,t[n],r);return e},Sae=ge.Array,xae=Math.max,o5=function(e,t,r){for(var n=el(e),o=Wc(t,n),i=Wc(r===void 0?n:r,n),a=Sae(xae(i-o,0)),s=0;o<i;o++,s++)Kp(a,s,e[o]);return a.length=s,a},vB=$p.f,mB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Cae={f:function(e){return mB&&Yo(e)=="Window"?function(t){try{return vB(t)}catch{return o5(mB)}}(e):vB(us(e))}},yB=xt(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Z1=Object.isExtensible,rl=xt(function(){Z1(1)})||yB?function(e){return!!Ut(e)&&(!yB||Yo(e)!="ArrayBuffer")&&(!Z1||Z1(e))}:Z1,Dae=!xt(function(){return Object.isExtensible(Object.preventExtensions({}))}),Q1=Bp(function(e){var t=Go.f,r=!1,n=i8("meta"),o=0,i=function(s){t(s,n,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var s=$p.f,u=Be([].splice),l={};l[n]=1,s(l).length&&($p.f=function(c){for(var f=s(c),d=0,p=f.length;d<p;d++)if(f[d]===n){u(f,d,1);break}return f},Qt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Cae.f}))},fastKey:function(s,u){if(!Ut(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!mr(s,n)){if(!rl(s))return"F";if(!u)return"E";i(s)}return s[n].objectID},getWeakData:function(s,u){if(!mr(s,n)){if(!rl(s))return!0;if(!u)return!1;i(s)}return s[n].weakData},onFreeze:function(s){return Dae&&r&&rl(s)&&!mr(s,n)&&i(s),s}};I1[n]=!0}),_ae=ge.TypeError,em=function(e,t){this.stopped=e,this.result=t},bB=em.prototype,Jp=function(e,t,r){var n,o,i,a,s,u,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),h=Qu(t,c),g=function(y){return n&&T8(n,"normal",y),new em(!0,y)},m=function(y){return f?(yr(y),p?h(y[0],y[1],g):h(y[0],y[1])):p?h(y,g):h(y)};if(d)n=e;else{if(!(o=P8(e)))throw _ae(T1(e)+" is not iterable");if(KP(o)){for(i=0,a=el(e);a>i;i++)if((s=m(e[i]))&&Xu(bB,s))return s;return new em(!1)}n=GP(e,o)}for(u=n.next;!(l=ht(u,n)).done;){try{s=m(l.value)}catch(y){T8(n,"throw",y)}if(typeof s=="object"&&s&&Xu(bB,s))return s}return new em(!1)},Oae=ge.TypeError,tm=function(e,t){if(Xu(t,e))return e;throw Oae("Incorrect invocation")},wB=function(e,t,r){var n,o;return Zc&&Tt(n=t.constructor)&&n!==r&&Ut(o=n.prototype)&&o!==r.prototype&&Zc(e,o),e},EB=function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",a=ge[e],s=a&&a.prototype,u=a,l={},c=function(m){var y=Be(s[m]);kn(s,m,m=="add"?function(v){return y(this,v===0?0:v),this}:m=="delete"?function(v){return!(o&&!Ut(v))&&y(this,v===0?0:v)}:m=="get"?function(v){return o&&!Ut(v)?void 0:y(this,v===0?0:v)}:m=="has"?function(v){return!(o&&!Ut(v))&&y(this,v===0?0:v)}:function(v,E){return y(this,v===0?0:v,E),this})};if(Up(e,!Tt(a)||!(o||s.forEach&&!xt(function(){new a().entries().next()}))))u=r.getConstructor(t,e,n,i),Q1.enable();else if(Up(e,!0)){var f=new u,d=f[i](o?{}:-0,1)!=f,p=xt(function(){f.has(1)}),h=B8(function(m){new a(m)}),g=!o&&xt(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});h||((u=t(function(m,y){tm(m,s);var v=wB(new a,m,u);return y!=null&&Jp(y,v[i],{that:v,AS_ENTRIES:n}),v})).prototype=s,s.constructor=u),(p||g)&&(c("delete"),c("has"),n&&c("get")),(g||d)&&c(i),o&&s.clear&&delete s.clear}return l[e]=u,Qt({global:!0,forced:u!=a},l),G1(u,e),o||r.setStrong(u,e,n),u},rm=Q1.getWeakData,Aae=sn.set,kae=sn.getterFor,Nae=Gc.find,Tae=Gc.findIndex,Pae=Be([].splice),Bae=0,nm=function(e){return e.frozen||(e.frozen=new SB)},SB=function(){this.entries=[]},i5=function(e,t){return Nae(e.entries,function(r){return r[0]===t})};SB.prototype={get:function(e){var t=i5(this,e);if(t)return t[1]},has:function(e){return!!i5(this,e)},set:function(e,t){var r=i5(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Tae(this.entries,function(r){return r[0]===e});return~t&&Pae(this.entries,t,1),!!~t}};var Zp,xB={getConstructor:function(e,t,r,n){var o=e(function(u,l){tm(u,i),Aae(u,{type:t,id:Bae++,frozen:void 0}),l!=null&&Jp(l,u[n],{that:u,AS_ENTRIES:r})}),i=o.prototype,a=kae(t),s=function(u,l,c){var f=a(u),d=rm(yr(l),!0);return d===!0?nm(f).set(l,c):d[f.id]=c,u};return ef(i,{delete:function(u){var l=a(this);if(!Ut(u))return!1;var c=rm(u);return c===!0?nm(l).delete(u):c&&mr(c,l.id)&&delete c[l.id]},has:function(u){var l=a(this);if(!Ut(u))return!1;var c=rm(u);return c===!0?nm(l).has(u):c&&mr(c,l.id)}}),ef(i,r?{get:function(u){var l=a(this);if(Ut(u)){var c=rm(u);return c===!0?nm(l).get(u):c?c[l.id]:void 0}},set:function(u,l){return s(this,u,l)}}:{add:function(u){return s(this,u,!0)}}),o}},om=sn.enforce,Fae=!ge.ActiveXObject&&"ActiveXObject"in ge,CB=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},jae=EB("WeakMap",CB,xB);if(yP&&Fae){Zp=xB.getConstructor(CB,"WeakMap",!0),Q1.enable();var Qp=jae.prototype,DB=Be(Qp.delete),im=Be(Qp.has),_B=Be(Qp.get),OB=Be(Qp.set);ef(Qp,{delete:function(e){if(Ut(e)&&!rl(e)){var t=om(this);return t.frozen||(t.frozen=new Zp),DB(this,e)||t.frozen.delete(e)}return DB(this,e)},has:function(e){if(Ut(e)&&!rl(e)){var t=om(this);return t.frozen||(t.frozen=new Zp),im(this,e)||t.frozen.has(e)}return im(this,e)},get:function(e){if(Ut(e)&&!rl(e)){var t=om(this);return t.frozen||(t.frozen=new Zp),im(this,e)?_B(this,e):t.frozen.get(e)}return _B(this,e)},set:function(e,t){if(Ut(e)&&!rl(e)){var r=om(this);r.frozen||(r.frozen=new Zp),im(this,e)?OB(this,e,t):r.frozen.set(e,t)}else OB(this,e,t);return this}})}var a5=Zt("iterator"),AB=Zt("toStringTag"),s5=Xp.values,kB=function(e,t){if(e){if(e[a5]!==s5)try{Wo(e,a5,s5)}catch{e[a5]=s5}if(e[AB]||Wo(e,AB,t),M1[t]){for(var r in Xp)if(e[r]!==Xp[r])try{Wo(e,r,Xp[r])}catch{e[r]=Xp[r]}}}};for(var u5 in M1)kB(ge[u5]&&ge[u5].prototype,u5);kB(xP,"DOMTokenList");var l5=new WeakMap,c5=new WeakMap,f5=new WeakMap,am=new WeakMap,d5=new WeakMap,sm=new WeakMap,p5=new WeakMap,h5=new WeakMap,um=new WeakMap,NB=new WeakMap,TB=new WeakMap,PB=new WeakMap,BB=new WeakMap,eh=new WeakMap,tf=new WeakMap,g5=new WeakMap,lm=new WeakMap,v5=new WeakMap,cm=new WeakMap,fm=new WeakMap,FB=new WeakMap,nl=new WeakMap,m5=new WeakMap,jB=new WeakMap,y5=new WeakMap,Iae=Gc.find,IB=!0;"find"in[]&&Array(1).find(function(){IB=!1}),Qt({target:"Array",proto:!0,forced:IB},{find:function(e){return Iae(this,e,arguments.length>1?arguments[1]:void 0)}}),qp("find"),Qt({global:!0},{globalThis:ge});const Lae=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];g1&&($.fn.css=g1),vo&&($.fn.append=vo),kc&&($.fn.addClass=kc),Nc&&($.fn.removeClass=Nc),Tc&&($.fn.hasClass=Tc),wi&&($.fn.on=wi),Za&&($.fn.focus=Za),go&&($.fn.attr=go),f1&&($.fn.removeAttr=f1),Bc&&($.fn.hide=Bc),h1&&($.fn.show=h1),$N&&($.fn.offset=$N),d1&&($.fn.width=d1),p1&&($.fn.height=p1),Fc&&($.fn.parent=Fc),y1&&($.fn.parents=y1),UN&&($.fn.is=UN),Pc&&($.fn.dataset=Pc),bi&&($.fn.val=bi),m1&&($.fn.text=m1),Ja&&($.fn.html=Ja),Ic&&($.fn.children=Ic),Lc&&($.fn.remove=Lc),jc&&($.fn.find=jc),v1&&($.fn.each=v1),Mc&&($.fn.empty=Mc);var Di,un,b5=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Xo=function(e){return ol(e)&&e.nodeType===1},ol=function(e){var t=b5(e);return!!t&&e instanceof t.Node},LB=function(e){var t=e&&e.anchorNode&&b5(e.anchorNode);return!!t&&e instanceof t.Selection},MB=function(e){return ol(e)&&e.nodeType===3},w5=function(e){var t,r,n;return(t=window.document.getElementById(e))!==null&&t!==void 0?t:((n=(r=window.document.activeElement)===null||r===void 0?void 0:r.shadowRoot)===null||n===void 0?void 0:n.getElementById(e))||null},zB=function(e,t,r){for(var n,o=e.childNodes,i=o[t],a=t,s=!1,u=!1;(ol(n=i)&&n.nodeType===8||Xo(i)&&i.childNodes.length===0||Xo(i)&&i.getAttribute("contenteditable")==="false")&&(!s||!u);)a>=o.length?(s=!0,a=t-1,r="backward"):a<0?(u=!0,a=t+1,r="forward"):(i=o[a],t=a,a+=r==="forward"?1:-1);return[i,t]},Mae=function(e,t,r){return pt(zB(e,t,r),1)[0]},zae=function e(t){var r,n,o="";if(MB(t)&&t.nodeValue)return t.nodeValue;if(Xo(t)){try{for(var i=Eo(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(u){r={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}var s=getComputedStyle(t).getPropertyValue("display");s!=="block"&&s!=="list"&&s!=="table-row"&&t.tagName!=="BR"||(o+=`
80
+ `)}return o};function VB(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var r=e.childNodes,n=r.length;n--;){var o=r[n],i=o.nodeType;i==3?t(o,e):i!=1&&i!=9&&i!=11||VB(o,t)}}function RB(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==Di.ELEMENT_NODE?"":t.tagName.toLowerCase()}(un=Di||(Di={}))[un.ELEMENT_NODE=1]="ELEMENT_NODE",un[un.TEXT_NODE=3]="TEXT_NODE",un[un.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",un[un.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",un[un.COMMENT_NODE=8]="COMMENT_NODE",un[un.DOCUMENT_NODE=9]="DOCUMENT_NODE",un[un.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",un[un.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var E5=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),th=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),rh=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Vae=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Rae=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),S5=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),nh=!Rae&&!Vae&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",z={getWindow:function(e){var t=FB.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var r=fm.get(t);return r||(r=new gB,fm.set(t,r)),r},setNewKey:function(e){var t=new gB;fm.set(e,t)},findPath:function(e,t){for(var r=[],n=t;;){var o=tf.get(n);if(o==null){if(D.isEditor(n))return r;break}var i=eh.get(n);if(i==null)break;r.unshift(i),n=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=z.toDOMNode(e,e),r=t.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&r.getSelection!=null?r:t.ownerDocument},getParentNode:function(e,t){return tf.get(t)||null},getParentsNodes:function(e,t){for(var r=[],n=t;n!==e&&n!=null;){var o=z.getParentNode(e,n);if(o==null)break;r.push(o),n=o}return r},getTopNode:function(e,t){var r=[z.findPath(e,t)[0]];return me.get(e,r)},toDOMNode:function(e,t){var r;if(D.isEditor(t))r=g5.get(e);else{var n=z.findKey(e,t);r=v5.get(n)}if(!r)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return r},hasDOMNode:function(e,t,r){r===void 0&&(r={});var n,o=r.editable,i=o!==void 0&&o,a=z.toDOMNode(e,e);try{n=Xo(t)?t:t.parentElement}catch(s){if(!s.message.includes('Permission denied to access property "nodeType"'))throw s}return!!n&&n.closest("[data-slate-editor]")===a&&(!i||n.isContentEditable||!!n.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var r=t.anchor,n=t.focus,o=oe.isBackward(t),i=z.toDOMPoint(e,r),a=oe.isCollapsed(t)?i:z.toDOMPoint(e,n),s=z.getWindow(e).document.createRange(),u=pt(o?a:i,2),l=u[0],c=u[1],f=pt(o?i:a,2),d=f[0],p=f[1],h=!!(Xo(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(Xo(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,h?1:c),s.setEnd(d,g?1:p),s},toDOMPoint:function(e,t){var r,n,o,i=pt(D.node(e,t.path),1)[0],a=z.toDOMNode(e,i);D.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),u=0;try{for(var l=Eo(s),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(d!=null&&d.textContent!=null){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),g=u+(h==null?p:parseInt(h,10));if(t.offset<=g){o=[d,Math.min(p,Math.max(0,t.offset-u))];break}u=g}}}catch(m){r={error:m}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var r=Xo(t)?t:t.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?lm.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: "+r);return n},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var r=t.clientX,n=t.clientY,o=t.target;if(r==null||n==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=z.toSlateNode(e,t.target),s=z.findPath(e,a);if(D.isVoid(e,a)){var u=o.getBoundingClientRect(),l=e.isInline(a)?r-u.left<u.left+u.width-r:n-u.top<u.top+u.height-n,c=D.point(e,s,{edge:l?"start":"end"}),f=l?D.before(e,c):D.after(e,c);if(f)return D.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(r,n);else{var p=d.caretPositionFromPoint(r,n);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return z.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,r){var n,o,i,a,s,u=r.exactMatch,l=r.suppressThrow;if((LB(t)?t.anchorNode:t.startContainer)&&(LB(t)?(n=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=S5&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(n=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,s=t.collapsed)),n==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=z.toSlatePoint(e,[n,o],{exactMatch:u,suppressThrow:l});if(!c)return null;var f=s?c:z.toSlatePoint(e,[i,a],{exactMatch:u,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return oe.isExpanded(d)&&oe.isForward(d)&&Xo(i)&&D.void(e,{at:d.focus,mode:"highest"})&&(d=D.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,r){var n,o=r.exactMatch,i=r.suppressThrow,a=pt(o?t:function(v){var E,w=pt(v,2),S=w[0],C=w[1];if(Xo(S)&&S.childNodes.length){var x=C===S.childNodes.length,_=x?C-1:C;for(S=(E=pt(zB(S,_,x?"backward":"forward"),2))[0],x=(_=E[1])<C;Xo(S)&&S.childNodes.length;){var P=x?S.childNodes.length-1:0;S=Mae(S,P,x?"backward":"forward")}C=x&&S.textContent!=null?S.textContent.length:0}return[S,C]}(t),2),s=a[0],u=a[1],l=s.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var g=z.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(s,u);var m=g.cloneContents();n5(n5([],pt(LN(m.querySelectorAll("[data-slate-zero-width]")))),pt(LN(m.querySelectorAll("[contenteditable=false]")))).forEach(function(v){v.parentNode.removeChild(v)}),f=m.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach(function(v){f-=v.textContent.length})):f=1);h&&f===h.textContent.length&&(l.hasAttribute("data-slate-zero-width")||th&&(!((n=h.textContent)===null||n===void 0)&&n.endsWith(`
81
+ `)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=z.toSlateNode(e,c);return{path:z.findPath(e,y),offset:f}},hasRange:function(e,t){var r=t.anchor,n=t.focus;return D.hasPath(e,r.path)&&D.hasPath(e,n.path)},getNodeType:function(e){return Te.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return me.string(t)}).join("")},getSelectedElems:function(e){var t,r,n=[],o=D.nodes(e,{universal:!0});try{for(var i=Eo(o),a=i.next();!a.done;a=i.next()){var s=pt(a.value,1)[0];Te.isElement(s)&&n.push(s)}}catch(u){t={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},getSelectedNodeByType:function(e,t){var r=this,n=pt(D.nodes(e,{match:function(i){return r.checkNodeType(i,t)},universal:!0}),1),o=n[0];return o==null?null:o[0]},getSelectedTextNode:function(e){var t=pt(D.nodes(e,{match:function(n){return Ce.isText(n)},universal:!0}),1),r=t[0];return r==null?null:r[0]},isNodeSelected:function(e,t){var r=pt(D.nodes(e,{match:function(o){return o===t},universal:!0}),1),n=r[0];return n!=null&&pt(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var r=e.selection;return!!r&&(D.isEnd(e,r.anchor,t)||D.isEnd(e,r.focus,t))},getTextarea:function(e){var t=l5.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return am.get(e)||null},getHoverbar:function(e){return sm.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,r){e.normalizeNode([t,[r]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),r=t.maxLength,n=t.onMaxLength;if(typeof r!="number"||r<=0)return 1/0;var o=r-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&n&&n(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,r,n,o,i=z.getTextarea(e).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var s=Eo(Array.from(a)),u=s.next();!u.done;u=s.next()){var l=u.value;if(l.nodeType!==3)break;l.remove()}}catch(g){t={error:g}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}var c=D.nodes(e,{match:function(g){return!(!Te.isElement(g)||e.isInline(g))},universal:!0});try{for(var f=Eo(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var h=p[0];VB(z.toDOMNode(e,h),function(g,m){var y=$(m);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||m.removeChild(g)})}}}catch(g){n={error:g}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}},isLastNode:function(e,t){var r=e.children||[];return r[r.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,r,n=D.nodes(e,{match:function(s){return e.isVoid(s)}}),o=0;try{for(var i=Eo(n),a=i.next();!a.done;a=i.next())a.value,o++}catch(s){t={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||oe.isExpanded(t))return!1;var r=z.getSelectedNodeByType(e,"paragraph");if(r===null)return!1;var n=r.children;return n.length===1&&(n[0].text===""||void 0)},isEmptyPath:function(e,t){var r=D.node(e,t);if(r==null)return!1;var n=pt(r,1)[0].children;return n.length===1&&n[0].text===""}},$ae=1,$B={},oh={},Hae=Gc.filter,Uae=Y1("filter");Qt({target:"Array",proto:!0,forced:!Uae},{filter:function(e){return Hae(this,e,arguments.length>1?arguments[1]:void 0)}});var x5=`
82
+ \v\f\r                 \u2028\u2029\uFEFF`,HB=Be("".replace),dm="["+x5+"]",qae=RegExp("^"+dm+dm+"*"),Kae=RegExp(dm+dm+"*$"),C5=function(e){return function(t){var r=jt(bo(t));return 1&e&&(r=HB(r,qae,"")),2&e&&(r=HB(r,Kae,"")),r}},Gae={start:C5(1),end:C5(2),trim:C5(3)},Wae=qc.PROPER,Yae=Gae.trim;Qt({target:"String",proto:!0,forced:function(e){return xt(function(){return!!x5[e]()||"​…᠎"[e]()!=="​…᠎"||Wae&&x5[e].name!==e})}("trim")},{trim:function(){return Yae(this)}});var D5=[],UB={};function Xae(e,t,r){var n=r.isInline(e)?"span":"div";return"<"+n+">"+t+"</"+n+">"}var ih,rf,qB,_5,pm=ge.Promise,KB=Zt("species"),O5=function(e){var t=Wu(e),r=Go.f;Ur&&t&&!t[KB]&&r(t,KB,{configurable:!0,get:function(){return this}})},Jae=ge.TypeError,Zae=Zt("species"),GB=function(e,t){var r,n=yr(e).constructor;return n===void 0||(r=yr(n)[Zae])==null?t:function(o){if(R1(o))return o;throw Jae(T1(o)+" is not a constructor")}(r)},WB=Be([].slice),YB=/(?:ipad|iphone|ipod).*applewebkit/i.test(Hc),ls=Yo(ge.process)=="process",A5=ge.setImmediate,k5=ge.clearImmediate,Qae=ge.process,N5=ge.Dispatch,ese=ge.Function,XB=ge.MessageChannel,tse=ge.String,T5=0,ah={};try{ih=ge.location}catch{}var P5=function(e){if(mr(ah,e)){var t=ah[e];delete ah[e],t()}},B5=function(e){return function(){P5(e)}},JB=function(e){P5(e.data)},ZB=function(e){ge.postMessage(tse(e),ih.protocol+"//"+ih.host)};A5&&k5||(A5=function(e){var t=WB(arguments,1);return ah[++T5]=function(){W8(Tt(e)?e:ese(e),void 0,t)},rf(T5),T5},k5=function(e){delete ah[e]},ls?rf=function(e){Qae.nextTick(B5(e))}:N5&&N5.now?rf=function(e){N5.now(B5(e))}:XB&&!YB?(_5=(qB=new XB).port2,qB.port1.onmessage=JB,rf=Qu(_5.postMessage,_5)):ge.addEventListener&&Tt(ge.postMessage)&&!ge.importScripts&&ih&&ih.protocol!=="file:"&&!xt(ZB)?(rf=ZB,ge.addEventListener("message",JB,!1)):rf="onreadystatechange"in Ip("script")?function(e){C8.appendChild(Ip("script")).onreadystatechange=function(){C8.removeChild(this),P5(e)}}:function(e){setTimeout(B5(e),0)});var sh,il,uh,nf,F5,j5,I5,QB,eF={set:A5,clear:k5},rse=/ipad|iphone|ipod/i.test(Hc)&&ge.Pebble!==void 0,nse=/web0s(?!.*chrome)/i.test(Hc),ose=Rp.f,L5=eF.set,tF=ge.MutationObserver||ge.WebKitMutationObserver,rF=ge.document,nF=ge.process,hm=ge.Promise,oF=ose(ge,"queueMicrotask"),iF=oF&&oF.value;iF||(sh=function(){var e,t;for(ls&&(e=nF.domain)&&e.exit();il;){t=il.fn,il=il.next;try{t()}catch(r){throw il?nf():uh=void 0,r}}uh=void 0,e&&e.enter()},YB||ls||nse||!tF||!rF?!rse&&hm&&hm.resolve?((I5=hm.resolve(void 0)).constructor=hm,QB=Qu(I5.then,I5),nf=function(){QB(sh)}):ls?nf=function(){nF.nextTick(sh)}:(L5=Qu(L5,ge),nf=function(){L5(sh)}):(F5=!0,j5=rF.createTextNode(""),new tF(sh).observe(j5,{characterData:!0}),nf=function(){j5.data=F5=!F5}));var M5,aF,sF,uF,lF=iF||function(e){var t={fn:e,next:void 0};uh&&(uh.next=t),il||(il=t,nf()),uh=t},ise=function(e){var t,r;this.promise=new e(function(n,o){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=o}),this.resolve=as(t),this.reject=as(r)},z5={f:function(e){return new ise(e)}},V5=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},ase=typeof window=="object",cF=eF.set,sse=Zt("species"),_i="Promise",fF=sn.getterFor(_i),use=sn.set,lse=sn.getterFor(_i),al=pm&&pm.prototype,Oi=pm,lh=al,dF=ge.TypeError,R5=ge.document,$5=ge.process,of=z5.f,cse=of,fse=!!(R5&&R5.createEvent&&ge.dispatchEvent),pF=Tt(ge.PromiseRejectionEvent),hF=!1,ch=Up(_i,function(){var e=j1(Oi),t=e!==String(Oi);if(!t&&Fp===66)return!0;if(Fp>=51&&/native code/.test(e))return!1;var r=new Oi(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[sse]=n,!(hF=r.then(function(){})instanceof n)||!t&&ase&&!pF}),dse=ch||!B8(function(e){Oi.all(e).catch(function(){})}),gF=function(e){var t;return!(!Ut(e)||!Tt(t=e.then))&&t},H5=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;lF(function(){for(var n=e.value,o=e.state==1,i=0;r.length>i;){var a,s,u,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(e.rejection===2&&hse(e),e.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),u=!0)),a===l.promise?d(dF("Promise-chain cycle")):(s=gF(a))?ht(s,a,f,d):f(a)):d(n)}catch(h){p&&!u&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&pse(e)})}},vF=function(e,t,r){var n,o;fse?((n=R5.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),ge.dispatchEvent(n)):n={promise:t,reason:r},!pF&&(o=ge["on"+e])?o(n):e==="unhandledrejection"&&function(i,a){var s=ge.console;s&&s.error&&(arguments.length==1?s.error(i):s.error(i,a))}("Unhandled promise rejection",r)},pse=function(e){ht(cF,ge,function(){var t,r=e.facade,n=e.value;if(mF(e)&&(t=V5(function(){ls?$5.emit("unhandledRejection",n,r):vF("unhandledrejection",r,n)}),e.rejection=ls||mF(e)?2:1,t.error))throw t.value})},mF=function(e){return e.rejection!==1&&!e.parent},hse=function(e){ht(cF,ge,function(){var t=e.facade;ls?$5.emit("rejectionHandled",t):vF("rejectionhandled",t,e.value)})},af=function(e,t,r){return function(n){e(t,n,r)}},sf=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,H5(e,!0))},U5=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw dF("Promise can't be resolved itself");var n=gF(t);n?lF(function(){var o={done:!1};try{ht(n,t,af(U5,o,e),af(sf,o,e))}catch(i){sf(o,i,e)}}):(e.value=t,e.state=1,H5(e,!1))}catch(o){sf({done:!1},o,e)}}};if(ch&&(lh=(Oi=function(e){tm(this,lh),as(e),ht(M5,this);var t=fF(this);try{e(af(U5,t),af(sf,t))}catch(r){sf(t,r)}}).prototype,(M5=function(e){use(this,{type:_i,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ef(lh,{then:function(e,t){var r=lse(this),n=r.reactions,o=of(GB(this,Oi));return o.ok=!Tt(e)||e,o.fail=Tt(t)&&t,o.domain=ls?$5.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&H5(r,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),aF=function(){var e=new M5,t=fF(e);this.promise=e,this.resolve=af(U5,t),this.reject=af(sf,t)},z5.f=of=function(e){return e===Oi||e===sF?new aF(e):cse(e)},Tt(pm)&&al!==Object.prototype)){uF=al.then,hF||(kn(al,"then",function(e,t){var r=this;return new Oi(function(n,o){ht(uF,r,n,o)}).then(e,t)},{unsafe:!0}),kn(al,"catch",lh.catch,{unsafe:!0}));try{delete al.constructor}catch{}Zc&&Zc(al,lh)}Qt({global:!0,wrap:!0,forced:ch},{Promise:Oi}),G1(Oi,_i,!1),O5(_i),sF=Wu(_i),Qt({target:_i,stat:!0,forced:ch},{reject:function(e){var t=of(this);return ht(t.reject,void 0,e),t.promise}}),Qt({target:_i,stat:!0,forced:ch},{resolve:function(e){return function(t,r){if(yr(t),Ut(r)&&r.constructor===t)return r;var n=z5.f(t);return(0,n.resolve)(r),n.promise}(this,e)}}),Qt({target:_i,stat:!0,forced:dse},{all:function(e){var t=this,r=of(t),n=r.resolve,o=r.reject,i=V5(function(){var a=as(t.resolve),s=[],u=0,l=1;Jp(e,function(c){var f=u++,d=!1;l++,ht(a,t,c).then(function(p){d||(d=!0,s[f]=p,--l||n(s))},o)}),--l||n(s)});return i.error&&o(i.value),r.promise},race:function(e){var t=this,r=of(t),n=r.reject,o=V5(function(){var i=as(t.resolve);Jp(e,function(a){ht(i,t,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var uf=X1.UNSUPPORTED_Y,gse=Math.min,yF=[].push,vse=Be(/./.exec),lf=Be(yF),fh=Be("".slice);function So(e){Promise.resolve().then(e)}function bF(e,t){return Te.isElement(e)?function(r,n){var o=r.type,i=o===void 0?"":o,a=r.children,s=a===void 0?[]:a,u=D.isVoid(n,r),l="";u||(l=s.map(function(y){return bF(y,n)}).join(""));var c=function(y){return UB[y]||Xae}(i),f=c(r,l,n),d="";if(d=typeof f=="string"?f:f.html||"",u||D5.forEach(function(y){return d=y(r,d)}),typeof f=="string")return d;var p=f.prefix,h=p===void 0?"":p,g=f.suffix,m=g===void 0?"":g;return h&&(d=h+d),m&&(d+=m),d}(e,t):function(r,n){var o=r.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(r));var i=o;i=function(u){return u.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(i);var a=z.getParentsNodes(n,r).some(function(u){return z.getNodeType(u)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/&nbsp;/g," ")),i===""){var s=z.getParentNode(null,r);if(!s||s.children.length!==0)return i;i="<br>"}return D5.forEach(function(u){return i=u(r,i)}),i}(e,t)}function wF(e){return"w-e-element-"+e}X8("split",function(e,t,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=jt(bo(this)),s=i===void 0?4294967295:i>>>0;if(s===0)return[];if(o===void 0)return[a];if(!A8(o))return ht(t,a,o,s);for(var u,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,h=new RegExp(o.source,d+"g");(u=ht(Wp,h,a))&&!((l=h.lastIndex)>p&&(lf(f,fh(a,p,u.index)),u.length>1&&u.index<a.length&&W8(yF,f,o5(u,1)),c=u[0].length,p=l,f.length>=s));)h.lastIndex===u.index&&h.lastIndex++;return p===a.length?!c&&vse(h,"")||lf(f,""):lf(f,fh(a,p)),f.length>s?o5(f,0,s):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:ht(t,this,o,i)}:t,[function(o,i){var a=bo(this),s=o==null?void 0:Ju(o,e);return s?ht(s,o,a,i):ht(n,jt(a),o,i)},function(o,i){var a=yr(this),s=jt(o),u=r(n,a,s,i,n!==t);if(u.done)return u.value;var l=GB(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(uf?"g":"y"),d=new l(uf?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(s.length===0)return Yp(d,s)===null?[s]:[];for(var h=0,g=0,m=[];g<s.length;){d.lastIndex=uf?0:g;var y,v=Yp(d,uf?fh(s,g):s);if(v===null||(y=gse(Kc(d.lastIndex+(uf?g:0)),s.length))===h)g=J8(s,g,c);else{if(lf(m,fh(s,h,g)),m.length===p)return m;for(var E=1;E<=v.length-1;E++)if(lf(m,v[E]),m.length===p)return m;g=h=y}}return lf(m,fh(s,h)),m}]},!!xt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),uf);var EF=function(e,t){var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},SF=function(e,t,r){var n=z.toDOMRange(e,t).getBoundingClientRect(),o=z.toDOMRange(e,r).getBoundingClientRect();return EF(n,o)&&EF(o,n)},xF=["span","b","strong","i","em","s","strike","u","font","sub","sup"],CF=[],q5=[],gm={},mse=Go.f,yse=$p.f,bse=sn.enforce,wse=Zt("match"),da=ge.RegExp,cf=da.prototype,Ese=ge.SyntaxError,Sse=Be(S8),xse=Be(cf.exec),vm=Be("".charAt),DF=Be("".replace),_F=Be("".indexOf),Cse=Be("".slice),Dse=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,sl=/a/g,K5=/a/g,_se=new da(sl)!==sl,OF=X1.MISSED_STICKY,Ose=X1.UNSUPPORTED_Y,Ase=Ur&&(!_se||OF||R8||$8||xt(function(){return K5[wse]=!1,da(sl)!=sl||da(K5)==K5||da(sl,"i")!="/a/i"}));if(Up("RegExp",Ase)){for(var cs=function(e,t){var r,n,o,i,a,s,u=Xu(cf,this),l=A8(e),c=t===void 0,f=[],d=e;if(!u&&l&&c&&e.constructor===cs)return e;if((l||Xu(cf,e))&&(e=e.source,c&&(t="flags"in d?d.flags:Sse(d))),e=e===void 0?"":jt(e),t=t===void 0?"":jt(t),d=e,R8&&"dotAll"in sl&&(n=!!t&&_F(t,"s")>-1)&&(t=DF(t,/s/g,"")),r=t,OF&&"sticky"in sl&&(o=!!t&&_F(t,"y")>-1)&&Ose&&(t=DF(t,/y/g,"")),$8&&(i=function(p){for(var h,g=p.length,m=0,y="",v=[],E={},w=!1,S=!1,C=0,x="";m<=g;m++){if((h=vm(p,m))==="\\")h+=vm(p,++m);else if(h==="]")w=!1;else if(!w)switch(!0){case h==="[":w=!0;break;case h==="(":xse(Dse,Cse(p,m+1))&&(m+=2,S=!0),y+=h,C++;continue;case(h===">"&&S):if(x===""||mr(E,x))throw new Ese("Invalid capture group name");E[x]=!0,v[v.length]=[x,C],S=!1,x="";continue}S?x+=h:y+=h}return[y,v]}(e),e=i[0],f=i[1]),a=wB(da(e,t),u?this:cf,cs),(n||o||f.length)&&(s=bse(a),n&&(s.dotAll=!0,s.raw=cs(function(p){for(var h,g=p.length,m=0,y="",v=!1;m<=g;m++)(h=vm(p,m))!=="\\"?v||h!=="."?(h==="["?v=!0:h==="]"&&(v=!1),y+=h):y+="[\\s\\S]":y+=h+vm(p,++m);return y}(e),r)),o&&(s.sticky=!0),f.length&&(s.groups=f)),e!==d)try{Wo(a,"source",d===""?"(?:)":d)}catch{}return a},kse=function(e){e in cs||mse(cs,e,{configurable:!0,get:function(){return da[e]},set:function(t){da[e]=t}})},AF=yse(da),kF=0;AF.length>kF;)kse(AF[kF++]);cf.constructor=cs,cs.prototype=cf,kn(ge,"RegExp",cs)}O5("RegExp");var Nse=new RegExp(" ","g");function NF(e){return e.replace(Nse," ")}function TF(e,t){var r=e.length;if(r){var n=e[r-1];if(Ce.isText(n)){var o=Object.keys(n);if(o.length===1&&o[0]==="text")return n.text=n.text+t,!0}}return!1}function Tse(e,t,r){return{type:"paragraph",children:[{text:$(e).text().replace(/\s+/gm," ")}]}}function G5(e,t){var r=function(i,a){var s=[];if(i.attr("data-w-e-is-void")!=null)return s;var u=i[0].childNodes;return u.length===1&&u[0].nodeName==="BR"?(s.push({text:""}),s):(u.forEach(function(l){if(l.nodeType!==Di.ELEMENT_NODE){if(l.nodeType===Di.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
83
+ `)>=0)return;c&&(c=NF(c),TF(s,c)||s.push({text:c}))}}else{if(l.nodeName==="BR")return void(TF(s,`
84
+ `)||s.push({text:`
85
+ `}));var f=Y5($(l),a);Array.isArray(f)?f.forEach(function(d){return s.push(d)}):s.push(f)}}),s)}(e,t),n=function(i){for(var a in gm)if(i[0].matches(a))return gm[a];return Tse}(e),o=n(e[0],r,t);return Array.isArray(o)||(o=[o]),o.forEach(function(i){D.isVoid(t,i)||(r.length===0&&(i.children=[{text:e.text().replace(/\s+/gm," ")}]),q5.forEach(function(a){i=a(e[0],i,t)}))}),o}function W5(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
86
+ `));var r=e[0].textContent||"";r=function(o){return o.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(r);var n={text:r=NF(r)};return q5.forEach(function(o){n=o(e[0],n,t)}),n}function Y5(e,t){CF.forEach(function(n){var o=n.selector,i=n.preParseHtml;e[0].matches(o)&&(e=$(i(e[0])))});var r=RB(e);return r==="span"?e.attr("data-w-e-type")?G5(e,t):W5(e,t):r==="code"?RB(e.parent())==="pre"?G5(e,t):W5(e,t):xF.includes(r)?W5(e,t):G5(e,t)}function PF(e,t,r){var n=$(r);return!!n.attr(t)||(n.attr(t,"true"),e.on("destroyed",function(){n.removeAttr(t)}),!1)}function BF(e,t){t===void 0&&(t="");var r=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var n=$("<div>"+t+"</div>");return Array.from(n.children()).forEach(function(o){var i=Y5($(o),e);Array.isArray(i)?i.forEach(function(a){return r.push(a)}):r.push(i)}),r}var Pse=Go.f,FF=Q1.fastKey,jF=sn.set,X5=sn.getterFor,Bse={getConstructor:function(e,t,r,n){var o=e(function(l,c){tm(l,i),jF(l,{type:t,index:q1(null),first:void 0,last:void 0,size:0}),Ur||(l.size=0),c!=null&&Jp(c,l[n],{that:l,AS_ENTRIES:r})}),i=o.prototype,a=X5(t),s=function(l,c,f){var d,p,h=a(l),g=u(l,c);return g?g.value=f:(h.last=g={index:p=FF(c,!0),key:c,value:f,previous:d=h.last,next:void 0,removed:!1},h.first||(h.first=g),d&&(d.next=g),Ur?h.size++:l.size++,p!=="F"&&(h.index[p]=g)),l},u=function(l,c){var f,d=a(l),p=FF(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return ef(i,{clear:function(){for(var l=a(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,Ur?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),d=u(c,l);if(d){var p=d.next,h=d.previous;delete f.index[d.index],d.removed=!0,h&&(h.next=p),p&&(p.previous=h),f.first==d&&(f.first=p),f.last==d&&(f.last=h),Ur?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=a(this),d=Qu(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(d(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!u(this,l)}}),ef(i,r?{get:function(l){var c=u(this,l);return c&&c.value},set:function(l,c){return s(this,l===0?0:l,c)}}:{add:function(l){return s(this,l=l===0?0:l,l)}}),Ur&&Pse(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=X5(t),i=X5(n);L8(e,t,function(a,s){jF(this,{type:n,target:a,state:o(a),kind:s,last:void 0})},function(){for(var a=i(this),s=a.kind,u=a.last;u&&u.removed;)u=u.previous;return a.target&&(a.last=u=u?u.next:a.state.first)?s=="keys"?{value:u.key,done:!1}:s=="values"?{value:u.value,done:!1}:{value:[u.key,u.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),O5(t)}};EB("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Bse);var IF=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function LF(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):Q.insertNodes(e,t,{mode:"highest"})}var Fse=function(e){var t=e,r=t.insertText;return t.insertFragment,t.setFragmentData=function(n){var o=t.selection;if(o){var i=pt(oe.edges(o),2),a=i[0],s=i[1],u=D.void(t,{at:a.path}),l=D.void(t,{at:s.path});if(!oe.isCollapsed(o)||u){var c=z.toDOMRange(t,o),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(S){S.textContent&&S.textContent.trim()!==""&&(d=S)}),l){var p=pt(l,1)[0],h=c.cloneRange(),g=z.toDOMNode(t,p);h.setEndAfter(g),f=h.cloneContents()}if(u&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(S){var C=S.getAttribute("data-slate-zero-width")==="n";S.textContent=C?`
87
+ `:""}),MB(d)){var m=d.ownerDocument.createElement("span");m.style.whiteSpace="pre",m.appendChild(d),f.appendChild(m),d=m}var y=t.getFragment(),v=JSON.stringify(y),E=window.btoa(encodeURIComponent(v));d.setAttribute("data-slate-fragment",E),n.setData("application/x-slate-fragment",E);var w=f.ownerDocument.createElement("div");return w.appendChild(f),w.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(w),n.setData("text/html",w.innerHTML),n.setData("text/plain",zae(w)),f.ownerDocument.body.removeChild(w),n}}},t.insertData=function(n){var o,i,a=n.getData("application/x-slate-fragment");if(a){var s=decodeURIComponent(window.atob(a)),u=JSON.parse(s);t.insertFragment(u)}else{var l=n.getData("text/plain"),c=n.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),d=!1;try{for(var p=Eo(f),h=p.next();!h.done;h=p.next()){var g=h.value;d&&Q.splitNodes(t,{always:!0}),r(g),d=!0}}catch(m){o={error:m}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}}}},t},dh=function(e){return e!=null},jse={object:!0,function:!0,undefined:!0},Ise=/^\s*class[\s{/}]/,Lse=Function.prototype.toString,MF=function(e){return!!function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch{return!1}return!function(r){if(!function(n){return!!dh(n)&&hasOwnProperty.call(jse,typeof n)}(r))return!1;try{return!!r.constructor&&r.constructor.prototype===r}catch{return!1}}(t)}(e)&&!Ise.test(Lse.call(e))},J5=function(e){return e!=null},Mse=Object.keys,zse=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(e){return Mse(J5(e)?Object(e):e)},Vse=function(e){if(!J5(e))throw new TypeError("Cannot use null or undefined");return e},Rse=Math.max,zF=function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var r,n,o,i=Rse(arguments.length,2);for(e=Object(Vse(e)),o=function(a){try{e[a]=t[a]}catch(s){r||(r=s)}},n=1;n<i;++n)zse(t=arguments[n]).forEach(o);if(r!==void 0)throw r;return e},$se=Array.prototype.forEach,Hse=Object.create,Use=function(e,t){var r;for(r in e)t[r]=e[r]},VF=function(e){var t=Hse(null);return $se.call(arguments,function(r){J5(r)&&Use(Object(r),t)}),t},Z5="razdwatrzy",qse=String.prototype.indexOf,ph=typeof Z5.contains=="function"&&Z5.contains("dwa")===!0&&Z5.contains("foo")===!1?String.prototype.contains:function(e){return qse.call(this,e,arguments[1])>-1},mm=Bp(function(e){var t=e.exports=function(r,n){var o,i,a,s,u;return arguments.length<2||typeof r!="string"?(s=n,n=r,r=null):s=arguments[2],dh(r)?(o=ph.call(r,"c"),i=ph.call(r,"e"),a=ph.call(r,"w")):(o=a=!0,i=!1),u={value:n,configurable:o,enumerable:i,writable:a},s?zF(VF(s),u):u};t.gs=function(r,n,o){var i,a,s,u;return typeof r!="string"?(s=o,o=n,n=r,r=null):s=arguments[3],dh(n)?MF(n)?dh(o)?MF(o)||(s=o,o=void 0):o=void 0:(s=n,n=o=void 0):n=void 0,dh(r)?(i=ph.call(r,"c"),a=ph.call(r,"e")):(i=!0,a=!1),u={get:n,set:o,configurable:i,enumerable:a},s?zF(VF(s),u):u}}),Q5=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},Kse=Bp(function(e,t){var r,n,o,i,a,s,u,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};r=function(m,y){var v;return Q5(y),h.call(this,"__ee__")?v=this.__ee__:(v=g.value=f(null),d(this,"__ee__",g),g.value=null),v[m]?typeof v[m]=="object"?v[m].push(y):v[m]=[v[m],y]:v[m]=y,this},n=function(m,y){var v,E;return Q5(y),E=this,r.call(this,m,v=function(){o.call(E,m,v),l.call(y,this,arguments)}),v.__eeOnceListener__=y,this},o=function(m,y){var v,E,w,S;if(Q5(y),!h.call(this,"__ee__"))return this;if(!(v=this.__ee__)[m])return this;if(typeof(E=v[m])=="object")for(S=0;w=E[S];++S)w!==y&&w.__eeOnceListener__!==y||(E.length===2?v[m]=E[S?0:1]:E.splice(S,1));else E!==y&&E.__eeOnceListener__!==y||delete v[m];return this},i=function(m){var y,v,E,w,S;if(h.call(this,"__ee__")&&(w=this.__ee__[m]))if(typeof w=="object"){for(v=arguments.length,S=new Array(v-1),y=1;y<v;++y)S[y-1]=arguments[y];for(w=w.slice(),y=0;E=w[y];++y)l.call(E,this,S)}else switch(arguments.length){case 1:c.call(w,this);break;case 2:c.call(w,this,arguments[1]);break;case 3:c.call(w,this,arguments[1],arguments[2]);break;default:for(v=arguments.length,S=new Array(v-1),y=1;y<v;++y)S[y-1]=arguments[y];l.call(w,this,S)}},a={on:r,once:n,off:o,emit:i},s={on:mm(r),once:mm(n),off:mm(o),emit:mm(i)},u=p({},s),e.exports=t=function(m){return m==null?f(u):p(Object(m),s)},t.methods=a});function ym(e){var t=jB.get(e);return t==null&&(t=Kse(),jB.set(e,t)),t}var bm=new WeakMap;function RF(e,t){var r=bm.get(e);r==null&&(r=new Set,bm.set(e,r)),r.add(t)}function Gse(e){return bm.get(e)||new Set}function Wse(e){bm.set(e,new Set)}function ew(e){var t=z.getTextarea(e).$textAreaContainer,r=t.width(),n=t.height(),o=t.offset();return{top:o.top,left:o.left,width:r,height:n}}function tw(e){var t={top:"0",left:"0"},r=e.selection;if(r==null)return t;var n=ew(e);if(n==null)return t;var o=n.top,i=n.left,a=n.width,s=n.height,u=z.toDOMRange(e,r).getClientRects()[0];if(u==null)return t;u.width;var l=u.height,c={},f=u.top-o,d=u.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>s/2){var h=s-f;c.bottom=h+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function rw(e,t,r){r===void 0&&(r="modal");var n={top:"0",left:"0"};if(e.selection==null)return n;var o=Te.isElement(t)&&e.isVoid(t),i=Te.isElement(t)&&e.isInline(t),a=cm.get(t);if(a==null)return n;var s=a.getBoundingClientRect(),u=s.top,l=s.left,c=s.height,f=s.width;if(o){var d=function(x){var _=[];_.push(x);for(var P=0;_.length>0;){var q=_.pop();if(q==null||++P>1e4)break;var H=q.nodeName;if(q.nodeType===1){var k=H.toLowerCase();if(Lae.includes(k)||k==="iframe"||k==="video")return q;var M=q.children||[],I=M.length;if(I)for(var T=I-1;T>=0;T--)_.push(M[T])}}return null}(a);if(d!=null){var p=d.getBoundingClientRect();u=p.top,c=p.height}}var h=ew(e);if(h==null)return n;var g,m=h.top,y=h.left,v=h.width,E=h.height,w={},S=u-m,C=l-y;if(r==="bar")return w.left=C+"px",S>40?w.bottom=E-S+5+"px":w.top=S+c+5+"px",w;if(r==="modal")return o?i?C>(v-f)/2?w.right=v-C+5+"px":w.left=C+f+5+"px":w.left="20px":w.left=C+"px",o?((g=S)<0&&(g=0),w.top=g+"px"):S>(E-c)/2?w.bottom=E-S+5+"px":((g=S+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+r+"' is invalid")}function nw(e,t){So(function(){var r=ew(e);if(r!=null){var n,o=r.top,i=r.left,a=r.width,s=r.height,u=t.offset(),l=u.top,c=u.left,f=t.width(),d=t.height(),p=l-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0&&(n=p+d-s)>0){var m=t.css("top"),y=parseInt(m.toString())-n;y<0&&(y=0),t.css("top",y+"px")}if(g.indexOf("bottom")>=0&&l<0){var v=t.css("bottom"),E=parseInt(v.toString())-Math.abs(l);t.css("bottom",E+"px")}if(g.indexOf("left")>=0&&(n=h+f-a)>0){var w=t.css("left"),S=parseInt(w.toString())-n;S<0&&(S=0),t.css("left",S+"px")}if(g.indexOf("right")>=0&&c<0){var C=t.css("right"),x=parseInt(C.toString())-Math.abs(c);t.css("right",x+"px")}}})}var Yse=Y1("slice"),Xse=Zt("species"),ow=ge.Array,Jse=Math.max;Qt({target:"Array",proto:!0,forced:!Yse},{slice:function(e,t){var r,n,o,i=us(this),a=el(i),s=Wc(e,a),u=Wc(t===void 0?a:t,a);if(V1(i)&&(r=i.constructor,(R1(r)&&(r===ow||V1(r.prototype))||Ut(r)&&(r=r[Xse])===null)&&(r=void 0),r===ow||r===void 0))return WB(i,s,u);for(n=new(r===void 0?ow:r)(Jse(u-s,0)),o=0;s<u;s++,o++)s in i&&Kp(n,o,i[s]);return n.length=o,n}});var Zse=Rp.f,$F=Be("".startsWith),Qse=Be("".slice),eue=Math.min,HF=N8("startsWith"),tue=!HF&&!!function(){var e=Zse(String.prototype,"startsWith");return e&&!e.writable}();Qt({target:"String",proto:!0,forced:!tue&&!HF},{startsWith:function(e){var t=jt(bo(this));k8(e);var r=Kc(eue(arguments.length>1?arguments[1]:void 0,t.length)),n=jt(e);return $F?$F(t,n,r):Qse(t,r,r+n.length)===n}});var ff=Object.assign,UF=Object.defineProperty,rue=Be([].concat),qF=!ff||xt(function(){if(Ur&&ff({b:1},ff(UF({},"a",{enumerable:!0,get:function(){UF(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(o){t[o]=o}),ff({},e)[r]!=7||Yc(ff({},t)).join("")!=n})?function(e,t){for(var r=is(e),n=arguments.length,o=1,i=VP.f,a=FP.f;n>o;)for(var s,u=z1(arguments[o++]),l=i?rue(Yc(u),i(u)):Yc(u),c=l.length,f=0;c>f;)s=l[f++],Ur&&!ht(a,u,s)||(r[s]=u[s]);return r}:ff;Qt({target:"Object",stat:!0,forced:Object.assign!==qF},{assign:qF});var nue=["props","attrs","style","dataset","on","hook"];function KF(e){var t=e.data,r=t===void 0?{}:t,n=e.children,o=n===void 0?[]:n;Object.keys(r).forEach(function(i){var a,s,u=r[i];if(i!=="key"){if(!nue.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=Ore(l),function(c,f){c.data==null&&(c.data={});var d=c.data;d.dataset==null&&(d.dataset={}),Object.assign(d.dataset,f)}(e,((a={})[l]=u,a)),void delete r[i]}(function(c,f){c.data==null&&(c.data={});var d=c.data;d.props==null&&(d.props={}),Object.assign(d.props,f)})(e,(s={},s[i]=u,s)),delete r[i]}}else e.key=u}),o.length>0&&o.forEach(function(i){typeof i!="string"&&KF(i)})}var iw=[],GF={};function oue(e,t,r){return $e(r.isInline(e)?"span":"div",null,t)}function WF(e,t){return t===void 0&&(t=!1),$e("span",{"data-slate-string":!0},t?e+`
88
+ `:e)}function aw(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),$e("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?$e("br",null):null)}function sw(e,t,r,n){return eh.set(e,t),tf.set(e,r),Te.isElement(e)?function(o,i){var a,s=z.findKey(i,o),u=i.isInline(o),l=D.isVoid(i,o),c=wF(s.id),f={id:c,key:s.id,"data-slate-node":"element","data-slate-inline":u},d=o.type,p=o.children,h=p===void 0?[]:p,g=function(S){return GF[S]||oue}(d);a=l?null:h.map(function(S,C){return sw(S,C,o,i)});var m=g(o,a,i);if(l){f["data-slate-void"]=!0;var y=u?"span":"div",v=pt(me.texts(o),1),E=pt(v[0],1)[0],w=$e(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},sw(E,0,o,i));m=$e(y,{style:{position:"relative"}},m,w),eh.set(E,0),tf.set(E,o)}return m.data==null&&(m.data={}),Object.assign(m.data,f),l||u||(m=function(S,C){var x=C;return iw.forEach(function(_){x=_(S,C)}),x}(o,m)),So(function(){var S=w5(c);S!=null&&(v5.set(s,S),cm.set(o,S),lm.set(S,o))}),m}(e,n):function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var s=z.findKey(a,o),u=a.getConfig().decorate;if(u==null)throw new Error("Can not get config.decorate");var l=z.findPath(a,o),c=u([o,l]),f=Ce.decorations(o,c),d=f.map(function(g,m){var y=function(v,E,w,S,C){E===void 0&&(E=!1);var x=v.text,_=z.findPath(C,w),P=J.parent(_);if(D.isEditor(S))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return C.isVoid(S)?aw(me.string(S).length):x!==""||S.children[S.children.length-1]!==w||C.isInline(S)||D.string(C,P)!==""?x===""?aw():E&&x.slice(-1)===`
89
+ `?WF(x,!0):WF(x):aw(0,!0)}(g,m===f.length-1,o,i,a);return y=function(v,E){var w=E;return iw.forEach(function(S){w=S(v,w)}),w}(g,y),$e("span",{"data-slate-leaf":!0},y)}),p=function(g){return"w-e-text-"+g}(s.id),h=$e("span",{"data-slate-node":"text",id:p,key:s.id},d);return So(function(){var g=w5(p);g!=null&&(v5.set(s,g),cm.set(o,g),lm.set(g,o))}),h}(e,r,n)}function iue(e,t){var r,n=e.$scroll,o=function(g){return"w-e-textarea-"+g}(e.id),i=t.getConfig(),a=i.readOnly,s=i.autoFocus,u=function(g,m){return m===void 0&&(m=!1),zc("div#"+g,{props:{contentEditable:!m}})}(o,a),l=t.children||[];u.children=l.map(function(g,m){var y=sw(g,m,t,t);return KF(y),y});var c=TB.get(e);if(c==null&&(c=!0),c){var f=function(g,m){return $(`<div
90
+ id="`+g+`"
91
+ data-slate-editor
92
+ data-slate-node="value"
93
+ suppressContentEditableWarning
94
+ role="textarea"
95
+ spellCheck="true"
96
+ autoCorrect="true"
97
+ autoCapitalize="true"
98
+ ></div>`)}(o);n.append(f),e.$textArea=f,r=f[0],(p=Yte([Jte,tre,nre,Zte,ere,Xte]))(r,u),TB.set(e,!1),PB.set(e,p)}else{var d=BB.get(e),p=PB.get(e);if(d==null||p==null)return;r=d.elm,p(d,u)}if(r!=null||(r=w5(o))!=null){if((c?s:t.isFocused())&&r.focus({preventScroll:!0}),c){var h=b5(r);h&&FB.set(t,h)}g5.set(t,r),cm.set(t,r),lm.set(r,t),BB.set(e,u)}}function YF(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function XF(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function uw(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return XF(r.overflowY,t)||XF(r.overflowX,t)||function(n){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}}(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)}(e)}return!1}function wm(e,t,r,n,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=r||a>=t&&s>=r?i-e-n:a>t&&s<r||i<e&&s>r?a-t+o:0}function JF(e,t){var r=window,n=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,u=typeof a=="function"?a:function(ce){return ce!==a};if(!YF(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;YF(f)&&u(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&uw(f)&&!uw(document.documentElement)||f!=null&&uw(f,s)&&c.push(f)}for(var d=r.visualViewport?r.visualViewport.width:innerWidth,p=r.visualViewport?r.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),y=m.height,v=m.width,E=m.top,w=m.right,S=m.bottom,C=m.left,x=o==="start"||o==="nearest"?E:o==="end"?S:E+y/2,_=i==="center"?C+v/2:i==="end"?w:C,P=[],q=0;q<c.length;q++){var H=c[q],k=H.getBoundingClientRect(),M=k.height,I=k.width,T=k.top,F=k.right,U=k.bottom,R=k.left;if(n==="if-needed"&&E>=0&&C>=0&&S<=p&&w<=d&&E>=T&&S<=U&&C>=R&&w<=F)return P;var Z=getComputedStyle(H),re=parseInt(Z.borderLeftWidth,10),O=parseInt(Z.borderTopWidth,10),A=parseInt(Z.borderRightWidth,10),V=parseInt(Z.borderBottomWidth,10),B=0,L=0,j="offsetWidth"in H?H.offsetWidth-H.clientWidth-re-A:0,W="offsetHeight"in H?H.offsetHeight-H.clientHeight-O-V:0;if(l===H)B=o==="start"?x:o==="end"?x-p:o==="nearest"?wm(g,g+p,p,O,V,g+x,g+x+y,y):x-p/2,L=i==="start"?_:i==="center"?_-d/2:i==="end"?_-d:wm(h,h+d,d,re,A,h+_,h+_+v,v),B=Math.max(0,B+g),L=Math.max(0,L+h);else{B=o==="start"?x-T-O:o==="end"?x-U+V+W:o==="nearest"?wm(T,U,M,O,V+W,x,x+y,y):x-(T+M/2)+W/2,L=i==="start"?_-R-re:i==="center"?_-(R+I/2)+j/2:i==="end"?_-F+A+j:wm(R,F,I,re,A+j,_,_+v,v);var X=H.scrollLeft,ae=H.scrollTop;x+=ae-(B=Math.max(0,Math.min(ae+B,H.scrollHeight-M+W))),_+=X-(L=Math.max(0,Math.min(X+L,H.scrollWidth-I+j)))}P.push({el:H,top:B,left:L})}return P}function ZF(e){return e===Object(e)&&Object.keys(e).length!==0}function xo(e,t){return ol(t)&&z.hasDOMNode(e,t,{editable:!0})}function QF(e,t){if(e.getConfig().readOnly)return!1;var r=df(e,t)&&z.toSlateNode(e,t);return D.isVoid(e,r)}function df(e,t){return ol(t)&&z.hasDOMNode(e,t)}function ej(e,t,r){r===void 0&&(r=!1);var n=t.selection,o=t.getConfig(),i=z.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||r)&&t.isFocused()){var a=i.type!=="None";if(n||a){var s=g5.get(t),u=!1;if(s.contains(i.anchorNode)&&s.contains(i.focusNode)&&(u=!0),a&&u&&n){var l=z.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&oe.equals(l,n)){var c=!0;if(oe.isCollapsed(n)){var f=i.anchorNode,d=i.anchorOffset;if(f===s){var p=s.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!n||z.hasRange(t,n)){e.isUpdatingSelection=!0;var g=n&&z.toDOMRange(t,n);if(g){oe.isBackward(n)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var m=g.startContainer.parentElement;if(!m.closest("[data-slate-spacer]")){m.getBoundingClientRect=g.getBoundingClientRect.bind(g);var y=document.body;(function(v,E){var w=!v.ownerDocument.documentElement.contains(v);if(ZF(E)&&typeof E.behavior=="function")return E.behavior(w?[]:JF(v,E));if(!w){var S=function(C){return C===!1?{block:"end",inline:"nearest"}:ZF(C)?C:{block:"start",inline:"nearest"}}(E);(function(C,x){x===void 0&&(x="auto");var _="scrollBehavior"in document.body.style;C.forEach(function(P){var q=P.el,H=P.top,k=P.left;q.scroll&&_?q.scroll({top:H,left:k,behavior:x}):(q.scrollTop=H,q.scrollLeft=k)})})(JF(v,S),S.behavior)}})(m,{scrollMode:"if-needed",boundary:o.scroll?s.parentElement:y,block:"end",behavior:"smooth"}),delete m.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){g&&th&&s.focus(),e.isUpdatingSelection=!1})}else t.selection=z.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var lw=new WeakMap,tj=new WeakMap,aue={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},sue={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},uue={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Wt=function(e){var t=aue[e],r=sue[e],n=uue[e],o=t&&F3(t),i=r&&F3(r),a=n&&F3(n);return function(s){return!(!o||!o(s))||!!(E5&&i&&i(s))||!(E5||!a||!a(s))}},er={isBold:Wt("bold"),isCompose:Wt("compose"),isMoveBackward:Wt("moveBackward"),isMoveForward:Wt("moveForward"),isDeleteBackward:Wt("deleteBackward"),isDeleteForward:Wt("deleteForward"),isDeleteLineBackward:Wt("deleteLineBackward"),isDeleteLineForward:Wt("deleteLineForward"),isDeleteWordBackward:Wt("deleteWordBackward"),isDeleteWordForward:Wt("deleteWordForward"),isExtendBackward:Wt("extendBackward"),isExtendForward:Wt("extendForward"),isExtendLineBackward:Wt("extendLineBackward"),isExtendLineForward:Wt("extendLineForward"),isItalic:Wt("italic"),isMoveLineBackward:Wt("moveLineBackward"),isMoveLineForward:Wt("moveLineForward"),isMoveWordBackward:Wt("moveWordBackward"),isMoveWordForward:Wt("moveWordForward"),isRedo:Wt("redo"),isSplitBlock:Wt("splitBlock"),isTransposeCharacter:Wt("transposeCharacter"),isUndo:Wt("undo"),isTab:Wt("tab"),isSelectAll:Wt("selectAll")};function kr(e){e.preventDefault()}var lue={beforeinput:function(e,t,r){var n=e,o=r.getConfig().readOnly;if(nh&&!o&&xo(r,n.target)){var i=r.selection,a=n.inputType,s=n.dataTransfer||n.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(n.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var u=pt(n.getTargetRanges(),1)[0];if(u){var l=z.toSlateRange(r,u,{exactMatch:!1,suppressThrow:!1});i&&oe.equals(i,l)||Q.select(r,l)}}if(i&&oe.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";D.deleteFragment(r,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":D.deleteFragment(r);break;case"deleteContent":case"deleteContentForward":D.deleteForward(r);break;case"deleteContentBackward":D.deleteBackward(r);break;case"deleteEntireSoftLine":D.deleteBackward(r,{unit:"line"}),D.deleteForward(r,{unit:"line"});break;case"deleteHardLineBackward":D.deleteBackward(r,{unit:"block"});break;case"deleteSoftLineBackward":D.deleteBackward(r,{unit:"line"});break;case"deleteHardLineForward":D.deleteForward(r,{unit:"block"});break;case"deleteSoftLineForward":D.deleteForward(r,{unit:"line"});break;case"deleteWordBackward":D.deleteBackward(r,{unit:"word"});break;case"deleteWordForward":D.deleteForward(r,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":D.insertBreak(r);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!y5.get(r))break;s instanceof DataTransfer?r.insertData(s):typeof s=="string"&&D.insertText(r,s)}}}},blur:function(e,t,r){var n=e,o=t.isUpdatingSelection,i=t.latestElement;if(!r.getConfig().readOnly&&!o&&xo(r,n.target)){var a=z.findDocumentOrShadowRoot(r);if(i!==a.activeElement){var s=n.relatedTarget;if(!(s===z.toDOMNode(r,r)||Xo(s)&&s.hasAttribute("data-slate-spacer"))){if(s!=null&&ol(s)&&z.hasDOMNode(r,s)){var u=z.toSlateNode(r,s);if(Te.isElement(u)&&!r.isVoid(u))return}if(rh){var l=a.getSelection();l==null||l.removeAllRanges()}nl.delete(r)}}}},focus:function(e,t,r){var n=z.toDOMNode(r,r),o=z.findDocumentOrShadowRoot(r);t.latestElement=o.activeElement,th&&e.target!==n?n.focus():nl.set(r,!0)},click:function(e,t,r){if(!r.getConfig().readOnly&&df(r,e.target)&&ol(e.target)){var n=z.toSlateNode(r,e.target),o=z.findPath(r,n);if(D.hasPath(r,o)&&me.get(r,o)===n){var i=D.start(r,o),a=D.end(r,o),s=D.void(r,{at:i}),u=D.void(r,{at:a});if(s&&u&&J.equals(s[1],u[1])){var l=D.range(r,i);Q.select(r,l)}}}},compositionstart:function(e,t,r){if(xo(r,e.target)){var n=r.selection;if(n&&oe.isExpanded(n)&&(D.deleteFragment(r),Promise.resolve().then(function(){ej(t,r,!0)})),n&&oe.isCollapsed(n)){var o=z.toDOMRange(r,n).startContainer,i=o.textContent||"";lw.set(r,i),tj.set(r,o)}t.isComposing=!0,function(a,s){var u;s.getConfig().placeholder&&s.isEmpty()&&a.showPlaceholder&&((u=a.$placeholder)===null||u===void 0||u.hide(),a.showPlaceholder=!1)}(t,r)}},compositionend:function(e,t,r){var n=e;if(xo(r,n.target)){t.isComposing=!1;var o=r.selection;if(o!=null){(S5||th)&&z.cleanExposedTexNodeInSelectionBlock(r);for(var i=oe.isBackward(o)?o.focus:o.anchor,a=pt(D.node(r,[i.path[0]]),1)[0],s=0;s<i.path.length;s++){var u=pt(D.node(r,i.path.slice(0,s+1)),1)[0];if(Te.isElement(u)&&((rh||th)&&u.type==="link"||u.type==="code")){z.setNewKey(a);break}}var l=n.data;if(l){if(r.getConfig().maxLength){var c=z.getLeftLengthOfMaxLength(r);c<l.length?(z.toDOMRange(r,o).startContainer.textContent=lw.get(r)||"",c>0&&D.insertText(r,l.slice(0,c)),t.changeViewState()):D.insertText(r,l)}else D.insertText(r,l);rh||setTimeout(function(){var f=r.selection;if(f!=null){var d=tj.get(r);d!=null&&z.toDOMRange(r,f).startContainer!==d&&(d.textContent=lw.get(r)||"")}})}}}},compositionupdate:function(e,t,r){xo(r,e.target)&&(t.isComposing=!0)},keydown:function(e,t,r){var n=e,o=r.selection;if(!r.getConfig().readOnly&&!t.isComposing&&xo(r,n.target)){if(function(a,s){var u=am.get(a),l=u&&u.getMenus(),c=sm.get(a),f=c&&c.getMenus(),d=wo(wo({},l),f);for(var p in d){var h=d[p],g=h.hotkey;if(g&&Nre(g,s)&&!h.isDisabled(a)){var m=h.getValue(a);h.exec(a,m)}}}(r,n),er.isTab(n))return kr(n),void r.handleTab();if(er.isRedo(n))return kr(n),void(typeof r.redo=="function"&&r.redo());if(er.isUndo(n))return kr(n),void(typeof r.undo=="function"&&r.undo());if(er.isMoveLineBackward(n))return kr(n),void Q.move(r,{unit:"line",reverse:!0});if(er.isMoveLineForward(n))return kr(n),void Q.move(r,{unit:"line"});if(er.isExtendLineBackward(n))return kr(n),void Q.move(r,{unit:"line",edge:"focus",reverse:!0});if(er.isExtendLineForward(n))return kr(n),void Q.move(r,{unit:"line",edge:"focus"});if(er.isMoveBackward(n))return kr(n),void(o&&oe.isCollapsed(o)?Q.move(r,{reverse:!0}):Q.collapse(r,{edge:"start"}));if(er.isMoveForward(n))return kr(n),void(o&&oe.isCollapsed(o)?Q.move(r):Q.collapse(r,{edge:"end"}));if(er.isMoveWordBackward(n))return kr(n),o&&oe.isExpanded(o)&&Q.collapse(r,{edge:"focus"}),void Q.move(r,{unit:"word",reverse:!0});if(er.isMoveWordForward(n))return kr(n),o&&oe.isExpanded(o)&&Q.collapse(r,{edge:"focus"}),void Q.move(r,{unit:"word"});if(er.isSelectAll(n))return kr(n),void r.selectAll();if(nh){if((S5||rh)&&o&&(er.isDeleteBackward(n)||er.isDeleteForward(n))&&oe.isCollapsed(o)){var i=me.parent(r,o.anchor.path);if(Te.isElement(i)&&D.isVoid(r,i)&&D.isInline(r,i))return n.preventDefault(),void Q.delete(r,{unit:"block"})}}else{if(er.isBold(n)||er.isItalic(n)||er.isTransposeCharacter(n))return void kr(n);if(er.isSplitBlock(n))return kr(n),void D.insertBreak(r);if(er.isDeleteBackward(n))return kr(n),void(o&&oe.isExpanded(o)?D.deleteFragment(r,{direction:"backward"}):D.deleteBackward(r));if(er.isDeleteForward(n))return kr(n),void(o&&oe.isExpanded(o)?D.deleteFragment(r,{direction:"forward"}):D.deleteForward(r));if(er.isDeleteLineBackward(n))return kr(n),void(o&&oe.isExpanded(o)?D.deleteFragment(r,{direction:"backward"}):D.deleteBackward(r,{unit:"line"}));if(er.isDeleteLineForward(n))return kr(n),void(o&&oe.isExpanded(o)?D.deleteFragment(r,{direction:"forward"}):D.deleteForward(r,{unit:"line"}));if(er.isDeleteWordBackward(n))return kr(n),void(o&&oe.isExpanded(o)?D.deleteFragment(r,{direction:"backward"}):D.deleteBackward(r,{unit:"word"}));if(er.isDeleteWordForward(n))return kr(n),void(o&&oe.isExpanded(o)?D.deleteFragment(r,{direction:"forward"}):D.deleteForward(r,{unit:"word"}))}}},keypress:function(e,t,r){if(!nh&&!r.getConfig().readOnly&&xo(r,e.target)){e.preventDefault();var n=e.key;D.insertText(r,n)}},copy:function(e,t,r){var n=e;if(xo(r,n.target)){n.preventDefault();var o=n.clipboardData;o!=null&&r.setFragmentData(o)}},cut:function(e,t,r){var n=e,o=r.selection;if(!r.getConfig().readOnly&&xo(r,n.target)){n.preventDefault();var i=n.clipboardData;if(i!=null&&(r.setFragmentData(i),o))if(oe.isExpanded(o))D.deleteFragment(r);else{var a=me.parent(r,o.anchor.path);D.isVoid(r,a)&&Q.delete(r)}}},paste:function(e,t,r){y5.set(r,!0);var n=e;if(!r.getConfig().readOnly&&xo(r,n.target)){var o=r.getConfig().customPaste;if(o&&o(r,n)===!1)return void y5.set(r,!1);if(!nh||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(n)){n.preventDefault();var i=n.clipboardData;i!=null&&r.insertData(i)}}},dragover:function(e,t,r){if(df(r,e.target)){var n=z.toSlateNode(r,e.target);D.isVoid(r,n)&&e.preventDefault()}},dragstart:function(e,t,r){var n=e;if(df(r,n.target)&&!r.getConfig().readOnly){var o=z.toSlateNode(r,n.target),i=z.findPath(r,o);if(D.isVoid(r,o)||D.void(r,{at:i,voids:!0})){var a=D.range(r,i);Q.select(r,a)}var s=n.dataTransfer;s!=null&&(t.isDraggingInternally=!0,r.setFragmentData(s))}},dragend:function(e,t,r){var n=e;r.getConfig().readOnly||t.isDraggingInternally&&df(r,n.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,r){var n=e,o=n.dataTransfer;if(!r.getConfig().readOnly&&df(r,n.target)&&o!=null&&!(nh&&rh&&o.files.length>0)){n.preventDefault();var i=r.selection,a=z.findEventRange(r,n);Q.select(r,a),t.isDraggingInternally&&(i&&Q.delete(r,{at:i}),t.isDraggingInternally=!1),r.insertData(o),r.isFocused()||r.focus()}}},cue=1,fue=function(){function e(t){var r=this;this.id=cue++,this.$textArea=null,this.$progressBar=$('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=$('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Ru(function(){var a=r.editorInstance;(function(s,u){var l=s.isComposing,c=s.isUpdatingSelection,f=s.isDraggingInternally;if(!(u.getConfig().readOnly||l||c||f)){var d=z.findDocumentOrShadowRoot(u),p=d.activeElement,h=z.toDOMNode(u,u),g=d.getSelection();if(p===h?(s.latestElement=p,nl.set(u,!0)):nl.delete(u),!g)return Q.deselect(u);var m=g.anchorNode,y=g.focusNode,v=xo(u,m)||QF(u,m),E=xo(u,y)||QF(u,y);if(v&&E){var w=z.toSlateRange(u,g,{exactMatch:!1,suppressThrow:!1});Q.select(u,w)}else Q.deselect(u)}})(r,a)},100);var n=$(t);if(n.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=n;var o=$('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),n.append(o);var i=$('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,So(function(){var a=r.editorInstance,s=z.getWindow(a);s.document.addEventListener("selectionchange",r.onDOMSelectionChange),a.on("destroyed",function(){s.document.removeEventListener("selectionchange",r.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",r.changeViewState.bind(r));var u=a.getConfig().onChange;u&&a.on("change",function(){return u(a)}),r.onFocusAndOnBlur(),a.on("change",r.changeMaxLengthInfo.bind(r)),r.bindEvent()})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var t=c5.get(this);if(t==null)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var t=this,r=this.$textArea,n=this.$scroll,o=this.editorInstance;r!=null&&(S3(lue,function(i,a){r.on(a,function(s){i(s,t,o)})}),o.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Ru(function(){o.emit("scroll")},100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,r=this.editorInstance,n=r.getConfig(),o=n.onBlur,i=n.onFocus;this.latestEditorSelection=r.selection,r.on("change",function(){t.latestEditorSelection==null&&r.selection!=null?setTimeout(function(){return i&&i(r)}):t.latestEditorSelection!=null&&r.selection==null&&setTimeout(function(){return o&&o(r)}),t.latestEditorSelection=r.selection})},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,r=t.getConfig().maxLength;if(r){var n=r-z.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=n+"/"+r}},e.prototype.changeProgress=function(t){var r=this.$progressBar;r.css("width",t+"%"),t>=100&&setTimeout(function(){r.hide(),r.css("width","0"),r.show()},1e3)},e.prototype.changeViewState=function(){var t=this,r=this.editorInstance;iue(this,r),function(n,o){var i,a=o.getConfig().placeholder;if(a){var s=o.isEmpty();if(s&&!n.showPlaceholder&&!n.isComposing){if(n.$placeholder==null){var u=$('<div class="w-e-text-placeholder">'+a+"</div>");n.$textAreaContainer.append(u),n.$placeholder=u}return n.$placeholder.show(),void(n.showPlaceholder=!0)}!s&&n.showPlaceholder&&((i=n.$placeholder)===null||i===void 0||i.hide(),n.showPlaceholder=!1)}}(this,r),So(function(){ej(t,r)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function cw(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&cw(t)}function fw(){return $('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function rj(){return $('<div class="w-e-bar-divider"></div>')}function nj(e,t,r,n,o){if(o===void 0&&(o=!1),t){if(n){var i=E5?"cmd":"ctrl";n=n.replace("mod",i)}if(o)n&&(e.attr("data-tooltip",n),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=n?r+`
99
+ `+n:r;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}X8("match",function(e,t,r){return[function(n){var o=bo(this),i=n==null?void 0:Ju(n,e);return i?ht(i,n,o):new RegExp(n)[e](jt(o))},function(n){var o=yr(this),i=jt(n),a=r(t,o,i);if(a.done)return a.value;if(!o.global)return Yp(o,i);var s=o.unicode;o.lastIndex=0;for(var u,l=[],c=0;(u=Yp(o,i))!==null;){var f=jt(u[0]);l[c]=f,f===""&&(o.lastIndex=J8(i,Kc(o.lastIndex),s)),c++}return c===0?null:l}]});var dw=function(){function e(t,r,n){var o=this;n===void 0&&(n=!1),this.$elem=$('<div class="w-e-bar-item"></div>'),this.$button=$('<button type="button"></button>'),this.disabled=!1,this.menu=r;var i=r.tag,a=r.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var s=r.title,u=r.hotkey,l=u===void 0?"":u,c=r.iconSvg,f=c===void 0?"":c,d=this.$button;if(f){var p=$(f);cw(p),d.append(p)}else d.text(s);nj(d,f,s,l,n),n&&f&&d.append($('<span class="title">'+s+"</span>")),a&&d.css("width",a+"px"),d.attr("data-menu-key",t),this.$elem.append(d),So(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(r){r.preventDefault(),Xn(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=Xn(this),r=this.menu,n=r.getValue(t);r.exec(t,n)},e.prototype.setActive=function(){var t=Xn(this),r=this.$button,n="active";this.menu.isActive(t)?r.addClass(n):r.removeClass(n)},e.prototype.setDisabled=function(){var t=Xn(this),r=this.$button,n=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),due=function(e){function t(r,n,o){return o===void 0&&(o=!1),e.call(this,r,n,o)||this}return Qc(t,e),t.prototype.onButtonClick=function(){},t}(dw),pw=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var r=h5.get(t);r==null&&(r=new Set,h5.set(t,r)),r.add(this),um.set(this,t)},e.prototype.renderContent=function(t){var r=this.$elem;r.empty(),r.append(t);var n=this.genSelfElem();n&&r.append(n)},e.prototype.appendTo=function(t){var r=this.$elem;t.append(r)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=um.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=um.get(this);t&&t.emit("modalOrPanelHide")}},e}(),pue=function(e){function t(r){var n=e.call(this,r)||this;return n.type="dropPanel",n.$elem=$('<div class="w-e-drop-panel"></div>'),n}return Qc(t,e),t.prototype.genSelfElem=function(){return null},t}(pw),hue=function(e){function t(r,n,o){o===void 0&&(o=!1);var i=e.call(this,r,n,o)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var a=fw();i.$button.append(a)}return i}return Qc(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var r=this.menu;if(r.getPanelContentElem!=null){var n=Xn(this);if(this.dropPanel==null){var o=new pue(n),i=r.getPanelContentElem(n);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=r.getPanelContentElem(n),a.renderContent(i),a.show())}var s=this.dropPanel;if(s.isShow){var u=this.$elem,l=u.offset().left,c=u.parents(".w-e-bar");l-c.offset().left>=c.width()/2?s.$elem.css({left:"none",right:"0"}):s.$elem.css({left:"0",right:"none"})}}},t}(dw),gue=function(e){function t(r,n){n===void 0&&(n=0);var o=e.call(this,r)||this;o.type="modal",o.$elem=$('<div class="w-e-modal"></div>'),o.width=0,n&&(o.width=n);var i=o.$elem;return i.on("click",function(a){return a.stopPropagation()}),i.on("keyup",function(a){a.code==="Escape"&&(o.hide(),r.restoreSelection())}),o}return Qc(t,e),t.prototype.genSelfElem=function(){var r=this,n=$('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),o=um.get(this);return n.on("click",function(){r.hide(),o==null||o.restoreSelection()}),n},t.prototype.setStyle=function(r){var n=this.width,o=this.$elem;o.attr("style",""),n&&o.css("width",n+"px"),o.css(r)},t}(pw);function Nn(e,t,r){var n=$('<label class="babel-container"></label>');n.append("<span>"+e+"</span>");var o=$('<input type="text" id="'+t+'" placeholder="'+(r||"")+'">');return n.append(o),[n[0],o[0]]}function vue(e,t,r){var n=$('<label class="babel-container"></label>');n.append("<span>"+e+"</span>");var o=$('<textarea type="text" id="'+t+'" placeholder="'+(r||"")+'"></textarea>');return n.append(o),[n[0],o[0]]}function ul(e,t){var r=$('<div class="button-container"></div>'),n=$('<button type="button" id="'+e+'">'+t+"</button>");return r.append(n),[r[0],n[0]]}var mue=function(e){function t(r,n,o){o===void 0&&(o=!1);var i=e.call(this,r,n,o)||this;return i.$body=$("body"),i.modal=null,i.menu=n,i}return Qc(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var r=Xn(this),n=this.menu.getModalPositionNode(r);return Te.isElement(n)?rw(r,n,"modal"):tw(r)},t.prototype.handleModal=function(){var r=Xn(this),n=this.menu;if(this.modal==null){var o=new gue(r,n.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},t.prototype.renderAndShowModal=function(r,n){n===void 0&&(n=!1);var o=Xn(this),i=this.menu;if(i.getModalContentElem!=null){var a=z.getTextarea(o),s=z.getToolbar(o),u=((s==null?void 0:s.getConfig())||{}).modalAppendToBody,l=i.getModalContentElem(o);if(r.renderContent(l),u)r.setStyle({left:"0",right:"0"});else{var c=this.getPosition();r.setStyle(c)}n&&(u?r.appendTo(this.$body):r.appendTo(a.$textAreaContainer)),r.show(),u||nw(o,r.$elem),setTimeout(function(){o.blur()})}},t}(dw),yue=function(e){function t(r,n){var o=e.call(this,r)||this;return o.type="selectList",o.$elem=$('<div class="w-e-select-list"></div>'),n&&o.$elem.css("width",n+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return Qc(t,e),t.prototype.renderList=function(r){var n=this.$elem;n.empty();var o=$("<ul></ul>");r.forEach(function(i){var a=i.value,s=i.text,u=i.selected,l=i.styleForRenderMenuList,c=$('<li data-value="'+a+'"></li>');if(l&&c.css(l),u){var f=$('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');c.append(f),c.addClass("selected")}c.append($('<span data-value="'+a+'">'+s+"</span>")),c.attr("title",s),o.append(c)}),n.append(o)},t.prototype.genSelfElem=function(){return null},t}(pw),bue=function(){function e(t,r,n){var o=this;n===void 0&&(n=!1),this.$elem=$('<div class="w-e-bar-item"></div>'),this.$button=$('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=r.tag,a=r.title,s=r.width,u=r.iconSvg,l=u===void 0?"":u,c=r.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var d=this.$button;s&&d.css("width",s+"px"),d.attr("data-menu-key",t),nj(d,l,a,f,n),this.$elem.append(d),this.menu=r,So(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(r){r.preventDefault(),Xn(t).hidePanelOrModal(),t.trigger()})},e.prototype.trigger=function(){var t=this,r=Xn(this);if(!r.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new yue(r,n.selectPanelWidth);var o=this.selectList,i=n.getOptions(r);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(a){var s=a.target;if(s!=null){a.preventDefault();var u=$(s).attr("data-value");t.onChange(u)}})}else(o=this.selectList).isShow?o.hide():(i=n.getOptions(r),o.renderList(i),o.show())}},e.prototype.onChange=function(t){var r=Xn(this),n=this.menu;n.exec&&n.exec(r,t)},e.prototype.setSelectedValue=function(){var t=Xn(this),r=this.menu,n=r.getValue(t),o=function(s,u){for(var l=s.length,c="",f=0;f<l;f++){var d=s[f];if(d.value===u){c=d.text;break}}return c}(r.getOptions(t),n.toString()),i=this.$button,a=fw();i.empty(),i.text(o),i.append(a)},e.prototype.setDisabled=function(){var t=Xn(this),r=this.menu.isDisabled(t),n=this.$button;(t.selection==null||t.isDisabled())&&(r=!0);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),oj=function(){function e(t){this.$elem=$('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=$('<div class="w-e-bar-item-menus-container"></div>'),this.$button=$('<button type="button"></button>');var r=t.key,n=t.iconSvg,o=t.title,i=this.$elem,a=this.$button;if(n){var s=$(n);cw(s),a.append(s)}else a.text(o);a.attr("data-menu-key",r);var u=fw();a.append(u),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return e.prototype.appendBarItem=function(t){var r=t.$elem;this.$container.append(r)},e.prototype.observe=function(t){var r=this.$container;t.observe(r[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var t=this,r=this.$container,n=this.$button,o=new MutationObserver(function(){var i=r.find("button"),a=i.length;if(a!==0){var s=0;i.each(function(u){$(u).hasClass("disabled")&&s++}),o.disconnect(),s===a?n.addClass("disabled"):n.removeClass("disabled"),t.observe(o)}});return o},e}(),ij=new WeakMap;function Xn(e){var t=p5.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function aj(e,t,r){r===void 0&&(r=!1);var n=ij.get(t);if(n)return n;var o=t.tag;if(o==="button"){var i=t.showDropPanel,a=t.showModal;n=i?new hue(e,t,r):a?new mue(e,t,r):new due(e,t,r)}if(o==="select"&&(n=new bue(e,t,r)),n==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return ij.set(t,n),n}function wue(e,t){var r=e.selection;return r!=null&&!oe.isCollapsed(r)&&!z.getSelectedElems(e).some(function(n){if(e.isVoid(n))return!0;var o=n.type;return!!["pre","code","table"].includes(o)||void 0})&&!!Ce.isText(t)}var Eue=function(){function e(){var t=this;this.$elem=$('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=kT(function(){var r=t.isShow,n=t.getSelectedNodeAndMenuKeys()||{},o=n.node,i=o===void 0?null:o,a=n.menuKeys,s=a===void 0?[]:a;i!=null&&t.changeItemsState(),i&&Te.isElement(i)&&r&&t.isSamePath(i,t.prevSelectedNode)||(t.hideAndClean(),i!=null&&(t.registerItems(s),t.setPosition(i),t.show()),t.prevSelectedNode=i)},200),So(function(){var r=t.getEditorInstance(),n=t.$elem;n.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),z.getTextarea(r).$textAreaContainer.append(n),r.on("change",t.changeHoverbarState);var o=t.hideAndClean.bind(t);r.on("scroll",o),r.on("fullScreen",o),r.on("unFullScreen",o)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var t=this.$elem,r=!1,n=window.innerHeight;n&&n>=360&&n-t[0].getBoundingClientRect().bottom<360&&(r=!0),r?t.addClass("w-e-bar-bottom"):t.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var t=this;So(function(){t.hoverbarItems.forEach(function(r){r.changeMenuState()})})},e.prototype.registerItems=function(t){var r=this,n=this.$elem;t.forEach(function(o){if(o!=="|")r.registerSingleItem(o);else{var i=rj();n.append(i)}})},e.prototype.registerSingleItem=function(t){var r=this.getEditorInstance(),n=this.menus,o=n[t];if(o==null){var i=oh[t];if(i==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");o=i(),n[t]=o}var a=aj(t,o);this.hoverbarItems.push(a),p5.set(a,r),this.$elem.append(a.$elem)},e.prototype.setPosition=function(t){var r=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Te.isElement(t)){var o=rw(r,t,"bar");return n.css(o),void nw(r,n)}if(Ce.isText(t))return o=tw(r),n.css(o),void nw(r,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(t.selection==null)return null;var r=this.getHoverbarKeysConf(),n=null,o=[],i=function(s){var u=r[s],l=u.match,c=u.menuKeys,f=c===void 0?[]:c,d=l||function(g,m){return z.checkNodeType(m,s)},p=pt(D.nodes(t,{match:function(g){return d(t,g)},universal:!0}),1),h=p[0];if(h!=null)return n=h[0],o=f,"break"};for(var a in r)if(i(a)==="break")break;return n==null||o.length===0?null:{node:n,menuKeys:o}},e.prototype.getEditorInstance=function(){var t=d5.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,r=t===void 0?{}:t,n=r.text;return n&&n.match==null&&(n.match=wue),r},e.prototype.isSamePath=function(t,r){if(t==null||r==null)return!1;var n=z.findPath(null,t),o=z.findPath(null,r);return J.equals(n,o)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function sj(e,t,r,n){if(eh.set(e,t),tf.set(e,r),Te.isElement(e)){var o=e.children;if((o===void 0?[]:o).forEach(function(s,u){return sj(s,u,e,n)}),D.isVoid(n,e)){var i=pt(me.texts(e),1),a=pt(i[0],1)[0];eh.set(a,0),tf.set(a,e)}}}function Sue(e){var t=e.selector,r=t===void 0?"":t,n=e.config,o=n===void 0?{}:n,i=e.content,a=e.html,s=e.plugins,u=s===void 0?[]:s,l=(y=>{var v=y,{apply:E}=v;return v.history={undos:[],redos:[]},v.redo=()=>{var{history:w}=v,{redos:S}=w;if(S.length>0){var C=S[S.length-1];Xc.withoutSaving(v,()=>{D.withoutNormalizing(v,()=>{for(var x of C)v.apply(x)})}),w.redos.pop(),w.undos.push(C)}},v.undo=()=>{var{history:w}=v,{undos:S}=w;if(S.length>0){var C=S[S.length-1];Xc.withoutSaving(v,()=>{D.withoutNormalizing(v,()=>{var x=C.map(Ya.inverse).reverse();for(var _ of x)v.apply(_)})}),w.redos.push(C),w.undos.pop()}},v.apply=w=>{var{operations:S,history:C}=v,{undos:x}=C,_=x[x.length-1],P=_&&_[_.length-1],q=((I,T)=>!(!T||I.type!=="set_selection"||T.type!=="set_selection"))(w,P),H=Xc.isSaving(v),k=Xc.isMerging(v);if(H==null&&(H=((I,T)=>I.type!=="set_selection"||I.properties!=null&&I.newProperties!=null)(w)),H){if(k==null&&(k=_!=null&&(S.length!==0||((I,T)=>I.type==="set_selection"||!(!T||I.type!=="insert_text"||T.type!=="insert_text"||I.offset!==T.offset+T.text.length||!J.equals(I.path,T.path))||!(!T||I.type!=="remove_text"||T.type!=="remove_text"||I.offset+I.text.length!==T.offset||!J.equals(I.path,T.path)))(w,P)||q)),_&&k)q&&_.pop(),_.push(w);else{var M=[w];x.push(M)}for(;x.length>100;)x.shift();(I=>I.type!=="set_selection")(w)&&(C.redos=[])}E(w)},v})(function(y){var v=y,E=v.insertText,w=v.insertNode,S=v.insertFragment,C=v.dangerouslyInsertHtml;return v.insertText=function(x){if(v.getConfig().maxLength){var _=z.getLeftLengthOfMaxLength(v);_<=0||(_<x.length?E(x.slice(0,_)):E(x))}else E(x)},v.insertNode=function(x){if(v.getConfig().maxLength){var _=z.getLeftLengthOfMaxLength(v);_<=0||_<me.string(x).length||w(x)}else w(x)},v.insertFragment=function(x){if(v.getConfig().maxLength)if(x.length!==1)x.forEach(function(P){v.insertNode(P)});else{var _=x[0];if(z.getLeftLengthOfMaxLength(v)<me.string(_).length)return;S(x)}else S(x)},v.dangerouslyInsertHtml=function(x,_){if(x===void 0&&(x=""),_===void 0&&(_=!1),x)if(v.getConfig().maxLength){var P=z.getLeftLengthOfMaxLength(v);if(!(P<=0)){var q=document.createElement("div");q.innerHTML=x;var H=Array.from(q.childNodes).reduce(function(k,M){var I=M.nodeType,T=M.nodeName;return M?I===Di.TEXT_NODE?k+(M.textContent||""):I===Di.ELEMENT_NODE?IF.has(T.toLowerCase())?k:k+(M.textContent||""):k:k},"");P<H.length||C(x,_)}}else C(x,_)},v}(function(y){var v=y;return v.on=function(E,w){var S=ym(v);if(S.on(E,w),E==="destroyed"&&RF(v,w),E!=="destroyed"){var C=function(){return S.off(E,w)};S.on("destroyed",C),RF(v,C)}},v.once=function(E,w){ym(v).once(E,w)},v.off=function(E,w){ym(v).off(E,w)},v.emit=function(E){for(var w=[],S=1;S<arguments.length;S++)w[S-1]=arguments[S];var C=ym(v);C.emit.apply(C,n5([E],pt(w))),E==="destroyed"&&(Gse(v).forEach(function(x){return C.off("destroyed",x)}),Wse(v))},v}(function(y){var v=y;return v.select=function(E){Q.select(v,E)},v.deselect=function(){var E=v.selection,w=z.findDocumentOrShadowRoot(v).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),E&&Q.deselect(y)},v.move=function(E,w){w===void 0&&(w=!1),E&&(E<0||Q.move(y,{distance:E,unit:"character",reverse:w}))},v.moveReverse=function(E){v.move(E,!0)},v.restoreSelection=function(){var E=m5.get(v);E!=null&&(v.focus(),Q.select(v,E))},v.getSelectionPosition=function(){return tw(v)},v.getNodePosition=function(E){return rw(v,E)},v.isSelectedAll=function(){var E=v.selection;if(E==null)return!1;var w=pt(oe.edges(E),2),S=w[0],C=w[1],x=pt(D.edges(v,[]),2),_=x[0],P=x[1];return!(!Ze.equals(S,_)||!Ze.equals(C,P))},v.selectAll=function(){var E=D.start(v,[]),w=D.end(v,[]);Q.select(v,{anchor:E,focus:w})},v}(function(y){var v=y,E=v.onChange,w=v.insertText,S=v.apply,C=v.deleteBackward;return v.insertText=function(x){v.getConfig().readOnly||w(x)},v.apply=function(x){var _,P,q,H,k,M,I,T,F=[];switch(x.type){case"insert_text":case"remove_text":case"set_node":try{for(var U=Eo(D.levels(v,{at:x.path})),R=U.next();!R.done;R=U.next()){var Z=pt(R.value,2),re=Z[0],O=Z[1],A=z.findKey(v,re);F.push([O,A])}}catch(fe){_={error:fe}}finally{try{R&&!R.done&&(P=U.return)&&P.call(U)}finally{if(_)throw _.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var V=Eo(D.levels(v,{at:J.parent(x.path)})),B=V.next();!B.done;B=V.next()){var L=pt(B.value,2);re=L[0],O=L[1],A=z.findKey(v,re),F.push([O,A])}}catch(fe){q={error:fe}}finally{try{B&&!B.done&&(H=V.return)&&H.call(V)}finally{if(q)throw q.error}}break;case"move_node":try{for(var j=Eo(D.levels(v,{at:J.common(J.parent(x.path),J.parent(x.newPath))})),W=j.next();!W.done;W=j.next()){var X=pt(W.value,2);re=X[0],O=X[1],A=z.findKey(v,re),F.push([O,A])}}catch(fe){k={error:fe}}finally{try{W&&!W.done&&(M=j.return)&&M.call(j)}finally{if(k)throw k.error}}}S(x);try{for(var ae=Eo(F),ce=ae.next();!ce.done;ce=ae.next()){var ee=pt(ce.value,2);O=ee[0],A=ee[1],re=pt(D.node(v,O),1)[0],fm.set(re,A)}}catch(fe){I={error:fe}}finally{try{ce&&!ce.done&&(T=ae.return)&&T.call(ae)}finally{if(I)throw I.error}}},v.deleteBackward=function(x){if(x!=="line")return C(x);if(y.selection&&oe.isCollapsed(y.selection)){var _=D.above(y,{match:function(k){return D.isBlock(y,k)},at:y.selection});if(_){var P=pt(_,2)[1],q=D.range(y,P,y.selection.anchor),H=function(k,M){var I=D.range(k,oe.end(M)),T=Array.from(D.positions(k,{at:M})),F=0,U=T.length,R=Math.floor(U/2);if(SF(k,D.range(k,T[F]),I))return D.range(k,T[F],I);if(T.length<2)return D.range(k,T[T.length-1],I);for(;R!==T.length&&R!==F;)SF(k,D.range(k,T[R]),I)?U=R:F=R,R=Math.floor((F+U)/2);return D.range(k,T[U],I)}(v,q);oe.isCollapsed(H)||Q.delete(y,{at:H})}}},v.onChange=function(){var x=v.selection;x!=null&&m5.set(v,x),v.emit("change"),E()},v.handleTab=function(){v.insertText(" ")},v.getHtml=function(){var x=v.children;return(x===void 0?[]:x).map(function(_){return bF(_,v)}).join("")},v.getText=function(){var x=v.children;return(x===void 0?[]:x).map(function(_){return me.string(_)}).join(`
100
+ `)},v.getSelectionText=function(){var x=v.selection;return x==null?"":D.string(y,x)},v.getElemsByType=function(x,_){var P,q;_===void 0&&(_=!1);var H=[],k=D.nodes(v,{at:[],universal:!0});try{for(var M=Eo(k),I=M.next();!I.done;I=M.next()){var T=pt(I.value,1)[0];if(Te.isElement(T)&&(_?T.type.indexOf(x)>=0:T.type===x)){var F=wF(z.findKey(v,T).id);H.push(wo(wo({},T),{id:F}))}}}catch(U){P={error:U}}finally{try{I&&!I.done&&(q=M.return)&&q.call(M)}finally{if(P)throw P.error}}return H},v.getElemsByTypePrefix=function(x){return v.getElemsByType(x,!0)},v.isEmpty=function(){var x=v.children,_=x===void 0?[]:x;if(_.length>1)return!1;var P=_[0];if(P==null)return!0;if(Te.isElement(P)&&P.type==="paragraph"){var q=P.children,H=q===void 0?[]:q;if(H.length>1)return!1;var k=H[0];if(k==null||Ce.isText(k)&&k.text==="")return!0}return!1},v.clear=function(){Q.delete(v,{at:{anchor:D.start(v,[]),focus:D.end(v,[])}}),v.children.length===0&&Q.insertNodes(v,[{type:"paragraph",children:[{text:""}]}])},v.getParentNode=function(x){return z.getParentNode(v,x)},v.dangerouslyInsertHtml=function(x,_){if(x===void 0&&(x=""),_===void 0&&(_=!1),x){var P=document.createElement("div");P.innerHTML=x;var q=Array.from(P.childNodes);if(q=q.filter(function(I){var T=I.nodeType,F=I.nodeName;return T===Di.TEXT_NODE||T===Di.ELEMENT_NODE&&!IF.has(F.toLowerCase())}),q.length!==0){var H=v.selection;if(H!=null){var k=null;z.isSelectedEmptyParagraph(v)&&!_&&(k=[H.focus.path[0]]),P.setAttribute("hidden","true"),document.body.appendChild(P);var M=0;q.forEach(function(I){var T=I.nodeType,F=I.nodeName,U=I.textContent,R=U===void 0?"":U;if(T!==Di.TEXT_NODE)if(F!=="BR"){var Z=I,re=!1;if(xF.includes(F.toLowerCase()))re=!0;else for(var O in gm)if(Z.matches(O)){re=!0;break}if(re){var A=Y5($(Z),v);return Array.isArray(A)?(A.forEach(function(B){return LF(v,B)}),M++):(LF(v,A),M++),void(z.isSelectedVoidNode(v)&&v.move(1))}var V=window.getComputedStyle(Z).display;z.isSelectedEmptyParagraph(v)||V.indexOf("inline")<0&&v.insertBreak(),v.dangerouslyInsertHtml(Z.innerHTML,!0)}else v.insertText(`
101
+ `);else{if(!R||!R.trim())return;v.insertNode({text:R})}}),M&&k&&z.isEmptyPath(v,k)&&Q.removeNodes(v,{at:k}),P.remove()}}}},v.setHtml=function(x){x===void 0&&(x="");var _=v.isDisabled(),P=v.isFocused(),q=JSON.stringify(v.selection);v.enable(),v.focus(),v.clear();var H=BF(v,x);if(Q.insertFragment(v,H),P||(v.deselect(),v.blur()),_&&(v.deselect(),v.disable()),v.isFocused())try{v.select(JSON.parse(q))}catch{v.select(D.start(v,[]))}},v}(function(y){var v=y;return v.getAllMenuKeys=function(){var E=[];for(var w in oh)E.push(w);return E},v.getConfig=function(){var E=NB.get(v);if(E==null)throw new Error("Can not get editor config");return E},v.getMenuConfig=function(E){var w=v.getConfig().MENU_CONF;return(w===void 0?{}:w)[E]||{}},v.alert=function(E,w){w===void 0&&(w="info");var S=v.getConfig().customAlert;S&&S(E,w)},v}(function(y){var v=Fse(ree());return v.id="wangEditor-"+$ae++,v.isDestroyed=!1,v.isFullScreen=!1,v.focus=function(E){if(z.toDOMNode(v,v).focus({preventScroll:!0}),nl.set(v,!0),E){var w=D.end(v,[]);Q.select(v,w)}else{var S=m5.get(v);S?Q.select(v,S):Q.select(v,D.start(v,[]))}},v.isFocused=function(){return!!nl.get(v)},v.blur=function(){z.toDOMNode(v,v).blur(),Q.deselect(v),nl.set(v,!1)},v.updateView=function(){z.getTextarea(v).changeViewState();var E=z.getToolbar(v);E&&E.changeToolbarState();var w=z.getHoverbar(v);w&&w.changeHoverbarState()},v.destroy=function(){if(!v.isDestroyed){var E=z.getTextarea(v);E.destroy(),l5.delete(v),c5.delete(E);var w=z.getToolbar(v);w&&(w.destroy(),am.delete(v),f5.delete(w));var S=z.getHoverbar(v);S&&(S.destroy(),sm.delete(v),d5.delete(S)),v.isDestroyed=!0,v.emit("destroyed")}},v.scrollToElem=function(E){if(!v.getConfig().scroll){var w="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return w+=`
102
+ You has disabled editor scroll, please do this yourself`,void console.warn(w)}var S=$("#"+E);if(S.length!==0){var C=S[0];if(!z.hasDOMNode(v,C))return w="Element (found by id is '"+E+"') is not in editor DOM",w+=`
103
+ 通过 id '`+E+"' 找到的 element 不在 editor DOM 之内",void console.error(w,C);var x=z.getTextarea(v),_=x.$textAreaContainer,P=x.$scroll,q=S.offset().top,H=_.offset().top;P[0].scrollBy({top:q-H,behavior:"smooth"})}},v.showProgressBar=function(E){E<1||z.getTextarea(v).changeProgress(E)},v.hidePanelOrModal=function(){var E=h5.get(v);E!=null&&E.forEach(function(w){return w.hide()})},v.enable=function(){v.getConfig().readOnly=!1,v.updateView()},v.disable=function(){v.getConfig().readOnly=!0,v.updateView()},v.isDisabled=function(){return v.getConfig().readOnly},v.toDOMNode=function(E){return z.toDOMNode(v,E)},v.fullScreen=function(){if(!v.isFullScreen){var E=null,w=z.getToolbar(v);w&&(E=w.$box);var S=z.getTextarea(v).$box.parent();if(E&&E.parent()[0]!==S[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
104
+ 不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);S.addClass("w-e-full-screen-container");var C=S.css("z-index");S.attr("data-z-index",C.toString()),v.isFullScreen=!0,v.emit("fullScreen")}},v.unFullScreen=function(){if(v.isFullScreen){var E=z.getTextarea(v).$box.parent();setTimeout(function(){E.removeClass("w-e-full-screen-container"),v.isFullScreen=!1,v.emit("unFullScreen")},200)}},v.getEditableContainer=function(){return z.getTextarea(v).$textAreaContainer[0]},v}()))))));if(r&&function(y,v){return PF(y,"data-w-e-textarea",v)}(l,r))throw new Error("Repeated create editor by selector '"+r+"'");var c=function(y){y===void 0&&(y={});var v=NT($B),E={},w=y.MENU_CONF,S=w===void 0?{}:w;return S3(v,function(C,x){E[x]=wo(wo({},C),S[x]||{})}),delete y.MENU_CONF,wo({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:E,hoverbarKeys:{},customAlert:function(C,x){window.alert(x+`:
105
+ `+C)}},y)}(o);NB.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(u.forEach(function(y){l=y(l)}),a!=null&&(l.children=BF(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),z.normalizeContent(l),r){var p=new fue(r);l5.set(l,p),c5.set(p,l),p.changeViewState(),So(function(){var y=p.$scroll;y!=null&&y.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
106
+ Textarea height < 300px . This may be cause modal and hoverbar position error`,y)});var h=void 0;Object.keys(d).length>0&&(h=new Eue,d5.set(h,l),sm.set(l,h)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,v){return sj(y,v,l,l)});var g=c.onCreated,m=c.onDestroyed;return g&&l.on("created",function(){return g(l)}),m&&l.on("destroyed",function(){return m(l)}),So(function(){return l.emit("created")}),l}var xue=Y1("splice"),Cue=ge.TypeError,Due=Math.max,_ue=Math.min;Qt({target:"Array",proto:!0,forced:!xue},{splice:function(e,t){var r,n,o,i,a,s,u=is(this),l=el(u),c=Wc(e,l),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=l-c):(r=f-2,n=_ue(Due(zp(t),0),l-c)),l+r-n>9007199254740991)throw Cue("Maximum allowed length exceeded");for(o=AP(u,n),i=0;i<n;i++)(a=c+i)in u&&Kp(o,i,u[a]);if(o.length=n,r<n){for(i=c;i<l-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:delete u[s];for(i=l;i>l-n+r;i--)delete u[i-1]}else if(r>n)for(i=l-n;i>c;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:delete u[s];for(i=0;i<r;i++)u[i+c]=arguments[i+2];return u.length=l-n+r,o}});var uj=function(){function e(t,r){var n=this;this.$toolbar=$('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=kT(function(){n.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=r;var o=$(t);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),o.append(i),So(function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,r="",n=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,s=o.insertKeys,u=s===void 0?{index:0,keys:[]}:s,l=o.excludeKeys,c=l===void 0?[]:l,f=NT(a);u.keys.length>0&&(typeof u.keys=="string"&&(u.keys=[u.keys]),u.keys.forEach(function(h,g){f.splice(u.index+g,0,h)}));var d=f.filter(function(h){if(typeof h=="string"){if(c.includes(h))return!1}else if(c.includes(h.key))return!1;return!0}),p=d.length;d.forEach(function(h,g){if(h==="|"){if(g===0||g+1===p||r==="|")return;var m=rj();return n.append(m),void(r=h)}if(typeof h=="string")return t.registerSingleItem(h,t),void(r=h);t.registerGroup(h),r="group"})},e.prototype.registerGroup=function(t){var r=this,n=this.$toolbar,o=function(l){return new oj(l)}(t),i=t.menuKeys,a=i===void 0?[]:i,s=this.config.excludeKeys,u=s===void 0?[]:s;a.forEach(function(l){u.includes(l)||r.registerSingleItem(l,o)}),n.append(o.$elem)},e.prototype.registerSingleItem=function(t,r){var n=this.getEditorInstance(),o=r instanceof oj,i=this.menus,a=i[t];if(a==null){var s=oh[t];if(s==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof s!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");a=s(),i[t]=a}else console.warn("Duplicated toolbar menu key '"+t+`'
107
+ 重复注册了菜单栏 menu '`+t+"'");var u=aj(t,a,o);this.toolbarItems.push(u),p5.set(u,n),o?r.appendBarItem(u):r.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var t=f5.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),Oue=qc.EXISTS,Aue=Go.f,lj=Function.prototype,kue=Be(lj.toString),cj=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Nue=Be(cj.exec);function hw(e){var t=e.server,r=t===void 0?"":t,n=e.fieldName,o=n===void 0?"":n,i=e.maxFileSize,a=i===void 0?10485760:i,s=e.maxNumberOfFiles,u=s===void 0?100:s,l=e.meta,c=l===void 0?{}:l,f=e.metaWithUrl,d=f!==void 0&&f,p=e.headers,h=p===void 0?{}:p,g=e.withCredentials,m=g!==void 0&&g,y=e.timeout,v=y===void 0?1e4:y,E=e.onBeforeUpload,w=E===void 0?function(M){return M}:E,S=e.onSuccess,C=S===void 0?function(M,I){}:S,x=e.onError,_=x===void 0?function(M,I,T){console.error(M.name+" upload error",I,T)}:x,P=e.onProgress,q=P===void 0?function(M){}:P;if(!r)throw new Error(`Cannot get upload server address
108
+ 没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
109
+ 没有配置 fieldName`);var H=r;d&&(H=function(M,I){var T=pt(M.split("#"),2),F=T[0],U=T[1],R=[];S3(I,function(re,O){R.push(O+"="+re)});var Z=R.join("&");return F=F.indexOf("?")>0?F+"&"+Z:F+"?"+Z,U?F+"#"+U:F}(H,c));var k=new Op({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:u},meta:c}).use(noe,{endpoint:H,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:m,timeout:v});return k.on("upload-success",function(M,I){var T=I.body,F=T===void 0?{}:T;try{C(M,F)}catch(U){console.error("wangEditor upload file - onSuccess error",U)}k.removeFile(M.id)}),k.on("progress",function(M){M<1||q(M)}),k.on("upload-error",function(M,I,T){try{_(M,I,T)}catch(F){console.error("wangEditor upload file - onError error",F)}k.removeFile(M.id)}),k.on("restriction-failed",function(M,I){try{_(M,I)}catch(T){console.error("wangEditor upload file - onError error",T)}k.removeFile(M.id)}),k}function fs(e){return fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fs(e)}function Tue(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),n.forEach(function(o){Tue(e,o,r[o])})}return e}function pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fj(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ha(e,t,r){return t&&fj(e.prototype,t),r&&fj(e,r),e}function ll(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hh(e,t){if(t&&(fs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ll(e)}function pf(e){return pf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},pf(e)}function gw(e,t){return gw=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},gw(e,t)}function Em(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gw(e,t)}Ur&&!Oue&&Aue(lj,"name",{configurable:!0,get:function(){try{return Nue(cj,kue(this))[1]}catch{return""}}});var Pue={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},ga=new(function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};pa(this,e),this.init(t,r)}return ha(e,[{key:"init",value:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||Pue,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,r,n,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(n).concat(this.prefix," ").concat(t[0])),this.logger[r](t))}},{key:"create",value:function(t){return new e(this.logger,Nr({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),ds=function(){function e(){pa(this,e),this.observers={}}return ha(e,[{key:"on",value:function(t,r){var n=this;return t.split(" ").forEach(function(o){n.observers[o]=n.observers[o]||[],n.observers[o].push(r)}),this}},{key:"off",value:function(t,r){this.observers[t]&&(r?this.observers[t]=this.observers[t].filter(function(n){return n!==r}):delete this.observers[t])}},{key:"emit",value:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];if(this.observers[t]){var i=[].concat(this.observers[t]);i.forEach(function(s){s.apply(void 0,n)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(s){s.apply(s,[t].concat(n))})}}}]),e}();function gh(){var e,t,r=new Promise(function(n,o){e=n,t=o});return r.resolve=e,r.reject=t,r}function dj(e){return e==null?"":""+e}function Bue(e,t,r){e.forEach(function(n){t[n]&&(r[n]=t[n])})}function vw(e,t,r){function n(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=n(i.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:n(i.shift())}}function pj(e,t,r){var n=vw(e,t,Object);n.obj[n.k]=r}function Sm(e,t){var r=vw(e,t),n=r.obj,o=r.k;if(n)return n[o]}function hj(e,t,r){var n=Sm(e,r);return n!==void 0?n:Sm(t,r)}function gj(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):gj(e[n],t[n],r):e[n]=t[n]);return e}function hf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Fue={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function jue(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Fue[t]}):e}var xm=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function vj(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),o=e,i=0;i<n.length;++i){if(!o||typeof o[n[i]]=="string"&&i+1<n.length)return;if(o[n[i]]===void 0){for(var a=2,s=n.slice(i,i+a).join(r),u=o[s];u===void 0&&n.length>i+a;)a++,u=o[s=n.slice(i,i+a).join(r)];if(u===void 0)return;if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s];var l=n.slice(i+a).join(r);return l?vj(u,l,r):void 0}o=o[n[i]]}return o}}var Iue=function(e){function t(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return pa(this,t),n=hh(this,pf(t).call(this)),xm&&ds.call(ll(n)),n.data=r||{},n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return Em(t,ds),ha(t,[{key:"addNamespaces",value:function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function(r){var n=this.options.ns.indexOf(r);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,s=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[r,n];o&&typeof o!="string"&&(u=u.concat(o)),o&&typeof o=="string"&&(u=u.concat(a?o.split(a):o)),r.indexOf(".")>-1&&(u=r.split("."));var l=Sm(this.data,u);return l||!s||typeof o!="string"?l:vj(this.data&&this.data[r]&&this.data[r][n],o,a)}},{key:"addResource",value:function(r,n,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=this.options.keySeparator;s===void 0&&(s=".");var u=[r,n];o&&(u=u.concat(s?o.split(s):o)),r.indexOf(".")>-1&&(i=n,n=(u=r.split("."))[1]),this.addNamespaces(n),pj(this.data,u,i),a.silent||this.emit("added",r,n,o,i)}},{key:"addResources",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(r,n,a,o[a],{silent:!0});i.silent||this.emit("added",r,n,o)}},{key:"addResourceBundle",value:function(r,n,o,i,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[r,n];r.indexOf(".")>-1&&(i=o,o=n,n=(u=r.split("."))[1]),this.addNamespaces(n);var l=Sm(this.data,u)||{};i?gj(l,o,a):l=Nr({},l,o),pj(this.data,u,l),s.silent||this.emit("added",r,n,o)}},{key:"removeResourceBundle",value:function(r,n){this.hasResourceBundle(r,n)&&delete this.data[r][n],this.removeNamespaces(n),this.emit("removed",r,n)}},{key:"hasResourceBundle",value:function(r,n){return this.getResource(r,n)!==void 0}},{key:"getResourceBundle",value:function(r,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Nr({},{},this.getResource(r,n)):this.getResource(r,n)}},{key:"getDataByLanguage",value:function(r){return this.data[r]}},{key:"toJSON",value:function(){return this.data}}]),t}(),mj={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,o){var i=this;return e.forEach(function(a){i.processors[a]&&(t=i.processors[a].process(t,r,n,o))}),t}},yj={},bj=function(e){function t(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return pa(this,t),n=hh(this,pf(t).call(this)),xm&&ds.call(ll(n)),Bue(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,ll(n)),n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=ga.create("translator"),n}return Em(t,ds),ha(t,[{key:"changeLanguage",value:function(r){r&&(this.language=r)}},{key:"exists",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var o=this.resolve(r,n);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(r,n){var o=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS;if(o&&r.indexOf(o)>-1){var s=r.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:r,namespaces:a};var u=r.split(o);(o!==i||o===i&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),r=u.join(i)}return typeof a=="string"&&(a=[a]),{key:r,namespaces:a}}},{key:"translate",value:function(r,n,o){var i=this;if(fs(n)!=="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(r[r.length-1],n),u=s.key,l=s.namespaces,c=l[l.length-1],f=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){var p=n.nsSeparator||this.options.nsSeparator;return c+p+u}return u}var h=this.resolve(r,n),g=h&&h.res,m=h&&h.usedKey||u,y=h&&h.exactUsedKey||u,v=Object.prototype.toString.apply(g),E=["[object Number]","[object Function]","[object RegExp]"],w=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,C=typeof g!="string"&&typeof g!="boolean"&&typeof g!="number";if(S&&g&&C&&E.indexOf(v)<0&&(typeof w!="string"||v!=="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,g,Nr({},n,{ns:l})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(a){var x=v==="[object Array]",_=x?[]:{},P=x?y:m;for(var q in g)if(Object.prototype.hasOwnProperty.call(g,q)){var H="".concat(P).concat(a).concat(q);_[q]=this.translate(H,Nr({},n,{joinArrays:!1,ns:l})),_[q]===H&&(_[q]=g[q])}g=_}}else if(S&&typeof w=="string"&&v==="[object Array]")(g=g.join(w))&&(g=this.extendTranslation(g,r,n,o));else{var k=!1,M=!1,I=n.count!==void 0&&typeof n.count!="string",T=t.hasDefaultValue(n),F=I?this.pluralResolver.getSuffix(f,n.count):"",U=n["defaultValue".concat(F)]||n.defaultValue;!this.isValidLookup(g)&&T&&(k=!0,g=U),this.isValidLookup(g)||(M=!0,g=u);var R=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Z=R&&M?void 0:g,re=T&&U!==g&&this.options.updateMissing;if(M||k||re){if(this.logger.log(re?"updateKey":"missingKey",f,c,u,re?U:g),a){var O=this.resolve(u,Nr({},n,{keySeparator:!1}));O&&O.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var A=[],V=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&V&&V[0])for(var B=0;B<V.length;B++)A.push(V[B]);else this.options.saveMissingTo==="all"?A=this.languageUtils.toResolveHierarchy(n.lng||this.language):A.push(n.lng||this.language);var L=function(j,W,X){i.options.missingKeyHandler?i.options.missingKeyHandler(j,c,W,re?X:Z,re,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(j,c,W,re?X:Z,re,n),i.emit("missingKey",j,c,W,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?A.forEach(function(j){i.pluralResolver.getSuffixes(j).forEach(function(W){L([j],u+W,n["defaultValue".concat(W)]||U)})}):L(A,u,U))}g=this.extendTranslation(g,r,n,h,o),M&&g===u&&this.options.appendNamespaceToMissingKey&&(g="".concat(c,":").concat(u)),(M||k)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{key:"extendTranslation",value:function(r,n,o,i,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(Nr({},o,{interpolation:Nr({},this.options.interpolation,o.interpolation)}));var u,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=r.match(this.interpolator.nestingRegexp);u=c&&c.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=Nr({},this.options.interpolation.defaultVariables,f)),r=this.interpolator.interpolate(r,f,o.lng||this.language,o),l){var d=r.match(this.interpolator.nestingRegexp);u<(d&&d.length)&&(o.nest=!1)}o.nest!==!1&&(r=this.interpolator.nest(r,function(){for(var g=arguments.length,m=new Array(g),y=0;y<g;y++)m[y]=arguments[y];return a&&a[0]===m[0]&&!o.context?(s.logger.warn("It seems you are nesting recursively key: ".concat(m[0]," in key: ").concat(n[0])),null):s.translate.apply(s,m.concat([n]))},o)),o.interpolation&&this.interpolator.reset()}var p=o.postProcess||this.options.postProcess,h=typeof p=="string"?[p]:p;return r!=null&&h&&h.length&&o.applyPostProcessor!==!1&&(r=mj.handle(h,r,n,this.options&&this.options.postProcessPassResolved?Nr({i18nResolved:i},o):o,this)),r}},{key:"resolve",value:function(r){var n,o,i,a,s,u=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof r=="string"&&(r=[r]),r.forEach(function(c){if(!u.isValidLookup(n)){var f=u.extractFromKey(c,l),d=f.key;o=d;var p=f.namespaces;u.options.fallbackNS&&(p=p.concat(u.options.fallbackNS));var h=l.count!==void 0&&typeof l.count!="string",g=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",m=l.lngs?l.lngs:u.languageUtils.toResolveHierarchy(l.lng||u.language,l.fallbackLng);p.forEach(function(y){u.isValidLookup(n)||(s=y,!yj["".concat(m[0],"-").concat(y)]&&u.utils&&u.utils.hasLoadedNamespace&&!u.utils.hasLoadedNamespace(s)&&(yj["".concat(m[0],"-").concat(y)]=!0,u.logger.warn('key "'.concat(o,'" for languages "').concat(m.join(", "),`" won't get resolved as namespace "`).concat(s,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(function(v){if(!u.isValidLookup(n)){a=v;var E,w,S=d,C=[S];for(u.i18nFormat&&u.i18nFormat.addLookupKeys?u.i18nFormat.addLookupKeys(C,d,v,y,l):(h&&(E=u.pluralResolver.getSuffix(v,l.count)),h&&g&&C.push(S+E),g&&C.push(S+="".concat(u.options.contextSeparator).concat(l.context)),h&&C.push(S+=E));w=C.pop();)u.isValidLookup(n)||(i=w,n=u.getResource(v,y,w,l))}}))})}}),{res:n,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:s}}},{key:"isValidLookup",value:function(r){return!(r===void 0||!this.options.returnNull&&r===null||!this.options.returnEmptyString&&r==="")}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,n,o,i):this.resourceStore.getResource(r,n,o,i)}}],[{key:"hasDefaultValue",value:function(r){var n="defaultValue";for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n===o.substring(0,n.length)&&r[o]!==void 0)return!0;return!1}}]),t}();function mw(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Lue=function(){function e(t){pa(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ga.create("languageUtils")}return ha(e,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var r=t.split("-");return r.length===2?null:(r.pop(),r[r.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(r.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var r=t.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map(function(o){return o.toLowerCase()}):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=mw(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=mw(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=mw(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var r,n=this;return t?(t.forEach(function(o){if(!r){var i=n.formatLanguageCode(o);n.options.supportedLngs&&!n.isSupportedCode(i)||(r=i)}}),!r&&this.options.supportedLngs&&t.forEach(function(o){if(!r){var i=n.getLanguagePartFromCode(o);if(n.isSupportedCode(i))return r=i;r=n.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!r)return t.default||[];var n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function(t,r){var n=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],t),i=[],a=function(s){s&&(n.isSupportedCode(s)?i.push(s):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(s)))};return typeof t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),o.forEach(function(s){i.indexOf(s)<0&&a(n.formatLanguageCode(s))}),i}}]),e}(),Mue=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],zue={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};function Vue(){var e={};return Mue.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:zue[t.fc]}})}),e}var Rue=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};pa(this,e),this.languageUtils=t,this.options=r,this.logger=ga.create("pluralResolver"),this.rules=Vue()}return ha(e,[{key:"addRule",value:function(t,r){this.rules[t]=r}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var r=this.getRule(t);return r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,r){return this.getSuffixes(t).map(function(n){return r+n})}},{key:"getSuffixes",value:function(t){var r=this,n=this.getRule(t);return n?n.numbers.map(function(o){return r.getSuffix(t,o)}):[]}},{key:"getSuffix",value:function(t,r){var n=this,o=this.getRule(t);if(o){var i=o.noAbs?o.plurals(r):o.plurals(Math.abs(r)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),$ue=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pa(this,e),this.logger=ga.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return ha(e,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=r.escape!==void 0?r.escape:jue,this.escapeValue=r.escapeValue===void 0||r.escapeValue,this.useRawValueToEscape=r.useRawValueToEscape!==void 0&&r.useRawValueToEscape,this.prefix=r.prefix?hf(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?hf(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?hf(r.nestingPrefix):r.nestingPrefixEscaped||hf("$t("),this.nestingSuffix=r.nestingSuffix?hf(r.nestingSuffix):r.nestingSuffixEscaped||hf(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0&&r.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(t,r,n,o){var i,a,s,u=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(g){return g.replace(/\$/g,"$$$$")}var f=function(g){if(g.indexOf(u.formatSeparator)<0){var m=hj(r,l,g);return u.alwaysFormat?u.format(m,void 0,n,Nr({},o,r,{interpolationkey:g})):m}var y=g.split(u.formatSeparator),v=y.shift().trim(),E=y.join(u.formatSeparator).trim();return u.format(hj(r,l,v),E,n,Nr({},o,r,{interpolationkey:v}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,h=[{regex:this.regexpUnescape,safeValue:function(g){return c(g)}},{regex:this.regexp,safeValue:function(g){return u.escapeValue?c(u.escape(g)):c(g)}}];return h.forEach(function(g){for(s=0;i=g.regex.exec(t);){if((a=f(i[1].trim()))===void 0)if(typeof d=="function"){var m=d(t,i,o);a=typeof m=="string"?m:""}else{if(p){a=i[0];continue}u.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(t)),a=""}else typeof a=="string"||u.useRawValueToEscape||(a=dj(a));var y=g.safeValue(a);if(t=t.replace(i[0],y),p?(g.regex.lastIndex+=y.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,++s>=u.maxReplaces)break}}),t}},{key:"nest",value:function(t,r){var n,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=Nr({},a);function u(d,p){var h=this.nestingOptionsSeparator;if(d.indexOf(h)<0)return d;var g=d.split(new RegExp("".concat(h,"[ ]*{"))),m="{".concat(g[1]);d=g[0],m=(m=this.interpolate(m,s)).replace(/'/g,'"');try{s=JSON.parse(m),p&&(s=Nr({},p,s))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),y),"".concat(d).concat(h).concat(m)}return delete s.defaultValue,d}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(t);){var l=[],c=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map(function(d){return d.trim()});n[1]=f.shift(),l=f,c=!0}if((o=r(u.call(this,n[1].trim(),s),s))&&n[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=dj(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(t)),o=""),c&&(o=l.reduce(function(d,p){return i.format(d,p,a.lng,Nr({},a,{interpolationkey:n[1].trim()}))},o.trim())),t=t.replace(n[0],o),this.regexp.lastIndex=0}return t}}]),e}(),Hue=function(e){function t(r,n,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return pa(this,t),i=hh(this,pf(t).call(this)),xm&&ds.call(ll(i)),i.backend=r,i.store=n,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=ga.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return Em(t,ds),ha(t,[{key:"queueLoad",value:function(r,n,o,i){var a=this,s=[],u=[],l=[],c=[];return r.forEach(function(f){var d=!0;n.forEach(function(p){var h="".concat(f,"|").concat(p);!o.reload&&a.store.hasResourceBundle(f,p)?a.state[h]=2:a.state[h]<0||(a.state[h]===1?u.indexOf(h)<0&&u.push(h):(a.state[h]=1,d=!1,u.indexOf(h)<0&&u.push(h),s.indexOf(h)<0&&s.push(h),c.indexOf(p)<0&&c.push(p)))}),d||l.push(f)}),(s.length||u.length)&&this.queue.push({pending:u,loaded:{},errors:[],callback:i}),{toLoad:s,pending:u,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(r,n,o){var i=r.split("|"),a=i[0],s=i[1];n&&this.emit("failedLoading",a,s,n),o&&this.store.addResourceBundle(a,s,o),this.state[r]=n?-1:2;var u={};this.queue.forEach(function(l){(function(c,f,d,p){var h=vw(c,f,Object),g=h.obj,m=h.k;g[m]=g[m]||[],g[m].push(d)})(l.loaded,[a],s),function(c,f){for(var d=c.indexOf(f);d!==-1;)c.splice(d,1),d=c.indexOf(f)}(l.pending,r),n&&l.errors.push(n),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){u[c]||(u[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){u[c].indexOf(f)<0&&u[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(r,n,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,u=arguments.length>5?arguments[5]:void 0;return r.length?this.backend[o](r,n,function(l,c){l&&c&&a<5?setTimeout(function(){i.read.call(i,r,n,o,a+1,2*s,u)},s):u(l,c)}):u(null,{})}},{key:"prepareLoading",value:function(r,n){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof n=="string"&&(n=[n]);var s=this.queueLoad(r,n,i,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(u){o.loadOne(u)})}},{key:"load",value:function(r,n,o){this.prepareLoading(r,n,{},o)}},{key:"reload",value:function(r,n,o){this.prepareLoading(r,n,{reload:!0},o)}},{key:"loadOne",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=r.split("|"),a=i[0],s=i[1];this.read(a,s,"read",void 0,void 0,function(u,l){u&&n.logger.warn("".concat(o,"loading namespace ").concat(s," for language ").concat(a," failed"),u),!u&&l&&n.logger.log("".concat(o,"loaded namespace ").concat(s," for language ").concat(a),l),n.loaded(r,u,l)})}},{key:"saveMissing",value:function(r,n,o,i,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(r,n,o,i,null,Nr({},s,{isUpdate:a})),r&&r[0]&&this.store.addResource(r[0],n,o,i))}}]),t}();function Uue(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(fs(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),fs(e[2])==="object"||fs(e[3])==="object"){var r=e[3]||e[2];Object.keys(r).forEach(function(n){t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:function(e,t,r,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function wj(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Cm(){}var que=function(e){function t(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(pa(this,t),r=hh(this,pf(t).call(this)),xm&&ds.call(ll(r)),r.options=wj(n),r.services={},r.logger=ga,r.modules={external:[]},o&&!r.isInitialized&&!n.isClone){if(!r.options.initImmediate)return r.init(n,o),hh(r,ll(r));setTimeout(function(){r.init(n,o)},0)}return r}return Em(t,ds),ha(t,[{key:"init",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(p){return p?typeof p=="function"?new p:p:null}if(typeof n=="function"&&(o=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=Nr({},Uue(),this.options,wj(n)),this.format=this.options.interpolation.format,o||(o=Cm),!this.options.isClone){this.modules.logger?ga.init(i(this.modules.logger),this.options):ga.init(null,this.options);var a=new Lue(this.options);this.store=new Iue(this.options.resources,this.options);var s=this.services;s.logger=ga,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new Rue(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new $ue(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Hue(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(p){for(var h=arguments.length,g=new Array(h>1?h-1:0),m=1;m<h;m++)g[m-1]=arguments[m];r.emit.apply(r,[p].concat(g))}),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new bj(this.services,this.options),this.translator.on("*",function(p){for(var h=arguments.length,g=new Array(h>1?h-1:0),m=1;m<h;m++)g[m-1]=arguments[m];r.emit.apply(r,[p].concat(g))}),this.modules.external.forEach(function(p){p.init&&p.init(r)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(p){r[p]=function(){var h;return(h=r.store)[p].apply(h,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(p){r[p]=function(){var h;return(h=r.store)[p].apply(h,arguments),r}});var f=gh(),d=function(){var p=function(h,g){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),f.resolve(g),o(h,g)};if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return p(null,r.t.bind(r));r.changeLanguage(r.options.lng,p)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cm,i=o,a=typeof r=="string"?r:this.language;if(typeof r=="function"&&(i=r),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var s=[],u=function(c){c&&n.services.languageUtils.toResolveHierarchy(c).forEach(function(f){s.indexOf(f)<0&&s.push(f)})};if(a)u(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(c){return u(c)})}this.options.preload&&this.options.preload.forEach(function(c){return u(c)}),this.services.backendConnector.load(s,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(r,n,o){var i=gh();return r||(r=this.languages),n||(n=this.options.ns),o||(o=Cm),this.services.backendConnector.reload(r,n,function(a){i.resolve(),o(a)}),i}},{key:"use",value:function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&mj.addPostProcessor(r),r.type==="3rdParty"&&this.modules.external.push(r),this}},{key:"changeLanguage",value:function(r,n){var o=this;this.isLanguageChangingTo=r;var i=gh();this.emit("languageChanging",r);var a=function(s){r||s||!o.services.languageDetector||(s=[]);var u=typeof s=="string"?s:o.services.languageUtils.getBestMatchFromCodes(s);u&&(o.language||(o.language=u,o.languages=o.services.languageUtils.toResolveHierarchy(u)),o.translator.language||o.translator.changeLanguage(u),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(u)),o.loadResources(u,function(l){(function(c,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,i.resolve(function(){return o.t.apply(o,arguments)}),n&&n(c,function(){return o.t.apply(o,arguments)})})(l,u)})};return r||!this.services.languageDetector||this.services.languageDetector.async?!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(r):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(r,n,o){var i=this,a=function s(u,l){var c;if(fs(l)!=="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),p=2;p<f;p++)d[p-2]=arguments[p];c=i.options.overloadTranslationOptionHandler([u,l].concat(d))}else c=Nr({},l);c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns;var h=i.options.keySeparator||".",g=o?"".concat(o).concat(h).concat(u):u;return i.t(g,c)};return typeof r=="string"?a.lng=r:a.lngs=r,a.ns=n,a.keyPrefix=o,a}},{key:"t",value:function(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)}},{key:"exists",value:function(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)}},{key:"setDefaultNamespace",value:function(r){this.options.defaultNS=r}},{key:"hasLoadedNamespace",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],a=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var u=function(c,f){var d=n.services.backendConnector.state["".concat(c,"|").concat(f)];return d===-1||d===2};if(o.precheck){var l=o.precheck(this,u);if(l!==void 0)return l}return!!this.hasResourceBundle(i,r)||!this.services.backendConnector.backend||!(!u(i,r)||a&&!u(s,r))}},{key:"loadNamespaces",value:function(r,n){var o=this,i=gh();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)}),this.loadResources(function(a){i.resolve(),n&&n(a)}),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function(r,n){var o=gh();typeof r=="string"&&(r=[r]);var i=this.options.preload||[],a=r.filter(function(s){return i.indexOf(s)<0});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(s){o.resolve(),n&&n(s)}),o):(n&&n(),Promise.resolve())}},{key:"dir",value:function(r){return r||(r=this.languages&&this.languages.length>0?this.languages[0]:this.language),r?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(r))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(r,n)}},{key:"cloneInstance",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cm,i=Nr({},this.options,n,{isClone:!0}),a=new t(i),s=["store","services","language"];return s.forEach(function(u){a[u]=r[u]}),a.services=Nr({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new bj(a.services,a.options),a.translator.on("*",function(u){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit.apply(a,[u].concat(c))}),a.init(i,o),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),gf=new que;function yn(e,t){gf.addResourceBundle(e,"translation",t,!0,!0)}function Kue(e){gf.changeLanguage(e)}function Gue(e){return gf.getResourceBundle(e,"translation")}gf.init({lng:"zh-CN",resources:{}});var ye=gf.t.bind(gf);yn("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),yn("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Wue=l6?{}.toString:function(){return"[object "+Rv(this)+"]"};l6||Tu(Object.prototype,"toString",Wue,{unsafe:!0});var Ej=Array.isArray||function(e){return Ou(e)=="Array"},Sj=function(){},Yue=[],xj=Jd("Reflect","construct"),yw=/^\s*(?:class|function)\b/,Xue=Nt(yw.exec),Jue=!yw.exec(Sj),vh=function(e){if(!jr(e))return!1;try{return xj(Sj,Yue,e),!0}catch{return!1}},Zue=!xj||Hr(function(){var e;return vh(vh.call)||!vh(Object)||!vh(function(){e=!0})||e})?function(e){if(!jr(e))return!1;switch(Rv(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Jue||!!Xue(yw,t6(e))}:vh,Que=vn("species"),Cj=qe.Array,ele=function(e,t){return new(function(r){var n;return Ej(r)&&(n=r.constructor,(Zue(n)&&(n===Cj||Ej(n.prototype))||mi(n)&&(n=n[Que])===null)&&(n=void 0)),n===void 0?Cj:n}(e))(t===0?0:t)},Dj=Nt([].push),ps=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,h=X4(u),g=CA(h),m=ok(l,c),y=Mv(g),v=0,E=f||ele,w=t?E(u,y):r||a?E(u,0):void 0;y>v;v++)if((s||v in g)&&(p=m(d=g[v],v,h),e))if(t)w[v]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:Dj(w,d)}else switch(e){case 4:return!1;case 7:Dj(w,d)}return i?-1:n||o?o:w}},tle={forEach:ps(0),map:ps(1),filter:ps(2),some:ps(3),every:ps(4),find:ps(5),findIndex:ps(6),filterReject:ps(7)}.forEach,rle=function(e,t){var r=[][e];return!!r&&Hr(function(){r.call(null,t||function(){throw 1},1)})}("forEach"),bw=rle?[].forEach:function(e){return tle(this,e,arguments.length>1?arguments[1]:void 0)},_j=function(e){if(e&&e.forEach!==bw)try{On(e,"forEach",bw)}catch{e.forEach=bw}};for(var ww in Gv)Gv[ww]&&_j(qe[ww]&&qe[ww].prototype);_j(vk),yn("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),yn("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var nle={type:"paragraph",renderElem:function(e,t,r){return $e("p",null,t)}},Dm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _m(e){var t={exports:{}};return e(t,t.exports),t.exports}var hs,Om,Am=function(e){return e&&e.Math==Math&&e},Ye=Am(typeof globalThis=="object"&&globalThis)||Am(typeof window=="object"&&window)||Am(typeof self=="object"&&self)||Am(typeof Dm=="object"&&Dm)||function(){return this}()||Function("return this")(),tr=function(e){try{return!!e()}catch{return!0}},Jo=!tr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),mh=Function.prototype.call,br=mh.bind?mh.bind(mh):function(){return mh.apply(mh,arguments)},Oj={}.propertyIsEnumerable,Aj=Object.getOwnPropertyDescriptor,ole=Aj&&!Oj.call({1:2},1)?function(e){var t=Aj(this,e);return!!t&&t.enumerable}:Oj,kj={f:ole},Ew=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Nj=Function.prototype,Sw=Nj.bind,xw=Nj.call,ile=Sw&&Sw.bind(xw),ze=Sw?function(e){return e&&ile(xw,e)}:function(e){return e&&function(){return xw.apply(e,arguments)}},ale=ze({}.toString),sle=ze("".slice),gs=function(e){return sle(ale(e),8,-1)},Cw=Ye.Object,ule=ze("".split),km=tr(function(){return!Cw("z").propertyIsEnumerable(0)})?function(e){return gs(e)=="String"?ule(e,""):Cw(e)}:Cw,lle=Ye.TypeError,Co=function(e){if(e==null)throw lle("Can't call method on "+e);return e},vf=function(e){return km(Co(e))},ln=function(e){return typeof e=="function"},Zo=function(e){return typeof e=="object"?e!==null:ln(e)},cle=function(e){return ln(e)?e:void 0},yh=function(e,t){return arguments.length<2?cle(Ye[e]):Ye[e]&&Ye[e][t]},Tj=ze({}.isPrototypeOf),Dw=yh("navigator","userAgent")||"",Pj=Ye.process,Bj=Ye.Deno,Fj=Pj&&Pj.versions||Bj&&Bj.version,jj=Fj&&Fj.v8;jj&&(Om=(hs=jj.split("."))[0]>0&&hs[0]<4?1:+(hs[0]+hs[1])),!Om&&Dw&&(!(hs=Dw.match(/Edge\/(\d+)/))||hs[1]>=74)&&(hs=Dw.match(/Chrome\/(\d+)/))&&(Om=+hs[1]);var _w=Om,Ow=!!Object.getOwnPropertySymbols&&!tr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_w&&_w<41}),Aw=Ow&&!Symbol.sham&&typeof Symbol.iterator=="symbol",fle=Ye.Object,kw=Aw?function(e){return typeof e=="symbol"}:function(e){var t=yh("Symbol");return ln(t)&&Tj(t.prototype,fle(e))},dle=Ye.String,Ij=function(e){try{return dle(e)}catch{return"Object"}},ple=Ye.TypeError,Lj=function(e){if(ln(e))return e;throw ple(Ij(e)+" is not a function")},Nm=function(e,t){var r=e[t];return r==null?void 0:Lj(r)},hle=Ye.TypeError,gle=Object.defineProperty,Nw=function(e,t){try{gle(Ye,e,{value:t,configurable:!0,writable:!0})}catch{Ye[e]=t}return t},vs=Ye["__core-js_shared__"]||Nw("__core-js_shared__",{}),Tw=_m(function(e){(e.exports=function(t,r){return vs[t]||(vs[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),vle=Ye.Object,bh=function(e){return vle(Co(e))},mle=ze({}.hasOwnProperty),Do=Object.hasOwn||function(e,t){return mle(bh(e),t)},yle=0,ble=Math.random(),wle=ze(1 .toString),Mj=function(e){return"Symbol("+(e===void 0?"":e)+")_"+wle(++yle+ble,36)},wh=Tw("wks"),cl=Ye.Symbol,zj=cl&&cl.for,Ele=Aw?cl:cl&&cl.withoutSetter||Mj,Jn=function(e){if(!Do(wh,e)||!Ow&&typeof wh[e]!="string"){var t="Symbol."+e;Ow&&Do(cl,e)?wh[e]=cl[e]:wh[e]=Aw&&zj?zj(t):Ele(t)}return wh[e]},Sle=Ye.TypeError,xle=Jn("toPrimitive"),Pw=function(e){var t=function(r,n){if(!Zo(r)||kw(r))return r;var o,i=Nm(r,xle);if(i){if(o=br(i,r,n),!Zo(o)||kw(o))return o;throw Sle("Can't convert object to primitive value")}return function(a,s){var u,l;if(ln(u=a.toString)&&!Zo(l=br(u,a))||ln(u=a.valueOf)&&!Zo(l=br(u,a)))return l;throw hle("Can't convert object to primitive value")}(r)}(e,"string");return kw(t)?t:t+""},Bw=Ye.document,Cle=Zo(Bw)&&Zo(Bw.createElement),Fw=function(e){return Cle?Bw.createElement(e):{}},Vj=!Jo&&!tr(function(){return Object.defineProperty(Fw("div"),"a",{get:function(){return 7}}).a!=7}),Rj=Object.getOwnPropertyDescriptor,jw={f:Jo?Rj:function(e,t){if(e=vf(e),t=Pw(t),Vj)try{return Rj(e,t)}catch{}if(Do(e,t))return Ew(!br(kj.f,e,t),e[t])}},Dle=Ye.String,_le=Ye.TypeError,Zn=function(e){if(Zo(e))return e;throw _le(Dle(e)+" is not an object")},Ole=Ye.TypeError,$j=Object.defineProperty,mf={f:Jo?$j:function(e,t,r){if(Zn(e),t=Pw(t),Zn(r),Vj)try{return $j(e,t,r)}catch{}if("get"in r||"set"in r)throw Ole("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},yf=Jo?function(e,t,r){return mf.f(e,t,Ew(1,r))}:function(e,t,r){return e[t]=r,e},Ale=ze(Function.toString);ln(vs.inspectSource)||(vs.inspectSource=function(e){return Ale(e)});var Tm,Eh,Pm,Iw=vs.inspectSource,Hj=Ye.WeakMap,kle=ln(Hj)&&/native code/.test(Iw(Hj)),Uj=Tw("keys"),qj=function(e){return Uj[e]||(Uj[e]=Mj(e))},Lw={},Mw=Ye.TypeError,Nle=Ye.WeakMap;if(kle||vs.state){var fl=vs.state||(vs.state=new Nle),Tle=ze(fl.get),Kj=ze(fl.has),Ple=ze(fl.set);Tm=function(e,t){if(Kj(fl,e))throw new Mw("Object already initialized");return t.facade=e,Ple(fl,e,t),t},Eh=function(e){return Tle(fl,e)||{}},Pm=function(e){return Kj(fl,e)}}else{var bf=qj("state");Lw[bf]=!0,Tm=function(e,t){if(Do(e,bf))throw new Mw("Object already initialized");return t.facade=e,yf(e,bf,t),t},Eh=function(e){return Do(e,bf)?e[bf]:{}},Pm=function(e){return Do(e,bf)}}var zw={set:Tm,get:Eh,has:Pm,enforce:function(e){return Pm(e)?Eh(e):Tm(e,{})},getterFor:function(e){return function(t){var r;if(!Zo(t)||(r=Eh(t)).type!==e)throw Mw("Incompatible receiver, "+e+" required");return r}}},Gj=Function.prototype,Ble=Jo&&Object.getOwnPropertyDescriptor,Vw=Do(Gj,"name"),Bm={EXISTS:Vw,PROPER:Vw&&(function(){}).name==="something",CONFIGURABLE:Vw&&(!Jo||Jo&&Ble(Gj,"name").configurable)},Sh=_m(function(e){var t=Bm.CONFIGURABLE,r=zw.get,n=zw.enforce,o=String(String).split("String");(e.exports=function(i,a,s,u){var l,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet,p=u&&u.name!==void 0?u.name:a;ln(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Do(s,"name")||t&&s.name!==p)&&yf(s,"name",p),(l=n(s)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Ye?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=s:yf(i,a,s)):f?i[a]=s:Nw(a,s)})(Function.prototype,"toString",function(){return ln(this)&&r(this).source||Iw(this)})}),Fle=Math.ceil,jle=Math.floor,wf=function(e){var t=+e;return t!=t||t===0?0:(t>0?jle:Fle)(t)},Ile=Math.max,Lle=Math.min,xh=function(e,t){var r=wf(e);return r<0?Ile(r+t,0):Lle(r,t)},Mle=Math.min,Ch=function(e){return e>0?Mle(wf(e),9007199254740991):0},Fm=function(e){return Ch(e.length)},Wj=function(e){return function(t,r,n){var o,i=vf(t),a=Fm(i),s=xh(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},Yj={includes:Wj(!0),indexOf:Wj(!1)},zle=Yj.indexOf,Xj=ze([].push),Jj=function(e,t){var r,n=vf(e),o=0,i=[];for(r in n)!Do(Lw,r)&&Do(n,r)&&Xj(i,r);for(;t.length>o;)Do(n,r=t[o++])&&(~zle(i,r)||Xj(i,r));return i},jm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vle=jm.concat("length","prototype"),Rle={f:Object.getOwnPropertyNames||function(e){return Jj(e,Vle)}},Zj={f:Object.getOwnPropertySymbols},$le=ze([].concat),Hle=yh("Reflect","ownKeys")||function(e){var t=Rle.f(Zn(e)),r=Zj.f;return r?$le(t,r(e)):t},Ule=function(e,t){for(var r=Hle(t),n=mf.f,o=jw.f,i=0;i<r.length;i++){var a=r[i];Do(e,a)||n(e,a,o(t,a))}},qle=/#|\.prototype\./,Dh=function(e,t){var r=Gle[Kle(e)];return r==Yle||r!=Wle&&(ln(t)?tr(t):!!t)},Kle=Dh.normalize=function(e){return String(e).replace(qle,".").toLowerCase()},Gle=Dh.data={},Wle=Dh.NATIVE="N",Yle=Dh.POLYFILL="P",Xle=Dh,Jle=jw.f,Lr=function(e,t){var r,n,o,i,a,s=e.target,u=e.global,l=e.stat;if(r=u?Ye:l?Ye[s]||Nw(s,{}):(Ye[s]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=Jle(r,n))&&a.value:r[n],!Xle(u?n:s+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Ule(i,o)}(e.sham||o&&o.sham)&&yf(i,"sham",!0),Sh(r,n,i,e)}},Qj=ze(ze.bind),Im=Array.isArray||function(e){return gs(e)=="Array"},eI={};eI[Jn("toStringTag")]="z";var Rw=String(eI)==="[object z]",Zle=Jn("toStringTag"),Qle=Ye.Object,ece=gs(function(){return arguments}())=="Arguments",$w=Rw?gs:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=Qle(e),Zle))=="string"?r:ece?gs(t):(n=gs(t))=="Object"&&ln(t.callee)?"Arguments":n},tI=function(){},tce=[],rI=yh("Reflect","construct"),Hw=/^\s*(?:class|function)\b/,rce=ze(Hw.exec),nce=!Hw.exec(tI),_h=function(e){if(!ln(e))return!1;try{return rI(tI,tce,e),!0}catch{return!1}},Uw=!rI||tr(function(){var e;return _h(_h.call)||!_h(Object)||!_h(function(){e=!0})||e})?function(e){if(!ln(e))return!1;switch($w(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return nce||!!rce(Hw,Iw(e))}:_h,oce=Jn("species"),nI=Ye.Array,ice=function(e,t){return new(function(r){var n;return Im(r)&&(n=r.constructor,(Uw(n)&&(n===nI||Im(n.prototype))||Zo(n)&&(n=n[oce])===null)&&(n=void 0)),n===void 0?nI:n}(e))(t===0?0:t)},oI=ze([].push),ms=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,h=bh(u),g=km(h),m=function(S,C){return Lj(S),C===void 0?S:Qj?Qj(S,C):function(){return S.apply(C,arguments)}}(l,c),y=Fm(g),v=0,E=f||ice,w=t?E(u,y):r||a?E(u,0):void 0;y>v;v++)if((s||v in g)&&(p=m(d=g[v],v,h),e))if(t)w[v]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:oI(w,d)}else switch(e){case 4:return!1;case 7:oI(w,d)}return i?-1:n||o?o:w}},Lm={forEach:ms(0),map:ms(1),filter:ms(2),some:ms(3),every:ms(4),find:ms(5),findIndex:ms(6),filterReject:ms(7)},ace=Jn("species"),qw=function(e){return _w>=51||!tr(function(){var t=[];return(t.constructor={})[ace]=function(){return{foo:1}},t[e](Boolean).foo!==1})},sce=Lm.filter;Lr({target:"Array",proto:!0,forced:!qw("filter")},{filter:function(e){return sce(this,e,arguments.length>1?arguments[1]:void 0)}});var uce=Rw?{}.toString:function(){return"[object "+$w(this)+"]"};Rw||Sh(Object.prototype,"toString",uce,{unsafe:!0});var Mm,lce=Ye.String,rr=function(e){if($w(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return lce(e)},iI=function(){var e=Zn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Kw=Ye.RegExp,Gw=tr(function(){var e=Kw("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),cce=Gw||tr(function(){return!Kw("a","y").sticky}),aI={BROKEN_CARET:Gw||tr(function(){var e=Kw("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:cce,UNSUPPORTED_Y:Gw},Ef=Object.keys||function(e){return Jj(e,jm)},fce=Jo?Object.defineProperties:function(e,t){Zn(e);for(var r,n=vf(t),o=Ef(t),i=o.length,a=0;i>a;)mf.f(e,r=o[a++],n[r]);return e},dce=yh("document","documentElement"),sI=qj("IE_PROTO"),Ww=function(){},uI=function(e){return"<script>"+e+"<\/script>"},lI=function(e){e.write(uI("")),e.close();var t=e.parentWindow.Object;return e=null,t},zm=function(){try{Mm=new ActiveXObject("htmlfile")}catch{}var e,t;zm=typeof document<"u"?document.domain&&Mm?lI(Mm):((t=Fw("iframe")).style.display="none",dce.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(uI("document.F=Object")),e.close(),e.F):lI(Mm);for(var r=jm.length;r--;)delete zm.prototype[jm[r]];return zm()};Lw[sI]=!0;var cI,Yw,fI=Object.create||function(e,t){var r;return e!==null?(Ww.prototype=Zn(e),r=new Ww,Ww.prototype=null,r[sI]=e):r=zm(),t===void 0?r:fce(r,t)},pce=Ye.RegExp,hce=tr(function(){var e=pce(".","s");return!(e.dotAll&&e.exec(`
110
+ `)&&e.flags==="s")}),gce=Ye.RegExp,vce=tr(function(){var e=gce("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),mce=zw.get,yce=Tw("native-string-replace",String.prototype.replace),Vm=RegExp.prototype.exec,Xw=Vm,bce=ze("".charAt),wce=ze("".indexOf),Ece=ze("".replace),Jw=ze("".slice),Zw=(Yw=/b*/g,br(Vm,cI=/a/,"a"),br(Vm,Yw,"a"),cI.lastIndex!==0||Yw.lastIndex!==0),dI=aI.BROKEN_CARET,Qw=/()??/.exec("")[1]!==void 0;(Zw||Qw||dI||hce||vce)&&(Xw=function(e){var t,r,n,o,i,a,s,u=this,l=mce(u),c=rr(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=br(Xw,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=dI&&u.sticky,h=br(iI,u),g=u.source,m=0,y=c;if(p&&(h=Ece(h,"y",""),wce(h,"g")===-1&&(h+="g"),y=Jw(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&bce(c,u.lastIndex-1)!==`
111
+ `)&&(g="(?: "+g+")",y=" "+y,m++),r=new RegExp("^(?:"+g+")",h)),Qw&&(r=new RegExp("^"+g+"$(?!\\s)",h)),Zw&&(n=u.lastIndex),o=br(Vm,p?r:u,y),p?o?(o.input=Jw(o.input,m),o[0]=Jw(o[0],m),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Zw&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),Qw&&o&&o.length>1&&br(yce,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=fI(null),i=0;i<d.length;i++)a[(s=d[i])[0]]=o[s[1]];return o});var Oh=Xw;Lr({target:"RegExp",proto:!0,forced:/./.exec!==Oh},{exec:Oh});var e7=Function.prototype,pI=e7.apply,Sce=e7.bind,hI=e7.call,gI=typeof Reflect=="object"&&Reflect.apply||(Sce?hI.bind(pI):function(){return hI.apply(pI,arguments)}),xce=Jn("species"),t7=RegExp.prototype,r7=function(e,t,r,n){var o=Jn(e),i=!tr(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!tr(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[xce]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var s=ze(/./[o]),u=t(o,""[e],function(l,c,f,d,p){var h=ze(l),g=c.exec;return g===Oh||g===t7.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:h(f,c,d)}:{done:!1}});Sh(String.prototype,e,u[0]),Sh(t7,o,u[1])}n&&yf(t7[o],"sham",!0)},Cce=ze("".charAt),vI=ze("".charCodeAt),Dce=ze("".slice),_ce=function(e){return function(t,r){var n,o,i=rr(Co(t)),a=wf(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=vI(i,a))<55296||n>56319||a+1===s||(o=vI(i,a+1))<56320||o>57343?e?Cce(i,a):n:e?Dce(i,a,a+2):o-56320+(n-55296<<10)+65536}},Oce=_ce(!0),n7=function(e,t,r){return t+(r?Oce(e,t).length:1)},Ace=Math.floor,o7=ze("".charAt),kce=ze("".replace),i7=ze("".slice),Nce=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Tce=/\$([$&'`]|\d{1,2})/g,Pce=function(e,t,r,n,o,i){var a=r+e.length,s=n.length,u=Tce;return o!==void 0&&(o=bh(o),u=Nce),kce(i,u,function(l,c){var f;switch(o7(c,0)){case"$":return"$";case"&":return e;case"`":return i7(t,0,r);case"'":return i7(t,a);case"<":f=o[i7(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>s){var p=Ace(d/10);return p===0?l:p<=s?n[p-1]===void 0?o7(c,1):n[p-1]+o7(c,1):l}f=n[d-1]}return f===void 0?"":f})},Bce=Ye.TypeError,Ah=function(e,t){var r=e.exec;if(ln(r)){var n=br(r,e,t);return n!==null&&Zn(n),n}if(gs(e)==="RegExp")return br(Oh,e,t);throw Bce("RegExp#exec called on incompatible receiver")},a7=Jn("replace"),Fce=Math.max,jce=Math.min,Ice=ze([].concat),s7=ze([].push),mI=ze("".indexOf),yI=ze("".slice),Lce="a".replace(/./,"$0")==="$0",bI=!!/./[a7]&&/./[a7]("a","$0")==="";r7("replace",function(e,t,r){var n=bI?"$":"$0";return[function(o,i){var a=Co(this),s=o==null?void 0:Nm(o,a7);return s?br(s,o,a,i):br(t,rr(a),o,i)},function(o,i){var a=Zn(this),s=rr(o);if(typeof i=="string"&&mI(i,n)===-1&&mI(i,"$<")===-1){var u=r(t,a,s,i);if(u.done)return u.value}var l=ln(i);l||(i=rr(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Ah(a,s);if(p===null||(s7(d,p),!c))break;rr(p[0])===""&&(a.lastIndex=n7(s,Ch(a.lastIndex),f))}for(var h,g="",m=0,y=0;y<d.length;y++){for(var v=rr((p=d[y])[0]),E=Fce(jce(wf(p.index),s.length),0),w=[],S=1;S<p.length;S++)s7(w,(h=p[S])===void 0?h:String(h));var C=p.groups;if(l){var x=Ice([v],w,E,s);C!==void 0&&s7(x,C);var _=rr(gI(i,void 0,x))}else _=Pce(v,s,E,w,C,i);E>=m&&(g+=yI(s,m,E)+_,m=E+v.length)}return g+yI(s,m)}]},!!tr(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Lce||bI);var u7=Jn("unscopables"),l7=Array.prototype;l7[u7]==null&&mf.f(l7,u7,{configurable:!0,value:fI(null)});var wI=function(e){l7[u7][e]=!0},Mce=Lm.find,EI=!0;"find"in[]&&Array(1).find(function(){EI=!1}),Lr({target:"Array",proto:!0,forced:EI},{find:function(e){return Mce(this,e,arguments.length>1?arguments[1]:void 0)}}),wI("find");var zce=Jn("match"),SI=function(e){var t;return Zo(e)&&((t=e[zce])!==void 0?!!t:gs(e)=="RegExp")},Vce=Ye.TypeError,Rce=Jn("species"),xI=function(e,t,r){var n=Pw(t);n in e?mf.f(e,n,Ew(0,r)):e[n]=r},$ce=Ye.Array,Hce=Math.max,CI=function(e,t,r){for(var n=Fm(e),o=xh(t,n),i=xh(r===void 0?n:r,n),a=$ce(Hce(i-o,0)),s=0;o<i;o++,s++)xI(a,s,e[o]);return a.length=s,a},Sf=aI.UNSUPPORTED_Y,Uce=Math.min,DI=[].push,qce=ze(/./.exec),xf=ze(DI),kh=ze("".slice);r7("split",function(e,t,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=rr(Co(this)),s=i===void 0?4294967295:i>>>0;if(s===0)return[];if(o===void 0)return[a];if(!SI(o))return br(t,a,o,s);for(var u,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,h=new RegExp(o.source,d+"g");(u=br(Oh,h,a))&&!((l=h.lastIndex)>p&&(xf(f,kh(a,p,u.index)),u.length>1&&u.index<a.length&&gI(DI,f,CI(u,1)),c=u[0].length,p=l,f.length>=s));)h.lastIndex===u.index&&h.lastIndex++;return p===a.length?!c&&qce(h,"")||xf(f,""):xf(f,kh(a,p)),f.length>s?CI(f,0,s):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:br(t,this,o,i)}:t,[function(o,i){var a=Co(this),s=o==null?void 0:Nm(o,e);return s?br(s,o,a,i):br(n,rr(a),o,i)},function(o,i){var a=Zn(this),s=rr(o),u=r(n,a,s,i,n!==t);if(u.done)return u.value;var l=function(w,S){var C,x=Zn(w).constructor;return x===void 0||(C=Zn(x)[Rce])==null?S:function(_){if(Uw(_))return _;throw Vce(Ij(_)+" is not a constructor")}(C)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Sf?"g":"y"),d=new l(Sf?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(s.length===0)return Ah(d,s)===null?[s]:[];for(var h=0,g=0,m=[];g<s.length;){d.lastIndex=Sf?0:g;var y,v=Ah(d,Sf?kh(s,g):s);if(v===null||(y=Uce(Ch(d.lastIndex+(Sf?g:0)),s.length))===h)g=n7(s,g,c);else{if(xf(m,kh(s,h,g)),m.length===p)return m;for(var E=1;E<=v.length-1;E++)if(xf(m,v[E]),m.length===p)return m;g=h=y}}return xf(m,kh(s,h)),m}]},!!tr(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Sf);var c7=`
112
+ \v\f\r                 \u2028\u2029\uFEFF`,_I=ze("".replace),Rm="["+c7+"]",Kce=RegExp("^"+Rm+Rm+"*"),Gce=RegExp(Rm+Rm+"*$"),f7=function(e){return function(t){var r=rr(Co(t));return 1&e&&(r=_I(r,Kce,"")),2&e&&(r=_I(r,Gce,"")),r}},Wce={start:f7(1),end:f7(2),trim:f7(3)},Yce=Bm.PROPER,Xce=Wce.trim;function d7(e){return $("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function Cf(e){return e.length===0?"":e[0].outerHTML}function Df(e){return e.length?e[0].tagName.toLowerCase():""}function Qo(e,t){for(var r="",n=(e.attr("style")||"").split(";"),o=n.length,i=0;i<o;i++){var a=n[i];if(a){var s=a.split(":");s[0].trim()===t&&(r=s[1].trim())}}return r}Lr({target:"String",proto:!0,forced:tr(function(){return!!c7.trim()||"​…᠎".trim()!=="​…᠎"||Yce&&c7.trim.name!=="trim"})},{trim:function(){return Xce(this)}}),Lr({global:!0},{globalThis:Ye}),g1&&($.fn.css=g1),vo&&($.fn.append=vo),qN&&($.fn.prepend=qN),kc&&($.fn.addClass=kc),Nc&&($.fn.removeClass=Nc),Tc&&($.fn.hasClass=Tc),wi&&($.fn.on=wi),RN&&($.fn.off=RN),Za&&($.fn.focus=Za),go&&($.fn.attr=go),f1&&($.fn.removeAttr=f1),Bc&&($.fn.hide=Bc),h1&&($.fn.show=h1),y1&&($.fn.parents=y1),Pc&&($.fn.dataset=Pc),bi&&($.fn.val=bi),m1&&($.fn.text=m1),Ja&&($.fn.html=Ja),Ic&&($.fn.children=Ic),Lc&&($.fn.remove=Lc),jc&&($.fn.find=jc),d1&&($.fn.width=d1),p1&&($.fn.height=p1),HN&&($.fn.filter=HN),Mc&&($.fn.empty=Mc);var Jce={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=$(e);return(t=t.filter(function(o){return!!Ce.isText(o)||!!r.isInline(o)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},p7=function(e,t){return p7=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},p7(e,t);/*! *****************************************************************************
113
+ Copyright (c) Microsoft Corporation.
114
+
115
+ Permission to use, copy, modify, and/or distribute this software for any
116
+ purpose with or without fee is hereby granted.
117
+
118
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
119
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
120
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
121
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
122
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
123
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
124
+ PERFORMANCE OF THIS SOFTWARE.
125
+ ***************************************************************************** */};function Yt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}p7(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ys=function(){return ys=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ys.apply(this,arguments)};function bs(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{u(n.next(l))}catch(c){i(c)}}function s(l){try{u(n.throw(l))}catch(c){i(c)}}function u(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,s)}u((n=n.apply(e,[])).next())})}function ws(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([u,l])}}}function OI(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function gt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function AI(e){var t=gt(D.nodes(e,{match:function(i){return e.children[0]===i},mode:"highest"}),1)[0];if(t==null)return!1;var r=t[0];if(!Te.isElement(r)||r.type==="paragraph"||me.string(r)!=="")return!1;var n=r.children,o=n===void 0?[]:n;return!!Ce.isText(o[0])&&(Q.setNodes(e,{type:"paragraph"}),!0)}var Zce={renderElems:[nle],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[Jce],editorPlugin:function(e){var t=e.deleteBackward,r=e.deleteForward;e.insertText,e.insertBreak;var n=e;return n.deleteBackward=function(o){AI(n)||t(o)},n.deleteForward=function(o){AI(n)||r(o)},n}},Qce=/"/g,efe=ze("".replace),Nh=function(e,t,r,n){var o=rr(Co(e)),i="<"+t;return r!==""&&(i+=" "+r+'="'+efe(rr(n),Qce,"&quot;")+'"'),i+">"+o+"</"+t+">"},Th=function(e){return tr(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function h7(e,t){var r=t,n=e,o=n.bold,i=n.italic,a=n.underline;return o&&(r="<strong>"+r+"</strong>"),n.code&&(r="<code>"+r+"</code>"),i&&(r="<em>"+r+"</em>"),a&&(r="<u>"+r+"</u>"),n.through&&(r="<s>"+r+"</s>"),n.sub&&(r="<sub>"+r+"</sub>"),n.sup&&(r="<sup>"+r+"</sup>"),r}function dl(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}Lr({target:"String",proto:!0,forced:Th("bold")},{bold:function(){return Nh(this,"b","","")}}),Lr({target:"String",proto:!0,forced:Th("italics")},{italics:function(){return Nh(this,"i","","")}}),Lr({target:"String",proto:!0,forced:Th("sub")},{sub:function(){return Nh(this,"sub","","")}}),Lr({target:"String",proto:!0,forced:Th("sup")},{sup:function(){return Nh(this,"sup","","")}});var kI={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},g7=Fw("span").classList,NI=g7&&g7.constructor&&g7.constructor.prototype,tfe=NI===Object.prototype?void 0:NI,TI=function(e,t){var r=[][e];return!!r&&tr(function(){r.call(null,t||function(){throw 1},1)})},rfe=Lm.forEach,v7=TI("forEach")?[].forEach:function(e){return rfe(this,e,arguments.length>1?arguments[1]:void 0)},PI=function(e){if(e&&e.forEach!==v7)try{yf(e,"forEach",v7)}catch{e.forEach=v7}};for(var m7 in kI)kI[m7]&&PI(Ye[m7]&&Ye[m7].prototype);function BI(e,t){return e.selection==null||!!gt(D.nodes(e,{match:function(r){return z.getNodeType(r)==="pre"||!!D.isVoid(e,r)},universal:!0}),1)[0]}function nfe(e,t){Object.keys(t).forEach(function(r){r!=="text"&&D.removeMark(e,r)})}PI(tfe),Lr({target:"Object",stat:!0,forced:tr(function(){Ef(1)})},{keys:function(e){return Ef(bh(e))}});var pl=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var r=this.mark,n=D.marks(t);return n?n[r]:!!gt(D.nodes(t,{match:function(o){return o[r]===!0}}),1)[0]},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return BI(t,this.mark)},e.prototype.exec=function(t,r){var n=this.mark,o=this.marksNeedToRemove;r?t.removeMark(n):(t.addMark(n,!0),o&&o.forEach(function(i){return t.removeMark(i)}))},e}(),ofe='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',ife='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',afe='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',sfe='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',ufe='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',FI='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',jI='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',lfe='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',cfe='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',ffe='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',dfe='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',pfe='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',hfe='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',gfe='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',vfe='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',mfe='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',yfe='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',bfe='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',wfe='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',Efe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="bold",r.title=ye("textStyle.bold"),r.iconSvg=ofe,r.hotkey="mod+b",r}return Yt(t,e),t}(pl),Sfe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="code",r.title=ye("textStyle.code"),r.iconSvg=ufe,r.hotkey="mod+e",r}return Yt(t,e),t}(pl),xfe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="italic",r.title=ye("textStyle.italic"),r.iconSvg=afe,r.hotkey="mod+i",r}return Yt(t,e),t}(pl),Cfe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="through",r.title=ye("textStyle.through"),r.iconSvg=sfe,r.hotkey="mod+shift+x",r}return Yt(t,e),t}(pl),Dfe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="underline",r.title=ye("textStyle.underline"),r.iconSvg=ife,r.hotkey="mod+u",r}return Yt(t,e),t}(pl),_fe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="sub",r.marksNeedToRemove=["sup"],r.title=ye("textStyle.sub"),r.iconSvg=wfe,r.hotkey="",r}return Yt(t,e),t}(pl),Ofe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="sup",r.marksNeedToRemove=["sub"],r.title=ye("textStyle.sup"),r.iconSvg=bfe,r.hotkey="",r}return Yt(t,e),t}(pl),Afe=function(){function e(){this.title=ye("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return BI(t)},e.prototype.exec=function(t,r){var n,o,i=D.nodes(t,{match:function(u){return Ce.isText(u)},universal:!0});try{for(var a=OI(i),s=a.next();!s.done;s=a.next())nfe(t,s.value[0])}catch(u){n={error:u}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},e}(),kfe={renderStyle:function(e,t){var r=e,n=r.bold,o=r.italic,i=r.underline,a=r.code,s=r.through,u=r.sub,l=r.sup,c=t;return n&&(c=$e("strong",null,c)),a&&(c=$e("code",null,c)),o&&(c=$e("em",null,c)),i&&(c=$e("u",null,c)),s&&(c=$e("s",null,c)),u&&(c=$e("sub",null,c)),l&&(c=$e("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new Efe}},{key:"underline",factory:function(){return new Dfe}},{key:"italic",factory:function(){return new xfe}},{key:"through",factory:function(){return new Cfe}},{key:"code",factory:function(){return new Sfe}},{key:"sub",factory:function(){return new _fe}},{key:"sup",factory:function(){return new Ofe}},{key:"clearStyle",factory:function(){return new Afe}}],styleToHtml:function(e,t){if(!Ce.isText(e))return t;if(d7(t))return h7(e,t);var r=$(t);if(Df(r)==="br")return h7(e,"<br>");var n=r.html();return n=h7(e,n),r.html(n),Cf(r)},parseStyleHtml:function(e,t,r){var n=$(e);if(!Ce.isText(t))return t;var o=t;return dl(n,"b,strong")&&(o.bold=!0),dl(n,"i,em")&&(o.italic=!0),dl(n,"u")&&(o.underline=!0),dl(n,"s,strike")&&(o.through=!0),dl(n,"sub")&&(o.sub=!0),dl(n,"sup")&&(o.sup=!0),dl(n,"code")&&(o.code=!0),o}};function Ph(e){return function(t,r,n){return $e("h"+e,null,r)}}var Nfe={type:"header1",renderElem:Ph(1)},Tfe={type:"header2",renderElem:Ph(2)},Pfe={type:"header3",renderElem:Ph(3)},Bfe={type:"header4",renderElem:Ph(4)},Ffe={type:"header5",renderElem:Ph(5)},jfe=Bm.PROPER,y7=RegExp.prototype,II=y7.toString,Ife=ze(iI),Lfe=tr(function(){return II.call({source:"a",flags:"b"})!="/a/b"}),Mfe=jfe&&II.name!="toString";(Lfe||Mfe)&&Sh(RegExp.prototype,"toString",function(){var e=Zn(this),t=rr(e.source),r=e.flags;return"/"+t+"/"+rr(r===void 0&&Tj(y7,e)&&!("flags"in y7)?Ife(e):r)},{unsafe:!0});var b7,zfe=Ye.TypeError,LI=function(e){if(SI(e))throw zfe("The method doesn't accept regular expressions");return e},Vfe=Jn("match"),MI=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Vfe]=!1,"/./"[e](t)}catch{}}return!1},Rfe=jw.f,zI=ze("".startsWith),$fe=ze("".slice),Hfe=Math.min,VI=MI("startsWith");function RI(e){var t=gt(D.nodes(e,{match:function(o){return z.getNodeType(o).startsWith("header")},universal:!0}),1),r=t[0];if(r==null)return"paragraph";var n=gt(r,1)[0];return z.getNodeType(n)}function $I(e){return e.selection==null||!gt(D.nodes(e,{match:function(t){var r=z.getNodeType(t);return r==="paragraph"||!!r.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function HI(e,t){t&&Q.setNodes(e,{type:t})}Lr({target:"String",proto:!0,forced:!(!VI&&(b7=Rfe(String.prototype,"startsWith"),b7&&!b7.writable)||VI)},{startsWith:function(e){var t=rr(Co(this));LI(e);var r=Ch(Hfe(arguments.length>1?arguments[1]:void 0,t.length)),n=rr(e);return zI?zI(t,n,r):$fe(t,r,r+n.length)===n}});var Ufe=function(){function e(){this.title=ye("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(t){var r=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:ye("header.text")}],n=this.getValue(t).toString();return r.forEach(function(o){o.value===n?o.selected=!0:delete o.selected}),r},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return RI(t)},e.prototype.isDisabled=function(t){return $I(t)},e.prototype.exec=function(t,r){HI(t,r.toString())},e}(),Bh=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return RI(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return $I(t)},e.prototype.exec=function(t,r){var n=this.type;HI(t,r===n?"paragraph":n)},e}(),qfe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H1",r.type="header1",r}return Yt(t,e),t}(Bh),Kfe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H2",r.type="header2",r}return Yt(t,e),t}(Bh),Gfe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H3",r.type="header3",r}return Yt(t,e),t}(Bh),Wfe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H4",r.type="header4",r}return Yt(t,e),t}(Bh),Yfe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H5",r.type="header5",r}return Yt(t,e),t}(Bh),Xfe={key:"headerSelect",factory:function(){return new Ufe}},Jfe={key:"header1",factory:function(){return new qfe}},Zfe={key:"header2",factory:function(){return new Kfe}},Qfe={key:"header3",factory:function(){return new Gfe}},ede={key:"header4",factory:function(){return new Wfe}},tde={key:"header5",factory:function(){return new Yfe}};function Fh(e){return function(t,r){return"<h"+e+">"+r+"</h"+e+">"}}function jh(e){return function(t,r,n){var o=$(t);return(r=r.filter(function(i){return!!Ce.isText(i)||!!n.isInline(i)})).length===0&&(r=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:r}}}var rde={renderElems:[Nfe,Tfe,Pfe,Bfe,Ffe],elemsToHtml:[{type:"header1",elemToHtml:Fh(1)},{type:"header2",elemToHtml:Fh(2)},{type:"header3",elemToHtml:Fh(3)},{type:"header4",elemToHtml:Fh(4)},{type:"header5",elemToHtml:Fh(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:jh(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:jh(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:jh(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:jh(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:jh(5)}],menus:[Xfe,Jfe,Zfe,Qfe,ede,tde],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var r=e;return r.insertBreak=function(){var n=gt(D.nodes(r,{match:function(o){return z.getNodeType(o).startsWith("header")},universal:!0}),1)[0];n&&z.isSelectionAtLineEnd(e,n[1])?Q.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},r}},_f=Object.assign,UI=Object.defineProperty,nde=ze([].concat),qI=!_f||tr(function(){if(Jo&&_f({b:1},_f(UI({},"a",{enumerable:!0,get:function(){UI(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(o){t[o]=o}),_f({},e)[r]!=7||Ef(_f({},t)).join("")!=n})?function(e,t){for(var r=bh(e),n=arguments.length,o=1,i=Zj.f,a=kj.f;n>o;)for(var s,u=km(arguments[o++]),l=i?nde(Ef(u),i(u)):Ef(u),c=l.length,f=0;c>f;)s=l[f++],Jo&&!br(a,u,s)||(r[s]=u[s]);return r}:_f;function hl(e,t){e.data==null&&(e.data={});var r=e.data;r.style==null&&(r.style={}),Object.assign(r.style,t)}Lr({target:"Object",stat:!0,forced:Object.assign!==qI},{assign:qI});var ode={selector:"font",preParseHtml:function(e){var t=$(e);if(Df(t)!=="font")return e;var r=t.attr("color")||"";return r&&(t.removeAttr("color"),t.css("color",r)),t[0]}},KI=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,r){},e.prototype.getValue=function(t){var r=this.mark,n=D.marks(t);return n&&n[r]?n[r]:""},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!gt(D.nodes(t,{match:function(r){return z.getNodeType(r)==="pre"||!!D.isVoid(t,r)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){var r=this.mark;if(this.$content==null){var n=$('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),t.selection!=null)){var f=$(c).attr("data-value");f==="0"?D.removeMark(t,r):D.addMark(t,r,f)}}),this.$content=n}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(t),a=t.getMenuConfig(r).colors;(a===void 0?[]:a).forEach(function(l){var c=$('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=$('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)});var s="";r==="color"&&(s=ye("color.default")),r==="bgColor"&&(s=ye("color.clear"));var u=$(`
126
+ <li data-value="0" class="clear">
127
+ <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
128
+ `+s+`
129
+ </li>
130
+ `);return o.prepend(u),o[0]},e}(),ide=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ye("color.color"),r.iconSvg=lfe,r.mark="color",r}return Yt(t,e),t}(KI),ade=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ye("color.bgColor"),r.iconSvg=cfe,r.mark="bgColor",r}return Yt(t,e),t}(KI),GI=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],sde={renderStyle:function(e,t){var r=e,n=r.color,o=r.bgColor,i=t;return n&&hl(i,{color:n}),o&&hl(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!Ce.isText(e))return t;var r,n=e,o=n.color,i=n.bgColor;return o||i?((d7(t)||Df(r=$(t))!=="span")&&(r=$("<span>"+t+"</span>")),o&&r.css("color",o),i&&r.css("background-color",i),Cf(r)):t},preParseHtml:[ode],parseStyleHtml:function(e,t,r){var n=$(e);if(!Ce.isText(t))return t;var o=t,i=Qo(n,"color");i&&(o.color=i);var a=Qo(n,"background-color");return a||(a=Qo(n,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new ide},config:{colors:GI}},{key:"bgColor",factory:function(){return new ade},config:{colors:GI}}]},ude=/^(?:\w+:)?\/\/(\S+)$/,lde=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,cde=/^[^\s\.]+\.\S{2,}$/,fde=Yj.includes;function $m(e){return e===void 0&&(e="r"),e+"-"+JN()}function w7(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function WI(e,t,r,n){return bs(this,void 0,void 0,function(){var o,i;return ws(this,function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(r,n)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return t.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function YI(e,t,r){return bs(this,void 0,void 0,function(){var n;return ws(this,function(o){switch(o.label){case 0:return(n=t.getMenuConfig(e).parseLinkUrl)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}})})}function E7(e){return e.selection==null||!!z.getSelectedElems(e).some(function(t){var r=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(r)||void 0})}function S7(e,t){return{type:"link",url:w7(e),children:t?[{text:t}]:[]}}function XI(e,t,r){return bs(this,void 0,void 0,function(){var n,o,i;return ws(this,function(a){switch(a.label){case 0:return r?(t||(t=r),e.restoreSelection(),E7(e)?[2]:[4,WI("insertLink",e,t,r)]):[2];case 1:return a.sent()?[4,YI("insertLink",e,r)]:[2];case 2:return n=a.sent(),(o=e.selection)==null||(oe.isCollapsed(o)?(e.insertText(" "),i=S7(n,t),Q.insertNodes(e,i),e.insertFragment([{text:" "}])):D.string(e,o)!==t?(e.deleteFragment(),i=S7(n,t),Q.insertNodes(e,i)):(i=S7(n),Q.wrapNodes(e,i,{split:!0}),Q.collapse(e,{edge:"end"}))),[2]}})})}Lr({target:"Array",proto:!0},{includes:function(e){return fde(this,e,arguments.length>1?arguments[1]:void 0)}}),wI("includes");var dde={type:"link",renderElem:function(e,t,r){var n=e,o=n.url,i=n.target;return $e("a",{href:o,target:i===void 0?"_blank":i},t)}},pde={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=$(e);return(t=t.filter(function(o){return!!Ce.isText(o)||!!r.isInline(o)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]),{type:"link",url:n.attr("href")||"",target:n.attr("target")||"",children:t}}};function x7(){return $m("w-e-insert-link")}var hde=function(){function e(){this.title=ye("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=x7(),this.urlInputId=x7(),this.buttonId=x7()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return E7(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var r=t.selection,n=this,o=n.textInputId,i=n.urlInputId,a=n.buttonId,s=gt(Nn(ye("link.text"),o),2),u=s[0],l=$(s[1]),c=gt(Nn(ye("link.url"),i),2),f=c[0],d=$(c[1]),p=gt(ul(a,ye("common.ok")),1)[0];if(this.$content==null){var h=$("<div></div>");h.on("click","#"+a,function(y){y.preventDefault();var v=h.find("#"+o).val(),E=h.find("#"+i).val();XI(t,v,E),t.hidePanelOrModal()}),this.$content=h}var g=this.$content;if(g.empty(),g.append(u),g.append(f),g.append(p),r==null||oe.isCollapsed(r))l.val("");else{var m=D.string(t,r);l.val(m)}return d.val(""),setTimeout(function(){l.focus()}),g[0]},e}();function JI(){return $m("w-e-update-link")}var gde=function(){function e(){this.title=ye("link.edit"),this.iconSvg=FI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=JI(),this.buttonId=JI()}return e.prototype.getSelectedLinkElem=function(t){var r=z.getSelectedNodeByType(t,"link");return r??null},e.prototype.getValue=function(t){var r=this.getSelectedLinkElem(t);return r&&r.url||""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.getModalPositionNode=function(t){return z.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var r=this.urlInputId,n=this.buttonId,o=gt(Nn(ye("link.url"),r),2),i=o[0],a=$(o[1]),s=gt(ul(n,ye("common.ok")),1)[0];if(this.$content==null){var u=$("<div></div>");u.on("click","button",function(f){f.preventDefault(),t.restoreSelection();var d=z.getSelectedNodeByType(t,"link"),p=d?me.string(d):"",h=u.find("#"+r).val();(function(g,m,y){bs(this,void 0,void 0,function(){var v,E;return ws(this,function(w){switch(w.label){case 0:return y?[4,WI("editLink",g,m,y)]:[2];case 1:return w.sent()?[4,YI("editLink",g,y)]:[2];case 2:return v=w.sent(),E={url:w7(v)},Q.setNodes(g,E,{match:function(S){return z.checkNodeType(S,"link")}}),[2]}})})})(t,p,h),t.hidePanelOrModal()}),this.$content=u}var l=this.$content;l.empty(),l.append(i),l.append(s);var c=this.getValue(t);return a.val(c),setTimeout(function(){a.focus()}),l[0]},e}(),vde=function(){function e(){this.title=ye("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||z.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,r){this.isDisabled(t)||Q.unwrapNodes(t,{match:function(n){return z.checkNodeType(n,"link")}})},e}(),mde=function(){function e(){this.title=ye("link.view"),this.iconSvg=jI,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var r=z.getSelectedNodeByType(t,"link");return r??null},e.prototype.getValue=function(t){var r=this.getSelectedLinkElem(t);return r&&r.url||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){if(!r||typeof r!="string")throw new Error("View link failed, link url is '"+r+"'");window.open(r,"_blank")}},e}(),ZI={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},yde={renderElems:[dde],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var r=e,n=r.url,o=r.target;return'<a href="'+n+'" target="'+(o===void 0?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[pde],menus:[{key:"insertLink",factory:function(){return new hde},config:ZI},{key:"editLink",factory:function(){return new gde},config:ZI},{key:"unLink",factory:function(){return new vde}},{key:"viewLink",factory:function(){return new mde}}],editorPlugin:function(e){var t=e.isInline,r=e.insertData,n=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(i){return i.type==="link"||t(i)},o.insertData=function(i){var a=i.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match(ude);if(!c)return!1;var f=c[1];return!(!f||!lde.test(f)&&!cde.test(f))}(a)){if(!E7(o)){var s=o.selection;if(s!=null){var u=D.string(o,s);XI(o,u,a)}}}else r(i)},o.normalizeNode=function(i){var a=gt(i,2),s=a[0],u=a[1];return z.getNodeType(s)!=="link"?n([s,u]):me.string(s)===""?Q.removeNodes(o,{at:u}):n([s,u])},o}},bde=ze(1 .valueOf),wde=Ye.RangeError,Ede=Ye.RangeError,QI=Ye.String,eL=Math.floor,C7=ze(function(e){var t=rr(Co(this)),r="",n=wf(e);if(n<0||n==1/0)throw wde("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r}),tL=ze("".slice),Ih=ze(1 .toFixed),Of=function(e,t,r){return t===0?r:t%2==1?Of(e,t-1,r*e):Of(e*e,t/2,r)},Af=function(e,t,r){for(var n=-1,o=r;++n<6;)o+=t*e[n],e[n]=o%1e7,o=eL(o/1e7)},D7=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=eL(n/t),n=n%t*1e7},rL=function(e){for(var t=6,r="";--t>=0;)if(r!==""||t===0||e[t]!==0){var n=QI(e[t]);r=r===""?n:r+C7("0",7-n.length)+n}return r};function nL(e,t){return"w-e-image-container-"+z.findKey(e,t).id}Lr({target:"Number",proto:!0,forced:tr(function(){return Ih(8e-5,3)!=="0.000"||Ih(.9,0)!=="1"||Ih(1.255,2)!=="1.25"||Ih(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!tr(function(){Ih({})})},{toFixed:function(e){var t,r,n,o,i=bde(this),a=wf(e),s=[0,0,0,0,0,0],u="",l="0";if(a<0||a>20)throw Ede("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return QI(i);if(i<0&&(u="-",i=-i),i>1e-21)if(r=(t=function(c){for(var f=0,d=c;d>=4096;)f+=12,d/=4096;for(;d>=2;)f+=1,d/=2;return f}(i*Of(2,69,1))-69)<0?i*Of(2,-t,1):i/Of(2,t,1),r*=4503599627370496,(t=52-t)>0){for(Af(s,0,r),n=a;n>=7;)Af(s,1e7,0),n-=7;for(Af(s,Of(10,n,1),0),n=t-1;n>=23;)D7(s,1<<23),n-=23;D7(s,1<<n),Af(s,1,1),D7(s,2),l=rL(s)}else Af(s,0,r),Af(s,1<<-t,0),l=rL(s)+C7("0",a);return a>0?u+((o=l.length)<=a?"0."+C7("0",a-o)+l:tL(l,0,o-a)+"."+tL(l,o-a)):u+l}});var Sde={type:"image",renderElem:function(e,t,r){var n=e,o=n.src,i=n.alt,a=i===void 0?"":i,s=n.href,u=s===void 0?"":s,l=n.style,c=l===void 0?{}:l,f=c.width,d=f===void 0?"":f,p=c.height,h=p===void 0?"":p,g=z.isNodeSelected(r,e),m={};d&&(m.width="100%"),h&&(m.height="100%");var y=$e("img",{style:m,src:o,alt:a,"data-href":u}),v=r.isDisabled();return g&&!v?function(E,w,S,C){var x=$("body"),_=nL(E,w),P=C.width,q=C.height,H=0,k=0,M=0,I=!1,T=null;function F(re){T=function(){var V=$("#"+_);if(V.length===0)throw new Error("Cannot find image container elem");return V}(),H=re;var O=T.find("img");if(O.length===0)throw new Error("Cannot find image elem");k=O.width(),M=O.height(),x.on("mousemove",U),x.on("mouseup",R);var A=z.getHoverbar(E);A&&A.hideAndClean()}var U=Ru(function(re){re.preventDefault();var O=re.clientX,A=k+(I?H-O:O-H),V=M*(A/k);T!=null&&(A<=15||V<=15||(T.css("width",A+"px"),T.css("height",V+"px")))},100);function R(re){if(x.off("mousemove",U),T!=null){var O=T.width().toFixed(2),A=T.height().toFixed(2),V={style:ys(ys({},w.style),{width:O+"px",height:A+"px"})};Q.setNodes(E,V,{at:z.findPath(E,w)}),x.off("mouseup",R)}}var Z={};return P&&(Z.width=P),q&&(Z.height=q),$e("div",{id:_,style:Z,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(re){var O=$(re.target);O.hasClass("w-e-image-dragger")&&(re.preventDefault(),(O.hasClass("left-top")||O.hasClass("left-bottom"))&&(I=!0),F(re.clientX))}}},S,$e("div",{className:"w-e-image-dragger left-top"}),$e("div",{className:"w-e-image-dragger right-top"}),$e("div",{className:"w-e-image-dragger left-bottom"}),$e("div",{className:"w-e-image-dragger right-bottom"}))}(r,e,y,{width:d,height:h}):function(E,w,S,C){var x=C.width,_=C.height,P={};return x&&(P.width=x),_&&(P.height=_),$e("div",{id:nL(E,w),style:P,className:"w-e-image-container"},S)}(r,e,y,{width:d,height:h})}},xde={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=$(e),o=n.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:n.attr("src")||"",alt:n.attr("alt")||"",href:o,style:{width:Qo(n,"width"),height:Qo(n,"height")},children:[{text:""}]}}};function oL(e,t,r,n,o){return n===void 0&&(n=""),o===void 0&&(o=""),bs(this,void 0,void 0,function(){var i,a;return ws(this,function(s){switch(s.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(r,n,o)]:[3,2];case 1:if(typeof(a=s.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];s.label=2;case 2:return[2,!0]}})})}function iL(e,t,r){return bs(this,void 0,void 0,function(){var n;return ws(this,function(o){switch(o.label){case 0:return(n=t.getMenuConfig(e).parseImageSrc)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}})})}function gl(e,t,r,n){return r===void 0&&(r=""),n===void 0&&(n=""),bs(this,void 0,void 0,function(){var o,i,a;return ws(this,function(s){switch(s.label){case 0:return[4,oL("insertImage",e,t,r,n)];case 1:return s.sent()?[4,iL("insertImage",e,t)]:[2];case 2:return o=s.sent(),i={type:"image",src:w7(o),href:n,alt:r,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),z.getSelectedNodeByType(e,"image")&&e.move(1),Hm(e)||(Q.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function Hm(e){var t=e.selection;return t==null||!oe.isCollapsed(t)||!!gt(D.nodes(e,{match:function(r){var n=z.getNodeType(r);return n==="code"||n==="pre"||n==="link"||n==="list-item"||!!n.startsWith("header")||n==="blockquote"||!!D.isVoid(e,r)},universal:!0}),1)[0]}function Um(){return $m("w-e-insert-image")}var Cde=function(){function e(){this.title=ye("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Um(),this.altInputId=Um(),this.hrefInputId=Um(),this.buttonId=Um()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return Hm(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var r=this,n=this,o=n.srcInputId,i=n.altInputId,a=n.hrefInputId,s=n.buttonId,u=gt(Nn(ye("image.src"),o),2),l=u[0],c=$(u[1]),f=gt(Nn(ye("image.desc"),i),2),d=f[0],p=$(f[1]),h=gt(Nn(ye("image.link"),a),2),g=h[0],m=$(h[1]),y=gt(ul(s,ye("common.ok")),1)[0];if(this.$content==null){var v=$("<div></div>");v.on("click","#"+s,function(w){w.preventDefault();var S=v.find("#"+o).val().trim(),C=v.find("#"+i).val().trim(),x=v.find("#"+a).val().trim();r.insertImage(t,S,C,x),t.hidePanelOrModal()}),this.$content=v}var E=this.$content;return E.empty(),E.append(l),E.append(d),E.append(g),E.append(y),c.val(""),p.val(""),m.val(""),setTimeout(function(){c.focus()}),E[0]},e.prototype.insertImage=function(t,r,n,o){n===void 0&&(n=""),o===void 0&&(o=""),r&&(t.restoreSelection(),this.isDisabled(t)||gl(t,r,n,o))},e}(),Dde=function(){function e(){this.title=ye("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||z.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,r){this.isDisabled(t)||Q.removeNodes(t,{match:function(n){return z.checkNodeType(n,"image")}})},e}();function qm(){return $m("w-e-edit-image")}var _de=function(){function e(){this.title=ye("image.edit"),this.iconSvg=FI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=qm(),this.altInputId=qm(),this.hrefInputId=qm(),this.buttonId=qm()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return z.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!oe.isCollapsed(r)||z.getSelectedNodeByType(t,"image")==null},e.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},e.prototype.getModalContentElem=function(t){var r=this,n=this,o=n.srcInputId,i=n.altInputId,a=n.hrefInputId,s=n.buttonId,u=this.getImageNode(t);if(u==null)throw new Error("Not found selected image node");var l=gt(Nn(ye("image.src"),o),2),c=l[0],f=$(l[1]),d=gt(Nn(ye("image.desc"),i),2),p=d[0],h=$(d[1]),g=gt(Nn(ye("image.link"),a),2),m=g[0],y=$(g[1]),v=gt(ul(s,ye("common.ok")),1)[0];if(this.$content==null){var E=$("<div></div>");E.on("click","#"+s,function(H){H.preventDefault();var k=E.find("#"+o).val(),M=E.find("#"+i).val(),I=E.find("#"+a).val();r.updateImage(t,k,M,I),t.hidePanelOrModal()}),this.$content=E}var w=this.$content;w.empty(),w.append(c),w.append(p),w.append(m),w.append(v);var S=u,C=S.src,x=S.alt,_=x===void 0?"":x,P=S.href,q=P===void 0?"":P;return f.val(C),h.val(_),y.val(q),setTimeout(function(){f.focus()}),w[0]},e.prototype.updateImage=function(t,r,n,o,i){n===void 0&&(n=""),o===void 0&&(o=""),i===void 0&&(i={}),r&&(t.restoreSelection(),this.isDisabled(t)||function(a,s,u,l,c){u===void 0&&(u=""),l===void 0&&(l=""),c===void 0&&(c={}),bs(this,void 0,void 0,function(){var f,d,p,h,g,m;return ws(this,function(y){switch(y.label){case 0:return[4,oL("editImage",a,s,u,l)];case 1:return y.sent()?[4,iL("editImage",a,s)]:[2];case 2:return f=y.sent(),(d=z.getSelectedNodeByType(a,"image"))==null||(p=d.style,h={src:f,alt:u,href:l,style:ys(ys({},p===void 0?{}:p),c)},Q.setNodes(a,h,{match:function(v){return z.checkNodeType(v,"image")}}),g=z.getSelectedNodeByType(a,"image"),(m=a.getMenuConfig("editImage").onUpdatedImage)&&m(g)),[2]}})})}(t,r,n,o,i))},e}(),Ode=function(){function e(){this.title=ye("image.viewLink"),this.iconSvg=jI,this.tag="button"}return e.prototype.getValue=function(t){var r=z.getSelectedNodeByType(t,"image");return r&&r.href||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!this.getValue(t)},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){if(!r||typeof r!="string")throw new Error("View image link failed, image.href is '"+r+"'");window.open(r,"_blank")}},e}(),_7=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getSelectedNode=function(t){return z.getSelectedNodeByType(t,"image")},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedNode(t)==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=this.getSelectedNode(t);if(n!=null){var o=z.getHoverbar(t);o&&o.hideAndClean();var i=n.style,a={style:ys(ys({},i===void 0?{}:i),{width:this.value,height:""})};Q.setNodes(t,a,{match:function(s){return z.checkNodeType(s,"image")}})}}},e}(),Ade=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="30%",r.value="30%",r}return Yt(t,e),t}(_7),kde=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="50%",r.value="50%",r}return Yt(t,e),t}(_7),Nde=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="100%",r.value="100%",r}return Yt(t,e),t}(_7),aL={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,r){return!0},parseImageSrc:function(e){return e}},Tde={renderElems:[Sde],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var r=e,n=r.src,o=r.alt,i=o===void 0?"":o,a=r.href,s=a===void 0?"":a,u=r.style,l=u===void 0?{}:u,c=l.width,f=c===void 0?"":c,d=l.height,p=d===void 0?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+n+'" alt="'+i+'" data-href="'+s+'" style="'+h+'"/>'}}],parseElemsHtml:[xde],menus:[{key:"insertImage",factory:function(){return new Cde},config:aL},{key:"deleteImage",factory:function(){return new Dde}},{key:"editImage",factory:function(){return new _de},config:aL},{key:"viewImageLink",factory:function(){return new Ode}},{key:"imageWidth30",factory:function(){return new Ade}},{key:"imageWidth50",factory:function(){return new kde}},{key:"imageWidth100",factory:function(){return new Nde}}],editorPlugin:function(e){var t=e.isInline,r=e.isVoid;e.insertNode;var n=e;return n.isInline=function(o){return o.type==="image"||t(o)},n.isVoid=function(o){return o.type==="image"||r(o)},n}},Pde={type:"todo",renderElem:function(e,t,r){var n=!1;r.isDisabled()&&(n=!0);var o=$e("div",{style:{margin:"5px 0"}},$e("span",{contentEditable:!1,style:{marginRight:"0.5em"}},$e("input",{type:"checkbox",checked:e.checked,disabled:n,on:{change:function(i){var a=z.findPath(r,e),s={checked:i.target.checked};Q.setNodes(r,s,{at:a})}}})),$e("span",null,t));return o}},Bde=function(){function e(){this.title=ye("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!z.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!z.getSelectedElems(t).some(function(r){if(D.isVoid(t,r)&&D.isBlock(t,r))return!0;var n=r.type;return!!["pre","table","list-item"].includes(n)||void 0})},e.prototype.exec=function(t,r){var n=this.isActive(t);Q.setNodes(t,{type:n?"paragraph":"todo"})},e}(),Fde={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,r){var n=$(e);(t=t.filter(function(i){return!!Ce.isText(i)||!!r.isInline(i)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var o=!1;return n.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:t}}},jde={renderElems:[Pde],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=$(e).find("li"),r=$('<div data-w-e-type="todo"></div>'),n=t.find("input[type]");return r.append(n),t.children()[0].remove(),r[0].innerHTML=r[0].innerHTML+t[0].innerHTML,r[0]}}],parseElemsHtml:[Fde],menus:[{key:"todo",factory:function(){return new Bde}}],editorPlugin:function(e){var t=e.deleteBackward,r=e;return r.deleteBackward=function(n){var o=e.selection;if(o&&oe.isCollapsed(o)){var i=z.getSelectedNodeByType(e,"todo");if(i&&me.string(i).length===0)return void Q.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},r}},Ide={type:"blockquote",renderElem:function(e,t,r){return $e("blockquote",null,t)}},Lde={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=$(e);return(t=t.filter(function(o){return!!Ce.isText(o)||!!r.isInline(o)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},Mde=function(){function e(){this.title=ye("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!z.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!gt(D.nodes(t,{match:function(r){var n=z.getNodeType(r);return n==="paragraph"||n==="blockquote"},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=this.isActive(t)?"paragraph":"blockquote";Q.setNodes(t,{type:n},{mode:"highest"})}},e}(),zde={key:"blockquote",factory:function(){return new Mde}},Vde=ze([].slice),Rde=qw("slice"),$de=Jn("species"),O7=Ye.Array,Hde=Math.max;Lr({target:"Array",proto:!0,forced:!Rde},{slice:function(e,t){var r,n,o,i=vf(this),a=Fm(i),s=xh(e,a),u=xh(t===void 0?a:t,a);if(Im(i)&&(r=i.constructor,(Uw(r)&&(r===O7||Im(r.prototype))||Zo(r)&&(r=r[$de])===null)&&(r=void 0),r===O7||r===void 0))return Vde(i,s,u);for(n=new(r===void 0?O7:r)(Hde(u-s,0)),o=0;s<u;s++,o++)s in i&&xI(n,o,i[s]);return n.length=o,n}});var Ude={renderElems:[Ide],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[Lde],menus:[zde],editorPlugin:function(e){var t=e.insertBreak,r=e.insertText,n=e;return n.insertBreak=function(){var o=n.selection;if(o==null)return t();var i=gt(D.nodes(e,{match:function(c){return z.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],s=z.findPath(e,a),u=D.end(e,s);if(Ze.equals(u,o.focus)){var l=me.string(a);if(l&&l.slice(-1)===`
131
+ `)return e.deleteBackward("character"),void Q.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}r(`
132
+ `)},n}},qde=function(){function e(){this.title=ye("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,r){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!gt(D.nodes(t,{match:function(r){return z.getNodeType(r)==="pre"||!!D.isVoid(t,r)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var r=$('<ul class="w-e-panel-content-emotion"></ul>');r.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var s=$(a).text();t.insertText(s)}}),this.$content=r}var n=this.$content;if(n==null)return document.createElement("ul");n.empty();var o=t.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=$("<li>"+i+"</li>");n.append(a)}),n[0]},e}(),Kde={menus:[{key:"emotion",factory:function(){return new qde},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Gde={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Wde={selector:"font",preParseHtml:function(e){var t=$(e);if(Df(t)!=="font")return e;var r=t.attr("size")||"";r&&(t.removeAttr("size"),t.css("font-size",Gde[r]));var n=t.attr("face")||"";return n&&(t.removeAttr("face"),t.css("font-family",n)),t[0]}},Yde=ze("".indexOf);Lr({target:"String",proto:!0,forced:!MI("includes")},{includes:function(e){return!!~Yde(rr(Co(this)),rr(LI(e)),arguments.length>1?arguments[1]:void 0)}});var Es,Km,Gm=function(e){return e&&e.Math==Math&&e},tt=Gm(typeof globalThis=="object"&&globalThis)||Gm(typeof window=="object"&&window)||Gm(typeof self=="object"&&self)||Gm(typeof Dm=="object"&&Dm)||function(){return this}()||Function("return this")(),A7=Function.prototype,sL=A7.apply,Xde=A7.bind,uL=A7.call,lL=typeof Reflect=="object"&&Reflect.apply||(Xde?uL.bind(sL):function(){return uL.apply(sL,arguments)}),cL=Function.prototype,k7=cL.bind,N7=cL.call,Jde=k7&&k7.bind(N7),lr=k7?function(e){return e&&Jde(N7,e)}:function(e){return e&&function(){return N7.apply(e,arguments)}},cn=function(e){return typeof e=="function"},Qn=function(e){try{return!!e()}catch{return!0}},Tn=!Qn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Lh=Function.prototype.call,Ai=Lh.bind?Lh.bind(Lh):function(){return Lh.apply(Lh,arguments)},fL={}.propertyIsEnumerable,dL=Object.getOwnPropertyDescriptor,Zde=dL&&!fL.call({1:2},1)?function(e){var t=dL(this,e);return!!t&&t.enumerable}:fL,T7={f:Zde},vl=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Qde=lr({}.toString),epe=lr("".slice),ml=function(e){return epe(Qde(e),8,-1)},P7=tt.Object,tpe=lr("".split),pL=Qn(function(){return!P7("z").propertyIsEnumerable(0)})?function(e){return ml(e)=="String"?tpe(e,""):P7(e)}:P7,rpe=tt.TypeError,B7=function(e){if(e==null)throw rpe("Can't call method on "+e);return e},ki=function(e){return pL(B7(e))},ei=function(e){return typeof e=="object"?e!==null:cn(e)},_o={},hL=function(e){return cn(e)?e:void 0},Mh=function(e,t){return arguments.length<2?hL(_o[e])||hL(tt[e]):_o[e]&&_o[e][t]||tt[e]&&tt[e][t]},gL=lr({}.isPrototypeOf),F7=Mh("navigator","userAgent")||"",vL=tt.process,mL=tt.Deno,yL=vL&&vL.versions||mL&&mL.version,bL=yL&&yL.v8;bL&&(Km=(Es=bL.split("."))[0]>0&&Es[0]<4?1:+(Es[0]+Es[1])),!Km&&F7&&(!(Es=F7.match(/Edge\/(\d+)/))||Es[1]>=74)&&(Es=F7.match(/Chrome\/(\d+)/))&&(Km=+Es[1]);var Wm=Km,Ni=!!Object.getOwnPropertySymbols&&!Qn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Wm&&Wm<41}),j7=Ni&&!Symbol.sham&&typeof Symbol.iterator=="symbol",npe=tt.Object,kf=j7?function(e){return typeof e=="symbol"}:function(e){var t=Mh("Symbol");return cn(t)&&gL(t.prototype,npe(e))},ope=tt.String,ipe=tt.TypeError,wL=function(e){if(cn(e))return e;throw ipe(function(t){try{return ope(t)}catch{return"Object"}}(e)+" is not a function")},ape=tt.TypeError,spe=Object.defineProperty,Ss=tt["__core-js_shared__"]||function(e,t){try{spe(tt,e,{value:t,configurable:!0,writable:!0})}catch{tt[e]=t}return t}("__core-js_shared__",{}),yl=_m(function(e){(e.exports=function(t,r){return Ss[t]||(Ss[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),upe=tt.Object,zh=function(e){return upe(B7(e))},lpe=lr({}.hasOwnProperty),vt=Object.hasOwn||function(e,t){return lpe(zh(e),t)},cpe=0,fpe=Math.random(),dpe=lr(1 .toString),Ym=function(e){return"Symbol("+(e===void 0?"":e)+")_"+dpe(++cpe+fpe,36)},Vh=yl("wks"),bl=tt.Symbol,EL=bl&&bl.for,ppe=j7?bl:bl&&bl.withoutSetter||Ym,eo=function(e){if(!vt(Vh,e)||!Ni&&typeof Vh[e]!="string"){var t="Symbol."+e;Ni&&vt(bl,e)?Vh[e]=bl[e]:Vh[e]=j7&&EL?EL(t):ppe(t)}return Vh[e]},hpe=tt.TypeError,gpe=eo("toPrimitive"),Nf=function(e){var t=function(r,n){if(!ei(r)||kf(r))return r;var o,i,a=(o=r[gpe])==null?void 0:wL(o);if(a){if(i=Ai(a,r,n),!ei(i)||kf(i))return i;throw hpe("Can't convert object to primitive value")}return function(s,u){var l,c;if(cn(l=s.toString)&&!ei(c=Ai(l,s))||cn(l=s.valueOf)&&!ei(c=Ai(l,s)))return c;throw ape("Can't convert object to primitive value")}(r)}(e,"string");return kf(t)?t:t+""},I7=tt.document,vpe=ei(I7)&&ei(I7.createElement),SL=function(e){return vpe?I7.createElement(e):{}},xL=!Tn&&!Qn(function(){return Object.defineProperty(SL("div"),"a",{get:function(){return 7}}).a!=7}),CL=Object.getOwnPropertyDescriptor,L7={f:Tn?CL:function(e,t){if(e=ki(e),t=Nf(t),xL)try{return CL(e,t)}catch{}if(vt(e,t))return vl(!Ai(T7.f,e,t),e[t])}},mpe=/#|\.prototype\./,Rh=function(e,t){var r=bpe[ype(e)];return r==Epe||r!=wpe&&(cn(t)?Qn(t):!!t)},ype=Rh.normalize=function(e){return String(e).replace(mpe,".").toLowerCase()},bpe=Rh.data={},wpe=Rh.NATIVE="N",Epe=Rh.POLYFILL="P",Spe=Rh,DL=lr(lr.bind),_L=function(e,t){return wL(e),t===void 0?e:DL?DL(e,t):function(){return e.apply(t,arguments)}},xpe=tt.String,Cpe=tt.TypeError,wl=function(e){if(ei(e))return e;throw Cpe(xpe(e)+" is not an object")},Dpe=tt.TypeError,OL=Object.defineProperty,El={f:Tn?OL:function(e,t,r){if(wl(e),t=Nf(t),wl(r),xL)try{return OL(e,t,r)}catch{}if("get"in r||"set"in r)throw Dpe("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Ti=Tn?function(e,t,r){return El.f(e,t,vl(1,r))}:function(e,t,r){return e[t]=r,e},_pe=L7.f,Ope=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return lL(e,this,arguments)};return t.prototype=e.prototype,t},xs=function(e,t){var r,n,o,i,a,s,u,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?tt:d?tt[c]:(tt[c]||{}).prototype,g=f?_o:_o[c]||Ti(_o,c,{})[c],m=g.prototype;for(o in t)r=!Spe(f?o:c+(d?".":"#")+o,e.forced)&&h&&vt(h,o),a=g[o],r&&(s=e.noTargetGet?(l=_pe(h,o))&&l.value:h[o]),i=r&&s?s:t[o],r&&typeof a==typeof i||(u=e.bind&&r?_L(i,tt):e.wrap&&r?Ope(i):p&&cn(i)?lr(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Ti(u,"sham",!0),Ti(g,o,u),p&&(vt(_o,n=c+"Prototype")||Ti(_o,n,{}),Ti(_o[n],o,i),e.real&&m&&!m[o]&&Ti(m,o,i)))},Xm=Array.isArray||function(e){return ml(e)=="Array"},Ape=Math.ceil,kpe=Math.floor,M7=function(e){var t=+e;return t!=t||t===0?0:(t>0?kpe:Ape)(t)},Npe=Math.min,Jm=function(e){return(t=e.length)>0?Npe(M7(t),9007199254740991):0;var t},z7=function(e,t,r){var n=Nf(t);n in e?El.f(e,n,vl(0,r)):e[n]=r},AL={};AL[eo("toStringTag")]="z";var V7=String(AL)==="[object z]",Tpe=eo("toStringTag"),Ppe=tt.Object,Bpe=ml(function(){return arguments}())=="Arguments",Zm=V7?ml:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=Ppe(e),Tpe))=="string"?r:Bpe?ml(t):(n=ml(t))=="Object"&&cn(t.callee)?"Arguments":n},Fpe=lr(Function.toString);cn(Ss.inspectSource)||(Ss.inspectSource=function(e){return Fpe(e)});var kL=Ss.inspectSource,NL=function(){},jpe=[],TL=Mh("Reflect","construct"),R7=/^\s*(?:class|function)\b/,Ipe=lr(R7.exec),Lpe=!R7.exec(NL),$h=function(e){if(!cn(e))return!1;try{return TL(NL,jpe,e),!0}catch{return!1}},Mpe=!TL||Qn(function(){var e;return $h($h.call)||!$h(Object)||!$h(function(){e=!0})||e})?function(e){if(!cn(e))return!1;switch(Zm(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Lpe||!!Ipe(R7,kL(e))}:$h,zpe=eo("species"),PL=tt.Array,BL=function(e,t){return new(function(r){var n;return Xm(r)&&(n=r.constructor,(Mpe(n)&&(n===PL||Xm(n.prototype))||ei(n)&&(n=n[zpe])===null)&&(n=void 0)),n===void 0?PL:n}(e))(t===0?0:t)},Vpe=eo("species"),FL=eo("isConcatSpreadable"),jL=tt.TypeError,Rpe=Wm>=51||!Qn(function(){var e=[];return e[FL]=!1,e.concat()[0]!==e}),$pe=Wm>=51||!Qn(function(){var e=[];return(e.constructor={})[Vpe]=function(){return{foo:1}},e.concat(Boolean).foo!==1}),Hpe=function(e){if(!ei(e))return!1;var t=e[FL];return t!==void 0?!!t:Xm(e)};xs({target:"Array",proto:!0,forced:!Rpe||!$pe},{concat:function(e){var t,r,n,o,i,a=zh(this),s=BL(a,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(Hpe(i=t===-1?a:arguments[t])){if(u+(o=Jm(i))>9007199254740991)throw jL("Maximum allowed index exceeded");for(r=0;r<o;r++,u++)r in i&&z7(s,u,i[r])}else{if(u>=9007199254740991)throw jL("Maximum allowed index exceeded");z7(s,u++,i)}return s.length=u,s}});var Qm,Upe=tt.String,e2=function(e){if(Zm(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Upe(e)},qpe=Math.max,Kpe=Math.min,$7=function(e,t){var r=M7(e);return r<0?qpe(r+t,0):Kpe(r,t)},IL=function(e){return function(t,r,n){var o,i=ki(t),a=Jm(i),s=$7(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},Gpe={includes:IL(!0),indexOf:IL(!1)},Hh={},Wpe=Gpe.indexOf,LL=lr([].push),ML=function(e,t){var r,n=ki(e),o=0,i=[];for(r in n)!vt(Hh,r)&&vt(n,r)&&LL(i,r);for(;t.length>o;)vt(n,r=t[o++])&&(~Wpe(i,r)||LL(i,r));return i},t2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],H7=Object.keys||function(e){return ML(e,t2)},Ype=Tn?Object.defineProperties:function(e,t){wl(e);for(var r,n=ki(t),o=H7(t),i=o.length,a=0;i>a;)El.f(e,r=o[a++],n[r]);return e},Xpe=Mh("document","documentElement"),zL=yl("keys"),r2=function(e){return zL[e]||(zL[e]=Ym(e))},VL=r2("IE_PROTO"),U7=function(){},RL=function(e){return"<script>"+e+"<\/script>"},$L=function(e){e.write(RL("")),e.close();var t=e.parentWindow.Object;return e=null,t},n2=function(){try{Qm=new ActiveXObject("htmlfile")}catch{}var e,t;n2=typeof document<"u"?document.domain&&Qm?$L(Qm):((t=SL("iframe")).style.display="none",Xpe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(RL("document.F=Object")),e.close(),e.F):$L(Qm);for(var r=t2.length;r--;)delete n2.prototype[t2[r]];return n2()};Hh[VL]=!0;var o2,Uh,i2,Sl=Object.create||function(e,t){var r;return e!==null?(U7.prototype=wl(e),r=new U7,U7.prototype=null,r[VL]=e):r=n2(),t===void 0?r:Ype(r,t)},Jpe=t2.concat("length","prototype"),HL={f:Object.getOwnPropertyNames||function(e){return ML(e,Jpe)}},Zpe=tt.Array,Qpe=Math.max,UL=HL.f,qL=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],KL={f:function(e){return qL&&ml(e)=="Window"?function(t){try{return UL(t)}catch{return function(n,o,i){for(var a=Jm(n),s=$7(void 0,a),u=$7(a,a),l=Zpe(Qpe(u-s,0)),c=0;s<u;s++,c++)z7(l,c,n[s]);return l.length=c,l}(qL)}}(e):UL(ki(e))}},q7={f:Object.getOwnPropertySymbols},ehe=lr([].slice),a2=function(e,t,r,n){Ti(e,t,r)},K7={f:eo},the=El.f,wr=function(e){var t=_o.Symbol||(_o.Symbol={});vt(t,e)||the(t,e,{value:K7.f(e)})},rhe=V7?{}.toString:function(){return"[object "+Zm(this)+"]"},nhe=El.f,GL=eo("toStringTag"),s2=function(e,t,r,n){if(e){var o=r?e:e.prototype;vt(o,GL)||nhe(o,GL,{configurable:!0,value:t}),n&&!V7&&Ti(o,"toString",rhe)}},WL=tt.WeakMap,ohe=cn(WL)&&/native code/.test(kL(WL)),G7=tt.TypeError,ihe=tt.WeakMap;if(ohe||Ss.state){var xl=Ss.state||(Ss.state=new ihe),ahe=lr(xl.get),YL=lr(xl.has),she=lr(xl.set);o2=function(e,t){if(YL(xl,e))throw new G7("Object already initialized");return t.facade=e,she(xl,e,t),t},Uh=function(e){return ahe(xl,e)||{}},i2=function(e){return YL(xl,e)}}else{var Tf=r2("state");Hh[Tf]=!0,o2=function(e,t){if(vt(e,Tf))throw new G7("Object already initialized");return t.facade=e,Ti(e,Tf,t),t},Uh=function(e){return vt(e,Tf)?e[Tf]:{}},i2=function(e){return vt(e,Tf)}}var Pf={set:o2,get:Uh,has:i2,enforce:function(e){return i2(e)?Uh(e):o2(e,{})},getterFor:function(e){return function(t){var r;if(!ei(t)||(r=Uh(t)).type!==e)throw G7("Incompatible receiver, "+e+" required");return r}}},XL=lr([].push),Cs=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,h=zh(u),g=pL(h),m=_L(l,c),y=Jm(g),v=0,E=f||BL,w=t?E(u,y):r||a?E(u,0):void 0;y>v;v++)if((s||v in g)&&(p=m(d=g[v],v,h),e))if(t)w[v]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:XL(w,d)}else switch(e){case 4:return!1;case 7:XL(w,d)}return i?-1:n||o?o:w}},u2=[Cs(0),Cs(1),Cs(2),Cs(3),Cs(4),Cs(5),Cs(6),Cs(7)][0],Pn=r2("hidden"),JL=eo("toPrimitive"),uhe=Pf.set,ZL=Pf.getterFor("Symbol"),ti=Object.prototype,Ds=tt.Symbol,_s=Ds&&Ds.prototype,QL=tt.TypeError,W7=tt.QObject,qh=Mh("JSON","stringify"),eM=L7.f,Os=El.f,tM=KL.f,lhe=T7.f,rM=lr([].push),va=yl("symbols"),Kh=yl("op-symbols"),Y7=yl("string-to-symbol-registry"),X7=yl("symbol-to-string-registry"),che=yl("wks"),J7=!W7||!W7.prototype||!W7.prototype.findChild,Z7=Tn&&Qn(function(){return Sl(Os({},"a",{get:function(){return Os(this,"a",{value:7}).a}})).a!=7})?function(e,t,r){var n=eM(ti,t);n&&delete ti[t],Os(e,t,r),n&&e!==ti&&Os(ti,t,n)}:Os,Q7=function(e,t){var r=va[e]=Sl(_s);return uhe(r,{type:"Symbol",tag:e,description:t}),Tn||(r.description=t),r},l2=function(e,t,r){e===ti&&l2(Kh,t,r),wl(e);var n=Nf(t);return wl(r),vt(va,n)?(r.enumerable?(vt(e,Pn)&&e[Pn][n]&&(e[Pn][n]=!1),r=Sl(r,{enumerable:vl(0,!1)})):(vt(e,Pn)||Os(e,Pn,vl(1,{})),e[Pn][n]=!0),Z7(e,n,r)):Os(e,n,r)},nM=function(e,t){wl(e);var r=ki(t),n=H7(r).concat(e9(r));return u2(n,function(o){Tn&&!Ai(oM,r,o)||l2(e,o,r[o])}),e},oM=function(e){var t=Nf(e),r=Ai(lhe,this,t);return!(this===ti&&vt(va,t)&&!vt(Kh,t))&&(!(r||!vt(this,t)||!vt(va,t)||vt(this,Pn)&&this[Pn][t])||r)},iM=function(e,t){var r=ki(e),n=Nf(t);if(r!==ti||!vt(va,n)||vt(Kh,n)){var o=eM(r,n);return!o||!vt(va,n)||vt(r,Pn)&&r[Pn][n]||(o.enumerable=!0),o}},aM=function(e){var t=tM(ki(e)),r=[];return u2(t,function(n){vt(va,n)||vt(Hh,n)||rM(r,n)}),r},e9=function(e){var t=e===ti,r=tM(t?Kh:ki(e)),n=[];return u2(r,function(o){!vt(va,o)||t&&!vt(ti,o)||rM(n,va[o])}),n};if(Ni||(_s=(Ds=function(){if(gL(_s,this))throw QL("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?e2(arguments[0]):void 0,t=Ym(e),r=function(n){this===ti&&Ai(r,Kh,n),vt(this,Pn)&&vt(this[Pn],t)&&(this[Pn][t]=!1),Z7(this,t,vl(1,n))};return Tn&&J7&&Z7(ti,t,{configurable:!0,set:r}),Q7(t,e)}).prototype,a2(_s,"toString",function(){return ZL(this).tag}),a2(Ds,"withoutSetter",function(e){return Q7(Ym(e),e)}),T7.f=oM,El.f=l2,L7.f=iM,HL.f=KL.f=aM,q7.f=e9,K7.f=function(e){return Q7(eo(e),e)},Tn&&Os(_s,"description",{configurable:!0,get:function(){return ZL(this).description}})),xs({global:!0,wrap:!0,forced:!Ni,sham:!Ni},{Symbol:Ds}),u2(H7(che),function(e){wr(e)}),xs({target:"Symbol",stat:!0,forced:!Ni},{for:function(e){var t=e2(e);if(vt(Y7,t))return Y7[t];var r=Ds(t);return Y7[t]=r,X7[r]=t,r},keyFor:function(e){if(!kf(e))throw QL(e+" is not a symbol");if(vt(X7,e))return X7[e]},useSetter:function(){J7=!0},useSimple:function(){J7=!1}}),xs({target:"Object",stat:!0,forced:!Ni,sham:!Tn},{create:function(e,t){return t===void 0?Sl(e):nM(Sl(e),t)},defineProperty:l2,defineProperties:nM,getOwnPropertyDescriptor:iM}),xs({target:"Object",stat:!0,forced:!Ni},{getOwnPropertyNames:aM,getOwnPropertySymbols:e9}),xs({target:"Object",stat:!0,forced:Qn(function(){q7.f(1)})},{getOwnPropertySymbols:function(e){return q7.f(zh(e))}}),qh){var fhe=!Ni||Qn(function(){var e=Ds();return qh([e])!="[null]"||qh({a:e})!="{}"||qh(Object(e))!="{}"});xs({target:"JSON",stat:!0,forced:fhe},{stringify:function(e,t,r){var n=ehe(arguments),o=t;if((ei(t)||e!==void 0)&&!kf(e))return Xm(t)||(t=function(i,a){if(cn(o)&&(a=Ai(o,this,i,a)),!kf(a))return a}),n[1]=t,lL(qh,null,n)}})}if(!_s[JL]){var dhe=_s.valueOf;a2(_s,JL,function(e){return Ai(dhe,this)})}s2(Ds,"Symbol"),Hh[Pn]=!0,wr("asyncIterator"),wr("hasInstance"),wr("isConcatSpreadable"),wr("iterator"),wr("match"),wr("matchAll"),wr("replace"),wr("search"),wr("species"),wr("split"),wr("toPrimitive"),wr("toStringTag"),wr("unscopables"),s2(tt.JSON,"JSON",!0);var As,sM,uM,phe=_o.Symbol,Cl={},lM=Function.prototype,hhe=Tn&&Object.getOwnPropertyDescriptor,t9=vt(lM,"name"),ghe={EXISTS:t9,PROPER:t9&&(function(){}).name==="something",CONFIGURABLE:t9&&(!Tn||Tn&&hhe(lM,"name").configurable)},vhe=!Qn(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),cM=r2("IE_PROTO"),r9=tt.Object,mhe=r9.prototype,n9=vhe?r9.getPrototypeOf:function(e){var t=zh(e);if(vt(t,cM))return t[cM];var r=t.constructor;return cn(r)&&t instanceof r?r.prototype:t instanceof r9?mhe:null},o9=eo("iterator"),fM=!1;[].keys&&("next"in(uM=[].keys())?(sM=n9(n9(uM)))!==Object.prototype&&(As=sM):fM=!0);var yhe=As==null||Qn(function(){var e={};return As[o9].call(e)!==e});As=yhe?{}:Sl(As),cn(As[o9])||a2(As,o9,function(){return this});var dM={IteratorPrototype:As,BUGGY_SAFARI_ITERATORS:fM},bhe=dM.IteratorPrototype,whe=function(){return this};tt.String,tt.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{lr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch{}}();var Ehe=ghe.PROPER,i9=dM.BUGGY_SAFARI_ITERATORS,She=eo("iterator"),xhe=function(){return this},pM=function(e,t,r,n,o,i,a){(function(m,y,v,E){var w=y+" Iterator";m.prototype=Sl(bhe,{next:vl(1,v)}),s2(m,w,!1,!0),Cl[w]=whe})(r,t,n);var s,u,l=function(m){if(m===o&&h)return h;if(!i9&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[She]||d["@@iterator"]||o&&d[o],h=!i9&&p||l(o),g=t=="Array"&&d.entries||p;return g&&(s=n9(g.call(new e)))!==Object.prototype&&s.next&&(s2(s,c,!0,!0),Cl[c]=xhe),Ehe&&o=="values"&&p&&p.name!=="values"&&(f=!0,h=function(){return Ai(p,this)}),o&&(u={values:l("values"),keys:l("keys"),entries:l("entries")},a||xs({target:t,proto:!0,forced:i9||f},u)),Cl[t]=h,u},Che=Pf.set,Dhe=Pf.getterFor("Array Iterator");pM(Array,"Array",function(e,t){Che(this,{type:"Array Iterator",target:ki(e),index:0,kind:t})},function(){var e=Dhe(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),Cl.Arguments=Cl.Array;var hM=eo("toStringTag");for(var a9 in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var gM=tt[a9],s9=gM&&gM.prototype;s9&&Zm(s9)!==hM&&Ti(s9,hM,a9),Cl[a9]=Cl.Array}var _he=phe;wr("asyncDispose"),wr("dispose"),wr("matcher"),wr("metadata"),wr("observable"),wr("patternMatch"),wr("replaceAll");var c2=_he,Ohe=lr("".charAt),vM=lr("".charCodeAt),Ahe=lr("".slice),khe=function(e){return function(t,r){var n,o,i=e2(B7(t)),a=M7(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=vM(i,a))<55296||n>56319||a+1===s||(o=vM(i,a+1))<56320||o>57343?e?Ohe(i,a):n:e?Ahe(i,a,a+2):o-56320+(n-55296<<10)+65536}},Nhe=khe(!0),The=Pf.set,Phe=Pf.getterFor("String Iterator");pM(String,"String",function(e){The(this,{type:"String Iterator",string:e2(e),index:0})},function(){var e,t=Phe(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Nhe(r,n),t.index+=e.length,{value:e,done:!1})});var Bhe=K7.f("iterator"),Fhe=_m(function(e){function t(r){return typeof c2=="function"&&typeof Bhe=="symbol"?(e.exports=t=function(n){return typeof n},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(n){return n&&typeof c2=="function"&&n.constructor===c2&&n!==c2.prototype?"symbol":typeof n},e.exports.default=e.exports,e.exports.__esModule=!0),t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),mM=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Fhe),jhe=Bm.EXISTS,Ihe=mf.f,yM=Function.prototype,Lhe=ze(yM.toString),bM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Mhe=ze(bM.exec);Jo&&!jhe&&Ihe(yM,"name",{configurable:!0,get:function(){try{return Mhe(bM,Lhe(this))[1]}catch{return""}}});var wM=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var r=this.mark,n=D.marks(t);return n&&n[r]?n[r]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!gt(D.nodes(t,{match:function(r){return z.getNodeType(r)==="pre"||!!D.isVoid(t,r)},universal:!0}),1)[0])},e.prototype.exec=function(t,r){var n=this.mark;r?t.addMark(n,r):t.removeMark(n)},e}(),zhe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ye("fontSize.title"),r.iconSvg=ffe,r.mark="fontSize",r}return Yt(t,e),t.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;n.push({text:ye("fontSize.default"),value:""}),i.forEach(function(s){if(typeof s=="string")n.push({text:s,value:s});else if(mM(s)==="object"){var u=s.name,l=s.value;n.push({text:u,value:l})}});var a=this.getValue(r);return n.forEach(function(s){s.value===a?s.selected=!0:delete s.selected}),n},t}(wM),Vhe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ye("fontFamily.title"),r.iconSvg=dfe,r.mark="fontFamily",r.selectPanelWidth=150,r}return Yt(t,e),t.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;n.push({text:ye("fontFamily.default"),value:""}),i.forEach(function(s){if(typeof s=="string")n.push({text:s,value:s,styleForRenderMenuList:{"font-family":s}});else if(mM(s)==="object"){var u=s.name,l=s.value;n.push({text:u,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(r);return n.forEach(function(s){s.value===a?s.selected=!0:delete s.selected}),n},t}(wM),Rhe={renderStyle:function(e,t){var r=e,n=r.fontSize,o=r.fontFamily,i=t;return n&&hl(i,{fontSize:n}),o&&hl(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!Ce.isText(e))return t;var r,n=e,o=n.fontSize,i=n.fontFamily;return o||i?((d7(t)||Df(r=$(t))!=="span")&&(r=$("<span>"+t+"</span>")),o&&r.css("font-size",o),i&&r.css("font-family",i),Cf(r)):t},preParseHtml:[Wde],parseStyleHtml:function(e,t,r){var n=$(e);if(!Ce.isText(t))return t;var o=t,i=r.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,s=Qo(n,"font-size"),u=a.find(function(p){return p.value&&p.value===s})||a.includes(s);s&&u&&(o.fontSize=s);var l=r.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=Qo(n,"font-family").replace(/"/g,""),d=c.find(function(p){return p.value&&p.value===f})||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new zhe},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new Vhe},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},$he={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=$(e),r=Qo(t,"padding-left");return/\dem/.test(r)&&t.css("text-indent","2em"),/\dpx/.test(r)&&parseInt(r,10)%32==0&&t.css("text-indent","2em"),t[0]}},EM=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var r=gt(D.nodes(t,{match:function(o){return!!o.indent},universal:!0}),1),n=r[0];return n==null?"":gt(n,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var r=gt(D.nodes(t,{match:function(n){var o=z.getNodeType(n);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},e}(),Hhe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ye("indent.decrease"),r.iconSvg=pfe,r}return Yt(t,e),t.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!n.indent},t.prototype.exec=function(r,n){Q.setNodes(r,{indent:null},{match:function(o){return Te.isElement(o)}})},t}(EM),Uhe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ye("indent.increase"),r.iconSvg=hfe,r}return Yt(t,e),t.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!!n.indent},t.prototype.exec=function(r,n){Q.setNodes(r,{indent:"2em"},{match:function(o){return Te.isElement(o)},mode:"highest"})},t}(EM),qhe={renderStyle:function(e,t){if(!Te.isElement(e))return t;var r=e.indent,n=t;return r&&hl(n,{textIndent:r}),n},styleToHtml:function(e,t){if(!Te.isElement(e))return t;var r=e.indent;if(!r)return t;var n=$(t);return n.css("text-indent",r),Cf(n)},preParseHtml:[$he],parseStyleHtml:function(e,t,r){var n=$(e);if(!Te.isElement(t))return t;var o=t,i=Qo(n,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new Uhe}},{key:"delIndent",factory:function(){return new Hhe}}]},f2=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var r=gt(D.nodes(t,{match:function(n){var o=z.getNodeType(n);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},e.prototype.isDisabled=function(t){return t.selection==null||!!z.getSelectedElems(t).some(function(r){if(D.isVoid(t,r)&&D.isBlock(t,r))return!0;var n=r.type;return!!["pre","code"].includes(n)||void 0})},e}(),Khe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ye("justify.left"),r.iconSvg=gfe,r}return Yt(t,e),t.prototype.exec=function(r,n){Q.setNodes(r,{textAlign:"left"},{match:function(o){return Te.isElement(o)&&!r.isInline(o)}})},t}(f2),Ghe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ye("justify.right"),r.iconSvg=vfe,r}return Yt(t,e),t.prototype.exec=function(r,n){Q.setNodes(r,{textAlign:"right"},{match:function(o){return Te.isElement(o)&&!r.isInline(o)}})},t}(f2),Whe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ye("justify.center"),r.iconSvg=mfe,r}return Yt(t,e),t.prototype.exec=function(r,n){Q.setNodes(r,{textAlign:"center"},{match:function(o){return Te.isElement(o)&&!r.isInline(o)}})},t}(f2),Yhe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ye("justify.justify"),r.iconSvg=yfe,r}return Yt(t,e),t.prototype.exec=function(r,n){Q.setNodes(r,{textAlign:"justify"},{match:function(o){return Te.isElement(o)&&!r.isInline(o)}})},t}(f2),Xhe={renderStyle:function(e,t){if(!Te.isElement(e))return t;var r=e.textAlign,n=t;return r&&hl(n,{textAlign:r}),n},styleToHtml:function(e,t){if(!Te.isElement(e))return t;var r=e.textAlign;if(!r)return t;var n=$(t);return n.css("text-align",r),Cf(n)},parseStyleHtml:function(e,t,r){var n=$(e);if(!Te.isElement(t))return t;var o=t,i=Qo(n,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Khe}},{key:"justifyRight",factory:function(){return new Ghe}},{key:"justifyCenter",factory:function(){return new Whe}},{key:"justifyJustify",factory:function(){return new Yhe}}]},Jhe=function(){function e(){this.title=ye("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(t){var r=[],n=t.getMenuConfig("lineHeight").lineHeightList,o=n===void 0?[]:n;r.push({text:ye("lineHeight.default"),value:""}),o.forEach(function(a){r.push({text:a,value:a})});var i=this.getValue(t);return r.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),r},e.prototype.getMatchNode=function(t){var r=gt(D.nodes(t,{match:function(n){var o=z.getNodeType(n);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var r=this.getMatchNode(t);return r==null?"":Te.isElement(r)&&r.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,r){Q.setNodes(t,{lineHeight:r.toString()},{mode:"highest"})},e}(),Zhe={renderStyle:function(e,t){if(!Te.isElement(e))return t;var r=e.lineHeight,n=t;return r&&hl(n,{lineHeight:r}),n},styleToHtml:function(e,t){if(!Te.isElement(e))return t;var r=e.lineHeight;if(!r)return t;var n=$(t);return n.css("line-height",r),Cf(n)},parseStyleHtml:function(e,t,r){var n=$(e);if(!Te.isElement(t))return t;var o=t,i=r.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,s=Qo(n,"line-height");return s&&a.includes(s)&&(o.lineHeight=s),o},menus:[{key:"lineHeight",factory:function(){return new Jhe},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Qhe=function(){function e(){this.title=ye("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,r){typeof t.redo=="function"&&t.redo()},e}(),e0e=function(){function e(){this.title=ye("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,r){typeof t.undo=="function"&&t.undo()},e}(),t0e={menus:[{key:"redo",factory:function(){return new Qhe}},{key:"undo",factory:function(){return new e0e}}]},r0e={type:"divider",renderElem:function(e,t,r){return zc("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:z.isNodeSelected(r,e)?"true":""},style:{},on:{mousedown:function(n){return n.preventDefault()}}},[zc("hr")])}},n0e=function(){function e(){this.title=ye("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!z.getSelectedElems(t).some(function(r){if(t.isVoid(r))return!0;var n=z.getNodeType(r);return n==="table"||n==="pre"||void 0})},e.prototype.exec=function(t,r){Q.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),o0e={renderElems:[r0e],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,r){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new n0e}}],editorPlugin:function(e){var t=e.isVoid,r=e.normalizeNode,n=e;return n.isVoid=function(o){return o.type==="divider"||t(o)},n.normalizeNode=function(o){var i=gt(o,2),a=i[0],s=i[1];if(z.getNodeType(a)!=="divider")return r([a,s]);z.isLastNode(n,a)&&Q.insertNodes(n,z.genEmptyParagraph(),{at:[s[0]+1]})},n}},i0e=Lm.map;Lr({target:"Array",proto:!0,forced:!qw("map")},{map:function(e){return i0e(this,e,arguments.length>1?arguments[1]:void 0)}});var a0e=ze([].join),s0e=km!=Object,u0e=TI("join",",");Lr({target:"Array",proto:!0,forced:s0e||!u0e},{join:function(e){return a0e(vf(this),e===void 0?",":e)}});var l0e=function(){function e(){this.title=ye("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(t){var r=z.getSelectedNodeByType(t,"code");if(r==null)return null;var n=z.getParentNode(t,r);return n==null||z.getNodeType(n)!=="pre"?null:r},e.prototype.getValue=function(t){var r=this.getSelectCodeElem(t);return r==null?"":r.language||""},e.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},e.prototype.isDisabled=function(t){if(t.selection==null)return!0;var r=z.getSelectedElems(t);return!!r.some(function(n){return t.isVoid(n)})||!r.some(function(n){var o=z.getNodeType(n);if(o==="pre"||o==="paragraph")return!0})},e.prototype.exec=function(t,r){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,r.toString())},e.prototype.changeToPlainText=function(t){var r=this.getSelectCodeElem(t);if(r!=null){var n=me.string(r);Q.removeNodes(t,{mode:"highest"});var o=n.split(`
133
+ `).map(function(i){return{type:"paragraph",children:[{text:i}]}});Q.insertNodes(t,o,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,r){var n,o,i=[],a=D.nodes(t,{match:function(f){return t.children.includes(f)},universal:!0});try{for(var s=OI(a),u=s.next();!u.done;u=s.next()){var l=gt(u.value,1)[0];l&&i.push(me.string(l))}}catch(f){n={error:f}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}Q.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:r,children:[{text:i.join(`
134
+ `)}]}]};Q.insertNodes(t,c,{mode:"highest"})},e}(),c0e={key:"codeBlock",factory:function(){return new l0e}};Lr({target:"String",proto:!0,forced:Th("anchor")},{anchor:function(e){return Nh(this,"a","name",e)}}),r7("match",function(e,t,r){return[function(n){var o=Co(this),i=n==null?void 0:Nm(n,e);return i?br(i,n,o):new RegExp(n)[e](rr(o))},function(n){var o=Zn(this),i=rr(n),a=r(t,o,i);if(a.done)return a.value;if(!o.global)return Ah(o,i);var s=o.unicode;o.lastIndex=0;for(var u,l=[],c=0;(u=Ah(o,i))!==null;){var f=rr(u[0]);l[c]=f,f===""&&(o.lastIndex=n7(i,Ch(o.lastIndex),s)),c++}return c===0?null:l}]});var f0e={type:"pre",renderElem:function(e,t,r){return $e("pre",null,t)}},d0e={type:"code",renderElem:function(e,t,r){return $e("code",null,t)}},p0e={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=$(e);return(t=t.filter(function(o){return z.getNodeType(o)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:n[0].textContent||""}]}]),{type:"pre",children:t.filter(function(o){return z.getNodeType(o)==="code"})}}},h0e={menus:[c0e],editorPlugin:function(e){var t=e.insertBreak,r=e.normalizeNode,n=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var i=z.getSelectedNodeByType(o,"code");if(i!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var d=me.string(l),p=f.anchor.offset,h=d.slice(0,p).split(`
135
+ `),g=h.length;return g===0?"":h[g-1]}(i,o);if(a){var s=a.match(/^\s+/);if(s!=null&&s[0]!=null){var u=s[0];return void o.insertText(`
136
+ `+u)}}o.insertText(`
137
+ `)}else t()},o.normalizeNode=function(i){var a=gt(i,2),s=a[0],u=a[1],l=z.getNodeType(s);return l==="code"&&u.length<=1&&Q.setNodes(o,{type:"paragraph"},{at:u}),l==="pre"&&(z.isLastNode(o,s)&&Q.insertNodes(o,z.genEmptyParagraph(),{at:[u[0]+1]}),z.getNodeType(s.children[0])!=="code"&&(Q.unwrapNodes(o),Q.setNodes(o,{type:"paragraph"},{mode:"highest"}))),r([s,u])},o.insertData=function(i){if(z.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");D.insertText(o,a)}else n(i)},o},renderElems:[f0e,d0e],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=$(e);if(Df(t)!=="code")return e;var r=t.find("xmp");if(r.length===0)return e;var n=r.text();return r.remove(),t.text(n),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,r){return{type:"code",language:"",children:[{text:$(e)[0].textContent||""}]}}},p0e]},g0e=function(){function e(){this.title=ye("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,r){t.isFullScreen?t.unFullScreen():t.fullScreen()},e}(),v0e={menus:[{key:"fullScreen",factory:function(){return new g0e}}]},m0e=function(){function e(){this.title=ye("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!!oe.isExpanded(r)},e.prototype.exec=function(t,r){var n=t.selection;if(n!=null){var o=[n.anchor.path[0]];Q.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(D.start(t,o))}},e}(),y0e=[kfe,sde,Rhe,qhe,Xhe,Zhe,Tde,o0e,Kde,yde,h0e,Ude,rde,Zce,jde,t0e,v0e,{menus:[{key:"enter",factory:function(){return new m0e}}]}];yn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),yn("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var SM=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function u9(e){var t={exports:{}};return e(t,t.exports),t.exports}var ks,d2,p2=function(e){return e&&e.Math==Math&&e},He=p2(typeof globalThis=="object"&&globalThis)||p2(typeof window=="object"&&window)||p2(typeof self=="object"&&self)||p2(typeof SM=="object"&&SM)||function(){return this}()||Function("return this")(),xM=Function.prototype,l9=xM.bind,c9=xM.call,b0e=l9&&l9.bind(c9),ot=l9?function(e){return e&&b0e(c9,e)}:function(e){return e&&function(){return c9.apply(e,arguments)}},ir=function(e){try{return!!e()}catch{return!0}},w0e=ot({}.toString),E0e=ot("".slice),ma=function(e){return E0e(w0e(e),8,-1)},f9=He.Object,S0e=ot("".split),CM=ir(function(){return!f9("z").propertyIsEnumerable(0)})?function(e){return ma(e)=="String"?S0e(e,""):f9(e)}:f9,x0e=He.TypeError,h2=function(e){if(e==null)throw x0e("Can't call method on "+e);return e},Bf=function(e){return CM(h2(e))},C0e=Object.defineProperty,d9=function(e,t){try{C0e(He,e,{value:t,configurable:!0,writable:!0})}catch{He[e]=t}return t},Ns=He["__core-js_shared__"]||d9("__core-js_shared__",{}),p9=u9(function(e){(e.exports=function(t,r){return Ns[t]||(Ns[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),D0e=He.Object,Gh=function(e){return D0e(h2(e))},_0e=ot({}.hasOwnProperty),Mr=Object.hasOwn||function(e,t){return _0e(Gh(e),t)},O0e=0,A0e=Math.random(),k0e=ot(1 .toString),h9=function(e){return"Symbol("+(e===void 0?"":e)+")_"+k0e(++O0e+A0e,36)},cr=function(e){return typeof e=="function"},N0e=function(e){return cr(e)?e:void 0},Wh=function(e,t){return arguments.length<2?N0e(He[e]):He[e]&&He[e][t]},g9=Wh("navigator","userAgent")||"",DM=He.process,_M=He.Deno,OM=DM&&DM.versions||_M&&_M.version,AM=OM&&OM.v8;AM&&(d2=(ks=AM.split("."))[0]>0&&ks[0]<4?1:+(ks[0]+ks[1])),!d2&&g9&&(!(ks=g9.match(/Edge\/(\d+)/))||ks[1]>=74)&&(ks=g9.match(/Chrome\/(\d+)/))&&(d2=+ks[1]);var g2,v9=d2,m9=!!Object.getOwnPropertySymbols&&!ir(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&v9&&v9<41}),y9=m9&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Yh=p9("wks"),Dl=He.Symbol,kM=Dl&&Dl.for,T0e=y9?Dl:Dl&&Dl.withoutSetter||h9,tn=function(e){if(!Mr(Yh,e)||!m9&&typeof Yh[e]!="string"){var t="Symbol."+e;m9&&Mr(Dl,e)?Yh[e]=Dl[e]:Yh[e]=y9&&kM?kM(t):T0e(t)}return Yh[e]},fr=function(e){return typeof e=="object"?e!==null:cr(e)},P0e=He.String,B0e=He.TypeError,Bn=function(e){if(fr(e))return e;throw B0e(P0e(e)+" is not an object")},Ts=!ir(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),b9=He.document,F0e=fr(b9)&&fr(b9.createElement),w9=function(e){return F0e?b9.createElement(e):{}},NM=!Ts&&!ir(function(){return Object.defineProperty(w9("div"),"a",{get:function(){return 7}}).a!=7}),Xh=Function.prototype.call,qr=Xh.bind?Xh.bind(Xh):function(){return Xh.apply(Xh,arguments)},v2=ot({}.isPrototypeOf),j0e=He.Object,E9=y9?function(e){return typeof e=="symbol"}:function(e){var t=Wh("Symbol");return cr(t)&&v2(t.prototype,j0e(e))},I0e=He.String,S9=function(e){try{return I0e(e)}catch{return"Object"}},L0e=He.TypeError,x9=function(e){if(cr(e))return e;throw L0e(S9(e)+" is not a function")},Jh=function(e,t){var r=e[t];return r==null?void 0:x9(r)},M0e=He.TypeError,z0e=He.TypeError,V0e=tn("toPrimitive"),C9=function(e){var t=function(r,n){if(!fr(r)||E9(r))return r;var o,i=Jh(r,V0e);if(i){if(o=qr(i,r,n),!fr(o)||E9(o))return o;throw z0e("Can't convert object to primitive value")}return function(a,s){var u,l;if(cr(u=a.toString)&&!fr(l=qr(u,a))||cr(u=a.valueOf)&&!fr(l=qr(u,a)))return l;throw M0e("Can't convert object to primitive value")}(r)}(e,"string");return E9(t)?t:t+""},R0e=He.TypeError,TM=Object.defineProperty,_l={f:Ts?TM:function(e,t,r){if(Bn(e),t=C9(t),Bn(r),NM)try{return TM(e,t,r)}catch{}if("get"in r||"set"in r)throw R0e("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},$0e=Math.ceil,H0e=Math.floor,Zh=function(e){var t=+e;return t!=t||t===0?0:(t>0?H0e:$0e)(t)},U0e=Math.max,q0e=Math.min,D9=function(e,t){var r=Zh(e);return r<0?U0e(r+t,0):q0e(r,t)},K0e=Math.min,PM=function(e){return e>0?K0e(Zh(e),9007199254740991):0},Ff=function(e){return PM(e.length)},BM=function(e){return function(t,r,n){var o,i=Bf(t),a=Ff(i),s=D9(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},FM={includes:BM(!0),indexOf:BM(!1)},m2={},G0e=FM.indexOf,jM=ot([].push),IM=function(e,t){var r,n=Bf(e),o=0,i=[];for(r in n)!Mr(m2,r)&&Mr(n,r)&&jM(i,r);for(;t.length>o;)Mr(n,r=t[o++])&&(~G0e(i,r)||jM(i,r));return i},y2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],W0e=Object.keys||function(e){return IM(e,y2)},Y0e=Ts?Object.defineProperties:function(e,t){Bn(e);for(var r,n=Bf(t),o=W0e(t),i=o.length,a=0;i>a;)_l.f(e,r=o[a++],n[r]);return e},X0e=Wh("document","documentElement"),LM=p9("keys"),_9=function(e){return LM[e]||(LM[e]=h9(e))},MM=_9("IE_PROTO"),O9=function(){},zM=function(e){return"<script>"+e+"<\/script>"},VM=function(e){e.write(zM("")),e.close();var t=e.parentWindow.Object;return e=null,t},b2=function(){try{g2=new ActiveXObject("htmlfile")}catch{}var e,t;b2=typeof document<"u"?document.domain&&g2?VM(g2):((t=w9("iframe")).style.display="none",X0e.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(zM("document.F=Object")),e.close(),e.F):VM(g2);for(var r=y2.length;r--;)delete b2.prototype[y2[r]];return b2()};m2[MM]=!0;var A9=Object.create||function(e,t){var r;return e!==null?(O9.prototype=Bn(e),r=new O9,O9.prototype=null,r[MM]=e):r=b2(),t===void 0?r:Y0e(r,t)},k9=tn("unscopables"),N9=Array.prototype;N9[k9]==null&&_l.f(N9,k9,{configurable:!0,value:A9(null)});var Qh=function(e){N9[k9][e]=!0},jf={},J0e=ot(Function.toString);cr(Ns.inspectSource)||(Ns.inspectSource=function(e){return J0e(e)});var w2,e0,E2,T9=Ns.inspectSource,RM=He.WeakMap,$M=cr(RM)&&/native code/.test(T9(RM)),S2=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ps=Ts?function(e,t,r){return _l.f(e,t,S2(1,r))}:function(e,t,r){return e[t]=r,e},P9=He.TypeError,Z0e=He.WeakMap;if($M||Ns.state){var Ol=Ns.state||(Ns.state=new Z0e),Q0e=ot(Ol.get),HM=ot(Ol.has),ege=ot(Ol.set);w2=function(e,t){if(HM(Ol,e))throw new P9("Object already initialized");return t.facade=e,ege(Ol,e,t),t},e0=function(e){return Q0e(Ol,e)||{}},E2=function(e){return HM(Ol,e)}}else{var If=_9("state");m2[If]=!0,w2=function(e,t){if(Mr(e,If))throw new P9("Object already initialized");return t.facade=e,Ps(e,If,t),t},e0=function(e){return Mr(e,If)?e[If]:{}},E2=function(e){return Mr(e,If)}}var Al,UM,qM,Pi={set:w2,get:e0,has:E2,enforce:function(e){return E2(e)?e0(e):w2(e,{})},getterFor:function(e){return function(t){var r;if(!fr(t)||(r=e0(t)).type!==e)throw P9("Incompatible receiver, "+e+" required");return r}}},KM={}.propertyIsEnumerable,GM=Object.getOwnPropertyDescriptor,tge={f:GM&&!KM.call({1:2},1)?function(e){var t=GM(this,e);return!!t&&t.enumerable}:KM},WM=Object.getOwnPropertyDescriptor,YM={f:Ts?WM:function(e,t){if(e=Bf(e),t=C9(t),NM)try{return WM(e,t)}catch{}if(Mr(e,t))return S2(!qr(tge.f,e,t),e[t])}},XM=Function.prototype,rge=Ts&&Object.getOwnPropertyDescriptor,B9=Mr(XM,"name"),F9={EXISTS:B9,PROPER:B9&&(function(){}).name==="something",CONFIGURABLE:B9&&(!Ts||Ts&&rge(XM,"name").configurable)},ya=u9(function(e){var t=F9.CONFIGURABLE,r=Pi.get,n=Pi.enforce,o=String(String).split("String");(e.exports=function(i,a,s,u){var l,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet,p=u&&u.name!==void 0?u.name:a;cr(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Mr(s,"name")||t&&s.name!==p)&&Ps(s,"name",p),(l=n(s)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==He?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=s:Ps(i,a,s)):f?i[a]=s:d9(a,s)})(Function.prototype,"toString",function(){return cr(this)&&r(this).source||T9(this)})}),nge=y2.concat("length","prototype"),x2={f:Object.getOwnPropertyNames||function(e){return IM(e,nge)}},oge={f:Object.getOwnPropertySymbols},ige=ot([].concat),age=Wh("Reflect","ownKeys")||function(e){var t=x2.f(Bn(e)),r=oge.f;return r?ige(t,r(e)):t},sge=function(e,t){for(var r=age(t),n=_l.f,o=YM.f,i=0;i<r.length;i++){var a=r[i];Mr(e,a)||n(e,a,o(t,a))}},uge=/#|\.prototype\./,t0=function(e,t){var r=cge[lge(e)];return r==dge||r!=fge&&(cr(t)?ir(t):!!t)},lge=t0.normalize=function(e){return String(e).replace(uge,".").toLowerCase()},cge=t0.data={},fge=t0.NATIVE="N",dge=t0.POLYFILL="P",j9=t0,pge=YM.f,Bs=function(e,t){var r,n,o,i,a,s=e.target,u=e.global,l=e.stat;if(r=u?He:l?He[s]||d9(s,{}):(He[s]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=pge(r,n))&&a.value:r[n],!j9(u?n:s+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;sge(i,o)}(e.sham||o&&o.sham)&&Ps(i,"sham",!0),ya(r,n,i,e)}},hge=!ir(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),JM=_9("IE_PROTO"),I9=He.Object,gge=I9.prototype,C2=hge?I9.getPrototypeOf:function(e){var t=Gh(e);if(Mr(t,JM))return t[JM];var r=t.constructor;return cr(r)&&t instanceof r?r.prototype:t instanceof I9?gge:null},L9=tn("iterator"),ZM=!1;[].keys&&("next"in(qM=[].keys())?(UM=C2(C2(qM)))!==Object.prototype&&(Al=UM):ZM=!0);var vge=Al==null||ir(function(){var e={};return Al[L9].call(e)!==e});vge&&(Al={}),cr(Al[L9])||ya(Al,L9,function(){return this});var M9={IteratorPrototype:Al,BUGGY_SAFARI_ITERATORS:ZM},mge=_l.f,QM=tn("toStringTag"),z9=function(e,t,r){e&&!Mr(e=r?e:e.prototype,QM)&&mge(e,QM,{configurable:!0,value:t})},yge=M9.IteratorPrototype,bge=function(){return this},wge=He.String,Ege=He.TypeError,D2=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=ot(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return Bn(n),function(i){if(typeof i=="object"||cr(i))return i;throw Ege("Can't set "+wge(i)+" as a prototype")}(o),t?e(n,o):n.__proto__=o,n}}():void 0),Sge=F9.PROPER,xge=F9.CONFIGURABLE,ez=M9.IteratorPrototype,V9=M9.BUGGY_SAFARI_ITERATORS,r0=tn("iterator"),Cge=function(){return this},tz=function(e,t,r,n,o,i,a){(function(m,y,v,E){var w=y+" Iterator";m.prototype=A9(yge,{next:S2(1,v)}),z9(m,w,!1),jf[w]=bge})(r,t,n);var s,u,l=function(m){if(m===o&&h)return h;if(!V9&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[r0]||d["@@iterator"]||o&&d[o],h=!V9&&p||l(o),g=t=="Array"&&d.entries||p;return g&&(s=C2(g.call(new e)))!==Object.prototype&&s.next&&(C2(s)!==ez&&(D2?D2(s,ez):cr(s[r0])||ya(s,r0,Cge)),z9(s,c,!0)),Sge&&o=="values"&&p&&p.name!=="values"&&(xge?Ps(d,"name","values"):(f=!0,h=function(){return qr(p,this)})),o&&(u={values:l("values"),keys:l("keys"),entries:l("entries")},a||Bs({target:t,proto:!0,forced:V9||f},u)),d[r0]!==h&&ya(d,r0,h,{name:o}),jf[t]=h,u},Dge=Pi.set,_ge=Pi.getterFor("Array Iterator"),n0=tz(Array,"Array",function(e,t){Dge(this,{type:"Array Iterator",target:Bf(e),index:0,kind:t})},function(){var e=_ge(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");jf.Arguments=jf.Array,Qh("keys"),Qh("values"),Qh("entries");var rz={};rz[tn("toStringTag")]="z";var R9=String(rz)==="[object z]",Oge=tn("toStringTag"),Age=He.Object,kge=ma(function(){return arguments}())=="Arguments",_2=R9?ma:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=Age(e),Oge))=="string"?r:kge?ma(t):(n=ma(t))=="Object"&&cr(t.callee)?"Arguments":n},Nge=R9?{}.toString:function(){return"[object "+_2(this)+"]"};R9||ya(Object.prototype,"toString",Nge,{unsafe:!0});var Tge=He.String,ba=function(e){if(_2(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Tge(e)},Pge=ot("".charAt),nz=ot("".charCodeAt),Bge=ot("".slice),oz=function(e){return function(t,r){var n,o,i=ba(h2(t)),a=Zh(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=nz(i,a))<55296||n>56319||a+1===s||(o=nz(i,a+1))<56320||o>57343?e?Pge(i,a):n:e?Bge(i,a,a+2):o-56320+(n-55296<<10)+65536}},iz={codeAt:oz(!1),charAt:oz(!0)},Fge=iz.charAt,jge=Pi.set,Ige=Pi.getterFor("String Iterator");tz(String,"String",function(e){jge(this,{type:"String Iterator",string:ba(e),index:0})},function(){var e,t=Ige(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Fge(r,n),t.index+=e.length,{value:e,done:!1})});var $9=function(e,t,r){for(var n in t)ya(e,n,t[n],r);return e},Lge=He.Array,Mge=Math.max,az=x2.f,sz=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zge={f:function(e){return sz&&ma(e)=="Window"?function(t){try{return az(t)}catch{return function(n,o,i){for(var a,s,u,l,c=Ff(n),f=D9(void 0,c),d=D9(c,c),p=Lge(Mge(d-f,0)),h=0;f<d;f++,h++)a=p,s=h,u=n[f],(l=C9(s))in a?_l.f(a,l,S2(0,u)):a[l]=u;return p.length=h,p}(sz)}}(e):az(Bf(e))}},uz=ir(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),O2=Object.isExtensible,kl=ir(function(){O2(1)})||uz?function(e){return!!fr(e)&&(!uz||ma(e)!="ArrayBuffer")&&(!O2||O2(e))}:O2,Vge=!ir(function(){return Object.isExtensible(Object.preventExtensions({}))}),H9=u9(function(e){var t=_l.f,r=!1,n=h9("meta"),o=0,i=function(s){t(s,n,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var s=x2.f,u=ot([].splice),l={};l[n]=1,s(l).length&&(x2.f=function(c){for(var f=s(c),d=0,p=f.length;d<p;d++)if(f[d]===n){u(f,d,1);break}return f},Bs({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:zge.f}))},fastKey:function(s,u){if(!fr(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Mr(s,n)){if(!kl(s))return"F";if(!u)return"E";i(s)}return s[n].objectID},getWeakData:function(s,u){if(!Mr(s,n)){if(!kl(s))return!0;if(!u)return!1;i(s)}return s[n].weakData},onFreeze:function(s){return Vge&&r&&kl(s)&&!Mr(s,n)&&i(s),s}};m2[n]=!0}),lz=ot(ot.bind),U9=function(e,t){return x9(e),t===void 0?e:lz?lz(e,t):function(){return e.apply(t,arguments)}},Rge=tn("iterator"),$ge=Array.prototype,Hge=tn("iterator"),cz=function(e){if(e!=null)return Jh(e,Hge)||Jh(e,"@@iterator")||jf[_2(e)]},Uge=He.TypeError,fz=function(e,t,r){var n,o;Bn(e);try{if(!(n=Jh(e,"return"))){if(t==="throw")throw r;return r}n=qr(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return Bn(n),r},qge=He.TypeError,A2=function(e,t){this.stopped=e,this.result=t},dz=A2.prototype,pz=function(e,t,r){var n,o,i,a,s,u,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),g=U9(t,f),m=function(v){return n&&fz(n,"normal",v),new A2(!0,v)},y=function(v){return d?(Bn(v),h?g(v[0],v[1],m):g(v[0],v[1])):h?g(v,m):g(v)};if(p)n=e;else{if(!(o=cz(e)))throw qge(S9(e)+" is not iterable");if((c=o)!==void 0&&(jf.Array===c||$ge[Rge]===c)){for(i=0,a=Ff(e);a>i;i++)if((s=y(e[i]))&&v2(dz,s))return s;return new A2(!1)}n=function(v,E){var w=arguments.length<2?cz(v):E;if(x9(w))return Bn(qr(w,v));throw Uge(S9(v)+" is not iterable")}(e,o)}for(u=n.next;!(l=qr(u,n)).done;){try{s=y(l.value)}catch(v){fz(n,"throw",v)}if(typeof s=="object"&&s&&v2(dz,s))return s}return new A2(!1)},Kge=He.TypeError,hz=function(e,t){if(v2(t,e))return e;throw Kge("Incorrect invocation")},gz=tn("iterator"),vz=!1;try{var Gge=0,mz={next:function(){return{done:!!Gge++}},return:function(){vz=!0}};mz[gz]=function(){return this},Array.from(mz,function(){throw 2})}catch{}var q9=Array.isArray||function(e){return ma(e)=="Array"},yz=function(){},Wge=[],bz=Wh("Reflect","construct"),K9=/^\s*(?:class|function)\b/,Yge=ot(K9.exec),Xge=!K9.exec(yz),o0=function(e){if(!cr(e))return!1;try{return bz(yz,Wge,e),!0}catch{return!1}},Jge=!bz||ir(function(){var e;return o0(o0.call)||!o0(Object)||!o0(function(){e=!0})||e})?function(e){if(!cr(e))return!1;switch(_2(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Xge||!!Yge(K9,T9(e))}:o0,Zge=tn("species"),wz=He.Array,Ez=function(e,t){return new(function(r){var n;return q9(r)&&(n=r.constructor,(Jge(n)&&(n===wz||q9(n.prototype))||fr(n)&&(n=n[Zge])===null)&&(n=void 0)),n===void 0?wz:n}(e))(t===0?0:t)},Sz=ot([].push),Fs=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,h=Gh(u),g=CM(h),m=U9(l,c),y=Ff(g),v=0,E=f||Ez,w=t?E(u,y):r||a?E(u,0):void 0;y>v;v++)if((s||v in g)&&(p=m(d=g[v],v,h),e))if(t)w[v]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:Sz(w,d)}else switch(e){case 4:return!1;case 7:Sz(w,d)}return i?-1:n||o?o:w}},G9={forEach:Fs(0),map:Fs(1),filter:Fs(2),some:Fs(3),every:Fs(4),find:Fs(5),findIndex:Fs(6),filterReject:Fs(7)},k2=H9.getWeakData,Qge=Pi.set,eve=Pi.getterFor,tve=G9.find,rve=G9.findIndex,nve=ot([].splice),ove=0,N2=function(e){return e.frozen||(e.frozen=new xz)},xz=function(){this.entries=[]},W9=function(e,t){return tve(e.entries,function(r){return r[0]===t})};xz.prototype={get:function(e){var t=W9(this,e);if(t)return t[1]},has:function(e){return!!W9(this,e)},set:function(e,t){var r=W9(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=rve(this.entries,function(r){return r[0]===e});return~t&&nve(this.entries,t,1),!!~t}};var i0,Cz={getConstructor:function(e,t,r,n){var o=e(function(u,l){hz(u,i),Qge(u,{type:t,id:ove++,frozen:void 0}),l!=null&&pz(l,u[n],{that:u,AS_ENTRIES:r})}),i=o.prototype,a=eve(t),s=function(u,l,c){var f=a(u),d=k2(Bn(l),!0);return d===!0?N2(f).set(l,c):d[f.id]=c,u};return $9(i,{delete:function(u){var l=a(this);if(!fr(u))return!1;var c=k2(u);return c===!0?N2(l).delete(u):c&&Mr(c,l.id)&&delete c[l.id]},has:function(u){var l=a(this);if(!fr(u))return!1;var c=k2(u);return c===!0?N2(l).has(u):c&&Mr(c,l.id)}}),$9(i,r?{get:function(u){var l=a(this);if(fr(u)){var c=k2(u);return c===!0?N2(l).get(u):c?c[l.id]:void 0}},set:function(u,l){return s(this,u,l)}}:{add:function(u){return s(this,u,!0)}}),o}},T2=Pi.enforce,ive=!He.ActiveXObject&&"ActiveXObject"in He,Dz=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ave=function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",a=He[e],s=a&&a.prototype,u=a,l={},c=function(m){var y=ot(s[m]);ya(s,m,m=="add"?function(v){return y(this,v===0?0:v),this}:m=="delete"?function(v){return!(o&&!fr(v))&&y(this,v===0?0:v)}:m=="get"?function(v){return o&&!fr(v)?void 0:y(this,v===0?0:v)}:m=="has"?function(v){return!(o&&!fr(v))&&y(this,v===0?0:v)}:function(v,E){return y(this,v===0?0:v,E),this})};if(j9(e,!cr(a)||!(o||s.forEach&&!ir(function(){new a().entries().next()}))))u=r.getConstructor(t,e,n,i),H9.enable();else if(j9(e,!0)){var f=new u,d=f[i](o?{}:-0,1)!=f,p=ir(function(){f.has(1)}),h=function(m,y){if(!vz)return!1;var v=!1;try{var E={};E[gz]=function(){return{next:function(){return{done:v=!0}}}},function(w){new a(w)}(E)}catch{}return v}(),g=!o&&ir(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});h||((u=t(function(m,y){hz(m,s);var v=function(E,w,S){var C,x;return D2&&cr(C=w.constructor)&&C!==S&&fr(x=C.prototype)&&x!==S.prototype&&D2(E,x),E}(new a,m,u);return y!=null&&pz(y,v[i],{that:v,AS_ENTRIES:n}),v})).prototype=s,s.constructor=u),(p||g)&&(c("delete"),c("has"),n&&c("get")),(g||d)&&c(i),o&&s.clear&&delete s.clear}return l[e]=u,Bs({global:!0,forced:u!=a},l),z9(u,e),o||r.setStrong(u,e,n),u}("WeakMap",Dz,Cz);if($M&&ive){i0=Cz.getConstructor(Dz,"WeakMap",!0),H9.enable();var a0=ave.prototype,_z=ot(a0.delete),P2=ot(a0.has),Oz=ot(a0.get),Az=ot(a0.set);$9(a0,{delete:function(e){if(fr(e)&&!kl(e)){var t=T2(this);return t.frozen||(t.frozen=new i0),_z(this,e)||t.frozen.delete(e)}return _z(this,e)},has:function(e){if(fr(e)&&!kl(e)){var t=T2(this);return t.frozen||(t.frozen=new i0),P2(this,e)||t.frozen.has(e)}return P2(this,e)},get:function(e){if(fr(e)&&!kl(e)){var t=T2(this);return t.frozen||(t.frozen=new i0),P2(this,e)?Oz(this,e):t.frozen.get(e)}return Oz(this,e)},set:function(e,t){if(fr(e)&&!kl(e)){var r=T2(this);r.frozen||(r.frozen=new i0),P2(this,e)?Az(this,e,t):r.frozen.set(e,t)}else Az(this,e,t);return this}})}var kz={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Y9=w9("span").classList,Nz=Y9&&Y9.constructor&&Y9.constructor.prototype,sve=Nz===Object.prototype?void 0:Nz,X9=tn("iterator"),Tz=tn("toStringTag"),J9=n0.values,Pz=function(e,t){if(e){if(e[X9]!==J9)try{Ps(e,X9,J9)}catch{e[X9]=J9}if(e[Tz]||Ps(e,Tz,t),kz[t]){for(var r in n0)if(e[r]!==n0[r])try{Ps(e,r,n0[r])}catch{e[r]=n0[r]}}}};for(var Z9 in kz)Pz(He[Z9]&&He[Z9].prototype,Z9);Pz(sve,"DOMTokenList");var Q9=new WeakMap,uve={type:"list-item",renderElem:function(e,t,r){Q9.set(e,r);var n=e,o=n.level,i=o===void 0?0:o,a=n.ordered,s={margin:"5px 0 5px "+20*i+"px"},u="";if(a!==void 0&&a){var l=function(f,d){var p=d,h=p.type,g=p.level,m=g===void 0?0:g,y=p.ordered,v=y!==void 0&&y;if(!v)return-1;var E=1,w=d,S=z.findPath(f,w);if(S[0]===0)return 1;for(;S[0]>0;){var C=J.previous(S),x=D.node(f,C);if(x==null)break;var _=x[0],P=_.level,q=P===void 0?0:P,H=_.type,k=_.ordered;if(H!==h||q<m)break;if(q===m){if(k!==v)break;E++}w=_,S=C}return E}(r,e);u=l+"."}else u=function(f){f===void 0&&(f=0);var d="";switch(f){case 0:d="•";break;case 1:d="◦";break;default:d="▪"}return d}(i);var c=function(f){var d,p=f.children||[],h=p.length;if(h===0)return"";for(var g=0;g<h&&!d;g++){var m=p[g];Ce.isText(m)&&(d=m)}return d==null?"":d.color||""}(e);return $e("div",{style:s},$e("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},u),$e("span",null,t))}},eE=function(e,t){return eE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},eE(e,t);/*! *****************************************************************************
138
+ Copyright (c) Microsoft Corporation.
139
+
140
+ Permission to use, copy, modify, and/or distribute this software for any
141
+ purpose with or without fee is hereby granted.
142
+
143
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
144
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
145
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
146
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
147
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
148
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
149
+ PERFORMANCE OF THIS SOFTWARE.
150
+ ***************************************************************************** */};function Bz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}eE(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Fz(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s0(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function jz(e){return D.nodes(e,{at:e.selection||void 0,match:function(t){return z.findPath(e,t).length===1}})}var lve=FM.includes;Bs({target:"Array",proto:!0},{includes:function(e){return lve(this,e,arguments.length>1?arguments[1]:void 0)}}),Qh("includes");var Iz,tE,cve=function(){var e=Bn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},rE=He.RegExp,nE=ir(function(){var e=rE("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),fve=nE||ir(function(){return!rE("a","y").sticky}),dve={BROKEN_CARET:nE||ir(function(){var e=rE("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:fve,UNSUPPORTED_Y:nE},pve=He.RegExp,hve=ir(function(){var e=pve(".","s");return!(e.dotAll&&e.exec(`
151
+ `)&&e.flags==="s")}),gve=He.RegExp,vve=ir(function(){var e=gve("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),mve=Pi.get,yve=p9("native-string-replace",String.prototype.replace),B2=RegExp.prototype.exec,oE=B2,bve=ot("".charAt),wve=ot("".indexOf),Eve=ot("".replace),iE=ot("".slice),aE=(tE=/b*/g,qr(B2,Iz=/a/,"a"),qr(B2,tE,"a"),Iz.lastIndex!==0||tE.lastIndex!==0),Lz=dve.BROKEN_CARET,sE=/()??/.exec("")[1]!==void 0;(aE||sE||Lz||hve||vve)&&(oE=function(e){var t,r,n,o,i,a,s,u=this,l=mve(u),c=ba(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=qr(oE,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=Lz&&u.sticky,h=qr(cve,u),g=u.source,m=0,y=c;if(p&&(h=Eve(h,"y",""),wve(h,"g")===-1&&(h+="g"),y=iE(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&bve(c,u.lastIndex-1)!==`
152
+ `)&&(g="(?: "+g+")",y=" "+y,m++),r=new RegExp("^(?:"+g+")",h)),sE&&(r=new RegExp("^"+g+"$(?!\\s)",h)),aE&&(n=u.lastIndex),o=qr(B2,p?r:u,y),p?o?(o.input=iE(o.input,m),o[0]=iE(o[0],m),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:aE&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),sE&&o&&o.length>1&&qr(yve,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=A9(null),i=0;i<d.length;i++)a[(s=d[i])[0]]=o[s[1]];return o});var F2=oE;Bs({target:"RegExp",proto:!0,forced:/./.exec!==F2},{exec:F2});var Mz=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var r=this.type;return z.getSelectedNodeByType(t,r)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var r=this.getListNode(t);if(r==null)return!1;var n=r.ordered;return(n!==void 0&&n)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!z.getSelectedElems(t).some(function(r){if(D.isVoid(t,r)&&D.isBlock(t,r))return!0;var n=r.type;return!!["pre","code","table"].includes(n)||void 0})},e.prototype.exec=function(t,r){this.isActive(t)?Q.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):Q.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),Sve='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',xve='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',Cve=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ordered=!1,r.title=ye("listModule.unOrderedList"),r.iconSvg=Sve,r}return Bz(t,e),t}(Mz),Dve=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ordered=!0,r.title=ye("listModule.orderedList"),r.iconSvg=xve,r}return Bz(t,e),t}(Mz),_ve={key:"bulletedList",factory:function(){return new Cve}},Ove={key:"numberedList",factory:function(){return new Dve}},zz=[],Ave={type:"list-item",elemToHtml:function(e,t){var r="",n="",o=e.ordered,i=o!==void 0&&o?"ol":"ul",a=function(l){var c=Q9.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,h=p!==void 0&&p,g=f.level,m=g===void 0?0:g,y=z.findPath(c,l);if(y[0]===0)return m+1;var v=J.previous(y),E=D.node(c,v);if(!E)return 0;var w=s0(E,1)[0];if(z.getNodeType(w)!==d)return m+1;var S=w,C=S.ordered,x=C!==void 0&&C,_=S.level,P=_===void 0?0:_;return P<m?m-P:P>m?0:P===m?x===h?0:1:0}(e);if(a>0)for(var s=0;s<a;s++)r+="<"+i+">",zz.push(i);var u=function(l){var c=Q9.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,h=p!==void 0&&p,g=f.level,m=g===void 0?0:g,y=z.findPath(c,l);if(y[0]===c.children.length-1)return m+1;var v=J.next(y),E=D.node(c,v);if(!E)return 0;var w=s0(E,1)[0];if(z.getNodeType(w)!==d)return m+1;var S=w,C=S.ordered,x=C!==void 0&&C,_=S.level,P=_===void 0?0:_;return P<m?m-P:P>m?0:P===m?x===h?0:1:0}(e);if(u>0)for(s=0;s<u;s++)n+="</"+zz.pop()+">";return{html:"<li>"+t+"</li>",prefix:r,suffix:n}}},kve=tn("species"),Nve=G9.filter,Tve=v9>=51||!ir(function(){var e=[];return(e.constructor={})[kve]=function(){return{foo:1}},e.filter(Boolean).foo!==1});Bs({target:"Array",proto:!0,forced:!Tve},{filter:function(e){return Nve(this,e,arguments.length>1?arguments[1]:void 0)}});var uE=Function.prototype,Vz=uE.apply,Pve=uE.bind,Rz=uE.call,Bve=typeof Reflect=="object"&&Reflect.apply||(Pve?Rz.bind(Vz):function(){return Rz.apply(Vz,arguments)}),$z=(tn("species"),RegExp.prototype),Fve=iz.charAt,jve=function(e,t,r){return t+(r?Fve(e,t).length:1)},Ive=Math.floor,lE=ot("".charAt),Lve=ot("".replace),cE=ot("".slice),Mve=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,zve=/\$([$&'`]|\d{1,2})/g,Vve=function(e,t,r,n,o,i){var a=r+e.length,s=n.length,u=zve;return o!==void 0&&(o=Gh(o),u=Mve),Lve(i,u,function(l,c){var f;switch(lE(c,0)){case"$":return"$";case"&":return e;case"`":return cE(t,0,r);case"'":return cE(t,a);case"<":f=o[cE(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>s){var p=Ive(d/10);return p===0?l:p<=s?n[p-1]===void 0?lE(c,1):n[p-1]+lE(c,1):l}f=n[d-1]}return f===void 0?"":f})},Rve=He.TypeError,$ve=function(e,t){var r=e.exec;if(cr(r)){var n=qr(r,e,t);return n!==null&&Bn(n),n}if(ma(e)==="RegExp")return qr(F2,e,t);throw Rve("RegExp#exec called on incompatible receiver")},fE=tn("replace"),Hve=Math.max,Uve=Math.min,qve=ot([].concat),dE=ot([].push),Hz=ot("".indexOf),Uz=ot("".slice),Kve="a".replace(/./,"$0")==="$0",qz=!!/./[fE]&&/./[fE]("a","$0")==="";(function(e,t,r,n){var o=tn(e),i=!ir(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!ir(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var s=ot(/./[o]),u=function(l,c,f){var d=qz?"$":"$0";return[function(p,h){var g=h2(this),m=p==null?void 0:Jh(p,fE);return m?qr(m,p,g,h):qr(c,ba(g),p,h)},function(p,h){var g=Bn(this),m=ba(p);if(typeof h=="string"&&Hz(h,d)===-1&&Hz(h,"$<")===-1){var y=f(c,g,m,h);if(y.done)return y.value}var v=cr(h);v||(h=ba(h));var E=g.global;if(E){var w=g.unicode;g.lastIndex=0}for(var S=[];;){var C=$ve(g,m);if(C===null||(dE(S,C),!E))break;ba(C[0])===""&&(g.lastIndex=jve(m,PM(g.lastIndex),w))}for(var x,_="",P=0,q=0;q<S.length;q++){for(var H=ba((C=S[q])[0]),k=Hve(Uve(Zh(C.index),m.length),0),M=[],I=1;I<C.length;I++)dE(M,(x=C[I])===void 0?x:String(x));var T=C.groups;if(v){var F=qve([H],M,k,m);T!==void 0&&dE(F,T);var U=ba(Bve(h,void 0,F))}else U=Vve(H,m,k,M,T,h);k>=P&&(_+=Uz(m,P,k)+U,P=k+H.length)}return _+Uz(m,P)}]}(0,""[e],function(l,c,f,d,p){var h=ot(l),g=c.exec;return g===F2||g===$z.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:h(f,c,d)}:{done:!1}});ya(String.prototype,e,u[0]),ya($z,o,u[1])}})("replace",0,!!ir(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Kve||qz);var Gve=He.TypeError,Kz=function(e,t,r,n,o,i,a,s){for(var u,l,c=o,f=0,d=!!a&&U9(a,s);f<n;){if(f in r){if(u=d?d(r[f],f,t):r[f],i>0&&q9(u))l=Ff(u),c=Kz(e,t,u,l,c,i-1)-1;else{if(c>=9007199254740991)throw Gve("Exceed the acceptable array length");e[c]=u}c++}f++}return c},Wve=Kz;function pE(e){return e.length?e[0].tagName.toLowerCase():""}Bs({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Gh(this),r=Ff(t),n=Ez(t,0);return n.length=Wve(n,t,t,r,0,e===void 0?1:Zh(e)),n}}),Qh("flat"),Bs({global:!0},{globalThis:He}),vo&&($.fn.append=vo),go&&($.fn.attr=go),Fc&&($.fn.parent=Fc);var Yve={renderElems:[uve],editorPlugin:function(e){var t=e.deleteBackward,r=e.handleTab,n=e.normalizeNode,o=e;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(oe.isExpanded(a))t(i);else{var s=z.getSelectedNodeByType(o,"list-item");if(s!=null)if(a.focus.offset!==0)t(i);else{var u=s.level,l=u===void 0?0:u;l>0?Q.setNodes(o,{level:l-1}):Q.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(i)}else t(i)},o.handleTab=function(){var i,a,s,u,l=o.selection;if(l!=null){if(oe.isCollapsed(l)){var c=z.getSelectedNodeByType(o,"list-item");if(c==null)return void r();if(l.focus.offset===0){var f=c.level,d=f===void 0?0:f;return void Q.setNodes(o,{level:d+1})}}if(oe.isExpanded(l)){var p=0,h=!1;try{for(var g=Fz(jz(o)),m=g.next();!m.done;m=g.next()){var y=s0(m.value,1)[0];z.getNodeType(y)==="list-item"?p++:h=!0}}catch(x){i={error:x}}finally{try{m&&!m.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}if(h||p<=1)return void r();try{for(var v=Fz(jz(o)),E=v.next();!E.done;E=v.next()){var w=s0(E.value,2),S=(y=w[0],w[1]),C=y.level;d=C===void 0?0:C,Q.setNodes(o,{level:d+1},{at:S})}}catch(x){s={error:x}}finally{try{E&&!E.done&&(u=v.return)&&u.call(v)}finally{if(s)throw s.error}}}else r()}else r()},o.normalizeNode=function(i){var a=s0(i,2),s=a[0],u=a[1],l=z.getNodeType(s);return l!=="bulleted-list"&&l!=="numbered-list"||Q.unwrapNodes(o,{at:u}),n([s,u])},o},menus:[_ve,Ove],elemsToHtml:[Ave],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,r){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=$(e);(t=t.filter(function(a){return!!Ce.isText(a)||!!r.isInline(a)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var o=function(a){return pE(a.parent())==="ol"}(n),i=function(a){for(var s=0,u=a.parent(),l=pE(u);l==="ul"||l==="ol";)l=pE(u=u.parent()),s++;return s-1}(n);return{type:"list-item",ordered:o,level:i,children:t}}}]},Gz=Su(function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",s="[object Date]",u="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",m="[object String]",y="[object Symbol]",v="[object WeakMap]",E="[object ArrayBuffer]",w="[object DataView]",S=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[o]=x[i]=x[E]=x[a]=x[w]=x[s]=x[u]=x[l]=x[c]=x[f]=x[d]=x[h]=x[g]=x[m]=x[v]=!1;var _=typeof Ft=="object"&&Ft&&Ft.Object===Object&&Ft,P=typeof self=="object"&&self&&self.Object===Object&&self,q=_||P||Function("return this")(),H=t&&!t.nodeType&&t,k=H&&e&&!e.nodeType&&e,M=k&&k.exports===H,I=M&&_.process,T=function(){try{return I&&I.binding&&I.binding("util")}catch{}}(),F=T&&T.isTypedArray;function U(Y,ne){for(var be=-1,Fe=Y==null?0:Y.length;++be<Fe;)if(ne(Y[be],be,Y))return!0;return!1}function R(Y){var ne=-1,be=Array(Y.size);return Y.forEach(function(Fe,At){be[++ne]=[At,Fe]}),be}function Z(Y){var ne=-1,be=Array(Y.size);return Y.forEach(function(Fe){be[++ne]=Fe}),be}var re=Array.prototype,O=Function.prototype,A=Object.prototype,V=q["__core-js_shared__"],B=O.toString,L=A.hasOwnProperty,j=function(){var Y=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||"");return Y?"Symbol(src)_1."+Y:""}(),W=A.toString,X=RegExp("^"+B.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ae=M?q.Buffer:void 0,ce=q.Symbol,ee=q.Uint8Array,fe=A.propertyIsEnumerable,pe=re.splice,ie=ce?ce.toStringTag:void 0,xe=Object.getOwnPropertySymbols,Xe=ae?ae.isBuffer:void 0,Le=function(Y,ne){return function(be){return Y(ne(be))}}(Object.keys,Object),Oe=uu(q,"DataView"),ue=uu(q,"Map"),Ie=uu(q,"Promise"),le=uu(q,"Set"),de=uu(q,"WeakMap"),ke=uu(Object,"create"),je=Oa(Oe),ve=Oa(ue),Qe=Oa(Ie),et=Oa(le),Et=Oa(de),Bt=ce?ce.prototype:void 0,De=Bt?Bt.valueOf:void 0;function Me(Y){var ne=-1,be=Y==null?0:Y.length;for(this.clear();++ne<be;){var Fe=Y[ne];this.set(Fe[0],Fe[1])}}function ut(Y){var ne=-1,be=Y==null?0:Y.length;for(this.clear();++ne<be;){var Fe=Y[ne];this.set(Fe[0],Fe[1])}}function sr(Y){var ne=-1,be=Y==null?0:Y.length;for(this.clear();++ne<be;){var Fe=Y[ne];this.set(Fe[0],Fe[1])}}function Lt(Y){var ne=-1,be=Y==null?0:Y.length;for(this.__data__=new sr;++ne<be;)this.add(Y[ne])}function nr(Y){var ne=this.__data__=new ut(Y);this.size=ne.size}function dr(Y,ne){var be=Aa(Y),Fe=!be&&Db(Y),At=!be&&!Fe&&Hi(Y),at=!be&&!Fe&&!At&&qi(Y),K=be||Fe||At||at,se=K?function(ft,Jt){for(var Rt=-1,mt=Array(ft);++Rt<ft;)mt[Rt]=Jt(Rt);return mt}(Y.length,String):[],Se=se.length;for(var Ne in Y)!L.call(Y,Ne)||K&&(Ne=="length"||At&&(Ne=="offset"||Ne=="parent")||at&&(Ne=="buffer"||Ne=="byteLength"||Ne=="byteOffset")||Bg(Ne,Se))||se.push(Ne);return se}function jn(Y,ne){for(var be=Y.length;be--;)if(hd(Y[be][0],ne))return be;return-1}function Gt(Y){return Y==null?Y===void 0?"[object Undefined]":"[object Null]":ie&&ie in Object(Y)?function(ne){var be=L.call(ne,ie),Fe=ne[ie];try{ne[ie]=void 0;var At=!0}catch{}var at=W.call(ne);return At&&(be?ne[ie]=Fe:delete ne[ie]),at}(Y):function(ne){return W.call(ne)}(Y)}function Da(Y){return lu(Y)&&Gt(Y)==o}function $i(Y,ne,be,Fe,At){return Y===ne||(Y==null||ne==null||!lu(Y)&&!lu(ne)?Y!=Y&&ne!=ne:function(at,K,se,Se,Ne,ft){var Jt=Aa(at),Rt=Aa(K),mt=Jt?i:no(at),Vr=Rt?i:no(K),pn=(mt=mt==o?d:mt)==d,Xl=(Vr=Vr==o?d:Vr)==d,ka=mt==Vr;if(ka&&Hi(at)){if(!Hi(K))return!1;Jt=!0,pn=!1}if(ka&&!pn)return ft||(ft=new nr),Jt||qi(at)?Fo(at,K,se,Se,Ne,ft):function(lt,yt,bt,pr,wn,In,ui){switch(bt){case w:if(lt.byteLength!=yt.byteLength||lt.byteOffset!=yt.byteOffset)return!1;lt=lt.buffer,yt=yt.buffer;case E:return!(lt.byteLength!=yt.byteLength||!In(new ee(lt),new ee(yt)));case a:case s:case f:return hd(+lt,+yt);case u:return lt.name==yt.name&&lt.message==yt.message;case h:case m:return lt==yt+"";case c:var fu=R;case g:var jg=1&pr;if(fu||(fu=Z),lt.size!=yt.size&&!jg)return!1;var Ab=ui.get(lt);if(Ab)return Ab==yt;pr|=2,ui.set(lt,yt);var gd=Fo(fu(lt),fu(yt),pr,wn,In,ui);return ui.delete(lt),gd;case y:if(De)return De.call(lt)==De.call(yt)}return!1}(at,K,mt,se,Se,Ne,ft);if(!(1&se)){var cu=pn&&L.call(at,"__wrapped__"),Ue=Xl&&L.call(K,"__wrapped__");if(cu||Ue){var Ct=cu?at.value():at,Cr=Ue?K.value():K;return ft||(ft=new nr),Ne(Ct,Cr,se,Se,ft)}}return ka?(ft||(ft=new nr),function(lt,yt,bt,pr,wn,In){var ui=1&bt,fu=_a(lt),jg=fu.length,Ab=_a(yt).length;if(jg!=Ab&&!ui)return!1;for(var gd=jg;gd--;){var Jl=fu[gd];if(!(ui?Jl in yt:L.call(yt,Jl)))return!1}var UK=In.get(lt);if(UK&&In.get(yt))return UK==yt;var kb=!0;In.set(lt,yt),In.set(yt,lt);for(var ZD=ui;++gd<jg;){var Nb=lt[Jl=fu[gd]],Tb=yt[Jl];if(pr)var qK=ui?pr(Tb,Nb,Jl,yt,lt,In):pr(Nb,Tb,Jl,lt,yt,In);if(!(qK===void 0?Nb===Tb||wn(Nb,Tb,bt,pr,In):qK)){kb=!1;break}ZD||(ZD=Jl=="constructor")}if(kb&&!ZD){var Pb=lt.constructor,Bb=yt.constructor;Pb==Bb||!("constructor"in lt)||!("constructor"in yt)||typeof Pb=="function"&&Pb instanceof Pb&&typeof Bb=="function"&&Bb instanceof Bb||(kb=!1)}return In.delete(lt),In.delete(yt),kb}(at,K,se,Se,Ne,ft)):!1}(Y,ne,be,Fe,$i,At))}function ur(Y){return!(!_b(Y)||function(ne){return!!j&&j in ne}(Y))&&(Fg(Y)?X:S).test(Oa(Y))}function ai(Y){if(be=(ne=Y)&&ne.constructor,Fe=typeof be=="function"&&be.prototype||A,ne!==Fe)return Le(Y);var ne,be,Fe,At=[];for(var at in Object(Y))L.call(Y,at)&&at!="constructor"&&At.push(at);return At}function Fo(Y,ne,be,Fe,At,at){var K=1&be,se=Y.length,Se=ne.length;if(se!=Se&&!(K&&Se>se))return!1;var Ne=at.get(Y);if(Ne&&at.get(ne))return Ne==ne;var ft=-1,Jt=!0,Rt=2&be?new Lt:void 0;for(at.set(Y,ne),at.set(ne,Y);++ft<se;){var mt=Y[ft],Vr=ne[ft];if(Fe)var pn=K?Fe(Vr,mt,ft,ne,Y,at):Fe(mt,Vr,ft,Y,ne,at);if(pn!==void 0){if(pn)continue;Jt=!1;break}if(Rt){if(!U(ne,function(Xl,ka){if(cu=ka,!Rt.has(cu)&&(mt===Xl||At(mt,Xl,be,Fe,at)))return Rt.push(ka);var cu})){Jt=!1;break}}else if(mt!==Vr&&!At(mt,Vr,be,Fe,at)){Jt=!1;break}}return at.delete(Y),at.delete(ne),Jt}function _a(Y){return function(ne,be,Fe){var At=be(ne);return Aa(ne)?At:function(at,K){for(var se=-1,Se=K.length,Ne=at.length;++se<Se;)at[Ne+se]=K[se];return at}(At,Fe(ne))}(Y,Ob,Cb)}function si(Y,ne){var be,Fe,At=Y.__data__;return((Fe=typeof(be=ne))=="string"||Fe=="number"||Fe=="symbol"||Fe=="boolean"?be!=="__proto__":be===null)?At[typeof ne=="string"?"string":"hash"]:At.map}function uu(Y,ne){var be=function(Fe,At){return Fe==null?void 0:Fe[At]}(Y,ne);return ur(be)?be:void 0}Me.prototype.clear=function(){this.__data__=ke?ke(null):{},this.size=0},Me.prototype.delete=function(Y){var ne=this.has(Y)&&delete this.__data__[Y];return this.size-=ne?1:0,ne},Me.prototype.get=function(Y){var ne=this.__data__;if(ke){var be=ne[Y];return be===r?void 0:be}return L.call(ne,Y)?ne[Y]:void 0},Me.prototype.has=function(Y){var ne=this.__data__;return ke?ne[Y]!==void 0:L.call(ne,Y)},Me.prototype.set=function(Y,ne){var be=this.__data__;return this.size+=this.has(Y)?0:1,be[Y]=ke&&ne===void 0?r:ne,this},ut.prototype.clear=function(){this.__data__=[],this.size=0},ut.prototype.delete=function(Y){var ne=this.__data__,be=jn(ne,Y);return!(be<0)&&(be==ne.length-1?ne.pop():pe.call(ne,be,1),--this.size,!0)},ut.prototype.get=function(Y){var ne=this.__data__,be=jn(ne,Y);return be<0?void 0:ne[be][1]},ut.prototype.has=function(Y){return jn(this.__data__,Y)>-1},ut.prototype.set=function(Y,ne){var be=this.__data__,Fe=jn(be,Y);return Fe<0?(++this.size,be.push([Y,ne])):be[Fe][1]=ne,this},sr.prototype.clear=function(){this.size=0,this.__data__={hash:new Me,map:new(ue||ut),string:new Me}},sr.prototype.delete=function(Y){var ne=si(this,Y).delete(Y);return this.size-=ne?1:0,ne},sr.prototype.get=function(Y){return si(this,Y).get(Y)},sr.prototype.has=function(Y){return si(this,Y).has(Y)},sr.prototype.set=function(Y,ne){var be=si(this,Y),Fe=be.size;return be.set(Y,ne),this.size+=be.size==Fe?0:1,this},Lt.prototype.add=Lt.prototype.push=function(Y){return this.__data__.set(Y,r),this},Lt.prototype.has=function(Y){return this.__data__.has(Y)},nr.prototype.clear=function(){this.__data__=new ut,this.size=0},nr.prototype.delete=function(Y){var ne=this.__data__,be=ne.delete(Y);return this.size=ne.size,be},nr.prototype.get=function(Y){return this.__data__.get(Y)},nr.prototype.has=function(Y){return this.__data__.has(Y)},nr.prototype.set=function(Y,ne){var be=this.__data__;if(be instanceof ut){var Fe=be.__data__;if(!ue||Fe.length<199)return Fe.push([Y,ne]),this.size=++be.size,this;be=this.__data__=new sr(Fe)}return be.set(Y,ne),this.size=be.size,this};var Cb=xe?function(Y){return Y==null?[]:(Y=Object(Y),function(ne,be){for(var Fe=-1,At=ne==null?0:ne.length,at=0,K=[];++Fe<At;){var se=ne[Fe];be(se,Fe,ne)&&(K[at++]=se)}return K}(xe(Y),function(ne){return fe.call(Y,ne)}))}:function(){return[]},no=Gt;function Bg(Y,ne){return!!(ne=ne??n)&&(typeof Y=="number"||C.test(Y))&&Y>-1&&Y%1==0&&Y<ne}function Oa(Y){if(Y!=null){try{return B.call(Y)}catch{}try{return Y+""}catch{}}return""}function hd(Y,ne){return Y===ne||Y!=Y&&ne!=ne}(Oe&&no(new Oe(new ArrayBuffer(1)))!=w||ue&&no(new ue)!=c||Ie&&no(Ie.resolve())!=p||le&&no(new le)!=g||de&&no(new de)!=v)&&(no=function(Y){var ne=Gt(Y),be=ne==d?Y.constructor:void 0,Fe=be?Oa(be):"";if(Fe)switch(Fe){case je:return w;case ve:return c;case Qe:return p;case et:return g;case Et:return v}return ne});var Db=Da(function(){return arguments}())?Da:function(Y){return lu(Y)&&L.call(Y,"callee")&&!fe.call(Y,"callee")},Aa=Array.isArray,Hi=Xe||function(){return!1};function Fg(Y){if(!_b(Y))return!1;var ne=Gt(Y);return ne==l||ne=="[object GeneratorFunction]"||ne=="[object AsyncFunction]"||ne=="[object Proxy]"}function Ui(Y){return typeof Y=="number"&&Y>-1&&Y%1==0&&Y<=n}function _b(Y){var ne=typeof Y;return Y!=null&&(ne=="object"||ne=="function")}function lu(Y){return Y!=null&&typeof Y=="object"}var qi=F?function(Y){return function(ne){return Y(ne)}}(F):function(Y){return lu(Y)&&Ui(Y.length)&&!!x[Gt(Y)]};function Ob(Y){return(ne=Y)!=null&&Ui(ne.length)&&!Fg(ne)?dr(Y):ai(Y);var ne}e.exports=function(Y,ne){return $i(Y,ne)}});yn("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),yn("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var Wz=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yz(e){var t={exports:{}};return e(t,t.exports),t.exports}var js,j2,I2=function(e){return e&&e.Math==Math&&e},rt=I2(typeof globalThis=="object"&&globalThis)||I2(typeof window=="object"&&window)||I2(typeof self=="object"&&self)||I2(typeof Wz=="object"&&Wz)||function(){return this}()||Function("return this")(),Tr=function(e){try{return!!e()}catch{return!0}},Is=!Tr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),u0=Function.prototype.call,zr=u0.bind?u0.bind(u0):function(){return u0.apply(u0,arguments)},Xz={}.propertyIsEnumerable,Jz=Object.getOwnPropertyDescriptor,Xve={f:Jz&&!Xz.call({1:2},1)?function(e){var t=Jz(this,e);return!!t&&t.enumerable}:Xz},hE=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Zz=Function.prototype,gE=Zz.bind,vE=Zz.call,Jve=gE&&gE.bind(vE),st=gE?function(e){return e&&Jve(vE,e)}:function(e){return e&&function(){return vE.apply(e,arguments)}},Zve=st({}.toString),Qve=st("".slice),Ls=function(e){return Qve(Zve(e),8,-1)},mE=rt.Object,e1e=st("".split),Qz=Tr(function(){return!mE("z").propertyIsEnumerable(0)})?function(e){return Ls(e)=="String"?e1e(e,""):mE(e)}:mE,t1e=rt.TypeError,Ms=function(e){if(e==null)throw t1e("Can't call method on "+e);return e},l0=function(e){return Qz(Ms(e))},fn=function(e){return typeof e=="function"},ri=function(e){return typeof e=="object"?e!==null:fn(e)},r1e=function(e){return fn(e)?e:void 0},c0=function(e,t){return arguments.length<2?r1e(rt[e]):rt[e]&&rt[e][t]},eV=st({}.isPrototypeOf),yE=c0("navigator","userAgent")||"",tV=rt.process,rV=rt.Deno,nV=tV&&tV.versions||rV&&rV.version,oV=nV&&nV.v8;oV&&(j2=(js=oV.split("."))[0]>0&&js[0]<4?1:+(js[0]+js[1])),!j2&&yE&&(!(js=yE.match(/Edge\/(\d+)/))||js[1]>=74)&&(js=yE.match(/Chrome\/(\d+)/))&&(j2=+js[1]);var bE=j2,wE=!!Object.getOwnPropertySymbols&&!Tr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bE&&bE<41}),EE=wE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",n1e=rt.Object,SE=EE?function(e){return typeof e=="symbol"}:function(e){var t=c0("Symbol");return fn(t)&&eV(t.prototype,n1e(e))},o1e=rt.String,iV=function(e){try{return o1e(e)}catch{return"Object"}},i1e=rt.TypeError,aV=function(e){if(fn(e))return e;throw i1e(iV(e)+" is not a function")},xE=function(e,t){var r=e[t];return r==null?void 0:aV(r)},a1e=rt.TypeError,s1e=Object.defineProperty,CE=function(e,t){try{s1e(rt,e,{value:t,configurable:!0,writable:!0})}catch{rt[e]=t}return t},zs=rt["__core-js_shared__"]||CE("__core-js_shared__",{}),DE=Yz(function(e){(e.exports=function(t,r){return zs[t]||(zs[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),u1e=rt.Object,_E=function(e){return u1e(Ms(e))},l1e=st({}.hasOwnProperty),Oo=Object.hasOwn||function(e,t){return l1e(_E(e),t)},c1e=0,f1e=Math.random(),d1e=st(1 .toString),sV=function(e){return"Symbol("+(e===void 0?"":e)+")_"+d1e(++c1e+f1e,36)},f0=DE("wks"),Nl=rt.Symbol,uV=Nl&&Nl.for,p1e=EE?Nl:Nl&&Nl.withoutSetter||sV,Ao=function(e){if(!Oo(f0,e)||!wE&&typeof f0[e]!="string"){var t="Symbol."+e;wE&&Oo(Nl,e)?f0[e]=Nl[e]:f0[e]=EE&&uV?uV(t):p1e(t)}return f0[e]},h1e=rt.TypeError,g1e=Ao("toPrimitive"),OE=function(e){var t=function(r,n){if(!ri(r)||SE(r))return r;var o,i=xE(r,g1e);if(i){if(o=zr(i,r,n),!ri(o)||SE(o))return o;throw h1e("Can't convert object to primitive value")}return function(a,s){var u,l;if(fn(u=a.toString)&&!ri(l=zr(u,a))||fn(u=a.valueOf)&&!ri(l=zr(u,a)))return l;throw a1e("Can't convert object to primitive value")}(r)}(e,"string");return SE(t)?t:t+""},AE=rt.document,v1e=ri(AE)&&ri(AE.createElement),kE=function(e){return v1e?AE.createElement(e):{}},lV=!Is&&!Tr(function(){return Object.defineProperty(kE("div"),"a",{get:function(){return 7}}).a!=7}),cV=Object.getOwnPropertyDescriptor,fV={f:Is?cV:function(e,t){if(e=l0(e),t=OE(t),lV)try{return cV(e,t)}catch{}if(Oo(e,t))return hE(!zr(Xve.f,e,t),e[t])}},m1e=rt.String,y1e=rt.TypeError,ko=function(e){if(ri(e))return e;throw y1e(m1e(e)+" is not an object")},b1e=rt.TypeError,dV=Object.defineProperty,d0={f:Is?dV:function(e,t,r){if(ko(e),t=OE(t),ko(r),lV)try{return dV(e,t,r)}catch{}if("get"in r||"set"in r)throw b1e("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Lf=Is?function(e,t,r){return d0.f(e,t,hE(1,r))}:function(e,t,r){return e[t]=r,e},w1e=st(Function.toString);fn(zs.inspectSource)||(zs.inspectSource=function(e){return w1e(e)});var L2,p0,M2,NE=zs.inspectSource,pV=rt.WeakMap,E1e=fn(pV)&&/native code/.test(NE(pV)),hV=DE("keys"),gV=function(e){return hV[e]||(hV[e]=sV(e))},TE={},PE=rt.TypeError,S1e=rt.WeakMap;if(E1e||zs.state){var Tl=zs.state||(zs.state=new S1e),x1e=st(Tl.get),vV=st(Tl.has),C1e=st(Tl.set);L2=function(e,t){if(vV(Tl,e))throw new PE("Object already initialized");return t.facade=e,C1e(Tl,e,t),t},p0=function(e){return x1e(Tl,e)||{}},M2=function(e){return vV(Tl,e)}}else{var Mf=gV("state");TE[Mf]=!0,L2=function(e,t){if(Oo(e,Mf))throw new PE("Object already initialized");return t.facade=e,Lf(e,Mf,t),t},p0=function(e){return Oo(e,Mf)?e[Mf]:{}},M2=function(e){return Oo(e,Mf)}}var BE={set:L2,get:p0,has:M2,enforce:function(e){return M2(e)?p0(e):L2(e,{})},getterFor:function(e){return function(t){var r;if(!ri(t)||(r=p0(t)).type!==e)throw PE("Incompatible receiver, "+e+" required");return r}}},mV=Function.prototype,D1e=Is&&Object.getOwnPropertyDescriptor,FE=Oo(mV,"name"),jE={EXISTS:FE,PROPER:FE&&(function(){}).name==="something",CONFIGURABLE:FE&&(!Is||Is&&D1e(mV,"name").configurable)},h0=Yz(function(e){var t=jE.CONFIGURABLE,r=BE.get,n=BE.enforce,o=String(String).split("String");(e.exports=function(i,a,s,u){var l,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet,p=u&&u.name!==void 0?u.name:a;fn(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Oo(s,"name")||t&&s.name!==p)&&Lf(s,"name",p),(l=n(s)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==rt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=s:Lf(i,a,s)):f?i[a]=s:CE(a,s)})(Function.prototype,"toString",function(){return fn(this)&&r(this).source||NE(this)})}),_1e=Math.ceil,O1e=Math.floor,z2=function(e){var t=+e;return t!=t||t===0?0:(t>0?O1e:_1e)(t)},A1e=Math.max,k1e=Math.min,g0=function(e,t){var r=z2(e);return r<0?A1e(r+t,0):k1e(r,t)},N1e=Math.min,IE=function(e){return e>0?N1e(z2(e),9007199254740991):0},V2=function(e){return IE(e.length)},T1e=function(e){return function(t,r,n){var o,i=l0(t),a=V2(i),s=g0(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},P1e=T1e(!1),yV=st([].push),bV=function(e,t){var r,n=l0(e),o=0,i=[];for(r in n)!Oo(TE,r)&&Oo(n,r)&&yV(i,r);for(;t.length>o;)Oo(n,r=t[o++])&&(~P1e(i,r)||yV(i,r));return i},R2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],B1e=R2.concat("length","prototype"),F1e={f:Object.getOwnPropertyNames||function(e){return bV(e,B1e)}},j1e={f:Object.getOwnPropertySymbols},I1e=st([].concat),L1e=c0("Reflect","ownKeys")||function(e){var t=F1e.f(ko(e)),r=j1e.f;return r?I1e(t,r(e)):t},M1e=function(e,t){for(var r=L1e(t),n=d0.f,o=fV.f,i=0;i<r.length;i++){var a=r[i];Oo(e,a)||n(e,a,o(t,a))}},z1e=/#|\.prototype\./,v0=function(e,t){var r=R1e[V1e(e)];return r==H1e||r!=$1e&&(fn(t)?Tr(t):!!t)},V1e=v0.normalize=function(e){return String(e).replace(z1e,".").toLowerCase()},R1e=v0.data={},$1e=v0.NATIVE="N",H1e=v0.POLYFILL="P",U1e=v0,q1e=fV.f,Vs=function(e,t){var r,n,o,i,a,s=e.target,u=e.global,l=e.stat;if(r=u?rt:l?rt[s]||CE(s,{}):(rt[s]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=q1e(r,n))&&a.value:r[n],!U1e(u?n:s+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;M1e(i,o)}(e.sham||o&&o.sham)&&Lf(i,"sham",!0),h0(r,n,i,e)}},wV={};wV[Ao("toStringTag")]="z";var LE=String(wV)==="[object z]",K1e=Ao("toStringTag"),G1e=rt.Object,W1e=Ls(function(){return arguments}())=="Arguments",ME=LE?Ls:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=G1e(e),K1e))=="string"?r:W1e?Ls(t):(n=Ls(t))=="Object"&&fn(t.callee)?"Arguments":n},Y1e=rt.String,dn=function(e){if(ME(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Y1e(e)},X1e=/"/g,J1e=st("".replace);Vs({target:"String",proto:!0,forced:Tr(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,r=dn(Ms(this)),n="<a",(n+=' name="'+J1e(dn(t),X1e,"&quot;")+'"')+">"+r+"</a>";var t,r,n}});var $2,EV=function(){var e=ko(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},zE=rt.RegExp,VE=Tr(function(){var e=zE("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Z1e=VE||Tr(function(){return!zE("a","y").sticky}),SV={BROKEN_CARET:VE||Tr(function(){var e=zE("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Z1e,UNSUPPORTED_Y:VE},Q1e=Object.keys||function(e){return bV(e,R2)},eme=Is?Object.defineProperties:function(e,t){ko(e);for(var r,n=l0(t),o=Q1e(t),i=o.length,a=0;i>a;)d0.f(e,r=o[a++],n[r]);return e},tme=c0("document","documentElement"),xV=gV("IE_PROTO"),RE=function(){},CV=function(e){return"<script>"+e+"<\/script>"},DV=function(e){e.write(CV("")),e.close();var t=e.parentWindow.Object;return e=null,t},H2=function(){try{$2=new ActiveXObject("htmlfile")}catch{}var e,t;H2=typeof document<"u"?document.domain&&$2?DV($2):((t=kE("iframe")).style.display="none",tme.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(CV("document.F=Object")),e.close(),e.F):DV($2);for(var r=R2.length;r--;)delete H2.prototype[R2[r]];return H2()};TE[xV]=!0;var _V,$E,OV=Object.create||function(e,t){var r;return e!==null?(RE.prototype=ko(e),r=new RE,RE.prototype=null,r[xV]=e):r=H2(),t===void 0?r:eme(r,t)},rme=rt.RegExp,nme=Tr(function(){var e=rme(".","s");return!(e.dotAll&&e.exec(`
153
+ `)&&e.flags==="s")}),ome=rt.RegExp,ime=Tr(function(){var e=ome("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),ame=BE.get,sme=DE("native-string-replace",String.prototype.replace),U2=RegExp.prototype.exec,HE=U2,ume=st("".charAt),lme=st("".indexOf),cme=st("".replace),UE=st("".slice),qE=($E=/b*/g,zr(U2,_V=/a/,"a"),zr(U2,$E,"a"),_V.lastIndex!==0||$E.lastIndex!==0),AV=SV.BROKEN_CARET,KE=/()??/.exec("")[1]!==void 0;(qE||KE||AV||nme||ime)&&(HE=function(e){var t,r,n,o,i,a,s,u=this,l=ame(u),c=dn(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=zr(HE,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=AV&&u.sticky,h=zr(EV,u),g=u.source,m=0,y=c;if(p&&(h=cme(h,"y",""),lme(h,"g")===-1&&(h+="g"),y=UE(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&ume(c,u.lastIndex-1)!==`
154
+ `)&&(g="(?: "+g+")",y=" "+y,m++),r=new RegExp("^(?:"+g+")",h)),KE&&(r=new RegExp("^"+g+"$(?!\\s)",h)),qE&&(n=u.lastIndex),o=zr(U2,p?r:u,y),p?o?(o.input=UE(o.input,m),o[0]=UE(o[0],m),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:qE&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),KE&&o&&o.length>1&&zr(sme,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=OV(null),i=0;i<d.length;i++)a[(s=d[i])[0]]=o[s[1]];return o});var m0=HE;Vs({target:"RegExp",proto:!0,forced:/./.exec!==m0},{exec:m0});var q2=Array.isArray||function(e){return Ls(e)=="Array"},kV=function(){},fme=[],NV=c0("Reflect","construct"),GE=/^\s*(?:class|function)\b/,dme=st(GE.exec),pme=!GE.exec(kV),y0=function(e){if(!fn(e))return!1;try{return NV(kV,fme,e),!0}catch{return!1}},WE=!NV||Tr(function(){var e;return y0(y0.call)||!y0(Object)||!y0(function(){e=!0})||e})?function(e){if(!fn(e))return!1;switch(ME(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return pme||!!dme(GE,NE(e))}:y0,TV=function(e,t,r){var n=OE(t);n in e?d0.f(e,n,hE(0,r)):e[n]=r},hme=Ao("species"),YE=function(e){return bE>=51||!Tr(function(){var t=[];return(t.constructor={})[hme]=function(){return{foo:1}},t[e](Boolean).foo!==1})},gme=st([].slice),vme=YE("slice"),mme=Ao("species"),XE=rt.Array,yme=Math.max;function ni(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function PV(e){var t=e.selection;if(t==null)return!1;var r=ni(D.nodes(e,{match:function(i){return z.checkNodeType(i,"table-cell")}}),1)[0];if(r){var n=ni(r,2)[1],o=D.start(e,n);if(Ze.equals(t.anchor,o))return!0}return!1}function BV(e,t){var r,n,o=D.nodes(e,{at:t,match:function(u){return z.getNodeType(u)==="table"}}),i=!1;try{for(var a=function(u){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&u[l],f=0;if(c)return c.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&f>=u.length&&(u=void 0),{value:u&&u[f++],done:!u}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),s=a.next();!s.done;s=a.next())s.value,i=!0}catch(u){r={error:u}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}Vs({target:"Array",proto:!0,forced:!vme},{slice:function(e,t){var r,n,o,i=l0(this),a=V2(i),s=g0(e,a),u=g0(t===void 0?a:t,a);if(q2(i)&&(r=i.constructor,(WE(r)&&(r===XE||q2(r.prototype))||ri(r)&&(r=r[mme])===null)&&(r=void 0),r===XE||r===void 0))return gme(i,s,u);for(n=new(r===void 0?XE:r)(yme(u-s,0)),o=0;s<u;s++,o++)s in i&&TV(n,o,i[s]);return n.length=o,n}});var FV=st(st.bind),bme=Ao("species"),jV=rt.Array,wme=function(e,t){return new(function(r){var n;return q2(r)&&(n=r.constructor,(WE(n)&&(n===jV||q2(n.prototype))||ri(n)&&(n=n[bme])===null)&&(n=void 0)),n===void 0?jV:n}(e))(t===0?0:t)},IV=st([].push),Rs=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,h=_E(u),g=Qz(h),m=function(S,C){return aV(S),C===void 0?S:FV?FV(S,C):function(){return S.apply(C,arguments)}}(l,c),y=V2(g),v=0,E=f||wme,w=t?E(u,y):r||a?E(u,0):void 0;y>v;v++)if((s||v in g)&&(p=m(d=g[v],v,h),e))if(t)w[v]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:IV(w,d)}else switch(e){case 4:return!1;case 7:IV(w,d)}return i?-1:n||o?o:w}},K2={forEach:Rs(0),map:Rs(1),filter:Rs(2),some:Rs(3),every:Rs(4),find:Rs(5),findIndex:Rs(6),filterReject:Rs(7)},Eme=K2.map;Vs({target:"Array",proto:!0,forced:!YE("map")},{map:function(e){return Eme(this,e,arguments.length>1?arguments[1]:void 0)}});var Sme=LE?{}.toString:function(){return"[object "+ME(this)+"]"};function G2(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function LV(e){return G2(e).every(function(t){return!!t.isHeader})}LE||h0(Object.prototype,"toString",Sme,{unsafe:!0});var xme=jE.PROPER,JE=RegExp.prototype,MV=JE.toString,Cme=st(EV),Dme=Tr(function(){return MV.call({source:"a",flags:"b"})!="/a/b"}),_me=xme&&MV.name!="toString";(Dme||_me)&&h0(RegExp.prototype,"toString",function(){var e=ko(this),t=dn(e.source),r=e.flags;return"/"+t+"/"+dn(r===void 0&&eV(JE,e)&&!("flags"in JE)?Cme(e):r)},{unsafe:!0});var ZE=Ao("unscopables"),QE=Array.prototype;QE[ZE]==null&&d0.f(QE,ZE,{configurable:!0,value:OV(null)});var Ome=K2.find,zV=!0;"find"in[]&&Array(1).find(function(){zV=!1}),Vs({target:"Array",proto:!0,forced:zV},{find:function(e){return Ome(this,e,arguments.length>1?arguments[1]:void 0)}}),QE[ZE].find=!0;var eS=Function.prototype,VV=eS.apply,Ame=eS.bind,RV=eS.call,$V=typeof Reflect=="object"&&Reflect.apply||(Ame?RV.bind(VV):function(){return RV.apply(VV,arguments)}),kme=Ao("species"),tS=RegExp.prototype,HV=function(e,t,r,n){var o=Ao(e),i=!Tr(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!Tr(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[kme]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var s=st(/./[o]),u=t(o,""[e],function(l,c,f,d,p){var h=st(l),g=c.exec;return g===m0||g===tS.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:h(f,c,d)}:{done:!1}});h0(String.prototype,e,u[0]),h0(tS,o,u[1])}n&&Lf(tS[o],"sham",!0)},Nme=Ao("match"),Tme=rt.TypeError,Pme=Ao("species"),Bme=st("".charAt),UV=st("".charCodeAt),Fme=st("".slice),jme=function(e){return function(t,r){var n,o,i=dn(Ms(t)),a=z2(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=UV(i,a))<55296||n>56319||a+1===s||(o=UV(i,a+1))<56320||o>57343?e?Bme(i,a):n:e?Fme(i,a,a+2):o-56320+(n-55296<<10)+65536}},Ime=jme(!0),qV=function(e,t,r){return t+(r?Ime(e,t).length:1)},Lme=rt.Array,Mme=Math.max,KV=function(e,t,r){for(var n=V2(e),o=g0(t,n),i=g0(r===void 0?n:r,n),a=Lme(Mme(i-o,0)),s=0;o<i;o++,s++)TV(a,s,e[o]);return a.length=s,a},zme=rt.TypeError,rS=function(e,t){var r=e.exec;if(fn(r)){var n=zr(r,e,t);return n!==null&&ko(n),n}if(Ls(e)==="RegExp")return zr(m0,e,t);throw zme("RegExp#exec called on incompatible receiver")},zf=SV.UNSUPPORTED_Y,Vme=Math.min,GV=[].push,Rme=st(/./.exec),Vf=st(GV),b0=st("".slice);HV("split",function(e,t,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,s,u=dn(Ms(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[u];if(!ri(a=o)||!((s=a[Nme])!==void 0?s:Ls(a)=="RegExp"))return zr(t,u,o,l);for(var c,f,d,p=[],h=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),g=0,m=new RegExp(o.source,h+"g");(c=zr(m0,m,u))&&!((f=m.lastIndex)>g&&(Vf(p,b0(u,g,c.index)),c.length>1&&c.index<u.length&&$V(GV,p,KV(c,1)),d=c[0].length,g=f,p.length>=l));)m.lastIndex===c.index&&m.lastIndex++;return g===u.length?!d&&Rme(m,"")||Vf(p,""):Vf(p,b0(u,g)),p.length>l?KV(p,0,l):p}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:zr(t,this,o,i)}:t,[function(o,i){var a=Ms(this),s=o==null?void 0:xE(o,e);return s?zr(s,o,a,i):zr(n,dn(a),o,i)},function(o,i){var a=ko(this),s=dn(o),u=r(n,a,s,i,n!==t);if(u.done)return u.value;var l=function(w,S){var C,x=ko(w).constructor;return x===void 0||(C=ko(x)[Pme])==null?S:function(_){if(WE(_))return _;throw Tme(iV(_)+" is not a constructor")}(C)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(zf?"g":"y"),d=new l(zf?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(s.length===0)return rS(d,s)===null?[s]:[];for(var h=0,g=0,m=[];g<s.length;){d.lastIndex=zf?0:g;var y,v=rS(d,zf?b0(s,g):s);if(v===null||(y=Vme(IE(d.lastIndex+(zf?g:0)),s.length))===h)g=qV(s,g,c);else{if(Vf(m,b0(s,h,g)),m.length===p)return m;for(var E=1;E<=v.length-1;E++)if(Vf(m,v[E]),m.length===p)return m;g=h=y}}return Vf(m,b0(s,h)),m}]},!!Tr(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),zf);var nS=`
155
+ \v\f\r                 \u2028\u2029\uFEFF`,WV=st("".replace),W2="["+nS+"]",$me=RegExp("^"+W2+W2+"*"),Hme=RegExp(W2+W2+"*$"),oS=function(e){return function(t){var r=dn(Ms(t));return 1&e&&(r=WV(r,$me,"")),2&e&&(r=WV(r,Hme,"")),r}},Ume={start:oS(1),end:oS(2),trim:oS(3)},qme=jE.PROPER,Kme=Ume.trim;function YV(e){return e.length?e[0].tagName.toLowerCase():""}Vs({target:"String",proto:!0,forced:function(e){return Tr(function(){return!!nS[e]()||"​…᠎"[e]()!=="​…᠎"||qme&&nS[e].name!==e})}("trim")},{trim:function(){return Kme(this)}}),Vs({global:!0},{globalThis:rt}),vo&&($.fn.append=vo),wi&&($.fn.on=wi),Za&&($.fn.focus=Za),go&&($.fn.attr=go),bi&&($.fn.val=bi),Ja&&($.fn.html=Ja),Pc&&($.fn.dataset=Pc),kc&&($.fn.addClass=kc),Nc&&($.fn.removeClass=Nc),Ic&&($.fn.children=Ic),v1&&($.fn.each=v1),jc&&($.fn.find=jc);var w0=!1,XV=0,JV=0,E0=null,S0=null,x0=$("body");function ZV(e){w0=!1,S0=null,E0=null,x0.off("mousemove",QV),x0.off("mouseup",ZV)}x0.on("mousedown",function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),w0=!0;var r=e.clientX;XV=r;var n=t.getBoundingClientRect().width;JV=n,x0.on("mousemove",QV),x0.on("mouseup",ZV)}});var QV=Ru(function(e){if(w0&&S0!=null&&E0!=null){e.preventDefault();var t=e.clientX,r=JV+(t-XV);(r=Math.floor(100*r)/100)<30&&(r=30),Q.setNodes(S0,{width:r.toString()},{at:E0})}},100),Gme={type:"table",renderElem:function(e,t,r){var n=function(s,u){if(s.isDisabled())return!1;var l=s.selection;if(l==null||oe.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,d=z.findPath(s,u),p=D.start(s,d),h=D.end(s,d),g=Ze.compare(c,h)<=0&&Ze.compare(c,p)>=0,m=Ze.compare(f,h)<=0&&Ze.compare(f,p)>=0;return!!(g&&m&&J.equals(c.path.slice(0,3),f.path.slice(0,3)))}(r,e),o=e.width,i=o===void 0?"auto":o,a=$e("div",{className:"table-container","data-selected":z.isNodeSelected(r,e),on:{mousedown:function(s){if(s.target.tagName==="DIV"&&s.preventDefault(),!r.isDisabled()){var u=z.findPath(r,e),l=D.start(r,u),c=r.selection;c!=null?c.anchor.path[0]!==u[0]&&r.select(l):r.select(l)}}}},$e("table",{width:i,contentEditable:n},$e("colgroup",null,G2(e).map(function(s){var u=s.width;return $e("col",{width:u===void 0?"auto":u})})),$e("tbody",null,t)));return a}},Wme={type:"table-row",renderElem:function(e,t,r){return $e("tr",null,t)}},Yme={type:"table-cell",renderElem:function(e,t,r){var n=function(d,p){var h=z.getParentNode(d,p);if(h==null)return!1;var g=z.getParentNode(d,h);return g!=null&&G2(g).some(function(m){return m===p})}(r,e),o=e,i=o.colSpan,a=i===void 0?1:i,s=o.rowSpan,u=s===void 0?1:s,l=o.isHeader,c=l!==void 0&&l;if(!n)return $e("td",{colSpan:a,rowSpan:u},t);var f=$e(c?"th":"td",{colSpan:a,rowSpan:u,style:{borderRightWidth:"3px"},on:{mousemove:Ru(function(d){var p=this.elm;if(p!=null){var h=p.getBoundingClientRect(),g=h.left,m=h.width,y=h.top,v=h.height,E=d.clientX,w=d.clientY;w0||(E>g+m-5&&E<g+m&&w>y&&w<y+v?(p.style.cursor="col-resize",S0=r,E0=z.findPath(r,e)):w0||(p.style.cursor="auto",S0=null,E0=null))}},100)}},t);return f}},Xme={selector:"table",preParseHtml:function(e){var t=$(e);if(YV(t)!=="table")return e;var r=t.find("tbody");if(r.length===0)return e;var n=t.find("tr");return t.append(n),r.remove(),t[0]}},Jme=K2.filter;Vs({target:"Array",proto:!0,forced:!YE("filter")},{filter:function(e){return Jme(this,e,arguments.length>1?arguments[1]:void 0)}});var Zme=Math.floor,iS=st("".charAt),Qme=st("".replace),aS=st("".slice),e2e=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,t2e=/\$([$&'`]|\d{1,2})/g,r2e=function(e,t,r,n,o,i){var a=r+e.length,s=n.length,u=t2e;return o!==void 0&&(o=_E(o),u=e2e),Qme(i,u,function(l,c){var f;switch(iS(c,0)){case"$":return"$";case"&":return e;case"`":return aS(t,0,r);case"'":return aS(t,a);case"<":f=o[aS(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>s){var p=Zme(d/10);return p===0?l:p<=s?n[p-1]===void 0?iS(c,1):n[p-1]+iS(c,1):l}f=n[d-1]}return f===void 0?"":f})},sS=Ao("replace"),n2e=Math.max,o2e=Math.min,i2e=st([].concat),uS=st([].push),eR=st("".indexOf),tR=st("".slice),a2e="a".replace(/./,"$0")==="$0",rR=!!/./[sS]&&/./[sS]("a","$0")==="";HV("replace",function(e,t,r){var n=rR?"$":"$0";return[function(o,i){var a=Ms(this),s=o==null?void 0:xE(o,sS);return s?zr(s,o,a,i):zr(t,dn(a),o,i)},function(o,i){var a=ko(this),s=dn(o);if(typeof i=="string"&&eR(i,n)===-1&&eR(i,"$<")===-1){var u=r(t,a,s,i);if(u.done)return u.value}var l=fn(i);l||(i=dn(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=rS(a,s);if(p===null||(uS(d,p),!c))break;dn(p[0])===""&&(a.lastIndex=qV(s,IE(a.lastIndex),f))}for(var h,g="",m=0,y=0;y<d.length;y++){for(var v=dn((p=d[y])[0]),E=n2e(o2e(z2(p.index),s.length),0),w=[],S=1;S<p.length;S++)uS(w,(h=p[S])===void 0?h:String(h));var C=p.groups;if(l){var x=i2e([v],w,E,s);C!==void 0&&uS(x,C);var _=dn($V(i,void 0,x))}else _=r2e(v,s,E,w,C,i);E>=m&&(g+=tR(s,m,E)+_,m=E+v.length)}return g+tR(s,m)}]},!!Tr(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!a2e||rR);var s2e={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=$(e);(t=t.filter(function(s){return!!Ce.isText(s)||!!r.isInline(s)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var o=parseInt(n.attr("colSpan")||"1"),i=parseInt(n.attr("rowSpan")||"1"),a=n.attr("width")||"auto";return{type:"table-cell",isHeader:YV(n)==="th",colSpan:o,rowSpan:i,width:a,children:t}}},u2e={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,r){return{type:"table-row",children:t.filter(function(n){return z.getNodeType(n)==="table-cell"})}}},l2e={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=$(e),o="auto";return function(i,a){for(var s="",u=(i.attr("style")||"").split(";"),l=u.length,c=0;c<l;c++){var f=u[c];if(f){var d=f.split(":");d[0].trim()==="width"&&(s=d[1].trim())}}return s}(n)==="100%"&&(o="100%"),n.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:t.filter(function(i){return z.getNodeType(i)==="table-row"})}}},c2e=function(){function e(){this.title=ye("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!oe.isCollapsed(r)||!!z.getSelectedElems(t).some(function(n){var o=z.getNodeType(n);return o==="pre"||o==="table"||o==="list-item"||!!t.isVoid(n)})},e.prototype.getPanelContentElem=function(t){var r=this;if(this.$content)return this.$content[0];for(var n=$('<div class="w-e-panel-content-table"></div>'),o=$("<span>0 &times; 0</span>"),i=$("<table></table>"),a=0;a<10;a++){for(var s=$("<tr></tr>"),u=0;u<10;u++){var l=$("<td></td>");l.attr("data-x",u.toString()),l.attr("data-y",a.toString()),s.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var d=$(f).dataset(),p=d.x,h=d.y;o[0].innerHTML=p+1+" &times; "+(h+1),i.children().each(function(g){$(g).children().each(function(m){var y=$(m),v=y.dataset(),E=v.x,w=v.y;E<=p&&w<=h?y.addClass("active"):y.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var d=$(f).dataset(),p=d.x,h=d.y;r.insertTable(t,h+1,p+1)}})}i.append(s)}return n.append(i),n.append(o),this.$content=n,n[0]},e.prototype.insertTable=function(t,r,n){var o=parseInt(r,10),i=parseInt(n,10);if(o&&i&&!(o<=0||i<=0)){z.isSelectedEmptyParagraph(t)&&Q.removeNodes(t,{mode:"highest"});var a=function(s,u){for(var l=[],c=0;c<s;c++){for(var f=[],d=0;d<u;d++){var p={type:"table-cell",children:[{text:""}]};c===0&&(p.isHeader=!0),f.push(p)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}}(o,i);Q.insertNodes(t,a,{mode:"highest"})}},e}(),f2e=function(){function e(){this.title=ye("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||z.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){this.isDisabled(t)||Q.removeNodes(t,{mode:"highest"})},e}(),d2e=function(){function e(){this.title=ye("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!oe.isCollapsed(r)||z.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=ni(D.nodes(t,{match:function(p){return z.checkNodeType(p,"table-cell")},universal:!0}),1),o=ni(n[0],2),i=o[0],a=o[1],s=z.getParentNode(t,i),u=(s==null?void 0:s.children.length)||0;if(u!==0){for(var l={type:"table-row",children:[]},c=0;c<u;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=J.parent(a),d=J.next(f);Q.insertNodes(t,l,{at:d})}}},e}(),p2e=function(){function e(){this.title=ye("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!oe.isCollapsed(r)||z.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=ni(D.nodes(t,{match:function(u){return z.checkNodeType(u,"table-row")},universal:!0}),1),o=ni(n[0],2),i=o[0],a=o[1],s=z.getParentNode(t,i);((s==null?void 0:s.children.length)||0)<=1?Q.removeNodes(t,{mode:"highest"}):Q.removeNodes(t,{at:a})}},e}(),nR={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},lS=kE("span").classList,oR=lS&&lS.constructor&&lS.constructor.prototype,h2e=oR===Object.prototype?void 0:oR,g2e=K2.forEach,v2e=function(e,t){var r=[].forEach;return!!r&&Tr(function(){r.call(null,function(){throw 1},1)})}(),cS=v2e?[].forEach:function(e){return g2e(this,e,arguments.length>1?arguments[1]:void 0)},iR=function(e){if(e&&e.forEach!==cS)try{Lf(e,"forEach",cS)}catch{e.forEach=cS}};for(var fS in nR)nR[fS]&&iR(rt[fS]&&rt[fS].prototype);iR(h2e);var m2e=function(){function e(){this.title=ye("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!oe.isCollapsed(r)||z.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=ni(D.nodes(t,{match:function(l){return z.checkNodeType(l,"table-cell")},universal:!0}),1),o=ni(n[0],2),i=o[0],a=o[1],s=z.getParentNode(t,i);if(s!=null){var u=z.getParentNode(t,s);u!=null&&(u.children||[]).forEach(function(l,c){Te.isElement(l)&&(l.children||[]).forEach(function(f){var d=z.findPath(t,f);if(d.length===a.length&&Gz(d.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&LV(u)&&(p.isHeader=!0),Q.insertNodes(t,p,{at:d})}})})}}},e}(),y2e=function(){function e(){this.title=ye("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!oe.isCollapsed(r)||z.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=ni(D.nodes(t,{match:function(c){return z.checkNodeType(c,"table-cell")},universal:!0}),1),o=ni(n[0],2),i=o[0],a=o[1],s=z.getParentNode(t,i),u=(s==null?void 0:s.children.length)||0;if(!s||u<=1)Q.removeNodes(t,{mode:"highest"});else{var l=z.getParentNode(t,s);l!=null&&(l.children||[]).forEach(function(c){Te.isElement(c)&&(c.children||[]).forEach(function(f){var d=z.findPath(t,f);d.length===a.length&&Gz(d.slice(-1),a.slice(-1))&&Q.removeNodes(t,{at:d})})})}}},e}(),b2e=function(){function e(){this.title=ye("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var r=z.getSelectedNodeByType(t,"table");return r!=null&&LV(r)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!oe.isCollapsed(r)||z.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=!r,o=z.getSelectedNodeByType(t,"table");o!=null&&G2(o).forEach(function(i){return Q.setNodes(t,{isHeader:n},{at:z.findPath(t,i)})})}},e}(),w2e=function(){function e(){this.title=ye("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var r=z.getSelectedNodeByType(t,"table");return r!=null&&r.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!oe.isCollapsed(r)||z.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n={width:r?"auto":"100%"};Q.setNodes(t,n,{mode:"highest"})}},e}(),E2e={renderElems:[Gme,Wme,Yme],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var r=e.width;return'<table style="width: '+(r===void 0?"auto":r)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var r=e,n=r.colSpan,o=n===void 0?1:n,i=r.rowSpan,a=i===void 0?1:i,s=r.isHeader,u=s!==void 0&&s,l=r.width,c=u?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[Xme],parseElemsHtml:[s2e,u2e,l2e],menus:[{key:"insertTable",factory:function(){return new c2e}},{key:"deleteTable",factory:function(){return new f2e}},{key:"insertTableRow",factory:function(){return new d2e}},{key:"deleteTableRow",factory:function(){return new p2e}},{key:"insertTableCol",factory:function(){return new m2e}},{key:"deleteTableCol",factory:function(){return new y2e}},{key:"tableHeader",factory:function(){return new b2e}},{key:"tableFullWidth",factory:function(){return new w2e}}],editorPlugin:function(e){var t=e.insertBreak,r=e.deleteBackward,n=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,s=e.selectAll,u=e;return u.insertBreak=function(){z.getSelectedNodeByType(u,"table")==null?t():u.insertText(`
156
+ `)},u.deleteBackward=function(l){if(!PV(u)){var c=u.selection;if(c){var f=D.before(u,c);if(f){var d=BV(u,f),p=BV(u,c);if(d&&!p)return}}r(l)}},u.handleTab=function(){var l;if(z.getSelectedNodeByType(u,"table")){var c=D.above(e);z.checkNodeType(c[0],"table-cell")&&Q.select(e,c[1]);var f=D.next(e);if(f)f[0]&&f[0].text&&(f=(l=D.above(e,{at:f[1]}))!==null&&l!==void 0?l:f),Q.select(e,f[1]);else{var d=u.children||[],p=d.length;if(z.checkNodeType(d[p-1],"table")){var h=z.genEmptyParagraph();Q.insertNodes(u,h,{at:[p]}),u.handleTab()}}}else a()},u.deleteForward=function(l){PV(u)||n(l)},u.normalizeNode=function(l){var c=ni(l,2),f=c[0],d=c[1];if(z.getNodeType(f)!=="table")return o([f,d]);if(z.isLastNode(u,f)){var p=z.genEmptyParagraph();Q.insertNodes(u,p,{at:[d[0]+1]})}},u.insertData=function(l){if(z.getSelectedNodeByType(u,"table")!=null){var c=l.getData("text/plain");c===`
157
+ `||/<img[^>]+>/.test(l.getData("text/html"))?i(l):D.insertText(u,c)}else i(l)},u.selectAll=function(){var l=u.selection;if(l!=null){var c=z.getSelectedNodeByType(u,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(J.equals(f.path.slice(0,3),d.path.slice(0,3)))if(me.string(c).length!==0){var p=z.findPath(u,c),h={anchor:D.start(u,p),focus:D.end(u,p)};u.select(h)}else s();else s()}else s()}else s()},u}};yn("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),yn("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
158
+ Copyright (c) Microsoft Corporation.
159
+
160
+ Permission to use, copy, modify, and/or distribute this software for any
161
+ purpose with or without fee is hereby granted.
162
+
163
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
164
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
165
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
166
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
167
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
168
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
169
+ PERFORMANCE OF THIS SOFTWARE.
170
+ ***************************************************************************** */var Y2=function(){return Y2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Y2.apply(this,arguments)};function X2(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{u(n.next(l))}catch(c){i(c)}}function s(l){try{u(n.throw(l))}catch(c){i(c)}}function u(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,s)}u((n=n.apply(e,[])).next())})}function J2(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([u,l])}}}function Pl(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function S2e(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],s=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(o){t[o]=e[o]&&function(i){return new Promise(function(a,s){(function(u,l,c,f){Promise.resolve(f).then(function(d){u({value:d,done:c})},l)})(a,s,(i=e[o](i)).done,i.value)})}}}var aR=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dS(e){var t={exports:{}};return e(t,t.exports),t.exports}var $s,Z2,Q2=function(e){return e&&e.Math==Math&&e},Ee=Q2(typeof globalThis=="object"&&globalThis)||Q2(typeof window=="object"&&window)||Q2(typeof self=="object"&&self)||Q2(typeof aR=="object"&&aR)||function(){return this}()||Function("return this")(),zt=function(e){try{return!!e()}catch{return!0}},Bi=!zt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),C0=Function.prototype.call,Vt=C0.bind?C0.bind(C0):function(){return C0.apply(C0,arguments)},sR={}.propertyIsEnumerable,uR=Object.getOwnPropertyDescriptor,x2e={f:uR&&!sR.call({1:2},1)?function(e){var t=uR(this,e);return!!t&&t.enumerable}:sR},ey=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},lR=Function.prototype,pS=lR.bind,hS=lR.call,C2e=pS&&pS.bind(hS),Ge=pS?function(e){return e&&C2e(hS,e)}:function(e){return e&&function(){return hS.apply(e,arguments)}},D2e=Ge({}.toString),_2e=Ge("".slice),Fi=function(e){return _2e(D2e(e),8,-1)},gS=Ee.Object,O2e=Ge("".split),vS=zt(function(){return!gS("z").propertyIsEnumerable(0)})?function(e){return Fi(e)=="String"?O2e(e,""):gS(e)}:gS,A2e=Ee.TypeError,D0=function(e){if(e==null)throw A2e("Can't call method on "+e);return e},Hs=function(e){return vS(D0(e))},Pt=function(e){return typeof e=="function"},Xt=function(e){return typeof e=="object"?e!==null:Pt(e)},k2e=function(e){return Pt(e)?e:void 0},Bl=function(e,t){return arguments.length<2?k2e(Ee[e]):Ee[e]&&Ee[e][t]},_0=Ge({}.isPrototypeOf),Rf=Bl("navigator","userAgent")||"",cR=Ee.process,fR=Ee.Deno,dR=cR&&cR.versions||fR&&fR.version,pR=dR&&dR.v8;pR&&(Z2=($s=pR.split("."))[0]>0&&$s[0]<4?1:+($s[0]+$s[1])),!Z2&&Rf&&(!($s=Rf.match(/Edge\/(\d+)/))||$s[1]>=74)&&($s=Rf.match(/Chrome\/(\d+)/))&&(Z2=+$s[1]);var O0=Z2,mS=!!Object.getOwnPropertySymbols&&!zt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&O0&&O0<41}),yS=mS&&!Symbol.sham&&typeof Symbol.iterator=="symbol",N2e=Ee.Object,bS=yS?function(e){return typeof e=="symbol"}:function(e){var t=Bl("Symbol");return Pt(t)&&_0(t.prototype,N2e(e))},T2e=Ee.String,ty=function(e){try{return T2e(e)}catch{return"Object"}},P2e=Ee.TypeError,Us=function(e){if(Pt(e))return e;throw P2e(ty(e)+" is not a function")},A0=function(e,t){var r=e[t];return r==null?void 0:Us(r)},B2e=Ee.TypeError,F2e=Object.defineProperty,wS=function(e,t){try{F2e(Ee,e,{value:t,configurable:!0,writable:!0})}catch{Ee[e]=t}return t},qs=Ee["__core-js_shared__"]||wS("__core-js_shared__",{}),ES=dS(function(e){(e.exports=function(t,r){return qs[t]||(qs[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),j2e=Ee.Object,ry=function(e){return j2e(D0(e))},I2e=Ge({}.hasOwnProperty),Pr=Object.hasOwn||function(e,t){return I2e(ry(e),t)},L2e=0,M2e=Math.random(),z2e=Ge(1 .toString),SS=function(e){return"Symbol("+(e===void 0?"":e)+")_"+z2e(++L2e+M2e,36)},k0=ES("wks"),Fl=Ee.Symbol,hR=Fl&&Fl.for,V2e=yS?Fl:Fl&&Fl.withoutSetter||SS,Er=function(e){if(!Pr(k0,e)||!mS&&typeof k0[e]!="string"){var t="Symbol."+e;mS&&Pr(Fl,e)?k0[e]=Fl[e]:k0[e]=yS&&hR?hR(t):V2e(t)}return k0[e]},R2e=Ee.TypeError,$2e=Er("toPrimitive"),xS=function(e){var t=function(r,n){if(!Xt(r)||bS(r))return r;var o,i=A0(r,$2e);if(i){if(o=Vt(i,r,n),!Xt(o)||bS(o))return o;throw R2e("Can't convert object to primitive value")}return function(a,s){var u,l;if(Pt(u=a.toString)&&!Xt(l=Vt(u,a))||Pt(u=a.valueOf)&&!Xt(l=Vt(u,a)))return l;throw B2e("Can't convert object to primitive value")}(r)}(e,"string");return bS(t)?t:t+""},CS=Ee.document,H2e=Xt(CS)&&Xt(CS.createElement),N0=function(e){return H2e?CS.createElement(e):{}},gR=!Bi&&!zt(function(){return Object.defineProperty(N0("div"),"a",{get:function(){return 7}}).a!=7}),vR=Object.getOwnPropertyDescriptor,DS={f:Bi?vR:function(e,t){if(e=Hs(e),t=xS(t),gR)try{return vR(e,t)}catch{}if(Pr(e,t))return ey(!Vt(x2e.f,e,t),e[t])}},U2e=Ee.String,q2e=Ee.TypeError,Kr=function(e){if(Xt(e))return e;throw q2e(U2e(e)+" is not an object")},K2e=Ee.TypeError,mR=Object.defineProperty,wa={f:Bi?mR:function(e,t,r){if(Kr(e),t=xS(t),Kr(r),gR)try{return mR(e,t,r)}catch{}if("get"in r||"set"in r)throw K2e("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Ks=Bi?function(e,t,r){return wa.f(e,t,ey(1,r))}:function(e,t,r){return e[t]=r,e},G2e=Ge(Function.toString);Pt(qs.inspectSource)||(qs.inspectSource=function(e){return G2e(e)});var ny,T0,oy,iy=qs.inspectSource,yR=Ee.WeakMap,bR=Pt(yR)&&/native code/.test(iy(yR)),wR=ES("keys"),_S=function(e){return wR[e]||(wR[e]=SS(e))},ay={},OS=Ee.TypeError,W2e=Ee.WeakMap;if(bR||qs.state){var jl=qs.state||(qs.state=new W2e),Y2e=Ge(jl.get),ER=Ge(jl.has),X2e=Ge(jl.set);ny=function(e,t){if(ER(jl,e))throw new OS("Object already initialized");return t.facade=e,X2e(jl,e,t),t},T0=function(e){return Y2e(jl,e)||{}},oy=function(e){return ER(jl,e)}}else{var $f=_S("state");ay[$f]=!0,ny=function(e,t){if(Pr(e,$f))throw new OS("Object already initialized");return t.facade=e,Ks(e,$f,t),t},T0=function(e){return Pr(e,$f)?e[$f]:{}},oy=function(e){return Pr(e,$f)}}var to={set:ny,get:T0,has:oy,enforce:function(e){return oy(e)?T0(e):ny(e,{})},getterFor:function(e){return function(t){var r;if(!Xt(t)||(r=T0(t)).type!==e)throw OS("Incompatible receiver, "+e+" required");return r}}},SR=Function.prototype,J2e=Bi&&Object.getOwnPropertyDescriptor,AS=Pr(SR,"name"),Hf={EXISTS:AS,PROPER:AS&&(function(){}).name==="something",CONFIGURABLE:AS&&(!Bi||Bi&&J2e(SR,"name").configurable)},No=dS(function(e){var t=Hf.CONFIGURABLE,r=to.get,n=to.enforce,o=String(String).split("String");(e.exports=function(i,a,s,u){var l,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet,p=u&&u.name!==void 0?u.name:a;Pt(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Pr(s,"name")||t&&s.name!==p)&&Ks(s,"name",p),(l=n(s)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Ee?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=s:Ks(i,a,s)):f?i[a]=s:wS(a,s)})(Function.prototype,"toString",function(){return Pt(this)&&r(this).source||iy(this)})}),Z2e=Math.ceil,Q2e=Math.floor,sy=function(e){var t=+e;return t!=t||t===0?0:(t>0?Q2e:Z2e)(t)},eye=Math.max,tye=Math.min,P0=function(e,t){var r=sy(e);return r<0?eye(r+t,0):tye(r,t)},rye=Math.min,xR=function(e){return e>0?rye(sy(e),9007199254740991):0},B0=function(e){return xR(e.length)},CR=function(e){return function(t,r,n){var o,i=Hs(t),a=B0(i),s=P0(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},DR={includes:CR(!0),indexOf:CR(!1)},nye=DR.indexOf,_R=Ge([].push),OR=function(e,t){var r,n=Hs(e),o=0,i=[];for(r in n)!Pr(ay,r)&&Pr(n,r)&&_R(i,r);for(;t.length>o;)Pr(n,r=t[o++])&&(~nye(i,r)||_R(i,r));return i},uy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],oye=uy.concat("length","prototype"),ly={f:Object.getOwnPropertyNames||function(e){return OR(e,oye)}},iye={f:Object.getOwnPropertySymbols},aye=Ge([].concat),sye=Bl("Reflect","ownKeys")||function(e){var t=ly.f(Kr(e)),r=iye.f;return r?aye(t,r(e)):t},uye=function(e,t){for(var r=sye(t),n=wa.f,o=DS.f,i=0;i<r.length;i++){var a=r[i];Pr(e,a)||n(e,a,o(t,a))}},lye=/#|\.prototype\./,F0=function(e,t){var r=fye[cye(e)];return r==pye||r!=dye&&(Pt(t)?zt(t):!!t)},cye=F0.normalize=function(e){return String(e).replace(lye,".").toLowerCase()},fye=F0.data={},dye=F0.NATIVE="N",pye=F0.POLYFILL="P",cy=F0,hye=DS.f,Fn=function(e,t){var r,n,o,i,a,s=e.target,u=e.global,l=e.stat;if(r=u?Ee:l?Ee[s]||wS(s,{}):(Ee[s]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=hye(r,n))&&a.value:r[n],!cy(u?n:s+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;uye(i,o)}(e.sham||o&&o.sham)&&Ks(i,"sham",!0),No(r,n,i,e)}},AR={};AR[Er("toStringTag")]="z";var kS=String(AR)==="[object z]",gye=Er("toStringTag"),vye=Ee.Object,mye=Fi(function(){return arguments}())=="Arguments",fy=kS?Fi:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=vye(e),gye))=="string"?r:mye?Fi(t):(n=Fi(t))=="Object"&&Pt(t.callee)?"Arguments":n},yye=Ee.String,To=function(e){if(fy(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return yye(e)},NS=`
171
+ \v\f\r                 \u2028\u2029\uFEFF`,kR=Ge("".replace),dy="["+NS+"]",bye=RegExp("^"+dy+dy+"*"),wye=RegExp(dy+dy+"*$"),TS=function(e){return function(t){var r=To(D0(t));return 1&e&&(r=kR(r,bye,"")),2&e&&(r=kR(r,wye,"")),r}},Eye={start:TS(1),end:TS(2),trim:TS(3)},Sye=Hf.PROPER,xye=Eye.trim;function NR(e){return e.length?e[0].tagName.toLowerCase():""}function TR(e,t,r){t===void 0&&(t="auto"),r===void 0&&(r="auto");var n=$(e);return n.attr("width",t),n.attr("height",r),n[0].outerHTML}Fn({target:"String",proto:!0,forced:zt(function(){return!!NS.trim()||"​…᠎".trim()!=="​…᠎"||Sye&&NS.trim.name!=="trim"})},{trim:function(){return xye(this)}}),Fn({global:!0},{globalThis:Ee}),vo&&($.fn.append=vo),wi&&($.fn.on=wi),Za&&($.fn.focus=Za),go&&($.fn.attr=go),bi&&($.fn.val=bi),Ja&&($.fn.html=Ja),Fc&&($.fn.parent=Fc),Tc&&($.fn.hasClass=Tc),Mc&&($.fn.empty=Mc);var py,Cye={type:"video",renderElem:function(e,t,r){var n,o=e,i=o.src,a=i===void 0?"":i,s=o.poster,u=s===void 0?"":s,l=o.width,c=l===void 0?"auto":l,f=o.height,d=f===void 0?"auto":f,p=z.isNodeSelected(r,e);if(a.trim().indexOf("<iframe ")===0)n=$e("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:TR(a,c,d)});else{var h=$e("video",{poster:u,controls:!0},$e("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
172
+ 抱歉,浏览器不支持 video 视频`);c!=="auto"&&(h.data.width=c),d!=="auto"&&(h.data.height=d),n=$e("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return zc("div",{props:{contentEditable:!1},on:{mousedown:function(g){return g.preventDefault()}}},n)}},Dye={type:"video",elemToHtml:function(e,t){var r=e,n=r.src,o=n===void 0?"":n,i=r.poster,a=i===void 0?"":i,s=r.width,u=s===void 0?"auto":s,l=r.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
173
+ `;return o.trim().indexOf("<iframe ")===0?f+=TR(o,u,c):f+='<video poster="'+a+'" controls="true" width="'+u+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
174
+ </div>`}},_ye=Object.keys||function(e){return OR(e,uy)},Oye=Bi?Object.defineProperties:function(e,t){Kr(e);for(var r,n=Hs(t),o=_ye(t),i=o.length,a=0;i>a;)wa.f(e,r=o[a++],n[r]);return e},PS=Bl("document","documentElement"),PR=_S("IE_PROTO"),BS=function(){},BR=function(e){return"<script>"+e+"<\/script>"},FR=function(e){e.write(BR("")),e.close();var t=e.parentWindow.Object;return e=null,t},hy=function(){try{py=new ActiveXObject("htmlfile")}catch{}var e,t;hy=typeof document<"u"?document.domain&&py?FR(py):((t=N0("iframe")).style.display="none",PS.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(BR("document.F=Object")),e.close(),e.F):FR(py);for(var r=uy.length;r--;)delete hy.prototype[uy[r]];return hy()};ay[PR]=!0;var FS=Object.create||function(e,t){var r;return e!==null?(BS.prototype=Kr(e),r=new BS,BS.prototype=null,r[PR]=e):r=hy(),t===void 0?r:Oye(r,t)},jS=Er("unscopables"),IS=Array.prototype;IS[jS]==null&&wa.f(IS,jS,{configurable:!0,value:FS(null)});var j0=function(e){IS[jS][e]=!0},Aye=DR.includes;Fn({target:"Array",proto:!0},{includes:function(e){return Aye(this,e,arguments.length>1?arguments[1]:void 0)}}),j0("includes");var kye={selector:"iframe,video,p",preParseHtml:function(e){var t=$(e),r=t;if(NR(t)==="p"){var n=t.children();if(n.length===1){var o=n[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(r=$(o))}}var a=NR(r);if(a!=="iframe"&&a!=="video"||r.parent().attr("data-w-e-type")==="video")return r[0];var s=$('<div data-w-e-type="video" data-w-e-is-void></div>');return s.append(r),s[0]}},jR=Ge(Ge.bind),I0=function(e,t){return Us(e),t===void 0?e:jR?jR(e,t):function(){return e.apply(t,arguments)}},gy=Array.isArray||function(e){return Fi(e)=="Array"},IR=function(){},Nye=[],LR=Bl("Reflect","construct"),LS=/^\s*(?:class|function)\b/,Tye=Ge(LS.exec),Pye=!LS.exec(IR),L0=function(e){if(!Pt(e))return!1;try{return LR(IR,Nye,e),!0}catch{return!1}},MS=!LR||zt(function(){var e;return L0(L0.call)||!L0(Object)||!L0(function(){e=!0})||e})?function(e){if(!Pt(e))return!1;switch(fy(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Pye||!!Tye(LS,iy(e))}:L0,Bye=Er("species"),MR=Ee.Array,Fye=function(e,t){return new(function(r){var n;return gy(r)&&(n=r.constructor,(MS(n)&&(n===MR||gy(n.prototype))||Xt(n)&&(n=n[Bye])===null)&&(n=void 0)),n===void 0?MR:n}(e))(t===0?0:t)},zR=Ge([].push),Gs=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,h=ry(u),g=vS(h),m=I0(l,c),y=B0(g),v=0,E=f||Fye,w=t?E(u,y):r||a?E(u,0):void 0;y>v;v++)if((s||v in g)&&(p=m(d=g[v],v,h),e))if(t)w[v]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:zR(w,d)}else switch(e){case 4:return!1;case 7:zR(w,d)}return i?-1:n||o?o:w}},zS={forEach:Gs(0),map:Gs(1),filter:Gs(2),some:Gs(3),every:Gs(4),find:Gs(5),findIndex:Gs(6),filterReject:Gs(7)},jye=zS.find,VR=!0;"find"in[]&&Array(1).find(function(){VR=!1}),Fn({target:"Array",proto:!0,forced:VR},{find:function(e){return jye(this,e,arguments.length>1?arguments[1]:void 0)}}),j0("find");var Iye=kS?{}.toString:function(){return"[object "+fy(this)+"]"};function RR(e,t,r,n){return t===void 0&&(t=""),r===void 0&&(r="auto"),n===void 0&&(n="auto"),{type:"video",src:e,poster:t,width:r,height:n,children:[{text:""}]}}kS||No(Object.prototype,"toString",Iye,{unsafe:!0});var $R,VS,Lye={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,r){var n=$(e),o="",i="",a="auto",s="auto",u=n.find("iframe");if(u.length>0)return a=u.attr("width")||"auto",s=u.attr("height")||"auto",RR(o=u[0].outerHTML,i,a,s);var l=n.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",s=l.attr("height")||"auto",RR(o,i=l.attr("poster")||"",a,s)}},HR=function(){var e=Kr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},RS=Ee.RegExp,$S=zt(function(){var e=RS("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Mye=$S||zt(function(){return!RS("a","y").sticky}),zye={BROKEN_CARET:$S||zt(function(){var e=RS("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Mye,UNSUPPORTED_Y:$S},Vye=Ee.RegExp,Rye=zt(function(){var e=Vye(".","s");return!(e.dotAll&&e.exec(`
175
+ `)&&e.flags==="s")}),$ye=Ee.RegExp,Hye=zt(function(){var e=$ye("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Uye=to.get,qye=ES("native-string-replace",String.prototype.replace),vy=RegExp.prototype.exec,HS=vy,Kye=Ge("".charAt),Gye=Ge("".indexOf),Wye=Ge("".replace),US=Ge("".slice),qS=(VS=/b*/g,Vt(vy,$R=/a/,"a"),Vt(vy,VS,"a"),$R.lastIndex!==0||VS.lastIndex!==0),UR=zye.BROKEN_CARET,KS=/()??/.exec("")[1]!==void 0;(qS||KS||UR||Rye||Hye)&&(HS=function(e){var t,r,n,o,i,a,s,u=this,l=Uye(u),c=To(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=Vt(HS,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=UR&&u.sticky,h=Vt(HR,u),g=u.source,m=0,y=c;if(p&&(h=Wye(h,"y",""),Gye(h,"g")===-1&&(h+="g"),y=US(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&Kye(c,u.lastIndex-1)!==`
176
+ `)&&(g="(?: "+g+")",y=" "+y,m++),r=new RegExp("^(?:"+g+")",h)),KS&&(r=new RegExp("^"+g+"$(?!\\s)",h)),qS&&(n=u.lastIndex),o=Vt(vy,p?r:u,y),p?o?(o.input=US(o.input,m),o[0]=US(o[0],m),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:qS&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),KS&&o&&o.length>1&&Vt(qye,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=FS(null),i=0;i<d.length;i++)a[(s=d[i])[0]]=o[s[1]];return o});var my=HS;Fn({target:"RegExp",proto:!0,forced:/./.exec!==my},{exec:my});var GS=Function.prototype,qR=GS.apply,Yye=GS.bind,KR=GS.call,GR=typeof Reflect=="object"&&Reflect.apply||(Yye?KR.bind(qR):function(){return KR.apply(qR,arguments)}),WR=(Er("species"),RegExp.prototype),Xye=Ge("".charAt),YR=Ge("".charCodeAt),Jye=Ge("".slice),XR=function(e){return function(t,r){var n,o,i=To(D0(t)),a=sy(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=YR(i,a))<55296||n>56319||a+1===s||(o=YR(i,a+1))<56320||o>57343?e?Xye(i,a):n:e?Jye(i,a,a+2):o-56320+(n-55296<<10)+65536}},JR={codeAt:XR(!1),charAt:XR(!0)},Zye=JR.charAt,Qye=function(e,t,r){return t+(r?Zye(e,t).length:1)},ebe=Math.floor,WS=Ge("".charAt),tbe=Ge("".replace),YS=Ge("".slice),rbe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,nbe=/\$([$&'`]|\d{1,2})/g,obe=function(e,t,r,n,o,i){var a=r+e.length,s=n.length,u=nbe;return o!==void 0&&(o=ry(o),u=rbe),tbe(i,u,function(l,c){var f;switch(WS(c,0)){case"$":return"$";case"&":return e;case"`":return YS(t,0,r);case"'":return YS(t,a);case"<":f=o[YS(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>s){var p=ebe(d/10);return p===0?l:p<=s?n[p-1]===void 0?WS(c,1):n[p-1]+WS(c,1):l}f=n[d-1]}return f===void 0?"":f})},ibe=Ee.TypeError,abe=function(e,t){var r=e.exec;if(Pt(r)){var n=Vt(r,e,t);return n!==null&&Kr(n),n}if(Fi(e)==="RegExp")return Vt(my,e,t);throw ibe("RegExp#exec called on incompatible receiver")},XS=Er("replace"),sbe=Math.max,ube=Math.min,lbe=Ge([].concat),JS=Ge([].push),ZR=Ge("".indexOf),QR=Ge("".slice),cbe="a".replace(/./,"$0")==="$0",e$=!!/./[XS]&&/./[XS]("a","$0")==="";function t$(e){return e+"-"+JN()}(function(e,t,r,n){var o=Er(e),i=!zt(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!zt(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var s=Ge(/./[o]),u=function(l,c,f){var d=e$?"$":"$0";return[function(p,h){var g=D0(this),m=p==null?void 0:A0(p,XS);return m?Vt(m,p,g,h):Vt(c,To(g),p,h)},function(p,h){var g=Kr(this),m=To(p);if(typeof h=="string"&&ZR(h,d)===-1&&ZR(h,"$<")===-1){var y=f(c,g,m,h);if(y.done)return y.value}var v=Pt(h);v||(h=To(h));var E=g.global;if(E){var w=g.unicode;g.lastIndex=0}for(var S=[];;){var C=abe(g,m);if(C===null||(JS(S,C),!E))break;To(C[0])===""&&(g.lastIndex=Qye(m,xR(g.lastIndex),w))}for(var x,_="",P=0,q=0;q<S.length;q++){for(var H=To((C=S[q])[0]),k=sbe(ube(sy(C.index),m.length),0),M=[],I=1;I<C.length;I++)JS(M,(x=C[I])===void 0?x:String(x));var T=C.groups;if(v){var F=lbe([H],M,k,m);T!==void 0&&JS(F,T);var U=To(GR(h,void 0,F))}else U=obe(H,m,k,M,T,h);k>=P&&(_+=QR(m,P,k)+U,P=k+H.length)}return _+QR(m,P)}]}(0,""[e],function(l,c,f,d,p){var h=Ge(l),g=c.exec;return g===my||g===WR.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:h(f,c,d)}:{done:!1}});No(String.prototype,e,u[0]),No(WR,o,u[1])}})("replace",0,!!zt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!cbe||e$);var yy=Ee.Promise,by=function(e,t,r){for(var n in t)No(e,n,t[n],r);return e},fbe=Ee.String,dbe=Ee.TypeError,Uf=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Ge(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return Kr(n),function(i){if(typeof i=="object"||Pt(i))return i;throw dbe("Can't set "+fbe(i)+" as a prototype")}(o),t?e(n,o):n.__proto__=o,n}}():void 0),pbe=wa.f,r$=Er("toStringTag"),wy=function(e,t,r){e&&!Pr(e=r?e:e.prototype,r$)&&pbe(e,r$,{configurable:!0,value:t})},n$=Er("species"),hbe=Ee.TypeError,ZS=function(e,t){if(_0(t,e))return e;throw hbe("Incorrect invocation")},qf={},gbe=Er("iterator"),vbe=Array.prototype,mbe=Er("iterator"),o$=function(e){if(e!=null)return A0(e,mbe)||A0(e,"@@iterator")||qf[fy(e)]},ybe=Ee.TypeError,i$=function(e,t,r){var n,o;Kr(e);try{if(!(n=A0(e,"return"))){if(t==="throw")throw r;return r}n=Vt(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return Kr(n),r},bbe=Ee.TypeError,Ey=function(e,t){this.stopped=e,this.result=t},a$=Ey.prototype,Sy=function(e,t,r){var n,o,i,a,s,u,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),g=I0(t,f),m=function(v){return n&&i$(n,"normal",v),new Ey(!0,v)},y=function(v){return d?(Kr(v),h?g(v[0],v[1],m):g(v[0],v[1])):h?g(v,m):g(v)};if(p)n=e;else{if(!(o=o$(e)))throw bbe(ty(e)+" is not iterable");if((c=o)!==void 0&&(qf.Array===c||vbe[gbe]===c)){for(i=0,a=B0(e);a>i;i++)if((s=y(e[i]))&&_0(a$,s))return s;return new Ey(!1)}n=function(v,E){var w=arguments.length<2?o$(v):E;if(Us(w))return Kr(Vt(w,v));throw ybe(ty(v)+" is not iterable")}(e,o)}for(u=n.next;!(l=Vt(u,n)).done;){try{s=y(l.value)}catch(v){i$(n,"throw",v)}if(typeof s=="object"&&s&&_0(a$,s))return s}return new Ey(!1)},s$=Er("iterator"),u$=!1;try{var wbe=0,l$={next:function(){return{done:!!wbe++}},return:function(){u$=!0}};l$[s$]=function(){return this},Array.from(l$,function(){throw 2})}catch{}var M0,Kf,c$,QS,f$=function(e,t){if(!u$)return!1;var r=!1;try{var n={};n[s$]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},Ebe=Ee.TypeError,Sbe=Er("species"),d$=Ge([].slice),p$=/(?:ipad|iphone|ipod).*applewebkit/i.test(Rf),Ws=Fi(Ee.process)=="process",ex=Ee.setImmediate,tx=Ee.clearImmediate,xbe=Ee.process,rx=Ee.Dispatch,Cbe=Ee.Function,h$=Ee.MessageChannel,Dbe=Ee.String,nx=0,z0={};try{M0=Ee.location}catch{}var ox=function(e){if(Pr(z0,e)){var t=z0[e];delete z0[e],t()}},ix=function(e){return function(){ox(e)}},g$=function(e){ox(e.data)},v$=function(e){Ee.postMessage(Dbe(e),M0.protocol+"//"+M0.host)};ex&&tx||(ex=function(e){var t=d$(arguments,1);return z0[++nx]=function(){GR(Pt(e)?e:Cbe(e),void 0,t)},Kf(nx),nx},tx=function(e){delete z0[e]},Ws?Kf=function(e){xbe.nextTick(ix(e))}:rx&&rx.now?Kf=function(e){rx.now(ix(e))}:h$&&!p$?(QS=(c$=new h$).port2,c$.port1.onmessage=g$,Kf=I0(QS.postMessage,QS)):Ee.addEventListener&&Pt(Ee.postMessage)&&!Ee.importScripts&&M0&&M0.protocol!=="file:"&&!zt(v$)?(Kf=v$,Ee.addEventListener("message",g$,!1)):Kf="onreadystatechange"in N0("script")?function(e){PS.appendChild(N0("script")).onreadystatechange=function(){PS.removeChild(this),ox(e)}}:function(e){setTimeout(ix(e),0)});var V0,Il,R0,Gf,ax,sx,ux,m$,y$={set:ex,clear:tx},_be=/ipad|iphone|ipod/i.test(Rf)&&Ee.Pebble!==void 0,Obe=/web0s(?!.*chrome)/i.test(Rf),Abe=DS.f,lx=y$.set,b$=Ee.MutationObserver||Ee.WebKitMutationObserver,w$=Ee.document,E$=Ee.process,xy=Ee.Promise,S$=Abe(Ee,"queueMicrotask"),x$=S$&&S$.value;x$||(V0=function(){var e,t;for(Ws&&(e=E$.domain)&&e.exit();Il;){t=Il.fn,Il=Il.next;try{t()}catch(r){throw Il?Gf():R0=void 0,r}}R0=void 0,e&&e.enter()},p$||Ws||Obe||!b$||!w$?!_be&&xy&&xy.resolve?((ux=xy.resolve(void 0)).constructor=xy,m$=I0(ux.then,ux),Gf=function(){m$(V0)}):Ws?Gf=function(){E$.nextTick(V0)}:(lx=I0(lx,Ee),Gf=function(){lx(V0)}):(ax=!0,sx=w$.createTextNode(""),new b$(V0).observe(sx,{characterData:!0}),Gf=function(){sx.data=ax=!ax}));var cx,C$,D$,_$,O$=x$||function(e){var t={fn:e,next:void 0};R0&&(R0.next=t),Il||(Il=t,Gf()),R0=t},kbe=function(e){var t,r;this.promise=new e(function(n,o){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=o}),this.resolve=Us(t),this.reject=Us(r)},fx={f:function(e){return new kbe(e)}},dx=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Nbe=typeof window=="object",A$=y$.set,Tbe=Er("species"),Ea="Promise",k$=to.getterFor(Ea),Pbe=to.set,Bbe=to.getterFor(Ea),Ll=yy&&yy.prototype,ji=yy,$0=Ll,N$=Ee.TypeError,px=Ee.document,hx=Ee.process,Wf=fx.f,Fbe=Wf,jbe=!!(px&&px.createEvent&&Ee.dispatchEvent),T$=Pt(Ee.PromiseRejectionEvent),P$=!1,H0=cy(Ea,function(){var e=iy(ji),t=e!==String(ji);if(!t&&O0===66)return!0;if(O0>=51&&/native code/.test(e))return!1;var r=new ji(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[Tbe]=n,!(P$=r.then(function(){})instanceof n)||!t&&Nbe&&!T$}),Ibe=H0||!f$(function(e){ji.all(e).catch(function(){})}),B$=function(e){var t;return!(!Xt(e)||!Pt(t=e.then))&&t},gx=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;O$(function(){for(var n=e.value,o=e.state==1,i=0;r.length>i;){var a,s,u,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(e.rejection===2&&Mbe(e),e.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),u=!0)),a===l.promise?d(N$("Promise-chain cycle")):(s=B$(a))?Vt(s,a,f,d):f(a)):d(n)}catch(h){p&&!u&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Lbe(e)})}},F$=function(e,t,r){var n,o;jbe?((n=px.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Ee.dispatchEvent(n)):n={promise:t,reason:r},!T$&&(o=Ee["on"+e])?o(n):e==="unhandledrejection"&&function(i,a){var s=Ee.console;s&&s.error&&(arguments.length==1?s.error(i):s.error(i,a))}("Unhandled promise rejection",r)},Lbe=function(e){Vt(A$,Ee,function(){var t,r=e.facade,n=e.value;if(j$(e)&&(t=dx(function(){Ws?hx.emit("unhandledRejection",n,r):F$("unhandledrejection",r,n)}),e.rejection=Ws||j$(e)?2:1,t.error))throw t.value})},j$=function(e){return e.rejection!==1&&!e.parent},Mbe=function(e){Vt(A$,Ee,function(){var t=e.facade;Ws?hx.emit("rejectionHandled",t):F$("rejectionhandled",t,e.value)})},Yf=function(e,t,r){return function(n){e(t,n,r)}},Xf=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,gx(e,!0))},vx=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw N$("Promise can't be resolved itself");var n=B$(t);n?O$(function(){var o={done:!1};try{Vt(n,t,Yf(vx,o,e),Yf(Xf,o,e))}catch(i){Xf(o,i,e)}}):(e.value=t,e.state=1,gx(e,!1))}catch(o){Xf({done:!1},o,e)}}};if(H0&&($0=(ji=function(e){ZS(this,$0),Us(e),Vt(cx,this);var t=k$(this);try{e(Yf(vx,t),Yf(Xf,t))}catch(r){Xf(t,r)}}).prototype,(cx=function(e){Pbe(this,{type:Ea,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=by($0,{then:function(e,t){var r=Bbe(this),n=r.reactions,o=Wf(function(i,a){var s,u=Kr(i).constructor;return u===void 0||(s=Kr(u)[Sbe])==null?a:function(l){if(MS(l))return l;throw Ebe(ty(l)+" is not a constructor")}(s)}(this,ji));return o.ok=!Pt(e)||e,o.fail=Pt(t)&&t,o.domain=Ws?hx.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&gx(r,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),C$=function(){var e=new cx,t=k$(e);this.promise=e,this.resolve=Yf(vx,t),this.reject=Yf(Xf,t)},fx.f=Wf=function(e){return e===ji||e===D$?new C$(e):Fbe(e)},Pt(yy)&&Ll!==Object.prototype)){_$=Ll.then,P$||(No(Ll,"then",function(e,t){var r=this;return new ji(function(n,o){Vt(_$,r,n,o)}).then(e,t)},{unsafe:!0}),No(Ll,"catch",$0.catch,{unsafe:!0}));try{delete Ll.constructor}catch{}Uf&&Uf(Ll,$0)}function U0(e,t,r){return r===void 0&&(r=""),X2(this,void 0,void 0,function(){var n,o,i,a,s,u,l;return J2(this,function(c){switch(c.label){case 0:return t?(e.restoreSelection(),n=e.getMenuConfig("insertVideo"),o=n.onInsertedVideo,i=n.checkVideo,a=n.parseVideoSrc,[4,i(t,r)]):[2];case 1:return typeof(s=c.sent())=="string"?(e.alert(s,"error"),[2]):s==null?[2]:[4,a(t)];case 2:return(u=c.sent()).trim().indexOf("<iframe ")!==0&&(u=u.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:u,poster:r,children:[{text:""}]},Promise.resolve().then(function(){Q.insertNodes(e,l)}),o(l),[2]}})})}function mx(){return t$("w-e-insert-video")}Fn({global:!0,wrap:!0,forced:H0},{Promise:ji}),wy(ji,Ea,!1),function(e){var t=Bl("Promise"),r=wa.f;Bi&&t&&!t[n$]&&r(t,n$,{configurable:!0,get:function(){return this}})}(),D$=Bl(Ea),Fn({target:Ea,stat:!0,forced:H0},{reject:function(e){var t=Wf(this);return Vt(t.reject,void 0,e),t.promise}}),Fn({target:Ea,stat:!0,forced:H0},{resolve:function(e){return function(t,r){if(Kr(t),Xt(r)&&r.constructor===t)return r;var n=fx.f(t);return(0,n.resolve)(r),n.promise}(this,e)}}),Fn({target:Ea,stat:!0,forced:Ibe},{all:function(e){var t=this,r=Wf(t),n=r.resolve,o=r.reject,i=dx(function(){var a=Us(t.resolve),s=[],u=0,l=1;Sy(e,function(c){var f=u++,d=!1;l++,Vt(a,t,c).then(function(p){d||(d=!0,s[f]=p,--l||n(s))},o)}),--l||n(s)});return i.error&&o(i.value),r.promise},race:function(e){var t=this,r=Wf(t),n=r.reject,o=dx(function(){var i=Us(t.resolve);Sy(e,function(a){Vt(i,t,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var zbe=function(){function e(){this.title=ye("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=mx(),this.posterInputId=mx(),this.buttonId=mx()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!oe.isCollapsed(r)||!!z.getSelectedElems(t).some(function(n){var o=z.getNodeType(n);return o==="pre"||o==="list-item"||!!t.isVoid(n)})},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var r=this,n=this,o=n.srcInputId,i=n.posterInputId,a=n.buttonId,s=Pl(Nn(ye("videoModule.videoSrc"),o,ye("videoModule.videoSrcPlaceHolder")),2),u=s[0],l=s[1],c=Pl(Nn(ye("videoModule.videoPoster"),i,ye("videoModule.videoPosterPlaceHolder")),2),f=c[0],d=c[1],p=$(l),h=$(d),g=Pl(ul(a,ye("videoModule.ok")),1)[0];if(this.$content==null){var m=$("<div></div>");m.on("click","#"+a,function(v){return X2(r,void 0,void 0,function(){var E,w;return J2(this,function(S){switch(S.label){case 0:return v.preventDefault(),E=m.find("#"+o).val().trim(),w=m.find("#"+i).val().trim(),[4,U0(t,E,w)];case 1:return S.sent(),t.hidePanelOrModal(),[2]}})})}),this.$content=m}var y=this.$content;return y.empty(),y.append(u),y.append(f),y.append(g),p.val(""),h.val(""),setTimeout(function(){p.focus()}),y[0]},e}(),Vbe=Ge([].join),Rbe=vS!=Object,$be=function(e,t){var r=[].join;return!!r&&zt(function(){r.call(null,",",1)})}();Fn({target:"Array",proto:!0,forced:Rbe||!$be},{join:function(e){return Vbe(Hs(this),e===void 0?",":e)}});var Ml,I$,L$,Hbe=!zt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),M$=_S("IE_PROTO"),yx=Ee.Object,Ube=yx.prototype,Cy=Hbe?yx.getPrototypeOf:function(e){var t=ry(e);if(Pr(t,M$))return t[M$];var r=t.constructor;return Pt(r)&&t instanceof r?r.prototype:t instanceof yx?Ube:null},bx=Er("iterator"),z$=!1;[].keys&&("next"in(L$=[].keys())?(I$=Cy(Cy(L$)))!==Object.prototype&&(Ml=I$):z$=!0);var qbe=Ml==null||zt(function(){var e={};return Ml[bx].call(e)!==e});qbe&&(Ml={}),Pt(Ml[bx])||No(Ml,bx,function(){return this});var wx={IteratorPrototype:Ml,BUGGY_SAFARI_ITERATORS:z$},Kbe=wx.IteratorPrototype,Gbe=function(){return this},Wbe=Hf.PROPER,Ybe=Hf.CONFIGURABLE,V$=wx.IteratorPrototype,Ex=wx.BUGGY_SAFARI_ITERATORS,q0=Er("iterator"),Xbe=function(){return this},R$=function(e,t,r,n,o,i,a){(function(m,y,v,E){var w=y+" Iterator";m.prototype=FS(Kbe,{next:ey(1,v)}),wy(m,w,!1),qf[w]=Gbe})(r,t,n);var s,u,l=function(m){if(m===o&&h)return h;if(!Ex&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[q0]||d["@@iterator"]||o&&d[o],h=!Ex&&p||l(o),g=t=="Array"&&d.entries||p;return g&&(s=Cy(g.call(new e)))!==Object.prototype&&s.next&&(Cy(s)!==V$&&(Uf?Uf(s,V$):Pt(s[q0])||No(s,q0,Xbe)),wy(s,c,!0)),Wbe&&o=="values"&&p&&p.name!=="values"&&(Ybe?Ks(d,"name","values"):(f=!0,h=function(){return Vt(p,this)})),o&&(u={values:l("values"),keys:l("keys"),entries:l("entries")},a||Fn({target:t,proto:!0,forced:Ex||f},u)),d[q0]!==h&&No(d,q0,h,{name:o}),qf[t]=h,u},Jbe=to.set,Zbe=to.getterFor("Array Iterator"),K0=R$(Array,"Array",function(e,t){Jbe(this,{type:"Array Iterator",target:Hs(e),index:0,kind:t})},function(){var e=Zbe(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");qf.Arguments=qf.Array,j0("keys"),j0("values"),j0("entries");var Qbe=JR.charAt,e4e=to.set,t4e=to.getterFor("String Iterator");R$(String,"String",function(e){e4e(this,{type:"String Iterator",string:To(e),index:0})},function(){var e,t=t4e(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Qbe(r,n),t.index+=e.length,{value:e,done:!1})});var $$=function(e,t,r){var n=xS(t);n in e?wa.f(e,n,ey(0,r)):e[n]=r},r4e=Ee.Array,n4e=Math.max,H$=ly.f,U$=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],o4e={f:function(e){return U$&&Fi(e)=="Window"?function(t){try{return H$(t)}catch{return function(n,o,i){for(var a=B0(n),s=P0(void 0,a),u=P0(a,a),l=r4e(n4e(u-s,0)),c=0;s<u;s++,c++)$$(l,c,n[s]);return l.length=c,l}(U$)}}(e):H$(Hs(e))}},q$=zt(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Dy=Object.isExtensible,zl=zt(function(){Dy(1)})||q$?function(e){return!!Xt(e)&&(!q$||Fi(e)!="ArrayBuffer")&&(!Dy||Dy(e))}:Dy,i4e=!zt(function(){return Object.isExtensible(Object.preventExtensions({}))}),Sx=dS(function(e){var t=wa.f,r=!1,n=SS("meta"),o=0,i=function(s){t(s,n,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var s=ly.f,u=Ge([].splice),l={};l[n]=1,s(l).length&&(ly.f=function(c){for(var f=s(c),d=0,p=f.length;d<p;d++)if(f[d]===n){u(f,d,1);break}return f},Fn({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:o4e.f}))},fastKey:function(s,u){if(!Xt(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Pr(s,n)){if(!zl(s))return"F";if(!u)return"E";i(s)}return s[n].objectID},getWeakData:function(s,u){if(!Pr(s,n)){if(!zl(s))return!0;if(!u)return!1;i(s)}return s[n].weakData},onFreeze:function(s){return i4e&&r&&zl(s)&&!Pr(s,n)&&i(s),s}};ay[n]=!0}),_y=Sx.getWeakData,a4e=to.set,s4e=to.getterFor,u4e=zS.find,l4e=zS.findIndex,c4e=Ge([].splice),f4e=0,Oy=function(e){return e.frozen||(e.frozen=new K$)},K$=function(){this.entries=[]},xx=function(e,t){return u4e(e.entries,function(r){return r[0]===t})};K$.prototype={get:function(e){var t=xx(this,e);if(t)return t[1]},has:function(e){return!!xx(this,e)},set:function(e,t){var r=xx(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=l4e(this.entries,function(r){return r[0]===e});return~t&&c4e(this.entries,t,1),!!~t}};var G0,G$={getConstructor:function(e,t,r,n){var o=e(function(u,l){ZS(u,i),a4e(u,{type:t,id:f4e++,frozen:void 0}),l!=null&&Sy(l,u[n],{that:u,AS_ENTRIES:r})}),i=o.prototype,a=s4e(t),s=function(u,l,c){var f=a(u),d=_y(Kr(l),!0);return d===!0?Oy(f).set(l,c):d[f.id]=c,u};return by(i,{delete:function(u){var l=a(this);if(!Xt(u))return!1;var c=_y(u);return c===!0?Oy(l).delete(u):c&&Pr(c,l.id)&&delete c[l.id]},has:function(u){var l=a(this);if(!Xt(u))return!1;var c=_y(u);return c===!0?Oy(l).has(u):c&&Pr(c,l.id)}}),by(i,r?{get:function(u){var l=a(this);if(Xt(u)){var c=_y(u);return c===!0?Oy(l).get(u):c?c[l.id]:void 0}},set:function(u,l){return s(this,u,l)}}:{add:function(u){return s(this,u,!0)}}),o}},Ay=to.enforce,d4e=!Ee.ActiveXObject&&"ActiveXObject"in Ee,W$=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},p4e=function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",a=Ee[e],s=a&&a.prototype,u=a,l={},c=function(m){var y=Ge(s[m]);No(s,m,m=="add"?function(v){return y(this,v===0?0:v),this}:m=="delete"?function(v){return!(o&&!Xt(v))&&y(this,v===0?0:v)}:m=="get"?function(v){return o&&!Xt(v)?void 0:y(this,v===0?0:v)}:m=="has"?function(v){return!(o&&!Xt(v))&&y(this,v===0?0:v)}:function(v,E){return y(this,v===0?0:v,E),this})};if(cy(e,!Pt(a)||!(o||s.forEach&&!zt(function(){new a().entries().next()}))))u=r.getConstructor(t,e,n,i),Sx.enable();else if(cy(e,!0)){var f=new u,d=f[i](o?{}:-0,1)!=f,p=zt(function(){f.has(1)}),h=f$(function(m){new a(m)}),g=!o&&zt(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});h||((u=t(function(m,y){ZS(m,s);var v=function(E,w,S){var C,x;return Uf&&Pt(C=w.constructor)&&C!==S&&Xt(x=C.prototype)&&x!==S.prototype&&Uf(E,x),E}(new a,m,u);return y!=null&&Sy(y,v[i],{that:v,AS_ENTRIES:n}),v})).prototype=s,s.constructor=u),(p||g)&&(c("delete"),c("has"),n&&c("get")),(g||d)&&c(i),o&&s.clear&&delete s.clear}return l[e]=u,Fn({global:!0,forced:u!=a},l),wy(u,e),o||r.setStrong(u,e,n),u}("WeakMap",W$,G$);if(bR&&d4e){G0=G$.getConstructor(W$,"WeakMap",!0),Sx.enable();var W0=p4e.prototype,Y$=Ge(W0.delete),ky=Ge(W0.has),X$=Ge(W0.get),J$=Ge(W0.set);by(W0,{delete:function(e){if(Xt(e)&&!zl(e)){var t=Ay(this);return t.frozen||(t.frozen=new G0),Y$(this,e)||t.frozen.delete(e)}return Y$(this,e)},has:function(e){if(Xt(e)&&!zl(e)){var t=Ay(this);return t.frozen||(t.frozen=new G0),ky(this,e)||t.frozen.has(e)}return ky(this,e)},get:function(e){if(Xt(e)&&!zl(e)){var t=Ay(this);return t.frozen||(t.frozen=new G0),ky(this,e)?X$(this,e):t.frozen.get(e)}return X$(this,e)},set:function(e,t){if(Xt(e)&&!zl(e)){var r=Ay(this);r.frozen||(r.frozen=new G0),ky(this,e)?J$(this,e,t):r.frozen.set(e,t)}else J$(this,e,t);return this}})}var Z$={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Cx=N0("span").classList,Q$=Cx&&Cx.constructor&&Cx.constructor.prototype,h4e=Q$===Object.prototype?void 0:Q$,Dx=Er("iterator"),eH=Er("toStringTag"),_x=K0.values,tH=function(e,t){if(e){if(e[Dx]!==_x)try{Ks(e,Dx,_x)}catch{e[Dx]=_x}if(e[eH]||Ks(e,eH,t),Z$[t]){for(var r in K0)if(e[r]!==K0[r])try{Ks(e,r,K0[r])}catch{e[r]=K0[r]}}}};for(var Ox in Z$)tH(Ee[Ox]&&Ee[Ox].prototype,Ox);tH(h4e,"DOMTokenList");var g4e=Hf.EXISTS,v4e=wa.f,rH=Function.prototype,m4e=Ge(rH.toString),nH=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,y4e=Ge(nH.exec);Bi&&!g4e&&v4e(rH,"name",{configurable:!0,get:function(){try{return y4e(nH,m4e(this))[1]}catch{return""}}});var b4e=Er("species"),w4e=O0>=51||!zt(function(){var e=[];return(e.constructor={})[b4e]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),E4e=Er("species"),Ax=Ee.Array,S4e=Math.max;function oH(e){return e.getMenuConfig("uploadVideo")}Fn({target:"Array",proto:!0,forced:!w4e},{slice:function(e,t){var r,n,o,i=Hs(this),a=B0(i),s=P0(e,a),u=P0(t===void 0?a:t,a);if(gy(i)&&(r=i.constructor,(MS(r)&&(r===Ax||gy(r.prototype))||Xt(r)&&(r=r[E4e])===null)&&(r=void 0),r===Ax||r===void 0))return d$(i,s,u);for(n=new(r===void 0?Ax:r)(S4e(u-s,0)),o=0;s<u;s++,o++)s in i&&$$(n,o,i[s]);return n.length=o,n}});var iH=new WeakMap;function x4e(e,t){return X2(this,void 0,void 0,function(){var r,n,o,i;return J2(this,function(a){switch(a.label){case 0:return r=function(s){var u=iH.get(s);if(u!=null)return u;var l=oH(s),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,h=l.onError;return u=hw(Y2(Y2({},l),{onProgress:function(g){s.showProgressBar(g),f&&f(g)},onSuccess:function(g,m){if(p)return p(m,function(_,P){return U0(s,_,P)}),void c(g,m);var y=m.errno,v=y===void 0?1:y,E=m.data,w=E===void 0?{}:E;if(v===0){var S=w.url,C=S===void 0?"":S,x=w.poster;U0(s,C,x===void 0?"":x),c(g,m)}else d(g,m)},onError:function(g,m,y){h(g,m,y)}})),iH.set(s,u),u}(e),n=t.name,o=t.type,i=t.size,r.addFile({name:n,type:o,size:i,data:t}),[4,r.upload()];case 1:return a.sent(),[2]}})})}var C4e=function(){function e(){this.title=ye("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){var n=this.getMenuConfig(t),o=n.allowedFileTypes,i=o===void 0?[]:o,a=n.customBrowseAndUpload;if(a)a(function(c,f){return U0(t,c,f)});else{var s="";i.length>0&&(s='accept="'+i.join(", ")+'"');var u=$("body"),l=$('<input type="file" '+s+" multiple/>");l.hide(),u.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,d){var p,h;X2(this,void 0,void 0,function(){var g,m,y,v,E,w;return J2(this,function(S){switch(S.label){case 0:if(d==null)return[2];g=Array.prototype.slice.call(d),m=oH(f).customUpload,S.label=1;case 1:S.trys.push([1,9,10,15]),y=S2e(g),S.label=2;case 2:return[4,y.next()];case 3:return(v=S.sent()).done?[3,8]:(E=v.value,m?[4,m(E,function(C,x){return U0(f,C,x)})]:[3,5]);case 4:return S.sent(),[3,7];case 5:return[4,x4e(f,E)];case 6:S.sent(),S.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=S.sent(),p={error:w},[3,15];case 10:return S.trys.push([10,,13,14]),v&&!v.done&&(h=y.return)?[4,h.call(y)]:[3,12];case 11:S.sent(),S.label=12;case 12:return[3,14];case 13:if(p)throw p.error;return[7];case 14:return[7];case 15:return[2]}})})})(t,c)})}},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!oe.isCollapsed(r)||!!z.getSelectedElems(t).some(function(n){var o=z.getNodeType(n);return o==="pre"||o==="list-item"||!!t.isVoid(n)})},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e}(),D4e=Hf.PROPER,kx=RegExp.prototype,aH=kx.toString,_4e=Ge(HR),O4e=zt(function(){return aH.call({source:"a",flags:"b"})!="/a/b"}),A4e=D4e&&aH.name!="toString";function Nx(){return t$("w-e-insert-video")}(O4e||A4e)&&No(RegExp.prototype,"toString",function(){var e=Kr(this),t=To(e.source),r=e.flags;return"/"+t+"/"+To(r===void 0&&_0(kx,e)&&!("flags"in kx)?_4e(e):r)},{unsafe:!0});var k4e=function(){function e(){this.title=ye("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Nx(),this.heightInputId=Nx(),this.buttonId=Nx()}return e.prototype.getSelectedVideoNode=function(t){return z.getSelectedNodeByType(t,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedVideoNode(t)==null},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(t){var r=this,n=r.widthInputId,o=r.heightInputId,i=r.buttonId,a=Pl(Nn(ye("videoModule.width"),n,"auto"),2),s=a[0],u=$(a[1]),l=Pl(Nn(ye("videoModule.height"),o,"auto"),2),c=l[0],f=$(l[1]),d=Pl(ul(i,ye("videoModule.ok")),1)[0];if(this.$content==null){var p=$("<div></div>");p.on("click","#"+i,function(w){w.preventDefault();var S=p.find("#"+n).val().trim(),C=p.find("#"+o).val().trim(),x=parseInt(S),_=parseInt(C),P=x?x.toString():"auto",q=_?_.toString():"auto";t.restoreSelection(),Q.setNodes(t,{width:P,height:q},{match:function(H){return z.checkNodeType(H,"video")}}),t.hidePanelOrModal()}),this.$content=p}var h=this.$content;h.empty(),h.append(s),h.append(c),h.append(d);var g=this.getSelectedVideoNode(t);if(g==null)return h[0];var m=g.width,y=m===void 0?"auto":m,v=g.height,E=v===void 0?"auto":v;return u.val(y),f.val(E),setTimeout(function(){u.focus()}),h[0]},e}(),N4e={renderElems:[Cye],elemsToHtml:[Dye],preParseHtml:[kye],parseElemsHtml:[Lye],menus:[{key:"insertVideo",factory:function(){return new zbe},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new C4e},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,r){console.error("'"+e.name+" upload error",t,r)}}},{key:"editVideoSize",factory:function(){return new k4e}}],editorPlugin:function(e){var t=e.isVoid,r=e.normalizeNode,n=e;return n.isVoid=function(o){return o.type==="video"||t(o)},n.normalizeNode=function(o){var i=Pl(o,2),a=i[0],s=i[1];return z.getNodeType(a)==="video"&&z.isLastNode(n,a)&&Q.insertNodes(n,z.genEmptyParagraph(),{at:[s[0]+1]}),r([a,s])},n}};yn("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),yn("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var sH=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tx(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ys,Ny,Ty=function(e){return e&&e.Math==Math&&e},we=Ty(typeof globalThis=="object"&&globalThis)||Ty(typeof window=="object"&&window)||Ty(typeof self=="object"&&self)||Ty(typeof sH=="object"&&sH)||function(){return this}()||Function("return this")(),qt=function(e){try{return!!e()}catch{return!0}},Ii=!qt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Y0=Function.prototype.call,Ot=Y0.bind?Y0.bind(Y0):function(){return Y0.apply(Y0,arguments)},uH={}.propertyIsEnumerable,lH=Object.getOwnPropertyDescriptor,T4e={f:lH&&!uH.call({1:2},1)?function(e){var t=lH(this,e);return!!t&&t.enumerable}:uH},Py=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},cH=Function.prototype,Px=cH.bind,Bx=cH.call,P4e=Px&&Px.bind(Bx),nt=Px?function(e){return e&&P4e(Bx,e)}:function(e){return e&&function(){return Bx.apply(e,arguments)}},B4e=nt({}.toString),F4e=nt("".slice),oi=function(e){return F4e(B4e(e),8,-1)},Fx=we.Object,j4e=nt("".split),jx=qt(function(){return!Fx("z").propertyIsEnumerable(0)})?function(e){return oi(e)=="String"?j4e(e,""):Fx(e)}:Fx,I4e=we.TypeError,X0=function(e){if(e==null)throw I4e("Can't call method on "+e);return e},Xs=function(e){return jx(X0(e))},It=function(e){return typeof e=="function"},Kt=function(e){return typeof e=="object"?e!==null:It(e)},L4e=function(e){return It(e)?e:void 0},Vl=function(e,t){return arguments.length<2?L4e(we[e]):we[e]&&we[e][t]},J0=nt({}.isPrototypeOf),Jf=Vl("navigator","userAgent")||"",fH=we.process,dH=we.Deno,pH=fH&&fH.versions||dH&&dH.version,hH=pH&&pH.v8;hH&&(Ny=(Ys=hH.split("."))[0]>0&&Ys[0]<4?1:+(Ys[0]+Ys[1])),!Ny&&Jf&&(!(Ys=Jf.match(/Edge\/(\d+)/))||Ys[1]>=74)&&(Ys=Jf.match(/Chrome\/(\d+)/))&&(Ny=+Ys[1]);var Z0=Ny,Ix=!!Object.getOwnPropertySymbols&&!qt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Z0&&Z0<41}),Lx=Ix&&!Symbol.sham&&typeof Symbol.iterator=="symbol",M4e=we.Object,Mx=Lx?function(e){return typeof e=="symbol"}:function(e){var t=Vl("Symbol");return It(t)&&J0(t.prototype,M4e(e))},z4e=we.String,By=function(e){try{return z4e(e)}catch{return"Object"}},V4e=we.TypeError,Js=function(e){if(It(e))return e;throw V4e(By(e)+" is not a function")},Q0=function(e,t){var r=e[t];return r==null?void 0:Js(r)},R4e=we.TypeError,$4e=Object.defineProperty,zx=function(e,t){try{$4e(we,e,{value:t,configurable:!0,writable:!0})}catch{we[e]=t}return t},Zs=we["__core-js_shared__"]||zx("__core-js_shared__",{}),Vx=Tx(function(e){(e.exports=function(t,r){return Zs[t]||(Zs[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),H4e=we.Object,Rx=function(e){return H4e(X0(e))},U4e=nt({}.hasOwnProperty),Br=Object.hasOwn||function(e,t){return U4e(Rx(e),t)},q4e=0,K4e=Math.random(),G4e=nt(1 .toString),$x=function(e){return"Symbol("+(e===void 0?"":e)+")_"+G4e(++q4e+K4e,36)},eg=Vx("wks"),Rl=we.Symbol,gH=Rl&&Rl.for,W4e=Lx?Rl:Rl&&Rl.withoutSetter||$x,Sr=function(e){if(!Br(eg,e)||!Ix&&typeof eg[e]!="string"){var t="Symbol."+e;Ix&&Br(Rl,e)?eg[e]=Rl[e]:eg[e]=Lx&&gH?gH(t):W4e(t)}return eg[e]},Y4e=we.TypeError,X4e=Sr("toPrimitive"),Hx=function(e){var t=function(r,n){if(!Kt(r)||Mx(r))return r;var o,i=Q0(r,X4e);if(i){if(o=Ot(i,r,n),!Kt(o)||Mx(o))return o;throw Y4e("Can't convert object to primitive value")}return function(a,s){var u,l;if(It(u=a.toString)&&!Kt(l=Ot(u,a))||It(u=a.valueOf)&&!Kt(l=Ot(u,a)))return l;throw R4e("Can't convert object to primitive value")}(r)}(e,"string");return Mx(t)?t:t+""},Ux=we.document,J4e=Kt(Ux)&&Kt(Ux.createElement),tg=function(e){return J4e?Ux.createElement(e):{}},vH=!Ii&&!qt(function(){return Object.defineProperty(tg("div"),"a",{get:function(){return 7}}).a!=7}),mH=Object.getOwnPropertyDescriptor,qx={f:Ii?mH:function(e,t){if(e=Xs(e),t=Hx(t),vH)try{return mH(e,t)}catch{}if(Br(e,t))return Py(!Ot(T4e.f,e,t),e[t])}},Z4e=we.String,Q4e=we.TypeError,Gr=function(e){if(Kt(e))return e;throw Q4e(Z4e(e)+" is not an object")},e6e=we.TypeError,yH=Object.defineProperty,Sa={f:Ii?yH:function(e,t,r){if(Gr(e),t=Hx(t),Gr(r),vH)try{return yH(e,t,r)}catch{}if("get"in r||"set"in r)throw e6e("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Li=Ii?function(e,t,r){return Sa.f(e,t,Py(1,r))}:function(e,t,r){return e[t]=r,e},t6e=nt(Function.toString);It(Zs.inspectSource)||(Zs.inspectSource=function(e){return t6e(e)});var Fy,rg,jy,Iy=Zs.inspectSource,bH=we.WeakMap,wH=It(bH)&&/native code/.test(Iy(bH)),EH=Vx("keys"),Kx=function(e){return EH[e]||(EH[e]=$x(e))},Ly={},Gx=we.TypeError,r6e=we.WeakMap;if(wH||Zs.state){var $l=Zs.state||(Zs.state=new r6e),n6e=nt($l.get),SH=nt($l.has),o6e=nt($l.set);Fy=function(e,t){if(SH($l,e))throw new Gx("Object already initialized");return t.facade=e,o6e($l,e,t),t},rg=function(e){return n6e($l,e)||{}},jy=function(e){return SH($l,e)}}else{var Zf=Kx("state");Ly[Zf]=!0,Fy=function(e,t){if(Br(e,Zf))throw new Gx("Object already initialized");return t.facade=e,Li(e,Zf,t),t},rg=function(e){return Br(e,Zf)?e[Zf]:{}},jy=function(e){return Br(e,Zf)}}var ro={set:Fy,get:rg,has:jy,enforce:function(e){return jy(e)?rg(e):Fy(e,{})},getterFor:function(e){return function(t){var r;if(!Kt(t)||(r=rg(t)).type!==e)throw Gx("Incompatible receiver, "+e+" required");return r}}},xH=Function.prototype,i6e=Ii&&Object.getOwnPropertyDescriptor,Wx=Br(xH,"name"),ng={EXISTS:Wx,PROPER:Wx&&(function(){}).name==="something",CONFIGURABLE:Wx&&(!Ii||Ii&&i6e(xH,"name").configurable)},Po=Tx(function(e){var t=ng.CONFIGURABLE,r=ro.get,n=ro.enforce,o=String(String).split("String");(e.exports=function(i,a,s,u){var l,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet,p=u&&u.name!==void 0?u.name:a;It(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Br(s,"name")||t&&s.name!==p)&&Li(s,"name",p),(l=n(s)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==we?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=s:Li(i,a,s)):f?i[a]=s:zx(a,s)})(Function.prototype,"toString",function(){return It(this)&&r(this).source||Iy(this)})}),a6e=Math.ceil,s6e=Math.floor,Yx=function(e){var t=+e;return t!=t||t===0?0:(t>0?s6e:a6e)(t)},u6e=Math.max,l6e=Math.min,og=function(e,t){var r=Yx(e);return r<0?u6e(r+t,0):l6e(r,t)},c6e=Math.min,CH=function(e){return e>0?c6e(Yx(e),9007199254740991):0},ig=function(e){return CH(e.length)},f6e=function(e){return function(t,r,n){var o,i=Xs(t),a=ig(i),s=og(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},d6e=f6e(!1),DH=nt([].push),_H=function(e,t){var r,n=Xs(e),o=0,i=[];for(r in n)!Br(Ly,r)&&Br(n,r)&&DH(i,r);for(;t.length>o;)Br(n,r=t[o++])&&(~d6e(i,r)||DH(i,r));return i},My=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],p6e=My.concat("length","prototype"),zy={f:Object.getOwnPropertyNames||function(e){return _H(e,p6e)}},h6e={f:Object.getOwnPropertySymbols},g6e=nt([].concat),v6e=Vl("Reflect","ownKeys")||function(e){var t=zy.f(Gr(e)),r=h6e.f;return r?g6e(t,r(e)):t},m6e=function(e,t){for(var r=v6e(t),n=Sa.f,o=qx.f,i=0;i<r.length;i++){var a=r[i];Br(e,a)||n(e,a,o(t,a))}},y6e=/#|\.prototype\./,ag=function(e,t){var r=w6e[b6e(e)];return r==S6e||r!=E6e&&(It(t)?qt(t):!!t)},b6e=ag.normalize=function(e){return String(e).replace(y6e,".").toLowerCase()},w6e=ag.data={},E6e=ag.NATIVE="N",S6e=ag.POLYFILL="P",Vy=ag,x6e=qx.f,Mi=function(e,t){var r,n,o,i,a,s=e.target,u=e.global,l=e.stat;if(r=u?we:l?we[s]||zx(s,{}):(we[s]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=x6e(r,n))&&a.value:r[n],!Vy(u?n:s+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;m6e(i,o)}(e.sham||o&&o.sham)&&Li(i,"sham",!0),Po(r,n,i,e)}},Ry=Array.isArray||function(e){return oi(e)=="Array"},OH={};OH[Sr("toStringTag")]="z";var Xx=String(OH)==="[object z]",C6e=Sr("toStringTag"),D6e=we.Object,_6e=oi(function(){return arguments}())=="Arguments",$y=Xx?oi:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=D6e(e),C6e))=="string"?r:_6e?oi(t):(n=oi(t))=="Object"&&It(t.callee)?"Arguments":n},AH=function(){},O6e=[],kH=Vl("Reflect","construct"),Jx=/^\s*(?:class|function)\b/,A6e=nt(Jx.exec),k6e=!Jx.exec(AH),sg=function(e){if(!It(e))return!1;try{return kH(AH,O6e,e),!0}catch{return!1}},Zx=!kH||qt(function(){var e;return sg(sg.call)||!sg(Object)||!sg(function(){e=!0})||e})?function(e){if(!It(e))return!1;switch($y(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return k6e||!!A6e(Jx,Iy(e))}:sg,NH=function(e,t,r){var n=Hx(t);n in e?Sa.f(e,n,Py(0,r)):e[n]=r},N6e=Sr("species"),TH=nt([].slice),T6e=Z0>=51||!qt(function(){var e=[];return(e.constructor={})[N6e]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),P6e=Sr("species"),Qx=we.Array,B6e=Math.max;Mi({target:"Array",proto:!0,forced:!T6e},{slice:function(e,t){var r,n,o,i=Xs(this),a=ig(i),s=og(e,a),u=og(t===void 0?a:t,a);if(Ry(i)&&(r=i.constructor,(Zx(r)&&(r===Qx||Ry(r.prototype))||Kt(r)&&(r=r[P6e])===null)&&(r=void 0),r===Qx||r===void 0))return TH(i,s,u);for(n=new(r===void 0?Qx:r)(B6e(u-s,0)),o=0;s<u;s++,o++)s in i&&NH(n,o,i[s]);return n.length=o,n}});var F6e=Xx?{}.toString:function(){return"[object "+$y(this)+"]"};Xx||Po(Object.prototype,"toString",F6e,{unsafe:!0});var Hy,j6e=we.String,Qs=function(e){if($y(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return j6e(e)},PH=function(){var e=Gr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},eC=we.RegExp,tC=qt(function(){var e=eC("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),I6e=tC||qt(function(){return!eC("a","y").sticky}),BH={BROKEN_CARET:tC||qt(function(){var e=eC("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:I6e,UNSUPPORTED_Y:tC},L6e=Object.keys||function(e){return _H(e,My)},M6e=Ii?Object.defineProperties:function(e,t){Gr(e);for(var r,n=Xs(t),o=L6e(t),i=o.length,a=0;i>a;)Sa.f(e,r=o[a++],n[r]);return e},rC=Vl("document","documentElement"),FH=Kx("IE_PROTO"),nC=function(){},jH=function(e){return"<script>"+e+"<\/script>"},IH=function(e){e.write(jH("")),e.close();var t=e.parentWindow.Object;return e=null,t},Uy=function(){try{Hy=new ActiveXObject("htmlfile")}catch{}var e,t;Uy=typeof document<"u"?document.domain&&Hy?IH(Hy):((t=tg("iframe")).style.display="none",rC.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(jH("document.F=Object")),e.close(),e.F):IH(Hy);for(var r=My.length;r--;)delete Uy.prototype[My[r]];return Uy()};Ly[FH]=!0;var LH,oC,iC=Object.create||function(e,t){var r;return e!==null?(nC.prototype=Gr(e),r=new nC,nC.prototype=null,r[FH]=e):r=Uy(),t===void 0?r:M6e(r,t)},z6e=we.RegExp,V6e=qt(function(){var e=z6e(".","s");return!(e.dotAll&&e.exec(`
177
+ `)&&e.flags==="s")}),R6e=we.RegExp,$6e=qt(function(){var e=R6e("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),H6e=ro.get,U6e=Vx("native-string-replace",String.prototype.replace),qy=RegExp.prototype.exec,aC=qy,q6e=nt("".charAt),K6e=nt("".indexOf),G6e=nt("".replace),sC=nt("".slice),uC=(oC=/b*/g,Ot(qy,LH=/a/,"a"),Ot(qy,oC,"a"),LH.lastIndex!==0||oC.lastIndex!==0),MH=BH.BROKEN_CARET,lC=/()??/.exec("")[1]!==void 0;(uC||lC||MH||V6e||$6e)&&(aC=function(e){var t,r,n,o,i,a,s,u=this,l=H6e(u),c=Qs(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=Ot(aC,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=MH&&u.sticky,h=Ot(PH,u),g=u.source,m=0,y=c;if(p&&(h=G6e(h,"y",""),K6e(h,"g")===-1&&(h+="g"),y=sC(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&q6e(c,u.lastIndex-1)!==`
178
+ `)&&(g="(?: "+g+")",y=" "+y,m++),r=new RegExp("^(?:"+g+")",h)),lC&&(r=new RegExp("^"+g+"$(?!\\s)",h)),uC&&(n=u.lastIndex),o=Ot(qy,p?r:u,y),p?o?(o.input=sC(o.input,m),o[0]=sC(o[0],m),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:uC&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),lC&&o&&o.length>1&&Ot(U6e,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=iC(null),i=0;i<d.length;i++)a[(s=d[i])[0]]=o[s[1]];return o});var ug=aC;Mi({target:"RegExp",proto:!0,forced:/./.exec!==ug},{exec:ug});var cC=Function.prototype,zH=cC.apply,W6e=cC.bind,VH=cC.call,RH=typeof Reflect=="object"&&Reflect.apply||(W6e?VH.bind(zH):function(){return VH.apply(zH,arguments)}),Y6e=Sr("species"),fC=RegExp.prototype,X6e=Sr("match"),J6e=we.TypeError,Z6e=Sr("species"),$H=function(e,t){var r,n=Gr(e).constructor;return n===void 0||(r=Gr(n)[Z6e])==null?t:function(o){if(Zx(o))return o;throw J6e(By(o)+" is not a constructor")}(r)},Q6e=nt("".charAt),HH=nt("".charCodeAt),e3e=nt("".slice),UH=function(e){return function(t,r){var n,o,i=Qs(X0(t)),a=Yx(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=HH(i,a))<55296||n>56319||a+1===s||(o=HH(i,a+1))<56320||o>57343?e?Q6e(i,a):n:e?e3e(i,a,a+2):o-56320+(n-55296<<10)+65536}},qH={codeAt:UH(!1),charAt:UH(!0)},t3e=qH.charAt,r3e=function(e,t,r){return t+(r?t3e(e,t).length:1)},n3e=we.Array,o3e=Math.max,dC=function(e,t,r){for(var n=ig(e),o=og(t,n),i=og(r===void 0?n:r,n),a=n3e(o3e(i-o,0)),s=0;o<i;o++,s++)NH(a,s,e[o]);return a.length=s,a},i3e=we.TypeError,KH=function(e,t){var r=e.exec;if(It(r)){var n=Ot(r,e,t);return n!==null&&Gr(n),n}if(oi(e)==="RegExp")return Ot(ug,e,t);throw i3e("RegExp#exec called on incompatible receiver")},Qf=BH.UNSUPPORTED_Y,a3e=Math.min,GH=[].push,s3e=nt(/./.exec),ed=nt(GH),lg=nt("".slice);(function(e,t,r,n){var o=Sr(e),i=!qt(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!qt(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Y6e]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var s=nt(/./[o]),u=function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,h){var g,m,y=Qs(X0(this)),v=h===void 0?4294967295:h>>>0;if(v===0)return[];if(p===void 0)return[y];if(!Kt(g=p)||!((m=g[X6e])!==void 0?m:oi(g)=="RegExp"))return Ot(c,y,p,v);for(var E,w,S,C=[],x=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),_=0,P=new RegExp(p.source,x+"g");(E=Ot(ug,P,y))&&!((w=P.lastIndex)>_&&(ed(C,lg(y,_,E.index)),E.length>1&&E.index<y.length&&RH(GH,C,dC(E,1)),S=E[0].length,_=w,C.length>=v));)P.lastIndex===E.index&&P.lastIndex++;return _===y.length?!S&&s3e(P,"")||ed(C,""):ed(C,lg(y,_)),C.length>v?dC(C,0,v):C}:"0".split(void 0,0).length?function(p,h){return p===void 0&&h===0?[]:Ot(c,this,p,h)}:c,[function(p,h){var g=X0(this),m=p==null?void 0:Q0(p,l);return m?Ot(m,p,g,h):Ot(d,Qs(g),p,h)},function(p,h){var g=Gr(this),m=Qs(p),y=f(d,g,m,h,d!==c);if(y.done)return y.value;var v=$H(g,RegExp),E=g.unicode,w=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(Qf?"g":"y"),S=new v(Qf?"^(?:"+g.source+")":g,w),C=h===void 0?4294967295:h>>>0;if(C===0)return[];if(m.length===0)return KH(S,m)===null?[m]:[];for(var x=0,_=0,P=[];_<m.length;){S.lastIndex=Qf?0:_;var q,H=KH(S,Qf?lg(m,_):m);if(H===null||(q=a3e(CH(S.lastIndex+(Qf?_:0)),m.length))===x)_=r3e(m,_,E);else{if(ed(P,lg(m,x,_)),P.length===C)return P;for(var k=1;k<=H.length-1;k++)if(ed(P,H[k]),P.length===C)return P;_=x=q}}return ed(P,lg(m,x)),P}]}(o,""[e],function(l,c,f,d,p){var h=nt(l),g=c.exec;return g===ug||g===fC.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:h(f,c,d)}:{done:!1}});Po(String.prototype,e,u[0]),Po(fC,o,u[1])}n&&Li(fC[o],"sham",!0)})("split",0,!!qt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Qf);/*! *****************************************************************************
179
+ Copyright (c) Microsoft Corporation.
180
+
181
+ Permission to use, copy, modify, and/or distribute this software for any
182
+ purpose with or without fee is hereby granted.
183
+
184
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
185
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
186
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
187
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
188
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
189
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
190
+ PERFORMANCE OF THIS SOFTWARE.
191
+ ***************************************************************************** */var Ky=function(){return Ky=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ky.apply(this,arguments)};function pC(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{u(n.next(l))}catch(c){i(c)}}function s(l){try{u(n.throw(l))}catch(c){i(c)}}function u(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,s)}u((n=n.apply(e,[])).next())})}function hC(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([u,l])}}}function u3e(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],s=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(o){t[o]=e[o]&&function(i){return new Promise(function(a,s){(function(u,l,c,f){Promise.resolve(f).then(function(d){u({value:d,done:c})},l)})(a,s,(i=e[o](i)).done,i.value)})}}}var gC=Sr("unscopables"),vC=Array.prototype;vC[gC]==null&&Sa.f(vC,gC,{configurable:!0,value:iC(null)});var Hl,WH,YH,mC=function(e){vC[gC][e]=!0},td={},l3e=!qt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),XH=Kx("IE_PROTO"),yC=we.Object,c3e=yC.prototype,Gy=l3e?yC.getPrototypeOf:function(e){var t=Rx(e);if(Br(t,XH))return t[XH];var r=t.constructor;return It(r)&&t instanceof r?r.prototype:t instanceof yC?c3e:null},bC=Sr("iterator"),JH=!1;[].keys&&("next"in(YH=[].keys())?(WH=Gy(Gy(YH)))!==Object.prototype&&(Hl=WH):JH=!0);var f3e=Hl==null||qt(function(){var e={};return Hl[bC].call(e)!==e});f3e&&(Hl={}),It(Hl[bC])||Po(Hl,bC,function(){return this});var wC={IteratorPrototype:Hl,BUGGY_SAFARI_ITERATORS:JH},d3e=Sa.f,ZH=Sr("toStringTag"),Wy=function(e,t,r){e&&!Br(e=r?e:e.prototype,ZH)&&d3e(e,ZH,{configurable:!0,value:t})},p3e=wC.IteratorPrototype,h3e=function(){return this},g3e=we.String,v3e=we.TypeError,rd=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=nt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return Gr(n),function(i){if(typeof i=="object"||It(i))return i;throw v3e("Can't set "+g3e(i)+" as a prototype")}(o),t?e(n,o):n.__proto__=o,n}}():void 0),m3e=ng.PROPER,y3e=ng.CONFIGURABLE,QH=wC.IteratorPrototype,EC=wC.BUGGY_SAFARI_ITERATORS,cg=Sr("iterator"),b3e=function(){return this},eU=function(e,t,r,n,o,i,a){(function(m,y,v,E){var w=y+" Iterator";m.prototype=iC(p3e,{next:Py(1,v)}),Wy(m,w,!1),td[w]=h3e})(r,t,n);var s,u,l=function(m){if(m===o&&h)return h;if(!EC&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[cg]||d["@@iterator"]||o&&d[o],h=!EC&&p||l(o),g=t=="Array"&&d.entries||p;return g&&(s=Gy(g.call(new e)))!==Object.prototype&&s.next&&(Gy(s)!==QH&&(rd?rd(s,QH):It(s[cg])||Po(s,cg,b3e)),Wy(s,c,!0)),m3e&&o=="values"&&p&&p.name!=="values"&&(y3e?Li(d,"name","values"):(f=!0,h=function(){return Ot(p,this)})),o&&(u={values:l("values"),keys:l("keys"),entries:l("entries")},a||Mi({target:t,proto:!0,forced:EC||f},u)),d[cg]!==h&&Po(d,cg,h,{name:o}),td[t]=h,u},w3e=ro.set,E3e=ro.getterFor("Array Iterator"),fg=eU(Array,"Array",function(e,t){w3e(this,{type:"Array Iterator",target:Xs(e),index:0,kind:t})},function(){var e=E3e(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");td.Arguments=td.Array,mC("keys"),mC("values"),mC("entries");var S3e=qH.charAt,x3e=ro.set,C3e=ro.getterFor("String Iterator");eU(String,"String",function(e){x3e(this,{type:"String Iterator",string:Qs(e),index:0})},function(){var e,t=C3e(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=S3e(r,n),t.index+=e.length,{value:e,done:!1})});var Yy=function(e,t,r){for(var n in t)Po(e,n,t[n],r);return e},tU=zy.f,rU=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],D3e={f:function(e){return rU&&oi(e)=="Window"?function(t){try{return tU(t)}catch{return dC(rU)}}(e):tU(Xs(e))}},nU=qt(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Xy=Object.isExtensible,Ul=qt(function(){Xy(1)})||nU?function(e){return!!Kt(e)&&(!nU||oi(e)!="ArrayBuffer")&&(!Xy||Xy(e))}:Xy,_3e=!qt(function(){return Object.isExtensible(Object.preventExtensions({}))}),SC=Tx(function(e){var t=Sa.f,r=!1,n=$x("meta"),o=0,i=function(s){t(s,n,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var s=zy.f,u=nt([].splice),l={};l[n]=1,s(l).length&&(zy.f=function(c){for(var f=s(c),d=0,p=f.length;d<p;d++)if(f[d]===n){u(f,d,1);break}return f},Mi({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:D3e.f}))},fastKey:function(s,u){if(!Kt(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Br(s,n)){if(!Ul(s))return"F";if(!u)return"E";i(s)}return s[n].objectID},getWeakData:function(s,u){if(!Br(s,n)){if(!Ul(s))return!0;if(!u)return!1;i(s)}return s[n].weakData},onFreeze:function(s){return _3e&&r&&Ul(s)&&!Br(s,n)&&i(s),s}};Ly[n]=!0}),oU=nt(nt.bind),dg=function(e,t){return Js(e),t===void 0?e:oU?oU(e,t):function(){return e.apply(t,arguments)}},O3e=Sr("iterator"),A3e=Array.prototype,k3e=Sr("iterator"),iU=function(e){if(e!=null)return Q0(e,k3e)||Q0(e,"@@iterator")||td[$y(e)]},N3e=we.TypeError,aU=function(e,t,r){var n,o;Gr(e);try{if(!(n=Q0(e,"return"))){if(t==="throw")throw r;return r}n=Ot(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return Gr(n),r},T3e=we.TypeError,Jy=function(e,t){this.stopped=e,this.result=t},sU=Jy.prototype,Zy=function(e,t,r){var n,o,i,a,s,u,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),g=dg(t,f),m=function(v){return n&&aU(n,"normal",v),new Jy(!0,v)},y=function(v){return d?(Gr(v),h?g(v[0],v[1],m):g(v[0],v[1])):h?g(v,m):g(v)};if(p)n=e;else{if(!(o=iU(e)))throw T3e(By(e)+" is not iterable");if((c=o)!==void 0&&(td.Array===c||A3e[O3e]===c)){for(i=0,a=ig(e);a>i;i++)if((s=y(e[i]))&&J0(sU,s))return s;return new Jy(!1)}n=function(v,E){var w=arguments.length<2?iU(v):E;if(Js(w))return Gr(Ot(w,v));throw N3e(By(v)+" is not iterable")}(e,o)}for(u=n.next;!(l=Ot(u,n)).done;){try{s=y(l.value)}catch(v){aU(n,"throw",v)}if(typeof s=="object"&&s&&J0(sU,s))return s}return new Jy(!1)},P3e=we.TypeError,xC=function(e,t){if(J0(t,e))return e;throw P3e("Incorrect invocation")},uU=Sr("iterator"),lU=!1;try{var B3e=0,cU={next:function(){return{done:!!B3e++}},return:function(){lU=!0}};cU[uU]=function(){return this},Array.from(cU,function(){throw 2})}catch{}var fU=function(e,t){if(!lU)return!1;var r=!1;try{var n={};n[uU]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},F3e=Sr("species"),dU=we.Array,j3e=function(e,t){return new(function(r){var n;return Ry(r)&&(n=r.constructor,(Zx(n)&&(n===dU||Ry(n.prototype))||Kt(n)&&(n=n[F3e])===null)&&(n=void 0)),n===void 0?dU:n}(e))(t===0?0:t)},pU=nt([].push),eu=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,h=Rx(u),g=jx(h),m=dg(l,c),y=ig(g),v=0,E=f||j3e,w=t?E(u,y):r||a?E(u,0):void 0;y>v;v++)if((s||v in g)&&(p=m(d=g[v],v,h),e))if(t)w[v]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:pU(w,d)}else switch(e){case 4:return!1;case 7:pU(w,d)}return i?-1:n||o?o:w}},CC={forEach:eu(0),map:eu(1),filter:eu(2),some:eu(3),every:eu(4),find:eu(5),findIndex:eu(6),filterReject:eu(7)},Qy=SC.getWeakData,I3e=ro.set,L3e=ro.getterFor,M3e=CC.find,z3e=CC.findIndex,V3e=nt([].splice),R3e=0,eb=function(e){return e.frozen||(e.frozen=new hU)},hU=function(){this.entries=[]},DC=function(e,t){return M3e(e.entries,function(r){return r[0]===t})};hU.prototype={get:function(e){var t=DC(this,e);if(t)return t[1]},has:function(e){return!!DC(this,e)},set:function(e,t){var r=DC(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=z3e(this.entries,function(r){return r[0]===e});return~t&&V3e(this.entries,t,1),!!~t}};var pg,gU={getConstructor:function(e,t,r,n){var o=e(function(u,l){xC(u,i),I3e(u,{type:t,id:R3e++,frozen:void 0}),l!=null&&Zy(l,u[n],{that:u,AS_ENTRIES:r})}),i=o.prototype,a=L3e(t),s=function(u,l,c){var f=a(u),d=Qy(Gr(l),!0);return d===!0?eb(f).set(l,c):d[f.id]=c,u};return Yy(i,{delete:function(u){var l=a(this);if(!Kt(u))return!1;var c=Qy(u);return c===!0?eb(l).delete(u):c&&Br(c,l.id)&&delete c[l.id]},has:function(u){var l=a(this);if(!Kt(u))return!1;var c=Qy(u);return c===!0?eb(l).has(u):c&&Br(c,l.id)}}),Yy(i,r?{get:function(u){var l=a(this);if(Kt(u)){var c=Qy(u);return c===!0?eb(l).get(u):c?c[l.id]:void 0}},set:function(u,l){return s(this,u,l)}}:{add:function(u){return s(this,u,!0)}}),o}},tb=ro.enforce,$3e=!we.ActiveXObject&&"ActiveXObject"in we,vU=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},H3e=function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",a=we[e],s=a&&a.prototype,u=a,l={},c=function(m){var y=nt(s[m]);Po(s,m,m=="add"?function(v){return y(this,v===0?0:v),this}:m=="delete"?function(v){return!(o&&!Kt(v))&&y(this,v===0?0:v)}:m=="get"?function(v){return o&&!Kt(v)?void 0:y(this,v===0?0:v)}:m=="has"?function(v){return!(o&&!Kt(v))&&y(this,v===0?0:v)}:function(v,E){return y(this,v===0?0:v,E),this})};if(Vy(e,!It(a)||!(o||s.forEach&&!qt(function(){new a().entries().next()}))))u=r.getConstructor(t,e,n,i),SC.enable();else if(Vy(e,!0)){var f=new u,d=f[i](o?{}:-0,1)!=f,p=qt(function(){f.has(1)}),h=fU(function(m){new a(m)}),g=!o&&qt(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});h||((u=t(function(m,y){xC(m,s);var v=function(E,w,S){var C,x;return rd&&It(C=w.constructor)&&C!==S&&Kt(x=C.prototype)&&x!==S.prototype&&rd(E,x),E}(new a,m,u);return y!=null&&Zy(y,v[i],{that:v,AS_ENTRIES:n}),v})).prototype=s,s.constructor=u),(p||g)&&(c("delete"),c("has"),n&&c("get")),(g||d)&&c(i),o&&s.clear&&delete s.clear}return l[e]=u,Mi({global:!0,forced:u!=a},l),Wy(u,e),o||r.setStrong(u,e,n),u}("WeakMap",vU,gU);if(wH&&$3e){pg=gU.getConstructor(vU,"WeakMap",!0),SC.enable();var hg=H3e.prototype,mU=nt(hg.delete),rb=nt(hg.has),yU=nt(hg.get),bU=nt(hg.set);Yy(hg,{delete:function(e){if(Kt(e)&&!Ul(e)){var t=tb(this);return t.frozen||(t.frozen=new pg),mU(this,e)||t.frozen.delete(e)}return mU(this,e)},has:function(e){if(Kt(e)&&!Ul(e)){var t=tb(this);return t.frozen||(t.frozen=new pg),rb(this,e)||t.frozen.has(e)}return rb(this,e)},get:function(e){if(Kt(e)&&!Ul(e)){var t=tb(this);return t.frozen||(t.frozen=new pg),rb(this,e)?yU(this,e):t.frozen.get(e)}return yU(this,e)},set:function(e,t){if(Kt(e)&&!Ul(e)){var r=tb(this);r.frozen||(r.frozen=new pg),rb(this,e)?bU(this,e,t):r.frozen.set(e,t)}else bU(this,e,t);return this}})}var nb={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},_C=tg("span").classList,wU=_C&&_C.constructor&&_C.constructor.prototype,EU=wU===Object.prototype?void 0:wU,OC=Sr("iterator"),SU=Sr("toStringTag"),AC=fg.values,xU=function(e,t){if(e){if(e[OC]!==AC)try{Li(e,OC,AC)}catch{e[OC]=AC}if(e[SU]||Li(e,SU,t),nb[t]){for(var r in fg)if(e[r]!==fg[r])try{Li(e,r,fg[r])}catch{e[r]=fg[r]}}}};for(var kC in nb)xU(we[kC]&&we[kC].prototype,kC);xU(EU,"DOMTokenList");var CU=function(e,t){var r=[][e];return!!r&&qt(function(){r.call(null,t||function(){throw 1},1)})},U3e=CC.forEach,NC=CU("forEach")?[].forEach:function(e){return U3e(this,e,arguments.length>1?arguments[1]:void 0)},DU=function(e){if(e&&e.forEach!==NC)try{Li(e,"forEach",NC)}catch{e.forEach=NC}};for(var TC in nb)nb[TC]&&DU(we[TC]&&we[TC].prototype);DU(EU);var gg,nd,_U,PC,ob=we.Promise,OU=Sr("species"),AU=/(?:ipad|iphone|ipod).*applewebkit/i.test(Jf),tu=oi(we.process)=="process",BC=we.setImmediate,FC=we.clearImmediate,q3e=we.process,jC=we.Dispatch,K3e=we.Function,kU=we.MessageChannel,G3e=we.String,IC=0,vg={};try{gg=we.location}catch{}var LC=function(e){if(Br(vg,e)){var t=vg[e];delete vg[e],t()}},MC=function(e){return function(){LC(e)}},NU=function(e){LC(e.data)},TU=function(e){we.postMessage(G3e(e),gg.protocol+"//"+gg.host)};BC&&FC||(BC=function(e){var t=TH(arguments,1);return vg[++IC]=function(){RH(It(e)?e:K3e(e),void 0,t)},nd(IC),IC},FC=function(e){delete vg[e]},tu?nd=function(e){q3e.nextTick(MC(e))}:jC&&jC.now?nd=function(e){jC.now(MC(e))}:kU&&!AU?(PC=(_U=new kU).port2,_U.port1.onmessage=NU,nd=dg(PC.postMessage,PC)):we.addEventListener&&It(we.postMessage)&&!we.importScripts&&gg&&gg.protocol!=="file:"&&!qt(TU)?(nd=TU,we.addEventListener("message",NU,!1)):nd="onreadystatechange"in tg("script")?function(e){rC.appendChild(tg("script")).onreadystatechange=function(){rC.removeChild(this),LC(e)}}:function(e){setTimeout(MC(e),0)});var mg,ql,yg,od,zC,VC,RC,PU,BU={set:BC,clear:FC},W3e=/ipad|iphone|ipod/i.test(Jf)&&we.Pebble!==void 0,Y3e=/web0s(?!.*chrome)/i.test(Jf),X3e=qx.f,$C=BU.set,FU=we.MutationObserver||we.WebKitMutationObserver,jU=we.document,IU=we.process,ib=we.Promise,LU=X3e(we,"queueMicrotask"),MU=LU&&LU.value;MU||(mg=function(){var e,t;for(tu&&(e=IU.domain)&&e.exit();ql;){t=ql.fn,ql=ql.next;try{t()}catch(r){throw ql?od():yg=void 0,r}}yg=void 0,e&&e.enter()},AU||tu||Y3e||!FU||!jU?!W3e&&ib&&ib.resolve?((RC=ib.resolve(void 0)).constructor=ib,PU=dg(RC.then,RC),od=function(){PU(mg)}):tu?od=function(){IU.nextTick(mg)}:($C=dg($C,we),od=function(){$C(mg)}):(zC=!0,VC=jU.createTextNode(""),new FU(mg).observe(VC,{characterData:!0}),od=function(){VC.data=zC=!zC}));var HC,zU,VU,RU,$U=MU||function(e){var t={fn:e,next:void 0};yg&&(yg.next=t),ql||(ql=t,od()),yg=t},J3e=function(e){var t,r;this.promise=new e(function(n,o){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=o}),this.resolve=Js(t),this.reject=Js(r)},UC={f:function(e){return new J3e(e)}},qC=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Z3e=typeof window=="object",HU=BU.set,Q3e=Sr("species"),xa="Promise",UU=ro.getterFor(xa),e8e=ro.set,t8e=ro.getterFor(xa),Kl=ob&&ob.prototype,zi=ob,bg=Kl,qU=we.TypeError,KC=we.document,GC=we.process,id=UC.f,r8e=id,n8e=!!(KC&&KC.createEvent&&we.dispatchEvent),KU=It(we.PromiseRejectionEvent),GU=!1,wg=Vy(xa,function(){var e=Iy(zi),t=e!==String(zi);if(!t&&Z0===66)return!0;if(Z0>=51&&/native code/.test(e))return!1;var r=new zi(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[Q3e]=n,!(GU=r.then(function(){})instanceof n)||!t&&Z3e&&!KU}),o8e=wg||!fU(function(e){zi.all(e).catch(function(){})}),WU=function(e){var t;return!(!Kt(e)||!It(t=e.then))&&t},WC=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;$U(function(){for(var n=e.value,o=e.state==1,i=0;r.length>i;){var a,s,u,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(e.rejection===2&&a8e(e),e.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),u=!0)),a===l.promise?d(qU("Promise-chain cycle")):(s=WU(a))?Ot(s,a,f,d):f(a)):d(n)}catch(h){p&&!u&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&i8e(e)})}},YU=function(e,t,r){var n,o;n8e?((n=KC.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),we.dispatchEvent(n)):n={promise:t,reason:r},!KU&&(o=we["on"+e])?o(n):e==="unhandledrejection"&&function(i,a){var s=we.console;s&&s.error&&(arguments.length==1?s.error(i):s.error(i,a))}("Unhandled promise rejection",r)},i8e=function(e){Ot(HU,we,function(){var t,r=e.facade,n=e.value;if(XU(e)&&(t=qC(function(){tu?GC.emit("unhandledRejection",n,r):YU("unhandledrejection",r,n)}),e.rejection=tu||XU(e)?2:1,t.error))throw t.value})},XU=function(e){return e.rejection!==1&&!e.parent},a8e=function(e){Ot(HU,we,function(){var t=e.facade;tu?GC.emit("rejectionHandled",t):YU("rejectionhandled",t,e.value)})},ad=function(e,t,r){return function(n){e(t,n,r)}},sd=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,WC(e,!0))},YC=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw qU("Promise can't be resolved itself");var n=WU(t);n?$U(function(){var o={done:!1};try{Ot(n,t,ad(YC,o,e),ad(sd,o,e))}catch(i){sd(o,i,e)}}):(e.value=t,e.state=1,WC(e,!1))}catch(o){sd({done:!1},o,e)}}};if(wg&&(bg=(zi=function(e){xC(this,bg),Js(e),Ot(HC,this);var t=UU(this);try{e(ad(YC,t),ad(sd,t))}catch(r){sd(t,r)}}).prototype,(HC=function(e){e8e(this,{type:xa,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Yy(bg,{then:function(e,t){var r=t8e(this),n=r.reactions,o=id($H(this,zi));return o.ok=!It(e)||e,o.fail=It(t)&&t,o.domain=tu?GC.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&WC(r,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),zU=function(){var e=new HC,t=UU(e);this.promise=e,this.resolve=ad(YC,t),this.reject=ad(sd,t)},UC.f=id=function(e){return e===zi||e===VU?new zU(e):r8e(e)},It(ob)&&Kl!==Object.prototype)){RU=Kl.then,GU||(Po(Kl,"then",function(e,t){var r=this;return new zi(function(n,o){Ot(RU,r,n,o)}).then(e,t)},{unsafe:!0}),Po(Kl,"catch",bg.catch,{unsafe:!0}));try{delete Kl.constructor}catch{}rd&&rd(Kl,bg)}Mi({global:!0,wrap:!0,forced:wg},{Promise:zi}),Wy(zi,xa,!1),function(e){var t=Vl("Promise"),r=Sa.f;Ii&&t&&!t[OU]&&r(t,OU,{configurable:!0,get:function(){return this}})}(),VU=Vl(xa),Mi({target:xa,stat:!0,forced:wg},{reject:function(e){var t=id(this);return Ot(t.reject,void 0,e),t.promise}}),Mi({target:xa,stat:!0,forced:wg},{resolve:function(e){return function(t,r){if(Gr(t),Kt(r)&&r.constructor===t)return r;var n=UC.f(t);return(0,n.resolve)(r),n.promise}(this,e)}}),Mi({target:xa,stat:!0,forced:o8e},{all:function(e){var t=this,r=id(t),n=r.resolve,o=r.reject,i=qC(function(){var a=Js(t.resolve),s=[],u=0,l=1;Zy(e,function(c){var f=u++,d=!1;l++,Ot(a,t,c).then(function(p){d||(d=!0,s[f]=p,--l||n(s))},o)}),--l||n(s)});return i.error&&o(i.value),r.promise},race:function(e){var t=this,r=id(t),n=r.reject,o=qC(function(){var i=Js(t.resolve);Zy(e,function(a){Ot(i,t,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var s8e=ng.PROPER,XC=RegExp.prototype,JU=XC.toString,u8e=nt(PH),l8e=qt(function(){return JU.call({source:"a",flags:"b"})!="/a/b"}),c8e=s8e&&JU.name!="toString";(l8e||c8e)&&Po(RegExp.prototype,"toString",function(){var e=Gr(this),t=Qs(e.source),r=e.flags;return"/"+t+"/"+Qs(r===void 0&&J0(XC,e)&&!("flags"in XC)?u8e(e):r)},{unsafe:!0});var f8e=ng.EXISTS,d8e=Sa.f,ZU=Function.prototype,p8e=nt(ZU.toString),QU=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,h8e=nt(QU.exec);Ii&&!f8e&&d8e(ZU,"name",{configurable:!0,get:function(){try{return h8e(QU,p8e(this))[1]}catch{return""}}});var eq=new WeakMap;function tq(e){return e.getMenuConfig("uploadImage")}function g8e(e,t){return pC(this,void 0,void 0,function(){return hC(this,function(r){return[2,new Promise(function(n){var o=new FileReader;o.readAsDataURL(t),o.onload=function(){var i=o.result;if(i){var a=i.toString(),s=a.indexOf("data:image")===0?"":a;gl(e,a,t.name,s),n("ok")}}})]})})}function v8e(e,t){return pC(this,void 0,void 0,function(){var r,n,o,i;return hC(this,function(a){switch(a.label){case 0:return r=function(s){var u=eq.get(s);if(u!=null)return u;var l=tq(s),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,h=l.onError;return u=hw(Ky(Ky({},l),{onProgress:function(g){s.showProgressBar(g),f&&f(g)},onSuccess:function(g,m){if(p)return p(m,function(q,H,k){return gl(s,q,H,k)}),void c(g,m);var y=m.errno,v=y===void 0?1:y,E=m.data,w=E===void 0?{}:E;if(v===0){if(Array.isArray(w))w.forEach(function(q){var H=q.url,k=H===void 0?"":H,M=q.alt,I=M===void 0?"":M,T=q.href;gl(s,k,I,T===void 0?"":T)});else{var S=w.url,C=S===void 0?"":S,x=w.alt,_=x===void 0?"":x,P=w.href;gl(s,C,_,P===void 0?"":P)}c(g,m)}else d(g,m)},onError:function(g,m,y){h(g,m,y)}})),eq.set(s,u),u}(e),n=t.name,o=t.type,i=t.size,r.addFile({name:n,type:o,size:i,data:t}),[4,r.upload()];case 1:return a.sent(),[2]}})})}function rq(e,t){var r,n;return pC(this,void 0,void 0,function(){var o,i,a,s,u,l,c,f,d;return hC(this,function(p){switch(p.label){case 0:if(t==null)return[2];o=Array.prototype.slice.call(t),i=tq(e),a=i.customUpload,s=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),u=u3e(o),p.label=2;case 2:return[4,u.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,s&&f<=s?[4,g8e(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,function(h,g,m){return gl(e,h,g,m)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,v8e(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),r={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(n=u.return)?[4,n.call(u)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(r)throw r.error;return[7];case 16:return[7];case 17:return[2]}})})}var m8e=nt([].join),y8e=jx!=Object,b8e=CU("join",",");Mi({target:"Array",proto:!0,forced:y8e||!b8e},{join:function(e){return m8e(Xs(this),e===void 0?",":e)}}),vo&&($.fn.append=vo),wi&&($.fn.on=wi),Lc&&($.fn.remove=Lc),bi&&($.fn.val=bi),GN&&($.fn.click=GN),Bc&&($.fn.hide=Bc);var w8e=function(){function e(){this.title=ye("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return Hm(t)},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},e.prototype.exec=function(t,r){var n=this.getMenuConfig(t),o=n.allowedFileTypes,i=o===void 0?[]:o,a=n.customBrowseAndUpload;if(a)a(function(c,f,d){return gl(t,c,f,d)});else{var s="";i.length>0&&(s='accept="'+i.join(", ")+'"');var u=$("body"),l=$('<input type="file" '+s+" multiple/>");l.hide(),u.append(l),l.click(),l.on("change",function(){var c=l[0].files;rq(t,c)})}},e}(),E8e={menus:[{key:"uploadImage",factory:function(){return new w8e},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,r){console.error("'"+e.name+"' upload error",r)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,r=e;return r.insertData=function(n){if(Hm(r))t(n);else if(n.getData("text/plain"))t(n);else{var o=n.files;o.length<=0?t(n):Array.prototype.slice.call(o).some(function(i){return function(a,s){var u=typeof Symbol=="function"&&a[Symbol.iterator];if(!u)return a;var l,c,f=u.call(a),d=[];try{for(;(s===void 0||s-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(p){c={error:p}}finally{try{l&&!l.done&&(u=f.return)&&u.call(f)}finally{if(c)throw c.error}}return d}(i.type.split("/"),1)[0]==="image"})?rq(e,o):t(n)}},r}};yn("en",{highLightModule:{selectLang:"Language"}}),yn("zh-CN",{highLightModule:{selectLang:"选择语言"}});var ab=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function JC(e){var t={exports:{}};return e(t,t.exports),t.exports}var ru,sb,ub=function(e){return e&&e.Math==Math&&e},it=ub(typeof globalThis=="object"&&globalThis)||ub(typeof window=="object"&&window)||ub(typeof self=="object"&&self)||ub(typeof ab=="object"&&ab)||function(){return this}()||Function("return this")(),S8e=Object.defineProperty,ZC=function(e,t){try{S8e(it,e,{value:t,configurable:!0,writable:!0})}catch{it[e]=t}return t},nu=it["__core-js_shared__"]||ZC("__core-js_shared__",{}),QC=JC(function(e){(e.exports=function(t,r){return nu[t]||(nu[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),nq=Function.prototype,eD=nq.bind,tD=nq.call,x8e=eD&&eD.bind(tD),_t=eD?function(e){return e&&x8e(tD,e)}:function(e){return e&&function(){return tD.apply(e,arguments)}},C8e=it.TypeError,ud=function(e){if(e==null)throw C8e("Can't call method on "+e);return e},D8e=it.Object,rD=function(e){return D8e(ud(e))},_8e=_t({}.hasOwnProperty),Bo=Object.hasOwn||function(e,t){return _8e(rD(e),t)},O8e=0,A8e=Math.random(),k8e=_t(1 .toString),oq=function(e){return"Symbol("+(e===void 0?"":e)+")_"+k8e(++O8e+A8e,36)},bn=function(e){return typeof e=="function"},N8e=function(e){return bn(e)?e:void 0},Eg=function(e,t){return arguments.length<2?N8e(it[e]):it[e]&&it[e][t]},nD=Eg("navigator","userAgent")||"",iq=it.process,aq=it.Deno,sq=iq&&iq.versions||aq&&aq.version,uq=sq&&sq.v8;uq&&(sb=(ru=uq.split("."))[0]>0&&ru[0]<4?1:+(ru[0]+ru[1])),!sb&&nD&&(!(ru=nD.match(/Edge\/(\d+)/))||ru[1]>=74)&&(ru=nD.match(/Chrome\/(\d+)/))&&(sb=+ru[1]);var lq=sb,Wr=function(e){try{return!!e()}catch{return!0}},oD=!!Object.getOwnPropertySymbols&&!Wr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&lq&&lq<41}),iD=oD&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Sg=QC("wks"),Gl=it.Symbol,cq=Gl&&Gl.for,T8e=iD?Gl:Gl&&Gl.withoutSetter||oq,ou=function(e){if(!Bo(Sg,e)||!oD&&typeof Sg[e]!="string"){var t="Symbol."+e;oD&&Bo(Gl,e)?Sg[e]=Gl[e]:Sg[e]=iD&&cq?cq(t):T8e(t)}return Sg[e]},fq={};fq[ou("toStringTag")]="z";var aD=String(fq)==="[object z]",Vi=!Wr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ri=function(e){return typeof e=="object"?e!==null:bn(e)},sD=it.document,P8e=Ri(sD)&&Ri(sD.createElement),uD=function(e){return P8e?sD.createElement(e):{}},dq=!Vi&&!Wr(function(){return Object.defineProperty(uD("div"),"a",{get:function(){return 7}}).a!=7}),B8e=it.String,F8e=it.TypeError,ii=function(e){if(Ri(e))return e;throw F8e(B8e(e)+" is not an object")},xg=Function.prototype.call,Yr=xg.bind?xg.bind(xg):function(){return xg.apply(xg,arguments)},pq=_t({}.isPrototypeOf),j8e=it.Object,lD=iD?function(e){return typeof e=="symbol"}:function(e){var t=Eg("Symbol");return bn(t)&&pq(t.prototype,j8e(e))},I8e=it.String,hq=function(e){try{return I8e(e)}catch{return"Object"}},L8e=it.TypeError,gq=function(e){if(bn(e))return e;throw L8e(hq(e)+" is not a function")},vq=function(e,t){var r=e[t];return r==null?void 0:gq(r)},M8e=it.TypeError,z8e=it.TypeError,V8e=ou("toPrimitive"),cD=function(e){var t=function(r,n){if(!Ri(r)||lD(r))return r;var o,i=vq(r,V8e);if(i){if(o=Yr(i,r,n),!Ri(o)||lD(o))return o;throw z8e("Can't convert object to primitive value")}return function(a,s){var u,l;if(bn(u=a.toString)&&!Ri(l=Yr(u,a))||bn(u=a.valueOf)&&!Ri(l=Yr(u,a)))return l;throw M8e("Can't convert object to primitive value")}(r)}(e,"string");return lD(t)?t:t+""},R8e=it.TypeError,mq=Object.defineProperty,lb={f:Vi?mq:function(e,t,r){if(ii(e),t=cD(t),ii(r),dq)try{return mq(e,t,r)}catch{}if("get"in r||"set"in r)throw R8e("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},fD=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ld=Vi?function(e,t,r){return lb.f(e,t,fD(1,r))}:function(e,t,r){return e[t]=r,e},$8e=_t(Function.toString);bn(nu.inspectSource)||(nu.inspectSource=function(e){return $8e(e)});var cb,Cg,fb,dD=nu.inspectSource,yq=it.WeakMap,H8e=bn(yq)&&/native code/.test(dD(yq)),bq=QC("keys"),wq=function(e){return bq[e]||(bq[e]=oq(e))},pD={},hD=it.TypeError,U8e=it.WeakMap;if(H8e||nu.state){var Wl=nu.state||(nu.state=new U8e),q8e=_t(Wl.get),Eq=_t(Wl.has),K8e=_t(Wl.set);cb=function(e,t){if(Eq(Wl,e))throw new hD("Object already initialized");return t.facade=e,K8e(Wl,e,t),t},Cg=function(e){return q8e(Wl,e)||{}},fb=function(e){return Eq(Wl,e)}}else{var cd=wq("state");pD[cd]=!0,cb=function(e,t){if(Bo(e,cd))throw new hD("Object already initialized");return t.facade=e,ld(e,cd,t),t},Cg=function(e){return Bo(e,cd)?e[cd]:{}},fb=function(e){return Bo(e,cd)}}var gD={set:cb,get:Cg,has:fb,enforce:function(e){return fb(e)?Cg(e):cb(e,{})},getterFor:function(e){return function(t){var r;if(!Ri(t)||(r=Cg(t)).type!==e)throw hD("Incompatible receiver, "+e+" required");return r}}},Sq=Function.prototype,G8e=Vi&&Object.getOwnPropertyDescriptor,vD=Bo(Sq,"name"),xq={EXISTS:vD,PROPER:vD&&(function(){}).name==="something",CONFIGURABLE:vD&&(!Vi||Vi&&G8e(Sq,"name").configurable)},Dg=JC(function(e){var t=xq.CONFIGURABLE,r=gD.get,n=gD.enforce,o=String(String).split("String");(e.exports=function(i,a,s,u){var l,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet,p=u&&u.name!==void 0?u.name:a;bn(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Bo(s,"name")||t&&s.name!==p)&&ld(s,"name",p),(l=n(s)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==it?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=s:ld(i,a,s)):f?i[a]=s:ZC(a,s)})(Function.prototype,"toString",function(){return bn(this)&&r(this).source||dD(this)})}),W8e=_t({}.toString),Y8e=_t("".slice),iu=function(e){return Y8e(W8e(e),8,-1)},X8e=ou("toStringTag"),J8e=it.Object,Z8e=iu(function(){return arguments}())=="Arguments",mD=aD?iu:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(t=J8e(e),X8e))=="string"?r:Z8e?iu(t):(n=iu(t))=="Object"&&bn(t.callee)?"Arguments":n},Q8e=aD?{}.toString:function(){return"[object "+mD(this)+"]"};aD||Dg(Object.prototype,"toString",Q8e,{unsafe:!0});var Cq,Dq={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},yD=uD("span").classList,_q=yD&&yD.constructor&&yD.constructor.prototype,e5e=_q===Object.prototype?void 0:_q,Oq=_t(_t.bind),bD=it.Object,t5e=_t("".split),wD=Wr(function(){return!bD("z").propertyIsEnumerable(0)})?function(e){return iu(e)=="String"?t5e(e,""):bD(e)}:bD,r5e=Math.ceil,n5e=Math.floor,ED=function(e){var t=+e;return t!=t||t===0?0:(t>0?n5e:r5e)(t)},o5e=Math.min,Aq=function(e){return e>0?o5e(ED(e),9007199254740991):0},SD=function(e){return Aq(e.length)},kq=Array.isArray||function(e){return iu(e)=="Array"},Nq=function(){},i5e=[],Tq=Eg("Reflect","construct"),xD=/^\s*(?:class|function)\b/,a5e=_t(xD.exec),s5e=!xD.exec(Nq),_g=function(e){if(!bn(e))return!1;try{return Tq(Nq,i5e,e),!0}catch{return!1}},Pq=!Tq||Wr(function(){var e;return _g(_g.call)||!_g(Object)||!_g(function(){e=!0})||e})?function(e){if(!bn(e))return!1;switch(mD(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return s5e||!!a5e(xD,dD(e))}:_g,u5e=ou("species"),Bq=it.Array,l5e=function(e,t){return new(function(r){var n;return kq(r)&&(n=r.constructor,(Pq(n)&&(n===Bq||kq(n.prototype))||Ri(n)&&(n=n[u5e])===null)&&(n=void 0)),n===void 0?Bq:n}(e))(t===0?0:t)},Fq=_t([].push),au=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,h=rD(u),g=wD(h),m=function(S,C){return gq(S),C===void 0?S:Oq?Oq(S,C):function(){return S.apply(C,arguments)}}(l,c),y=SD(g),v=0,E=f||l5e,w=t?E(u,y):r||a?E(u,0):void 0;y>v;v++)if((s||v in g)&&(p=m(d=g[v],v,h),e))if(t)w[v]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:Fq(w,d)}else switch(e){case 4:return!1;case 7:Fq(w,d)}return i?-1:n||o?o:w}},c5e=[au(0),au(1),au(2),au(3),au(4),au(5),au(6),au(7)][0],CD=(Cq=[].forEach)&&Wr(function(){Cq.call(null,function(){throw 1},1)})?[].forEach:function(e){return c5e(this,e,arguments.length>1?arguments[1]:void 0)},jq=function(e){if(e&&e.forEach!==CD)try{ld(e,"forEach",CD)}catch{e.forEach=CD}};for(var DD in Dq)Dq[DD]&&jq(it[DD]&&it[DD].prototype);jq(e5e);var Iq={}.propertyIsEnumerable,Lq=Object.getOwnPropertyDescriptor,Mq={f:Lq&&!Iq.call({1:2},1)?function(e){var t=Lq(this,e);return!!t&&t.enumerable}:Iq},db=function(e){return wD(ud(e))},zq=Object.getOwnPropertyDescriptor,Vq={f:Vi?zq:function(e,t){if(e=db(e),t=cD(t),dq)try{return zq(e,t)}catch{}if(Bo(e,t))return fD(!Yr(Mq.f,e,t),e[t])}},f5e=Math.max,d5e=Math.min,_D=function(e,t){var r=ED(e);return r<0?f5e(r+t,0):d5e(r,t)},p5e=function(e){return function(t,r,n){var o,i=db(t),a=SD(i),s=_D(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},h5e=p5e(!1),Rq=_t([].push),$q=function(e,t){var r,n=db(e),o=0,i=[];for(r in n)!Bo(pD,r)&&Bo(n,r)&&Rq(i,r);for(;t.length>o;)Bo(n,r=t[o++])&&(~h5e(i,r)||Rq(i,r));return i},pb=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],g5e=pb.concat("length","prototype"),v5e={f:Object.getOwnPropertyNames||function(e){return $q(e,g5e)}},Hq={f:Object.getOwnPropertySymbols},m5e=_t([].concat),y5e=Eg("Reflect","ownKeys")||function(e){var t=v5e.f(ii(e)),r=Hq.f;return r?m5e(t,r(e)):t},b5e=function(e,t){for(var r=y5e(t),n=lb.f,o=Vq.f,i=0;i<r.length;i++){var a=r[i];Bo(e,a)||n(e,a,o(t,a))}},w5e=/#|\.prototype\./,Og=function(e,t){var r=S5e[E5e(e)];return r==C5e||r!=x5e&&(bn(t)?Wr(t):!!t)},E5e=Og.normalize=function(e){return String(e).replace(w5e,".").toLowerCase()},S5e=Og.data={},x5e=Og.NATIVE="N",C5e=Og.POLYFILL="P",D5e=Og,_5e=Vq.f,hb=function(e,t){var r,n,o,i,a,s=e.target,u=e.global,l=e.stat;if(r=u?it:l?it[s]||ZC(s,{}):(it[s]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=_5e(r,n))&&a.value:r[n],!D5e(u?n:s+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;b5e(i,o)}(e.sham||o&&o.sham)&&ld(i,"sham",!0),Dg(r,n,i,e)}},gb=Object.keys||function(e){return $q(e,pb)},fd=Object.assign,Uq=Object.defineProperty,O5e=_t([].concat),qq=!fd||Wr(function(){if(Vi&&fd({b:1},fd(Uq({},"a",{enumerable:!0,get:function(){Uq(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(o){t[o]=o}),fd({},e)[r]!=7||gb(fd({},t)).join("")!=n})?function(e,t){for(var r=rD(e),n=arguments.length,o=1,i=Hq.f,a=Mq.f;n>o;)for(var s,u=wD(arguments[o++]),l=i?O5e(gb(u),i(u)):gb(u),c=l.length,f=0;c>f;)s=l[f++],Vi&&!Yr(a,u,s)||(r[s]=u[s]);return r}:fd;hb({target:"Object",stat:!0,forced:Object.assign!==qq},{assign:qq});var Kq=JC(function(e){var t=function(r){var n=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function m(y){return y instanceof s?new s(y.type,m(y.content),y.alias):Array.isArray(y)?y.map(m):y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(m){return Object.prototype.toString.call(m).slice(8,-1)},objId:function(m){return m.__id||Object.defineProperty(m,"__id",{value:++o}),m.__id},clone:function m(y,v){var E,w;switch(v=v||{},a.util.type(y)){case"Object":if(w=a.util.objId(y),v[w])return v[w];for(var S in E={},v[w]=E,y)y.hasOwnProperty(S)&&(E[S]=m(y[S],v));return E;case"Array":return w=a.util.objId(y),v[w]?v[w]:(E=[],v[w]=E,y.forEach(function(C,x){E[x]=m(C,v)}),E);default:return y}},getLanguage:function(m){for(;m&&!n.test(m.className);)m=m.parentElement;return m?(m.className.match(n)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(E){var m=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(m){var y=document.getElementsByTagName("script");for(var v in y)if(y[v].src==m)return y[v]}return null}},isActive:function(m,y,v){for(var E="no-"+y;m;){var w=m.classList;if(w.contains(y))return!0;if(w.contains(E))return!1;m=m.parentElement}return!!v}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(m,y){var v=a.util.clone(a.languages[m]);for(var E in y)v[E]=y[E];return v},insertBefore:function(m,y,v,E){var w=(E=E||a.languages)[m],S={};for(var C in w)if(w.hasOwnProperty(C)){if(C==y)for(var x in v)v.hasOwnProperty(x)&&(S[x]=v[x]);v.hasOwnProperty(C)||(S[C]=w[C])}var _=E[m];return E[m]=S,a.languages.DFS(a.languages,function(P,q){q===_&&P!=m&&(this[P]=S)}),S},DFS:function m(y,v,E,w){w=w||{};var S=a.util.objId;for(var C in y)if(y.hasOwnProperty(C)){v.call(y,C,y[C],E||C);var x=y[C],_=a.util.type(x);_!=="Object"||w[S(x)]?_!=="Array"||w[S(x)]||(w[S(x)]=!0,m(x,v,C,w)):(w[S(x)]=!0,m(x,v,null,w))}}},plugins:{},highlightAll:function(m,y){a.highlightAllUnder(document,m,y)},highlightAllUnder:function(m,y,v){var E={callback:v,container:m,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",E),E.elements=Array.prototype.slice.apply(E.container.querySelectorAll(E.selector)),a.hooks.run("before-all-elements-highlight",E);for(var w,S=0;w=E.elements[S++];)a.highlightElement(w,y===!0,E.callback)},highlightElement:function(m,y,v){var E=a.util.getLanguage(m),w=a.languages[E];m.className=m.className.replace(n,"").replace(/\s+/g," ")+" language-"+E;var S=m.parentElement;S&&S.nodeName.toLowerCase()==="pre"&&(S.className=S.className.replace(n,"").replace(/\s+/g," ")+" language-"+E);var C={element:m,language:E,grammar:w,code:m.textContent};function x(P){C.highlightedCode=P,a.hooks.run("before-insert",C),C.element.innerHTML=C.highlightedCode,a.hooks.run("after-highlight",C),a.hooks.run("complete",C),v&&v.call(C.element)}if(a.hooks.run("before-sanity-check",C),(S=C.element.parentElement)&&S.nodeName.toLowerCase()==="pre"&&!S.hasAttribute("tabindex")&&S.setAttribute("tabindex","0"),!C.code)return a.hooks.run("complete",C),void(v&&v.call(C.element));if(a.hooks.run("before-highlight",C),C.grammar)if(y&&r.Worker){var _=new Worker(a.filename);_.onmessage=function(P){x(P.data)},_.postMessage(JSON.stringify({language:C.language,code:C.code,immediateClose:!0}))}else x(a.highlight(C.code,C.grammar,C.language));else x(a.util.encode(C.code))},highlight:function(m,y,v){var E={code:m,grammar:y,language:v};return a.hooks.run("before-tokenize",E),E.tokens=a.tokenize(E.code,E.grammar),a.hooks.run("after-tokenize",E),s.stringify(a.util.encode(E.tokens),E.language)},tokenize:function(m,y){var v=y.rest;if(v){for(var E in v)y[E]=v[E];delete y.rest}var w=new c;return f(w,w.head,m),l(m,w,y,w.head,0),function(S){for(var C=[],x=S.head.next;x!==S.tail;)C.push(x.value),x=x.next;return C}(w)},hooks:{all:{},add:function(m,y){var v=a.hooks.all;v[m]=v[m]||[],v[m].push(y)},run:function(m,y){var v=a.hooks.all[m];if(v&&v.length)for(var E,w=0;E=v[w++];)E(y)}},Token:s};function s(m,y,v,E){this.type=m,this.content=y,this.alias=v,this.length=0|(E||"").length}function u(m,y,v,E){m.lastIndex=y;var w=m.exec(v);if(w&&E&&w[1]){var S=w[1].length;w.index+=S,w[0]=w[0].slice(S)}return w}function l(m,y,v,E,w,S){for(var C in v)if(v.hasOwnProperty(C)&&v[C]){var x=v[C];x=Array.isArray(x)?x:[x];for(var _=0;_<x.length;++_){if(S&&S.cause==C+","+_)return;var P=x[_],q=P.inside,H=!!P.lookbehind,k=!!P.greedy,M=P.alias;if(k&&!P.pattern.global){var I=P.pattern.toString().match(/[imsuy]*$/)[0];P.pattern=RegExp(P.pattern.source,I+"g")}for(var T=P.pattern||P,F=E.next,U=w;F!==y.tail&&!(S&&U>=S.reach);U+=F.value.length,F=F.next){var R=F.value;if(y.length>m.length)return;if(!(R instanceof s)){var Z,re=1;if(k){if(!(Z=u(T,U,m,H)))break;var O=Z.index,A=Z.index+Z[0].length,V=U;for(V+=F.value.length;O>=V;)V+=(F=F.next).value.length;if(U=V-=F.value.length,F.value instanceof s)continue;for(var B=F;B!==y.tail&&(V<A||typeof B.value=="string");B=B.next)re++,V+=B.value.length;re--,R=m.slice(U,V),Z.index-=U}else if(!(Z=u(T,0,R,H)))continue;O=Z.index;var L=Z[0],j=R.slice(0,O),W=R.slice(O+L.length),X=U+R.length;S&&X>S.reach&&(S.reach=X);var ae=F.prev;if(j&&(ae=f(y,ae,j),U+=j.length),d(y,ae,re),F=f(y,ae,new s(C,q?a.tokenize(L,q):L,M,L)),W&&f(y,F,W),re>1){var ce={cause:C+","+_,reach:X};l(m,y,v,F.prev,U,ce),S&&ce.reach>S.reach&&(S.reach=ce.reach)}}}}}}function c(){var m={value:null,prev:null,next:null},y={value:null,prev:m,next:null};m.next=y,this.head=m,this.tail=y,this.length=0}function f(m,y,v){var E=y.next,w={value:v,prev:y,next:E};return y.next=w,E.prev=w,m.length++,w}function d(m,y,v){for(var E=y.next,w=0;w<v&&E!==m.tail;w++)E=E.next;y.next=E,E.prev=y,m.length-=w}if(r.Prism=a,s.stringify=function m(y,v){if(typeof y=="string")return y;if(Array.isArray(y)){var E="";return y.forEach(function(_){E+=m(_,v)}),E}var w={type:y.type,content:m(y.content,v),tag:"span",classes:["token",y.type],attributes:{},language:v},S=y.alias;S&&(Array.isArray(S)?Array.prototype.push.apply(w.classes,S):w.classes.push(S)),a.hooks.run("wrap",w);var C="";for(var x in w.attributes)C+=" "+x+'="'+(w.attributes[x]||"").replace(/"/g,"&quot;")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+C+">"+w.content+"</"+w.tag+">"},!r.document)return r.addEventListener&&(a.disableWorkerMessageHandler||r.addEventListener("message",function(m){var y=JSON.parse(m.data),v=y.language,E=y.code,w=y.immediateClose;r.postMessage(a.highlight(E,a.languages[v],v)),w&&r.close()},!1)),a;var p=a.util.currentScript();function h(){a.manual||a.highlightAll()}if(p&&(a.filename=p.src,p.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var g=document.readyState;g==="loading"||g==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",h):window.requestAnimationFrame?window.requestAnimationFrame(h):window.setTimeout(h,16)}return a}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
192
+ * Prism: Lightweight, robust, elegant syntax highlighting
193
+ *
194
+ * @license MIT <https://opensource.org/licenses/MIT>
195
+ * @author Lea Verou <https://lea.verou.me>
196
+ * @namespace
197
+ * @public
198
+ */e.exports&&(e.exports=t),ab!==void 0&&(ab.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(r,n){var o={};o["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var a={};a[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(r,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(r){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(t!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",function(u){u.selector+=", "+o}),t.hooks.add("before-sanity-check",function(u){var l=u.element;if(l.matches(o)){u.code="",l.setAttribute(n,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loading…";var f=l.getAttribute("data-src"),d=u.language;if(d==="none"){var p=(/\.(\w+)$/.exec(f)||[,"none"])[1];d=r[p]||p}s(c,d),s(l,d);var h=t.plugins.autoloader;h&&h.loadLanguages(d);var g=new XMLHttpRequest;g.open("GET",f,!0),g.onreadystatechange=function(){g.readyState==4&&(g.status<400&&g.responseText?(l.setAttribute(n,"loaded"),c.textContent=g.responseText,t.highlightElement(c)):(l.setAttribute(n,"failed"),g.status>=400?c.textContent="✖ Error "+g.status+" while fetching file: "+g.statusText:c.textContent="✖ Error: File does not exist or is empty"))},g.send(null)}}),t.plugins.fileHighlight={highlight:function(u){for(var l,c=(u||document).querySelectorAll(o),f=0;l=c[f++];)t.highlightElement(l)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function s(u,l){var c=u.className;c=c.replace(i," ")+" language-"+l,u.className=c.replace(/\s+/g," ").trim()}}()});(function(e){var t=e.util.clone(e.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(u,l){return u=u.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return n}).replace(/<SPREAD>/g,function(){return o}),RegExp(u,l)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(a).join(""):""},s=function(u){for(var l=[],c=0;c<u.length;c++){var f=u[c],d=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:d=!0),(d||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var p=a(f);c<u.length-1&&(typeof u[c+1]=="string"||u[c+1].type==="plain-text")&&(p+=a(u[c+1]),u.splice(c+1,1)),c>0&&(typeof u[c-1]=="string"||u[c-1].type==="plain-text")&&(p=a(u[c-1])+p,u.splice(c-1,1),c--),u[c]=new e.Token("plain-text",p,null,p)}f.content&&typeof f.content!="string"&&s(f.content)}};e.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||s(u.tokens)})})(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};n["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],n=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:n,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(u){/<\?/.test(u.code)&&e.languages["markup-templating"].buildPlaceholders(u,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),e.hooks.add("after-tokenize",function(u){e.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[n,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:n.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":n,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(A,V){return A.replace(/<<(\d+)>>/g,function(B,L){return"(?:"+V[+L]+")"})}function r(A,V,B){return RegExp(t(A,V),"")}function n(A,V){for(var B=0;B<V;B++)A=A.replace(/<<self>>/g,function(){return"(?:"+A+")"});return A.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function u(A){return"\\b(?:"+A.trim().replace(/ /g,"|")+")\\b"}var l=u(i),c=RegExp(u(o+" "+i+" "+a+" "+s)),f=u(i+" "+a+" "+s),d=u(o+" "+i+" "+s),p=n(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=n(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,m=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,m]),v=/\[\s*(?:,\s*)*\]/.source,E=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,v]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,v]),S=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),C=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[S,y,v]),x={keyword:c,punctuation:/[<>()?,.:[\]]/},_=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,P=/"(?:\\.|[^\\"\r\n])*"/.source,q=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[q]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[P]),lookbehind:!0,greedy:!0},{pattern:RegExp(_),greedy:!0,alias:"character"}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:x},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,C]),lookbehind:!0,inside:x},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[l,m]),lookbehind:!0,inside:x},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:x},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[E]),lookbehind:!0,inside:x},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,d,g]),inside:x}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:x},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,y]),inside:x,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:x,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:x}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,m,g,C,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(C),greedy:!0,inside:x},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var H=P+"|"+_,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[H]),M=n(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),I=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,T=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,M]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[I,T]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[I]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[M]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var F=/:[^}\r\n]+/.source,U=n(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),R=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[U,F]),Z=n(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[H]),2),re=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Z,F]);function O(A,V){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[A]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[V,F]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[R]),lookbehind:!0,greedy:!0,inside:O(R,U)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[re]),lookbehind:!0,greedy:!0,inside:O(re,Z)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=n.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(l){return l=l.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return n}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(n),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(e.languages.markdown[l].inside.content.inside[c]=e.languages.markdown[c])})}),e.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||function c(f){if(f&&typeof f!="string")for(var d=0,p=f.length;d<p;d++){var h=f[d];if(h.type==="code"){var g=h.content[1],m=h.content[3];if(g&&m&&g.type==="code-language"&&m.type==="code-block"&&typeof g.content=="string"){var y=g.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),v="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());m.alias?typeof m.alias=="string"?m.alias=[m.alias,v]:m.alias.push(v):m.alias=[v]}}else c(h.content)}}(l.tokens)}),e.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,d=l.classes.length;f<d;f++){var p=l.classes[f],h=/language-(.+)/.exec(p);if(h){c=h[1];break}}var g=e.languages[c];if(g)l.content=e.highlight(function(y){var v=y.replace(a,"");return v.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(E,w){var S;return(w=w.toLowerCase())[0]==="#"?(S=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),u(S)):s[w]||E})}(l.content),g,c);else if(c&&c!=="none"&&e.plugins.autoloader){var m="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=m,e.plugins.autoloader.loadLanguages(c,function(){var y=document.getElementById(m);y&&(y.innerHTML=e.highlight(y.textContent,e.languages[c],c))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(e){if(e.language==="groovy"&&e.type==="string"){var t=e.content[0];if(t!="'"){var r=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;t==="$"&&(r=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:r,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t==="/"?"regex":"gstring")}}});var A5e=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function Gq(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce(function(t,r){return t+Gq(r)},0)}var vb,k5e=it.String,Ca=function(e){if(mD(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return k5e(e)},Wq=function(){var e=ii(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},OD=it.RegExp,AD=Wr(function(){var e=OD("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),N5e=AD||Wr(function(){return!OD("a","y").sticky}),Yq={BROKEN_CARET:AD||Wr(function(){var e=OD("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:N5e,UNSUPPORTED_Y:AD},T5e=Vi?Object.defineProperties:function(e,t){ii(e);for(var r,n=db(t),o=gb(t),i=o.length,a=0;i>a;)lb.f(e,r=o[a++],n[r]);return e},P5e=Eg("document","documentElement"),Xq=wq("IE_PROTO"),kD=function(){},Jq=function(e){return"<script>"+e+"<\/script>"},Zq=function(e){e.write(Jq("")),e.close();var t=e.parentWindow.Object;return e=null,t},mb=function(){try{vb=new ActiveXObject("htmlfile")}catch{}var e,t;mb=typeof document<"u"?document.domain&&vb?Zq(vb):((t=uD("iframe")).style.display="none",P5e.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Jq("document.F=Object")),e.close(),e.F):Zq(vb);for(var r=pb.length;r--;)delete mb.prototype[pb[r]];return mb()};pD[Xq]=!0;var Qq,ND,B5e=Object.create||function(e,t){var r;return e!==null?(kD.prototype=ii(e),r=new kD,kD.prototype=null,r[Xq]=e):r=mb(),t===void 0?r:T5e(r,t)},F5e=it.RegExp,j5e=Wr(function(){var e=F5e(".","s");return!(e.dotAll&&e.exec(`
199
+ `)&&e.flags==="s")}),I5e=it.RegExp,L5e=Wr(function(){var e=I5e("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),M5e=gD.get,z5e=QC("native-string-replace",String.prototype.replace),yb=RegExp.prototype.exec,TD=yb,V5e=_t("".charAt),R5e=_t("".indexOf),$5e=_t("".replace),PD=_t("".slice),BD=(ND=/b*/g,Yr(yb,Qq=/a/,"a"),Yr(yb,ND,"a"),Qq.lastIndex!==0||ND.lastIndex!==0),eK=Yq.BROKEN_CARET,FD=/()??/.exec("")[1]!==void 0;(BD||FD||eK||j5e||L5e)&&(TD=function(e){var t,r,n,o,i,a,s,u=this,l=M5e(u),c=Ca(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=Yr(TD,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=eK&&u.sticky,h=Yr(Wq,u),g=u.source,m=0,y=c;if(p&&(h=$5e(h,"y",""),R5e(h,"g")===-1&&(h+="g"),y=PD(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&V5e(c,u.lastIndex-1)!==`
200
+ `)&&(g="(?: "+g+")",y=" "+y,m++),r=new RegExp("^(?:"+g+")",h)),FD&&(r=new RegExp("^"+g+"$(?!\\s)",h)),BD&&(n=u.lastIndex),o=Yr(yb,p?r:u,y),p?o?(o.input=PD(o.input,m),o[0]=PD(o[0],m),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:BD&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),FD&&o&&o.length>1&&Yr(z5e,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=B5e(null),i=0;i<d.length;i++)a[(s=d[i])[0]]=o[s[1]];return o});var Ag=TD;hb({target:"RegExp",proto:!0,forced:/./.exec!==Ag},{exec:Ag});var jD=Function.prototype,tK=jD.apply,H5e=jD.bind,rK=jD.call,U5e=typeof Reflect=="object"&&Reflect.apply||(H5e?rK.bind(tK):function(){return rK.apply(tK,arguments)}),q5e=ou("species"),ID=RegExp.prototype,K5e=ou("match"),G5e=it.TypeError,W5e=ou("species"),Y5e=_t("".charAt),nK=_t("".charCodeAt),X5e=_t("".slice),J5e=function(e){return function(t,r){var n,o,i=Ca(ud(t)),a=ED(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=nK(i,a))<55296||n>56319||a+1===s||(o=nK(i,a+1))<56320||o>57343?e?Y5e(i,a):n:e?X5e(i,a,a+2):o-56320+(n-55296<<10)+65536}},Z5e=J5e(!0),Q5e=function(e,t,r){return t+(r?Z5e(e,t).length:1)},ewe=it.Array,twe=Math.max,oK=function(e,t,r){for(var n,o,i,a,s=SD(e),u=_D(t,s),l=_D(r===void 0?s:r,s),c=ewe(twe(l-u,0)),f=0;u<l;u++,f++)n=c,o=f,i=e[u],(a=cD(o))in n?lb.f(n,a,fD(0,i)):n[a]=i;return c.length=f,c},rwe=it.TypeError,iK=function(e,t){var r=e.exec;if(bn(r)){var n=Yr(r,e,t);return n!==null&&ii(n),n}if(iu(e)==="RegExp")return Yr(Ag,e,t);throw rwe("RegExp#exec called on incompatible receiver")},dd=Yq.UNSUPPORTED_Y,nwe=Math.min,aK=[].push,owe=_t(/./.exec),pd=_t(aK),kg=_t("".slice);(function(e,t,r,n){var o=ou(e),i=!Wr(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!Wr(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[q5e]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var s=_t(/./[o]),u=function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,h){var g,m,y=Ca(ud(this)),v=h===void 0?4294967295:h>>>0;if(v===0)return[];if(p===void 0)return[y];if(!Ri(g=p)||!((m=g[K5e])!==void 0?m:iu(g)=="RegExp"))return Yr(c,y,p,v);for(var E,w,S,C=[],x=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),_=0,P=new RegExp(p.source,x+"g");(E=Yr(Ag,P,y))&&!((w=P.lastIndex)>_&&(pd(C,kg(y,_,E.index)),E.length>1&&E.index<y.length&&U5e(aK,C,oK(E,1)),S=E[0].length,_=w,C.length>=v));)P.lastIndex===E.index&&P.lastIndex++;return _===y.length?!S&&owe(P,"")||pd(C,""):pd(C,kg(y,_)),C.length>v?oK(C,0,v):C}:"0".split(void 0,0).length?function(p,h){return p===void 0&&h===0?[]:Yr(c,this,p,h)}:c,[function(p,h){var g=ud(this),m=p==null?void 0:vq(p,l);return m?Yr(m,p,g,h):Yr(d,Ca(g),p,h)},function(p,h){var g=ii(this),m=Ca(p),y=f(d,g,m,h,d!==c);if(y.done)return y.value;var v=function(M,I){var T,F=ii(M).constructor;return F===void 0||(T=ii(F)[W5e])==null?I:function(U){if(Pq(U))return U;throw G5e(hq(U)+" is not a constructor")}(T)}(g,RegExp),E=g.unicode,w=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(dd?"g":"y"),S=new v(dd?"^(?:"+g.source+")":g,w),C=h===void 0?4294967295:h>>>0;if(C===0)return[];if(m.length===0)return iK(S,m)===null?[m]:[];for(var x=0,_=0,P=[];_<m.length;){S.lastIndex=dd?0:_;var q,H=iK(S,dd?kg(m,_):m);if(H===null||(q=nwe(Aq(S.lastIndex+(dd?_:0)),m.length))===x)_=Q5e(m,_,E);else{if(pd(P,kg(m,x,_)),P.length===C)return P;for(var k=1;k<=H.length-1;k++)if(pd(P,H[k]),P.length===C)return P;_=x=q}}return pd(P,kg(m,x)),P}]}(o,""[e],function(l,c,f,d,p){var h=_t(l),g=c.exec;return g===Ag||g===ID.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:h(f,c,d)}:{done:!1}});Dg(String.prototype,e,u[0]),Dg(ID,o,u[1])}n&&ld(ID[o],"sham",!0)})("split",0,!!Wr(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),dd),hb({global:!0},{globalThis:it}),go&&($.fn.attr=go);var iwe=xq.PROPER,LD=RegExp.prototype,sK=LD.toString,awe=_t(Wq),swe=Wr(function(){return sK.call({source:"a",flags:"b"})!="/a/b"}),uwe=iwe&&sK.name!="toString";(swe||uwe)&&Dg(RegExp.prototype,"toString",function(){var e=ii(this),t=Ca(e.source),r=e.flags;return"/"+t+"/"+Ca(r===void 0&&pq(LD,e)&&!("flags"in LD)?awe(e):r)},{unsafe:!0});var lwe=function(){function e(){this.title=ye("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(t){var r=[],n=t.getMenuConfig("codeSelectLang").codeLangs,o=n===void 0?[]:n;r.push({text:"plain text",value:""}),o.forEach(function(a){var s=a.text,u=a.value;r.push({text:s,value:u})});var i=this.getValue(t);return r.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),r},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var r=this.getSelectCodeElem(t);if(r==null||!Te.isElement(r))return"";var n=r.language.toString(),o=t.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===n})?n:""},e.prototype.isDisabled=function(t){return t.selection==null||!this.getSelectCodeElem(t)},e.prototype.exec=function(t,r){if(this.getSelectCodeElem(t)!=null){var n={language:r.toString()};Q.setNodes(t,n,{match:function(o){return z.checkNodeType(o,"code")}})}},e.prototype.getSelectCodeElem=function(t){var r=z.getSelectedNodeByType(t,"code");if(r==null)return null;var n=z.getParentNode(t,r);return Te.isElement(n)?n.type!=="pre"?null:r:null},e}(),cwe={renderStyle:function(e,t){var r=e,n=t,o="";return A5e.forEach(function(i){r[i]&&(o=i)}),o&&function(i,a){i.data==null&&(i.data={});var s=i.data;s.props==null&&(s.props={}),Object.assign(s.props,{className:a})}(n,o="token "+o),n},parseStyleHtml:function(e,t,r){var n=$(e);if(!Te.isElement(t)||z.getNodeType(t)!=="code")return t;var o=t,i=n.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new lwe},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var r=e.language,n=r===void 0?"":r;return"<code "+(n?'class="language-'+n+'"':"")+">"+t+"</code>"}}]},fwe=/"/g,dwe=_t("".replace);hb({target:"String",proto:!0,forced:Wr(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,r=Ca(ud(this)),n="<a",(n+=' name="'+dwe(Ca(t),fwe,"&quot;")+'"')+">"+r+"</a>";var t,r,n}});var uK=function(e){var t,r,n,o=function(y,v){var E=typeof Symbol=="function"&&y[Symbol.iterator];if(!E)return y;var w,S,C=E.call(y),x=[];try{for(;(v===void 0||v-- >0)&&!(w=C.next()).done;)x.push(w.value)}catch(_){S={error:_}}finally{try{w&&!w.done&&(E=C.return)&&E.call(C)}finally{if(S)throw S.error}}return x}(e,2),i=o[0],a=o[1],s=[],u=function(y){if(!Ce.isText(y))return null;var v=z.getParentNode(null,y);if(v&&z.getNodeType(v)==="code"){var E=z.getParentNode(null,v);if(E&&z.getNodeType(E)==="pre")return v}return null}(i);if(u==null)return s;var l=u.language,c=l===void 0?"":l;if(!c)return s;var f=function(y,v){if(!v)return[];var E=Kq.languages[v];return E?Kq.tokenize(y.text,E):[]}(i,c),d=0;try{for(var p=function(y){var v=typeof Symbol=="function"&&Symbol.iterator,E=v&&y[v],w=0;if(E)return E.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&w>=y.length&&(y=void 0),{value:y&&y[w++],done:!y}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var g=h.value,m=d+Gq(g);typeof g!="string"&&s.push(((n={})[g.type]=!0,n.anchor={path:a,offset:d},n.focus={path:a,offset:m},n)),d=m}}catch(y){t={error:y}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(t)throw t.error}}return s},ar=function(){return ar=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ar.apply(this,arguments)},xr=function(){function e(){throw new Error(`不能实例化
201
+ Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=ar(ar({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=ar(ar({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=ar(ar({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=ar(ar({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,r){(function(n,o){var i=n.key,a=n.factory,s=n.config,u=wo(wo({},s),o||{});if(oh[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");oh[i]=a,function(l,c){c!=null&&($B[l]=c)}(i,u)})(t,r)},e.registerRenderElem=function(t){(function(r){var n=r.type,o=r.renderElem;GF[n||""]=o})(t)},e.registerRenderStyle=function(t){(function(r){iw.push(r)})(t)},e.registerElemToHtml=function(t){(function(r){var n=r.type,o=r.elemToHtml;UB[n||""]=o})(t)},e.registerStyleToHtml=function(t){(function(r){D5.push(r)})(t)},e.registerPreParseHtml=function(t){(function(r){CF.push(r)})(t)},e.registerParseElemHtml=function(t){(function(r){var n=r.selector,o=r.parseElemHtml;gm[n]=o})(t)},e.registerParseStyleHtml=function(t){(function(r){q5.push(r)})(t)},e.registerModule=function(t){Yl(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();/*! *****************************************************************************
202
+ Copyright (c) Microsoft Corporation.
203
+
204
+ Permission to use, copy, modify, and/or distribute this software for any
205
+ purpose with or without fee is hereby granted.
206
+
207
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
208
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
209
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
210
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
211
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
212
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
213
+ PERFORMANCE OF THIS SOFTWARE.
214
+ ***************************************************************************** */function Yl(e){var t=e.menus,r=e.renderElems,n=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,s=e.parseElemsHtml,u=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach(function(c){return xr.registerMenu(c)}),r&&r.forEach(function(c){return xr.registerRenderElem(c)}),n&&xr.registerRenderStyle(n),o&&o.forEach(function(c){return xr.registerElemToHtml(c)}),i&&xr.registerStyleToHtml(i),a&&a.forEach(function(c){return xr.registerPreParseHtml(c)}),s&&s.forEach(function(c){return xr.registerParseElemHtml(c)}),u&&xr.registerParseStyleHtml(u),l&&xr.registerPlugin(l)}y0e.forEach(function(e){return Yl(e)}),Yl(Yve),Yl(E2e),Yl(N4e),Yl(E8e),Yl(cwe);var lK='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',cK={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},pwe={hoverbarKeys:ar(ar({},cK),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};xr.setEditorConfig(ar(ar({},pwe),{decorate:uK}));var hwe={hoverbarKeys:cK};xr.setSimpleEditorConfig(ar(ar({},hwe),{decorate:uK}));var gwe={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:ye("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:ye("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:ye("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:ye("editor.image"),iconSvg:lK,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:ye("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};xr.setToolbarConfig(gwe);var vwe={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:ye("editor.image"),iconSvg:lK,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function fK(e){e===void 0&&(e={});var t=e.selector,r=t===void 0?"":t,n=e.content,o=n===void 0?[]:n,i=e.html,a=e.config,s=a===void 0?{}:a,u=e.mode,l=(u===void 0?"default":u)==="simple"?xr.simpleEditorConfig:xr.editorConfig,c=ar(ar({},l.hoverbarKeys||{}),s.hoverbarKeys||{});return Sue({selector:r,config:ar(ar(ar({},l),s),{hoverbarKeys:c}),content:o,html:i,plugins:xr.plugins})}function dK(e){var t=e.selector,r=e.editor,n=e.config,o=n===void 0?{}:n,i=e.mode,a=i===void 0?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var s=a==="simple"?xr.simpleToolbarConfig:xr.toolbarConfig,u=function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,d=c.config,p=d===void 0?{}:d;if(function(m,y){return PF(m,"data-w-e-toolbar",y)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var h=wo({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),g=new uj(f,h);return f5.set(g,l),am.set(l,g),g}(r,{selector:t,config:ar(ar({},s),o)});return u}xr.setSimpleToolbarConfig(vwe);var mwe={};const ywe=Object.freeze(Object.defineProperty({__proto__:null,Boot:xr,DomEditor:z,SlateEditor:D,SlateElement:Te,SlateLocation:kee,SlateNode:me,SlatePath:J,SlatePoint:Ze,SlateRange:oe,SlateText:Ce,SlateTransforms:Q,Toolbar:uj,createEditor:fK,createToolbar:dK,createUploader:hw,default:mwe,genModalButtonElems:ul,genModalInputElems:Nn,genModalTextareaElems:vue,i18nAddResources:yn,i18nChangeLanguage:Kue,i18nGetResources:Gue,t:ye},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
215
+ Copyright (c) Microsoft Corporation.
216
+
217
+ Permission to use, copy, modify, and/or distribute this software for any
218
+ purpose with or without fee is hereby granted.
219
+
220
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
221
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
222
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
223
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
224
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
225
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
226
+ PERFORMANCE OF THIS SOFTWARE.
227
+ ***************************************************************************** */var bb=function(){return bb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bb.apply(this,arguments)};function pK(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function bwe(e){var t=e.defaultContent,r=t===void 0?[]:t,n=e.onCreated,o=e.defaultHtml,i=o===void 0?"":o,a=e.value,s=a===void 0?"":a,u=e.onChange,l=e.defaultConfig,c=l===void 0?{}:l,f=e.mode,d=f===void 0?"default":f,p=e.style,h=p===void 0?{}:p,g=e.className,m=N.useRef(null),y=pK(N.useState(null),2),v=y[0],E=y[1],w=pK(N.useState(""),2),S=w[0],C=w[1],x=function(q){n&&n(q);var H=c.onCreated;H&&H(q)},_=function(q){C(q.getHtml()),u&&u(q);var H=c.onChange;H&&H(q)},P=function(q){var H=c.onDestroyed;E(null),H&&H(q)};return N.useEffect(function(){if(v!=null&&s!==S)try{v.setHtml(s)}catch(q){console.error(q)}},[s]),N.useEffect(function(){var q;if(m.current!=null&&v==null&&!(!((q=m.current)===null||q===void 0)&&q.getAttribute("data-w-e-textarea"))){var H=fK({selector:m.current,config:bb(bb({},c),{onCreated:x,onChange:_,onDestroyed:P}),content:r,html:i||s,mode:d});E(H)}},[v]),N.createElement("div",{style:h,ref:m,className:g})}function wwe(e){var t=e.editor,r=e.defaultConfig,n=r===void 0?{}:r,o=e.mode,i=o===void 0?"default":o,a=e.style,s=a===void 0?{}:a,u=e.className,l=N.useRef(null);return N.useEffect(function(){l.current!=null&&t!=null&&dK({editor:t,selector:l.current,config:n,mode:i})},[t]),N.createElement("div",{style:s,ref:l,className:u})}function Ewe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Swe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var hK={exports:{}};const xwe=Swe(ywe);(function(e,t){(function(r,n){e.exports=n(xwe)})(self,r=>(()=>{var n={857:s=>{s.exports=r}},o={};function i(s){var u=o[s];if(u!==void 0)return u.exports;var l=o[s]={exports:{}};return n[s](l,l.exports,i),l.exports}i.d=(s,u)=>{for(var l in u)i.o(u,l)&&!i.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:u[l]})},i.o=(s,u)=>Object.prototype.hasOwnProperty.call(s,u),i.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};return(()=>{i.r(a),i.d(a,{default:()=>V});var s=i(857);(0,s.i18nAddResources)("en",{attachment:{upload:"Upload Attachment",download:"Download Attachment"}}),(0,s.i18nAddResources)("zh-CN",{attachment:{upload:"上传附件",download:"下载附件"}});function u(B,L,j,W,X){return{sel:B,data:L,children:j,text:W,elm:X,key:L===void 0?void 0:L.key}}const l=Array.isArray;function c(B){return typeof B=="string"||typeof B=="number"||B instanceof String||B instanceof Number}function f(B,L,j){if(B.ns="http://www.w3.org/2000/svg",j!=="foreignObject"&&L!==void 0)for(let W=0;W<L.length;++W){const X=L[W];if(typeof X=="string")continue;const ae=X.data;ae!==void 0&&f(ae,X.children,X.sel)}}function d(B,L,j){let W,X,ae,ce={};if(j!==void 0?(L!==null&&(ce=L),l(j)?W=j:c(j)?X=j.toString():j&&j.sel&&(W=[j])):L!=null&&(l(L)?W=L:c(L)?X=L.toString():L&&L.sel?W=[L]:ce=L),W!==void 0)for(ae=0;ae<W.length;++ae)c(W[ae])&&(W[ae]=u(void 0,void 0,void 0,W[ae],void 0));return B[0]!=="s"||B[1]!=="v"||B[2]!=="g"||B.length!==3&&B[3]!=="."&&B[3]!=="#"||f(ce,W,B),u(B,ce,W,X,void 0)}const p={type:"attachment",renderElem:function(B,L,j){var W=j.isDisabled(),X=s.DomEditor.isNodeSelected(j,B),ae=B,ce=ae.fileName,ee=ce===void 0?"":ce,fe=ae.link,pe=fe===void 0?"":fe;return d("span",{props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:X&&!W?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"0 3px",backgroundColor:"#f1f1f1",cursor:W?"pointer":"inherit"},on:{click:function(){W&&pe&&window.open(pe,"_blank")}}},[d("img",{props:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAv5JREFUWEetl1nITVEUx3/fo5LkyRQeFA+SIS8eZHhQimRKMhMSoogyR5QxMs9DkplQEhFvxihCKUWkpCTP9P9a+1p3f2efe869367T3Xeftdf/v9e012mi9cZQYDzQBxgIfANeAO+BDSmYplbCX58HAnwFFgNXY7zWIHABmBQpfg10A9pH64OAZ36tUQLngClO4XVgC/DU1iYCF937N+aiylIjBM4A05xy+XljwqV/3bpkKjFRL4GTwMyU0gwSY4Abtn4NGBdk6iFwFJhbAjyI/gLaAR+BnvUSOATML2j22BCvgL7AbyPS/L6MBfYDC3NOrlS8BLzNcIGi/4mtPwSGlbXAHmBJDriCSgQU5UrJmIT8Ptb277OaUNgCu4BlBcCDSFWUGzFfCXV6WaEQge3A8hLgcSquBjbnBWxeDGwFVtXwuT9ZfHLtlY4wFB9xxUwGoViLfVGzxuCymqyXC57KAilb1wC44kVxUxM8i8Bs4HgJn8cnV6YoYwqBxwR6A/eBzrY7Vh5SLeUW1QjVisLgMQEFyQTbfQqY5ZTVAp8HHC4L7gnocrhiCj5ZpdKvxlJgd45b5gDHcsDzKmQlC3zUrwS2mcJ+wAPXWMRumQHIWimzh04pVSErBG4Do0zLaOCWzX2rpeZjqgPT/GwB8FTMNK+HQqSerZNJKgjVUGro9Go2NXwJnQycLwGebFYCgS9AF1PYEfhu8wXAQZurfh8AutcoMnGDGrvN8f5vAQVg6FJGAndNqq211SE1qzbb9evLaylw74I1wCbTvgLY4ZAGAzeBDhH6kYzmRARyfR6fILhAd7XubI0fQC/gpxNuY23YcOCDdbrP3fvSJw97/W14B5D5NR4DQ2K2if91g3sXaN4V+OxAlN+LgD8J4B7WbJTpjluoivuB6cBpJ6VquBd4BAST67tP1tHFIxKlfJ6KAb8+AriXcWqlarCUf60ashY4UdBlVWKpjkgRvzP6+MjSf9nA39UDHsdAlg7VhgFAf3sk89IefXq3+NotS+QfmNG0IS7jBhcAAAAASUVORK5CYII="},style:{width:"1em",marginRight:"0.1em",minWidth:"0",minHeight:"0"}}),ee])}};function h(B){return B!==null&&typeof B=="object"&&"constructor"in B&&B.constructor===Object}function g(B={},L={}){Object.keys(L).forEach(j=>{B[j]===void 0?B[j]=L[j]:h(L[j])&&h(B[j])&&Object.keys(L[j]).length>0&&g(B[j],L[j])})}const m={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function y(){const B=typeof document<"u"?document:{};return g(B,m),B}const v={document:m,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:B=>typeof setTimeout>"u"?(B(),null):setTimeout(B,0),cancelAnimationFrame(B){typeof setTimeout<"u"&&clearTimeout(B)}};function E(){const B=typeof window<"u"?window:{};return g(B,v),B}class w extends Array{constructor(L){typeof L=="number"?super(L):(super(...L||[]),function(j){const W=j.__proto__;Object.defineProperty(j,"__proto__",{get:()=>W,set(X){W.__proto__=X}})}(this))}}function S(B,L){const j=E(),W=y();let X=[];if(!L&&B instanceof w)return B;if(!B)return new w(X);if(typeof B=="string"){const ae=B.trim();if(ae.indexOf("<")>=0&&ae.indexOf(">")>=0){let ce="div";ae.indexOf("<li")===0&&(ce="ul"),ae.indexOf("<tr")===0&&(ce="tbody"),ae.indexOf("<td")!==0&&ae.indexOf("<th")!==0||(ce="tr"),ae.indexOf("<tbody")===0&&(ce="table"),ae.indexOf("<option")===0&&(ce="select");const ee=W.createElement(ce);ee.innerHTML=ae;for(let fe=0;fe<ee.childNodes.length;fe+=1)X.push(ee.childNodes[fe])}else X=function(ce,ee){if(typeof ce!="string")return[ce];const fe=[],pe=ee.querySelectorAll(ce);for(let ie=0;ie<pe.length;ie+=1)fe.push(pe[ie]);return fe}(B.trim(),L||W)}else if(B.nodeType||B===j||B===W)X.push(B);else if(Array.isArray(B)){if(B instanceof w)return B;X=B}return new w(function(ae){const ce=[];for(let ee=0;ee<ae.length;ee+=1)ce.indexOf(ae[ee])===-1&&ce.push(ae[ee]);return ce}(X))}function C(...B){let[L,j,W,X]=B;function ae(pe){const ie=pe.target;if(!ie)return;const xe=pe.target.dom7EventData||[];if(xe.indexOf(pe)<0&&xe.unshift(pe),S(ie).is(j))W.apply(ie,xe);else{const Xe=S(ie).parents();for(let Le=0;Le<Xe.length;Le+=1)S(Xe[Le]).is(j)&&W.apply(Xe[Le],xe)}}function ce(pe){const ie=pe&&pe.target&&pe.target.dom7EventData||[];ie.indexOf(pe)<0&&ie.unshift(pe),W.apply(this,ie)}typeof B[1]=="function"&&([L,W,X]=B,j=void 0),X||(X=!1);const ee=L.split(" ");let fe;for(let pe=0;pe<this.length;pe+=1){const ie=this[pe];if(j)for(fe=0;fe<ee.length;fe+=1){const xe=ee[fe];ie.dom7LiveListeners||(ie.dom7LiveListeners={}),ie.dom7LiveListeners[xe]||(ie.dom7LiveListeners[xe]=[]),ie.dom7LiveListeners[xe].push({listener:W,proxyListener:ae}),ie.addEventListener(xe,ae,X)}else for(fe=0;fe<ee.length;fe+=1){const xe=ee[fe];ie.dom7Listeners||(ie.dom7Listeners={}),ie.dom7Listeners[xe]||(ie.dom7Listeners[xe]=[]),ie.dom7Listeners[xe].push({listener:W,proxyListener:ce}),ie.addEventListener(xe,ce,X)}}return this}function x(){for(let B=0;B<this.length;B+=1)this[B].style.display="none";return this}function _(...B){let L;const j=y();for(let W=0;W<B.length;W+=1){L=B[W];for(let X=0;X<this.length;X+=1)if(typeof L=="string"){const ae=j.createElement("div");for(ae.innerHTML=L;ae.firstChild;)this[X].appendChild(ae.firstChild)}else if(L instanceof w)for(let ae=0;ae<L.length;ae+=1)this[X].appendChild(L[ae]);else this[X].appendChild(L)}return this}S.fn=w.prototype;const P="resize scroll".split(" ");function q(B){return function(...L){if(L[0]===void 0){for(let j=0;j<this.length;j+=1)P.indexOf(B)<0&&(B in this[j]?this[j][B]():S(this[j]).trigger(B));return this}return this.on(B,...L)}}const H=q("click"),k=S;x&&(k.fn.hide=x),_&&(k.fn.append=_),H&&(k.fn.click=H),C&&(k.fn.on=C);const M=k;var I=function(){return I=Object.assign||function(B){for(var L,j=1,W=arguments.length;j<W;j++)for(var X in L=arguments[j])Object.prototype.hasOwnProperty.call(L,X)&&(B[X]=L[X]);return B},I.apply(this,arguments)},T=function(B,L,j,W){return new(j||(j=Promise))(function(X,ae){function ce(pe){try{fe(W.next(pe))}catch(ie){ae(ie)}}function ee(pe){try{fe(W.throw(pe))}catch(ie){ae(ie)}}function fe(pe){var ie;pe.done?X(pe.value):(ie=pe.value,ie instanceof j?ie:new j(function(xe){xe(ie)})).then(ce,ee)}fe((W=W.apply(B,[])).next())})},F=function(B,L){var j,W,X,ae,ce={label:0,sent:function(){if(1&X[0])throw X[1];return X[1]},trys:[],ops:[]};return ae={next:ee(0),throw:ee(1),return:ee(2)},typeof Symbol=="function"&&(ae[Symbol.iterator]=function(){return this}),ae;function ee(fe){return function(pe){return function(ie){if(j)throw new TypeError("Generator is already executing.");for(;ce;)try{if(j=1,W&&(X=2&ie[0]?W.return:ie[0]?W.throw||((X=W.return)&&X.call(W),0):W.next)&&!(X=X.call(W,ie[1])).done)return X;switch(W=0,X&&(ie=[2&ie[0],X.value]),ie[0]){case 0:case 1:X=ie;break;case 4:return ce.label++,{value:ie[1],done:!1};case 5:ce.label++,W=ie[1],ie=[0];continue;case 7:ie=ce.ops.pop(),ce.trys.pop();continue;default:if(!((X=(X=ce.trys).length>0&&X[X.length-1])||ie[0]!==6&&ie[0]!==2)){ce=0;continue}if(ie[0]===3&&(!X||ie[1]>X[0]&&ie[1]<X[3])){ce.label=ie[1];break}if(ie[0]===6&&ce.label<X[1]){ce.label=X[1],X=ie;break}if(X&&ce.label<X[2]){ce.label=X[2],ce.ops.push(ie);break}X[2]&&ce.ops.pop(),ce.trys.pop();continue}ie=L.call(B,ce)}catch(xe){ie=[6,xe],W=0}finally{j=X=0}if(5&ie[0])throw ie[1];return{value:ie[0]?ie[1]:void 0,done:!0}}([fe,pe])}}};function U(B){return B.getMenuConfig("uploadAttachment")}function R(B,L,j){if(L&&j){B.restoreSelection();var W={type:"attachment",fileName:L,link:j,children:[{text:""}]};B.insertNode(W),B.move(1);var X=U(B).onInsertedAttachment;X&&X(W)}}function Z(B,L){return T(this,void 0,void 0,function(){var j,W,X,ae;return F(this,function(ce){switch(ce.label){case 0:return j=function(ee){var fe=re.get(ee);if(fe!=null)return fe;var pe=U(ee),ie=pe.onSuccess,xe=pe.onProgress,Xe=pe.onFailed,Le=pe.customInsert,Oe=pe.onError;return fe=(0,s.createUploader)(I(I({},pe),{onProgress:function(ue){ee.showProgressBar(ue),xe&&xe(ue)},onSuccess:function(ue,Ie){if(Le)Le(Ie,ue,function(et,Et){return R(ee,et,Et)});else{var le=Ie.errno,de=le===void 0?1:le,ke=Ie.data,je=ke===void 0?{}:ke;if(de!==0)return console.error("'".concat(ue.name,"' upload failed"),Ie),void Xe(ue,Ie);var ve=je.url,Qe=ve===void 0?"":ve;R(ee,ue.name,Qe),ie(ue,Ie)}},onError:function(ue,Ie,le){var de=ue.name;console.error("'".concat(de," upload error"),Ie,le),Oe&&Oe(ue,Ie,le)}})),re.set(ee,fe),fe}(B),W=L.name,X=L.type,ae=L.size,j.addFile({name:W,type:X,size:ae,data:L}),[4,j.upload()];case 1:return ce.sent(),[2]}})})}var re=new WeakMap;const O=function(){function B(){this.title=(0,s.t)("attachment.upload"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M665.821116 327.053068l-64.958782-64.926783-324.79391 324.729911c-53.822991 53.790991-53.822991 141.053355 0 194.844347s141.053355 53.790991 194.876346 0l389.752692-389.688693a229.531696 229.531696 0 0 0 0-324.729912 229.627694 229.627694 0 0 0-324.761911 0L126.727224 476.458266l-0.863984 0.831985c-125.085655 125.085655-125.085655 327.833853 0 452.887508 125.053655 125.053655 327.865853 125.053655 452.983507 0l0.831984-0.863984 0.031999 0.032 279.322763-279.290764-64.990781-64.926782-279.322763 279.258764-0.831984 0.831984a228.731711 228.731711 0 0 1-323.065943 0 228.603714 228.603714 0 0 1 0-322.969944l0.895983-0.831985-0.031999-0.063998L600.958332 132.208721c53.694993-53.726993 141.149353-53.726993 194.876346 0s53.694993 141.149353 0 194.844347L406.081986 716.741761c-17.919664 17.919664-47.039118 17.919664-64.958782 0a45.983138 45.983138 0 0 1 0-64.926783L665.917114 327.053068z"></path></svg>',this.tag="button"}return B.prototype.getValue=function(L){return""},B.prototype.isActive=function(L){return!1},B.prototype.exec=function(L,j){var W=this.getMenuConfig(L),X=W.allowedFileTypes,ae=X===void 0?[]:X,ce=W.customBrowseAndUpload;if(ce)ce(function(ie,xe){return R(L,ie,xe)});else{var ee="";ae.length>0&&(ee='accept="'.concat(ae.join(", "),'"'));var fe=M("body"),pe=M('<input type="file" '.concat(ee," multiple/>"));pe.hide(),fe.append(pe),pe.click(),pe.on("change",function(){var ie=pe[0].files;(function(xe,Xe){var Le,Oe;T(this,void 0,void 0,function(){var ue,Ie,le,de,ke,je;return F(this,function(ve){switch(ve.label){case 0:if(Xe==null)return[2];ue=Array.prototype.slice.call(Xe),Ie=U(xe).customUpload,ve.label=1;case 1:ve.trys.push([1,9,10,15]),le=function(Qe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var et,Et=Qe[Symbol.asyncIterator];return Et?Et.call(Qe):(Qe=typeof __values=="function"?__values(Qe):Qe[Symbol.iterator](),et={},Bt("next"),Bt("throw"),Bt("return"),et[Symbol.asyncIterator]=function(){return this},et);function Bt(De){et[De]=Qe[De]&&function(Me){return new Promise(function(ut,sr){(function(Lt,nr,dr,jn){Promise.resolve(jn).then(function(Gt){Lt({value:Gt,done:dr})},nr)})(ut,sr,(Me=Qe[De](Me)).done,Me.value)})}}}(ue),ve.label=2;case 2:return[4,le.next()];case 3:return(de=ve.sent()).done?[3,8]:(ke=de.value,Ie?[4,Ie(ke,function(Qe,et){return R(xe,Qe,et)})]:[3,5]);case 4:return ve.sent(),[3,7];case 5:return[4,Z(xe,ke)];case 6:ve.sent(),ve.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return je=ve.sent(),Le={error:je},[3,15];case 10:return ve.trys.push([10,,13,14]),de&&!de.done&&(Oe=le.return)?[4,Oe.call(le)]:[3,12];case 11:ve.sent(),ve.label=12;case 12:return[3,14];case 13:if(Le)throw Le.error;return[7];case 14:return[7];case 15:return[2]}})})})(L,ie)})}},B.prototype.isDisabled=function(L){var j=L.selection;if(j==null||s.SlateRange.isExpanded(j))return!0;var W=s.DomEditor.getSelectedElems(L);return!!W.some(function(X){return L.isVoid(X)})||!!W.some(function(X){return s.DomEditor.getNodeType(X)==="pre"})},B.prototype.getMenuConfig=function(L){return L.getMenuConfig("uploadAttachment")},B}(),A=function(){function B(){this.title=(0,s.t)("attachment.download"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M736 448l-256 256-256-256h160V64h192v384z m-256 256H0v256h960v-256H480z m416 128h-128v-64h128v64z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return B.prototype.getValue=function(L){var j=this.getSelectedElem(L);return j==null?"":j.link},B.prototype.isActive=function(L){return!1},B.prototype.exec=function(L,j){j&&typeof j=="string"&&window.open(j,"_blank")},B.prototype.isDisabled=function(L){var j=L.selection;return j==null||!!s.SlateRange.isExpanded(j)||this.getSelectedElem(L)==null},B.prototype.getSelectedElem=function(L){var j=s.DomEditor.getSelectedNodeByType(L,"attachment");return j??null},B}(),V={editorPlugin:function(B){var L=B.isInline,j=B.isVoid,W=B;return W.isInline=function(X){return s.DomEditor.getNodeType(X)==="attachment"||L(X)},W.isVoid=function(X){return s.DomEditor.getNodeType(X)==="attachment"||j(X)},W},renderElems:[p],elemsToHtml:[{type:"attachment",elemToHtml:function(B,L){var j=B,W=j.link,X=W===void 0?"":W,ae=j.fileName,ce=ae===void 0?"":ae;return'<a data-w-e-type="attachment" data-w-e-is-void data-w-e-is-inline href="'.concat(X,'" download="').concat(ce,'">').concat(ce,"</a>")}}],parseElemsHtml:[{selector:'a[data-w-e-type="attachment"]',parseElemHtml:function(B,L,j){return{type:"attachment",link:B.getAttribute("href")||"",fileName:B.getAttribute("download")||"",children:[{text:""}]}}}],menus:[{key:"uploadAttachment",factory:function(){return new O},config:{server:"",fieldName:"wangeditor-uploaded-attachment",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(B){return B},onProgress:function(B){},onSuccess:function(B,L){},onFailed:function(B,L){},onError:function(B,L,j){},onInsertedAttachment:function(B){}}},{key:"downloadAttachment",factory:function(){return new A}}]}})(),a})())})(hK);var Cwe=hK.exports;const Dwe=Ewe(Cwe);function _we(e){const{pageJson:t,context:{appEnName:r=""}}=rn(),n={Authorization:JSON.parse(localStorage.getItem(`${r}_TOKEN`)),"Content-Type":"multipart/form-data"},{value:o,setValue:i}=e;G.App.useApp(),xr.plugins.length<13&&xr.registerModule(Dwe);const[a,s]=N.useState(null),[u,l]=N.useState(o);N.useEffect(()=>{i(u)},[u]),N.useEffect(()=>()=>{a!=null&&(a.destroy(),s(null))},[a]);const c={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:"更多",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:"对齐",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:"缩进",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink","uploadImage","divider","|","undo","redo","|","fullScreen"],insertKeys:{index:22,keys:["uploadAttachment"]}},f={placeholder:"请输入内容..."};return f.MENU_CONF={uploadImage:{server:`/${r}/v1/system/file/upload`,allowedFileTypes:["image/*"],headers:n,withCredentials:!0,timeout:30*1e3,maxNumberOfFiles:10,maxFileSize:10*1024*1024,fieldName:"file",metaWithUrl:!1,onBeforeUpload(d){return console.log("onBeforeUpload",d),d},customInsert(d,p){d.success&&p(d.data.url,d.data.originslFilename)},onFailed(d,p){console.log("onFailed",d)},onError(d,p,h){}},uploadAttachment:{server:`${r}/v1/system/file/upload`,headers:n,onSuccess(d,p){console.log("onSuccess",d,p)},onFailed(d,p){console.log("onFailed",d,p)}}},b.jsx(b.Fragment,{children:b.jsxs("div",{style:{border:"1px solid #ccc",zIndex:100},children:[b.jsx(wwe,{editor:a,defaultConfig:c,mode:"default",style:{borderBottom:"1px solid #ccc"}}),b.jsx(bwe,{defaultConfig:f,value:u,onCreated:s,onChange:d=>l(d.getHtml()),mode:"default",style:{height:"200px",overflowY:"hidden"}})]})})}if(!N.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!nY)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Owe(e){e()}function Awe(e){e||(e=Owe,process.env.NODE_ENV!=="production"&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),GW({reactionScheduler:e})}var gK=[];function kwe(e){gK.includes(e)||(gK.push(e),console.warn(e))}function Nwe(e){return eO(e)}var Twe=1e4,Pwe=1e4,Bwe=function(){function e(t){var r=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(n){n===void 0&&(n=Twe),clearTimeout(r.sweepTimeout),r.sweepTimeout=void 0;var o=Date.now();r.registrations.forEach(function(i,a){o-i.registeredAt>=n&&(r.finalize(i.value),r.registrations.delete(a))}),r.registrations.size>0&&r.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){r.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,n){this.registrations.set(n,{value:r,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,Pwe))}}),e}(),Fwe=typeof FinalizationRegistry<"u"?FinalizationRegistry:Bwe,Ng=new Fwe(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),MD={exports:{}},zD={};/**
228
+ * @license React
229
+ * use-sync-external-store-shim.production.min.js
230
+ *
231
+ * Copyright (c) Facebook, Inc. and its affiliates.
232
+ *
233
+ * This source code is licensed under the MIT license found in the
234
+ * LICENSE file in the root directory of this source tree.
235
+ */var vK;function jwe(){if(vK)return zD;vK=1;var e=N;function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(f,d){var p=d(),h=n({inst:{value:p,getSnapshot:d}}),g=h[0].inst,m=h[1];return i(function(){g.value=p,g.getSnapshot=d,u(g)&&m({inst:g})},[f,p,d]),o(function(){return u(g)&&m({inst:g}),f(function(){u(g)&&m({inst:g})})},[f]),a(p),p}function u(f){var d=f.getSnapshot;f=f.value;try{var p=d();return!r(f,p)}catch{return!0}}function l(f,d){return d()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:s;return zD.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,zD}var VD={};/**
236
+ * @license React
237
+ * use-sync-external-store-shim.development.js
238
+ *
239
+ * Copyright (c) Facebook, Inc. and its affiliates.
240
+ *
241
+ * This source code is licensed under the MIT license found in the
242
+ * LICENSE file in the root directory of this source tree.
243
+ */var mK;function Iwe(){return mK||(mK=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=N,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(E){{for(var w=arguments.length,S=new Array(w>1?w-1:0),C=1;C<w;C++)S[C-1]=arguments[C];n("error",E,S)}}function n(E,w,S){{var C=t.ReactDebugCurrentFrame,x=C.getStackAddendum();x!==""&&(w+="%s",S=S.concat([x]));var _=S.map(function(P){return String(P)});_.unshift("Warning: "+w),Function.prototype.apply.call(console[E],console,_)}}function o(E,w){return E===w&&(E!==0||1/E===1/w)||E!==E&&w!==w}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,s=e.useEffect,u=e.useLayoutEffect,l=e.useDebugValue,c=!1,f=!1;function d(E,w,S){c||e.startTransition!==void 0&&(c=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var C=w();if(!f){var x=w();i(C,x)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}var _=a({inst:{value:C,getSnapshot:w}}),P=_[0].inst,q=_[1];return u(function(){P.value=C,P.getSnapshot=w,p(P)&&q({inst:P})},[E,C,w]),s(function(){p(P)&&q({inst:P});var H=function(){p(P)&&q({inst:P})};return E(H)},[E]),l(C),C}function p(E){var w=E.getSnapshot,S=E.value;try{var C=w();return!i(S,C)}catch{return!0}}function h(E,w,S){return w()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",m=!g,y=m?h:d,v=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y;VD.useSyncExternalStore=v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),VD}process.env.NODE_ENV==="production"?MD.exports=jwe():MD.exports=Iwe();var Lwe=MD.exports;function yK(e){e.reaction=new Lo("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function Mwe(e,t){t===void 0&&(t="observed");var r=N.useRef(null);if(!r.current){var n={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(s){return Ng.unregister(n),n.onStoreChange=s,n.reaction||(yK(n),n.stateVersion=Symbol()),function(){var u;n.onStoreChange=null,(u=n.reaction)===null||u===void 0||u.dispose(),n.reaction=null}},getSnapshot:function(){return n.stateVersion}};r.current=n}var o=r.current;o.reaction||(yK(o),Ng.register(r,o,o)),N.useDebugValue(o.reaction,Nwe),Lwe.useSyncExternalStore(o.subscribe,o.getSnapshot,o.getSnapshot);var i,a;if(o.reaction.track(function(){try{i=e()}catch(s){a=s}}),a)throw a;return i}var RD,$D,bK=!0,wK=typeof Symbol=="function"&&Symbol.for,zwe=($D=(RD=Object.getOwnPropertyDescriptor(function(){},"name"))===null||RD===void 0?void 0:RD.configurable)!==null&&$D!==void 0?$D:!1,EK=wK?Symbol.for("react.forward_ref"):typeof N.forwardRef=="function"&&N.forwardRef(function(e){return null}).$$typeof,SK=wK?Symbol.for("react.memo"):typeof N.memo=="function"&&N.memo(function(e){return null}).$$typeof;function Vwe(e,t){var r;if(process.env.NODE_ENV!=="production"&&bK&&t&&(bK=!1,console.warn("[mobx-react-lite] `observer(fn, { forwardRef: true })` is deprecated, use `observer(React.forwardRef(fn))`")),SK&&e.$$typeof===SK)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var n=(r=void 0)!==null&&r!==void 0?r:!1,o=e,i=e.displayName||e.name;if(EK&&e.$$typeof===EK&&(n=!0,o=e.render,typeof o!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var a=function(s,u){return Mwe(function(){return o(s,u)},i)};return a.displayName=e.displayName,zwe&&Object.defineProperty(a,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(a.contextTypes=e.contextTypes),n&&(a=N.forwardRef(a)),a=N.memo(a),$we(e,a),process.env.NODE_ENV!=="production"&&Object.defineProperty(a,"contextTypes",{set:function(){var s,u;throw new Error("[mobx-react-lite] `".concat(this.displayName||((s=this.type)===null||s===void 0?void 0:s.displayName)||((u=this.type)===null||u===void 0?void 0:u.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),a}var Rwe={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function $we(e,t){Object.keys(e).forEach(function(r){Rwe[r]||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}process.env.NODE_ENV;function xK(e,t){process.env.NODE_ENV!=="production"&&kwe("[mobx-react-lite] 'useLocalStore' is deprecated, use 'useLocalObservable' instead.");var r=t;return N.useState(function(){return Re(e(r),void 0,{autoBind:!0})})[0]}var HD;Awe(GK.unstable_batchedUpdates),HD=Ng.finalizeAllImmediately;function Hwe(e,t){if(CK(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++)if(!Object.hasOwnProperty.call(t,r[o])||!CK(e[r[o]],t[r[o]]))return!1;return!0}function CK(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var DK=Symbol("patchMixins"),_K=Symbol("patchedDefinition");function Uwe(e,t){var r=e[DK]=e[DK]||{},n=r[t]=r[t]||{};return n.locks=n.locks||0,n.methods=n.methods||[],n}function OK(e,t){for(var r=this,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];t.locks++;try{var a;return e!=null&&(a=e.apply(this,o)),a}finally{t.locks--,t.locks===0&&t.methods.forEach(function(s){s.apply(r,o)})}}function AK(e,t){var r=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];OK.call.apply(OK,[this,e,t].concat(i))};return r}function qwe(e,t,r){var n=Uwe(e,t);n.methods.indexOf(r)<0&&n.methods.push(r);var o=Object.getOwnPropertyDescriptor(e,t);if(!(o&&o[_K])){var i=e[t],a=kK(e,t,o?o.enumerable:void 0,n,i);Object.defineProperty(e,t,a)}}function kK(e,t,r,n,o){var i,a=AK(o,n);return i={},i[_K]=!0,i.get=function(){return a},i.set=function(u){if(this===e)a=AK(u,n);else{var l=kK(this,t,r,n,u);Object.defineProperty(this,t,l)}},i.configurable=!0,i.enumerable=r,i}var NK=Symbol("ObserverAdministration"),TK=Symbol("isMobXReactObserver"),PK;process.env.NODE_ENV!=="production"&&(PK={props:UD("props"),state:UD("state"),context:UD("context")});function Tg(e){var t;return(t=e[NK])!=null?t:e[NK]={reaction:null,mounted:!1,reactionInvalidatedBeforeMount:!1,forceUpdate:null,name:wb(e.constructor),state:void 0,props:void 0,context:void 0}}function Kwe(e){var t=e.prototype;if(e[TK]){var r=wb(e);throw new Error("The provided component class ("+r+") has already been declared as an observer component.")}else e[TK]=!0;if(t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==N.PureComponent){if(!t.shouldComponentUpdate)t.shouldComponentUpdate=BK;else if(t.shouldComponentUpdate!==BK)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}process.env.NODE_ENV!=="production"&&Object.defineProperties(t,PK);var n=t.render;if(typeof n!="function"){var o=wb(e);throw new Error("[mobx-react] class component ("+o+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}t.render=function(){return Object.defineProperty(this,"render",{configurable:!1,writable:!1,value:Gwe.call(this,n)}),this.render()};var i=t.componentDidMount;return t.componentDidMount=function(){var a=this;if(process.env.NODE_ENV!=="production"&&this.componentDidMount!==Object.getPrototypeOf(this).componentDidMount){var s=wb(e);throw new Error("[mobx-react] `observer("+s+").componentDidMount` must be defined on prototype.\n`componentDidMount = () => {}` or `componentDidMount = function() {}` is not supported.")}var u=Tg(this);return u.mounted=!0,Ng.unregister(this),u.forceUpdate=function(){return a.forceUpdate()},(!u.reaction||u.reactionInvalidatedBeforeMount)&&u.forceUpdate(),i==null?void 0:i.apply(this,arguments)},qwe(t,"componentWillUnmount",function(){var a,s=Tg(this);(a=s.reaction)==null||a.dispose(),s.reaction=null,s.forceUpdate=null,s.mounted=!1,s.reactionInvalidatedBeforeMount=!1}),e}function wb(e){return e.displayName||e.name||"<component>"}function Gwe(e){var t=e.bind(this),r=Tg(this);function n(){r.reaction||(r.reaction=Wwe(r),r.mounted||Ng.register(this,r,this));var o=void 0,i=void 0;if(r.reaction.track(function(){try{i=F_(!1,t)}catch(a){o=a}}),o)throw o;return i}return n}function Wwe(e){return new Lo(e.name+".render()",function(){if(!e.mounted){e.reactionInvalidatedBeforeMount=!0;return}try{e.forceUpdate==null||e.forceUpdate()}catch{var t;(t=e.reaction)==null||t.dispose(),e.reaction=null}})}function BK(e,t){return this.state!==t?!0:!Hwe(this.props,e)}function UD(e){return{configurable:!0,enumerable:!0,get:function(){var r=Tg(this),n=OW().trackingDerivation;if(n&&n!==r.reaction)throw new Error('[mobx-react] Cannot read "'+r.name+"."+e+`" in a reactive context, as it isn't observable.
244
+ Please use component lifecycle method to copy the value into a local observable first.
245
+ See https://github.com/mobxjs/mobx/blob/main/packages/mobx-react/README.md#note-on-using-props-and-state-in-derivations`);return r[e]},set:function(r){Tg(this)[e]=r}}}function Pg(e,t){return e.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(N.Component,e)||Object.prototype.isPrototypeOf.call(N.PureComponent,e)?Kwe(e):Vwe(e)}if(N.version.split(".")[0],!N.Component)throw new Error("mobx-react requires React to be available");if(!Re)throw new Error("mobx-react requires mobx to be available");const{Search:qD}=G.Input,FK=Pg(e=>{var a;const{server:t,appCode:r,users:n,store:o,type:i}=e;return N.useEffect(()=>(o.setAppCode(r),o.getStaffData({server:t,users:n}),()=>{o.setStaff([])}),[]),N.useEffect(()=>{o.setStaff(n)},[ct.stringify(n)]),b.jsxs("div",{className:"staff",children:[b.jsxs("div",{className:"list",children:[b.jsxs("div",{children:[b.jsx(qD,{value:o.deptSearch,placeholder:"请输入部门名称",allowClear:!0,enterButton:"搜索部门",size:"middle",onChange:o.onDeptChange,onSearch:o.onDeptSearch}),b.jsx("div",{className:"tree",children:b.jsx(G.Tree,{autoExpandParent:o.autoExpandParent,defaultExpandParent:!0,expandedKeys:o.staffExpandKeys,onExpand:o.onExpandKeys,checkedKeys:o.staffCheckedKeys,selectedKeys:o.staffSelectKeys,treeData:o.staffList,onCheck:o.onStaffCheckKeysChange,onSelect:o.onStaffSelectKeysChange})})]}),b.jsxs("div",{children:[b.jsx(qD,{placeholder:"请输入人员/工号",allowClear:!0,enterButton:"搜索人员",size:"middle",onChange:o.onStaffChange,onSearch:o.onStaffSearch}),b.jsx("div",{className:"tree",children:b.jsxs(Eu,{condition:(a=o.staffRows)==null?void 0:a.length,children:[b.jsx(pi,{children:b.jsx(G.List,{className:"border-0 dept_people_selector overflow-y-auto w-full",bordered:!0,dataSource:o.staffRows,renderItem:(s,u)=>b.jsx(G.List.Item,{children:b.jsxs(G.Checkbox,{checked:o.isRowSelectd(s),onClick:()=>o.onSelectedRowsChange(s),children:[s.jobNumber," - ",s.username]})},s.id+u)})}),b.jsx(di,{children:b.jsx("div",{className:"empty",children:b.jsx(G.Empty,{image:G.Empty.PRESENTED_IMAGE_SIMPLE})})})]})})]}),b.jsxs("div",{className:"third",children:[b.jsxs("div",{children:[b.jsx("span",{children:"已选择列表"}),b.jsx(G.Button,{type:"primary",onClick:o.clearSelectdRow,children:"清空"})]}),b.jsx("div",{className:"tree",children:b.jsxs(Eu,{condition:o.staffSelectdRows.length,children:[b.jsx(pi,{children:b.jsx(G.List,{className:"border-0 dept_people_selector overflow-y-auto w-full",bordered:!0,dataSource:o.staffSelectdRows,renderItem:(s,u)=>b.jsx(G.List.Item,{children:b.jsxs("div",{className:"w-full flex justify-between items-center",children:[b.jsxs("div",{children:[s.jobNumber," - ",s.username]}),b.jsx(Fr.DeleteOutlined,{style:{color:"#ff4d4f",fontSize:16},onClick:()=>o.deleteStaffRow(u)})]})},s.id+u)})}),b.jsx(di,{children:b.jsx("div",{className:"empty",children:b.jsx(G.Empty,{image:G.Empty.PRESENTED_IMAGE_SIMPLE})})})]})})]})]}),b.jsx(G.Alert,{message:"默认只包含当前部门人员, 不包含子部门人员",type:"warning",showIcon:!0})]})}),jK=Pg(e=>{var i;const{users:t,store:r,isCascade:n,direction:o}=e;return N.useEffect(()=>{r.setDept(t,o,n)},[ct.stringify(t)]),N.useEffect(()=>(r.getDepartData(t),()=>{r.setDept([],"0",!1)}),[]),b.jsxs("div",{className:"flex h-96 gap-2",children:[b.jsxs("div",{className:"flex flex-col flex-1 gap-2 w-full h-full",children:[b.jsxs("div",{className:"flex gap-2 items-center ",children:[b.jsxs("div",{className:"flex gap-1 items-center",children:[b.jsx("span",{children:"部门查询方向"}),b.jsx(G.Select,{defaultValue:r.direction,onChange:r.onSelectChange,options:[{value:1,label:"向上"},{value:0,label:"向下"}]})]}),b.jsxs("div",{className:"flex gap-1 items-center",children:[b.jsx("span",{children:"是否级联"}),b.jsx(G.Switch,{checked:r.isCascade,onChange:r.onSwitchChange})]})]}),b.jsx("div",{className:"flex overflow-y-auto rounded-md border-[#d9d9d9] border h-full",children:b.jsx(G.Tree,{autoExpandParent:r.autoExpandParentDept,checkStrictly:!0,defaultExpandParent:!0,expandedKeys:r.deportExpandKeys,onExpand:r.onExpandDeptKeys,checkable:!0,checkedKeys:r.deportCheckedKeys,selectedKeys:r.deportSelectKeys,treeData:r.deportList,onCheck:r.onDeportCheckKeysChange,onSelect:r.onDeportSelectKeysChange})})]}),b.jsxs("div",{className:"flex flex-col flex-1 gap-2",children:[b.jsxs("div",{className:"flex gap-2 items-center justify-between",children:[b.jsx("span",{children:"已选择列表"}),b.jsx(G.Button,{type:"primary",onClick:r.clearDeportRow,children:"清空"})]}),b.jsx("div",{className:"flex overflow-y-auto rounded-md border-[#d9d9d9] border h-full ",children:b.jsxs(Eu,{condition:(i=r.deportRows)==null?void 0:i.length,children:[b.jsx(pi,{children:b.jsx(G.List,{className:"border-0 overflow-y-auto w-full",bordered:!0,dataSource:r.deportRows,renderItem:(a,s)=>b.jsx(G.List.Item,{children:b.jsxs("div",{className:"w-full flex justify-between items-center",children:[b.jsxs("div",{children:[a.key," - ",a.title]}),b.jsx(Fr.DeleteOutlined,{style:{color:"#ff4d4f",fontSize:16},onClick:()=>r.deletDeptRow(s,a.key)})]})},a.id+s)})}),b.jsx(di,{children:b.jsx("div",{className:"flex w-full items-center justify-center",children:b.jsx(G.Empty,{image:G.Empty.PRESENTED_IMAGE_SIMPLE})})})]})})]})]})}),IK=Pg(e=>{var n;const{users:t,store:r}=e;return N.useEffect(()=>{r.setRoles(t)},[ct.stringify(t)]),N.useEffect(()=>(r.getRoleList(t),()=>{r.setRoles([])}),[]),b.jsxs("div",{className:"flex w-full gap-2 h-96",children:[b.jsxs("div",{className:"flex flex-1 flex-col items-start w-full gap-2",children:[b.jsx(qD,{placeholder:"请输入角色",allowClear:!0,enterButton:"搜索角色",size:"middle",value:r.roleSearch,onChange:r.onRoleSearchChange,onSearch:r.onRoleSearch}),b.jsx("div",{className:"flex w-full overflow-y-auto rounded-md border-[#d9d9d9] border h-full ",children:b.jsxs(Eu,{condition:(n=r.roleList)==null?void 0:n.length,children:[b.jsx(pi,{children:b.jsx(G.List,{className:"border-0 dept_people_selector overflow-y-auto w-full",bordered:!0,dataSource:r.roleList,renderItem:(o,i)=>b.jsx(G.List.Item,{children:b.jsx(G.Checkbox,{checked:r.isRoleSelectd(o),onClick:()=>r.onRoleRowsChange(o),children:o.roleName})},o.id)})}),b.jsx(di,{children:b.jsx("div",{className:"flex justify-center items-center w-full",children:b.jsx(G.Empty,{image:G.Empty.PRESENTED_IMAGE_SIMPLE})})})]})})]}),b.jsxs("div",{className:"flex flex-1 flex-col gap-2",children:[b.jsxs("div",{className:"flex flex-1 gap-1 items-center justify-between",children:[b.jsx("span",{children:"已选择列表"}),b.jsx(G.Button,{type:"primary",onClick:r.clearRoleRow,children:"清空"})]}),b.jsx("div",{className:"flex overflow-y-auto rounded-md border-[#d9d9d9] border h-full",children:b.jsxs(Eu,{condition:r.roleSelectdRows.length,children:[b.jsx(pi,{children:b.jsx(G.List,{className:"border-0 dept_people_selector overflow-y-auto w-full",bordered:!0,dataSource:r.roleSelectdRows,renderItem:(o,i)=>b.jsx(G.List.Item,{children:b.jsxs("div",{className:"w-full flex justify-between items-center",children:[b.jsx("div",{children:o.roleName}),b.jsx(Fr.DeleteOutlined,{style:{color:"#ff4d4f",fontSize:16},onClick:()=>r.deletRoleRow(i,o.id)})]})},o.id)})}),b.jsx(di,{children:b.jsx("div",{className:"flex w-full justify-center items-center",children:b.jsx(G.Empty,{image:G.Empty.PRESENTED_IMAGE_SIMPLE})})})]})})]})]})});class LK{constructor(){Ae(this,"server","");Ae(this,"appId","");Ae(this,"appCode","");Ae(this,"deptSearch","");Ae(this,"staffSearch","");Ae(this,"staffString","");Ae(this,"assignDepts",[]);Ae(this,"assignRoles",[]);Ae(this,"assignUsers",[]);Ae(this,"defaultExpandKeys",["10000000"]);Ae(this,"autoExpandParent",!0);Ae(this,"staffData",[]);Ae(this,"staffCheckedKeys",[]);Ae(this,"staffSelectKeys",[]);Ae(this,"staffExpandKeys",["10000000"]);Ae(this,"staffRows",[]);Ae(this,"staffSelectdRows",[]);Ae(this,"deptString","");Ae(this,"direction",1);Ae(this,"deportData",[]);Ae(this,"autoExpandParentDept",!0);Ae(this,"deportSelectKeys",[]);Ae(this,"deportExpandKeys",["10000000"]);Ae(this,"deportCheckedKeys",[]);Ae(this,"deportRows",[]);Ae(this,"setAppCode",t=>{this.appCode=t});Ae(this,"getStaffData",({server:t,users:r=[]})=>{this.server=t;const n=`${t}/v1/system/dept/treeselect?deptName=${this.deptSearch}`;fetch(n,{headers:{Authorization:this.appCode}}).then(o=>o.json()).then(o=>{uc(()=>{this.staffData=o.data||[],this.staffExpandKeys=["10000000"]})}),this.staffRows=[]});Ae(this,"onDeptChange",t=>{this.deptSearch=t.target.value});Ae(this,"onDeptSearch",()=>{this.getStaffData({server:this.server,users:this.staffRows})});Ae(this,"onStaffChange",t=>{this.staffSearch=t.target.value});Ae(this,"onStaffSearch",()=>{const t=`${this.server}/v1/system/user/queryList?deptId=${this.staffSelectKeys[0]||""}&nameOrAccount=${this.staffSearch}`;fetch(t,{headers:{Authorization:this.appCode}}).then(r=>r.json()).then(r=>{uc(()=>{var n;this.staffRows=(n=r.data)==null?void 0:n.map(o=>({jobNumber:o.id,username:o.nickName}))})})});Ae(this,"onStaffCheckKeysChange",(t,r)=>{const{checkedNodes:n}=r;let o=n;n.forEach(i=>{const s=this.getAllChildNodes(i).map(u=>u.key);o=o.filter(u=>!s.includes(u.key))}),this.staffCheckedKeys=t});Ae(this,"onStaffSelectKeysChange",(t,r)=>{this.getStaffRows(t),this.staffSelectKeys=t});Ae(this,"getAllChildNodes",t=>{let r=[];return t.children&&t.children.forEach(n=>{r.push(n),n.children&&(r=r.concat(this.getAllChildNodes(n)))}),r});Ae(this,"getStaffRows",t=>{const r=t[0],n=`${this.server}/v1/system/user/queryList?deptId=${r}`;fetch(n,{headers:{Authorization:this.appCode}}).then(o=>o.json()).then(o=>{uc(()=>{var i;this.staffRows=(i=o.data)==null?void 0:i.map(a=>({jobNumber:a.id,username:a.nickName}))})})});Ae(this,"onSelectedRowsChange",t=>{this.isRowSelectd(t)?this.staffSelectdRows=this.staffSelectdRows.filter(r=>r.jobNumber!==t.jobNumber):this.staffSelectdRows=[...this.staffSelectdRows,t]});Ae(this,"isRowSelectd",t=>{const r=t.jobNumber;let n=!1;return this.staffSelectdRows.length&&this.staffSelectdRows.forEach(o=>{o.jobNumber===r&&(n=!0)}),n});Ae(this,"deleteStaffRow",t=>{this.staffSelectdRows.splice(t,1)});Ae(this,"deletDeptRow",(t,r)=>{var o;this.deportRows.splice(t,1);const n=((o=this.deportRows)==null?void 0:o.map(i=>i.key))||[];this.deportCheckedKeys=[...n]});Ae(this,"deletRoleRow",(t,r)=>{var o,i;(o=this.roleSelectdRows)==null||o.splice(t,1);const n=(i=this.roleList)==null?void 0:i.findIndex(a=>a.id==r);this.roleList[n].checked=!1});Ae(this,"clearSelectdRow",()=>{this.staffSelectdRows=[]});Ae(this,"onExpandKeys",t=>{this.staffExpandKeys=t,this.autoExpandParent=!1});Ae(this,"getDepartData",t=>{const r=`${this.server}/v1/system/dept/treeselect?deptName=${this.deptSearch}`,n=(t==null?void 0:t.map(o=>o.key))||[];fetch(r,{headers:{Authorization:this.appCode}}).then(o=>o.json()).then(o=>{uc(()=>{this.deportData=o.data||[],this.deportExpandKeys=["10000000",...n],this.deportCheckedKeys=n,t&&(this.deportRows=t)})})});Ae(this,"onDeportCheckKeysChange",(t,r)=>{const{checkedNodes:n}=r;this.deportRows=n,this.deportCheckedKeys=t});Ae(this,"onDeportSelectKeysChange",(t,r)=>{this.deportSelectKeys=t});Ae(this,"onExpandDeptKeys",t=>{this.deportExpandKeys=t,this.autoExpandParentDept=!1});Ae(this,"clearDeportRow",()=>{this.deportRows=[],this.deportCheckedKeys=[]});Ae(this,"onSelectChange",t=>{this.direction=t});Ae(this,"roleString","");Ae(this,"roleList",[]);Ae(this,"roleSelectdRows",[]);Ae(this,"roleSearch","");Ae(this,"onRoleSearchChange",t=>{this.roleSearch=t.target.value});Ae(this,"onRoleSearch",()=>{const t=`${this.server}/v1/system/role/optionselect`;fetch(t,{headers:{Authorization:this.appCode}}).then(r=>r.json()).then(r=>{uc(()=>{this.roleList=r.data.filter(n=>{var o;return(o=n.roleName)==null?void 0:o.includes(this.roleSearch)})})})});Ae(this,"getRoleList",t=>{const r=`${this.server}/v1/system/role/optionselect`;fetch(r,{headers:{Authorization:this.appCode}}).then(n=>n.json()).then(n=>{uc(()=>{var o;this.roleList=((o=n.data)==null?void 0:o.map(i=>({...i})))||[],this.roleSelectdRows=t})})});Ae(this,"isCascade",!1);Ae(this,"onSwitchChange",t=>{this.isCascade=t});Ae(this,"onRoleRowsChange",t=>{const r=this.roleList.findIndex(n=>n.id==t.id);this.roleList[r].checked=!this.roleList[r].checked,this.roleSelectdRows=this.roleList.filter(n=>n.checked)});Ae(this,"isRoleSelectd",t=>{const r=t.id;let n=!1;return this.roleSelectdRows.length&&this.roleSelectdRows.forEach(o=>{o.id==r&&(n=!0)}),n});Ae(this,"clearRoleRow",()=>{this.roleSelectdRows=[],this.roleList=this.roleList.map(t=>({...t,checked:!1}))});Ae(this,"getStrings",()=>({staffString:this.staffString,deptString:this.deptString,roleString:this.roleString}));Ae(this,"setStrings",(t,r,n)=>{if(this.staffString=t,this.deptString=r,this.roleString=n,t&&typeof t=="string"){const{entries:o}=this.getObjFromString(t);this.staffSelectdRows=o.map(i=>({jobNumber:i.id,username:i.label}))}else this.staffSelectKeys=[],this.staffSelectdRows=[],this.staffCheckedKeys=[];if(r&&typeof r=="string"){const{keys:o,entries:i}=this.getObjFromString(r);this.deportRows=i.map(a=>({key:a.id,title:a.label})),this.deportCheckedKeys=o}else this.deportRows=[],this.deportCheckedKeys=[];if(n&&typeof n=="string"){const{keys:o,entries:i}=this.getObjFromString(n);this.roleSelectdRows=i.map(a=>({roleUniqueCode:a.id,roleName:a.label,checked:!0})),this.roleList=this.roleList.map(a=>({...a,checked:o.includes(a.roleUniqueCode)}))}else this.getRoleList(this.roleList),this.roleSelectdRows=[]});Ae(this,"getObjFromString",t=>{const r=t.split(";").filter(i=>i),n=(r==null?void 0:r.map(i=>i.split(":")[0].split(".")[1]))||[],o=(r==null?void 0:r.map(i=>{const a=i.split(":")[0].split(".")[1],s=i.split(":")[1];return{id:a,label:s}}))||[];return{keys:n,entries:o}});Ae(this,"getDepartInfo",()=>({isCascade:this.isCascade,direction:this.direction}));Ae(this,"setDepartInfo",(t,r)=>{this.isCascade=r,this.direction=Number(t)});Ae(this,"validate",()=>!(this.deportRows.length&&!this.roleSelectdRows.length));Ae(this,"getAllRows",()=>({assignDepts:this.assignDepts,assignRoles:this.assignRoles,assignUsers:this.assignUsers,direction:this.direction,isCascade:this.isCascade}));Ae(this,"setAll",(t,r,n,o,i)=>{this.staffSelectdRows=[...n],this.deportRows=[...t],this.roleSelectdRows=[...r],this.setDepartInfo(o,i)});Ae(this,"setStaff",t=>{this.staffSelectdRows=[...t]});Ae(this,"setDept",(t,r,n)=>{this.deportRows=[...t],this.setDepartInfo(r,n)});Ae(this,"setRoles",t=>{this.roleSelectdRows=[...t]});oY(this,{server:Re,appId:Re,appCode:Re,deptSearch:Re,staffSearch:Re,staffData:Re,staffCheckedKeys:Re,staffSelectKeys:Re,staffExpandKeys:Re,staffRows:Re,staffSelectdRows:Re,defaultExpandKeys:Re,autoExpandParent:Re,staffList:sc,staffString:Re,assignDepts:Re,assignUsers:Re,assignRoles:Re,setAppCode:Dt,getStaffData:Dt,onStaffChange:Dt,onStaffSearch:Dt,onSelectedRowsChange:Dt,clearSelectdRow:Dt,direction:Re,deptString:Re,deportData:Re,deportCheckedKeys:Re,deportSelectKeys:Re,deportExpandKeys:Re,autoExpandParentDept:Re,deportRows:Re,deportList:sc,onDeportCheckKeysChange:Dt,onDeportSelectKeysChange:Dt,clearDeportRow:Dt,onExpandDeptKeys:Dt,roleString:Re,roleSelectdRows:Re,roleList:Re,isCascade:Re,roleSearch:Re,getRoleList:Dt,onSwitchChange:Dt,clearRoleRow:Dt,onRoleRowsChange:Dt,setStrings:Dt,getStrings:Dt,onRoleSearchChange:Dt,onRoleSearch:Dt,setStaff:Dt,setDept:Dt,setRoles:Dt,deletDeptRow:Dt,deleteStaffRow:Dt,deletRoleRow:Dt}),Qb(()=>this.staffSelectdRows.length,()=>{this.assignUsers=this.staffSelectdRows.map(t=>({userId:t.jobNumber,userName:t.username}))}),Qb(()=>this.deportRows.length,()=>{this.assignDepts=this.deportRows.map(t=>({deptId:t.key,deptName:t.title}))}),Qb(()=>this.roleSelectdRows.length,()=>{this.assignRoles=this.roleSelectdRows.map(t=>({roleId:t.id,roleName:t.roleName}))})}get staffList(){var t,r;if((t=this.staffData)!=null&&t.length){const n=o=>{var i;return{key:o.id,title:o.label,children:(i=o.children)==null?void 0:i.map(n)}};return(r=this.staffData)==null?void 0:r.map(n)}else return[]}get deportList(){var t;if(this.deportData.length){const r=n=>{var o;return{key:n.id,title:n.label,children:(o=n.children)==null?void 0:o.map(r)}};return(t=this.deportData)==null?void 0:t.map(r)}else return[]}}function Ywe(e){var x,_,P,q,H,k;const{showDept:t=!0,showRole:r=!0,showUser:n=!0,isCollapse:o=!0}=e,{data:i,appCode:a,server:s,setNodeMap:u,nodeMap:l,type:c,setData:f}=e,[d]=N.useState(xK(()=>new LK)),p=((x=i==null?void 0:i.userIds)==null?void 0:x.split(",").map(M=>M))||[],h=((_=i==null?void 0:i.userNames)==null?void 0:_.split(",").map(M=>M))||[],g=(p==null?void 0:p.map((M,I)=>({jobNumber:M,username:h[I]})))||[],m=((P=i==null?void 0:i.deptIds)==null?void 0:P.split(",").map(M=>M))||[],y=((q=i==null?void 0:i.deptNames)==null?void 0:q.split(",").map(M=>M))||[],v=(m==null?void 0:m.map((M,I)=>({key:M,title:y[I]})))||[],E=((H=i==null?void 0:i.roleIds)==null?void 0:H.split(",").map(M=>M))||[],w=((k=i==null?void 0:i.roleNames)==null?void 0:k.split(",").map(M=>M))||[],S=(E==null?void 0:E.map((M,I)=>({id:M,roleName:w[I]})))||[];Ke.useDeepCompareEffect(()=>{["jumpNode","copyTask"].includes(c||"")?f(ja(d.getAllRows())):(l!=null&&l.get(i.nodeId)&&l.delete(i.nodeId),console.log("da",i,ja(d.getAllRows())),l==null||l.set(i.nodeId,ja(d.getAllRows())),u(l))},[d.getAllRows()]);const C=[{key:"1",label:"人员选择",children:b.jsx(FK,{type:c,users:g,server:s,appCode:a,store:d}),forceRender:!0},{key:"2",label:"部门选择",children:b.jsx(jK,{users:v,server:v,appCode:a,store:d,direction:i.direction,isCascade:i.isCascade}),forceRender:!0},{key:"3",label:"角色选择",children:b.jsx(IK,{users:S,server:v,appCode:a,store:d}),forceRender:!0}];return b.jsx("div",{className:"p-2 w-full h-full",children:b.jsxs(Eu,{condition:o,children:[b.jsx(pi,{children:b.jsx(G.Collapse,{accordion:!0,items:C,defaultActiveKey:"1"})}),b.jsx(di,{children:b.jsxs(AO,{children:[b.jsx(wu,{condition:n,children:b.jsx("div",{className:"border rounded-md p-2",children:b.jsx(FK,{users:g,server:s,appCode:a,store:d})})}),b.jsx(wu,{condition:t,children:b.jsx(jK,{isCascade:i.isCascade,direction:i.direction,users:v,server:v,appCode:a,store:d})}),b.jsx(wu,{condition:r,children:b.jsx(IK,{users:S,server:v,appCode:a,store:d})})]})})]})})}const KD=Pg(Ywe);function Xwe(e){const{pageJson:t,context:{appEnName:r=""}}=rn(),n={Authorization:JSON.parse(localStorage.getItem(`${r}_TOKEN`)),"Content-Type":"application/json"},[o,i]=N.useState(new Map),{procDefKey:a,setData:s,server:u,appCode:l,setId:c}=e,[f,d]=N.useState(),[p,h]=N.useState({}),[g,m]=N.useState("");N.useState();const[y,v]=N.useState([]),[E,w]=N.useState([]),[S,C]=N.useState([]),[x,_]=N.useState("0"),[P,q]=N.useState(!1);N.useState(xK(()=>new LK)),N.useEffect(()=>{H()},[open]);const H=async()=>{var U;const F=(U=(await(await fetch(`${r}/v1/workflow/proc/getUserNodes/${a}`,{headers:n})).json()).data)==null?void 0:U.map(R=>({value:R.nodeId,label:R.nodeName}));d(F)},k=async I=>{var j,W,X,ae,ce,ee;const F=await(await fetch(`${r}/v1/workflow/task/queryNodeUser?procDefKey=${a}&nodeId=${I}`,{headers:n})).json();h((F==null?void 0:F.data)||{});const U=((j=F==null?void 0:F.data.userIds)==null?void 0:j.split(",").map(fe=>fe))||[],R=((W=F==null?void 0:F.data.userNames)==null?void 0:W.split(",").map(fe=>fe))||[],Z=(U==null?void 0:U.map((fe,pe)=>({jobNumber:fe,username:R[pe]})))||[];v(Z);const re=((X=F==null?void 0:F.data.deptIds)==null?void 0:X.split(",").map(fe=>fe))||[],O=((ae=F==null?void 0:F.data.deptNames)==null?void 0:ae.split(",").map(fe=>fe))||[],A=(re==null?void 0:re.map((fe,pe)=>({key:fe,title:O[pe]})))||[];C(A);const V=((ce=F==null?void 0:F.data.roleIds)==null?void 0:ce.split(",").map(fe=>fe))||[],B=((ee=F==null?void 0:F.data.roleNames)==null?void 0:ee.split(",").map(fe=>fe))||[],L=(V==null?void 0:V.map((fe,pe)=>({id:fe,roleName:B[pe]})))||[];w(L),q(p.isCascade),_(p.direction)},M=I=>{I&&(m(I),k(I),c(I))};return b.jsxs("div",{className:"flex w-full flex-col justify-start items-start gap-2",children:[b.jsxs("div",{className:"flex flex-row px-2 w-full items-center",children:[b.jsx("div",{children:"选择节点"}),b.jsx(G.Select,{className:"w-1/3 px-2",value:g,onChange:M,options:f})]}),b.jsx("div",{className:"w-full",children:b.jsx(KD,{type:"jumpNode",nodeMap:o,setNodeMap:i,setData:s,data:p,server:r,appCode:n.Authorization})})]})}const Jwe=Pg(Xwe);function Zwe(e){const{open:t,setOpen:r,data:n,getRefs:o,getDatas:i,validates:a,nodeId:s,busKey:u,taskId:l,formDiaClose:c}=e,{pageJson:f,context:{appEnName:d=""}}=N.useContext(Ta);if(!o)return;const{getFilesRef:p,getFormRef:h,getTablesRef:g}=o(),{workFlowKey:m,workFlowConfig:y,pageCode:v}=f,{buttonCode:E,buttonType:w,buttonName:S}=n,C={Authorization:JSON.parse(localStorage.getItem(`${d}_TOKEN`)),"Content-Type":"application/json"},[x,_]=N.useState([]),[P,q]=N.useState(y==null?void 0:y.defaultOpinion),[H,k]=N.useState(new Map),[M,I]=N.useState([]),[T,F]=N.useState(""),[U,R]=N.useState(),{notification:Z}=G.App.useApp(),{lastNode:re=!1}=y||{};N.useEffect(()=>{t&&!["jumpNode","copyTask"].includes(w)&&!re&&O()},[t]),N.useEffect(()=>{const B=new Map;x==null||x.forEach(L=>{B.set(L.key,{})}),k(B)},[x]);const O=async()=>{var W,X;const L=await(await fetch(`${d}/v1/workflow/task/queryNextUserWithBegin`,{headers:C,method:"POST",body:JSON.stringify({busKey:u,curNodeId:s,procDefKey:m,variables:y!=null&&y.nextCondition?(W=h().current)==null?void 0:W.getForm().getFieldsValue():{}})})).json();L.code!==200&&Z.error({message:L.msg,placement:"top"}),I((L==null?void 0:L.data)||[]);const j=(X=L==null?void 0:L.data)==null?void 0:X.map(ae=>({key:ae.nodeId,label:ae.nodeName,children:b.jsx(KD,{nodeMap:H,setNodeMap:k,data:ae,server:d,type:w,appCode:C.Authorization}),forceRender:!0}));_(j)},A=async()=>{let B={};x==null||x.forEach(X=>{const ae=H.get(X.key),ce={assignDepts:ja(ae.assignDepts),assignRoles:ja(ae.assignRoles),assignUsers:ja(ae.assignUsers),direction:ja(ae.direction),isCascade:ja(ae.isCascade)};B={...B,[X.key]:ce}});let L={...i(),buttonCode:E,pageCode:v,comment:P,nextAssignData:B,nodeId:s,taskId:l};["copyTask"].includes(w)&&(console.log("jumpNodeData",U),L.nextAssignData=void 0,L.assignUsers=U==null?void 0:U.assignUsers),["jumpNode"].includes(w)&&(console.log("jumpNodeData",U),L.nextNodeAssignData=U,L.targetNodeId=T,L.nextAssignData=void 0);const W=await(await fetch(`${d}/lowcode/v1/workflow/${w}`,{headers:C,method:"POST",body:JSON.stringify(L)})).json();W.code==200?(Z.info({message:W.msg,placement:"top"}),Na(Wi.closeTab),Na(Wi.refresh_todo),Na(Wi.refresh_done)):Z.error({message:W.msg,placement:"top"}),V()},V=()=>{r(!1),c&&c()};return b.jsx(G.Modal,{title:S,open:t,width:1200,height:800,onCancel:V,onOk:A,destroyOnClose:!0,children:b.jsxs("div",{className:"flex flex-col gap-2 w-full h-full",children:[b.jsx(Eu,{condition:!["rejectFlow","backToStart"].includes(w),children:b.jsx(pi,{children:b.jsxs(AO,{children:[b.jsx(wu,{condition:w==="copyTask",children:b.jsx(KD,{nodeMap:H,setNodeMap:k,data:(M==null?void 0:M[0])||{},setData:R,server:d,appCode:C.Authorization,isCollapse:!1,showDept:!1,showRole:!1,type:w})}),b.jsx(wu,{condition:w==="jumpNode",children:b.jsx(Jwe,{setId:F,appCode:C.Authorization,server:d,open:t,procDefKey:m,setData:R})}),b.jsx(wu,{condition:["rejectFlow"].includes(w)}),b.jsx(xO,{children:!re&&b.jsx("div",{className:" w-full h-1/3 rounded-md border-solid border-[1px] border-[#ccc] p-1",children:b.jsx(G.Tabs,{className:"tabs-c",style:{height:400},tabPosition:"left",items:x,type:"card"})})})]})})}),b.jsx(_we,{value:P,setValue:q})]})})}const{getParmas:GD}=jo(),WD=N.forwardRef(function(t,r){var V,B,L;const{getDetailReq:n}=hr(),{pageJson:o,editRowKey:i,isOpenComponent:a=!1,className:s,onClose:u,refresh:l,clearEditRowKey:c,open:f,children:d,disabled:p=!1}=t,{form:{formFields:h,tables:g,pageFileTags:m,primaryKey:y,buttons:v}}=o,{notification:E}=G.App.useApp(),{showAlert:w}=Rr.useAlert(),{saveReq:S}=hr(),{renderButton:C}=Sb(),x=!!i,_=N.useRef(),P=N.useRef(),q=N.useRef(),[H,k]=N.useState(!1),[M,I]=N.useState({buttonCode:"",buttonType:"",buttonName:""}),T=GD("nodeId"),F=GD("busKey"),U=GD("taskId");N.useImperativeHandle(r,()=>({validates:R,getDatas:O,getRefs:A,setButtonData:I,setOpenStartFlowDialog:k}));const R=Ke.useMemoizedFn(()=>new Promise(j=>{var W;(W=_.current)==null||W.getForm().validateFields().then(X=>{var ae;(ae=P.current)==null||ae.getSubTablesValidateResults().then(ce=>{var ee;if(ce.includes(!1))w({type:"warning",title:"请检查分录区域校验出错的地方",timeout:3e3}),j(!1);else{const fe=(ee=q.current)==null?void 0:ee.checkFileData();!fe&&w({type:"warning",title:"请检查附件区域校验出错的地方",timeout:3e3}),j(!!fe)}})}).catch(X=>{w({type:"warning",title:"请检查表单区域校验出错的地方",timeout:3e3}),j(!1)})})),Z=j=>{R().then(async W=>{if(!W)return;const X=O(),ae=await S.runAsync({pageCode:o.pageCode,buttonCode:j,...X});ae.code===200?(E.info({message:ae.msg,placement:"top"}),u==null||u(),l==null||l(),x&&(c==null||c())):E.error({message:ae.msg,placement:"top"})})},re=(L=(B=(V=n.data)==null?void 0:V.data)==null?void 0:B.formData)==null?void 0:L.version,O=Ke.useMemoizedFn(()=>{var j,W,X;return{mainTableData:Object.assign(x?{[y]:i}:{},re!==void 0?{version:re}:{},Eb((j=_.current)==null?void 0:j.getForm().getFieldsValue(),o)),subTableData:(W=P.current)==null?void 0:W.getSubTablesList(),fileData:(X=q.current)==null?void 0:X.getFileData()}}),A=Ke.useMemoizedFn(()=>({getFormRef:()=>_,getTablesRef:()=>P,getFilesRef:()=>q}));return N.useLayoutEffect(()=>{var j;!i&&((j=_.current)==null||j.getForm().resetFields())},[x]),Ke.useUpdateEffect(()=>{var j;f&&((j=_.current)==null||j.getTreeDataRefresh())},[f]),N.useEffect(()=>{x&&i&&f&&o.pageCode&&n.runAsync({pageCode:o.pageCode,primaryKeyValue:i,tableCode:o.table.tableCode}).then(j=>{var W,X;if(j.code===200){const ae=YD(j.data.formData,o);(W=_.current)==null||W.getForm().setFieldsValue(ae),(X=q.current)==null||X.setFileData(j.data.fileData)}})},[i,f,o,x]),b.jsxs(b.Fragment,{children:[b.jsxs("section",{className:`sg-table-edit-layout${s?" "+s:""}`,children:[!a&&b.jsx("div",{className:"flex gap-[8px] pt-2 mx-4 justify-end",children:v.map(j=>b.jsx("div",{className:"lowcode-form-header-button-wrapper",children:C(j,{setOpenStartFlowDialog:k,setButtonData:I,getDatas:O,validates:R,saveForm:Z,...t})},j.buttonType))}),d,b.jsx($g,{formFields:h,ref:_,pageJson:o,mode:i?0:1}),b.jsx(d_,{ref:P,editRowKey:i,tables:g,pageJson:o}),b.jsx(vG,{pageFileTags:m,isEditModal:!!i,ref:q,pageJson:o})]}),!p&&b.jsx(Zwe,{formDiaClose:u,nodeId:T,busKey:F,taskId:U,data:M,open:H,validates:R,getDatas:O,getRefs:A,setOpen:k})]})}),Eb=(e,t,r=!0)=>{const n=r?t.form.formFields:t.table.tableFields,o=r?"sqlFieldName":"fieldCode";return n.filter(f=>f.htmlType===te.Switch||f.htmlType===te.CheckBox).map(f=>f[o]).forEach(f=>{En(e[f])&&(e[f]=e[f]===!0?"1":"0")}),n.filter(f=>f.htmlType===te.UserSelect||f.htmlType===te.UserMultiSelect).map(f=>f[o]).forEach(f=>{var d,p;if(((d=e[f])==null?void 0:d.length)>0&&typeof e[f]=="object"){const h=[...e[f]];e[f]=h.map(g=>g.userId).join(","),e[`${f}_usertext`]=h.map(g=>g.userName).join(",")}else((p=e[f])==null?void 0:p.length)===0&&typeof e[f]=="object"&&(e[f]=null)}),n.filter(f=>f.htmlType===te.DeptSelect||f.htmlType===te.DeptMultiSelect).map(f=>f[o]).forEach(f=>{var d,p;((d=e[f])==null?void 0:d.length)>0&&typeof e[f]=="object"?e[f]=e[f].map(h=>h.deptId).join(","):((p=e[f])==null?void 0:p.length)===0&&typeof e[f]=="object"&&(e[f]=null)}),n.filter(f=>f.htmlType===te.PopupSelect||f.htmlType===te.PopupMultiSelect).map(f=>f[o]).forEach(f=>{var d,p;((d=e[f])==null?void 0:d.length)>0&&typeof e[f]=="object"?e[f]=e[f].map(h=>h.id).join(","):((p=e[f])==null?void 0:p.length)===0&&typeof e[f]=="object"&&(e[f]=null)}),n.filter(f=>f.htmlType===te.Upload||f.htmlType===te.Image).map(f=>f[o]).forEach(f=>{var d,p;((d=e[f])==null?void 0:d.length)>0&&typeof e[f]=="object"?e[f]=e[f].map(h=>({url:h.url,name:h.name})):((p=e[f])==null?void 0:p.length)===0&&typeof e[f]=="object"&&(e[f]=null)}),n.filter(f=>f.htmlType===te.Integer||f.htmlType===te.Decimal||f.htmlType===te.Rating).map(f=>f[o]).forEach(f=>{En(e[f])&&typeof e[f]=="string"&&(e[f]=Number(e[f]))}),e},YD=(e,t,r=!0)=>{const n=r?t.form.formFields:t.table.tableFields,o=r?"sqlFieldName":"fieldCode";return n.filter(c=>c.htmlType===te.Switch||c.htmlType===te.CheckBox).map(c=>c[o]).forEach(c=>{e[c]=e[c]==="1"}),n.filter(c=>c.htmlType===te.UserSelect).map(c=>c[o]).forEach(c=>{e[c]=En(e[c])?[{userId:e[c],userName:e[`${c}_usertext`]}]:[]}),n.filter(c=>c.htmlType===te.UserMultiSelect).map(c=>c[o]).forEach(c=>{const f=En(e[`${c}_usertext`])?e[`${c}_usertext`].split(","):"";e[c]=En(e[c])?e[c].split(",").map((d,p)=>({userId:d,userName:f[p]})):[]}),n.filter(c=>c.htmlType===te.PopupSelect).forEach(c=>{e[c[o]]=En(e[c[o]])?[{[c.openComponent.matchValueColumn]:e[c[o]],[c.openComponent.matchTextColumn]:e[`${c[o]}__${c.openComponent.matchTextColumn}`]}]:[]}),n.filter(c=>c.htmlType===te.PopupMultiSelect).forEach(c=>{const f=e[`${c[o]}__${c.openComponent.matchTextColumn}`],d=En(f)?f.split(","):[];e[c[o]]=En(e[c[o]])?e[c[o]].split(",").map((p,h)=>({[c.openComponent.matchValueColumn]:p,[c.openComponent.matchTextColumn]:d[h]})):[]}),e};function Sb(){const{context:e}=rn(),{deleteReq:t,savaTable:r,saveSubTable:n,custom:o,getrolePermis:i,revokeFlow:a,finishCopyTask:s}=hr(),{showAlert:u}=Rr.useAlert(),{downloadServerFileReq:l}=Rr.useFile(e),{modal:c}=G.App.useApp(),f=N.useMemo(()=>i(),[]),d=N.useRef(null);return{renderButton:(h,g)=>{const{openAddDrawer:m,setOpenImportDialog:y,setOpenStartFlowDialog:v,setButtonData:E,action:w,getAction:S,rows:C,latestSelectedKey:x,openEdit:_,removeRow:P,getSearch:q,record:H,pageJson:k,getSelectedRows:M,saveForm:I,resetForm:T,getForm:F,getInlineForm:U,validates:R,isRowButton:Z=!1,isTableHeaderButton:re=!1,getDatas:O,onClose:A,getEditorForm:V,toggleHeaderSearch:B,refresh:L}=g,{buttonName:j,buttonType:W,buttonCode:X,blackRoles:ae=[],frontComponent:ce,...ee}=h,fe=(k==null?void 0:k.table.primaryKey)||"id",ie=!!(k!=null&&k.table.isSub)&&(k==null?void 0:k.form.disabled),xe=r_(()=>{w==null||w.addEditRecord({[fe]:QD()},{position:"bottom",newRecordType:"dataSource"})},200),[Xe,Le]=Fb(f,ae);C&&(d.current=C);const Oe=Object.assign({code:W,type:"primary",size:"middle",hidden:Xe,buttonName:j,disabled:ie||Le,isRowButton:Z,isTableHeaderButton:re,frontComponent:ce,...ee},ce?Z?{isRowEdit:(H==null?void 0:H.index)!==void 0,getAction:S,refresh:L,getRow:()=>H,getEditRow:()=>{var le,de;return(de=(le=V==null?void 0:V())==null?void 0:le.getRowData)==null?void 0:de.call(le,H.index)},setEditRow:le=>{var de,ke;return(ke=(de=V==null?void 0:V())==null?void 0:de.setRowData)==null?void 0:ke.call(de,H.index,le)},cancelEditable:()=>w==null?void 0:w.cancelEditable(H[fe]),startEditable:()=>w==null?void 0:w.startEditable(H[fe]),removeRow:P,getForm:()=>V==null?void 0:V()}:re?{getAction:()=>w,getSelectedRows:()=>d.current.selectedRows,getSelectedRowKeys:()=>d.current.selectedRowKeys,getEditRows:()=>{var le,de;return(de=(le=V==null?void 0:V())==null?void 0:le.getRowsData)==null?void 0:de.call(le)},getEditRow:le=>{var de,ke;return(ke=(de=V==null?void 0:V())==null?void 0:de.getRowData)==null?void 0:ke.call(de,le)},setEditRow:(le,de)=>{var ke,je;return(je=(ke=V==null?void 0:V())==null?void 0:ke.setRowData)==null?void 0:je.call(ke,le,de)},getForm:()=>V==null?void 0:V()}:{getForm:F,onClose:A,getDatas:O,validates:R}:{}),ue=Oe.disabled||!!(H!=null&&H.flow_node_id)&&(H==null?void 0:H.flow_node_id)!=="draft",Ie=le=>{let de=le;return new URL(le.replace("#","")).searchParams.forEach((je,ve)=>{je.startsWith("${")&&(de=de.replace(je,H[ve]))}),de};switch(W){case wt.tableSave:return b.jsx(kt,{...Oe,onClick:()=>{if(M().length===0){c.warning({title:"操作失败",content:"请至少选择一条记录后再操作!",centered:!0,transitionName:"import-modal-transition",maskTransitionName:"import-modal-mask-transition",className:"p-modal-wrapper",onCancel:()=>null,okButtonProps:{className:"rounded-[3px] !px-[10px]"}});return}r.runAsync({buttonCode:X,mainTableData:M().map(ve=>{var Bt;const Qe={};let et=Object.keys(ve);const Et=k.table.primaryKey;return et.includes(Et)||(et=[...et,Et]),et.forEach(De=>{Qe[wd(De,k.table.tableFields.filter(Me=>Me.fieldCode!=="id"))]=ve[De]}),(Bt=ve.id)!=null&&Bt.startsWith(oo)?{...Qe,id:ve.id}:Qe}).map(ve=>Eb(ve,k)),pageCode:k==null?void 0:k.pageCode}).then(ve=>{ve.code===200&&(u({type:"success",title:"保存成功",timeout:2e3}),w==null||w.reload())})},icon:b.jsx("svg",{className:"icon inline-block",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"41642",width:"32",height:"32",children:b.jsx("path",{d:"M448.64 855.68L64 471.04l135.68-135.68 248.96 248.96 386.08-386.08 135.68 135.84-521.76 521.6z","p-id":"41643"})}),children:j});case wt.subTableSave:return b.jsx(kt,{...Oe,onClick:()=>{if(M().length===0){c.warning({title:"操作失败",content:"请至少选择一条记录后再操作!",centered:!0,transitionName:"import-modal-transition",maskTransitionName:"import-modal-mask-transition",className:"p-modal-wrapper",onCancel:()=>null,okButtonProps:{className:"rounded-[3px] !px-[10px]"}});return}n.runAsync({buttonCode:X,tableData:M().map(ve=>{var Et;const Qe={};let et=Object.keys(ve);return k.table.primaryKey,et.forEach(Bt=>{Qe[wd(Bt,k.table.tableFields.filter(De=>De.fieldCode!=="id"))]=ve[Bt]}),(Et=ve.id)!=null&&Et.startsWith(oo)?{...Qe,id:ve.id}:Qe}).map(ve=>Eb(ve,k)),pageCode:k==null?void 0:k.pageCode,tableCode:k==null?void 0:k.table.tableCode,primaryKeyValue:x==null?void 0:x.current}).then(ve=>{ve.code===200&&(w==null||w.reload(),u({type:"success",title:"保存成功",timeout:2e3}))})},icon:b.jsx("svg",{className:"icon inline-block",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"41642",width:"32",height:"32",children:b.jsx("path",{d:"M448.64 855.68L64 471.04l135.68-135.68 248.96 248.96 386.08-386.08 135.68 135.84-521.76 521.6z","p-id":"41643"})}),children:j});case wt.formSave:return b.jsx(kt,{...Oe,onClick:()=>{I==null||I(X)},icon:b.jsx("svg",{className:"icon inline-block",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"41642",width:"32",height:"32",children:b.jsx("path",{d:"M448.64 855.68L64 471.04l135.68-135.68 248.96 248.96 386.08-386.08 135.68 135.84-521.76 521.6z","p-id":"41643"})}),children:j});case wt.frontReset:return b.jsx(kt,{...Oe,onClick:T,icon:b.jsx("svg",{className:"icon inline-block",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7815",width:"32",height:"32",children:b.jsx("path",{d:"M752.128 28.306286l181.540571 188.708571-181.467428 174.006857zM268.068571 512L147.236571 632.905143v-362.788572A120.832 120.832 0 0 1 268.068571 149.211429h483.693715v120.905142H268.068571V512z m59.538286 483.766857l-181.467428-188.708571 181.467428-174.153143z m484.644572-121.051428H328.704v-120.905143h483.693714V512l120.905143-120.905143v362.715429a120.905143 120.905143 0 0 1-120.978286 120.905143z","p-id":"7816"})}),children:j});case wt.custom:return b.jsx(kt,{loading:o.loading,onClick:async()=>{const ve=await o.runAsync({buttonCode:X,pageCode:k.pageCode,pkValues:C.selectedRowKeys||[],tableCode:k.table.tableCode});ve.code!==200?u({type:"warning",title:"出错了",description:ve.msg,timeout:2e3}):w==null||w.reload()},...Oe,icon:b.jsx("svg",{className:"icon inline-block",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16519",width:"32",height:"32",children:b.jsx("path",{d:"M811.885714 768v106.057143c0 27.428571-10.971429 54.857143-31.085714 74.971428-20.114286 20.114286-47.542857 31.085714-74.971429 31.085715h-128c-3.657143 0-5.485714 0-7.314285-1.828572-1.828571-1.828571-5.485714-1.828571-7.314286-5.485714-1.828571-1.828571-3.657143-3.657143-5.485714-7.314286-1.828571-1.828571-1.828571-5.485714-1.828572-7.314285v-21.942858c0-74.971429-43.885714-128-128-128s-128 53.028571-128 128v21.942858c0 5.485714-1.828571 10.971429-5.485714 14.628571-3.657143 3.657143-9.142857 5.485714-14.628571 5.485714h-128c-14.628571 0-27.428571-3.657143-40.228572-7.314285-16.457143-3.657143-27.428571-10.971429-38.4-20.114286-9.142857-9.142857-18.285714-21.942857-23.771428-34.742857s-7.314286-27.428571-7.314286-40.228572v-128c0-5.485714 1.828571-10.971429 5.485714-14.628571 3.657143-3.657143 9.142857-5.485714 14.628572-5.485714h42.057142c58.514286 0 106.057143-54.857143 106.057143-128s-47.542857-128-106.057143-128H64c-5.485714 0-10.971429-1.828571-14.628571-5.485715-3.657143-3.657143-5.485714-9.142857-5.485715-14.628571v-128c0-27.428571 10.971429-54.857143 31.085715-74.971429 20.114286-20.114286 47.542857-31.085714 74.971428-31.085714H256c0-96.914286 60.342857-170.057143 170.057143-170.057143 107.885714 0 171.885714 74.971429 171.885714 170.057143h106.057143c27.428571 0 54.857143 10.971429 74.971429 31.085714 20.114286 20.114286 31.085714 47.542857 31.085714 74.971429v106.057143h20.114286c84.114286 0 149.942857 74.971429 149.942857 170.057143 0 95.085714-65.828571 170.057143-149.942857 170.057142l-18.285715-1.828571z","p-id":"16520"})}),children:j});case wt.multiDelete:return b.jsx(kt,{...Oe,onClick:async()=>{var Bt;const ve=(Bt=d.current)==null?void 0:Bt.selectedRowKeys;if((ve==null?void 0:ve.length)===0){c.warning({title:"操作失败",content:"请至少选择一条记录后再操作!",centered:!0,transitionName:"import-modal-transition",maskTransitionName:"import-modal-mask-transition",className:"p-modal-wrapper",onCancel:()=>null,okButtonProps:{className:"rounded-[3px] !px-[10px]"}});return}if(!await c.confirm({title:"请确认是否批量删除选中的记录?",content:"批量删除成功后会刷新列表,未保存的数据会丢失",okText:"确定",cancelText:"取消",centered:!0,forceRender:!0,className:"p-modal-wrapper",transitionName:"import-modal-transition",maskTransitionName:"import-modal-mask-transition",cancelButtonProps:{className:"rounded-[3px] !px-[10px]"},okButtonProps:{className:"rounded-[3px] !px-[10px]"}}))return;ve.filter(De=>De.startsWith(oo));const et=ve.filter(De=>!De.startsWith(oo));let Et;et.length>0&&(Et=await t.runAsync({deleteIds:et,pageCode:k.pageCode,tableCode:k.table.tableCode,tombstone:!1,buttonCode:X}),Et.code===200?(u({type:"success",title:"删除成功",timeout:2e3}),w==null||w.reload()):u({type:"warning",title:"删除失败",description:Et.msg,timeout:2e3}))},icon:b.jsx("svg",{className:"icon inline-block",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11440",width:"32",height:"32",children:b.jsx("path",{d:"M170.6496 341.3504H128A42.6496 42.6496 0 0 1 128 256h768a42.6496 42.6496 0 1 1 0 85.3504h-42.6496v469.2992a128 128 0 0 1-128 128H298.6496a128 128 0 0 1-128-128V341.3504z m170.7008-256h341.2992a42.6496 42.6496 0 1 1 0 85.2992H341.3504a42.6496 42.6496 0 1 1 0-85.2992zM384 426.6496a42.6496 42.6496 0 0 0-42.6496 42.7008v256a42.6496 42.6496 0 1 0 85.2992 0v-256a42.6496 42.6496 0 0 0-42.6496-42.7008z m256 0a42.6496 42.6496 0 0 0-42.6496 42.7008v256a42.6496 42.6496 0 1 0 85.2992 0v-256a42.6496 42.6496 0 0 0-42.6496-42.7008z","p-id":"11441"})}),danger:!0,children:j});case wt.frontFullScreen:return b.jsx(kt,{...Oe,disabled:!1,onClick:()=>{var ve;return(ve=w==null?void 0:w.fullScreen)==null?void 0:ve.call(w)},icon:b.jsx("svg",{className:"icon inline-block",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11244",width:"32",height:"32",children:b.jsx("path",{d:"M990.816 698.7712h-0.0832c2.2272 19.0656 4.7104 40.4352 7.6672 64.1664 2.912 23.6928 5.6576 47.8528 8.224 72.6976 2.5152 24.6336 5.2544 49.248 8.224 73.8304l7.6736 66.2272c4.288 34.2656-10.5856 50.3296-44.9024 48.1024a1944.896 1944.896 0 0 1-61.824-5.9968c-23.0016-2.5664-46.4832-5.312-70.6048-8.224l-71.68-8.6976a4812.9408 4812.9408 0 0 0-65.12-7.7056c-21.1648-2.144-34.6176-8.1856-40.4864-18.08-5.8688-9.7664-2.5728-20.9472 9.856-33.3248 7.968-7.3216 17.8624-17.344 29.5616-30.112 11.6928-12.768 21.504-23.1296 29.5616-31.1424 7.968-8.7808 10.5408-16.704 7.6288-24.0768a87.808 87.808 0 0 0-17.4848-25.2288l-55.7824-53.5872a1896.992 1896.992 0 0 1-55.9104-55.7696 252.4416 252.4416 0 0 1-13.1072-14.2656 53.8496 53.8496 0 0 1-9.856-16.96 35.8912 35.8912 0 0 1-1.0688-19.6672c1.4528-6.9376 6.1696-14.3872 14.2208-22.4a309.376 309.376 0 0 0 10.9248-11.52c2.7456-3.1104 5.6768-6.0416 8.7872-8.7872a193.5168 193.5168 0 0 0 21.888-22.4448c14.5664-14.56 28.1088-20.7744 40.448-18.5472 12.4224 2.144 25.92 10.5408 40.4864 25.1008 14.656 14.656 29.568 29.4272 44.9024 44.3392a5804.704 5804.704 0 0 1 51.4112 50.8864c13.9264 13.152 25.7472 22.272 35.5584 27.4176 9.856 5.056 19.5392 2.8672 29.0048-6.5984a908.864 908.864 0 0 1 24.64-23.5584 836.5184 836.5184 0 0 0 25.792-24.5888c12.3392-12.4224 23.4752-17.1328 33.3312-14.2208 9.856 2.912 15.8528 13.8752 18.1184 32.768v-0.032zM53.8624 359.6864c-9.4656-2.9568-15.3344-13.8816-17.472-32.8128A4898.1632 4898.1632 0 0 0 28.672 262.912c-2.784-23.776-5.568-47.9744-8.1408-72.7744a4278.784 4278.784 0 0 0-8.224-73.8944c-2.912-24.416-5.4016-46.4768-7.6288-66.2208-2.0992-18.9376 0.1728-32.128 7.1552-39.4112C18.7328 3.328 30.944 0.4224 48.384 1.8368c18.2528 1.408 38.912 3.4688 61.824 5.9968 23.008 2.5664 46.5728 5.312 70.6112 8.224l71.68 8.6976c23.6864 2.9504 45.4144 5.5232 65.12 7.7056 21.8496 2.1888 35.5584 8.1856 41.0432 18.08 5.5296 9.7664 2.016 20.9472-10.4512 33.3248a808.448 808.448 0 0 0-26.7776 28.4416 770.2784 770.2784 0 0 1-27.8528 29.5552c-8.8256 8.7872-11.648 16.704-8.8256 24.1216 2.9568 7.2768 9.1264 15.68 18.6368 25.1008a438.7712 438.7712 0 0 0 26.8224 26.816c16.9664 15.5072 33.5488 31.3536 49.7856 47.6288l27.4176 27.3728c4.288 4.288 8.576 9.472 12.512 15.3344a59.3728 59.3728 0 0 1 8.7808 18.5472c1.824 6.848 1.632 14.08-0.5568 20.8192a53.5424 53.5424 0 0 1-14.2208 21.888l-12.0384 12c-2.8288 2.8224-5.568 5.7792-8.2304 8.7808-2.8352 3.1616-5.952 6.0736-9.2928 8.6912L372.3264 412.16c-14.5664 14.6496-27.2064 20.0896-37.7024 16.3648-10.624-3.6032-23.2256-12.7232-37.792-27.2896a4158.3232 4158.3232 0 0 0-41.5424-41.0688 3415.6288 3415.6288 0 0 1-48.1536-47.584 144.0768 144.0768 0 0 0-35.0848-27.328c-10.1568-5.1392-20.0128-2.912-29.4784 6.5536a385.6256 385.6256 0 0 1-27.4176 26.816 884.9728 884.9728 0 0 0-28.4096 26.7712C74.3232 357.824 63.36 362.5344 53.888 359.616l-0.0256 0.064zM909.888 8.4288c23.9872-2.912 45.9264-5.4784 65.5488-7.6672 18.9824-2.1376 32.128 0.2176 39.5008 7.1104 7.2384 6.9824 10.1568 19.5392 8.704 37.7856-1.376 18.2016-3.4752 38.8096-6.0032 61.8112-2.5728 23.0016-5.312 46.4768-8.224 70.5472l-8.7872 71.712c-2.8672 23.68-5.44 45.4016-7.6672 65.1072-2.0992 21.12-8.1408 34.656-17.9968 40.4352-9.856 5.824-20.992 2.2272-33.4144-10.9632-7.2832-7.2832-16.7552-16.1472-28.4096-26.7712a843.8848 843.8848 0 0 1-29.5616-27.84c-8.7808-8.1408-16.7936-10.8416-24.1216-8.2688-7.232 2.5664-15.68 8.5632-25.1008 18.0736-19.712 19.6608-37.0624 37.568-51.968 53.5872-15.0016 16.0192-32.736 34.272-53.1328 54.7008a104.896 104.896 0 0 1-15.3344 12.5504 61.9328 61.9328 0 0 1-18.6368 8.7808 36.8512 36.8512 0 0 1-20.7808-0.5568 50.2144 50.2144 0 0 1-21.8496-15.3344 276.0512 276.0512 0 0 0-11.5264-10.9248 217.5104 217.5104 0 0 1-9.2544-8.6912c-3.0272-3.0208-6.144-5.952-9.344-8.7808a154.1312 154.1312 0 0 1-12.544-13.1072c-14.656-14.656-20.4416-27.4176-17.5296-38.336 2.9568-10.9696 12-23.7376 27.3344-38.2976l41.6448-43.7376c13.8368-14.6496 30.2464-31.3984 49.184-50.3296 13.9712-13.1072 23.3536-24.8448 28.448-35.0016 5.1456-10.2784 2.5728-19.6992-7.6672-28.5248a780.6912 780.6912 0 0 1-25.1072-26.7328 734.4384 734.4384 0 0 0-26.2592-27.8848c-12.4288-12.416-17.1392-23.3472-14.2272-32.896 2.8736-9.472 13.7984-15.3344 32.7744-17.4336l64.0064-7.6672c24.416-3.0336 48.8704-5.7792 73.3504-8.224a4099.648 4099.648 0 0 0 73.9072-8.2304h0.0448zM347.776 591.1232c6.976 1.8048 14.4384 6.688 22.4512 14.6944 4.4096 4.416 8.224 8.096 11.52 10.9696 3.2576 2.912 6.3424 5.824 9.2544 8.7808l8.7872 9.8048 13.1072 12.0384c14.656 14.656 20.992 27.8848 19.1488 39.968-1.792 12.032-10.4512 25.7024-25.7024 41.0368a4490.3232 4490.3232 0 0 0-43.7888 44.3328c-15.3344 15.68-32.4736 32.9856-51.4112 51.9168-13.152 13.1968-21.376 23.904-24.64 32.3008-3.296 8.352-0.2112 17.344 9.2608 26.816 7.3216 6.5536 15.552 14.7776 24.6784 24.5824a789.3824 789.3824 0 0 0 24.6336 25.792c12.4224 12.3328 16.9216 23.296 13.664 32.768-3.296 9.472-14.4384 15.3344-33.4144 17.5168-18.944 2.2272-40.064 4.7168-63.4112 7.6672-23.392 2.9184-47.6416 5.824-72.832 8.7872l-74.4192 8.6912c-24.4224 2.912-46.4896 5.5296-66.24 7.6672-18.1632 1.4592-31.1488-1.28-38.816-8.1344-7.6672-6.9824-10.7072-19.1936-9.2544-36.672 1.3696-18.2912 3.4304-38.8928 5.9968-61.856 2.5728-22.9568 5.2736-46.5152 8.2304-70.592l8.6976-71.616c2.912-23.7376 5.4848-45.4528 7.6672-65.1136 2.2272-21.888 8.224-35.552 18.1248-41.0816 9.7664-5.4784 20.9088-2.0096 33.3312 10.496 7.2832 7.2384 17.3504 16.704 30.1184 28.352 12.7232 11.6992 23.136 21.5552 31.1488 29.568 8.7808 8.7744 16.0192 12.544 21.8496 11.4752 5.9136-1.1136 13.1968-6.4256 21.9328-15.8528a3221.1648 3221.1648 0 0 0 27.424-27.9232 1943.552 1943.552 0 0 1 26.176-26.816 1841.088 1841.088 0 0 0 26.816-27.328c9.088-9.472 18.8544-19.2768 29.0112-29.5616 4.416-4.3648 9.0816-8.7808 14.2208-13.1072a52.288 52.288 0 0 1 16.9664-9.856 32.8256 32.8256 0 0 1 19.712-0.512z"})})});case wt.frontAdd:return b.jsx(kt,{...Oe,onClick:m,icon:b.jsx("svg",{className:"icon inline-block text-[12px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",children:b.jsx("path",{d:"M966.851 438.134h-376.615v-376.617h-149.453v376.617h-379.61v149.451h379.61v379.61h149.451v-379.61h376.617v-149.451zM966.851 438.134z"})}),children:j});case wt.frontEdit:return b.jsx(kt,{...Oe,disabled:ue,icon:b.jsx("svg",{className:"icon inline-block mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9105",width:"32",height:"32",children:b.jsx("path",{d:"M618.666667 192l213.333333 213.333333 89.002667-89.002666a85.333333 85.333333 0 0 0 0-120.661334l-92.672-92.672a85.333333 85.333333 0 0 0-120.661334 0L618.666667 192zM95.872 901.76l71.765333-251.136a42.666667 42.666667 0 0 1 10.837334-18.432L554.666667 256l213.333333 213.333333-376.192 376.192a42.666667 42.666667 0 0 1-18.432 10.837334l-251.136 71.765333a21.333333 21.333333 0 0 1-26.368-26.368z","p-id":"9106"})}),onClick:()=>{if(ue)return;const ve=k.table.primaryKey;_(H[ve])},children:j});case wt.frontOpenInlineEdit:return b.jsx(kt,{...Oe,onClick:()=>{w==null||w.startEditable(H[fe])},children:j});case wt.delete:return b.jsx(G.Popconfirm,{disabled:ue,title:"确认操作",description:"请确认是否继删除该条记录操作?",onConfirm:async()=>{if(H[fe].startsWith(oo)){P==null||P();return}const Qe=await t.runAsync({deleteIds:[H[fe]],pageCode:k.pageCode,tableCode:k.table.tableCode,tombstone:!1,buttonCode:X});Qe.code===200?(u({type:"success",title:"删除成功",timeout:2e3}),P?P():w==null||w.reload()):u({type:"warning",title:"删除失败",description:Qe.msg,timeout:2e3})},okText:"确认",cancelText:"取消",children:b.jsx(kt,{...Oe,disabled:ue,icon:b.jsx("svg",{className:"icon inline-block mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11440",width:"32",height:"32",children:b.jsx("path",{d:"M170.6496 341.3504H128A42.6496 42.6496 0 0 1 128 256h768a42.6496 42.6496 0 1 1 0 85.3504h-42.6496v469.2992a128 128 0 0 1-128 128H298.6496a128 128 0 0 1-128-128V341.3504z m170.7008-256h341.2992a42.6496 42.6496 0 1 1 0 85.2992H341.3504a42.6496 42.6496 0 1 1 0-85.2992zM384 426.6496a42.6496 42.6496 0 0 0-42.6496 42.7008v256a42.6496 42.6496 0 1 0 85.2992 0v-256a42.6496 42.6496 0 0 0-42.6496-42.7008z m256 0a42.6496 42.6496 0 0 0-42.6496 42.7008v256a42.6496 42.6496 0 1 0 85.2992 0v-256a42.6496 42.6496 0 0 0-42.6496-42.7008z","p-id":"11441"})}),danger:!0,className:"text-[#f53535] cursor-pointer",children:j})});case wt.frontAddRow:return b.jsx(kt,{...Oe,onClick:xe,icon:b.jsx("svg",{className:"icon inline-block",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"100433",width:"32",height:"32",children:b.jsx("path",{d:"M0.064 991.504v-170.56h1023.344v170.56H0.048z m597.12-367.68h-170.56V453.28h-170.56V282.72h170.56V112.16h170.56v170.56h170.56v170.56h-170.56v170.56z","p-id":"100434"})}),children:j});case wt.frontRefresh:return b.jsx(kt,{...Oe,onClick:()=>{w==null||w.reload()},children:j});case wt.frontImport:return b.jsx(kt,{...Oe,onClick:()=>y(!0),icon:b.jsxs("svg",{className:"icon inline-block text-[12px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16549",width:"32",height:"32",children:[b.jsx("path",{d:"M0 0h1024v1024H0z",fill:"#FFFFFF",fillOpacity:".01"}),b.jsx("path",{d:"M182.857143 731.428571a36.571429 36.571429 0 0 1 36.571428 36.571429v36.571429h585.142858v-36.571429a36.571429 36.571429 0 0 1 36.571428-36.571429h73.142857a36.571429 36.571429 0 0 1 36.571429 36.571429v146.285714a36.571429 36.571429 0 0 1-29.988572 35.986286L914.285714 950.857143h-804.571428a36.571429 36.571429 0 0 1-36.571429-36.571429v-146.285714a36.571429 36.571429 0 0 1 36.571429-36.571429h73.142857z m18.944-658.285714l5.046857 0.658286c154.916571 7.094857 442.294857 60.562286 442.294857 360.009143h99.474286a19.382857 19.382857 0 0 1 17.554286 10.093714 16.749714 16.749714 0 0 1-2.56 19.017143L537.014857 719.286857a37.741714 37.741714 0 0 1-27.428571 12.068572 37.888 37.888 0 0 1-27.794286-11.410286L255.122286 462.848a16.822857 16.822857 0 0 1-3.291429-19.456 19.382857 19.382857 0 0 1 18.066286-10.24h98.742857v-17.993143c-5.997714-152.722286-56.758857-250.148571-171.885714-307.565714-10.166857-2.56-16.091429-12.214857-13.312-21.577143 2.779429-9.289143 13.165714-14.774857 23.332571-12.214857L201.728 73.142857z"})]}),children:j});case wt.export:return b.jsx(kt,{...Oe,onClick:async()=>{await c.confirm({title:"请确认",content:"是否按照当前列表过滤和排序结果导出?",okText:"确定",cancelText:"取消",centered:!0,forceRender:!0,className:"p-modal-wrapper",transitionName:"import-modal-transition",maskTransitionName:"import-modal-mask-transition",cancelButtonProps:{className:"rounded-[3px] !px-[10px]"},okButtonProps:{className:"rounded-[3px] !px-[10px]"}})&&l(`/${e.appEnName}/lowcode/v1/resolve/export`,{body:JSON.stringify(q())})},icon:b.jsx("svg",{className:"icon inline-block text-[12px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"30311",width:"32",height:"32",children:b.jsx("path",{d:"M81.408 942.08v-193.536h94.208v64.512h666.624v-64.512h93.696V942.08zM844.8 428.544l-223.232-2.56v290.304H398.848V431.616H175.616L505.856 81.92z"})}),children:j});case wt.frontCopy:return b.jsx(kt,{...Oe,onClick:async()=>{const ve=C==null?void 0:C.selectedRows;if((ve==null?void 0:ve.length)===0){c.warning({title:"操作失败",content:"请至少选择一条记录后再操作!",centered:!0,transitionName:"import-modal-transition",maskTransitionName:"import-modal-mask-transition",className:"p-modal-wrapper",onCancel:()=>null,okButtonProps:{className:"rounded-[3px] !px-[10px]"}});return}if(await c.confirm({title:"请确认",content:"是否需要复制选中的记录?",okText:"确定",cancelText:"取消",centered:!0,forceRender:!0,transitionName:"import-modal-transition",className:"p-modal-wrapper",maskTransitionName:"import-modal-mask-transition",cancelButtonProps:{className:"rounded-[3px] !px-[10px]"},okButtonProps:{className:"rounded-[3px] !px-[10px]"}})){const et=C==null?void 0:C.selectedRows;et==null||et.reverse().forEach((Et,Bt)=>{setTimeout(()=>{const De=QD();w==null||w.addEditRecord({...Et,id:De},{position:"top",newRecordType:"dataSource"})},50*Bt)})}},icon:b.jsxs("svg",{className:"icon inline-block",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"50665",width:"32",height:"32",children:[b.jsx("path",{d:"M293.568 486.784C288 528 288 578.688 288 633.92v95.36c0 12.672 0 18.944-4.096 22.784-4.096 3.776-10.24 3.328-22.528 2.432a504.768 504.768 0 0 1-30.336-3.072c-40.96-5.504-74.944-16.576-103.616-40.128a202.816 202.816 0 0 1-28.096-28.032c-24.832-30.272-35.712-66.496-40.96-110.464C53.312 529.92 53.312 475.776 53.312 407.424v-4.16c0-68.352 0-122.56 5.12-165.376 5.12-44.032 16.064-80.192 40.96-110.464 8.32-10.24 17.792-19.648 28.032-28.096 30.272-24.832 66.496-35.712 110.464-40.96C280.768 53.312 334.912 53.312 403.2 53.312h4.16c68.352 0 122.496 0 165.376 5.12 43.968 5.12 80.192 16.064 110.464 40.96 10.24 8.32 19.648 17.792 28.032 28.032 23.552 28.672 34.56 62.72 40.128 103.68 1.28 9.472 2.304 19.584 3.072 30.272 0.896 12.288 1.344 18.432-2.432 22.528-3.84 4.096-10.112 4.096-22.784 4.096h-95.36c-55.232 0-105.856 0-147.2 5.568-45.44 6.08-93.568 20.48-133.12 60.032-39.552 39.552-53.952 87.68-60.032 133.12z","p-id":"50666"}),b.jsx("path",{d:"M684.992 352h-47.36c-58.304 0-105.344 0-142.336 4.992-38.4 5.12-70.72 16.192-96.448 41.856-25.664 25.728-36.736 58.048-41.856 96.448C352 532.288 352 579.328 352 637.632v47.36c0 58.368 0 105.408 4.992 142.4 5.12 38.4 16.192 70.72 41.856 96.384 25.728 25.728 58.048 36.736 96.448 41.92 36.992 4.992 84.032 4.992 142.336 4.992h47.36c58.368 0 105.408 0 142.4-4.992 38.4-5.12 70.72-16.192 96.384-41.92 25.728-25.6 36.736-57.984 41.92-96.384 4.992-36.992 4.992-84.032 4.992-142.4v-47.36c0-58.304 0-105.344-4.992-142.336-5.12-38.4-16.192-70.72-41.92-96.448-25.6-25.664-57.984-36.736-96.384-41.856-36.992-4.992-84.032-4.992-142.4-4.992z","p-id":"50667"})]}),children:j});case wt.frontCancelInlineEdit:return b.jsx(kt,{...Oe,onClick:()=>{const ve=k.table.primaryKey;_(H[ve])},children:j});case wt.startFlow:return b.jsx(kt,{...Oe,onClick:async()=>{await R()&&(E({buttonCode:X,buttonType:W,buttonName:j}),v(!0))},children:h.buttonName});case wt.nextFlow:return b.jsx(kt,{...Oe,onClick:async()=>{await R()&&(E({buttonCode:X,buttonType:W,buttonName:j}),v(!0))},children:h.buttonName});case wt.rejectFlow:return b.jsx(kt,{...Oe,onClick:async()=>{await R()&&(E({buttonCode:X,buttonType:W,buttonName:j}),v(!0))},children:h.buttonName});case wt.backToStart:return b.jsx(kt,{...Oe,onClick:async()=>{await R()&&(E({buttonCode:X,buttonType:W,buttonName:j}),v(!0))},children:h.buttonName});case wt.copyTask:return b.jsx(kt,{...Oe,onClick:async()=>{await R()&&(E({buttonCode:X,buttonType:W,buttonName:j}),v(!0))},children:h.buttonName});case wt.finishCopyTask:return b.jsx(kt,{...Oe,onClick:async()=>{if(!await R())return;const Qe={...O(),buttonCode:X,pageCode:k==null?void 0:k.pageCode,nodeId:jo().getParmas("nodeId"),taskId:jo().getParmas("taskId")};s(JSON.stringify(Qe))},children:h.buttonName});case wt.jumpNode:return b.jsx(kt,{...Oe,onClick:async()=>{await R()&&(E({buttonCode:X,buttonType:W,buttonName:j}),v(!0))},children:h.buttonName});case wt.backToNode:return b.jsx(kt,{...Oe,onClick:async()=>{await R()&&(E({buttonCode:X,buttonType:W,buttonName:j}),v(!0))},children:h.buttonName});case wt.frontLink:const{linkType:le,openWay:de,linkUrl:ke,pageCode:je}=h.openLink||{};return b.jsx(kt,{...Oe,onClick:()=>{switch(de){case bd.popupTag:le===yd.editComponent||le===yd.detailComponent?je?Na(Wi.openTab,{detail:{pageCode:je,query:le===yd.editComponent?`&action=edit&id=${H[fe]}`:`&action=detail&id=${H[fe]}`,params:{state:j}}}):u({type:"warning",title:`跳转页签找不到低代码页面参数pageCode【${je}】`,timeout:3e3}):le===yd.innerLink?ke?Na(Wi.openTab,{detail:{key:Ie(ke)}}):u({type:"warning",title:"跳转页签找不到自定义连接地址参数",timeout:3e3}):ke?Na(Wi.openTab,{detail:{pageCode:jo().getParmas("pageCode"),query:`&action=outerLink&id=${H[fe]}&url=${Ie(ke)}`,params:{state:j}}}):u({type:"warning",title:"跳转页签找不到自定义连接地址参数",timeout:3e3});break;case bd.popupWindow:ke?window.open(Ie(ke)):u({type:"warning",title:"找不到自定义连接地址参数",timeout:3e3});break;case bd.popupModal:je?_==null||_(H[fe],je,"Modal"):u({type:"warning",title:`弹出窗口找不到低代码页面参数pageCode【${je}】`,timeout:3e3});break;case bd.popupDrawer:je?_==null||_(H[fe],je,"Drawer"):u({type:"warning",title:`弹出抽屉找不到低代码页面参数pageCode【${je}】`,timeout:3e3});break}},children:j});case wt.revokeFlow:return b.jsx(kt,{...Oe,onClick:async()=>{if(!await R()||!await c.confirm({title:"请确认",content:"确认要撤回吗?",okText:"确定",cancelText:"取消",centered:!0,forceRender:!0,transitionName:"import-modal-transition",className:"p-modal-wrapper",maskTransitionName:"import-modal-mask-transition",cancelButtonProps:{className:"rounded-[3px] !px-[10px]"},okButtonProps:{className:"rounded-[3px] !px-[10px]"}}))return;const et={...O(),buttonCode:X,pageCode:k==null?void 0:k.pageCode,nodeId:jo().getParmas("nodeId"),taskId:jo().getParmas("taskId")};a(JSON.stringify(et))},children:h.buttonName});case wt.filter:return b.jsx(kt,{...Oe,onClick:r_(()=>B==null?void 0:B(),200),icon:b.jsx("svg",{className:"icon inline-block text-[12px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6392",width:"32",height:"32",children:b.jsx("path",{d:"M844.653714 121.904762C889.831619 121.904762 926.47619 159.061333 926.47619 204.897524c0 19.139048-6.534095 37.692952-18.480761 52.516571L654.409143 572.001524V926.47619l-293.156572-135.021714V571.977143L115.175619 256.365714a83.772952 83.772952 0 0 1 13.409524-116.565333A81.115429 81.115429 0 0 1 179.370667 121.904762h665.307428z","p-id":"6393"})}),children:j});default:return b.jsx(kt,{...Oe,children:h.buttonName})}}}}const su={text:[te.Text,te.UserSelect,te.UserMultiSelect,te.PureText,te.MultilineText,te.DeptSelect,te.DeptMultiSelect],number:[te.Integer,te.Decimal],dict:[te.RadioGroup,te.CheckBoxGroup,te.Select,te.MultiSelect],date:[te.DateTime,te.Date],time:[te.Time]};function xb(e,t,r,n,o){const{table:{tableFields:i,rowButtons:a,primaryKey:s,tableType:u,backLockNum:l,frontLockNum:c},tplCode:f}=e,{context:d}=rn(),[p,h]=N.useState({});N.useState({});const{getDictByDictId:g,dictList:m,isCached:y}=Sd(),{renderButton:v}=Sb(),{deptList:E,orgList:w,getrolePermis:S,getTreeData:C}=hr(),{getColumnSearchProps:x}=nG(),_=N.useMemo(()=>S(),[]),P=N.useRef(new Map),q=N.useCallback(R=>{P.current.get(R)||P.current.set(R,new Map)},[]),H=N.useCallback(R=>(P.current.get(R)||q(R),P.current.get(R)),[]),k=N.useCallback((R,Z,re)=>{H(R).set(Z,re)},[]),M=(R,Z)=>{const{htmlType:re,dictType:O,sqlFieldName:A,hidden:V,labelName:B,fieldCode:L,isSort:j,columnWidth:W,required:X,rules:ae,disabled:ce,blackRoles:ee,disabledRoles:fe,showDeptFullName:pe,frontComponent:ie,maxLength:xe,placeholder:Xe}=R,[Le,Oe]=Fb(_,ee,fe);if(Le||V)return{key:L,dataIndex:L,hidden:!0};let ue={key:L,dataIndex:L,title:B,fixed:Z<c||Z>i.length-l-1,sorter:j===!0?{multiple:Z}:!1,width:W||200,ellipsis:!0,formItemProps:{rules:[{required:X},...(ae||[]).map(le=>({validator:(de,ke)=>new RegExp(le.pattern.substring(1,le.pattern.length-1)).test(ke)||ke===""?Promise.resolve():Promise.reject(new Error(le.errorMsg))}))]},className:L!=="id"?W?`w-[${W}px] !max-w-[500px]`:"w-[200px] !max-w-[500px]":"",filteredValue:p[L]||null};if(Rg.includes(re)&&!y(O)){const le=re===te.CascadeSelect||re===te.CascadeMultiSelect;g(O,le)}const Ie=ce||Oe;if(R.isSearch){let le=Mt.TextFilters;su.dict.includes(re)&&(le=Mt.dictFilters),su.number.includes(re)&&(le=Mt.IntegerFilters),su.date.includes(re)&&(le=Mt.dateFilters),su.time.includes(re)&&(le=Mt.timeFilters),ue={...ue,...x({filterType:le,column:R,setFilteredInfo:h,setSearchHeaderByColumn:k})}}switch(re){case te.MultilineText:ue.valueType="textarea",ue.fieldProps={...ue.fieldProps,autoSize:{maxRows:1}};break;case te.Password:ue.valueType="password";break;case te.Integer:ue.valueType="digit",ue.fieldProps={...ue.fieldProps,className:"w-full"};break;case te.Decimal:ue.renderFormItem=()=>b.jsx(G.InputNumber,{precision:3,disabled:Ie});break;case te.Select:ue.valueType="select",ue.fieldProps={...ue.fieldProps,options:m[O]};break;case te.MultiSelect:ue.valueType="select",ue.fieldProps={...ue.fieldProps,options:m[O],mode:"multiple",className:"w-full"};break;case te.CascadeSelect:ue.valueType="cascader",ue.fieldProps={...ue.fieldProps,options:m[O]};break;case te.CascadeMultiSelect:ue.valueType="cascader",ue.fieldProps={...ue.fieldProps,options:m[O],multiple:!0,showCheckedStrategy:G.Cascader.SHOW_CHILD};break;case te.RadioGroup:ue.valueType="radio",ue.fieldProps={...ue.fieldProps,options:m[O]};break;case te.CheckBox:ue.renderFormItem=()=>b.jsx(G.Checkbox,{disabled:Ie}),ue.render=(le,de)=>{const ke=de[L]==="1";return b.jsx(G.Checkbox,{checked:ke})};break;case te.CheckBoxGroup:ue.valueType="checkbox",ue.fieldProps={...ue.fieldProps,options:m[O]};break;case te.Switch:ue.valueType="switch",ue.render=(le,de)=>{const ke=de[L];return b.jsx(G.Switch,{checked:ke,checkedChildren:"开启",unCheckedChildren:"关闭",size:"small"})};break;case te.Date:ue.render=(le,de)=>de[L]?hn(de[L]).format(R.dateFormat.replace(/y/g,"Y").replace(/d/g,"D")||"YYYY-MM-DD"):null,ue.renderFormItem=()=>{var le;return b.jsx(Zl,{format:(le=R.dateFormat)==null?void 0:le.replace(/y/g,"Y").replace(/d/g,"D"),defaultValue:R.defaultValue,disabled:Ie})};break;case te.DateTime:ue.render=(le,de)=>de[L]?hn(de[L]).format(R.dateFormat.replace(/y/g,"Y").replace(/d/g,"D")||"YYYY-MM-DD HH:mm:ss"):null,ue.renderFormItem=()=>b.jsx(Zl,{format:R.dateFormat.replace(/y/g,"Y").replace(/d/g,"D"),defaultValue:R.defaultValue,disabled:Ie});break;case te.Time:ue.render=(le,de)=>de[L]?de[L]:null,ue.renderFormItem=()=>b.jsx(Lg,{format:R.dateFormat.replace(/y/g,"Y").replace(/d/g,"D"),defaultValue:R.defaultValue,disabled:Ie});break;case te.Rating:ue.valueType="rate",ue.render=(le,de)=>b.jsx(G.Rate,{value:de[L],disabled:!0});break;case te.Image:ue.renderFormItem=()=>b.jsx(Lb,{field:R,context:d,componentType:Vg.Image,disabled:Ie}),ue.render=(le,de)=>{var ke,je;return((ke=de[L])==null?void 0:ke.length)>0?b.jsx(G.Avatar,{src:(je=de[L][0])==null?void 0:je.url}):""};break;case te.Upload:ue.render=(le,de)=>{var ke;return((ke=de[L])==null?void 0:ke.length)>0?b.jsx(eG,{imageList:de[L].map(je=>je.url)}):""};break;case te.PopupSelect:ue.renderFormItem=le=>{const{index:de,value:ke}=le;return b.jsx(zg,{params:R.openComponent,multiple:!1,getForm:n,editIndex:de,field:R,isSub:!1,value:ke,disabled:Ie})},ue.render=(le,de,ke)=>de[L+"__"+R.openComponent.matchTextColumn]||"-";break;case te.PopupMultiSelect:ue.renderFormItem=le=>{const{index:de,value:ke}=le;return b.jsx(zg,{params:R.openComponent,multiple:!0,getForm:n,editIndex:de,field:R,isSub:!1,value:ke,disabled:Ie})},ue.render=(le,de,ke)=>{var je,ve;return((ve=(je=de[L])==null?void 0:je.map(Qe=>Qe[R.openComponent.matchTextColumn]))==null?void 0:ve.join(","))||"-"};break;case te.DeptSelect:ue.renderFormItem=()=>b.jsx(Ed,{showDeptFullName:pe,disabled:Ie}),ue.render=(le,de,ke)=>{var je;return b.jsx(G.Tag,{color:"default",className:"text-[12px]",children:(je=E.find(ve=>ve.id===de[L]))==null?void 0:je.label})};break;case te.DeptMultiSelect:ue.renderFormItem=()=>b.jsx(Ed,{showDeptFullName:pe,disabled:Ie}),ue.render=(le,de,ke)=>de[L]?de[L].split(",").map(je=>{var ve;return b.jsx(G.Tag,{color:"default",className:"text-[12px]",children:(ve=E.find(Qe=>Qe.id===je))==null?void 0:ve.label},je)}):"";break;case te.OrgSelect:ue.render=(le,de,ke)=>{var je;return de[L]?b.jsx(G.Tag,{children:(je=w.find(ve=>ve.value===de[L]))==null?void 0:je.label}):""},ue.renderFormItem=()=>b.jsx(G.Select,{options:w,className:"w-full",placeholder:"请选择组织",disabled:Ie});break;case te.UserSelect:ue.renderFormItem=le=>b.jsx(Mg,{multiple:!1,disabled:Ie}),ue.render=(le,de,ke)=>de[L].length>0?de[L][0].userName:"-";break;case te.UserMultiSelect:ue.renderFormItem=le=>b.jsx(Mg,{multiple:!0,disabled:Ie}),ue.render=(le,de,ke)=>{var je;return de[L].length>0?(je=de[L].map(ve=>ve.userName))==null?void 0:je.join(","):"-"};break;case te.TreeSelect:ue.renderFormItem=()=>b.jsx(ct.ProFormTreeSelect,{className:"ptable_treeselect",request:async()=>(await C.runAsync({fieldCode:L,pageCode:e.pageCode})).data,initialValue:null,disabled:Ie}),ue.render=(le,de,ke)=>{var ve;const je=`${R.fieldCode}__${(ve=R.treeSelectConfig)==null?void 0:ve.matchTextColumn}`;return de[je]||"-"};break;case te.SerialNumber:ue.renderFormItem=le=>{const de=String(le.entity.id);return b.jsx(i_,{fieldCode:R.fieldCode,pageId:e.id,mode:de.startsWith(oo)?1:0,disabled:Ie})},ue.render=(le,de,ke)=>de[L]||"-";break;case te.PureText:break;default:L==="id"&&(ue.title="ID",ue.onHeaderCell=le=>({className:"ptable_columnId_header"}),ue.onCell=(le,de)=>({className:"ptable_columnId_body"}),ue.render=(le,de,ke)=>b.jsx(G.Input,{value:de[L],hidden:!0}),ue.renderFormItem=()=>b.jsx(G.Input,{hidden:!0}))}if(Xe&&(ue.fieldProps={...ue.fieldProps,placeholder:Xe}),Ie&&(ue.fieldProps={...ue.fieldProps,disabled:Ie}),xe&&(ue.fieldProps={...ue.fieldProps,maxLength:xe}),ie){const le=window[d.appEnName].plugins.fields.get(ie);ue.render=(de,ke,je,ve,Qe)=>{let et={row:ke,value:ke[L],rowIndex:je,node:de};return Rg.includes(re)&&(et.options=m[O],et.value=m[O].filter(Et=>{var Bt;return(Bt=ke[L])==null?void 0:Bt.includes(Et.value)}).map(Et=>Et.label)),b.jsx(le,{...et})}}return ue},I=()=>{let R=Ki.cloneDeep(i);return R.findIndex(Z=>Z.fieldCode==="id")===-1&&(R=t_({fieldCode:"id",htmlType:"Text",labelName:"ID",columnWidth:1e-12},R)),f!==$r.treeTable?[{dataIndex:"_Index_",title:"序号",width:50,fixed:"left",render:(Z,re,O)=>O+1,renderFormItem:({index:Z})=>Z+1},...R.map((Z,re)=>M(Z,re))]:R.map((Z,re)=>M(Z,re))},T=t||a.length===0?[]:[{title:"操作",key:"option",valueType:"option",fixed:"right",render:(R,Z,re,O)=>b.jsx("div",{className:"lowcode-table-option flex flex-shrink w-auto",onClick:A=>A.stopPropagation(),children:[...a].map(A=>b.jsx(G.Tooltip,{title:A.buttonName,children:v(A,{action:O,record:Z,pageJson:e,openEdit:r,getAction:o,isRowButton:!0})},A.buttonCode))})}];return{createColumns:()=>t_(I(),T),renderBaseColumn:R=>{const{htmlType:Z,dictType:re,sqlFieldName:O,hidden:A,labelName:V,fieldCode:B,isSort:L,columnWidth:j}=R;if(Rg.includes(Z)&&!y(re)){const W=Z===te.CascadeSelect||Z===te.CascadeMultiSelect;g(re,W)}switch(Z){case te.Text:return b.jsx(G.Input,{});case te.MultilineText:return b.jsx(G.Input.TextArea,{});case te.Password:return b.jsx(G.Input.Password,{});case te.Integer:return b.jsx(G.InputNumber,{});case te.Decimal:return b.jsx(G.Input,{});case te.Select:return b.jsx(G.Select,{showSearch:!0,options:m[re],className:"w-full"});case te.MultiSelect:return b.jsx(G.Select,{showSearch:!0,mode:"multiple",options:m[re],className:"w-full"});case te.CascadeSelect:return b.jsx(G.Cascader,{options:m[re]});case te.CascadeMultiSelect:return b.jsx(G.Cascader,{multiple:!0,showCheckedStrategy:G.Cascader.SHOW_CHILD,options:m[re]});case te.RadioGroup:return b.jsx(G.Radio.Group,{options:m[re]});case te.CheckBox:return b.jsx(G.Checkbox,{});case te.CheckBoxGroup:return b.jsx(G.Checkbox.Group,{options:m[re]});case te.Switch:return b.jsx(G.Switch,{});case te.Date:case te.DateTime:return b.jsx(Zl,{format:R.dateFormat.replace(/y/g,"Y").replace(/d/g,"D")});case te.Time:return b.jsx(Lg,{form:R.dateFormat.replace(/y/g,"Y").replace(/d/g,"D")});case te.Rating:return b.jsx(G.Rate,{});case te.Image:return b.jsx(G.Avatar,{});case te.Upload:return;case te.PopupSelect:break;case te.PopupMultiSelect:break;case te.DeptSelect:case te.DeptMultiSelect:return b.jsx(Ed,{showDeptFullName:R.showDeptFullName});case te.OrgSelect:return b.jsx(ZK,{});case te.UserSelect:case te.UserMultiSelect:return;case te.TreeSelect:case te.PureText:break}},filteredInfo:p,setFilteredInfo:h,getSearchHeaderByColumnMap:H}}function Qwe(e){const{pageJson:t,descriptionItem:r,isSub:n=!1,...o}=e,{getDetailReq:i}=hr(),{form:{formFields:a}}=t,{renderBaseColumn:s}=xb(t,!1,()=>{}),[u]=G.Form.useForm();return N.useEffect(()=>{const l=r==null?void 0:r.value;l&&i.runAsync({pageCode:t.pageCode,primaryKeyValue:l,tableCode:t.table.tableCode}).then(c=>{c.code===200&&u.setFieldsValue(c.data.formData)})},[r==null?void 0:r.value]),b.jsx(G.Form,{form:u,disabled:!0,children:b.jsx(G.Descriptions,{...o,bordered:!0,className:"p-descriptions",children:a.map((l,c)=>b.jsx(G.Descriptions.Item,{label:l.labelName,children:b.jsx(G.Form.Item,{name:[l.sqlFieldName],children:s(l)},l.sqlFieldName)}))})})}function e7e(e){const{pageJson:t}=e,n=new URL(window.location.href.replace("#","")).searchParams.get("id"),[o,i]=N.useState(),[a,s]=N.useState(!0),{getDetailReq:u}=hr(),{form:{formFields:l}}=t;xb(t,!1,()=>{});const{getDictByDictId:c,dictList:f,isCached:d}=Sd(),{deptList:p}=hr();N.useEffect(()=>{n&&u.runAsync({pageCode:t.pageCode,primaryKeyValue:"a18a8128-31ec-413f-a024-2d6702d55a39",tableCode:t.table.tableCode}).then(m=>{m.code===200&&(s(!1),i(YD(m.data.formData,t,!0)))})},[n]);const h=N.useMemo(()=>Math.min(...l.map(m=>m.fieldRatio)),[]),g=N.useMemo(()=>o?l.map(m=>{var x,_,P;const{labelName:y,sqlFieldName:v,fieldRatio:E,htmlType:w}=m;let S=null;const C=o[v];switch(w){case te.DeptSelect:case te.DeptMultiSelect:S=C;break;case te.UserSelect:case te.UserMultiSelect:S=(x=C==null?void 0:C.map(H=>H.userName))==null?void 0:x.join(", ");break;case te.CascadeMultiSelect:case te.CascadeSelect:case te.CheckBoxGroup:case te.RadioGroup:case te.Select:const q=w===te.CascadeSelect||w===te.CascadeMultiSelect;d(v)||c(v,q),S=(P=(_=f[v])==null?void 0:_.filter(H=>C.includes(H)).map(H=>H.laebl))==null?void 0:P.join(", ");break;case te.CheckBox:S=b.jsx(G.Checkbox,{checked:C,disabled:!0});break;case te.PopupSelect:case te.PopupMultiSelect:S=1;break;case te.Image:case te.Upload:S=(C==null?void 0:C.length)>0&&b.jsx(G.Image.PreviewGroup,{children:C.map(H=>b.jsx(G.Image,{height:50,src:H.url}))});break;case te.Password:S=b.jsx(G.Input.Password,{value:C,readOnly:!0,variant:"borderless"});break;default:S=C}return{label:y,span:E/h,children:S,labelStyle:{maxWidth:`${E/24/2*100}%`,overflow:"hidden",textOverflow:"ellipsis"},contentStyle:{width:`${E/24/2*100}%`,overflow:"hidden",textOverflow:"ellipsis"}}}):[],[o,p,JSON.stringify(f)]);return a?b.jsx(G.Spin,{spinning:a}):b.jsx(G.Descriptions,{bordered:!0,className:"p-descriptions p-4 flex flex-wrap",layout:"horizontal",column:24/h,items:g})}function t7e(e){const{pageJson:t}=e,n=new URL(window.location.href.replace("#","")).searchParams.get("id");return n&&b.jsx("div",{className:"flex w-[100%] flex-col border rounded-md",children:b.jsx(WD,{pageJson:t,editRowKey:n,open:!0})})}const{getParmas:r7e}=jo(),MK={finish:b.jsx(Fr.CheckCircleOutlined,{style:{color:"#92dcc3",fontSize:16}}),waitting:b.jsx(Fr.ClockCircleOutlined,{style:{color:"#92b9f5",fontSize:16}})};function n7e(e){const{pageJson:t,context:{appEnName:r=""}}=rn(),n={Authorization:JSON.parse(localStorage.getItem(`${r}_TOKEN`)),"Content-Type":"application/json"},o=N.useRef(null),[i,a]=N.useState(),[s,u]=N.useState([]);N.useEffect(()=>{l()},[]);const l=async()=>{const c=r7e("busKey"),d=await(await fetch(`${r}/v1/workflow/task/getComment/${c}`,{headers:n})).json();a([...d.rows])};return N.useEffect(()=>{const c=(i==null?void 0:i.length)??1,f=i==null?void 0:i.map((d,p)=>({dot:c-1==p?MK.waitting:MK.finish,children:b.jsx(o7e,{...d})}));u(f)},[i]),N.useEffect(()=>{var c;(c=o==null?void 0:o.current)==null||c.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})},[s]),b.jsx("div",{className:"p-2 w-full h-full approval-process overflow-auto ",children:b.jsx("div",{ref:o,children:b.jsx(G.Timeline,{items:s})})})}const o7e=e=>{const{nodeName:t,userName:r,userId:n,pass:o,endTime:i,msg:a}=e;return b.jsxs("div",{className:"flex rounded-md bg-[#f5f6f8] w-full h-full p-2 min-w-80 gap-4 ",children:[b.jsx("div",{className:"flex w-10 h-10 aspect-square items-center justify-center rounded-full bg-orange-400 text-xl",children:r.split("").pop()}),b.jsxs("div",{className:"flex flex-1 flex-col gap-2 items-start justify-start",children:[b.jsxs("div",{className:"flex flex-col font-bold",children:[b.jsxs("div",{className:"flex gap-4 justify-start items-center",children:[b.jsx("div",{children:t}),b.jsxs("div",{children:[" ",r," ",`(${n})`]})]}),b.jsxs("div",{className:"flex gap-4 justify-start items-center",children:[b.jsx("div",{children:o}),b.jsx("div",{children:i})]})]}),b.jsx("div",{className:"flex flex-col ",children:b.jsx("p",{className:"rich-edit w-[126px]",dangerouslySetInnerHTML:{__html:a}})})]})]})},{getParmas:zK}=jo();function VK(e){zK("nodeId");const t=zK("busKey"),{pageJson:r}=e,{context:n}=rn(),[o,i]=N.useState(!1),a=()=>{i(!o)},s=()=>{i(!1)},u=[{key:"1",label:"审批意见",children:b.jsx(n7e,{})},{key:"2",label:"流程图",children:b.jsx(Rr.SGTableContext.Provider,{value:n,children:b.jsx(Rr.Flow.Chart,{busKey:t})})}];return b.jsx("div",{className:"w-full h-full",children:b.jsxs("div",{className:"flex w-full h-full justify-around items-start gap-2",children:[b.jsx("div",{className:"flex w-[100%] flex-col border rounded-md",children:b.jsx(WD,{pageJson:r,editRowKey:t,open:!0})}),b.jsx(G.Tooltip,{placement:"top",title:o?"关闭":"查看流程信息",children:b.jsx(G.FloatButton,{shape:"circle",type:"primary",className:`duration-200 ${o?"rotate-180":"rotate-0"}`,style:{top:"50%",right:36},onClick:a,icon:b.jsx(Fr.DoubleLeftOutlined,{})})}),b.jsx(G.Drawer,{size:"large",onClose:s,open:o,closeIcon:null,children:b.jsx(G.Tabs,{defaultActiveKey:"1",items:u})})]})})}function i7e(e){return jo().getParmas("url").startsWith("http")?b.jsx("section",{className:"w-full h-full flex-center",children:b.jsx("iframe",{src:`${jo().getParmas("url")}`,width:"100%",height:"100%"})}):b.jsx("section",{className:"w-full h-full flex-center",children:b.jsxs("div",{style:{width:620,textAlign:"start",backgroundColor:"rgba(255,229,100,0.3)",borderInlineStartColor:"#ffe564",borderInlineStartWidth:"9px",borderInlineStartStyle:"solid",padding:"20px 45px 20px 26px",marginTop:"-10%"},children:[b.jsx("p",{className:"font-bold text-[20px] mb-2",children:"“ 外链地址出错了”"}),b.jsx("p",{children:"外链地址请以http:// 或 https:// 开始"})]})})}const RK=(e,t)=>e.map(r=>{const n=r.label,o=n.indexOf(t),i=n.substring(0,o),a=n.slice(o+t.length),s=o>-1?b.jsxs("span",{children:[i,b.jsx("span",{className:" text-[#ff730e] font-extrabold",children:t}),a]},r.value):b.jsx("span",{children:n},r.value);return r.children?{label:s,value:r.value,children:RK(r.children,t)}:{value:r.value,label:s}}),XD=(e,t)=>{let r;for(let n=0;n<t.length;n++){const o=t[n];o.children&&(o.children.some(i=>i.value===e)?r=o.value:XD(e,o.children)&&(r=XD(e,o.children)))}return r},$K=e=>Ki.flatMapDepth(e,t=>{const r=t.children?$K(t.children):[];return[{...t,children:void 0},...r]},6);function a7e(e){const[t,r]=N.useState(!0),[n,o]=N.useState([]),[i,a]=N.useState(""),{pageJson:{table:{treeSelectConfig:{treeFieldCode:s,cascadeSearch:u}},pageCode:l}}=N.useContext(Ta),{getTreeData:c}=hr();Ke.useMount(()=>{c.run({fieldCode:s,pageCode:l})});const f=N.useMemo(()=>{var g;return $K(((g=c.data)==null?void 0:g.data)||[])},[c.data]),d=g=>{o(g),r(!1)},p=Ki.debounce(g=>{const{value:m}=g.target,y=f.map(v=>v.label.indexOf(m)>-1?XD(v.value,h):null).filter((v,E,w)=>!!(v&&w.indexOf(v)===E));o(y),a(m)},500),h=N.useMemo(()=>c.data?i?RK(c.data.data,i):c.data.data||[]:[],[c.data,i]);return b.jsxs("section",{className:"pr-4",children:[b.jsx(G.Input,{style:{marginBottom:8},placeholder:"搜索目录或菜单",onChange:p}),b.jsx(G.Tree,{onExpand:d,expandedKeys:n,autoExpandParent:t,treeData:h,icon:g=>g.data.children?b.jsx(Fr.FolderOutlined,{}):b.jsx(Fr.TagOutlined,{}),showIcon:!0,fieldNames:{key:"value",title:"label",children:"children"},onSelect:(g,{node:m})=>{e.setActiveKey(g[0])},switcherIcon:b.jsx(Fr.DownOutlined,{className:"absolute right-[7px] top-2"})}),!c.loading&&h.length===0&&b.jsx(G.Empty,{image:G.Empty.PRESENTED_IMAGE_SIMPLE})]})}const s7e=N.forwardRef(function(t,r){const{pageJson:n}=N.useContext(Ta),{table:{treeSelectConfig:{treeFieldCode:o,cascadeSearch:i}}}=n,{activeKey:a}=t,s=N.useMemo(()=>a?{[o]:[,i?"CASCADE":"EQ",a]}:{},[a]);return N.useMemo(()=>b.jsx(Hg,{pageJson:n,filterProps:s}),[s])});function u7e(e){const t=N.useRef(),[r,n]=N.useState("");return b.jsxs(G.Splitter,{className:"py-4",children:[b.jsx(G.Splitter.Panel,{defaultSize:"20%",min:"20%",max:"50%",children:b.jsx(a7e,{setActiveKey:n})}),b.jsx(G.Splitter.Panel,{children:b.jsx(s7e,{ref:t,activeKey:r})})]})}function l7e(e){const{pageJson:t}=e,r=N.useRef(),n=N.useRef(),[o,i]=N.useState(""),a=Ke.useMemoizedFn(c=>{i(c)}),s=N.useMemo(()=>b.jsx(Hg,{pageJson:t,ref:r,onEditorKeyChange:a}),[]),u=N.useMemo(()=>{let f=Ki.cloneDeep(t).form.tables;return f.forEach((p,h)=>{let g=Ki.cloneDeep(p),m=[...g.headerButtons];const v=(g.formTableFields.filter(E=>E.isHeaderSearch===!0)||[]).length>0;m.map(E=>E.buttonType).includes(wt.tableSave)||(m=[{buttonCode:"",buttonName:"保存",buttonType:"subTableSave"},...m]),v&&(m=[{buttonName:"过滤",buttonType:"filter"},...m]),f[h]={...p,headerButtons:m}}),{...t,form:{...t.form,tables:f}}},[t]),l=N.useMemo(()=>o&&b.jsx("div",{className:"p-[20px] !pt-0",children:b.jsx(d_,{ref:n,editRowKey:o,tables:u.form.tables,pageJson:u})}),[o,u]);return b.jsxs(b.Fragment,{children:[s,l]})}function c7e(e){const{context:{appEnName:t=""}}=rn(),r={Authorization:JSON.parse(localStorage.getItem(`${t}_TOKEN`)),"Content-Type":"application/json"},{pageCode:n,report:o}=e.pageJson,{formFieldRender:i}=u_(),[a]=G.Form.useForm(),[s,u]=N.useState([]),[l,c]=N.useState([]),[f,d]=N.useState(5),[p,h]=N.useState(1),[g,m]=N.useState(0),[y,v]=N.useState(!1),[E,w]=N.useState([]);N.useEffect(()=>{const I=S((o==null?void 0:o.searchFields)||[]);w(I),q()},[]);const S=I=>{const T=[];let F=[],U=!1;return I.forEach((R,Z)=>{R.htmlType=="IgnorePartition"?(F.length&&T.push({type:U?"collapse":"normal",list:F}),F=[],U=!0):F.push(R),Z==I.length-1&&T.push({type:U?"collapse":"normal",list:F})}),T},C=I=>I.map(F=>{let U=null;return F.children&&(U=C(F.children)),{title:F.label,dataIndex:F.code,key:F.code,children:U,render:R=>b.jsx("div",{style:{color:"white",backgroundColor:R.color},className:"flex items-center w-fit rounded-md px-3 py-1",children:R.value})}})||[],x=I=>I.map((F,U)=>{const R={};for(const[Z,re]of Object.entries(F))Object.assign(R,{[Z]:re,key:Z+U});return R}),_=async I=>{const T=await fetch(`/${t}/lowcode/v1/resolve/getReportHeader`,{headers:r,method:"POST",body:JSON.stringify(I)}),{data:F}=await T.json(),U=C(F);u(U)},P=async(I,T,F)=>{v(!0);const U={...I,pageNum:T,pageSize:F},Z=await(await fetch(`/${t}/lowcode/v1/resolve/listReportData`,{headers:r,method:"POST",body:JSON.stringify(U)})).json(),re=x(Z.rows);c(re),m(Z.total),h(Z.pageNum),d(Z.pageSize),v(!1)},q=()=>{let I={pageCode:n,searchCondition:a.getFieldsValue()};_(I),P(I,p,f)},H=(I,T)=>{let F={pageCode:n,searchCondition:a.getFieldsValue()};h(I),d(T),P(F,I,T)},k=Ke.useMemoizedFn(I=>I.map(T=>{const F=Number(T.fieldRatio)===24?"w-full":`w-1/${24/Number(T.fieldRatio)}`;return b.jsx("div",{className:`px-4 ${T.htmlType===te.IgnorePartition?"w-full":F} base-item`,children:i(T,()=>a)},T.sqlFieldName)})),M=Ke.useMemoizedFn(I=>[{key:"1",label:"",children:b.jsx("div",{className:"flex flex-wrap",children:k(I)}),className:"form_divider_area"}]);return b.jsxs("div",{children:[b.jsx("div",{className:"mb-4",children:b.jsxs(ct.ProForm,{form:a,labelWrap:!0,submitter:!1,children:[b.jsx("div",{className:" p-[16px]",children:E==null?void 0:E.map((I,T)=>I.type==="normal"?b.jsx("div",{className:"w-full flex flex-wrap",children:k(I.list)},I.type+T):b.jsx(G.Collapse,{items:M(I.list),defaultActiveKey:["1"]},I.type+T))}),b.jsx("div",{style:{textAlign:"left"},children:b.jsxs(G.Space,{size:"small",children:[b.jsx(G.Button,{onClick:q,type:"primary",htmlType:"submit",children:"查询"}),b.jsx(G.Button,{onClick:()=>{a.resetFields()},children:"重置"})]})})]})}),b.jsxs("div",{children:[b.jsx(G.Table,{bordered:!0,loading:y,columns:s,dataSource:l,pagination:{total:g,pageSize:f,current:p,onChange:H}}),";"]})]})}const f7e=N.forwardRef(function(t,r){const{pageJson:n,...o}=t,[i,a]=N.useState(!1),[s,u]=N.useState(!1),[l,c]=N.useState(""),f=`treeTable_persistence_${n.table.tableCode}`,[d,p]=N.useState(()=>{try{const U=localStorage.getItem(f);return U?JSON.parse(U):{}}catch{return{}}}),{pageModel:h,selectPageSize:g,defaultPageSize:m,isSub:y,primaryKey:v,tableType:E}=n.table,w=Ke.useMemoizedFn(U=>{a(!0),c(U)}),S=N.useRef(null),{createColumns:C}=xb(n,!1,w),{renderButtons:x}=f_(),{queryListTreeData:_}=hr(),[P,q]=N.useState([]),H=N.useRef(),k=N.useRef({pageCode:n.pageCode,pageNum:1,pageSize:m,searchFields:[],sortFields:[],tableCode:n.table.tableCode}),M=async(U,R,Z)=>{const{pageSize:re,current:O}=U,A=Object.entries(Ig(Z||{},L=>Io(L))).map(L=>({fieldCode:L[0],searchType:L[1][1],value:L[1][2]||""})),V=Object.entries(Ig(R||{},L=>Io(L))).map(L=>({fieldCode:L[0],sortWay:L[1]==="ascend"?"ASC":"DESC"}));k.current={pageCode:n.pageCode,pageNum:1,pageSize:re,searchFields:A,sortFields:V,tableCode:n.table.tableCode};const B=await _.runAsync({...k.current,...U});return B.code===200?{data:B.data,success:!0,total:B.data.length}:{data:[],success:!0}},I=(U,R,Z)=>[Z.cancel],[T]=G.Form.useForm(),F=U=>{try{localStorage.setItem(f,JSON.stringify(U))}catch(R){console.error("本地存储失败:",R)}p(U)};return N.useLayoutEffect(()=>{(()=>{try{const R=localStorage.getItem(f);R&&p(JSON.parse(R))}catch(R){console.error("读取本地存储失败:",R)}})()},[]),b.jsxs("section",{children:[b.jsx(ct.EditableProTable,{bordered:!0,debounceTime:50,editableFormRef:H,request:M,actionRef:S,tableClassName:"lowcode-table",columns:C(),columnsState:{value:d,onChange:F},rowKey:v,toolBarRender:(U,R)=>x({action:U,rows:R,pageJson:n,openAddDrawer:()=>{a(!0),c("")},setOpenImportDialog:u,openEdit:w,getSearch:()=>k.current,getEditorForm:()=>H.current,getInlineForm:()=>T}),defaultSize:"middle",editable:{type:"multiple",editableKeys:P,onSave:async(U,R,Z)=>{},onChange:q,onValuesChange(U,R){},actionRender:I,form:T},sticky:!0,recordCreatorProps:!1,options:{reloadIcon:b.jsx("div",{className:"lowcode-table-header-button-wrapper",children:b.jsx(G.Button,{type:"primary",size:"middle",className:"rounded-none !px-[10px]",icon:b.jsx("svg",{className:"icon inline-block",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",children:b.jsx("path",{d:"M882.9696 38.4l94.2592 301.4912-315.3152-29.2352 60.5952-74.624a338.432 338.432 0 0 0-196.3264-62.2976c-187.392 0-339.328 151.4752-339.328 338.2656 0 186.8672 151.936 338.3424 339.328 338.3424A339.328 339.328 0 0 0 843.2256 632.704a68.352 68.352 0 0 1 5.0304-10.368l117.952 68.096A475.0592 475.0592 0 0 1 526.1184 985.6C263.8464 985.6 51.2 773.6064 51.2 512 51.2 250.4576 263.8592 38.4 526.1184 38.4a474.24 474.24 0 0 1 281.9072 92.3392L882.9696 38.4z"})})})}),densityIcon:b.jsx("div",{className:"lowcode-table-header-button-wrapper",children:b.jsx(G.Button,{type:"primary",size:"middle",className:"rounded-none !px-[10px]",icon:b.jsx("svg",{className:"icon inline-block",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",children:b.jsx("path",{d:"M495.529015 191.14603h480.339732c26.538578 0 48.12784-23.039923 48.12784-51.370496 0-28.330572-21.589261-51.285162-48.12784-51.285162H495.529015c-26.538578 0-48.12784 22.95459-48.12784 51.285162 0 28.330572 21.589261 51.285162 48.12784 51.285162z m480.339732 266.068446H495.529015c-26.538578 0-48.12784 23.039923-48.12784 51.370495 0 28.330572 21.589261 51.199829 48.12784 51.19983h480.339732c26.538578 0 48.12784-22.869257 48.12784-51.19983 0-28.330572-21.589261-51.370495-48.12784-51.370495z m0 368.809437H495.529015c-26.538578 0-48.12784 22.95459-48.12784 51.285163 0 28.330572 21.589261 51.285162 48.12784 51.285162h480.339732c26.538578 0 48.12784-22.95459 48.12784-51.285162 0-28.330572-21.589261-51.285162-48.12784-51.285163zM291.839027 235.519215c19.797267 19.02927 50.346499 17.237276 68.095773-3.92532a53.930487 53.930487 0 0 0 0-68.607772L221.09793 15.10395A45.823847 45.823847 0 0 0 187.050043 0a46.506512 46.506512 0 0 0-34.047886 15.10395L14.079953 163.071456a53.759821 53.759821 0 0 0 0 72.533092 46.079846 46.079846 0 0 0 68.095773 0l56.746478-60.330466v673.448422l-56.746478-60.415798a46.079846 46.079846 0 0 0-68.01044 2.133326 53.759821 53.759821 0 0 0 0 70.399765l138.751538 147.967507a45.653181 45.653181 0 0 0 52.735824 11.093296 48.639838 48.639838 0 0 0 15.530615-11.093296l138.83687-147.967507a53.759821 53.759821 0 0 0 1.96266-72.533091 46.079846 46.079846 0 0 0-70.058433 0l-56.746477 60.415798V175.188749l56.746477 60.330466z"})})})}),setting:{settingIcon:b.jsx("div",{className:"lowcode-table-header-button-wrapper",children:b.jsx(G.Button,{type:"primary",size:"middle",className:"rounded-none !px-[10px] lowcode-table-header-button",icon:b.jsx("svg",{className:"icon inline-block",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",children:b.jsx("path",{d:"M512 706.56c-107.52 0-194.56-87.04-194.56-194.56S404.48 317.44 512 317.44s194.56 87.04 194.56 194.56-87.04 194.56-194.56 194.56z m476.16-271.36h-51.2c-20.48 0-46.08-15.36-51.2-35.84l-25.6-66.56c-10.24-20.48-5.12-46.08 10.24-61.44l35.84-35.84c5.12-5.12 10.24-15.36 10.24-25.6s-5.12-20.48-10.24-25.6l-61.44-61.44c-5.12-5.12-15.36-10.24-25.6-10.24s-20.48 5.12-25.6 10.24l-35.84 30.72c-15.36 15.36-40.96 20.48-61.44 10.24l-66.56-25.6c-20.48-5.12-35.84-30.72-35.84-51.2v-51.2c0-10.24-5.12-15.36-10.24-25.6-10.24-5.12-20.48-10.24-25.6-10.24H465.92c-5.12 0-15.36 5.12-20.48 10.24-10.24 5.12-10.24 15.36-10.24 25.6v51.2c0 20.48-15.36 46.08-35.84 51.2l-71.68 25.6c-15.36 10.24-46.08 5.12-61.44-10.24l-35.84-35.84c-5.12-5.12-15.36-10.24-25.6-10.24s-15.36 5.12-25.6 10.24L117.76 179.2c-5.12 10.24-10.24 15.36-10.24 25.6s5.12 20.48 10.24 25.6l35.84 35.84c15.36 15.36 20.48 40.96 10.24 61.44l-25.6 66.56c-5.12 20.48-30.72 35.84-51.2 35.84h-51.2c-10.24 0-15.36 5.12-25.6 10.24-5.12 10.24-10.24 20.48-10.24 25.6v87.04c0 10.24 5.12 15.36 10.24 25.6 5.12 5.12 15.36 10.24 25.6 10.24h51.2c20.48 0 46.08 15.36 51.2 35.84l25.6 66.56c10.24 20.48 5.12 46.08-10.24 61.44l-35.84 35.84c-5.12 5.12-10.24 15.36-10.24 25.6s5.12 20.48 10.24 25.6l61.44 61.44c5.12 5.12 15.36 10.24 25.6 10.24s20.48-5.12 25.6-10.24l35.84-30.72c15.36-15.36 40.96-20.48 61.44-10.24l66.56 25.6c20.48 5.12 35.84 30.72 35.84 51.2v51.2c0 10.24 5.12 15.36 10.24 25.6 10.24 5.12 20.48 10.24 25.6 10.24h87.04c10.24 0 15.36-5.12 25.6-10.24 5.12-5.12 10.24-15.36 10.24-25.6v-51.2c0-20.48 15.36-46.08 35.84-51.2l66.56-25.6c20.48-10.24 46.08-5.12 61.44 10.24l35.84 35.84c5.12 5.12 15.36 10.24 25.6 10.24s20.48-5.12 25.6-10.24l61.44-61.44c5.12-5.12 10.24-15.36 10.24-25.6s-5.12-20.48-10.24-25.6l-30.72-35.84c-15.36-15.36-20.48-40.96-10.24-61.44l25.6-66.56c5.12-20.48 30.72-35.84 51.2-35.84h51.2c10.24 0 15.36-5.12 25.6-10.24 5.12-5.12 10.24-15.36 10.24-25.6V465.92c0-10.24-5.12-15.36-10.24-25.6-5.12-5.12-15.36-5.12-25.6-5.12z"})})})}),checkedReset:!1,extra:b.jsx(G.Button,{type:"link",size:"small",onClick:()=>{localStorage.removeItem(f),p({})},children:"重置"})}},search:!1,pagination:!1,className:"ptable",tableAlertRender:()=>!1,...o,scroll:{x:"max-content",y:"auto",scrollToFirstRowOnChange:!1},showSorterTooltip:!0}),b.jsx(xd,{open:i,onClose:()=>a(!1),refresh:()=>{var U;return(U=S.current)==null?void 0:U.reload()},layout:"vertical",pageJson:n,editRowKey:l,tableType:E,clearEditRowKey:()=>c("")})]})}),HK=N.forwardRef(function(t,r){const{tplCode:n,pageJson:o,popupSelect:i,descriptionItem:a,...s}=t,u=N.useRef();return N.useImperativeHandle(r,()=>({getTableRef:()=>u.current}),[]),n===$r.common?b.jsx(Hg,{pageJson:o,...s,popupSelect:i,ref:u}):n===$r.customReport?b.jsx(c7e,{pageJson:o}):n===$r.flow?b.jsx(VK,{pageJson:o,...s,popupSelect:i}):n===$r.treeTable?b.jsx(f7e,{pageJson:o}):n===$r.ltrt?b.jsx(u7e,{pageJson:o}):n===$r.description?b.jsx(Qwe,{pageJson:o,descriptionItem:a,...s}):n===$r.edit?b.jsx(t7e,{pageJson:o}):n===$r.detail?b.jsx(e7e,{pageJson:o}):n===$r.iframe?b.jsx(i7e,{pageJson:o}):n===$r.mainSubLink?b.jsx(l7e,{pageJson:o}):"tplCode未匹配到模板"}),JD=N.forwardRef(function(t,r){const{context:n={appCnName:"",appEnName:"",appid:""},pageJson:o,dictCacheProp:i,popupSelect:a,type:s,...u}=t,{pageJsonReq:l}=jb(n),c=i||N.useRef({dictList:{},reqLockList:{}}),f=N.useRef();N.useImperativeHandle(r,()=>({getAdapterRef:()=>f.current}),[]),N.useEffect(()=>{!o&&n.appEnName&&l.run(s)},[o]);const d=N.useMemo(()=>{var p;if(((p=l.data)==null?void 0:p.code)===200){const{href:h}=window.location;let g=l.data.data;return h.indexOf("&nodeId=")>-1?g={...g,tplCode:$r.flow}:h.indexOf("action=edit&id=")>-1?g={...g,tplCode:$r.edit}:h.indexOf("action=detail&id=")>-1?g={...g,tplCode:$r.detail}:h.indexOf("action=outerLink&id=")>-1&&(g={...g,tplCode:$r.iframe}),b.jsx(e_,{context:n,pageJson:g,dictCache:c,children:b.jsx(HK,{tplCode:g.tplCode,pageJson:g,popupSelect:a,...u})},l.data.data.pageCode)}return null},[l.data,a,n,c]);return o?b.jsx(e_,{context:n,pageJson:o,dictCache:c,children:b.jsx(HK,{tplCode:o.tplCode,pageJson:o,popupSelect:a,ref:f,...u})}):d});or.Flow=VK,or.Page=JD,Object.defineProperty(or,Symbol.toStringTag,{value:"Module"})});
246
+ //# sourceMappingURL=sg-lowcode-parser.umd.cjs.map